PageSourceSearch

https://give-away3.vercel.app/_next/static/chunks/1672-7a8d984efa0affac.js

js give-away3.vercel.app collected 2026-10-03 07:01:22 UTC 2,641,010 bytes, 52 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1672],{22899:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.loadAssets=void 0;let ed=es(eo(54098)),eu={devnet:"https://axelar-testnet.s3.us-east-2.amazonaws.com/devnet-asset-config.json",testnet:"https://axelar-testnet.s3.us-east-2.amazonaws.com/testnet-asset-config.json",mainnet:"https://axelar-mainnet.s3.us-east-2.amazonaws.com/mainnet-asset-config.json"},ef={devnet:null,testnet:null,mainnet:null};function loadAssets(en){return ea(this,void 0,void 0,function*(){return ef[en.environment]||(ef[en.environment]=yield execGet(eu[en.environment])),Object.values(ef[en.environment])})}function execGet(en){return ea(this,void 0,void 0,function*(){return(0,ed.default)(en,{method:"GET",headers:{"Content-Type":"application/json"}}).then(en=>en.json()).catch(en=>{throw console.log({error:en}),en})})}ei.loadAssets=loadAssets},47171:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0})},18842:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)},ed=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},eu=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.importChains=ei.loadChains=void 0,es(eo(35511),ei);let ef=eu(eo(54098)),ep=eo(22899),em=eu(eo(30738));function loadChains(en){return ed(this,void 0,void 0,function*(){let ei=yield(0,ep.loadAssets)(en),eo=en.environment,ea=yield importChains({environment:eo});return ea.forEach(en=>{let ea=ei.filter(({chain_aliases:ei})=>Object.keys(ei).indexOf(en.chainName.toLowerCase())>-1),es=[];ea.forEach(ei=>{let ea=(0,em.default)(ei.chain_aliases[en.chainName.toLowerCase()]);ea.common_key=ei.common_key[eo],ea.native_chain=ei.native_chain,ea.decimals=ei.decimals,ea.fullySupported=ei.fully_supported,es.push(ea)}),en.assets=es}),ea})}ei.loadChains=loadChains;let eg={devnet:"https://axelar-testnet.s3.us-east-2.amazonaws.com/devnet-chain-config.json",testnet:"https://axelar-testnet.s3.us-east-2.amazonaws.com/testnet-chain-config.json",mainnet:"https://axelar-mainnet.s3.us-east-2.amazonaws.com/mainnet-chain-config.json"},ey={devnet:null,testnet:null,mainnet:null};function importChains(en){return ed(this,void 0,void 0,function*(){return ey[en.environment]||(ey[en.environment]=yield execGet(eg[en.environment])),Object.values(ey[en.environment])})}function execGet(en){return ed(this,void 0,void 0,function*(){return(0,ef.default)(en,{method:"GET",headers:{"Content-Type":"application/json"}}).then(en=>en.json()).catch(en=>{throw en})})}ei.importChains=importChains},35511:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.CHAINS=void 0,ei.CHAINS={TESTNET:{ACRE:"acre",ARBITRUM:"arbitrum",ARB
1ITRUM_SEPOLIA:"arbitrum-sepolia",AURA:"aura",AURORA:"aurora",AXELAR:"Axelarnet",AVALANCHE:"Avalanche",BASE:"base",BINANCE:"binance",BNBCHAIN:"binance",BURNT:"burnt-2",CELESTIA:"celestia",CELO:"celo",CENTRIFUGE:"centrifuge-2",COMDEX:"comdex-2",ETHEREUM:"ethereum-2",EVMOS:"evmos",FANTOM:"Fantom",FETCH:"fetch",FILECOIN:"filecoin-2",HAQQ:"haqq",HERO:"hero",HIGHRISE:"highrise",IMMUTABLE:"immutable",IMPACTHUB:"impacthub",KAVA:"kava",KUJIRA:"kujira",LINEA:"linea",MANTLE:"mantle",MIGALOO:"migaloo",MOONBEAM:"Moonbeam",NEUTRON:"neutron",ODIN:"odin",OPTIMISM:"optimism",OSMOSIS:"osmosis-7",PERSISTENCE:"persistence",POLYGON:"Polygon",POLYGONZKEVM:"polygon-zkevm",PROVENANCE:"provenance",SEPOLIA:"ethereum-sepolia",SCROLL:"scroll",SECRETSNIP:"secret-snip-2",SEI:"sei-2",TERITORI:"teritori",TERRA:"terra-3",XPLA:"xpla"},MAINNET:{ACRE:"acre",AGORIC:"agoric",ARBITRUM:"arbitrum",ARCHWAY:"archway",ASSETMANTLE:"assetmantle",AURA:"aura",AVALANCHE:"Avalanche",AXELAR:"Axelarnet",BASE:"base",BINANCE:"binance",BNBCHAIN:"binance",CARBON:"carbon",CELESTIA:"celestia",CELO:"celo",CENTRIFUGE:"centrifuge",COMDEX:"comdex",COSMOSHUB:"cosmoshub",CRESCENT:"crescent",EMONEY:"e-money",ETHEREUM:"Ethereum",EVMOS:"evmos",FANTOM:"Fantom",FETCH:"fetch",FILECOIN:"filecoin",HAQQ:"haqq",IMMUTABLE:"immutable",INJECTIVE:"injective",IXO:"ixo",JUNO:"juno",KAVA:"kava",KI:"ki",KUJIRA:"kujira",LINEA:"linea",MANTLE:"mantle",MIGALOO:"migaloo",MOONBEAM:"Moonbeam",NEUTRON:"neutron",OPTIMISM:"optimism",OSMOSIS:"osmosis",PERSISTENCE:"persistence",POLYGON:"Polygon",POLYGONZKEVM:"polygon-zkevm",PROVENANCE:"provenance",REBUS:"rebus",REGEN:"regen",SCROLL:"scroll",SECRET:"secret",SECRETSNIP:"secret-snip",SEI:"sei",SOMMELIER:"sommelier",STARGAZE:"stargaze",STRIDE:"stride",TERITORI:"teritori",TERRACLASSIC:"terra",TERRA:"terra-2",UMEE:"umee",XPLA:"xpla"}}},14923:function(en,ei){"use strict";var eo,ea;Object.defineProperty(ei,"__esModule",{value:!0}),ei.SocketListenerTypes=ei.LinkType=void 0,function(en){en.EVM="/axelar.evm.v1beta1.LinkRequest",en.COS="/axelar.axelarnet.v1beta1.LinkRequest"}(eo=ei.LinkType||(ei.LinkType={})),function(en){en.LINK="LINK",en.WAIT_FOR_DEPOSIT="WAIT_FOR_DEPOSIT",en.DEPOSIT_CONFIRMED="DEPOSIT_CONFIRMED"}(ea=ei.SocketListenerTypes||(ei.SocketListenerTypes={}))},10654:function(en,ei){"use strict";var eo;Object.defineProperty(ei,"__esModule",{value:!0}),ei.EvmChain=void 0,function(en){en.ETHEREUM="ethereum",en.AVALANCHE="avalanche",en.FANTOM="fantom",en.POLYGON="polygon",en.POLYGON_ZKEVM="polygon-zkevm",en.MOONBEAM="moonbeam",en.AURORA="aurora",en.BINANCE="binance",en.BNBCHAIN="binance",en.ARBITRUM="arbitrum",en.ARBITRUM_SEPOLIA="arbitrum-sepolia",en.CELO="celo",en.KAVA="kava",en.BASE="base",en.FILECOIN="filecoin",en.OPTIMISM="optimism",en.LINEA="linea",en.MANTLE="mantle",en.SCROLL="scroll",en.SEPOLIA="ethereum-sepolia",en.IM
1MUTABLE="immutable",en.CENTRIFUGE_TESTNET="centrifuge-2",en.CENTRIFUGE="centrifuge"}(eo=ei.EvmChain||(ei.EvmChain={}))},88703:function(en,ei,eo){"use strict";var ea;Object.defineProperty(ei,"__esModule",{value:!0}),ei.DEFAULT_ESTIMATED_GAS=ei.nativeGasTokenSymbol=ei.GasToken=void 0;let es=eo(10654);!function(en){en.ETH="ETH",en.AVAX="AVAX",en.GLMR="GLMR",en.FTM="FTM",en.MATIC="MATIC",en.USDC="USDC",en.aUSDC="aUSDC",en.axlUSDC="axlUSDC",en.AURORA="aETH",en.BINANCE="BNB",en.BNBCHAIN="BNB",en.CELO="CELO",en.KAVA="KAVA",en.BASE="ETH",en.FILECOIN="FIL",en.OSMO="OSMO",en.AXL="AXL",en.POLYGON_ZKEVM="ETH",en.MANTLE="MNT",en.SCROLL="ETH",en.IMMUTABLE="IMX",en.SEPOLIA="ETH",en.ARBITRUM_SEPOLIA="ETH",en.CENTRIFUGE="CFG"}(ea=ei.GasToken||(ei.GasToken={})),ei.nativeGasTokenSymbol={testnet:{[es.EvmChain.AVALANCHE]:ea.AVAX,[es.EvmChain.MOONBEAM]:ea.GLMR,[es.EvmChain.POLYGON]:ea.MATIC,"ethereum-2":ea.ETH,[es.EvmChain.FANTOM]:ea.FTM,[es.EvmChain.AURORA]:ea.AURORA,[es.EvmChain.BINANCE]:ea.BINANCE,[es.EvmChain.BNBCHAIN]:ea.BNBCHAIN,[es.EvmChain.ARBITRUM]:ea.ETH,[es.EvmChain.CELO]:ea.CELO,[es.EvmChain.KAVA]:ea.KAVA,[es.EvmChain.BASE]:ea.BASE,"filecoin-2":ea.FILECOIN,[es.EvmChain.OPTIMISM]:ea.ETH,[es.EvmChain.LINEA]:ea.ETH,[es.EvmChain.POLYGON_ZKEVM]:ea.POLYGON_ZKEVM,[es.EvmChain.MANTLE]:ea.MANTLE,[es.EvmChain.SCROLL]:ea.SCROLL,[es.EvmChain.SEPOLIA]:ea.SEPOLIA,[es.EvmChain.IMMUTABLE]:ea.IMMUTABLE,[es.EvmChain.ARBITRUM_SEPOLIA]:ea.ARBITRUM_SEPOLIA,[es.EvmChain.CENTRIFUGE_TESTNET]:ea.CENTRIFUGE},mainnet:{[es.EvmChain.AVALANCHE]:ea.AVAX,[es.EvmChain.MOONBEAM]:ea.GLMR,[es.EvmChain.POLYGON]:ea.MATIC,[es.EvmChain.ETHEREUM]:ea.ETH,[es.EvmChain.FANTOM]:ea.FTM,[es.EvmChain.AURORA]:ea.AURORA,[es.EvmChain.BINANCE]:ea.BINANCE,[es.EvmChain.BNBCHAIN]:ea.BNBCHAIN,[es.EvmChain.ARBITRUM]:ea.ETH,[es.EvmChain.CELO]:ea.CELO,[es.EvmChain.KAVA]:ea.KAVA,[es.EvmChain.BASE]:ea.BASE,[es.EvmChain.FILECOIN]:ea.FILECOIN,[es.EvmChain.OPTIMISM]:ea.ETH,[es.EvmChain.LINEA]:ea.ETH,[es.EvmChain.POLYGON_ZKEVM]:ea.POLYGON_ZKEVM,[es.EvmChain.MANTLE]:ea.MANTLE,[es.EvmChain.SCROLL]:ea.SCROLL,[es.EvmChain.CENTRIFUGE]:ea.CENTRIFUGE}},ei.DEFAULT_ESTIMATED_GAS=7e5},29756:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),ei.getConfigs=void 0;let ed={},eu={resourceUrl:"http://localhost:4000",axelarRpcUrl:"https://axelar-testnet-rpc.axelar-dev.workers.dev",axelarLcdUrl:"https://axelar-testnet-lcd.axelar-dev.workers.dev",axelarGMPApiUrl:"https://testnet.api.gmp.axelarscan.io",axelarscanBaseApiUrl:"",depositServiceUrl:"https://deposit-service-devnet-release.devnet.axelar.dev",recoveryApiUrl:"https://axelar-signing-relayer-testnet.axelar.dev",axelarCrosschainApiUrl:"https://testnet.api.axelarscan.io/cross-chain",axelarscanUrl:"https://testnet.axelarscan.io",wssStatus:""},ef={resourceUrl:"https://nest-server-devnet.axelar.dev",axelarRpcUrl:"",axelarLcdUrl:"",axelarGMPApiUrl:"https://devnet.api.gmp.axelarscan.io",axelarscanBaseApiUrl:"",depositServiceUrl:"https://deposit-service-devnet-release.devnet.axelar.dev",recoveryApiUrl:"",axelarCrosschainApiUrl:"",axelarscanUrl:"",wssStatus:""},ep={resourceUrl:"https://nest-server-testnet.axelar.dev",axelarRpcUrl:"https://rpc-axelar-testnet.imperator.co:443",axelarLcdUrl:"https://lcd-axelar-testnet.imperator.co",depositServiceUrl:"https://deposit-service.testnet.axelar.dev",axelarGMPApiUrl:"https://testnet.api.gmp.axelarscan.io",axelarscanBaseApiUrl:"https://testnet.api.axelarscan.io",recoveryApiUrl:"https://axelar-signing-relayer-testnet.axelar.dev",axelarCrosschainApiUrl:"https://testnet.api.axelarscan.io/cross-chain",axelarscanUrl:"https://testnet.axelarscan.io",wssStatus:"wss://gopr1yb0jj.execute-api.us-east-2.amazonaws.com/Test"},em={resourceUrl:"https://nest-server-mainnet.axelar.dev",axelarRpcUrl:"https://mainnet.rpc.axelar.dev/chain/axelar",axelarLcdUrl:"https://lcd-axelar.imperator.co",axelarGMPApiUrl:"https://api.gmp.axelarscan.io",axelarscanBaseApiUrl:"https://api.axelarscan.io",depositServiceUrl:"https://deposit-service.mainnet.axelar.dev",recoveryApiUrl:"https://axelar-signing-relayer-mainnet.axelar.dev",axelarCrosschainApiUrl:"https://api.axelarscan.io/cross-chain",axelarscanUrl:"https://axelarscan.io",wssStatus:"wss://t36nphohri.execute-api.us-east-2.amazonaws.com/Prod"};ed.local=eu,ed.devnet=ef,ed.testnet=ep,ed.mainnet=em;let getConfigs=en=>{let ei=ed[en];if(!ei)throw Error(`config environment does not exist for environment: ${en}`);return ei};ei.getConfigs=getConfigs,es(eo(10654),ei),es(eo(88703),ei)},62083:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),es(eo(22899),ei),es(eo(18842),ei),es(eo(29756),ei),es(eo(25680),ei),es(eo(94754),ei),es(eo(47171),ei),es(eo(14923),ei),es(eo(97753),ei)},39377:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarAssetTransfer=void 0;let ed=eo(97466),eu=es(eo(54098)),ef=eo(56371),ep=eo(97753),em=eo(43527),eg=eo(94754),ey=eo(29756),eb=eo(46337),eS=es(eo(82892)),e_=es(eo(34831)),eR=es(eo(78443)),eA=eo(87902),ew=eo(18842),eO=eo(30076),eE=eo(24658),eP=eo(39385),eC=eo(28935),eT=es(eo(82369)),{HashZero:eB}=eA.constants;let AxelarAssetTransfer=class AxelarAssetTransfer{constructor(en){this.evmDenomMap={};let ei=(0,ey.getConfigs)(en.environment);this.environment=en.environment,this.resourceUrl=ei.resourceUrl,en.over
1writeResourceUrl&&(this.resourceUrl=en.overwriteResourceUrl),this.api=new em.RestService(this.resourceUrl),this.depositServiceApi=new em.RestService(ei.depositServiceUrl);let eo=(0,ey.getConfigs)(en.environment);this.axelarQueryApi=new eO.AxelarQueryAPI({environment:en.environment,axelarRpcUrl:eo.axelarRpcUrl,axelarLcdUrl:eo.axelarLcdUrl})}getDepositAddressForNativeWrap(en,ei,eo,es){return ea(this,void 0,void 0,function*(){yield(0,eg.throwIfInvalidChainIds)([en,ei],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([en,ei]);let ea=es||(yield this.axelarQueryApi.getContractAddressFromConfig(en,"default_refund_collector")),{address:ed}=yield this.getDepositAddressFromRemote("wrap",en,ei,eo,ea,eB),eu=yield this.validateOfflineDepositAddress("wrap",en,ei,eo,ea,eB);if(ed!==eu)throw Error("Deposit address mismatch");return ed})}getDepositAddressForNativeUnwrap(en,ei,eo,es="evm",ed){return ea(this,void 0,void 0,function*(){yield(0,eg.throwIfInvalidChainIds)([en,ei],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([en,ei]);let ea=ed||(yield this.axelarQueryApi.getContractAddressFromConfig("evm"===es?en:ei,"default_refund_collector")),{address:eu}=yield this.getDepositAddressFromRemote("unwrap",void 0,ei,eo,ea,eB),ef=yield this.validateOfflineDepositAddress("unwrap",en,ei,eo,ea,eB);if(eu!==ef)throw Error("Deposit address mismatch");let ep=yield this.getERC20Denom(ei),em=yield this.getDepositAddress(en,ei,eu,ep);return em})}getOfflineDepositAddressForERC20Transfer(en,ei,eo,es="evm",ed,eu){return ea(this,void 0,void 0,function*(){yield(0,eg.throwIfInvalidChainIds)([en,ei],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([en,ei]);let ea=eu||(yield this.axelarQueryApi.getContractAddressFromConfig("evm"===es?en:ei,"default_refund_collector")),{address:ef}=yield this.getDepositAddressFromRemote("erc20",en,ei,eo,ea,eB,ed);return ef})}getDepositAddressFromRemote(en,ei,eo,es,ed,eu,ef){return ea(this,void 0,void 0,function*(){let ea=`/deposit/${en}`;return ei&&(yield(0,eg.throwIfInvalidChainIds)([ei],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([ei])),eo&&(yield(0,eg.throwIfInvalidChainIds)([eo],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([eo])),this.depositServiceApi.post(ea,{salt:eu,source_chain:ei,destination_chain:eo,destination_address:es,refund_address:ed,token_symbol
1:ef}).then(en=>({address:en.address.toLowerCase()})).catch(()=>({address:""}))})}validateOfflineDepositAddress(en,ei,eo,es,ed,eu){return ea(this,void 0,void 0,function*(){yield(0,eg.throwIfInvalidChainIds)([ei,eo],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([ei,eo]);let ea=new ef.Interface(e_.default.abi),ep="wrap"===en?ea.encodeFunctionData("receiveAndSendNative",[ed,eo.toLowerCase(),es]):ea.encodeFunctionData("receiveAndUnwrapNative",[ed,es]),em=(0,ef.getCreate2Address)((yield this.axelarQueryApi.getContractAddressFromConfig("wrap"===en?ei:eo,"deposit_service")),eu,(0,ef.keccak256)((0,ef.solidityPack)(["bytes","bytes"],[eS.default.bytecode,ef.defaultAbiCoder.encode(["bytes","address"],[ep,ed])])));return em.toLowerCase()})}sendToken(en){return ea(this,void 0,void 0,function*(){let{fromChain:ei,toChain:eo,asset:ea}=en;yield(0,eg.throwIfInvalidChainIds)([ei,eo],this.environment);let es=yield this.getChains(),ed=es.find(en=>en.id===ei.toLowerCase());if(!(null==ea?void 0:ea.denom)&&!(null==ea?void 0:ea.symbol))throw Error("need to specify an asset");if(!ed)throw Error("cannot find chain"+ei);return"evm"===ed.module?this.sendTokenFromEvmChain(en):this.sendTokenFromCosmosChain(en)})}sendTokenFromEvmChain(en){var ei,eo,es,ed,eu,ef,ep,em,eg,ey;return ea(this,void 0,void 0,function*(){if(!(null===(eo=null===(ei=null==en?void 0:en.options)||void 0===ei?void 0:ei.evmOptions)||void 0===eo?void 0:eo.provider))throw"need a provider";if(!(null===(ed=null===(es=null==en?void 0:en.options)||void 0===es?void 0:es.evmOptions)||void 0===ed?void 0:ed.signer))throw"need a signer";if(!(null===(eu=en.asset)||void 0===eu?void 0:eu.denom)&&!(null===(ef=en.asset)||void 0===ef?void 0:ef.symbol))throw Error("need to specify an asset");let ea=en.asset.symbol||(yield this.axelarQueryApi.getSymbolFromDenom(en.asset.denom,en.fromChain.toLowerCase())),eb=yield eC.AxelarGateway.create(this.environment,en.fromChain,null===(em=null===(ep=en.options)||void 0===ep?void 0:ep.evmOptions)||void 0===em?void 0:em.provider);if(null===(ey=null===(eg=null==en?void 0:en.options)||void 0===eg?void 0:eg.evmOptions)||void 0===ey?void 0:ey.approveSendForMe){let ei=new eA.Contract((yield eb.getTokenAddress(ea)),eT.default,en.options.evmOptions.signer.connect(en.options.evmOptions.provider)),eo=yield ei.approve(eb.getGatewayAddress,en.amountInAtomicUnits);yield eo.wait()}let eS={destinationChain:en.toChain,destinationAddress:en.destinationAddress,symbol:ea,amount:en.amountInAtomicUnits},e_=yield eb.createSendTokenTx(eS);return e_.send(en.options.evmOptions.signer,en.options.evmOptions.txOptions)})}getChains(){return ea(this,void 0,void 0,function*(){return this.chains||(this.chains=yield(0,ew.loadChains)({environment:this.environment})),this.chains})}sendTokenFromCosmosChain(en){var ei;return ea(this,void 0,void 0,function*(){if(!(null===(ei=en.options)||void 0===ei?void 0:ei.cosmosOptions))throw"need a cosmos signer";let{options:{cosmosOptions:{cosmosDirectSigner:eo,rpcUrl:ea,fee:es}}}=en,ed=yield eE.SigningStargateClient.connectWithSigner(ea,eo),{address:eu}=(yield eo.getAccounts())[0],ef=yield this.populateUnsignedTx().sendToken(en).then(en=>en.getTx());return ed.signAndBroadcast(eu,ef,es)})}populateUnsignedTx(){let en;let ei={sendToken:eo=>ea(this,void 0,void 0,function*(){return en=yield this.generateUnsignedSendTokenTx(eo),ei}),getTx:()=>en};return ei}generateUnsignedSendTokenTx(en){var ei;return ea(this,void 0,void 0,function*(){if(!(null===(ei=en.options)||void 0===ei?void 0:ei.cosmosOptions))throw"need a cosmos signer";let{fromChain:eo,toChain:ea,destinationAddress:es,asset:ed,amountInAtomicUnits:eu,options:{cosmosOptions:{cosmosDirectSigner:ef,timeoutHeight:ep,timeoutTimestamp:em}}}=en;if(eo===ew.CHAINS[this.environment.toUpperCase()].AXELAR)throw"sending cross-chain using sendToken directly from Axelar network is currently not supported";let eg=yield this.getChains(),ey=eg.find(en=>en.id===eo.toLowerCase());if(!ey)throw Error("cannot find chain"+eo);let eb=JSON.stringify({destination_chain:ea,destination_address:es,payload:null,type:3}),{address:eS}=(yield ef.getAccounts())[0],e_="axelar1dv4u5k73pzqrxlzujxg3qp8kvc3pje7jtdvu72npnt5zhq05ejcsn5qme5";return[{typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:eP.MsgTransfer.fromPartial({sender:eS,receiver:e_,token:{denom:ed.denom,amount:eu},sourceChannel:ey.channelIdToAxelar,sourcePort:"transfer",timeoutHeight:ep,timeoutTimestamp:null!=em?em:(Date.now()+90)*1e9,memo:eb})}]})}getDepositAddress(en,ei,eo,es,eu){return ea(this,void 0,void 0,function*(){let ea,ef,ep,em,ey;"string"==typeof en?(ea=en,ef=ei,ep=eo,em=es,ey=eu):{fromChain:ea,toChain:ef,destinationAddress:ep,asset:em,options:ey}=en;let eS=(null==ey?void 0:ey._traceId)||(0,ed.v4)();yield(0,eg.throwIfInvalidChainIds)([ea,ef],this.environment);let e_=yield(0,eg.validateDestinationAddressByChainName)(ef,ep,this.environment);if(!e_)throw Error(`Invalid destination address for chain ${ef}`);let eR=yield(0,ew.loadChains)({environment:this.environment}),eA=eR.find(en=>en.id===ea.toLowerCase());if(!eA)throw Error("cannot find chain"+ea);let eO=eR.find(en=>en.id===ef.toLowerCase());if(!eO)throw Error("cannot find chain"+ef);if((0,eb.isNativeToken)(eA.id,em,this.environment))return this.getDepositAddressForNativeWrap(ea,ef,ep,null==ey?void 0:ey.refundAddress);if(eO.nativeAsset.includes(em)&&(null==ey?void 0:ey.shouldUnwrapIntoNative))return this.getDepositAddressForNativeUnwrap(ea,ef,ep,eA.module,ey.refundAddress);if("evm"===eA.module&&(null==ey?void 0:ey.erc20DepositAddressType)==="offline")return yield this.getOfflineDepositAddressForERC20Transfer(ea,ef,ep,"evm",(yield this.axelarQueryApi.getSymbolFromDenom(em,ea.toLowerCase())),null==ey?void 0:ey.refundAddress);let eE=(0,eg.createWallet)(),{validationMsg:eP}=yield this.getOneTimeCode(eE.address,eS),eC=yield eE.signMessage(eP),eT=yield this.getInitRoomId(ea,ef,ep,em,eE.address,eC,eS),eB=yield this.getLinkEvent(eT,ea,ef,ep),eN=this.extractDepositAddress(eB);return eN})}getOneTimeCode(en,ei){return ea(this,void 0,void 0,function*(){let eo=yield this.api.get(`${ep.CLIENT_API_GET_OTC}?publicAddress=${en}`,ei).then(en=>en).catch(en=>{throw en});return eo})}getInitRoomId(en,ei,eo,es,ed,eu,ef){var em;return ea(this,void 0,void 0,function*(){yield(0,eg.throwIfInvalidChainIds)([en,ei],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([en,ei]);let ea={fromChain:en,toChain:ei,destinationAddress:eo,asset:es,publicAddress:ed,signature:eu},ey=yield this.api.post(ep.CLIENT_API_POST_TRANSFER_ASSET,ea,ef).then(en=>en).catch(en=>{throw en}),eb=null===(em=null==ey?void 0:ey.data)||void 0===em?void 0:em.roomId;return eb})}getLinkEvent(en,ei,eo,es){return ea(this,void 0,void 0,function*(){yield(0,eg.throwIfInvalidChainIds)([ei,eo],this.environment),yield this.axelarQueryApi.throwIfInactiveChains([ei,eo]);let{newRoomId:ea}
1=yield this.getSocketService().joinRoomAndWaitForEvent(en,ei,eo,es).catch(en=>{throw en});return ea})}getSocketService(){return new em.SocketService(this.resourceUrl,this.environment)}extractDepositAddress(en){var ei;return null===(ei=JSON.parse(en))||void 0===ei?void 0:ei.depositAddress}getERC20Denom(en){var ei,eo;return ea(this,void 0,void 0,function*(){let ea=yield(0,ew.loadChains)({environment:this.environment}),es=null===(ei=ea.find(ei=>ei.id===(null==en?void 0:en.toLowerCase())))||void 0===ei?void 0:ei.chainName;if(!es)throw Error(`Chain id ${en} does not fit any supported chain`);if(!this.evmDenomMap[es.toLowerCase()]){let ei=yield this.getStaticInfo(),ea=null===(eo=ei.chains[es.toLowerCase()])||void 0===eo?void 0:eo.nativeAsset[0];if(ea)this.evmDenomMap[es.toLowerCase()]=ea;else throw Error(`Asset denom for ${en} not found`);return ea}return this.evmDenomMap[es.toLowerCase()]})}getStaticInfo(){return ea(this,void 0,void 0,function*(){return this.staticInfo||(this.staticInfo=yield(0,eu.default)(eR.default[this.environment]).then(en=>en.json()).catch(()=>void 0)),this.staticInfo})}};ei.AxelarAssetTransfer=AxelarAssetTransfer},28935:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarGateway=ei.AXELAR_GATEWAY=void 0;let ed=eo(87902),eu=eo(46337),ef=es(eo(82369)),ep=eo(48413),em=eo(96599),eg=eo(10654);ei.AXELAR_GATEWAY={[eu.Environment.MAINNET]:{[eg.EvmChain.ETHEREUM]:"0x4F4495243837681061C4743b74B3eEdf548D56A5",[eg.EvmChain.AVALANCHE]:"0x5029C0EFf6C34351a0CEc334542cDb22c7928f78",[eg.EvmChain.BNBCHAIN]:"0x304acf330bbE08d1e512eefaa92F6a57871fD895",[eg.EvmChain.FANTOM]:"0x304acf330bbE08d1e512eefaa92F6a57871fD895",[eg.EvmChain.POLYGON]:"0x6f015F16De9fC8791b234eF68D486d2bF203FBA8",[eg.EvmChain.MOONBEAM]:"0x4F4495243837681061C4743b74B3eEdf548D56A5",[eg.EvmChain.ARBITRUM]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.AURORA]:"0x304acf330bbE08d1e512eefaa92F6a57871fD895",[eg.EvmChain.BASE]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.CELO]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.KAVA]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.OPTIMISM]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.FILECOIN]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.MANTLE]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.SCROLL]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.CENTRIFUGE]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.IMMUTABLE]:"0xe432150cce91c13a887f7D836923d5597adD8E31"},[eu.Environment.TESTNET]:{[eg.EvmChain.ETHEREUM]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.AVALANCHE]:"0xC249632c2D40b9001FE907806902f63038B737Ab",[eg.EvmChain.BASE]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.BNBCHAIN]:"0x4D147dCb984e6affEEC47e44293DA442580A3Ec0",[eg.EvmChain.FANTOM]:"0x97837985Ec0494E7b9C71f5D3f9250188477ae14",[eg.EvmChain.POLYGON]:"0xBF62ef1486468a6bd26Dd669C06db43dEd5B849B",[eg.EvmChain.POLYGON_ZKEVM]:"0x999117D44220F33e0441fbAb2A5aDB8FF485c54D",[eg.EvmChain.MOONBEAM]:"0x5769D84DD62a6fD969856c75c7D321b84d455929",[eg.EvmChain.ARBITRUM]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.AURORA]:"0x304acf330bbE08d1e512eefaa92F6a57871fD895",[eg.EvmChain.CELO]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.KAVA]:"0xC8D18F85cB0Cee5C95eC29c69DeaF6cea972349c",[eg.EvmChain.OPTIMISM]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.LINEA]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.FILECOIN]:"0x999117D44220F33e0441fbAb2A5aDB8FF485c54D",[eg.EvmChain.MANTLE]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.SCROLL]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.SEPOLIA]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.IMMUTABLE]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.CENTRIFUGE_TESTNET]:"0xe432150cce91c13a887f7D836923d5597adD8E31",[eg.EvmChain.ARBITRUM_SEPOLIA]:"0xe432150cce91c13a887f7D836923d5597adD8E31"},[eu.Environment.DEVNET]:{[eg.EvmChain.ETHEREUM]:"0x7358799e0c8250f0B7D1164824F6Dd5bA31C9Cd6",[eg.EvmChain.AVALANCHE]:"0x4ffb57Aea2295d663B03810a5802ef2Bc322370D",[eg.EvmChain.MOONBEAM]:"0x1b23BE90a16efe8fD3008E742dDd9531dC5845b0"}};let AxelarGateway=class AxelarGateway{constructor(en,ei){this.provider=ei,this.gatewayAddress=en,this.contract=new ed.ethers.Contract(en,["event ContractCallWithToken(address indexed _from, string _sourceChain, string _destinationChain, bytes32 _txHash, bytes _data, string _token, uint256 _amount)","event ContractCall(address indexed sender,string destinationChain,string destinationContractAddress,bytes32 indexed payloadHash,bytes payload)","function callContract(string calldata destinationChain, string calldata contractAddress, bytes calldata payload) external","function callContractWithToken(string calldata destinationChain, string calldata contractAddress, bytes calldata payload, string calldata symbol, uint256 amount) external","function sendToken(string calldata destinationChain, string calldata destinationAddress, string calldata symbol, uint256 amount) external","function tokenFrozen(string calldata symbol) external view returns (bool)","function isCommandExecuted(bytes32 commandId) view returns (bool)","function tokenAddresses(string calldata symbol) view returns (address)"],ei)}static create(en,eo,es){var ed;return ea(this,void 0,void 0,function*(){let ea=ei.AXELAR_GATEWAY[en][eo];if(!ea){let ei=yield em.AxelarQueryClient.initOrGetAxelarQueryClient({environment:en});ea=null===(ed=yield ei.evm.GatewayAddress({chain:eo}))||void 0===ed?void 0:ed.address}return new AxelarGateway(ea,es)})}createCallContractTx(en){return ea(this,void 0,void 0,function*(){let ei=yield this.contract.populateTransaction.callContract(en.destinationChain,en.destinationContractAddress,en.payload);return new ep.GatewayTx(ei,this.provider)})}get getGatewayAddress(){return this.gatewayAddress}createCallContractWithTokenTx(en){return ea(this,void 0,void 0,function*(){let ei=yield this.contract.populateTransaction.callContractWithToken(en.destinationChain,en.destinationContractAddress,en.payload,en.symbol,en.amount);return new ep.GatewayTx(ei,this.provider)})}createSendTokenTx(en){return ea(this,void 0,void 0,function*(){let ei=yield this.contract.populateTransaction.sendToken(en.destinationChain,en.destinationAddress,en.symbol,en.amount);return new ep.GatewayTx(ei,this.provider)})}createApproveTx(en){return ea(this,void 0,void 0,function*(){let ei=en.tokenAddress,eo=new ed.ethers.Contract(ei,ef.default,this.provider),ea=yield eo.populateTransaction.approve(this.contract.address,en.amount||ed.ethers.constants.MaxUint256);return new ep.GatewayTx(ea,this.provider)})}getAllowance(en,ei){let eo=new ed.ethers.Contract(en,ef.default,this.provider);return eo.allowance(ei,this.contract.address)}isTokenFrozen(en){return this.contract.tokenFrozen(en)}isCommandExecuted(en){return this.contract.isCommandExecuted(en)}getTokenAddress(en){return this.contract.tokenAddresses(en)}getERC20TokenContract(en){return ea(this,void 0,void 0,function*(){return new ed.ethers.Contract((yield this.getTokenAddress(en)),ef.default,this.provider)})}getContract(){return this.contract}};ei.AxelarGateway=AxelarGateway},30076:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarQueryAPI=void 0;let ed=eo(56371),eu=eo(22899),ef=eo(29756),ep=eo(43527),em=eo(29756),eg=eo(96599),ey=es(eo(54098)),eb=eo(84212),eS=eo(94754),e_=eo(18842),eR=es(eo(78443)),eA=eo(87902),ew=eo(57633);let AxelarQueryAPI=class AxelarQueryAPI{constructor(en){this.chainsList=[],this.initQueryClientIfNeeded=()=>ea(this,void 0,void 0,function*(){this.axelarQueryClient||(this.axelarQueryClient=yield eg.AxelarQueryClient.initOrGetAxelarQueryClient({environment:this.environment,axelarRpcUrl:this.axelarRpcUrl}))});let{axelarLcdUrl:ei,axelarRpcUrl:eo,environment:es}=en,ed=(0,ef.getConfigs)(es);this.axelarRpcUrl=eo||ed.axelarRpcUrl,this.axelarLcdUrl=ei||ed.axelarLcdUrl,this.axelarGMPServiceUrl=ed.axelarGMPApiUrl,this.environment=es,this.lcdApi=new ep.RestService(this.axelarLcdUrl),this.rpcApi=new ep.RestService(this.axelarRpcUrl),this.axelarGMPServiceApi=new ep.RestService(this.axelarGMPServiceUrl),this._initializeAssets()}_initializeAssets(){return ea(this,void 0,void 0,function*(){this.allAssets=yield(0,eu.loadAssets)({environment:this.environment})})}getFeeForChainAndAsset(en,ei){return ea(this,void 0,void 0,function*(){return yield(0,eS.throwIfInvalidChainIds)([en],this.environment),yield this.initQueryClientIfNeeded(),this.axelarQueryClient.nexus.FeeInfo({chain:en,asset:yield this._convertAssetDenom(ei)})})}getEVMEvent(en,ei,eo){return ea(this,void 0,void 0,function*(){return yield(0,eS.throwIfInvalidChainIds)([en],this.environment),yield this.initQueryClientIfNeeded(),this.axelarQueryClient.evm.Event({chain:en,eventId:`${ei}-${eo}`}).catch(()=>void 0)})}getConfirmationHeight(en){return ea(this,void 0,void 0,function*(){yield(0,eS.throwIfInvalidChainIds)([en],this.environment),yield this.initQueryClientIfNeeded();let ei=yield this.getChainInfo(en);return(null==ei?void 0:ei.confirmLevel)||0})}getTransferFee(en,ei,eo,es){return ea(this,void 0,void 0,function*(){return yield(0,eS.throwIfInvalidChainIds)([en,ei],this.environment),yield this.initQueryClientIfNeeded(),this.axelarQueryClient.nexus.TransferFee({sourceChain:en,destinationChain:ei,amount:`${es.toString()}${yield this._convertAssetDenom(eo)}`})})}getGasInfo(en,ei,eo){return ea(this,void 0,void 0,function*(){yield(0,eS.throwIfInvalidChainIds)([en,ei],this.environment);let ea=new URLSearchParams({method:"getGasPrice",destinationChain:ei,sourceChain:en,sourceTokenSymbol:eo}
1);return this.axelarGMPServiceApi.get(`?${ea}`).then(en=>en.result)})}getNativeGasBaseFee(en,ei,eo,es,eu,ef,ep,em){return ea(this,void 0,void 0,function*(){yield(0,eS.throwIfInvalidChainIds)([en,ei],this.environment),yield this.throwIfInactiveChains([en,ei]);let ea={method:"getFees",destinationChain:ei,sourceChain:en};return eo&&(ea.sourceTokenSymbol=eo),es&&(ea.symbol=es),eu&&(ea.destinationContractAddress=eu),ef&&(ea.sourceContractAddress=ef),ep?ea.amount=ep:em&&(ea.amountInUnits=em),this.axelarGMPServiceApi.post("",ea).then(en=>{let{source_base_fee_string:ei,source_token:eo,destination_native_token:ea,express_fee_string:es,express_supported:eu}=en.result,{decimals:ef}=eo,ep=(0,ed.parseUnits)(ei,ef).toString(),em=es?(0,ed.parseUnits)(es,ef).toString():"0";return{baseFee:ep,expressFee:em,sourceToken:eo,destToken:{gas_price:ea.gas_price,gas_price_gwei:parseInt(ea.gas_price_gwei).toString(),decimals:ea.decimals},apiResponse:en,success:!0,expressSupported:eu}})})}estimateGasFee(en,ei,eo,es=em.DEFAULT_ESTIMATED_GAS,ed=1.1,eu="0",ef){return ea(this,void 0,void 0,function*(){yield(0,eS.throwIfInvalidChainIds)([en,ei],this.environment);let ea=yield this.getNativeGasBaseFee(en,ei,eo,null==ef?void 0:ef.tokenSymbol,null==ef?void 0:ef.destinationContractAddress,null==ef?void 0:ef.sourceContractAddress,null==ef?void 0:ef.transferAmount,null==ef?void 0:ef.transferAmountInUnits),{baseFee:ep,expressFee:em,sourceToken:eg,destToken:ey,apiResponse:eb,success:e_,expressSupported:eR}=ea;if(!e_||!ep||!eg)throw Error("Failed to estimate gas fee");let eO=ew.BigNumberUtils.multiplyToGetWei(eA.BigNumber.from(es),ey.gas_price,ey.decimals),eE=eA.BigNumber.from(es).mul(eu),eP=ew.BigNumberUtils.multiplyToGetWei(eA.BigNumber.from(es),eg.gas_price,eg.decimals),eC=eO.gt(eE)?eP:eP.mul(eE).div(eO),eT=ed>1?eC.mul(1e4*ed).div(1e4):eC;return(null==ef?void 0:ef.showDetailedFees)?{baseFee:ep,expressFee:em,executionFee:eC.toString(),executionFeeWithMultiplier:eT.toString(),gasLimit:es,gasMultiplier:ed,minGasPrice:"0"===eu?"NA":eu,apiResponse:eb,isExpressSupported:eR}:eT.add(ep).toString()})}getDenomFromSymbol(en,ei){return ea(this,void 0,void 0,function*(){this.allAssets||(yield this._initializeAssets());let eo=this.allAssets.find(eo=>{var ea,es;return(null===(es=null===(ea=eo.chain_aliases[ei])||void 0===ea?void 0:ea.assetSymbol)||void 0===es?void 0:es.toLowerCase())===(null==en?void 0:en.toLowerCase())&&!eo.is_gas_token});return eo?eo.common_key[this.environment]:null})}getSymbolFromDenom(en,ei){return ea(this,void 0,void 0,function*(){this.allAssets||(yield this._initializeAssets());let eo=this.allAssets.find(ei=>ei.common_key[this.environment]===en&&!ei.is_gas_token);return eo?eo.chain_aliases[ei].assetSymbol:null})}getAssetConfigFromDenom(en,ei){return ea(this,void 0,void 0,function*(){this.allAssets||(yield this._initializeAssets());let eo=this.allAssets.find(ei=>ei.common_key[this.environment]===en&&!ei.is_gas_token);if(!eo)return null;let ea=eo.chain_aliases[ei];return ea?(ea.decimals=eo.decimals,ea.common_key=eo.common_key[this.environment],ea):null})}getContractAddressFromConfig(en,ei){return ea(this,void 0,void 0,function*(){let eo=yield this.getChainInfo(en);if(!eo)throw`getContractAddressFromConfig() ${en} not found`;return yield(0,ey.default)(eR.default[this.environment]).then(en=>en.json()).then(eo=>eo.assets.network[en.toLowerCase()][ei]).catch(()=>void 0)})}getActiveChains(){return ea(this,void 0,void 0,function*(){return yield this.initQueryClientIfNeeded(),this.axelarQueryClient.nexus.Chains({status:eb.ChainStatus.CHAIN_STATUS_ACTIVATED}).then(en=>en.chains)})}isChainActive(en){return ea(this,void 0,void 0,function*(){return this.getActiveChains().then(en=>en.map(en=>en.toLowerCase())).then(ei=>ei.includes(en.toLowerCase()))})}throwIfInactiveChains(en){return ea(this,void 0,void 0,function*(){let ei=yield Promise.all(en.map(en=>this.isChainActive(en)));for(let eo=0;eo<en.length;eo++)if(!ei[eo])throw Error(`Chain ${en[eo]} is not active. Please check the list of active chains using the getActiveChains() method.`)})}getTransferLimit({fromChainId:en,toChainId:ei,denom:eo,proportionOfTotalLimitPerTransfer:es=4}){return ea(this,void 0,void 0,function*(){let ea=yield this.getTransferLimitNexusQuery({chainId:en,denom:eo}),ed=yield this.getTransferLimitNexusQuery({chainId:ei,denom:eo});try{let eu;let{limit:ef}=ea,{limit:ep}=ed;if(!ef&&!ep)throw Error(`could not fetch transfer limit for transfer from ${en} to ${ei} for ${eo}`);if(ef&&ep){let en=eA.BigNumber.from(ef),ei=eA.BigNumber.from(ep);eu=en.lt(ei)?en:ei}else eu=eA.BigNumber.from(ef||ep);return eu.div(es).toString()}catch(en){return""}})}getTransferLimitNexusQuery({chainId:en,denom:ei}){return ea(this,void 0,void 0,function*(){yield(0,eS.throwIfInvalidChainIds)([en],this.environment);let eo=this.getChainInfo(en);if(!eo)throw`Chain ${en} not found`;let ea=yield eg.AxelarQueryClient.initOrGetAxelarQueryClient({environment:this.environment}),es=yield this._convertAssetDenom(ei);try{let eo=yield ea.nexus.TransferRateLimit({chain:en,asset:es}),{transferRateLimit:ed}=eo;if(!ed||!ed.limit||!ed.incoming||!ed.outgoing)throw Error(`did not receive a valid response to ${en} / ${ei} transfer query`);let{limit:eu,incoming:ef,outgoing:ep}=ed;return{limit:new TextDecoder("utf-8").decode(new Uint8Array(eu)),outgoing:new TextDecoder("utf-8").decode(new Uint8Array(ep)),incoming:new TextDecoder("utf-8").decode(new Uint8Array(ef))}}catch(en){return{limit:"",outgoing:"",incoming:""}}})}getChainInfo(en){return ea(this,void 0,void 0,function*(){0===this.chainsList.length&&(this.chainsList=yield(0,e_.loadChains)({environment:this.environment}));let ei=this.chainsList.find(ei=>ei.id.toLowerCase()===en.toLowerCase());return ei})}_convertAssetDenom(en){return ea(this,void 0,void 0,function*(){this.allAssets||(yield this._initializeAssets());let ei=this.allAssets.find(ei=>ei.common_key[this.environment]===en.toLowerCase());if(!ei)throw`Asset ${en} not found`;return ei.wrapped_erc20?ei.wrapped_erc20:en})}};ei.AxelarQueryAPI=AxelarQueryAPI},96599:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarQueryClient=void 0;let es=eo(24658),ed=eo(73034),eu=eo(29756),ef=eo(97087);let AxelarQueryClient=class AxelarQueryClient extends es.QueryClient{static initOrGetAxelarQueryClient(en){return ea(this,void 0,void 0,function*(){let{axelarRpcUrl:ei,environment:eo}=en,ea=(0,eu.getConfigs)(eo),ep=ei||ea.axelarRpcUrl;return es.QueryClient.withExtensions((yield ed.Tendermint34Client.connect(ep)),ef.setupQueryExtension)})}};ei.AxelarQueryClient=AxelarQueryClient},97087:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupQueryExtension=void 0;let ea=eo(35352),es=eo(66926),ed=eo(62370),eu=eo(4479),ef=eo(24658);function setupQueryExtension(en){let ei=(0,ef.createProtobufRpcClient)(en);return{evm:new ea.QueryServiceClientImpl(ei),axelarnet:new es.QueryServiceClientImpl(ei),nexus:new ed.QueryServiceClientImpl(ei),tss:new eu.QueryServiceClientImpl(ei)}}ei.setupQueryExtension=setupQueryExtension},10176:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.STANDARD_FEE=void 0,ei.STANDARD_FEE={amount:[{denom:"uaxl",amount:"1000"}],gas:"5000000"}},53773:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)},ed=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarSigningClient=void 0;let eu=eo(29756),ef=eo(24658),ep=eo(74087),em=eo(55979),eg=eo(73034),ey=eo(29639),eb=eo(46410);let AxelarSigningClient=class AxelarSigningClient extends ef.SigningStargateClient{constructor(en,ei,eo,ea){super(en,ei,ea),this.signerAddress=eo}static initOrGetAxelarSigningClient(en){return ed(this,void 0,void 0,function*(){let ei;let{axelarRpcUrl:eo,environment:ea,options:es,cosmosBasedWalletDetails:ed}=en,ef=(0,eu.getConfigs)(ea),ey=eo||ef.axelarRpcUrl,eS=yield eg.Tendermint34Client.connect(ey),e_="axelar";if(ed.mnemonic)ei=yield ep.DirectSecp256k1HdWallet.fromMnemonic(ed.mnemonic,{prefix:e_});else if(ed.offlineSigner)ei=ed.offlineSigner;else throw"you need to pass in either a wallet mnemonic string or offline signer";let[eR]=yield ei.getAccounts(),eA=es.registry||new ep.Registry;(0,em.registerAxelarnetTxTypes)(eA),(0,eb.registerEvmTxTypes)(eA);let ew=Object.assign(Object.assign({},es),{registry:eA});return new AxelarSigningClient(eS,ei,eR.address,ew)})}signThenBroadcast(en,ei,eo){return super.signAndBroadcast(this.signerAddress,en,ei,eo)}signAndGetTxBytes(en,ei,eo,ea){let es=Object.create(null,{sign:{get:()=>super.sign}});return ed(this,void 0,void 0,function*(){let ed=yield es.sign.call(this,this.signerAddress,en,ei,eo,ea);return ey.TxRaw.encode(ed).finish()})}};ei.AxelarSigningClient=AxelarSigningClient,es(eo(10176),ei)},55979:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.registerAxelarnetTxTypes=void 0;let ea=eo(50378),es={AxelarnetLinkRequest:`/${ea.protobufPackage}.LinkRequest`,AxelarnetConfirmDepositRequest:`/${ea.protobufPackage}.ConfirmDepositRequest`,AxelarnetExecutePendingTransfersRequest:`/${ea.protobufPackage}.ExecutePendingTransfersRequest`,AxelarnetRegisterIBCPathRequest:`/${ea.protobufPackage}.RegisterIBCPathRequest`,AxelarnetAddCosmosBasedChainRequest:`/${ea.protobufPackage}.AddCosmosBasedChainRequest`,AxelarnetRegisterAssetRequest:`/${ea.protobufPackage}.RegisterAssetRequest`,AxelarnetRouteIBCTransfersRequest:`/${ea.protobufPackage}.RouteIBCTransfersRequest`,AxelarnetRegisterFeeCollectorRequest:`/${ea.protobufPackage}.RegisterFeeCollectorRequest`,AxelarnetRouteMessageRequest:`/${ea.protobufPackage}.RouteMessageRequest`},registerAxelarnetTxTypes=en=>{en.register(es.AxelarnetLinkRequest,ea.LinkRequest),en.register(es.AxelarnetConfirmDepositRequest,ea.ConfirmDepositRequest),en.register(es.AxelarnetExecutePendingTransfersRequest,ea.ExecutePendingTransfersRequest),en.register(es.AxelarnetRegisterIBCPathRequest,ea.RegisterIBCPathRequest),en.register(es.AxelarnetAddCosmosBasedChainRequest,ea.AddCosmosBasedChainRequest),en.register(es.AxelarnetRegisterAssetRequest,ea.RegisterAssetRequest),en.register(es.AxelarnetRouteIBCTransfersRequest,ea.RouteIBCTransfersRequest),en.register(es.AxelarnetRegisterFeeCollectorRequest,ea.RegisterFeeCollectorRequest),en.register(es.AxelarnetRouteMessageRequest,ea.RouteMessageRequest)};ei.registerAxelarnetTxTypes=registerAxelarnetTxTypes},46410:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.registerEvmTxTypes=void 0;let ea=eo(32180),es={EvmLinkRequest:`/${ea.protobufPackage}.LinkRequest`,EvmSetGatewayRequest:`/${ea.protobufPackage}.SetGatewayRequest`,EvmConfirmGatewayTxRequest:`/${ea.protobufPackage}.ConfirmGatewayTxRequest`,EvmConfirmDepositRequest:`/${ea.protobufPackage}.ConfirmDepositRequest`,EvmConfirmTokenRequest:`/${ea.protobufPackage}.ConfirmTokenRequest`,EvmConfirmTransferKeyRequest:`/${ea.protobufPackage}.ConfirmTransferKeyRequest`,EvmCreateBurnTokensRequest:`/${ea.protobufPackage}.CreateBurnTokensRequest`,EvmCreateDeployTokenRequest:`/${ea.protobufPackage}.CreateDeployTokenRequest`,EvmCreatePendingTransfersRequest:`/${ea.protobufPackage}.CreatePendingTransfersRequest`,EvmCreateTransferOperatorshipRequest:`/${ea.protobufPackage}.CreateTransferOperatorshipRequest`,EvmCreateTransferOwnershipRequest:`/${ea.protobufPackage}.CreateTransferOwnershipRequest`,EvmSignCommandsRequest:`/${ea.protobufPackage}.SignCommandsRequest`,EvmAddChainRequest:`/${ea.protobufPackage}.AddChainRequest`,EvmRetryFailedEventRequest:`/${ea.protobufPackage}.RetryFailedEventRequest`},registerEvmTxTypes=en=>{en.register(es.EvmLinkRequest,ea.LinkRequest),en.register(es.EvmSetGatewayRequest,ea.SetGatewayRequest),en.register(es.EvmConfirmGatewayTxRequest,ea.ConfirmGatewayTxRequest),en.register(es.EvmConfirmDepositRequest,ea.ConfirmDepositRequest),en.register(es.EvmConfirmTokenRequest,ea.ConfirmTokenRequest),en.register(es.EvmConfirmTransferKeyRequest,ea.ConfirmTransferKeyRequest),en.register(es.EvmCreateBurnTokensRequest,ea.CreateBurnTokensRequest),en.register(es.EvmCreateDeployTokenRequest,ea.CreateDeployTokenRequest),en.register(es.EvmCreatePendingTransfersRequest,ea.CreatePendingTransfersRequest),en.register(es.EvmCreateTransferOperatorshipRequest,ea.CreateTransferOperatorshipRequest),en.register(es.EvmCreateTransferOwnershipRequest,ea.CreateTransferOwnershipRequest),en.register(es.EvmSignCommandsRequest,ea.SignCommandsRequest),en.register(es.EvmAddChainRequest,ea.AddChainRequest),en.register(es.EvmRetryFailedEventRequest,ea.RetryFailedEventRequest)};ei.registerEvmTxTypes=registerEvmTxTypes},57633:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.BigNumberUtils=void 0;let ea=eo(87902),es=eo(56371);let BigNumberUtils=class BigNumberUtils{static multiplyToGetWei(en,ei,eo){if(ei.toString().split(".")[1].length<=eo)return ea.BigNumber.from(en).mul((0,es.parseUnits)(ei,eo));{let ed=Math.pow(10,eo);return ea.BigNumber.from(en).mul((0,es.parseUnits)((Number(ei)*ed).toFixed(eo),eo)).div(ed)}}static divideToGetWei(en,ei,eo){return ea.BigNumber.from(en).div((0,es.parseUnits)(ei,eo))}};ei.BigNumberUtils=BigNumberUtils},48413:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.GatewayTx=void 0;let GatewayTx=class GatewayTx{constructor(en,ei){this.txRequest={to:en.to,data:en.data,value:en.value},this.provider=ei}send(en,ei){let eo=Object.assign(Object.assign({},this.txRequest),ei);
1return en.connect(this.provider).sendTransaction(eo)}estimateGas(){return this.provider.estimateGas(this.txRequest)}};ei.GatewayTx=GatewayTx},68781:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarDepositRecoveryAPI=void 0;let es=eo(88224),ed=eo(61309),eu=eo(18842),ef=eo(8160),ep=eo(94754);let AxelarDepositRecoveryAPI=class AxelarDepositRecoveryAPI extends es.AxelarRecoveryApi{constructor(en){super(en)}confirmDeposit(en){return ea(this,void 0,void 0,function*(){yield(0,ep.throwIfInvalidChainIds)([en.from],this.environment);let ei=(yield(0,eu.loadChains)({environment:this.environment})).find(ei=>ei.id.toLowerCase()===en.from.toLowerCase());if(!ei)throw Error("cannot find chain"+en.from);let eo=yield this.execRecoveryUrlFetch("/confirm_deposit_tx",Object.assign(Object.assign({},en),{sourceChain:ei.chainIdentifier[this.environment],module:ei.module})),ea=yield(0,ed.broadcastCosmosTxBytes)(eo,this.axelarRpcUrl);return"evm"===ei.module?(0,ef.parseConfirmDepositEvmResponse)(ea):(0,ef.parseConfirmDepositCosmosResponse)(ea)})}routeIBCTransfers(){return ea(this,void 0,void 0,function*(){let en=yield this.execRecoveryUrlFetch("/route_ibc_transfers",{module:"axelarnet"});return(0,ed.broadcastCosmosTxBytes)(en,this.axelarRpcUrl)})}};ei.AxelarDepositRecoveryAPI=AxelarDepositRecoveryAPI},9818:function(en,ei,eo){"use strict";var ea,es=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},ed=this&&this.__rest||function(en,ei){var eo={};for(var ea in en)Object.prototype.hasOwnProperty.call(en,ea)&&0>ei.indexOf(ea)&&(eo[ea]=en[ea]);if(null!=en&&"function"==typeof Object.getOwnPropertySymbols)for(var es=0,ea=Object.getOwnPropertySymbols(en);es<ea.length;es++)0>ei.indexOf(ea[es])&&Object.prototype.propertyIsEnumerable.call(en,ea[es])&&(eo[ea[es]]=en[ea[es]]);return eo},eu=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarGMPRecoveryAPI=ei.getCosmosSigner=ei.RouteDir=ei.GMPErrorMap=void 0;let ef=eo(46337),ep=eo(88224),em=eu(eo(95205)),eg=eu(eo(54155)),ey=eo(87902),eb=eo(29756),eS=eo(30076),e_=eu(eo(77290)),eR=eo(3932),eA=eu(eo(82369)),ew=eo(28935),eO=eo(62533),eE=eo(95001),eP=eo(88763),eC=eo(94754),eT=eo(79339),eB=eo(56371),eN=eu(eo(78443)),eI=eo(24658),ex=eo(44014);ei.GMPErrorMap={[ep.GMPStatus.CANNOT_FETCH_STATUS]:ef.ApproveGatewayError.FETCHING_STATUS_FAILED,[ep.GMPStatus.DEST_EXECUTED]:ef.ApproveGatewayError.ALREADY_EXECUTED,[ep.GMPStatus.DEST_GATEWAY_APPROVED]:ef.ApproveGatewayError.ALREADY_APPROVED},function(en){en.COSMOS_TO_EVM="cosmos_to_evm",en.EVM_TO_COSMOS="evm_to_cosmos",en.EVM_TO_EVM="evm_to_evm"}(ea=ei.RouteDir||(ei.RouteDir={}));let getCosmosSigner=(en,ei)=>es(void 0,void 0,void 0,function*(){return eI.SigningStargateClient.connectWithSigner(en,ei)});function matchesOriginalTokenPayment(en,ei){return"autocalculate"===en||(null==en?void 0:en.denom)===ei}function getIBCDenomOnSrcChain(en,ei,eo){let ea=eo.assets[null!=en?en:"uaxl"],es=ea.chain_aliases[ei.chainName.toLowerCase()],ed=null==es?void 0:es.ibcDenom;if(!ed)throw Error("cannot find token that matches original gas payment");return ed}ei.getCosmosSigner=getCosmosSigner;let AxelarGMPRecoveryAPI=class AxelarGMPRecoveryAPI extends ep.AxelarRecoveryApi{constructor(en){super(en),this.axelarQueryApi=new eS.AxelarQueryAPI({environment:en.environment,axelarRpcUrl:this.axelarRpcUrl,axelarLcdUrl:this.axelarLcdUrl})}saveGMP(en,ei,eo,ea,ed,eu){let ef=Object.create(null,{getAxelarGMPApiUrl:{get:()=>super.getAxelarGMPApiUrl}});return es(this,void 0,void 0,function*(){return yield this.execPost(ef.getAxelarGMPApiUrl,"",{method:"saveGMP",sourceTransactionHash:en,transactionHash:ed,sourceTransactionIndex:eo,sourceTransactionLogIndex:ea,relayerAddress:ei,error:eu})})}getCidFromSrcTxHash(en,ei,eo){return(0,eP.getCommandId)(en,ei,eo,this.environment,e_.default)}doesTxMeetConfirmHt(en,ei){return es(this,void 0,void 0,function*(){let eo=yield this.get
1Signer(en,{useWindowEthereum:!1}).provider.getTransactionReceipt(ei).then(eo=>es(this,void 0,void 0,function*(){if(!eo){let eo=yield this.fetchGMPTransaction(ei),ea=yield this.getSigner(en,{useWindowEthereum:!1}).provider.getBlockNumber();return ea-eo.call.blockNumber}return console.log(eo),eo.confirmations}));return this.axelarQueryApi.getConfirmationHeight(en).then(en=>en<=eo).catch(()=>void 0)})}isEVMEventFailed(en){var ei;if(en)return[eT.Event_Status.STATUS_FAILED,eT.Event_Status.STATUS_UNSPECIFIED].includes(null===(ei=en.event)||void 0===ei?void 0:ei.status)}isEVMEventConfirmed(en){var ei;if(en)return(null===(ei=en.event)||void 0===ei?void 0:ei.status)===eT.Event_Status.STATUS_CONFIRMED}isEVMEventCompleted(en){var ei;if(en)return(null===(ei=en.event)||void 0===ei?void 0:ei.status)===eT.Event_Status.STATUS_COMPLETED}getEvmEvent(en,ei,eo,ea){return es(this,void 0,void 0,function*(){let es=null!=ea?ea:yield this.getEventIndex(en,eo).then(en=>en).catch(()=>-1);if(-1===es)return{success:!1,errorMessage:`getEvmEvent(): could not find event index for ${eo}`,commandId:"",eventResponse:{},infoLog:""};let ed=this.getCidFromSrcTxHash(ei,eo,es),eu=yield this.axelarQueryApi.getEVMEvent(en,eo,es);if(!eu||this.isEVMEventFailed(eu)){let en=this.isEVMEventFailed(eu)?`getEvmEvent(): event on source chain is not successful for: ${eo}`:`getEvmEvent(): could not determine status of event: ${eo}`;return{success:!1,errorMessage:en,commandId:ed,eventResponse:{},infoLog:`srcTxHash: ${eo}, generated commandId: ${ed}`}}return{success:!0,commandId:ed,eventResponse:eu,errorMessage:"",infoLog:`${eo} correspondes to command ID: ${ed}`}})}findEventAndConfirmIfNeeded(en,ei,eo,ea,ed){return es(this,void 0,void 0,function*(){this.debugMode&&console.debug(`confirmation: checking whether ${eo} needs to be confirmed on Axelar`);let es=yield this.getEvmEvent(en,ei,eo,ea),{infoLog:ed}=es;if(this.debugMode&&console.debug(`confirmation: ${ed}`),this.isEVMEventCompleted(es.eventResponse)||this.isEVMEventConfirmed(es.eventResponse))return{success:!0,commandId:es.commandId,eventResponse:es.eventResponse,infoLogs:[`confirmation: event for ${eo} was already detected on the network and did not need to be confirmed`]};{let eu=yield this.doesTxMeetConfirmHt(en,eo);if(!eu){let ei=yield this.axelarQueryApi.getConfirmationHeight(en);return{success:!1,commandId:es.commandId,eventResponse:es.eventResponse,infoLogs:[],errorMessage:`findEventAndConfirmIfNeeded(): ${eo} is not confirmed on ${en}. The minimum confirmation height is ${ei}`}}let ef=yield this.confirmGatewayTx(eo,en).catch(()=>void 0);if(!ef)return{success:!1,commandId:es.commandId,eventResponse:es.eventResponse,infoLogs:[],errorMessage:"findEventAndConfirmIfNeeded(): could not confirm transaction on Axelar"};let ep=yield this.getEvmEvent(en,ei,eo,ea);return this.isEVMEventCompleted(null==ep?void 0:ep.eventResponse)?{success:!0,commandId:ep.commandId,eventResponse:ep.eventResponse,infoLogs:[`confirmation: successfully confirmed ${eo} on Axelar; confirmed event was finalized`,ed]}:{success:!1,eventResponse:es.eventResponse,commandId:ep.commandId,errorMessage:`findEventAndConfirmIfNeeded(): could not confirm and finalize event successfully: ${eo};. Your transaction may not have enough confirmations yet.`,infoLogs:[`confirmation: successfully confirmed ${eo} on Axelar; confirmed event was unable to be finalized`,ed]}}})}findBatchAndSignIfNeeded(en,ei){return es(this,void 0,void 0,function*(){let eo="";try{let ea=yield(0,eC.retry)(()=>this.fetchBatchData(ei,en),10,3e3);if(ea)return eo=`signing: batch data exists so do not need to sign. commandId: ${en}, batchId: ${ea.batch_id}`,this.debugMode&&console.debug(eo),{success:!0,infoLogs:[eo]};{let ea=yield this.signCommands(ei);return eo=`signing: signed batch for commandId (${en}) in tx: ${ea.transactionHash}`,this.debugMode&&console.debug(eo),{success:!0,signCommandTx:ea,infoLogs:[eo]}}}catch(ei){return{success:!1,errorMessage:`findBatchAndSignIfNeeded(): issue retrieving and signing command data: ${en}`,infoLogs:[eo]}}})}findBatchAndApproveGateway(en,ei,eo){return es(this,void 0,void 0,function*(){return this.debugMode&&console.debug(`broadcasting: checking for command ID: ${en} to broadcast`),(0,eC.retry)(()=>es(this,void 0,void 0,function*(){let ea=yield this.fetchBatchData(ei,en);if(!ea)return Promise.reject(`findBatchAndApproveGateway(): unable to retrieve batch data for ${en}`);let es=ea.command_ids.find(ei=>ei===en);if(!es)return Promise.reject(`findBatchAndApproveGateway(): unable to retrieve command ID (${en}) in batch data`);if("BATCHED_COMMANDS_STATUS_SIGNING"===ea.status)return Promise.reject(`findBatchAndApproveGateway(): batch ID ${ea.batch_id} signing in process`);if("BATCHED_COMMANDS_STATUS_SIGNED"!==ea.status)return Promise.reject(`findBatchAndApproveGateway(): batch ID ${ea.batch_id} is in an unknown state for command data: ${en}`);{let en=yield this.sendApproveTx(ei,ea.execute_data,eo);return{success:!0,approveTx:en,infoLogs:[`broadcasting: batch ID ${ea.batch_id} broadcasted to ${ei}`]}}}),3,10).catch(ei=>({success:!1,errorMessage:ei.message||ei||`findBatchAndApproveGatewayIfNeeded(): issue retrieving and broadcasting command data: ${en}`,infoLogs:[]}))})}manualRelayToDestChain(en,eo,ed,eu,ef=!0,ep){return es(this,void 0,void 0,function*(){let{callTx:es,status:em}=yield this.queryTransactionStatus(en,eo);if(ei.GMPErrorMap[em])return{success:!1,error:ei.GMPErrorMap[em]};let eg=es.chain,ey=es.returnValues.destinationChain,eb=null!=ed?ed:es._logIndex,eS=yield this.getChainInfo(eg),e_=yield this.getChainInfo(ey),eR=this.getRouteDir(eS,e_),eA=eu||{useWindowEthereum:!0};return eR===ea.COSMOS_TO_EVM?this.recoverCosmosToEvmTx(en,eA,ep):eR===ea.EVM_TO_COSMOS?this.recoverEvmToCosmosTx(eg,en,eb):this.recoverEvmToEvmTx(eg,ey,en,eb,eA,ef)})}getRouteDir(en,ei){return"axelarnet"===en.module&&"evm"===ei.module?ea.COSMOS_TO_EVM:"evm"===en.module&&"axelarnet"===ei.module?ea.EVM_TO_COSMOS:ea.EVM_TO_EVM}recoverEvmToCosmosTx(en,ei,eo){return es(this,void 0,void 0,function*(){let ea=yield this.doesTxMeetConfirmHt(en,ei);if(!ea){let eo=yield this.axelarQueryApi.getConfirmationHeight(en);return{success:!1,error:`${ei} is not confirmed on ${en}. The minimum confirmation height is ${eo}`}}let es=yield this.confirmGatewayTx(ei,en).catch(()=>void 0);if(!es)return{success:!1,error:"Failed to send ConfirmGatewayTx to Axelar"};let ed=yield this.fetchGMPTransaction(ei).then(en=>en.call.returnValues.payload),eu=null!=eo?eo:yield this.getEventIndex(en,ei),ef=yield this.routeMessageRequest(ei,ed,eu).cat
1ch(()=>void 0);return ef?{success:!0,confirmTx:es,routeMessageTx:ef,infoLogs:[`Successfully sent ConfirmGatewayTx tx for given tx hash ${ei}`,`Successfully sent RouteMessage tx for given tx hash ${ei}`]}:{success:!1,error:"Failed to send RouteMessage to Axelar"}})}recoverCosmosToEvmTx(en,ei,eo){return es(this,void 0,void 0,function*(){let ea=yield this.fetchGMPTransaction(en),{messageId:es,payload:ed,destinationChain:eu}=ea.call.returnValues,{command_id:ef}=ea,ep=null!=eo?eo:es,em=yield this.routeMessageRequest(ep,ed,-1).catch(()=>void 0);if(!em)return{success:!1,error:"Failed to send RouteMessage to Axelar"};let eg=yield this.signAndApproveGateway(ef,eu,ei);if(!eg.success)return{success:!1,error:eg.error};let{signCommandTx:ey,infoLogs:eb}=eg;return{success:!0,routeMessageTx:em,signCommandTx:ey,infoLogs:[`Successfully sent RouteMessage tx for given ${en}`,...eb]}})}recoverEvmToEvmTx(en,ei,eo,ea,ed,eu=!0){return es(this,void 0,void 0,function*(){try{let es=yield this.findEventAndConfirmIfNeeded(en,ei,eo,ea,ed);if(!(null==es?void 0:es.success))return{success:!1,error:es.errorMessage||ef.ApproveGatewayError.ERROR_BATCHED_COMMAND};let{infoLogs:ep,commandId:em,confirmTx:eg}=es;if(eg&&eu)return{success:!0,confirmTx:eg,infoLogs:ep};let ey=yield this.signAndApproveGateway(em,ei,ed);if(!ey.success)return{success:!1,error:ey.error};let{signCommandTx:eb,approveTx:eS,infoLogs:e_}=ey;return{success:!0,confirmTx:eg,signCommandTx:eb,approveTx:eS,infoLogs:[...ep,...e_]}}catch(en){return{success:!1,error:en.message||ef.ApproveGatewayError.CONFIRM_COMMAND_FAILED}}})}signAndApproveGateway(en,ei,eo){return es(this,void 0,void 0,function*(){try{let ea=yield this.findBatchAndSignIfNeeded(en,ei);if(!(null==ea?void 0:ea.success))return{success:!1,error:ea.errorMessage||ef.ApproveGatewayError.SIGN_COMMAND_FAILED};let es=yield this.findBatchAndApproveGateway(en,ei,eo);if(!(null==es?void 0:es.success))return{success:!1,error:es.errorMessage||ef.ApproveGatewayError.ERROR_BROADCAST_EVENT};return{success:!0,signCommandTx:ea.signCommandTx,approveTx:es.approveTx,infoLogs:[...ea.infoLogs||[],...es.infoLogs||[]]}}catch(ei){return{success:!1,error:ei.message||`Error signing and approving gateway for commandId: ${en}`}}})}isExecuted(en){return es(this,void 0,void 0,function*(){let ei=yield this.queryTransactionStatus(en).catch(()=>void 0);return(null==ei?void 0:ei.status)===ep.GMPStatus.DEST_EXECUTED})}isConfirmed(en){return es(this,void 0,void 0,function*(){let ei=yield this.queryTransactionStatus(en).catch(()=>void 0);return[ep.GMPStatus.SRC_GATEWAY_CONFIRMED,ep.GMPStatus.DEST_GATEWAY_APPROVED].includes(this.parseGMPStatus(null==ei?void 0:ei.status))})}calculateNativeGasFee(en,ei,eo,ea,ed){return es(this,void 0,void 0,function*(){yield(0,eC.throwIfInvalidChainIds)([ei,eo],this.environment);let es=ed.provider||(0,eO.getDefaultProvider)(ei,this.environment),eu=yield es.getTransactionReceipt(en),ef=(0,eR.getNativeGasAmountFromTxReceipt)(eu)||"0",ep=(yield this.isConfirmed(en))||!1;return ed.shouldSubtractBaseFee=ep,this.subtractGasFee(ei,eo,ea,ef,ed)})}calculateGasFee(en,ei,eo,ea,ed){return es(this,void 0,void 0,function*(){yield(0,eC.throwIfInvalidChainIds)([ei,eo],this.environment);let es=ed.provider||(0,eO.getDefaultProvider)(ei,this.environment),eu=yield es.getTransactionReceipt(en),ef=(0,eR.getGasAmountFromTxReceipt)(eu)||"0";return this.subtractGasFee(ei,eo,ea,ef,ed)})}getEventIndex(en,ei){return es(this,void 0,void 0,function*(){let eo=this.getSigner(en,{useWindowEthereum:!1}),ea=yield eo.provider.getTransactionReceipt(ei).catch(()=>void 0);if(ea){let en=(0,eR.getEventIndexFromTxReceipt)(ea);return en}{let en=yield this.fetchGMPTransaction(ei).catch(()=>void 0);return en?parseInt(en.call._logIndex):-1}})}addGasToCosmosChain(en){var eo,ea,eu,ef,ep,em,eg,ey,eb,{autocalculateGasOptions:eS,sendOptions:e_}=en,eR=ed(en,["autocalculateGasOptions","sendOptions"]);return es(this,void 0,void 0,function*(){let en;let es=yield this.getStaticInfo();if(Object.keys(es.chains).forEach(ei=>{let eo=es.chains[ei];eo.id===eR.chain&&(en=eo)}),!en)throw Error(`chain ID ${eR.chain} not found`);let{rpc:ed,channelIdToAxelar:eA}=en,ew=yield this.fetchGMPTransaction(eR.txHash);if(!ew)return{success:!1,info:`${eR.txHash} could not be found`};let eO=getIBCDenomOnSrcChain(null===(ea=null===(eo=ew.gas_paid)||void 0===eo?void 0:eo.returnValues)||void 0===ea?void 0:ea.denom,en,es);if(!matchesOriginalTokenPayment(eR.token,eO))return{success:!1,info:`The token you are trying to send does not match the token originally \
2          used for gas payment. Please send ${null===(ef=null===(eu=ew.gas_paid)||void 0===eu?void 0:eu.returnValues)||void 0===ef?void 0:ef.denom} instead`};let eE="autocalculate"!==eR.token?eR.token:{denom:eO,amount:yield this.axelarQueryApi.estimateGasFee(ew.call.chain,ew.call.returnValues.destinationChain,null!==(eg=null===(em=null===(ep=ew.gas_paid)||void 0===ep?void 0:ep.returnValues)||void 0===em?void 0:em.denom)&&void 0!==eg?eg:"uaxl",null==eS?void 0:eS.gasLimit,null==eS?void 0:eS.gasMultipler)},eP=yield e_.offlineSigner.getAccounts().then(([en])=>null==en?void 0:en.address);if(!eP)return{success:!1,info:"Could not find sender from designated offlineSigner"};let eC=null!==(ey=e_.rpcUrl)&&void 0!==ey?ey:ed[0];if(!eC)return{success:!1,info:"Missing RPC URL. Please pass in an rpcUrl parameter in the sendOptions parameter"};let eT=yield(0,ei.getCosmosSigner)(eC,e_.offlineSigner),eB=yield eT.signAndBroadcast(eP,[{typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:{sourcePort:"transfer",sourceChannel:eA,token:eE,sender:eP,receiver:ex.COSMOS_GAS_RECEIVER_OPTIONS[this.environment],timeoutTimestamp:null!==(eb=e_.timeoutTimestamp)&&void 0!==eb?eb:(Date.now()+90)*1e9,memo:ew.call.id}}],e_.txFee);return{success:!0,info:"",broadcastResult:eB}})}addNativeGas(en,ei,eo){var ea;return es(this,void 0,void 0,function*(){let es=(null==eo?void 0:eo.evmWalletDetails)||{useWindowEthereum:!0},ed=this.getSigner(en,es),eu=yield ed.getAddress(),ef=yield this.axelarQueryApi.getContractAddressFromConfig(en,"gas_service"),ep=eb.nativeGasTokenSymbol[this.environment][en],em=yield ed.provider.getTransactionReceipt(ei);if(!em)return(0,eE.InvalidTransactionError)(en);let eg=(null==eo?void 0:eo.destChain)||(0,eR.getDestinationChainFromTxReceipt)(em),eS=null!==(ea=null==eo?void 0:eo.logIndex)&&void 0!==ea?ea:(0,eR.getLogIndexFromTxReceipt)(em);if(!eg)return(0,eE.NotGMPTransactionError)();let e_=yield this.isExecuted(ei);if(e_)return(0,eE.AlreadyExecutedError)();let eA=null==eo?void 0:eo.amount;if(eA||(eA=yield this.calculateNativeGasFee(ei,en,eg,ep,{estimatedGas:null==eo?void 0:eo.estimatedGasUsed,gasMultipler:null==eo?void 0:eo.gasMultipler,provider:es.provider}).catch(()=>void 0)),!eA)return(0,eE.GasPriceAPIError)();if("0"===eA)return(0,eE.AlreadyPaidGasFeeError)();let ew=(null==eo?void 0:eo.refundAddress)||eu,eO=new ey.ethers.Contract(ef,["function addNativeGas(bytes32 txHash,uint256 logIndex,address refundAddress) external payable"],ed);return eO.addNativeGas(ei,eS,ew,{value:eA}).then(en=>en.wait()).then(en=>({success:!0,transaction:en})).catch(eE.ContractCallError)})}addGas(en,ei,eo,ea){var ed;return es(this,void 0,void 0,function*(){let es=(null==ea?void 0:ea.evmWalletDetails)||{useWindowEthereum:!0},eu=this.getSigner(en,es),ef=yield eu.getAddress(),ep=yield this.axelarQueryApi.getContractAddressFromConfig(en,"gas_service"),em=new ey.ethers.Contract(eo,eA.default,eu.provider),eg=yield em.symbol().catch(()=>void 0);if(!eg)return(0,eE.InvalidGasTokenError)();let eb=yield ew.AxelarGateway.create(this.environment,en,eu.provider),eS=yield eb.getTokenAddress(eg);if(eS===ey.ethers.constants.AddressZero)return(0,eE.UnsupportedGasTokenError)(eo);let e_=yield eu.provider.getTransactionReceipt(ei);if(!e_)return(0,eE.InvalidTransactionError)(en);let eO=(null==ea?void 0:ea.destChain)||(0,eR.getDestinationChainFromTxReceipt)(e_),eP=null!==(ed=null==ea?void 0:ea.logIndex)&&void 0!==ed?ed:(0,eR.getLogIndexFromTxReceipt)(e_);if(!eO)return(0,eE.NotGMPTransactionError)();let eC=yield this.isExecuted(ei);if(eC)return(0,eE.AlreadyExecutedError)();let eT=null==ea?void 0:ea.amount;if(eT||(eT=yield this.calculateGasFee(ei,en,eO,eg,{estimatedGas:null==ea?void 0:ea.estimatedGasUsed,provider:es.provider}).catch(()=>void 0)),!eT)return(0,eE.GasPriceAPIError)();if("0"===eT)return(0,eE.AlreadyPaidGasFeeError)();let eN=(null==ea?void 0:ea.refundAddress)||ef,eI=new ey.ethers.Contract(ep,new eB.Interface(["function addGas(bytes32 txHash,uint256 txIndex,address gasToken,uint256 gasFeeAmount,address refundAddress) external"]),eu);return eI.addGas(ei,eP,eo,eT,eN).then(en=>en.wait()).then(en=>({success:!0,transaction:en})).catch(eE.ContractCallError)})}execute(en,ei,eo){var ea;return es(this,void 0,void 0,function*(){let es=yield this.queryExecuteParam
2s(en,ei).catch(()=>void 0);if(!es)return(0,eE.GMPQueryError)();if((null==es?void 0:es.status)===ep.GMPStatus.DEST_EXECUTED)return(0,eE.AlreadyExecutedError)();if((null==es?void 0:es.status)!==ep.GMPStatus.DEST_GATEWAY_APPROVED)return(0,eE.NotApprovedError)();let ed=es.data,eu=(null==eo?void 0:eo.gasLimitBuffer)||0,{destinationChain:ef,destinationContractAddress:em,srcTxInfo:eb}=ed,eS=this.getSigner(ef,eo||{useWindowEthereum:!0}),e_=new ey.ethers.Contract(em,eg.default.abi,eS),eR=yield(0,eP.callExecute)(ed,e_,eu).then(en=>{let{commandId:ei,sourceChain:eo,sourceAddress:ea,payload:es,symbol:eu,amount:ef,isContractCallWithToken:ep}=ed,em=ep?"executeWithToken":"execute";return{success:!0,transaction:en,data:{functionName:em,args:{commandId:ei,sourceChain:eo,sourceAddress:ea,payload:es,symbol:eu,amount:ef}}}}).catch(en=>en.message===eP.CALL_EXECUTE_ERROR.INSUFFICIENT_FUNDS?(0,eE.InsufficientFundsError)(ed):en.message===eP.CALL_EXECUTE_ERROR.REVERT?(0,eE.ExecutionRevertedError)(ed):(0,eE.ContractCallError)(en)),eA=yield eS.getAddress(),ew=null===(ea=eR.transaction)||void 0===ea?void 0:ea.transactionHash;return ew?yield this.saveGMP(en,eA,eb.transactionIndex,eb.logIndex,ew).catch(()=>void 0):yield this.saveGMP(en,eA,eb.transactionIndex,eb.logIndex,"",eR.error).catch(()=>void 0),eR})}subtractGasFee(en,ei,eo,ea,ed){return es(this,void 0,void 0,function*(){let ea=yield this.axelarQueryApi.estimateGasFee(en,ei,eo,ed.estimatedGas,ed.gasMultipler,void 0,void 0),es=ey.ethers.BigNumber.from(ea);if(ed.shouldSubtractBaseFee){let ea=yield this.axelarQueryApi.getNativeGasBaseFee(en,ei,eo).catch(()=>void 0);ea&&ea.baseFee&&(es=es.sub(ea.baseFee))}return es.gt(0)?es.toString():"0"})}getSigner(en,ei={useWindowEthereum:!0}){let{rpcMap:eo,networkInfo:ea}=e_.default[this.environment],es={rpcUrl:eo[en],networkOptions:ea[en],evmWalletDetails:ei},ed=new em.default(es);return ed.getSigner()}getStaticInfo(){return es(this,void 0,void 0,function*(){return this.staticInfo||(this.staticInfo=yield fetch(eN.default[this.environment]).then(en=>en.json()).catch(()=>void 0)),this.staticInfo})}};ei.AxelarGMPRecoveryAPI=AxelarGMPRecoveryAPI},88224:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},eu=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarRecoveryApi=ei.GasPaidStatus=ei.GMPStatus=void 0;let ef=eu(eo(54098)),ep=eo(87902),em=eo(18842),eg=eo(29756),ey=eo(94754),eb=eo(96599),eS=eu(eo(95205)),e_=eo(61309),eR=eu(eo(77290)),eA=eo(46306);!function(en){en.SRC_GATEWAY_CALLED="source_gateway_called",en.DEST_GATEWAY_APPROVED="destination_gateway_approved",en.DEST_EXECUTED="destination_executed",en.EXPRESS_EXECUTED="express_executed",en.DEST_EXECUTE_ERROR="error",en.DEST_EXECUTING="executing",en.APPROVING="approving",en.FORECALLED="forecalled",en.FORECALLED_WITHOUT_GAS_PAID="forecalled_without_gas_paid",en.NOT_EXECUTED="not_executed",en.NOT_EXECUTED_WITHOUT_GAS_PAID="not_executed_without_gas_paid",en.INSUFFICIENT_FEE="insufficient_fee",en.UNKNOWN_ERROR="unknown_error",en.CANNOT_FETCH_STATUS="cannot_fetch_status",en.SRC_GATEWAY_CONFIRMED="confirmed"}(ea=ei.GMPStatus||(ei.GMPStatus={})),function(en){en.GAS_UNPAID="gas_unpaid",en.GAS_PAID="gas_paid",en.GAS_PAID_NOT_ENOUGH_GAS="gas_paid_not_enough_gas",en.GAS_PAID_ENOUGH_GAS="gas_paid_enough_gas"}(es=ei.GasPaidStatus||(ei.GasPaidStatus={}));let ew={kind:"polling",interval:15e3};let AxelarRecoveryApi=class AxelarRecoveryApi{constructor(en){this.axelarQuerySvc=null,this.chainsList=[];let{environment:ei}=en,eo=(0,eg.getConfigs)(ei);this.axelarGMPApiUrl=eo.axelarGMPApiUrl,this.debugMode=!!en.debug,this.axelarscanBaseApiUrl=eo.axelarscanBaseApiUrl,this.recoveryApiUrl=eo.recoveryApiUrl,this.wssStatusUrl=eo.wssStatus,this.axelarRpcUrl=en.axelarRpcUrl||eo.axelarRpcUrl,this.axelarLcdUrl=en.axelarLcdUrl||eo.axelarLcdUrl,this.environment=ei,this.config=en}fetchGMPTransaction(en,ei){return ed(this,void 0,void 0,function*(){return this.execGet(this.axelarGMPApiUrl,{method:"searchGMP",txHash:en,txLogIndex:ei}).then(ei=>ei.find(ei=>ei.id.indexOf(en)>-1||ei.call.transactionHash.indexOf(en)>-1)).catch(()=>void 0)})}fetchBatchData(en,ei){return ed(this,void 0,void 0,function*(){let eo=yield this.execPost(this.axelarscanBaseApiUrl,"/batches",{commandId:ei}).then(en=>en[0]).catch(()=>void 0);return eo||this.searchRecentBatchesFromCore(en,ei)})}searchRecentBatchesFromCore(en,ei,eo){return ed(this,void 0,void 0,function*(){return(0,ey.retry)(()=>ed(this,void 0,void 0,function*(){let ea=yield this.queryBatchedCommands(en,eo).catch(()=>void 0);if(ea)return ea.commandIds.includes(ei)?(0,eA.mapIntoAxelarscanResponseType)(ea,en):Promise.reject("command id not found in batch")}))})}parseGMPStatus(en){let{error:ei,status:eo}=en;return"error"===eo&&ei?ea.DEST_EXECUTE_ERROR:"executed"===eo?ea.DEST_EXECUTED:"approved"===eo?ea.DEST_GATEWAY_APPROVED:"called"===eo?ea.SRC_GATEWAY_CALLED:"executing"===eo?ea.DEST_EXECUTING:eo}parseGMPError(en){return en.error?{message:en.error.error.message,txHash:en.error.error.transactionHash,chain:en.error.chain}
2:en.is_insufficient_fee?{message:"Insufficient fee",txHash:en.call.transaction.hash,chain:en.call.chain}:void 0}queryTransactionStatus(en,ei){return ed(this,void 0,void 0,function*(){let eo=yield this.fetchGMPTransaction(en,ei);if(!eo)return{status:ea.CANNOT_FETCH_STATUS};let{call:es,gas_status:ed,gas_paid:eu,executed:ef,express_executed:ep,approved:em,callback:eg}=eo,ey={status:ed,details:eu},eb=eo.time_spent;return eb&&(eb.total=eb.total||Object.values(eb).reduce((en,ei)=>en+ei,0)),{status:this.parseGMPStatus(eo),error:this.parseGMPError(eo),timeSpent:eb,gasPaidInfo:ey,callTx:es,executed:ef,expressExecuted:ep,approved:em,callback:eg}})}subscribeToTx(en,ei,eo=ew){return ed(this,void 0,void 0,function*(){"websocket"===eo.kind?this.subscribeToTxWSS_EXPERIMENTAL(en,ei):this.subscribeToTxPOLLING(en,ei,eo.interval)})}subscribeToTxPOLLING(en,ei,eo=3e4){return ed(this,void 0,void 0,function*(){let es=setInterval(()=>ed(this,void 0,void 0,function*(){let eo=yield this.queryTransactionStatus(en);ei(eo),eo.status===ea.DEST_EXECUTED&&clearInterval(es)}),eo)})}subscribeToTxWSS_EXPERIMENTAL(en,ei){return ed(this,void 0,void 0,function*(){let eo=new WebSocket(this.wssStatusUrl);eo.onopen=()=>{let ei=JSON.stringify({action:"sendmessage",topic:"subscribeToSrcChainTx",srcTxHash:en});eo.send(ei)},eo.onmessage=en=>{let es="string"==typeof en.data?JSON.parse(en.data):en.data;(null==es?void 0:es.txStatus)&&(es.txStatus=this.parseGMPStatus({status:es.txStatus,error:""})),(null==es?void 0:es.txStatus)===ea.DEST_EXECUTED&&eo.close(),null==ei||ei(es)}})}queryExecuteParams(en,ei){return ed(this,void 0,void 0,function*(){let eo=yield this.fetchGMPTransaction(en,ei);if(!eo)return;let es=eo.approved;if(!(null==es?void 0:es.transactionHash))return{status:ea.SRC_GATEWAY_CALLED};let ed=eo.executed;if(null==ed?void 0:ed.transactionHash)return{status:ea.DEST_EXECUTED};let eu=eo.call;return{status:ea.DEST_GATEWAY_APPROVED,data:{commandId:es.returnValues.commandId,destinationChain:es.chain.toLowerCase(),destinationContractAddress:eu.returnValues.destinationContractAddress,isContractCallWithToken:"ContractCallWithToken"===eu.event,payload:eu.returnValues.payload,srcTxInfo:{transactionHash:eu.transactionHash,transactionIndex:eu.transactionIndex,logIndex:eu.logIndex},sourceAddress:es.returnValues.sourceAddress,sourceChain:es.returnValues.sourceChain,symbol:es.returnValues.symbol,amount:es.returnValues.amount&&ep.BigNumber.from(es.returnValues.amount).toString()}}})}getChainInfo(en){return ed(this,void 0,void 0,function*(){0===this.chainsList.length&&(this.chainsList=yield(0,em.loadChains)({environment:this.environment}));let ei=this.chainsList.find(ei=>ei.id.toLowerCase()===en.toLowerCase());if(!ei)throw Error(`cannot find chain ${en}`);return ei})}confirmGatewayTx(en,ei){return ed(this,void 0,void 0,function*(){let{module:eo,chainIdentifier:ea}=yield this.getChainInfo(ei),es=yield this.execRecoveryUrlFetch("/confirm_gateway_tx",{txHash:en,module:eo,chain:ea[this.environment]});return(0,e_.broadcastCosmosTxBytes)(es,this.axelarRpcUrl)})}createPendingTransfers(en){return ed(this,void 0,void 0,function*(){let{module:ei,chainIdentifier:eo}=yield this.getChainInfo(en),ea=yield this.execRecoveryUrlFetch("/create_pending_transfers",{chain:eo[this.environment],module:ei});return(0,e_.broadcastCosmosTxBytes)(ea,this.axelarRpcUrl)})}executePendingTransfers(en){return ed(this,void 0,void 0,function*(){let{module:ei,chainIdentifier:eo}=yield this.getChainInfo(en),ea=yield this.execRecoveryUrlFetch("/execute_pending_transfers",{chain:eo[this.environment],module:ei});return(0,e_.broadcastCosmosTxBytes)(ea,this.axelarRpcUrl)})}routeMessageRequest(en,ei,eo){return ed(this,void 0,void 0,function*(){let ea=yield this.execRecoveryUrlFetch("/route_message",{payload:ei,id:-1===eo?`${en}`:`${en}-${eo}`});return(0,e_.broadcastCosmosTxBytes)(ea,this.axelarRpcUrl)})}signCommands(en){return ed(this,void 0,void 0,function*(){let{module:ei,chainIdentifier:eo}=yield this.getChainInfo(en),ea=yield this.execRecoveryUrlFetch("/sign_commands",{chain:eo[this.environment],module:ei});return(0,e_.broadcastCosmosTxBytes)(ea,this.axelarRpcUrl)})}queryBatchedCommands(en,ei=""){return ed(this,void 0,void 0,function*(){return this.axelarQuerySvc||(this.axelarQuerySvc=yield eb.AxelarQueryClient.initOrGetAxelarQueryClient(this.config)),yield(0,ey.throwIfInvalidChainIds)([en],this.environment),this.axelarQuerySvc.evm.BatchedCommands({chain:en,id:ei})})}queryGatewayAddress({chain:en}){return ed(this,void 0,void 0,function*(){return this.axelarQuerySvc||(this.axelarQuerySvc=yield eb.AxelarQueryClient.initOrGetAxelarQueryClient(this.config)),yield(0,ey.throwIfInvalidChainIds)([en],this.environment),this.axelarQuerySvc.evm.GatewayAddress({chain:en})})}getSignedTxAndBroadcast(en,ei){return ed(this,void 0,void 0,function*(){yield(0,ey.throwIfInvalidChainIds)([en],this.environment);let eo=yield this.queryGatewayAddress({chain:en}),ea=new eS.default({rpcUrl:eR.default[this.environment].rpcMap[en],evmWalletDetails:{useWindowEthereum:!0}}),es=ea.buildUnsignedTx(eo.address,{data:ei}),ed=yield this.execRecoveryUrlFetch("/sign_evm_tx",{chain:en,gatewayAddress:eo.address,txRequest:es}),eu=yield ea.broadcastSignedTx(ed);return eu.wait(1),eu})}sendApproveTx(en,ei,eo){return ed(this,void 0,void 0,function*(){yield(0,ey.throwIfInvalidChainIds)([en],this.environment);let ea=yield this.queryGatewayAddress({chain:en}),es=new eS.default({rpcUrl:eR.default[this.environment].rpcMap[en],evmWalletDetails:eo}),ed=es.buildUnsignedTx(ea.address,{data:ei});return this.execRecoveryUrlFetch("/send_evm_tx",{chain:en,gatewayAddress:ea.address,txRequest:ed})})}broadcastEvmTx(en,ei,eo={useWindowEthereum:!0}){return ed(this,void 0,void 0,function*(){yield(0,ey.throwIfInvalidChainIds)([en],this.environment);let ea=yield this.queryGatewayAddress({chain:en}),es=new eS.default({rpcUrl:eR.default[this.environment].rpcMap[en],evmWalletDetails:eo});return es.broadcastToGateway(ea.address,{data:ei})})}execRecoveryUrlFetch(en,ei){return ed(this,void 0,void 0,function*(){return this.execPost(this.recoveryApiUrl,en,ei)})}execPost(en,ei,eo){return ed(this,void 0,void 0,function*(){return(0,ef.default)(en+ei,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(eo)}).then(en=>en.json()).then(en=>en.data)})}execGet(en,ei){return ed(this,void 0,void 0,function*(){return(0,ef.default)(`${en}?${new URLSearchParams(ei).toString()}`,{method:"GET",headers:{"Content-Type":"application/json"},cache:"no-store"}).then(en=>en.json()).then(en=>en.data)})}get getAxelarGMPApiUrl(){return this.axelarGMPApiUrl}};ei.AxelarRecoveryApi=AxelarRecoveryApi},80786:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AxelarTransferApi=void 0;let es=eo(29756),ed=eo(43527);let AxelarTransferApi=class AxelarTransferApi{constructor(en){let ei=en.environment,eo=(0,es.getConfigs)(ei);this.axelarCrosschainUrl=eo.axelarCrosschainApiUrl,this.axelarnscanUrl=eo.axelarscanUrl,this.axelarCrosschainApi=new ed.RestService(this.axelarCrosschainUrl)}queryTransferStatus(en,ei){return ea(this,void 0,void 0,function*(){let eo=yield this.axelarCrosschainApi.post("/transfers-status",Object.assign({txHash:en},ei)).catch(()=>void 0);if(!eo)return{success:!1,error:"Axelar Transfer API is not available"};if(0===eo.length)return{success:!1,error:"No transfer found"};let ea=eo[0];return{success:!0,data:{id:ea.source.id,status:ea.status,type:ea.source.type,amount:ea.source.amount,fee:ea.source.fee,denom:ea.source.denom,senderChain:ea.source.sender_chain,senderAddress:ea.source.sender_address,recipientChain:ea.source.recipient_chain,recipientAddress:ea.source.recipient_address,blockExplorerUrl:`${this.axelarnscanUrl}/transfer/${ea.source.id}`,blockHeight:ea.source.height}}})}};ei.AxelarTransferApi=AxelarTransferApi},19490:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let ea=eo(9650),es=eo(61309),ed=eo(29756);let AxelarRpcClient=class AxelarRpcClient{constructor(en){let ei=(0,ed.getConfigs)(en).axelarRpcUrl;this.client=(0,es.createRPCClient)(ei)}static getOrCreate(en){return new AxelarRpcClient(en)}query(en,ei=3e3,eo=3){let retryFunc=()=>this.client.execute(en).then(ei=>"tx_search"===en.method?ei.result.txs:ei.result),errorHandler=en=>{console.log(en)};return(0,ea.retryRpc)(retryFunc,errorHandler,ei,eo)}unsubscribe(){this.client.disconnect()}};ei.default=AxelarRpcClient},95205:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0});let es=eo(87902);let EVMClient=class EVMClient{constructor(en){let{rpcUrl:ei,networkOptions:eo,evmWalletDetails:ea}=en,{privateKey:ed,useWindowEthereum:eu,provider:ef}=ea;ef?this.provider=ef:this.provider=eu&&"undefined"!=typeof window&&(null==window?void 0:window.ethereum)?new es.ethers.providers.Web3Provider(window.ethereum,eo):new es.ethers.providers.JsonRpcProvider(ei,eo),this.signer=ed?new es.ethers.Wallet(ed).connect(this.provider):this.provider.getSigner()}getSigner(){return this.signer}broadcastToGateway(en,ei){return ea(this,void 0,void 0,function*(){let{data:eo,maxFeePerGas:ea,maxPriorityFeePerGas:ed}=ei,eu=Object.assign(Object.assign({},ei),{to:en,data:`0x${eo}`,maxPriorityFeePerGas:ed||es.ethers.utils.parseUnits("30","gwei"),maxFeePerGas:ea||es.ethers.utils.parseUnits("60","gwei")});yield this.signer.estimateGas(eu);let ef=yield this.signer.sendTransaction(eu);return yield ef.wait(1),ef})}buildUnsignedTx(en,ei){let{data:eo,maxFeePerGas:ea,maxPriorityFeePerGas:ed}=ei,eu=Object.assign(Object.assign({},ei),{to:en,data:`0x${eo}`,maxPriorityFeePerGas:ed||es.ethers.utils.parseUnits("30","gwei"),maxFeePerGas:ea||es.ethers.utils.parseUnits("60","gwei")});return eu}broadcastSignedTx(en){return ea(this,void 0,void 0,function*(){return this.provider.sendTransaction(en)})}};ei.default=EVMClient},61309:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.broadcastCosmosTxBytes=ei.broadcastCosmosTx=ei.createRPCClient=void 0;let es=eo(73034),ed=eo(24658),eu=eo(28972);function createRPCClient(en){return new es.HttpClient(en)}function broadcastCosmosTx(en,ei){return ea(this,void 0,void 0,function*(){let eo=(0,eu.fromBase64)(en),ea=yield ed.StargateClient.connect(ei);return ea.broadcastTx(eo).then(convertToAxelarTxResponse)})}function broadcastCosmosTxBytes(en,ei){return ea(this,void 0,void 0,function*(){let eo=yield ed.StargateClient.connect(ei);return eo.broadcastTx(en).then(convertToAxelarTxResponse)})}function convertToAxelarTxResponse(en){return Object.assign(Object.assign({},en),{rawLog:en.rawLog||"[]"})}ei.createRPCClient=createRPCClient,ei.broadcastCosmosTx=broadcastCosmosTx,ei.broadcastCosmosTxBytes=broadcastCosmosTxBytes},9650:function(en,ei){"use strict";var eo=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};function retryRpc(en,ei,ea=5e3,es=5,ed=0){return eo(this,void 0,void 0,function*(){try{if(ed>=es)return null;let ei=yield en();return ei}catch(eo){return ei&&ei(eo),yield wait(ea),retryRpc(en,ei,ea,es,ed+1)}})}function wait(en){return new Promise(ei=>{setTimeout(ei,en)})}Object.defineProperty(ei,"__esModule",{value:!0}),ei.wait=ei.retryRpc=void 0,ei.retryRpc=retryRpc,ei.wait=wait},77290:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0});let ea=eo(97336),es=eo(75939),ed={devnet:{rpcMap:ea.rpcMap,networkInfo:ea.networkInfo},testnet:{rpcMap:ea.rpcMap,networkInfo:ea.networkInfo},mainnet:{rpcMap:es.rpcMap,networkInfo:es.networkInfo}};ei.default=ed},75939:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.networkInfo=ei.rpcMap=void 0;let ea=eo(10654);ei.rpcMap={[ea.EvmChain.FANTOM]:"https://rpc.ftm.tools",[ea.EvmChain.POLYGON]:"https://polygon-rpc.com",[ea.EvmChain.MOONBEAM]:"https://rpc.api.moonbeam.network",[ea.EvmChain.AVALANCHE]:"https://api.avax.network/ext/bc/C/rpc",[ea.EvmChain.ETHEREUM]:"https://mainnet.infura.io/v3/510b6d5b3c56497b8070626a54f565a9",[ea.EvmChain.AURORA]:"https://mainnet.aurora.dev",[ea.EvmChain.BINANCE]:"https://bsc-dataseed.binance.org",[ea.EvmChain.BNBCHAIN]:"https://bsc-dataseed.binance.org",[ea.EvmChain.ARBITRUM]:"https://arb1.arbitrum.
2io/rpc",[ea.EvmChain.CELO]:"https://forno.celo.org",[ea.EvmChain.KAVA]:"https://evm.kava.io",[ea.EvmChain.FILECOIN]:"https://rpc.ankr.com/filecoin",[ea.EvmChain.OPTIMISM]:"https://optimism-mainnet.public.blastapi.io",[ea.EvmChain.BASE]:"https://developer-access-mainnet.base.org",[ea.EvmChain.LINEA]:"https://rpc.linea.build",[ea.EvmChain.POLYGON_ZKEVM]:"https://zkevm.polygonscan.com",[ea.EvmChain.MANTLE]:"https://rpc.mantle.xyz",[ea.EvmChain.SCROLL]:"https://rpc.scroll.io",[ea.EvmChain.CENTRIFUGE]:"https://fullnode.parachain.centrifuge.io",[ea.EvmChain.IMMUTABLE]:"https://rpc.immutable.com"},ei.networkInfo={[ea.EvmChain.FANTOM]:{chainId:250,name:ea.EvmChain.FANTOM},[ea.EvmChain.BASE]:{chainId:8453,name:ea.EvmChain.BASE},[ea.EvmChain.FILECOIN]:{chainId:314,name:ea.EvmChain.FILECOIN},[ea.EvmChain.POLYGON]:{chainId:137,name:ea.EvmChain.POLYGON},[ea.EvmChain.MOONBEAM]:{chainId:1284,name:ea.EvmChain.MOONBEAM},[ea.EvmChain.AVALANCHE]:{chainId:43114,name:ea.EvmChain.AVALANCHE},[ea.EvmChain.ETHEREUM]:{chainId:1,name:ea.EvmChain.ETHEREUM},[ea.EvmChain.AURORA]:{chainId:1313161554,name:ea.EvmChain.AURORA},[ea.EvmChain.BINANCE]:{chainId:56,name:ea.EvmChain.BINANCE},[ea.EvmChain.BNBCHAIN]:{chainId:56,name:ea.EvmChain.BNBCHAIN},[ea.EvmChain.ARBITRUM]:{chainId:42161,name:ea.EvmChain.ARBITRUM},[ea.EvmChain.CELO]:{chainId:42220,name:ea.EvmChain.CELO},[ea.EvmChain.KAVA]:{chainId:2222,name:ea.EvmChain.KAVA},[ea.EvmChain.OPTIMISM]:{chainId:10,name:ea.EvmChain.OPTIMISM},[ea.EvmChain.LINEA]:{chainId:59144,name:ea.EvmChain.LINEA},[ea.EvmChain.POLYGON_ZKEVM]:{chainId:1101,name:ea.EvmChain.POLYGON_ZKEVM},[ea.EvmChain.MANTLE]:{chainId:5e3,name:ea.EvmChain.MANTLE},[ea.EvmChain.SCROLL]:{chainId:534352,name:ea.EvmChain.SCROLL},[ea.EvmChain.CENTRIFUGE]:{chainId:2031,name:ea.EvmChain.CENTRIFUGE},[ea.EvmChain.IMMUTABLE]:{chainId:13371,name:ea.EvmChain.IMMUTABLE}}},97336:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.networkInfo=ei.rpcMap=void 0;let ea=eo(10654);ei.rpcMap={[ea.EvmChain.FANTOM]:"https://rpc.testnet.fantom.network",[ea.EvmChain.POLYGON]:"https://rpc-mumbai.maticvigil.com",[ea.EvmChain.MOONBEAM]:"https://rpc.api.moonbase.moonbeam.network",[ea.EvmChain.AVALANCHE]:"https://api.avax-test.network/ext/bc/C/rpc","ethereum-2":"https://eth-goerli.api.onfinality.io/public",[ea.EvmChain.AURORA]:"https://testnet.aurora.dev",[ea.EvmChain.BINANCE]:"https://data-seed-prebsc-1-s1.binance.org:8545",[ea.EvmChain.BNBCHAIN]:"https://data-seed-prebsc-1-s1.binance.org:8545",[ea.EvmChain.ARBITRUM]:"https://goerli-rollup.arbitrum.
2io/rpc",[ea.EvmChain.CELO]:"https://alfajores-forno.celo-testnet.org",[ea.EvmChain.KAVA]:"https://evm.testnet.kava.io",[ea.EvmChain.BASE]:"https://goerli.base.org","filecoin-2":"https://rpc.ankr.com/filecoin_testnet",[ea.EvmChain.OPTIMISM]:"https://goerli.optimism.io",[ea.EvmChain.LINEA]:"https://rpc.goerli.linea.build",[ea.EvmChain.POLYGON_ZKEVM]:"https://testnet-zkevm.polygonscan.com",[ea.EvmChain.MANTLE]:"https://rpc.testnet.mantle.xyz",[ea.EvmChain.SCROLL]:"https://sepolia-rpc.scroll.io",[ea.EvmChain.IMMUTABLE]:"https://rpc.testnet.immutable.com",[ea.EvmChain.SEPOLIA]:"https://1rpc.io/sepolia",[ea.EvmChain.ARBITRUM_SEPOLIA]:"https://sepolia-rollup.arbitrum.io/rpc",[ea.EvmChain.CENTRIFUGE_TESTNET]:"https://node-7118620155331796992.gx.onfinality.io/jsonrpc?apikey=00538f2d-6297-44e3-8812-4b9d579524b2"},ei.networkInfo={[ea.EvmChain.FANTOM]:{chainId:4002,name:ea.EvmChain.FANTOM},[ea.EvmChain.POLYGON]:{chainId:80001,name:ea.EvmChain.POLYGON},[ea.EvmChain.POLYGON_ZKEVM]:{chainId:1442,name:ea.EvmChain.POLYGON_ZKEVM},[ea.EvmChain.MOONBEAM]:{chainId:1287,name:ea.EvmChain.MOONBEAM},[ea.EvmChain.AVALANCHE]:{chainId:43113,name:ea.EvmChain.AVALANCHE},"ethereum-2":{chainId:5,name:ea.EvmChain.ETHEREUM},[ea.EvmChain.AURORA]:{chainId:1313161555,name:ea.EvmChain.AURORA},[ea.EvmChain.BINANCE]:{chainId:97,name:ea.EvmChain.BINANCE},[ea.EvmChain.BNBCHAIN]:{chainId:97,name:ea.EvmChain.BNBCHAIN},[ea.EvmChain.ARBITRUM]:{chainId:421613,name:`${ea.EvmChain.ARBITRUM}-goerli`},[ea.EvmChain.CELO]:{chainId:44787,name:ea.EvmChain.CELO},[ea.EvmChain.KAVA]:{chainId:2221,name:ea.EvmChain.KAVA},[ea.EvmChain.BASE]:{chainId:84531,name:ea.EvmChain.BASE},"filecoin-2":{chainId:314159,name:ea.EvmChain.FILECOIN},[ea.EvmChain.OPTIMISM]:{chainId:420,name:`${ea.EvmChain.OPTIMISM}-goerli`},[ea.EvmChain.LINEA]:{chainId:59140,name:ea.EvmChain.LINEA},[ea.EvmChain.MANTLE]:{chainId:5001,name:ea.EvmChain.MANTLE},[ea.EvmChain.SCROLL]:{chainId:534351,name:ea.EvmChain.SCROLL},[ea.EvmChain.SEPOLIA]:{chainId:11155111,name:ea.EvmChain.SEPOLIA},[ea.EvmChain.ARBITRUM_SEPOLIA]:{chainId:421614,name:ea.EvmChain.ARBITRUM_SEPOLIA},[ea.EvmChain.CENTRIFUGE_TESTNET]:{chainId:2090,name:"centrifuge"},[ea.EvmChain.IMMUTABLE]:{chainId:13473,name:ea.EvmChain.IMMUTABLE}}},44014:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.COSMOS_GAS_RECEIVER_OPTIONS=void 0,ei.COSMOS_GAS_RECEIVER_OPTIONS={devnet:"axelar1zl3rxpp70lmte2xr6c4lgske2fyuj3hupcsvcd",testnet:"axelar1zl3rxpp70lmte2xr6c4lgske2fyuj3hupcsvcd",mainnet:"axelar1aythygn6z5thymj6tmzfwekzh05ewg3l7d6y89"}},95001:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.InsufficientFundsError=ei.ExecutionRevertedError=ei.GMPQueryError=ei.NotApprovedError=ei.UnsupportedGasTokenError=ei.InvalidGasTokenError=ei.ContractCallError=ei.AlreadyPaidGasFeeError=ei.GasPriceAPIError=ei.AlreadyExecutedError=ei.NotGMPTransactionError=ei.InvalidTransactionError=ei.ErrorMsg=void 0;let metamaskErrorMsg=en=>{var ei;return null===(ei=en.data)||void 0===ei?void 0:ei.message},ethersErrorMsg=en=>{var ei;return null===(ei=en.error)||void 0===ei?void 0:ei.reason},generalErrorMsg=en=>en.message,ErrorMsg=en=>ethersErrorMsg(en)||metamaskErrorMsg(en)||generalErrorMsg(en);ei.ErrorMsg=ErrorMsg;let InvalidTransactionError=en=>({success:!1,error:`Couldn't find a transaction on ${en}`});ei.InvalidTransactionError=InvalidTransactionError;let NotGMPTransactionError=()=>({success:!1,error:"Not GMP transaction"});ei.NotGMPTransactionError=NotGMPTransactionError;let AlreadyExecutedError=()=>({success:!1,error:"Already executed"});ei.AlreadyExecutedError=AlreadyExecutedError;let GasPriceAPIError=()=>({success:!1,error:"Couldn't query the gas price"});ei.GasPriceAPIError=GasPriceAPIError;let AlreadyPaidGasFeeError=()=>({success:!1,error:"Already paid sufficient gas fee"});ei.AlreadyPaidGasFeeError=AlreadyPaidGasFeeError;let ContractCallError=en=>({success:!1,error:(0,ei.ErrorMsg)(en)});ei.ContractCallError=ContractCallError;let InvalidGasTokenError=()=>({success:!1,error:"Invalid gas token address"});
2ei.InvalidGasTokenError=InvalidGasTokenError;let UnsupportedGasTokenError=en=>({success:!1,error:`Token address ${en} is not supported`});ei.UnsupportedGasTokenError=UnsupportedGasTokenError;let NotApprovedError=()=>({success:!1,error:"Transaction has not approved yet"});ei.NotApprovedError=NotApprovedError;let GMPQueryError=()=>({success:!1,error:"Couldn't query the transaction details"});ei.GMPQueryError=GMPQueryError;let ExecutionRevertedError=en=>{let{commandId:ei,sourceChain:eo,sourceAddress:ea,payload:es,symbol:ed,amount:eu,isContractCallWithToken:ef}=en,ep=ef?"executeWithToken":"execute";return{success:!1,error:`Transaction execution was reverted. Please check the implementation of the destination contract's ${ep} function.`,data:{functionName:ep,args:{commandId:ei,sourceChain:eo,sourceAddress:ea,payload:es,symbol:ed,amount:eu}}}};ei.ExecutionRevertedError=ExecutionRevertedError;let InsufficientFundsError=en=>{let{commandId:ei,sourceChain:eo,sourceAddress:ea,payload:es,symbol:ed,amount:eu,isContractCallWithToken:ef}=en,ep=ef?"executeWithToken":"execute";return{success:!1,error:"Insufficient funds to pay for transaction gas cost",data:{functionName:ep,args:{commandId:ei,sourceChain:eo,sourceAddress:ea,payload:es,symbol:ed,amount:eu}}}};ei.InsufficientFundsError=InsufficientFundsError},78443:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.default={mainnet:"https://axelar-mainnet.s3.us-east-2.amazonaws.com/mainnet-config.json",testnet:"https://axelar-testnet.s3.us-east-2.amazonaws.com/testnet-config.json",devnet:"https://axelar-testnet.s3.us-east-2.amazonaws.com/testnet-config.json"}},8160:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.getSymbolFromAmountSymbol=ei.getAmountFromAmountSymbol=ei.convertRpcTxToBroadcastTxSuccess=ei.createBaseRequest=ei.confirmDepositRequest=ei.getConfirmedTx=ei.parseConfirmDepositEvmResponse=ei.parseConfirmDepositCosmosResponse=void 0;let ed=es(eo(19490)),eu=eo(99102),ef=eo(87902);function parseConfirmDepositCosmosResponse(en){var ei,eo,ea;let es=en.transactionHash;try{let ed=JSON.parse(en.rawLog||""),eu=["chain","amount","depositAddress","transferID"],ep=ed[0].events.find(en=>"depositConfirmation"===en.type),em=ep.attributes,eg={};for(let en of em)eu.indexOf(en.key)>-1&&(eg[en.key]=en);let ey=ef.ethers.utils.hexZeroPad(ef.ethers.utils.hexlify(parseInt(eg.transferID.value)),32).slice(2);return{status:!0,error:null,data:{hash:es,chain:"axelar",height:en.height,depositTxHash:null,amount:getAmountFromAmountSymbol(null===(ei=eg.amount)||void 0===ei?void 0:ei.value),depositAddress:null===(eo=eg.depositAddress)||void 0===eo?void 0:eo.value,depositToken:getSymbolFromAmountSymbol(null===(ea=eg.amount)||void 0===ea?void 0:ea.value),commandId:ey}}}catch(eo){let ei;if(ei=accountMismatchErrorHandler(en),ei=alreadyConfirmedErrorHandler(en),ei=depositNotArrivedYetErrorHandler(en))return ei;throw eo}}function parseConfirmDepositEvmResponse(en){var ei,eo,ea,es,ed;let eu=en.transactionHash;try{let ef=JSON.parse(en.rawLog||""),ep=["module","chain","txID","amount","depositAddress","tokenAddress"],em=ef[0].events[0].attributes,eg={};for(let en of em)ep.indexOf(en.key)>-1&&(eg[en.key]=en);return{status:!0,error:null,data:{hash:eu,chain:null===(ei=eg.chain||eg.module)||void 0===ei?void 0:ei.value,height:en.height,amount:null===(eo=eg.amount)||void 0===eo?void 0:eo.value,depositTxHash:null===(ea=eg.txID)||void 0===ea?void 0:ea.value,depositAddress:null===(es=eg.depositAddress)||void 0===es?void 0:es.value,depositToken:null===(ed=eg.tokenAddress)||void 0===ed?void 0:ed.value}}}catch(eo){let ei;if(ei=accountMismatchErrorHandler(en),ei=alreadyConfirmedErrorHandler(en))return ei;throw eo}}ei.parseConfirmDepositCosmosResponse=parseConfirmDepositCosmosResponse,ei.parseConfirmDepositEvmResponse=parseConfirmDepositEvmResponse;let accountMismatchErrorHandler=en=>en&&en.rawLog&&en.rawLog.indexOf("sequence")>-1?{status:!1,data:null,error:en.rawLog,retry:eu.RetryErrorRecovery.REFETCH}:null,alreadyConfirmedErrorHandler=en=>{var ei,eo,ea;return en&&en.rawLog&&((null===(ei=en.rawLog)||void 0===ei?void 0:ei.indexOf("already burned"))>-1||(null===(eo=en.rawLog)||void 0===eo?void 0:eo.indexOf("already confirmed"))>-1||(null===(ea=en.rawLog)||void 0===ea?void 0:ea.indexOf("cannot delete existing poll"))>-1)?{status:!1,data:null,error:en.rawLog,retry:eu.RetryErrorRecovery.SKIP}:null},depositNotArrivedYetErrorHandler=en=>{var ei;return en&&en.rawLog&&(null===(ei=en.rawLog)||void 0===ei?void 0:ei.indexOf("holds no fund"))>-1?{status:!1,data:null,error:en.rawLog,retry:eu.RetryErrorRecovery.REBROADCAST}:null};function getConfirmedTx(en,ei,eo){return ea(this,void 0,void 0,function*(){let ea=ed.default.getOrCreate(eo),es=confirmDepositRequest(en,ei),eu=yield ea.query(es);if(!eu.length)return null;let ef=eu[0],ep=convertRpcTxToBroadcastTxSuccess(ef);return ep}
2)}function confirmDepositRequest(en,ei){let eo=createBaseRequest(),ea=en.startsWith("0x"),es=ea?`message.action='ConfirmERC20Deposit' AND depositConfirmation.txID='${en}'`:`message.action='ConfirmDeposit' AND depositConfirmation.depositAddress='${ei}'`;return Object.assign(Object.assign({},eo),{params:Object.assign(Object.assign({},eo.params),{query:es})})}function createBaseRequest(){return{jsonrpc:"2.0",id:1,method:"tx_search",params:{per_page:"10",order_by:"desc"}}}function convertRpcTxToBroadcastTxSuccess(en){return{height:parseInt(en.height),transactionHash:en.hash,gasUsed:parseInt(en.tx_result.gas_used),gasWanted:parseInt(en.tx_result.gas_wanted),data:en.tx_result.data,rawLog:en.tx_result.log,code:0,events:[],msgResponses:[],txIndex:0}}function getAmountFromAmountSymbol(en){return en.indexOf("ibc")>-1?en.split("ibc")[0]:en.replace(/[^0-9]/g,"")}function getSymbolFromAmountSymbol(en){return en.indexOf("ibc")>-1?"ibc"+en.split("ibc")[1]:en.replace(/[^a-z]/g,"")}ei.getConfirmedTx=getConfirmedTx,ei.confirmDepositRequest=confirmDepositRequest,ei.createBaseRequest=createBaseRequest,ei.convertRpcTxToBroadcastTxSuccess=convertRpcTxToBroadcastTxSuccess,ei.getAmountFromAmountSymbol=getAmountFromAmountSymbol,ei.getSymbolFromAmountSymbol=getSymbolFromAmountSymbol},36713:function(en,ei){"use strict";var eo,ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};function callExecute(en,ei,es=0){return ea(this,void 0,void 0,function*(){let ea;let{commandId:ed,isContractCallWithToken:eu,payload:ef,sourceAddress:ep,sourceChain:em,amount:eg,symbol:ey}=en;if(eu){let en=yield ei.estimateGas.executeWithToken(ed,em,ep,ef,ey,eg).catch(()=>void 0);if(!en)throw Error(eo.REVERT);ea=ei.executeWithToken(ed,em,ep,ef,ey,eg,{gasLimit:en.add(es)}).then(en=>en.wait()).catch(()=>void 0)}else{let en=yield ei.estimateGas.execute(ed,em,ep,ef).catch(()=>void 0);if(!en)throw Error(eo.REVERT);ea=ei.execute(ed,em,ep,ef,{gasLimit:en.add(es)}).then(en=>en.wait()).catch(()=>void 0)}if(!ea)throw Error(eo.INSUFFICIENT_FUNDS);return ea})}Object.defineProperty(ei,"__esModule",{value:!0}),ei.callExecute=ei.CALL_EXECUTE_ERROR=void 0,function(en){en.REVERT="REVERT",en.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS"}(eo=ei.CALL_EXECUTE_ERROR||(ei.CALL_EXECUTE_ERROR={})),ei.callExecute=callExecute},3932:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.findContractEvent=ei.getGasAmountFromTxReceipt=ei.getNativeGasAmountFromTxReceipt=ei.validateContractCall=ei.validateContractCallWithToken=ei.getNativeGasPaidForContractCallWithTokenEvent=ei.getNativeGasPaidForContractCallEvent=ei.getContractCallWithTokenEvent=ei.getContractCallEvent=ei.isContractCallWithToken=ei.getEventIndexFromTxReceipt=ei.getLogIndexFromTxReceipt=ei.getDestinationChainFromTxReceipt=void 0;let ea=eo(83893),es=eo(87902);function getDestinationChainFromTxReceipt(en){let ei=es.ethers.utils.id("ContractCallWithToken(address,string,
2string,bytes32,bytes,string,uint256)"),eo=es.ethers.utils.id("ContractCall(address,string,string,bytes32,bytes)"),ed=findContractEvent(en,[eo,ei],new ea.Interface(["event ContractCallWithToken(address indexed sender, string destinationChain, string destinationContractAddress, bytes32 indexed payloadHash, bytes payload, string symbol, uint256 amount)","event ContractCall(address indexed sender,string destinationChain,string destinationContractAddress,bytes32 indexed payloadHash,bytes payload)"]));return null==ed?void 0:ed.eventLog.args[1].toLowerCase()}function getLogIndexFromTxReceipt(en){let ei=getContractCallEvent(en),eo=getContractCallWithTokenEvent(en);return(null==ei?void 0:ei.logIndex)||(null==ei?void 0:ei.logIndex)===0?ei.logIndex:null==eo?void 0:eo.logIndex}function getEventIndexFromTxReceipt(en){let ei=getContractCallEvent(en),eo=getContractCallWithTokenEvent(en);return(null==ei?void 0:ei.eventIndex)||(null==ei?void 0:ei.eventIndex)===0?ei.eventIndex:null==eo?void 0:eo.eventIndex}function isContractCallWithToken(en){return!!getContractCallWithTokenEvent(en)}function getContractCallEvent(en){let ei=es.ethers.utils.id("ContractCall(address,string,
2string,bytes32,bytes)");return findContractEvent(en,[ei],new ea.Interface(["event ContractCall(address indexed sender,string destinationChain,string destinationContractAddress,bytes32 indexed payloadHash,bytes payload)"]))}function getContractCallWithTokenEvent(en){let ei=es.ethers.utils.id("ContractCallWithToken(address,string,string,bytes32,bytes,string,uint256)");return findContractEvent(en,[ei],new ea.Interface(["event ContractCallWithToken(address indexed sender, string destinationChain, string destinationContractAddress, bytes32 indexed payloadHash, bytes payload, string symbol, uint256 amount)"]))}function getNativeGasPaidForContractCallEvent(en){let ei=es.ethers.utils.id("NativeGasPaidForContractCall(address,string,string,bytes32,uint256,address)");return findContractEvent(en,[ei],new ea.Interface(["event NativeGasPaidForContractCall(address indexed sourceAddress,string destinationChain,string destinationAddress,bytes32 indexed payloadHash,uint256 gasFeeAmount,address refundAddress)"]))}function getNativeGasPaidForContractCallWithTokenEvent(en){let ei=es.ethers.utils.id("NativeGasPaidForContractCallWithToken(address,string,
2string,bytes32,string,uint256,uint256,address)");return findContractEvent(en,[ei],new ea.Interface(["event NativeGasPaidForContractCallWithToken(address indexed sourceAddress,string destinationChain,string destinationAddress,bytes32 indexed payloadHash,string symbol,uint256 amount,uint256 gasFeeAmount,address refundAddress)"]))}function validateContractCallWithToken(en,ei){return en.eventLog.args.sender===ei.eventLog.args.sourceAddress&&en.eventLog.args.destinationChain===ei.eventLog.args.destinationChain&&en.eventLog.args.destinationContractAddress===ei.eventLog.args.destinationAddress&&en.eventLog.args.payloadHash===ei.eventLog.args.payloadHash&&en.eventLog.args.symbol===ei.eventLog.args.symbol&&en.eventLog.args.amount.toString()===ei.eventLog.args.amount.toString()}function validateContractCall(en,ei){return en.eventLog.args.sender===ei.eventLog.args.sourceAddress&&en.eventLog.args.destinationChain===ei.eventLog.args.destinationChain&&en.eventLog.args.destinationContractAddress===ei.eventLog.args.destinationAddress&&en.eventLog.args.payloadHash===ei.eventLog.args.payloadHash}function getNativeGasAmountFromTxReceipt(en){let ei,eo;let ea=isContractCallWithToken(en);return ea?(ei=getNativeGasPaidForContractCallWithTokenEvent(en),eo=getContractCallWithTokenEvent(en),ei&&eo&&validateContractCallWithToken(eo,ei))?null==ei?void 0:ei.eventLog.args.gasFeeAmount.toString():"0":(ei=getNativeGasPaidForContractCallEvent(en),eo=getContractCallEvent(en),ei&&eo&&validateContractCall(eo,ei))?null==ei?void 0:ei.eventLog.args.gasFeeAmount.toString():"0"}function getGasAmountFromTxReceipt(en){let ei=es.ethers.utils.id("GasPaidForContractCallWithToken(address,string,
2string,bytes32,string,uint256,address,uint256,address)"),eo=es.ethers.utils.id("GasPaidForContractCall(address,string,string,bytes32,uint256,uint256,address)"),ed=findContractEvent(en,[eo,ei],new ea.Interface(["event GasPaidForContractCallWithToken(address indexed sourceAddress,string destinationChain,string destinationAddress,bytes32 indexed payloadHash,string symbol,uint256 amount,address gasToken,uint256 gasFeeAmount,address refundAddress)","event GasPaidForContractCall(address indexed sourceAddress,string destinationChain,string destinationAddress,bytes32 indexed payloadHash,address gasToken,uint256 gasFeeAmount,address refundAddress)"]));return null==ed?void 0:ed.eventLog.args.slice(-2)[0].toString()}function findContractEvent(en,ei,eo){for(let[ea,es]of en.logs.entries()){let en=ei.indexOf(es.topics[0]);if(en>-1){let ed=eo.parseLog(es);return{signature:ei[en],eventLog:ed,logIndex:es.logIndex,eventIndex:ea}}}}ei.getDestinationChainFromTxReceipt=getDestinationChainFromTxReceipt,ei.getLogIndexFromTxReceipt=getLogIndexFromTxReceipt,ei.getEventIndexFromTxReceipt=getEventIndexFromTxReceipt,ei.isContractCallWithToken=isContractCallWithToken,ei.getContractCallEvent=getContractCallEvent,ei.getContractCallWithTokenEvent=getContractCallWithTokenEvent,ei.getNativeGasPaidForContractCallEvent=getNativeGasPaidForContractCallEvent,ei.getNativeGasPaidForContractCallWithTokenEvent=getNativeGasPaidForContractCallWithTokenEvent,ei.validateContractCallWithToken=validateContractCallWithToken,ei.validateContractCall=validateContractCall,ei.getNativeGasAmountFromTxReceipt=getNativeGasAmountFromTxReceipt,ei.getGasAmountFromTxReceipt=getGasAmountFromTxReceipt,ei.findContractEvent=findContractEvent},83208:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.getCommandId=void 0;let ea=eo(56371),getCommandId=(en,ei,eo,es,ed)=>{var eu;let ef=null===(eu=ed[es].networkInfo[en.toLowerCase()])||void 0===eu?void 0:eu.chainId;if(!ef)return"";let ep=(0,ea.arrayify)(eo).reverse(),em=new Uint8Array([...(0,ea.arrayify)(ei),...new Uint8Array(8).map((en,ei)=>ep[ei]||en)]),eg=(0,ea.arrayify)(ef),ey=new Uint8Array(em.length+eg.length);return ey.set(em,0),ey.set(eg,em.length),(0,ea.keccak256)(ey).slice(2)};ei.getCommandId=getCommandId},88763:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),es(eo(8160),ei),es(eo(3932),ei),es(eo(62533),ei),es(eo(36713),ei),es(eo(83208),ei)},46306:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.mapIntoAxelarscanResponseType=void 0;let ea=eo(79339),getStatusKey=(en,ei)=>{let eo=Object.values(en).indexOf(ei);return Object.keys(en)[eo]},mapIntoAxelarscanResponseType=(en,ei)=>Object.assign(Object.assign({},en),{key_id:en.keyId,execute_data:en.executeData,prev_batched_commands_id:en.prevBatchedCommandsId,command_ids:en.commandIds,batch_id:en.id,chain:ei,status:getStatusKey(ea.BatchedCommandsStatus,en.status)});ei.mapIntoAxelarscanResponseType=mapIntoAxelarscanResponseType},62533:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.getDefaultProvider=void 0;let es=eo(87902),ed=ea(eo(77290));function getDefaultProvider(en,ei){let{networkInfo:eo,rpcMap:ea}=ed.default[ei];return new es.ethers.providers.JsonRpcProvider(ea[en],eo[en])}ei.getDefaultProvider=getDefaultProvider},20887:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),es(eo(68781),ei),es(eo(9818),ei),es(eo(95001),ei),es(eo(88224),ei),es(eo(80786),ei)},99102:function(en,ei){"use strict";var eo;Object.defineProperty(ei,"__esModule",{value:!0}),ei.RetryErrorRecovery=void 0,function(en){en.REFETCH="refetch",en.REBROADCAST="rebroadcast",en.SKIP="skip"}
2(eo=ei.RetryErrorRecovery||(ei.RetryErrorRecovery={}))},54155:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.IAxelarExecutable=void 0,ei.IAxelarExecutable={_format:"hh-sol-artifact-1",contractName:"IAxelarExecutable",sourceName:"contracts/interfaces/IAxelarExecutable.sol",abi:[{inputs:[],name:"NotApprovedByGateway",type:"error"},{inputs:[{internalType:"bytes32",name:"commandId",type:"bytes32"},{internalType:"string",name:"sourceChain",type:"string"},{internalType:"string",name:"sourceAddress",type:"string"},{internalType:"bytes",name:"payload",type:"bytes"}],name:"execute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"commandId",type:"bytes32"},{internalType:"string",name:"sourceChain",type:"string"},{internalType:"string",name:"sourceAddress",type:"string"},{internalType:"bytes",name:"payload",type:"bytes"},{internalType:"string",name:"tokenSymbol",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"executeWithToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"gateway",outputs:[{internalType:"contract IAxelarGateway",name:"",type:"address"}],stateMutability:"view",type:"function"}],bytecode:"0x",deployedBytecode:"0x",linkReferences:{},deployedLinkReferences:{}},ei.default=ei.IAxelarExecutable},25680:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),es(eo(39377),ei),es(eo(28935),ei),es(eo(30076),ei),es(eo(53773),ei),es(eo(20887),ei),es(eo(48413),ei),es(eo(46337),ei)},46337:function(en,ei,eo){"use strict";var ea,es,ed,eu;Object.defineProperty(ei,"__esModule",{value:!0}),ei.isNativeToken=ei.ApproveGatewayError=ei.QueryTransferStatus=ei.CosmosChain=ei.Environment=void 0;let ef=eo(29756);!function(en){en.DEVNET="devnet",en.TESTNET="testnet",en.MAINNET="mainnet"}(ea=ei.Environment||(ei.Environment={})),function(en){en.AXELAR="axelar",en.COSMOSHUB="cosmoshub",en.JUNO="juno",en.OSMOSIS="osmosis",en.TERRA="terra"}(es=ei.CosmosChain||(ei.CosmosChain={})),function(en){en.DEPOSIT_CONFIRMED="deposit_confirmed",en.ASSET_SENT="asset_sent",en.VOTED="voted",en.BATCH_SIGNED="batch_signed",en.IBC_SENT="ibc_sent",en.EXECUTED="executed"}(ed=ei.QueryTransferStatus||(ei.QueryTransferStatus={})),function(en){en.ALREADY_APPROVED="already approved",en.ALREADY_EXECUTED="already executed",en.SIGN_COMMAND_FAILED="cannot sign command",en.CONFIRM_COMMAND_FAILED="cannot confirm command",en.FETCHING_STATUS_FAILED="cannot fetching status from axelarscan api",en.ERROR_BATCHED_COMMAND="cannot find batch command",en.ERROR_GET_EVM_EVENT="cannot get evm event",en.ERROR_BROADCAST_EVENT="cannot broadcast event to destination chain",en.ERROR_UNKNOWN="unknown error",en.ERROR_ACCOUNT_SEQUENCE_MISMATCH="account sequence mismatch"}(eu=ei.ApproveGatewayError||(ei.ApproveGatewayError={}));let isNativeToken=(en,ei,eo)=>{var ea;return(null===(ea=ef.nativeGasTokenSymbol[eo][en])||void 0===ea?void 0:ea.toLowerCase())===(null==ei?void 0:ei.toLowerCase())};ei.isNativeToken=isNativeToken},5784:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})},es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.RestService=void 0;let ed=es(eo(54098)),eu=es(eo(86428));let RestService=class RestService{constructor(en){this.host=en}post(en,ei,eo){let ea={method:"POST",headers:{"Content-Type":"application/json","x-trace-id":eo||"none"},body:JSON.stringify(ei)};return this.execRest(en,ea)}get(en,ei){let eo={method:"GET",headers:{"Content-Type":"application/json","x-trace-id":ei||"none"}};return this.execRest(en,eo)}execRest(en,ei){return ea(this,void 0,void 0,function*(){return(0,ed.default)(this.host+en,ei).then(en=>{if(!en.ok)throw en;return en}).then(en=>en.json()).catch(en=>ea(this,void 0,void 0,function*(){let ei;try{ei=yield en.json()}catch(eo){ei=yield en.text()}let eo=new eu.default(en.status,(null==ei?void 0:ei.message)||Object.keys(ei).length>0?ei:en.statusText);throw eo}))})}};ei.RestService=RestService},14487:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SocketService=void 0;let es=eo(57046),ed=eo(18842);let SocketService=class SocketService{constructor(en,ei,eo=!1){this.testMode=!1,this.resourceUrl=en,this.environment=ei,this.testMode=eo}createSocket(){return ea(this,void 0,void 0,function*(){return this.testMode?this.socket=(0,es.io)(this.resourceUrl,{reconnectionDelay:0,forceNew:!0,transports:["websocket"],extraHeaders:{"User-Agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0"}}):(this.socket=(0,es.io)(this.resourceUrl,{transports:["websocket"],reconnectionDelayMax:1e4,extraHeaders:{"User-Agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0"}}),this.supportedChains=yield(0,ed.loadChains)({environment:this.environment})),new Promise(en=>{this.socket.on("connect",()=>{en(!0)})})})}joinRoomAndWaitForEvent(en,ei,eo,es){return ea(this,void 0,void 0,function*(){return yield this.createSocket(),new Promise(ea=>{let ed=18e5,eu=setTimeout(()=>{this.socket.off("bridge-event"),this.disconnect()},ed);this.socket.emit("room:join",en),this.socket.on("bridge-event",en=>{let ed=en.Attributes,ef=this.supportedChains.find(en=>en.chainIdentifier[this.environment].toLowerCase()===ei.toLowerCase()),ep=this.supportedChains.find(en=>en.chainIdentifier[this.environment].toLowerCase()===eo.toLowerCase()),em=(null==ef?void 0:ef.module)==="axelarnet",eg="axelar"===eo.toLowerCase(),ey=em||ed.sourceChain.toLowerCase()===ei.toLowerCase(),eb=ed.destinationChain.toLowerCase()===(eg?"axelarnet":ep.chainIdentifier[this.environment]),eS=ed.destinationAddress===es;ey&&eb&&eS&&(clearTimeout(eu),this.socket.off("bridge-event"),this.disconnect(),ea(en))})})})}disconnect(){this.socket.disconnect()}};ei.SocketService=SocketService},43527:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),es(eo(5784),ei),es(eo(14487),ei)},97753:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.CLIENT_API_GET_FEE=ei.CLIENT_API_GET_OTC=ei.CLIENT_API_POST_TRANSFER_ASSET=ei.TRANSFER_RESULT=void 0,ei.TRANSFER_RESULT="socket-transfer-result",ei.CLIENT_API_POST_TRANSFER_ASSET="/transfer-assets",ei.CLIENT_API_GET_OTC="/otc",ei.CLIENT_API_GET_FEE="/chain/fee"},94754:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),es(eo(40777),ei),es(eo(97743),ei),es(eo(26551),ei),es(eo(89411),ei),es(eo(11807),ei)},89411:function(en,ei){"use strict";var eo=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};function retry(en,ei=5,ea=3e3){return eo(this,void 0,void 0,function*(){let eo;for(let es=0;es<ei;es++)try{return yield en()}catch(en){eo=en,yield new Promise(en=>setTimeout(en,ea))}throw eo})}Object.defineProperty(ei,"__esModule",{value:!0}),ei.retry=void 0,ei.retry=retry},26551:function(en,ei){"use strict";function sleep(en){return new Promise(ei=>setTimeout(ei,1e3*en))}Object.defineProperty(ei,"__esModule",{value:!0}),ei.sleep=void 0,ei.sleep=sleep},11807:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.throwIfInvalidChainIds=ei.validateChainIdentifier=void 0;let es=eo(8289),ed=eo(18842);function validateChainIdentifier(en,ei){return ea(this,void 0,void 0,function*(){let eo=yield(0,ed.loadChains)({environment:ei}),ea=eo.map(en=>en.chainIdentifier[ei]),es=ea.find(ei=>ei===en.toLowerCase());return{foundChain:!!es,bestMatch:!es&&findSimilarInArray(ea,en)}})}function findSimilarInArray(en,ei){let eo=en[0],ea=0;for(let ed in en){let eu=(0,es.stringSimilarity)(en[ed],ei);eu>=ea&&(ea=eu,eo=en[ed])}return eo}function throwIfInvalidChainIds(en,ei){return ea(this,void 0,void 0,function*(){let eo=yield Promise.all(en.map(en=>validateChainIdentifier(en,ei)));for(let ei=0;ei<eo.length;ei++)if(!eo[ei].foundChain)throw Error(`Invalid chain identifier for ${en[ei]}
2. Did you mean ${eo[ei].bestMatch}?`)})}ei.validateChainIdentifier=validateChainIdentifier,ei.throwIfInvalidChainIds=throwIfInvalidChainIds},40777:function(en,ei,eo){"use strict";var ea=this&&this.__awaiter||function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};Object.defineProperty(ei,"__esModule",{value:!0}),ei.validateDestinationAddressByChainName=ei.validateDestinationAddressByChainSymbol=void 0;let es=eo(18842),ed=eo(56371),eu=eo(27715);function validateDestinationAddressByChainSymbol(en,ei,eo){return ea(this,void 0,void 0,function*(){let ea=yield(0,es.loadChains)({environment:eo}),eu=ea.find(ei=>ei.chainSymbol.toLowerCase()===en.toLowerCase());return(null==eu?void 0:eu.module)==="evm"?(0,ed.isAddress)(ei):ei&&(null==eu?void 0:eu.addressPrefix)&&checkPrefix(ei,null==eu?void 0:eu.addressPrefix)})}function validateDestinationAddressByChainName(en,ei,eo){return ea(this,void 0,void 0,function*(){let ea=yield(0,es.loadChains)({environment:eo}),eu=ea.find(ei=>ei.chainIdentifier[eo]===en.toLowerCase());return(null==eu?void 0:eu.module)==="evm"?(0,ed.isAddress)(ei):ei&&(null==eu?void 0:eu.addressPrefix)&&checkPrefix(ei,null==eu?void 0:eu.addressPrefix)})}ei.validateDestinationAddressByChainSymbol=validateDestinationAddressByChainSymbol,ei.validateDestinationAddressByChainName=validateDestinationAddressByChainName;let checkPrefix=(en,ei)=>{if(!en)return!1;try{return eu.bech32.decode(en).prefix===ei}catch(en){return!1}}},97743:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.signOtc=ei.createWallet=void 0;let ea=eo(87902);function createWallet(){if(globalThis.sessionStorage){let en=globalThis.sessionStorage.getItem("axelar-wallet");if(en){let ei=ea.ethers.Wallet.fromMnemonic(en);return ei}{let en=ea.ethers.Wallet.createRandom();return globalThis.sessionStorage.setItem("axelar-wallet",en._mnemonic().phrase),en}}{let en=ea.ethers.Wallet.createRandom();return en}}function signOtc(en,ei){return en.signMessage(ei)}ei.createWallet=createWallet,ei.signOtc=signOtc;let es={createWallet,signOtc};ei.default=es},93226:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.PendingIBCTransferCountResponse_TransfersByChainEntry=ei.PendingIBCTransferCountResponse=ei.PendingIBCTransferCountRequest=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBasePendingIBCTransferCountRequest(){return{}}function createBasePendingIBCTransferCountResponse(){return{transfersByChain:{}}}function createBasePendingIBCTransferCountResponse_TransfersByChainEntry(){return{key:"",value:0}}function isObject(en){return"object"==typeof en&&null!==en}function isSet(en){return null!=en}ei.protobufPackage="axelar.axelarnet.v1beta1",ei.PendingIBCTransferCountRequest={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePendingIBCTransferCountRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.PendingIBCTransferCountRequest.fromPartial(en??{}),fromPartial(en){let ei=createBasePendingIBCTransferCountRequest();return ei}},ei.PendingIBCTransferCountResponse={encode:(en,eo=ed.default.Writer.create())=>(Object.entries(en.transfersByChain).forEach(([en,ea])=>{ei.PendingIBCTransferCountResponse_TransfersByChainEntry.encode({key:en,value:ea},eo.uint32(10).fork()).ldelim()}),eo),decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,eu=createBasePendingIBCTransferCountResponse();for(;ea.pos<es;){let en=ea.uint32();if(en>>>
23==1){let en=ei.PendingIBCTransferCountResponse_TransfersByChainEntry.decode(ea,ea.uint32());void 0!==en.value&&(eu.transfersByChain[en.key]=en.value)}else ea.skipType(7&en)}return eu},fromJSON:en=>({transfersByChain:isObject(en.transfersByChain)?Object.entries(en.transfersByChain).reduce((en,[ei,eo])=>(en[ei]=Number(eo),en),{}):{}}),toJSON(en){let ei={};return ei.transfersByChain={},en.transfersByChain&&Object.entries(en.transfersByChain).forEach(([en,eo])=>{ei.transfersByChain[en]=Math.round(eo)}),ei},create:en=>ei.PendingIBCTransferCountResponse.fromPartial(en??{}),fromPartial(en){let ei=createBasePendingIBCTransferCountResponse();return ei.transfersByChain=Object.entries(en.transfersByChain??{}).reduce((en,[ei,eo])=>(void 0!==eo&&(en[ei]=Number(eo)),en),{}),ei}},ei.PendingIBCTransferCountResponse_TransfersByChainEntry={encode:(en,ei=ed.default.Writer.create())=>(""!==en.key&&ei.uint32(10).string(en.key),0!==en.value&&ei.uint32(16).uint32(en.value),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePendingIBCTransferCountResponse_TransfersByChainEntry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.string();break;case 2:es.value=eo.uint32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:isSet(en.key)?String(en.key):"",value:isSet(en.value)?Number(en.value):0}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=en.key),void 0!==en.value&&(ei.value=Math.round(en.value)),ei},create:en=>ei.PendingIBCTransferCountResponse_TransfersByChainEntry.fromPartial(en??{}),fromPartial(en){let ei=createBasePendingIBCTransferCountResponse_TransfersByChainEntry();return ei.key=en.key??"",ei.value=en.value??0,ei}},ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},66926:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryServiceClientImpl=ei.MsgServiceClientImpl=ei.protobufPackage=void 0;let es=ea(eo(62100)),ed=eo(93226),eu=eo(50378);ei.protobufPackage="axelar.axelarnet.v1beta1";let MsgServiceClientImpl=class MsgServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.axelarnet.v1beta1.MsgService",this.rpc=en,this.Link=this.Link.bind(this),this.ConfirmDeposit=this.ConfirmDeposit.bind(this),this.ExecutePendingTransfers=this.ExecutePendingTransfers.bind(this),this.AddCosmosBasedChain=this.AddCosmosBasedChain.bind(this),this.RegisterAsset=this.RegisterAsset.bind(this),this.RouteIBCTransfers=this.RouteIBCTransfers.bind(this),this.RegisterFeeCollector=this.RegisterFeeCollector.bind(this),this.RetryIBCTransfer=this.RetryIBCTransfer.bind(this),this.RouteMessage=this.RouteMessage.bind(this),this.CallContract=this.CallContract.bind(this)}Link(en){let ei=eu.LinkRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Link",ei);return eo.then(en=>eu.LinkResponse.decode(new es.default.Reader(en)))}ConfirmDeposit(en){let ei=eu.ConfirmDepositRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ConfirmDeposit",ei);return eo.then(en=>eu.ConfirmDepositResponse.decode(new es.default.Reader(en)))}ExecutePendingTransfers(en){let ei=eu.ExecutePendingTransfersRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ExecutePendingTransfers",ei);return eo.then(en=>eu.ExecutePendingTransfersResponse.decode(new es.default.Reader(en)))}AddCosmosBasedChain(en){let ei=eu.AddCosmosBasedChainRequest.encode(en).finish(),eo=this.rpc.request(this.service,"AddCosmosBasedChain",ei);return eo.then(en=>eu.AddCosmosBasedChainResponse.decode(new es.default.Reader(en)))}RegisterAsset(en){let ei=eu.RegisterAssetRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RegisterAsset",ei);return eo.then(en=>eu.RegisterAssetResponse.decode(new es.default.Reader(en)))}RouteIBCTransfers(en){let ei=eu.RouteIBCTransfersRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RouteIBCTransfers",ei);return eo.then(en=>eu.RouteIBCTransfersResponse.decode(new es.default.Reader(en)))}RegisterFeeCollector(en){let ei=eu.RegisterFeeCollectorRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RegisterFeeCollector",ei);return eo.then(en=>eu.RegisterFeeCollectorResponse.decode(new es.default.Reader(en)))}RetryIBCTransfer(en){let ei=eu.RetryIBCTransferRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RetryIBCTransfer",ei);return eo.then(en=>eu.RetryIBCTransferResponse.decode(new es.default.Reader(en)))}RouteMessage(en){let ei=eu.RouteMessageRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RouteMessage",ei);return eo.then(en=>eu.RouteMessageResponse.decode(new es.default.Reader(en)))}CallContract(en){let ei=eu.CallContractRequest.encode(en).finish(),eo=this.rpc.request(this.service,"CallContract",ei);return eo.then(en=>eu.CallContractResponse.decode(new es.default.Reader(en)))}};ei.MsgServiceClientImpl=MsgServiceClientImpl;let QueryServiceClientImpl=class QueryServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.axelarnet.v1beta1.QueryService",this.rpc=en,this.PendingIBCTransferCount=this.PendingIBCTransferCount.bind(this)}PendingIBCTransferCount(en){let ei=ed.PendingIBCTransferCountRequest.encode(en).finish(),eo=this.rpc.request(this.service,"PendingIBCTransferCount",ei);return eo.then(en=>ed.PendingIBCTransferCountResponse.decode(new es.default.Reader(en)))}};ei.QueryServiceClientImpl=QueryServiceClientImpl},50378:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.CallContractResponse=ei.CallContractRequest=ei.RouteMessageResponse=ei.RouteMessageRequest=ei.RetryIBCTransferResponse=ei.RetryIBCTransferRequest=ei.RegisterFeeCollectorResponse=ei.RegisterFeeCollectorRequest=ei.RouteIBCTransfersResponse=ei.RouteIBCTransfersRequest=ei.RegisterAssetResponse=ei.RegisterAssetRequest=ei.AddCosmosBasedChainResponse=ei.AddCosmosBasedChainRequest=ei.RegisterIBCPathResponse=ei.RegisterIBCPathRequest=ei.ExecutePendingTransfersResponse=ei.ExecutePendingTransfersRequest=ei.ConfirmDepositResponse=ei.ConfirmDepositRequest=ei.LinkResponse=ei.LinkRequest=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100)),eu=eo(61099),ef=eo(45743),ep=eo(84372);function createBaseLinkRequest(){return{sender:new Uint8Array,recipientAddr:"",recipientChain:"",asset:""}}function createBaseLinkResponse(){return{depositAddr:""}}
2function createBaseConfirmDepositRequest(){return{sender:new Uint8Array,depositAddress:new Uint8Array,denom:""}}function createBaseConfirmDepositResponse(){return{}}function createBaseExecutePendingTransfersRequest(){return{sender:new Uint8Array}}function createBaseExecutePendingTransfersResponse(){return{}}function createBaseRegisterIBCPathRequest(){return{sender:new Uint8Array,chain:"",path:""}}function createBaseRegisterIBCPathResponse(){return{}}function createBaseAddCosmosBasedChainRequest(){return{sender:new Uint8Array,chain:void 0,addrPrefix:"",nativeAssets:[],cosmosChain:"",ibcPath:""}}function createBaseAddCosmosBasedChainResponse(){return{}}function createBaseRegisterAssetRequest(){return{sender:new Uint8Array,chain:"",asset:void 0,limit:new Uint8Array,window:void 0}}function createBaseRegisterAssetResponse(){return{}}function createBaseRouteIBCTransfersRequest(){return{sender:new Uint8Array}}function createBaseRouteIBCTransfersResponse(){return{}}function createBaseRegisterFeeCollectorRequest(){return{sender:new Uint8Array,feeCollector:new Uint8Array}}function createBaseRegisterFeeCollectorResponse(){return{}}function createBaseRetryIBCTransferRequest(){return{sender:new Uint8Array,chain:"",id:es.default.UZERO}}function createBaseRetryIBCTransferResponse(){return{}}function createBaseRouteMessageRequest(){return{sender:new Uint8Array,id:"",payload:new Uint8Array}}function createBaseRouteMessageResponse(){return{}}function createBaseCallContractRequest(){return{sender:new Uint8Array,chain:"",contractAddress:"",payload:new Uint8Array,fee:void 0}}function createBaseCallContractResponse(){return{}}ei.protobufPackage="axelar.axelarnet.v1beta1",ei.LinkRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.recipientAddr&&ei.uint32(18).string(en.recipientAddr),""!==en.recipientChain&&ei.uint32(26).string(en.recipientChain),""!==en.asset&&ei.uint32(34).string(en.asset),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLinkRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.recipientAddr=eo.string();break;case 3:es.recipientChain=eo.string();break;case 4:es.asset=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,recipientAddr:isSet(en.recipientAddr)?String(en.recipientAddr):"",recipientChain:isSet(en.recipientChain)?String(en.recipientChain):"",asset:isSet(en.asset)?String(en.asset):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.recipientAddr&&(ei.recipientAddr=en.recipientAddr),void 0!==en.recipientChain&&(ei.recipientChain=en.recipientChain),void 0!==en.asset&&(ei.asset=en.asset),ei},create:en=>ei.LinkRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseLinkRequest();return ei.sender=en.sender??new Uint8Array,ei.recipientAddr=en.recipientAddr??"",ei.recipientChain=en.recipientChain??"",ei.asset=en.asset??"",ei}},ei.LinkResponse={encode:(en,ei=ed.default.Writer.create())=>(""!==en.depositAddr&&ei.uint32(10).string(en.depositAddr),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLinkResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.depositAddr=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({depositAddr:isSet(en.depositAddr)?String(en.depositAddr):""}),toJSON(en){let ei={};return void 0!==en.depositAddr&&(ei.depositAddr=en.depositAddr),ei},create:en=>ei.LinkResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseLinkResponse();return ei.depositAddr=en.depositAddr??"",ei}},ei.ConfirmDepositRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),0!==en.depositAddress.length&&ei.uint32(34).bytes(en.depositAddress),""!==en.denom&&ei.uint32(42).string(en.denom),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmDepositRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 4:es.depositAddress=eo.bytes();break;case 5:es.denom=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,depositAddress:isSet(en.depositAddress)?bytesFromBase64(en.depositAddress):new Uint8Array,denom:isSet(en.denom)?String(en.denom):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.depositAddress&&(ei.depositAddress=base64FromBytes(void 0!==en.depositAddress?en.depositAddress:new Uint8Array)),void 0!==en.denom&&(ei.denom=en.denom),ei},create:en=>ei.ConfirmDepositRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmDepositRequest();return ei.sender=en.sender??new Uint8Array,ei.depositAddress=en.depositAddress??new Uint8Array,ei.denom=en.denom??"",ei}},ei.ConfirmDepositResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmDepositResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ConfirmDepositResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmDepositResponse();return ei}},ei.ExecutePendingTransfersRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseExecutePendingTransfersRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.sender=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),ei},create:en=>ei.ExecutePendingTransfersRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseExecutePendingTransfersRequest();return ei.sender=en.sender??new Uint8Array,ei}},ei.ExecutePendingTransfersResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseExecutePendingTransfersResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ExecutePendingTransfersResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseExecutePendingTransfersResponse();return ei}},ei.RegisterIBCPathRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),""!==en.path&&ei.uint32(26).string(en.path),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterIBCPathRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.path=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",path:isSet(en.path)?String(en.path):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.path&&(ei.path=en.path),ei},create:en=>ei.RegisterIBCPathRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterIBCPathRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.path=en.path??"",ei}},ei.RegisterIBCPathResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterIBCPathResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RegisterIBCPathResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterIBCPathResponse();return ei}},ei.AddCosmosBasedChainRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==e
2n.sender.length&&ei.uint32(10).bytes(en.sender),void 0!==en.chain&&ef.Chain.encode(en.chain,ei.uint32(18).fork()).ldelim(),""!==en.addrPrefix&&ei.uint32(26).string(en.addrPrefix),en.nativeAssets))ef.Asset.encode(eo,ei.uint32(42).fork()).ldelim();return""!==en.cosmosChain&&ei.uint32(50).string(en.cosmosChain),""!==en.ibcPath&&ei.uint32(58).string(en.ibcPath),ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddCosmosBasedChainRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=ef.Chain.decode(eo,eo.uint32());break;case 3:es.addrPrefix=eo.string();break;case 5:es.nativeAssets.push(ef.Asset.decode(eo,eo.uint32()));break;case 6:es.cosmosChain=eo.string();break;case 7:es.ibcPath=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?ef.Chain.fromJSON(en.chain):void 0,addrPrefix:isSet(en.addrPrefix)?String(en.addrPrefix):"",nativeAssets:Array.isArray(en?.nativeAssets)?en.nativeAssets.map(en=>ef.Asset.fromJSON(en)):[],cosmosChain:isSet(en.cosmosChain)?String(en.cosmosChain):"",ibcPath:isSet(en.ibcPath)?String(en.ibcPath):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain?ef.Chain.toJSON(en.chain):void 0),void 0!==en.addrPrefix&&(ei.addrPrefix=en.addrPrefix),en.nativeAssets?ei.nativeAssets=en.nativeAssets.map(en=>en?ef.Asset.toJSON(en):void 0):ei.nativeAssets=[],void 0!==en.cosmosChain&&(ei.cosmosChain=en.cosmosChain),void 0!==en.ibcPath&&(ei.ibcPath=en.ibcPath),ei},create:en=>ei.AddCosmosBasedChainRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseAddCosmosBasedChainRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=void 0!==en.chain&&null!==en.chain?ef.Chain.fromPartial(en.chain):void 0,ei.addrPrefix=en.addrPrefix??"",ei.nativeAssets=en.nativeAssets?.map(en=>ef.Asset.fromPartial(en))||[],ei.cosmosChain=en.cosmosChain??"",ei.ibcPath=en.ibcPath??"",ei}},ei.AddCosmosBasedChainResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddCosmosBasedChainResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.AddCosmosBasedChainResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseAddCosmosBasedChainResponse();return ei}},ei.RegisterAssetRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),void 0!==en.asset&&ef.Asset.encode(en.asset,ei.uint32(26).fork()).ldelim(),0!==en.limit.length&&ei.uint32(34).bytes(en.limit),void 0!==en.window&&eu.Duration.encode(en.window,ei.uint32(42).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterAssetRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.asset=ef.Asset.decode(eo,eo.uint32());break;case 4:es.limit=eo.bytes();break;case 5:es.window=eu.Duration.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",asset:isSet(en.asset)?ef.Asset.fromJSON(en.asset):void 0,limit:isSet(en.limit)?bytesFromBase64(en.limit):new Uint8Array,window:isSet(en.window)?eu.Duration.fromJSON(en.window):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.asset&&(ei.asset=en.asset?ef.Asset.toJSON(en.asset):void 0),void 0!==en.limit&&(ei.limit=base64FromBytes(void 0!==en.limit?en.limit:new Uint8Array)),void 0!==en.window&&(ei.window=en.window?eu.Duration.toJSON(en.window):void 0),ei},create:en=>ei.RegisterAssetRequest.fromPartial(en??{}
2),fromPartial(en){let ei=createBaseRegisterAssetRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.asset=void 0!==en.asset&&null!==en.asset?ef.Asset.fromPartial(en.asset):void 0,ei.limit=en.limit??new Uint8Array,ei.window=void 0!==en.window&&null!==en.window?eu.Duration.fromPartial(en.window):void 0,ei}},ei.RegisterAssetResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterAssetResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RegisterAssetResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterAssetResponse();return ei}},ei.RouteIBCTransfersRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRouteIBCTransfersRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.sender=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),ei},create:en=>ei.RouteIBCTransfersRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRouteIBCTransfersRequest();return ei.sender=en.sender??new Uint8Array,ei}},ei.RouteIBCTransfersResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRouteIBCTransfersResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RouteIBCTransfersResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRouteIBCTransfersResponse();return ei}},ei.RegisterFeeCollectorRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),0!==en.feeCollector.length&&ei.uint32(18).bytes(en.feeCollector),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterFeeCollectorRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.feeCollector=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,feeCollector:isSet(en.feeCollector)?bytesFromBase64(en.feeCollector):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.feeCollector&&(ei.feeCollector=base64FromBytes(void 0!==en.feeCollector?en.feeCollector:new Uint8Array)),ei},create:en=>ei.RegisterFeeCollectorRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterFeeCollectorRequest();return ei.sender=en.sender??new Uint8Array,ei.feeCollector=en.feeCollector??new Uint8Array,ei}},ei.RegisterFeeCollectorResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterFeeCollectorResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RegisterFeeCollectorResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterFeeCollectorResponse();return ei}},ei.RetryIBCTransferRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),en.id.isZero()||ei.uint32(24).uint64(en.id),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRetryIBCTransferRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.id=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",id:isSet(en.id)?es.default.fromValue(en.id):es.default.UZERO}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.id&&(ei.id=(en.id||es.default.UZERO).toString()),ei},create:en=>ei.RetryIBCTransferRequest.fromPartial(en??{}
2),fromPartial(en){let ei=createBaseRetryIBCTransferRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.id=void 0!==en.id&&null!==en.id?es.default.fromValue(en.id):es.default.UZERO,ei}},ei.RetryIBCTransferResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRetryIBCTransferResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RetryIBCTransferResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRetryIBCTransferResponse();return ei}},ei.RouteMessageRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.id&&ei.uint32(18).string(en.id),0!==en.payload.length&&ei.uint32(26).bytes(en.payload),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRouteMessageRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.id=eo.string();break;case 3:es.payload=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,id:isSet(en.id)?String(en.id):"",payload:isSet(en.payload)?bytesFromBase64(en.payload):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.id&&(ei.id=en.id),void 0!==en.payload&&(ei.payload=base64FromBytes(void 0!==en.payload?en.payload:new Uint8Array)),ei},create:en=>ei.RouteMessageRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRouteMessageRequest();return ei.sender=en.sender??new Uint8Array,ei.id=en.id??"",ei.payload=en.payload??new Uint8Array,ei}},ei.RouteMessageResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRouteMessageResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RouteMessageResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRouteMessageResponse();return ei}},ei.CallContractRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),""!==en.contractAddress&&ei.uint32(26).string(en.contractAddress),0!==en.payload.length&&ei.uint32(34).bytes(en.payload),void 0!==en.fee&&ep.Fee.encode(en.fee,ei.uint32(42).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCallContractRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.contractAddress=eo.string();break;case 4:es.payload=eo.bytes();break;case 5:es.fee=ep.Fee.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",contractAddress:isSet(en.contractAddress)?String(en.contractAddress):"",payload:isSet(en.payload)?bytesFromBase64(en.payload):new Uint8Array,fee:isSet(en.fee)?ep.Fee.fromJSON(en.fee):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.contractAddress&&(ei.contractAddress=en.contractAddress),void 0!==en.payload&&(ei.payload=base64FromBytes(void 0!==en.payload?en.payload:new Uint8Array)),void 0!==en.fee&&(ei.fee=en.fee?ep.Fee.toJSON(en.fee):void 0),ei},create:en=>ei.CallContractRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseCallContractRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.contractAddress=en.contractAddress??"",ei.payload=en.payload??new Uint8Array,ei.fee=void 0!==en.fee&&null!==en.fee?ep.Fee.fromPartial(en.fee):void 0,ei}},ei.CallContractResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCallContractResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.CallContractResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseCallContractResponse();return ei}};var em=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(em.Buffer)return Uint8Array.from(em.Buffer.from(en,"base64"));{let ei=em.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(em.Buffer)return em.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),em.btoa(ei.join(""))}}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},84372:function(en,ei,eo){"use strict";var ea,es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Fee=ei.Asset=ei.CosmosChain=ei.IBCTransfer=ei.iBCTransfer_StatusToJSON=ei.iBCTransfer_StatusFromJSON=ei.IBCTransfer_Status=ei.protobufPackage=void 0;let ed=es(eo(41583)),eu=es(eo(62100)),ef=eo(61039);function iBCTransfer_StatusFromJSON(en){switch(en){case 0:case"STATUS_UNSPECIFIED":return ea.STATUS_UNSPECIFIED;case 1:case"STATUS_PENDING":return ea.STATUS_PENDING;case 2:case"STATUS_COMPLETED":return ea.STATUS_COMPLETED;case 3:case"STATUS_FAILED":return ea.STATUS_FAILED;default:return ea.UNRECOGNIZED}}function iBCTransfer_StatusToJSON(en){switch(en){case ea.STATUS_UNSPECIFIED:return"STATUS_UNSPECIFIED";case ea.STATUS_PENDING:return"STATUS_PENDING";case ea.STATUS_COMPLETED:return"STATUS_COMPLETED";case ea.STATUS_FAILED:return"STATUS_FAILED";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseIBCTransfer(){return{sender:new Uint8Array,receiver:"",token:void 0,portId:"",channelId:"",sequence:ed.default.UZERO,id:ed.default.UZERO,status:0}}function createBaseCosmosChain(){return{name:"",ibcPath:"",assets:[],addrPrefix:""}}function createBaseAsset(){return{denom:"",minAmount:new Uint8Array}}function createBaseFee(){return{amount:void 0,recipient:new Uint8Array}}ei.protobufPackage="axelar.axelarnet.v1beta1",function(en){en[en.STATUS_UNSPECIFIED=0]="STATUS_UNSPECIFIED",en[en.STATUS_PENDING=1]="STATUS_PENDING",en[en.STATUS_COMPLETED=2]="STATUS_COMPLETED",en[en.STATUS_FAILED=3]="STATUS_FAILED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.IBCTransfer_Status||(ei.IBCTransfer_Status={})),ei.iBCTransfer_StatusFromJSON=iBCTransfer_StatusFromJSON,ei.iBCTransfer_StatusToJSON=iBCTransfer_StatusToJSON,ei.IBCTransfer={encode:(en,ei=eu.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.receiver&&ei.uint32(18).string(en.receiver),void 0!==en.token&&ef.Coin.encode(en.token,ei.uint32(26).fork()).ldelim(),""!==en.portId&&ei.uint32(34).string(en.portId),""!==en.channelId&&ei.uint32(42).string(en.channelId),en.sequence.isZero()||ei.uint32(48).uint64(en.sequence),en.id.isZero()||ei.uint32(56).uint64(en.id),0!==en.status&&ei.uint32(64).int32(en.status),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseIBCTransfer();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.receiver=eo.string();break;case 3:es.token=ef.Coin.decode(eo,eo.uint32());break;case 4:es.portId=eo.string();break;case 5:es.channelId=eo.string();break;case 6:es.sequence=eo.uint64();break;case 7:es.id=eo.uint64();break;case 8:es.status=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,receiver:isSet(en.receiver)?String(en.receiver):"",token:isSet(en.token)?ef.Coin.fromJSON(en.token):void 0,portId:isSet(en.portId)?String(en.portId):"",channelId:isSet(en.channelId)?String(en.channelId):"",sequence:isSet(en.sequence)?ed.default.fromValue(en.sequence):ed.default.UZERO,id:isSet(en.id)?ed.default.fromValue(en.id):ed.default.UZERO,status:isSet(en.status)?iBCTransfer_StatusFromJSON(en.status):0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.receiver&&(ei.receiver=en.receiver),void 0!==en.token&&(ei.token=en.token?ef.Coin.toJSON(en.token):void 0),void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.sequence&&(ei.sequence=(en.sequence||ed.default.UZERO).toString()),void 0!==en.id&&(ei.id=(en.id||ed.default.UZERO).toString()),void 0!==en.status&&(ei.status=iBCTransfer_StatusToJSON(en.status)),ei},create:en=>ei.IBCTransfer.fromPartial(en??{}),fromPartial(en){let ei=createBaseIBCTransfer();return ei.sender=en.sender??new Uint8Array,ei.receiver=en.receiver??"",ei.token=void 0!==en.token&&null!==en.token?ef.Coin.fromPartial(en.token):void 0,ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.sequence=void 0!==en.sequence&&null!==en.sequence?ed.default.fromValue(en.sequence):ed.default.UZERO,ei.id=void 0!==en.id&&null!==en.id?ed.default.fromValue(en.id):ed.default.UZERO,ei.status=en.status??0,ei}},ei.CosmosChain={encode(en,eo=eu.default.Writer.create()){for(let ea of(""!==en.name&&eo.uint32(10).string(en.name),""!==en.ibcPath&&eo.uint32(18).string(en.ibcPath),en.assets))ei.Asset.encode(ea,eo.uint32(26).fork()).ldelim();return""!==en.addrPrefix&&eo.uint32(34).string(en.addrPrefix),eo},decode(en,eo){let ea=en instanceof eu.default.Reader?en:new eu.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCosmosChain();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.name=ea.string();break;case 2:ed.ibcPath=ea.string();break;case 3:ed.assets.push(ei.Asset.decode(ea,ea.uint32()));break;case 4:ed.addrPrefix=ea.string();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({name:isSet(en.name)?String(en.name):"",ibcPath:isSet(en.ibcPath)?String(en.ibcPath):"",assets:Array.isArray(en?.assets)?en.assets.map(en=>ei.Asset.fromJSON(en)):[],addrPrefix:isSet(en.addrPrefix)?String(en.addrPrefix):""}),toJSON(en){let eo={};return void 0!==en.name&&(eo.name=en.name),void 0!==en.ibcPath&&(eo.ibcPath=en.ibcPath),en.assets?eo.assets=en.assets.map(en=>en?ei.Asset.toJSON(en):void 0):eo.assets=[],void 0!==en.addrPrefix&&(eo.addrPrefix=en.addrPrefix),eo},create:en=>ei.CosmosChain.fromPartial(en??{}),fromPartial(en){let eo=createBaseCosmosChain();return eo.name=en.name??"",eo.ibcPath=en.ibcPath??"",eo.assets=en.assets?.map(en=>ei.Asset.fromPartial(en))||[],eo.addrPrefix=en.addrPrefix??"",eo}
2},ei.Asset={encode:(en,ei=eu.default.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),0!==en.minAmount.length&&ei.uint32(18).bytes(en.minAmount),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAsset();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.minAmount=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:isSet(en.denom)?String(en.denom):"",minAmount:isSet(en.minAmount)?bytesFromBase64(en.minAmount):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.minAmount&&(ei.minAmount=base64FromBytes(void 0!==en.minAmount?en.minAmount:new Uint8Array)),ei},create:en=>ei.Asset.fromPartial(en??{}),fromPartial(en){let ei=createBaseAsset();return ei.denom=en.denom??"",ei.minAmount=en.minAmount??new Uint8Array,ei}},ei.Fee={encode:(en,ei=eu.default.Writer.create())=>(void 0!==en.amount&&ef.Coin.encode(en.amount,ei.uint32(10).fork()).ldelim(),0!==en.recipient.length&&ei.uint32(18).bytes(en.recipient),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseFee();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.amount=ef.Coin.decode(eo,eo.uint32());break;case 2:es.recipient=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({amount:isSet(en.amount)?ef.Coin.fromJSON(en.amount):void 0,recipient:isSet(en.recipient)?bytesFromBase64(en.recipient):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.amount&&(ei.amount=en.amount?ef.Coin.toJSON(en.amount):void 0),void 0!==en.recipient&&(ei.recipient=base64FromBytes(void 0!==en.recipient?en.recipient:new Uint8Array)),ei},create:en=>ei.Fee.fromPartial(en??{}),fromPartial(en){let ei=createBaseFee();return ei.amount=void 0!==en.amount&&null!==en.amount?ef.Coin.fromPartial(en.amount):void 0,ei.recipient=en.recipient??new Uint8Array,ei}};var ep=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(ep.Buffer)return Uint8Array.from(ep.Buffer.from(en,"base64"));{let ei=ep.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(ep.Buffer)return ep.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),ep.btoa(ei.join(""))}}function isSet(en){return null!=en}eu.default.util.Long!==ed.default&&(eu.default.util.Long=ed.default,eu.default.configure())},69687:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Proof=ei.TokenInfoResponse=ei.TokenInfoRequest=ei.ERC20TokensResponse_Token=ei.ERC20TokensResponse=ei.ERC20TokensRequest=ei.BytecodeResponse=ei.BytecodeRequest=ei.GatewayAddressResponse=ei.GatewayAddressRequest=ei.ConfirmationHeightResponse=ei.ConfirmationHeightRequest=ei.BurnerInfoResponse=ei.BurnerInfoRequest=ei.QueryCommandResponse_ParamsEntry=ei.QueryCommandResponse=ei.PendingCommandsResponse=ei.PendingCommandsRequest=ei.CommandResponse_ParamsEntry=ei.CommandResponse=ei.CommandRequest=ei.ChainsResponse=ei.ChainsRequest=ei.QueryBurnerAddressResponse=ei.EventResponse=ei.EventRequest=ei.DepositStateResponse=ei.DepositStateRequest=ei.QueryDepositStateParams=ei.QueryTokenAddressResponse=ei.KeyAddressResponse_WeightedAddress=ei.KeyAddressResponse=ei.KeyAddressRequest=ei.BatchedCommandsResponse=ei.BatchedCommandsRequest=ei.DepositQueryParams=ei.tokenTypeToJSON=ei.tokenTypeFromJSON=ei.TokenType=ei.chainStatusToJSON=ei.chainStatusFromJSON=ei.ChainStatus=ei.protobufPackage=void 0;let eu=ed(eo(41583)),ef=ed(eo(62100)),ep=eo(79339);function chainStatusFromJSON(en){switch(en){case 0:case"CHAIN_STATUS_UNSPECIFIED":return ea.CHAIN_STATUS_UNSPECIFIED;case 1:case"CHAIN_STATUS_ACTIVATED":return ea.CHAIN_STATUS_ACTIVATED;case 2:case"CHAIN_STATUS_DEACTIVATED":return ea.CHAIN_STATUS_DEACTIVATED;default:return ea.UNRECOGNIZED}}function chainStatusToJSON(en){switch(en){case ea.CHAIN_STATUS_UNSPECIFIED:return"CHAIN_STATUS_UNSPECIFIED";case ea.CHAIN_STATUS_ACTIVATED:return"CHAIN_STATUS_ACTIVATED";case ea.CHAIN_STATUS_DEACTIVATED:return"CHAIN_STATUS_DEACTIVATED";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function tokenTypeFromJSON(en){switch(en){case 0:case"TOKEN_TYPE_UNSPECIFIED":return es.TOKEN_TYPE_UNSPECIFIED;case 1:case"TOKEN_TYPE_INTERNAL":return es.TOKEN_TYPE_INTERNAL;case 2:case"TOKEN_TYPE_EXTERNAL":return es.TOKEN_TYPE_EXTERNAL;default:return es.UNRECOGNIZED}}function tokenTypeToJSON(en){switch(en){case es.TOKEN_TYPE_UNSPECIFIED:return"TOKEN_TYPE_UNSPECIFIED";case es.TOKEN_TYPE_INTERNAL:return"TOKEN_TYPE_INTERNAL";case es.TOKEN_TYPE_EXTERNAL:return"TOKEN_TYPE_EXTERNAL";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseDepositQueryParams(){return{address:"",asset:"",chain:""}}function createBaseBatchedCommandsRequest(){return{chain:"",id:""}}function createBaseBatchedCommandsResponse(){return{id:"",data:"",status:0,keyId:"",executeData:"",prevBatchedCommandsId:"",commandIds:[],proof:void 0}}function createBaseKeyAddressRequest(){return{chain:"",keyId:""}}function createBaseKeyAddressResponse(){return{keyId:"",addresses:[],threshold:""}}function createBaseKeyAddressResponse_WeightedAddress(){return{address:"",weight:""}}function createBaseQueryTokenAddressResponse(){return{address:"",confirmed:!1}}function createBaseQueryDepositStateParams(){return{txId:new Uint8Array,burnerAddress:new Uint8Array}}function createBaseDepositStateRequest(){return{chain:"",params:void 0}}function createBaseDepositStateResponse(){return{status:0}}function createBaseEventRequest(){return{chain:"",eventId:""}}function createBaseEventResponse(){return{event:void 0}}function createBaseQueryBurnerAddressResponse(){return{address:""}}function createBaseChainsRequest(){return{status:0}}function createBaseChainsResponse(){return{chains:[]}}function createBaseCommandRequest(){return{chain:"",id:""}}function createBaseCommandResponse(){return{id:"",type:"",params:{},keyId:"",maxGasCost:0}}
2function createBaseCommandResponse_ParamsEntry(){return{key:"",value:""}}function createBasePendingCommandsRequest(){return{chain:""}}function createBasePendingCommandsResponse(){return{commands:[]}}function createBaseQueryCommandResponse(){return{id:"",type:"",params:{},keyId:"",maxGasCost:0}}function createBaseQueryCommandResponse_ParamsEntry(){return{key:"",value:""}}function createBaseBurnerInfoRequest(){return{address:new Uint8Array}}function createBaseBurnerInfoResponse(){return{chain:"",burnerInfo:void 0}}function createBaseConfirmationHeightRequest(){return{chain:""}}function createBaseConfirmationHeightResponse(){return{height:eu.default.UZERO}}function createBaseGatewayAddressRequest(){return{chain:""}}function createBaseGatewayAddressResponse(){return{address:""}}function createBaseBytecodeRequest(){return{chain:"",contract:""}}function createBaseBytecodeResponse(){return{bytecode:""}}function createBaseERC20TokensRequest(){return{chain:"",type:0}}function createBaseERC20TokensResponse(){return{tokens:[]}}function createBaseERC20TokensResponse_Token(){return{asset:"",symbol:""}}function createBaseTokenInfoRequest(){return{chain:"",asset:void 0,symbol:void 0,address:void 0}}function createBaseTokenInfoResponse(){return{asset:"",details:void 0,address:"",confirmed:!1,isExternal:!1,burnerCodeHash:""}}function createBaseProof(){return{addresses:[],weights:[],threshold:"",signatures:[]}}ei.protobufPackage="axelar.evm.v1beta1",function(en){en[en.CHAIN_STATUS_UNSPECIFIED=0]="CHAIN_STATUS_UNSPECIFIED",en[en.CHAIN_STATUS_ACTIVATED=1]="CHAIN_STATUS_ACTIVATED",en[en.CHAIN_STATUS_DEACTIVATED=2]="CHAIN_STATUS_DEACTIVATED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.ChainStatus||(ei.ChainStatus={})),ei.chainStatusFromJSON=chainStatusFromJSON,ei.chainStatusToJSON=chainStatusToJSON,function(en){en[en.TOKEN_TYPE_UNSPECIFIED=0]="TOKEN_TYPE_UNSPECIFIED",en[en.TOKEN_TYPE_INTERNAL=1]="TOKEN_TYPE_INTERNAL",en[en.TOKEN_TYPE_EXTERNAL=2]="TOKEN_TYPE_EXTERNAL",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.TokenType||(ei.TokenType={})),ei.tokenTypeFromJSON=tokenTypeFromJSON,ei.tokenTypeToJSON=tokenTypeToJSON,ei.DepositQueryParams={encode:(en,ei=ef.default.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),""!==en.asset&&ei.uint32(18).string(en.asset),""!==en.chain&&ei.uint32(26).string(en.chain),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDepositQueryParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.asset=eo.string();break;case 3:es.chain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:isSet(en.address)?String(en.address):"",asset:isSet(en.asset)?String(en.asset):"",chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.DepositQueryParams.fromPartial(en??{}),fromPartial(en){let ei=createBaseDepositQueryParams();return ei.address=en.address??"",ei.asset=en.asset??"",ei.chain=en.chain??"",ei}},ei.BatchedCommandsRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.id&&ei.uint32(18).string(en.id),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBatchedCommandsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.id=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",id:isSet(en.id)?String(en.id):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.id&&(ei.id=en.id),ei},create:en=>ei.BatchedCommandsRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseBatchedCommandsRequest();return ei.chain=en.chain??"",ei.id=en.id??"",ei}},ei.BatchedCommandsResponse={encode(en,eo=ef.default.Writer.create()){for(let ei of(""!==en.id&&eo.uint32(10).string(en.id),""!==en.data&&eo.uint32(18).string(en.data),0!==en.status&&eo.uint32(24).int32(en.status),""!==en.keyId&&eo.uint32(34).string(en.keyId),""!==en.executeData&&eo.uint32(50).string(en.executeData),""!==en.prevBatchedCommandsId&&eo.uint32(58).string(en.prevBatchedCommandsId),en.commandIds))eo.uint32(66).string(ei);return void 0!==en.proof&&ei.Proof.encode(en.proof,eo.uint32(74).fork()).ldelim(),eo},decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseBatchedCommandsResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.id=ea.string();break;case 2:ed.data=ea.string();break;case 3:ed.status=ea.int32();break;case 4:ed.keyId=ea.string();break;case 6:ed.executeData=ea.string();break;case 7:ed.prevBatchedCommandsId=ea.string();break;case 8:ed.commandIds.push(ea.string());break;case 9:ed.proof=ei.Proof.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({id:isSet(en.id)?String(en.id):"",data:isSet(en.data)?String(en.data):"",status:isSet(en.status)?(0,ep.batchedCommandsStatusFromJSON)(en.status):0,keyId:isSet(en.keyId)?String(en.keyId):"",executeData:isSet(en.executeData)?String(en.executeData):"",prevBatchedCommandsId:isSet(en.prevBatchedCommandsId)?String(en.prevBatchedCommandsId):"",commandIds:Array.isArray(en?.commandIds)?en.commandIds.map(en=>String(en)):[],proof:isSet(en.proof)?ei.Proof.fromJSON(en.proof):void 0}),toJSON(en){let eo={};return void 0!==en.id&&(eo.id=en.id),void 0!==en.data&&(eo.data=en.data),void 0!==en.status&&(eo.status=(0,ep.batchedCommandsStatusToJSON)(en.status)),void 0!==en.keyId&&(eo.keyId=en.keyId),void 0!==en.executeData&&(eo.executeData=en.executeData),void 0!==en.prevBatchedCommandsId&&(eo.prevBatchedCommandsId=en.prevBatchedCommandsId),en.commandIds?eo.commandIds=en.commandIds.map(en=>en):eo.commandIds=[],void 0!==en.proof&&(eo.proof=en.proof?ei.Proof.toJSON(en.proof):void 0),eo},create:en=>ei.BatchedCommandsResponse.fromPartial(en??{}),fromPartial(en){let eo=createBaseBatchedCommandsResponse();return eo.id=en.id??"",eo.data=en.data??"",eo.status=en.status??0,eo.keyId=en.keyId??"",eo.executeData=en.executeData??"",eo.prevBatchedCommandsId=en.prevBatchedCommandsId??"",eo.commandIds=en.commandIds?.map(en=>en)||[],eo.proof=void 0!==en.proof&&null!==en.proof?ei.Proof.fromPartial(en.proof):void 0,eo}},ei.KeyAddressRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.keyId&&ei.uint32(34).string(en.keyId),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeyAddressRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 4:es.keyId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",keyId:isSet(en.keyId)?String(en.keyId):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.keyId&&(ei.keyId=en.keyId),ei},create:en=>ei.KeyAddressRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeyAddressRequest();return ei.chain=en.chain??"",ei.keyId=en.keyId??"",ei}},ei.KeyAddressResponse={encode(en,eo=ef.default.Writer.create()){for(let ea of(""!==en.keyId&&eo.uint32(10).string(en.keyId),en.addresses))ei.KeyAddressResponse_WeightedAddress.encode(ea,eo.uint32(18).fork()).ldelim();return""!==en.threshold&&eo.uint32(26).string(en.threshold),eo},decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseKeyAddressResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.keyId=ea.string();break;case 2:ed.addresses.push(ei.KeyAddressResponse_WeightedAddress.decode(ea,ea.uint32()));break;case 3:ed.threshold=ea.string();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({keyId:isSet(en.keyId)?String(en.keyId):"",addresses:Array.isArray(en?.addresses)?en.addresses.map(en=>ei.KeyAddressResponse_WeightedAddress.fromJSON(en)):[],threshold:isSet(en.threshold)?String(en.threshold):""}),toJSON(en){let eo={};return void 0!==en.keyId&&(eo.keyId=en.keyId),en.addresses?eo.addresses=en.addresses.map(en=>en?ei.KeyAddressResponse_WeightedAddress.toJSON(en):void 0):eo.addresses=[],void 0!==en.threshold&&(eo.threshold=en.threshold),eo},create:en=>ei.KeyAddressResponse.fromPartial(en??{}),fromPartial(en){let eo=createBaseKeyAddressResponse();return eo.keyId=en.keyId??"",eo.addresses=en.addresses?.map(en=>ei.KeyAddressResponse_WeightedAddress.fromPartial(en))||[],eo.threshold=en.threshold??"",eo}},ei.KeyAddressResponse_WeightedAddress={encode:(en,ei=ef.default.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),""!==en.weight&&ei.uint32(18).string(en.weight),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeyAddressResponse_WeightedAddress();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.weight=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:isSet(en.address)?String(en.address):"",weight:isSet(en.weight)?String(en.weight):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.weight&&(ei.weight=en.weight),ei},create:en=>ei.KeyAddressResponse_WeightedAddress.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeyAddressResponse_WeightedAddress();return ei.address=en.address??"",ei.weight=en.weight??"",ei}},ei.QueryTokenAddressResponse={encode:(en,ei=ef.default.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),!0===en.confirmed&&ei.uint32(16).bool(en.confirmed),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryTokenAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.confirmed=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:isSet(en.address)?String(en.address):"",confirmed:!!isSet(en.confirmed)&&!!en.confirmed}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.confirmed&&(ei.confirmed=en.confirmed),ei},create:en=>ei.QueryTokenAddressResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseQueryTokenAddressResponse();return ei.address=en.address??"",ei.confirmed=en.confirmed??!1,ei}},ei.QueryDepositStateParams={encode:(en,ei=ef.default.Writer.create())=>(0!==en.txId.length&&ei.uint32(10).bytes(en.txId),0!==en.burnerAddress.length&&ei.uint32(18).bytes(en.burnerAddress),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDepositStateParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.txId=eo.bytes();break;case 2:es.burnerAddress=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>
2({txId:isSet(en.txId)?bytesFromBase64(en.txId):new Uint8Array,burnerAddress:isSet(en.burnerAddress)?bytesFromBase64(en.burnerAddress):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),void 0!==en.burnerAddress&&(ei.burnerAddress=base64FromBytes(void 0!==en.burnerAddress?en.burnerAddress:new Uint8Array)),ei},create:en=>ei.QueryDepositStateParams.fromPartial(en??{}),fromPartial(en){let ei=createBaseQueryDepositStateParams();return ei.txId=en.txId??new Uint8Array,ei.burnerAddress=en.burnerAddress??new Uint8Array,ei}},ei.DepositStateRequest={encode:(en,eo=ef.default.Writer.create())=>(""!==en.chain&&eo.uint32(10).string(en.chain),void 0!==en.params&&ei.QueryDepositStateParams.encode(en.params,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseDepositStateRequest();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.chain=ea.string();break;case 2:ed.params=ei.QueryDepositStateParams.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",params:isSet(en.params)?ei.QueryDepositStateParams.fromJSON(en.params):void 0}),toJSON(en){let eo={};return void 0!==en.chain&&(eo.chain=en.chain),void 0!==en.params&&(eo.params=en.params?ei.QueryDepositStateParams.toJSON(en.params):void 0),eo},create:en=>ei.DepositStateRequest.fromPartial(en??{}),fromPartial(en){let eo=createBaseDepositStateRequest();return eo.chain=en.chain??"",eo.params=void 0!==en.params&&null!==en.params?ei.QueryDepositStateParams.fromPartial(en.params):void 0,eo}},ei.DepositStateResponse={encode:(en,ei=ef.default.Writer.create())=>(0!==en.status&&ei.uint32(16).int32(en.status),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDepositStateResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==2?es.status=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({status:isSet(en.status)?(0,ep.depositStatusFromJSON)(en.status):0}),toJSON(en){let ei={};return void 0!==en.status&&(ei.status=(0,ep.depositStatusToJSON)(en.status)),ei},create:en=>ei.DepositStateResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseDepositStateResponse();return ei.status=en.status??0,ei}},ei.EventRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.eventId&&ei.uint32(18).string(en.eventId),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.eventId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",eventId:isSet(en.eventId)?String(en.eventId):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.eventId&&(ei.eventId=en.eventId),ei},create:en=>ei.EventRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventRequest();return ei.chain=en.chain??"",ei.eventId=en.eventId??"",ei}},ei.EventResponse={encode:(en,ei=ef.default.Writer.create())=>(void 0!==en.event&&ep.Event.encode(en.event,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.event=ep.Event.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({event:isSet(en.event)?ep.Event.fromJSON(en.event):void 0}),toJSON(en){let ei={};return void 0!==en.event&&(ei.event=en.event?ep.Event.toJSON(en.event):void 0),ei},create:en=>ei.EventResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventResponse();return ei.event=void 0!==en.event&&null!==en.event?ep.Event.fromPartial(en.event):void 0,ei}},ei.QueryBurnerAddressResponse={encode:(en,ei=ef.default.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryBurnerAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.address=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({address:isSet(en.address)?String(en.address):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),ei},create:en=>ei.QueryBurnerAddressResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseQueryBurnerAddressResponse();return ei.address=en.address??"",ei}},ei.ChainsRequest={encode:(en,ei=ef.default.Writer.create())=>(0!==en.status&&ei.uint32(8).int32(en.status),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.status=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({status:isSet(en.status)?chainStatusFromJSON(en.status):0}),toJSON(en){let ei={};return void 0!==en.status&&(ei.status=chainStatusToJSON(en.status)),ei},create:en=>ei.ChainsRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainsRequest();return ei.status=en.status??0,ei}},ei.ChainsResponse={encode(en,ei=ef.default.Writer.create()){for(let eo of en.chains)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chains.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({chains:Array.isArray(en?.chains)?en.chains.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.chains?ei.chains=en.chains.map(en=>en):ei.chains=[],ei},create:en=>ei.ChainsResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainsResponse();return ei.chains=en.chains?.map(en=>en)||[],ei}},ei.CommandRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.id&&ei.uint32(18).string(en.id),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommandRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.id=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",id:isSet(en.id)?String(en.id):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.id&&(ei.id=en.id),ei},create:en=>ei.CommandRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseCommandRequest();return ei.chain=en.chain??"",ei.id=en.id??"",ei}},ei.CommandResponse={encode:(en,eo=ef.default.Writer.create())=>(""!==en.id&&eo.uint32(10).string(en.id),""!==en.type&&eo.uint32(18).string(en.type),Object.entries(en.params).forEac
2h(([en,ea])=>{ei.CommandResponse_ParamsEntry.encode({key:en,value:ea},eo.uint32(26).fork()).ldelim()}),""!==en.keyId&&eo.uint32(34).string(en.keyId),0!==en.maxGasCost&&eo.uint32(40).uint32(en.maxGasCost),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCommandResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.id=ea.string();break;case 2:ed.type=ea.string();break;case 3:let eo=ei.CommandResponse_ParamsEntry.decode(ea,ea.uint32());void 0!==eo.value&&(ed.params[eo.key]=eo.value);break;case 4:ed.keyId=ea.string();break;case 5:ed.maxGasCost=ea.uint32();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({id:isSet(en.id)?String(en.id):"",type:isSet(en.type)?String(en.type):"",params:isObject(en.params)?Object.entries(en.params).reduce((en,[ei,eo])=>(en[ei]=String(eo),en),{}):{},keyId:isSet(en.keyId)?String(en.keyId):"",maxGasCost:isSet(en.maxGasCost)?Number(en.maxGasCost):0}),toJSON(en){let ei={};return void 0!==en.id&&(ei.id=en.id),void 0!==en.type&&(ei.type=en.type),ei.params={},en.params&&Object.entries(en.params).forEach(([en,eo])=>{ei.params[en]=eo}),void 0!==en.keyId&&(ei.keyId=en.keyId),void 0!==en.maxGasCost&&(ei.maxGasCost=Math.round(en.maxGasCost)),ei},create:en=>ei.CommandResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseCommandResponse();return ei.id=en.id??"",ei.type=en.type??"",ei.params=Object.entries(en.params??{}).reduce((en,[ei,eo])=>(void 0!==eo&&(en[ei]=String(eo)),en),{}),ei.keyId=en.keyId??"",ei.maxGasCost=en.maxGasCost??0,ei}},ei.CommandResponse_ParamsEntry={encode:(en,ei=ef.default.Writer.create())=>(""!==en.key&&ei.uint32(10).string(en.key),""!==en.value&&ei.uint32(18).string(en.value),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommandResponse_ParamsEntry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.string();break;case 2:es.value=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:isSet(en.key)?String(en.key):"",value:isSet(en.value)?String(en.value):""}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=en.key),void 0!==en.value&&(ei.value=en.value),ei},create:en=>ei.CommandResponse_ParamsEntry.fromPartial(en??{}),fromPartial(en){let ei=createBaseCommandResponse_ParamsEntry();return ei.key=en.key??"",ei.value=en.value??"",ei}},ei.PendingCommandsRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePendingCommandsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chain=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.PendingCommandsRequest.fromPartial(en??{}),fromPartial(en){let ei=createBasePendingCommandsRequest();return ei.chain=en.chain??"",ei}},ei.PendingCommandsResponse={encode(en,eo=ef.default.Writer.create()){for(let ea of en.commands)ei.QueryCommandResponse.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBasePendingCommandsResponse();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.commands.push(ei.QueryCommandResponse.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({commands:Array.isArray(en?.commands)?en.commands.map(en=>ei.QueryCommandResponse.fromJSON(en)):[]}),toJSON(en){let eo={};return en.commands?eo.commands=en.commands.map(en=>en?ei.QueryCommandResponse.toJSON(en):void 0):eo.commands=[],eo},create:en=>ei.PendingCommandsResponse.fromPartial(en??{}),fromPartial(en){let eo=createBasePendingCommandsResponse();return eo.commands=en.commands?.map(en=>ei.QueryCommandResponse.fromPartial(en))||[],eo}},ei.QueryCommandResponse={encode:(en,eo=ef.default.Writer.create())=>(""!==en.id&&eo.uint32(10).string(en.id),""!==en.type&&eo.uint32(18).string(en.type),Object.entries(en.params).forEac
2h(([en,ea])=>{ei.QueryCommandResponse_ParamsEntry.encode({key:en,value:ea},eo.uint32(26).fork()).ldelim()}),""!==en.keyId&&eo.uint32(34).string(en.keyId),0!==en.maxGasCost&&eo.uint32(40).uint32(en.maxGasCost),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseQueryCommandResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.id=ea.string();break;case 2:ed.type=ea.string();break;case 3:let eo=ei.QueryCommandResponse_ParamsEntry.decode(ea,ea.uint32());void 0!==eo.value&&(ed.params[eo.key]=eo.value);break;case 4:ed.keyId=ea.string();break;case 5:ed.maxGasCost=ea.uint32();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({id:isSet(en.id)?String(en.id):"",type:isSet(en.type)?String(en.type):"",params:isObject(en.params)?Object.entries(en.params).reduce((en,[ei,eo])=>(en[ei]=String(eo),en),{}):{},keyId:isSet(en.keyId)?String(en.keyId):"",maxGasCost:isSet(en.maxGasCost)?Number(en.maxGasCost):0}),toJSON(en){let ei={};return void 0!==en.id&&(ei.id=en.id),void 0!==en.type&&(ei.type=en.type),ei.params={},en.params&&Object.entries(en.params).forEach(([en,eo])=>{ei.params[en]=eo}),void 0!==en.keyId&&(ei.keyId=en.keyId),void 0!==en.maxGasCost&&(ei.maxGasCost=Math.round(en.maxGasCost)),ei},create:en=>ei.QueryCommandResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseQueryCommandResponse();return ei.id=en.id??"",ei.type=en.type??"",ei.params=Object.entries(en.params??{}).reduce((en,[ei,eo])=>(void 0!==eo&&(en[ei]=String(eo)),en),{}),ei.keyId=en.keyId??"",ei.maxGasCost=en.maxGasCost??0,ei}},ei.QueryCommandResponse_ParamsEntry={encode:(en,ei=ef.default.Writer.create())=>(""!==en.key&&ei.uint32(10).string(en.key),""!==en.value&&ei.uint32(18).string(en.value),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryCommandResponse_ParamsEntry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.string();break;case 2:es.value=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:isSet(en.key)?String(en.key):"",value:isSet(en.value)?String(en.value):""}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=en.key),void 0!==en.value&&(ei.value=en.value),ei},create:en=>ei.QueryCommandResponse_ParamsEntry.fromPartial(en??{}),fromPartial(en){let ei=createBaseQueryCommandResponse_ParamsEntry();return ei.key=en.key??"",ei.value=en.value??"",ei}},ei.BurnerInfoRequest={encode:(en,ei=ef.default.Writer.create())=>(0!==en.address.length&&ei.uint32(10).bytes(en.address),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBurnerInfoRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.address=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({address:isSet(en.address)?bytesFromBase64(en.address):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=base64FromBytes(void 0!==en.address?en.address:new Uint8Array)),ei},create:en=>ei.BurnerInfoRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseBurnerInfoRequest();return ei.address=en.address??new Uint8Array,ei}},ei.BurnerInfoResponse={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),void 0!==en.burnerInfo&&ep.BurnerInfo.encode(en.burnerInfo,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBurnerInfoResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.burnerInfo=ep.BurnerInfo.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",burnerInfo:isSet(en.burnerInfo)?ep.BurnerInfo.fromJSON(en.burnerInfo):void 0}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.burnerInfo&&(ei.burnerInfo=en.burnerInfo?ep.BurnerInfo.toJSON(en.burnerInfo):void 0),ei},create:en=>ei.BurnerInfoResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseBurnerInfoResponse();return ei.chain=en.chain??"",ei.burnerInfo=void 0!==en.burnerInfo&&null!==en.burnerInfo?ep.BurnerInfo.fromPartial(en.burnerInfo):void 0,ei}},ei.ConfirmationHeightRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmationHeightRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chain=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.ConfirmationHeightRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmationHeightRequest();return ei.chain=en.chain??"",ei}},ei.ConfirmationHeightResponse={encode:(en,ei=ef.default.Writer.create())=>(en.height.isZero()||ei.uint32(8).uint64(en.height),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmationHeightResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.height=eo.uint64():eo.skipType(7&en)}return es},fromJSON:en=>({height:isSet(en.height)?eu.default.fromValue(en.height):eu.default.UZERO}),toJSON(en){let ei={};return void 0!==en.height&&(ei.height=(en.height||eu.default.UZERO).toString()),ei},create:en=>ei.ConfirmationHeightResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmationHeightResponse();return ei.height=void 0!==en.height&&null!==en.height?eu.default.fromValue(en.height):eu.default.UZERO,ei}},ei.GatewayAddressRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGatewayAddressRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chain=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.GatewayAddressRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseGatewayAddressRequest();return ei.chain=en.chain??"",ei}},ei.GatewayAddressResponse={encode:(en,ei=ef.default.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGatewayAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.address=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({address:isSet(en.address)?String(en.address):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),ei},create:en=>ei.GatewayAddressResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseGatewayAddressResponse();return ei.address=en.address??"",ei}},ei.BytecodeRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.contract&&ei.uint32(18).string(en.contract),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBytecodeRequest
2();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.contract=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",contract:isSet(en.contract)?String(en.contract):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.contract&&(ei.contract=en.contract),ei},create:en=>ei.BytecodeRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseBytecodeRequest();return ei.chain=en.chain??"",ei.contract=en.contract??"",ei}},ei.BytecodeResponse={encode:(en,ei=ef.default.Writer.create())=>(""!==en.bytecode&&ei.uint32(10).string(en.bytecode),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBytecodeResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.bytecode=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({bytecode:isSet(en.bytecode)?String(en.bytecode):""}),toJSON(en){let ei={};return void 0!==en.bytecode&&(ei.bytecode=en.bytecode),ei},create:en=>ei.BytecodeResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseBytecodeResponse();return ei.bytecode=en.bytecode??"",ei}},ei.ERC20TokensRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),0!==en.type&&ei.uint32(16).int32(en.type),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseERC20TokensRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.type=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",type:isSet(en.type)?tokenTypeFromJSON(en.type):0}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.type&&(ei.type=tokenTypeToJSON(en.type)),ei},create:en=>ei.ERC20TokensRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseERC20TokensRequest();return ei.chain=en.chain??"",ei.type=en.type??0,ei}},ei.ERC20TokensResponse={encode(en,eo=ef.default.Writer.create()){for(let ea of en.tokens)ei.ERC20TokensResponse_Token.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseERC20TokensResponse();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.tokens.push(ei.ERC20TokensResponse_Token.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({tokens:Array.isArray(en?.tokens)?en.tokens.map(en=>ei.ERC20TokensResponse_Token.fromJSON(en)):[]}),toJSON(en){let eo={};return en.tokens?eo.tokens=en.tokens.map(en=>en?ei.ERC20TokensResponse_Token.toJSON(en):void 0):eo.tokens=[],eo},create:en=>ei.ERC20TokensResponse.fromPartial(en??{}),fromPartial(en){let eo=createBaseERC20TokensResponse();return eo.tokens=en.tokens?.map(en=>ei.ERC20TokensResponse_Token.fromPartial(en))||[],eo}},ei.ERC20TokensResponse_Token={encode:(en,ei=ef.default.Writer.create())=>(""!==en.asset&&ei.uint32(10).string(en.asset),""!==en.symbol&&ei.uint32(18).string(en.symbol),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseERC20TokensResponse_Token();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.asset=eo.string();break;case 2:es.symbol=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({asset:isSet(en.asset)?String(en.asset):"",symbol:isSet(en.symbol)?String(en.symbol):""}),toJSON(en){let ei={};return void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.symbol&&(ei.symbol=en.symbol),ei},create:en=>ei.ERC20TokensResponse_Token.fromPartial(en??{}),fromPartial(en){let ei=createBaseERC20TokensResponse_Token();return ei.asset=en.asset??"",ei.symbol=en.symbol??"",ei}},ei.TokenInfoRequest={encode:(en,ei=ef.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),void 0!==en.asset&&ei.uint32(18).string(en.asset),void 0!==en.symbol&&ei.uint32(26).string(en.symbol),void 0!==en.address&&ei.uint32(34).string(en.address),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTokenInfoRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.asset=eo.string();break;case 3:es.symbol=eo.string();break;case 4:es.address=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",asset:isSet(en.asset)?String(en.asset):void 0,symbol:isSet(en.symbol)?String(en.symbol):void 0,address:isSet(en.address)?String(en.address):void 0}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.symbol&&(ei.symbol=en.symbol),void 0!==en.address&&(ei.address=en.address),ei},create:en=>ei.TokenInfoRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseTokenInfoRequest();return ei.chain=en.chain??"",ei.asset=en.asset??void 0,ei.symbol=en.symbol??void 0,ei.address=en.address??void 0,ei}},ei.TokenInfoResponse={encode:(en,ei=ef.default.Writer.create())=>(""!==en.asset&&ei.uint32(10).string(en.asset),void 0!==en.details&&ep.TokenDetails.encode(en.details,ei.uint32(18).fork()).ldelim(),""!==en.address&&ei.uint32(26).string(en.address),!0===en.confirmed&&ei.uint32(32).bool(en.confirmed),!0===en.isExternal&&ei.uint32(40).bool(en.isExternal),""!==en.burnerCodeHash&&ei.uint32(50).string(en.burnerCodeHash),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTokenInfoResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.asset=eo.string();break;case 2:es.details=ep.TokenDetails.decode(eo,eo.uint32());break;case 3:es.address=eo.string();break;case 4:es.confirmed=eo.bool();break;case 5:es.isExternal=eo.bool();break;case 6:es.burnerCodeHash=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({asset:isSet(en.asset)?String(en.asset):"",details:isSet(en.details)?ep.TokenDetails.fromJSON(en.details):void 0,address:isSet(en.address)?String(en.address):"",confirmed:!!isSet(en.confirmed)&&!!en.confirmed,isExternal:!!isSet(en.isExternal)&&!!en.isExternal,burnerCodeHash:isSet(en.burnerCodeHash)?String(en.burnerCodeHash):""}),toJSON(en){let ei={};return void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.details&&(ei.details=en.details?ep.TokenDetails.toJSON(en.details):void 0),void 0!==en.address&&(ei.address=en.address),void 0!==en.confirmed&&(ei.confirmed=en.confirmed),void 0!==en.isExternal&&(ei.isExternal=en.isExternal),void 0!==en.burnerCodeHash&&(ei.burnerCodeHash=en.burnerCodeHash),ei},create:en=>ei.TokenInfoResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseTokenInfoResponse();return ei.asset=en.asset??"",ei.details=void 0!==en.details&&null!==en.details?ep.TokenDetails.fromPartial(en.details):void 0,ei.address=en.address??"",ei.confirmed=en.confirmed??!1,ei.isExternal=en.isExternal??!1,ei.burnerCodeHash=en.burnerCodeHash??"",ei}},ei.Proof={encode(en,ei=ef.default.Writer.create()){for(let eo of en.addresses)ei.uint32(10).string(eo);for(let eo of en.weights)ei.uint32(18).string(eo);for(let eo of(""!==en.threshold&&ei.uint32(26).string(en.threshold),en.signatures))ei.uint32(34).string(eo);return ei},decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseProof();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.addresses.push(eo.string());break;case 2:es.weights.push(eo.string());break;case 3:es.threshold=eo.string();break;case 4:es.signatures.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({addresses:Array.isArray(en?.addresses)?en.addresses.map(en=>String(en)):[],weights:Array.isArray(en?.weights)?en.weights.map(e
2n=>String(en)):[],threshold:isSet(en.threshold)?String(en.threshold):"",signatures:Array.isArray(en?.signatures)?en.signatures.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.addresses?ei.addresses=en.addresses.map(en=>en):ei.addresses=[],en.weights?ei.weights=en.weights.map(en=>en):ei.weights=[],void 0!==en.threshold&&(ei.threshold=en.threshold),en.signatures?ei.signatures=en.signatures.map(en=>en):ei.signatures=[],ei},create:en=>ei.Proof.fromPartial(en??{}),fromPartial(en){let ei=createBaseProof();return ei.addresses=en.addresses?.map(en=>en)||[],ei.weights=en.weights?.map(en=>en)||[],ei.threshold=en.threshold??"",ei.signatures=en.signatures?.map(en=>en)||[],ei}};var em=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(em.Buffer)return Uint8Array.from(em.Buffer.from(en,"base64"));{let ei=em.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(em.Buffer)return em.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),em.btoa(ei.join(""))}}function isObject(en){return"object"==typeof en&&null!==en}function isSet(en){return null!=en}ef.default.util.Long!==eu.default&&(ef.default.util.Long=eu.default,ef.default.configure())},35352:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryServiceClientImpl=ei.MsgServiceClientImpl=ei.protobufPackage=void 0;let es=ea(eo(62100)),ed=eo(69687),eu=eo(32180);ei.protobufPackage="axelar.evm.v1beta1";let MsgServiceClientImpl=class MsgServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.evm.v1beta1.MsgService",this.rpc=en,this.SetGateway=this.SetGateway.bind(this),this.ConfirmGatewayTx=this.ConfirmGatewayTx.bind(this),this.ConfirmGatewayTxs=this.ConfirmGatewayTxs.bind(this),this.Link=this.Link.bind(this),this.ConfirmToken=this.ConfirmToken.bind(this),this.ConfirmDeposit=this.ConfirmDeposit.bind(this),this.ConfirmTransferKey=this.ConfirmTransferKey.bind(this),this.CreateDeployToken=this.CreateDeployToken.bind(this),this.CreateBurnTokens=this.CreateBurnTokens.bind(this),this.CreatePendingTransfers=this.CreatePendingTransfers.bind(this),this.CreateTransferOperatorship=this.CreateTransferOperatorship.bind(this),this.SignCommands=this.SignCommands.bind(this),this.AddChain=this.AddChain.bind(this),this.RetryFailedEvent=this.RetryFailedEvent.bind(this)}SetGateway(en){let ei=eu.SetGatewayRequest.encode(en).finish(),eo=this.rpc.request(this.service,"SetGateway",ei);return eo.then(en=>eu.SetGatewayResponse.decode(new es.default.Reader(en)))}ConfirmGatewayTx(en){let ei=eu.ConfirmGatewayTxRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ConfirmGatewayTx",ei);return eo.then(en=>eu.ConfirmGatewayTxResponse.decode(new es.default.Reader(en)))}ConfirmGatewayTxs(en){let ei=eu.ConfirmGatewayTxsRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ConfirmGatewayTxs",ei);return eo.then(en=>eu.ConfirmGatewayTxsResponse.decode(new es.default.Reader(en)))}Link(en){let ei=eu.LinkRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Link",ei);return eo.then(en=>eu.LinkResponse.decode(new es.default.Reader(en)))}ConfirmToken(en){let ei=eu.ConfirmTokenRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ConfirmToken",ei);return eo.then(en=>eu.ConfirmTokenResponse.decode(new es.default.Reader(en)))}ConfirmDeposit(en){let ei=eu.ConfirmDepositRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ConfirmDeposit",ei);return eo.then(en=>eu.ConfirmDepositResponse.decode(new es.default.Reader(en)))}ConfirmTransferKey(en){let ei=eu.ConfirmTransferKeyRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ConfirmTransferKey",ei);return eo.then(en=>eu.ConfirmTransferKeyResponse.decode(new es.default.Reader(en)))}CreateDeployToken(en){let ei=eu.CreateDeployTokenRequest.encode(en).finish(),eo=this.rpc.request(this.service,"CreateDeployToken",ei);return eo.then(en=>eu.CreateDeployTokenResponse.decode(new es.default.Reader(en)))}CreateBurnTokens(en){let ei=eu.CreateBurnTokensRequest.encode(en).finish(),eo=this.rpc.request(this.service,"CreateBurnTokens",ei);return eo.then(en=>eu.CreateBurnTokensResponse.decode(new es.default.Reader(en)))}CreatePendingTransfers(en){let ei=eu.CreatePendingTransfersRequest.encode(en).finish(),eo=this.rpc.request(this.service,"CreatePendingTransfers",ei);return eo.then(en=>eu.CreatePendingTransfersResponse.decode(new es.default.Reader(en)))}CreateTransferOperatorship(en){let ei=eu.CreateTransferOperatorshipRequest.encode(en).finish(),eo=this.rpc.request(this.service,"CreateTransferOperatorship",ei);return eo.then(en=>eu.CreateTransferOperatorshipResponse.decode(new es.default.Reader(en)))}SignCommands(en){let ei=eu.SignCommandsRequest.encode(en).finish(),eo=this.rpc.request(this.service,"SignCommands",ei);return eo.then(en=>eu.SignCommandsResponse.decode(new es.default.Reader(en)))}AddChain(en){let ei=eu.AddChainRequest.encode(en).finish(),eo=this.rpc.request(this.service,"AddChain",ei);return eo.then(en=>eu.AddChainResponse.decode(new es.default.Reader(en)))}RetryFailedEvent(en){let ei=eu.RetryFailedEventRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RetryFailedEvent",ei);return eo.then(en=>eu.RetryFailedEventResponse.decode(new es.default.Reader(en)))}};ei.MsgServiceClientImpl=MsgServiceClientImpl;let QueryServiceClientImpl=class QueryServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.evm.v1beta1.QueryService",this.rpc=en,this.BatchedCommands=this.BatchedCommands.bind(this),this.BurnerInfo=this.BurnerInfo.bind(this),this.ConfirmationHeight=this.ConfirmationHeight.bind(this),this.DepositState=this.DepositState.bind(this),this.PendingCommands=this.PendingCommands.bind(this),this.Chains=this.Chains.bind(this),this.Command=this.Command.bind(this),this.KeyAddress=this.KeyAddress.bind(this),this.GatewayAddress=this.GatewayAddress.bind(this),this.Bytecode=this.Bytecode.bind(this),this.Event=this.Event.bind(this),this.ERC20Tokens=this.ERC20Tokens.bind(this),this.TokenInfo=this.TokenInfo.bind(this)}
2BatchedCommands(en){let ei=ed.BatchedCommandsRequest.encode(en).finish(),eo=this.rpc.request(this.service,"BatchedCommands",ei);return eo.then(en=>ed.BatchedCommandsResponse.decode(new es.default.Reader(en)))}BurnerInfo(en){let ei=ed.BurnerInfoRequest.encode(en).finish(),eo=this.rpc.request(this.service,"BurnerInfo",ei);return eo.then(en=>ed.BurnerInfoResponse.decode(new es.default.Reader(en)))}ConfirmationHeight(en){let ei=ed.ConfirmationHeightRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ConfirmationHeight",ei);return eo.then(en=>ed.ConfirmationHeightResponse.decode(new es.default.Reader(en)))}DepositState(en){let ei=ed.DepositStateRequest.encode(en).finish(),eo=this.rpc.request(this.service,"DepositState",ei);return eo.then(en=>ed.DepositStateResponse.decode(new es.default.Reader(en)))}PendingCommands(en){let ei=ed.PendingCommandsRequest.encode(en).finish(),eo=this.rpc.request(this.service,"PendingCommands",ei);return eo.then(en=>ed.PendingCommandsResponse.decode(new es.default.Reader(en)))}Chains(en){let ei=ed.ChainsRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Chains",ei);return eo.then(en=>ed.ChainsResponse.decode(new es.default.Reader(en)))}Command(en){let ei=ed.CommandRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Command",ei);return eo.then(en=>ed.CommandResponse.decode(new es.default.Reader(en)))}KeyAddress(en){let ei=ed.KeyAddressRequest.encode(en).finish(),eo=this.rpc.request(this.service,"KeyAddress",ei);return eo.then(en=>ed.KeyAddressResponse.decode(new es.default.Reader(en)))}GatewayAddress(en){let ei=ed.GatewayAddressRequest.encode(en).finish(),eo=this.rpc.request(this.service,"GatewayAddress",ei);return eo.then(en=>ed.GatewayAddressResponse.decode(new es.default.Reader(en)))}Bytecode(en){let ei=ed.BytecodeRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Bytecode",ei);return eo.then(en=>ed.BytecodeResponse.decode(new es.default.Reader(en)))}Event(en){let ei=ed.EventRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Event",ei);return eo.then(en=>ed.EventResponse.decode(new es.default.Reader(en)))}ERC20Tokens(en){let ei=ed.ERC20TokensRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ERC20Tokens",ei);return eo.then(en=>ed.ERC20TokensResponse.decode(new es.default.Reader(en)))}TokenInfo(en){let ei=ed.TokenInfoRequest.encode(en).finish(),eo=this.rpc.request(this.service,"TokenInfo",ei);return eo.then(en=>ed.TokenInfoResponse.decode(new es.default.Reader(en)))}};ei.QueryServiceClientImpl=QueryServiceClientImpl},32180:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.RetryFailedEventResponse=ei.RetryFailedEventRequest=ei.AddChainResponse=ei.AddChainRequest=ei.SignCommandsResponse=ei.SignCommandsRequest=ei.CreateTransferOperatorshipResponse=ei.CreateTransferOperatorshipRequest=ei.CreateTransferOwnershipResponse=ei.CreateTransferOwnershipRequest=ei.CreatePendingTransfersResponse=ei.CreatePendingTransfersRequest=ei.CreateDeployTokenResponse=ei.CreateDeployTokenRequest=ei.CreateBurnTokensResponse=ei.CreateBurnTokensRequest=ei.LinkResponse=ei.LinkRequest=ei.ConfirmTransferKeyResponse=ei.ConfirmTransferKeyRequest=ei.ConfirmTokenResponse=ei.ConfirmTokenRequest=ei.ConfirmDepositResponse=ei.ConfirmDepositRequest=ei.ConfirmGatewayTxsResponse=ei.ConfirmGatewayTxsRequest=ei.ConfirmGatewayTxResponse=ei.ConfirmGatewayTxRequest=ei.SetGatewayResponse=ei.SetGatewayRequest=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100)),eu=eo(99058),ef=eo(79339);function createBaseSetGatewayRequest(){return{sender:new Uint8Array,chain:"",address:new Uint8Array}}function createBaseSetGatewayResponse(){return{}}function createBaseConfirmGatewayTxRequest(){return{sender:new Uint8Array,chain:"",txId:new Uint8Array}}function createBaseConfirmGatewayTxResponse(){return{}}function createBaseConfirmGatewayTxsRequest(){return{sender:new Uint8Array,chain:"",txIds:[]}}function createBaseConfirmGatewayTxsResponse(){return{}}function createBaseConfirmDepositRequest(){return{sender:new Uint8Array,chain:"",txId:new Uint8Array,amount:new Uint8Array,burnerAddress:new Uint8Array}}function createBaseConfirmDepositResponse(){return{}}function createBaseConfirmTokenRequest(){return{sender:new Uint8Array,chain:"",txId:new Uint8Array,asset:void 0}}function createBaseConfirmTokenResponse(){return{}}function createBaseConfirmTransferKeyRequest(){return{sender:new Uint8Array,chain:"",txId:new Uint8Array}}function createBaseConfirmTransferKeyResponse(){return{}}function createBaseLinkRequest(){return{sender:new Uint8Array,chain:"",recipientAddr:"",asset:"",recipientChain:""}}function createBaseLinkResponse(){return{depositAddr:""}}
2function createBaseCreateBurnTokensRequest(){return{sender:new Uint8Array,chain:""}}function createBaseCreateBurnTokensResponse(){return{}}function createBaseCreateDeployTokenRequest(){return{sender:new Uint8Array,chain:"",asset:void 0,tokenDetails:void 0,address:new Uint8Array,dailyMintLimit:""}}function createBaseCreateDeployTokenResponse(){return{}}function createBaseCreatePendingTransfersRequest(){return{sender:new Uint8Array,chain:""}}function createBaseCreatePendingTransfersResponse(){return{}}function createBaseCreateTransferOwnershipRequest(){return{sender:new Uint8Array,chain:"",keyId:""}}function createBaseCreateTransferOwnershipResponse(){return{}}function createBaseCreateTransferOperatorshipRequest(){return{sender:new Uint8Array,chain:"",keyId:""}}function createBaseCreateTransferOperatorshipResponse(){return{}}function createBaseSignCommandsRequest(){return{sender:new Uint8Array,chain:""}}function createBaseSignCommandsResponse(){return{batchedCommandsId:new Uint8Array,commandCount:0}}function createBaseAddChainRequest(){return{sender:new Uint8Array,name:"",ke
2yType:0,params:new Uint8Array}}function createBaseAddChainResponse(){return{}}function createBaseRetryFailedEventRequest(){return{sender:new Uint8Array,chain:"",eventId:""}}function createBaseRetryFailedEventResponse(){return{}}ei.protobufPackage="axelar.evm.v1beta1",ei.SetGatewayRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),0!==en.address.length&&ei.uint32(26).bytes(en.address),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSetGatewayRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.address=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",address:isSet(en.address)?bytesFromBase64(en.address):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.address&&(ei.address=base64FromBytes(void 0!==en.address?en.address:new Uint8Array)),ei},create:en=>ei.SetGatewayRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseSetGatewayRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.address=en.address??new Uint8Array,ei}},ei.SetGatewayResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSetGatewayResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.SetGatewayResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseSetGatewayResponse();return ei}},ei.ConfirmGatewayTxRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),0!==en.txId.length&&ei.uint32(26).bytes(en.txId),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmGatewayTxRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.txId=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",txId:isSet(en.txId)?bytesFromBase64(en.txId):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),ei},create:en=>ei.ConfirmGatewayTxRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmGatewayTxRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.txId=en.txId??new Uint8Array,ei}},ei.ConfirmGatewayTxResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmGatewayTxResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ConfirmGatewayTxResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmGatewayTxResponse();return ei}},ei.ConfirmGatewayTxsRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),en.txIds))ei.uint32(26).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmGatewayTxsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.txIds.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",txIds:Array.isArray(en?.txIds)?en.txIds.map(en=>bytesFromBase64(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),en.txIds?ei.txIds=en.txIds.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.txIds=[],ei},create:en=>ei.ConfirmGatewayTxsRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmGatewayTxsRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.txIds=en.txIds?.map(en=>en)||[],ei}},ei.ConfirmGatewayTxsResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmGatewayTxsResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ConfirmGatewayTxsResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmGatewayTxsResponse();return ei}},ei.ConfirmDepositRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),0!==en.txId.length&&ei.uint32(26).bytes(en.txId),0!==en.amount.length&&ei.uint32(34).bytes(en.amount),0!==en.burnerAddress.length&&ei.uint32(42).bytes(en.burnerAddress),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmDepositRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.txId=eo.bytes();break;case 4:es.amount=eo.bytes();break;case 5:es.burnerAddress=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",txId:isSet(en.txId
2)?bytesFromBase64(en.txId):new Uint8Array,amount:isSet(en.amount)?bytesFromBase64(en.amount):new Uint8Array,burnerAddress:isSet(en.burnerAddress)?bytesFromBase64(en.burnerAddress):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),void 0!==en.amount&&(ei.amount=base64FromBytes(void 0!==en.amount?en.amount:new Uint8Array)),void 0!==en.burnerAddress&&(ei.burnerAddress=base64FromBytes(void 0!==en.burnerAddress?en.burnerAddress:new Uint8Array)),ei},create:en=>ei.ConfirmDepositRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmDepositRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.txId=en.txId??new Uint8Array,ei.amount=en.amount??new Uint8Array,ei.burnerAddress=en.burnerAddress??new Uint8Array,ei}},ei.ConfirmDepositResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmDepositResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ConfirmDepositResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmDepositResponse();return ei}},ei.ConfirmTokenRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),0!==en.txId.length&&ei.uint32(26).bytes(en.txId),void 0!==en.asset&&ef.Asset.encode(en.asset,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmTokenRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.txId=eo.bytes();break;case 4:es.asset=ef.Asset.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",txId:isSet(en.txId)?bytesFromBase64(en.txId):new Uint8Array,asset:isSet(en.asset)?ef.Asset.fromJSON(en.asset):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),void 0!==en.asset&&(ei.asset=en.asset?ef.Asset.toJSON(en.asset):void 0),ei},create:en=>ei.ConfirmTokenRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmTokenRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.txId=en.txId??new Uint8Array,ei.asset=void 0!==en.asset&&null!==en.asset?ef.Asset.fromPartial(en.asset):void 0,ei}},ei.ConfirmTokenResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmTokenResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ConfirmTokenResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmTokenResponse();return ei}},ei.ConfirmTransferKeyRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),0!==en.txId.length&&ei.uint32(26).bytes(en.txId),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmTransferKeyRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.txId=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",txId:isSet(en.txId
2)?bytesFromBase64(en.txId):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),ei},create:en=>ei.ConfirmTransferKeyRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmTransferKeyRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.txId=en.txId??new Uint8Array,ei}},ei.ConfirmTransferKeyResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConfirmTransferKeyResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ConfirmTransferKeyResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseConfirmTransferKeyResponse();return ei}},ei.LinkRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),""!==en.recipientAddr&&ei.uint32(26).string(en.recipientAddr),""!==en.asset&&ei.uint32(34).string(en.asset),""!==en.recipientChain&&ei.uint32(42).string(en.recipientChain),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLinkRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.recipientAddr=eo.string();break;case 4:es.asset=eo.string();break;case 5:es.recipientChain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",recipientAddr:isSet(en.recipientAddr)?String(en.recipientAddr):"",asset:isSet(en.asset)?String(en.asset):"",recipientChain:isSet(en.recipientChain)?String(en.recipientChain):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.recipientAddr&&(ei.recipientAddr=en.recipientAddr),void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.recipientChain&&(ei.recipientChain=en.recipientChain),ei},create:en=>ei.LinkRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseLinkRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.recipientAddr=en.recipientAddr??"",ei.asset=en.asset??"",ei.recipientChain=en.recipientChain??"",ei}},ei.LinkResponse={encode:(en,ei=ed.default.Writer.create())=>(""!==en.depositAddr&&ei.uint32(10).string(en.depositAddr),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLinkResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.depositAddr=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({depositAddr:isSet(en.depositAddr)?String(en.depositAddr):""}),toJSON(en){let ei={};return void 0!==en.depositAddr&&(ei.depositAddr=en.depositAddr),ei},create:en=>ei.LinkResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseLinkResponse();return ei.depositAddr=en.depositAddr??"",ei}},ei.CreateBurnTokensRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateBurnTokensRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.CreateBurnTokensRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateBurnTokensRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei}},ei.CreateBurnTokensResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateBurnTokensResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.CreateBurnTokensResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateBurnTokensResponse();return ei}},ei.CreateDeployTokenRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),void 0!==en.asset&&ef.Asset.encode(en.asset,ei.uint32(26).fork()).ldelim(),void 0!==en.tokenDetails&&ef.TokenDetails.encode(en.tokenDetails,ei.uint32(34).fork()).ldelim(),0!==en.address.length&&ei.uint32(50).bytes(en.address),""!==en.dailyMintLimit&&ei.uint32(58).string(en.dailyMintLimit),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateDeployTokenRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.asset=ef.Asset.decode(eo,eo.uint32());break;case 4:es.tokenDetails=ef.TokenDetails.decode(eo,eo.uint32());break;case 6:es.address=eo.bytes();break;case 7:es.dailyMintLimit=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",asset:isSet(en.asset)?ef.Asset.fromJSON(en.asset):void 0,tokenDetails:isSet(en.tokenDetails)?ef.TokenDetails.fromJSON(en.tokenDetails):void 0,address:isSet(en.address)?bytesFromBase64(en.address):new Uint8Array,dailyMintLimit:isSet(en.dailyMintLimit)?String(en.dailyMintLimit):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.asset&&(ei.asset=en.asset?ef.Asset.toJSON(en.asset):void 0),void 0!==en.tokenDetails&&(ei.tokenDetails=en.tokenDetails?ef.TokenDetails.toJSON(en.tokenDetails):void 0),void 0!==en.address&&(ei.address=base64FromBytes(void 0!==en.address?en.address:new Uint8Array)),void 0!==en.dailyMintLimit&&(ei.dailyMintLimit=en.dailyMintLimit),ei},create:en=>ei.CreateDeployTokenRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateDeployTokenRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.asset=void 0!==en.asset&&null!==en.asset?ef.Asset.fromPartial(en.asset):void 0,ei.tokenDetails=void 0!==en.tokenDetails&&null!==en.tokenDetails?ef.TokenDetails.fromPartial(en.tokenDetails):void 0,ei.address=en.address??new Uint8Array,ei.dailyMintLimit=en.dailyMintLimit??"",ei}},ei.CreateDeployTokenResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateDeployTokenResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.CreateDeployTokenResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateDeployTokenResponse();return ei}},ei.CreatePendingTransfersRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreatePendingTransfersRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.CreatePendingTransfersRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreatePendingTransfersRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei}},ei.CreatePendingTransfersResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreatePendingTransfersResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.CreatePendingTransfersResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreatePendingTransfersResponse();return ei}},ei.CreateTransferOwnershipRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),""!==en.keyId&&ei.uint32(26).string(en.keyId),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateTransferOwnershipRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.keyId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",keyId:isSet(en.keyId)?String(en.keyId):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.keyId&&(ei.keyId=en.keyId),ei},create:en=>ei.CreateTransferOwnershipRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateTransferOwnershipRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.keyId=en.keyId??"",ei}},ei.CreateTransferOwnershipResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateTransferOwnershipResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.CreateTransferOwnershipResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateTransferOwnershipResponse();return ei}},ei.CreateTransferOperatorshipRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),""!==en.keyId&&ei.uint32(26).string(en.keyId),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateTransferOperatorshipRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.keyId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",keyId:isSet(en.keyId)?String(en.keyId):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.keyId&&(ei.keyId=en.keyId),ei},create:en=>ei.CreateTransferOperatorshipRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateTransferOperatorshipRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.keyId=en.keyId??"",ei}},ei.CreateTransferOperatorshipResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCreateTransferOperatorshipResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.CreateTransferOperatorshipResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseCreateTransferOperatorshipResponse();return ei}},ei.SignCommandsRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSignCommandsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.SignCommandsRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseSignCommandsRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei}},ei.SignCommandsResponse={encode:(en,ei=ed.default.Writer.create())=>(0!==en.batchedCommandsId.length&&ei.uint32(10).bytes(en.batchedCommandsId),0!==en.commandCount&&ei.uint32(16).uint32(en.commandCount),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSignCommandsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.batchedCommandsId=eo.bytes();break;case 2:es.commandCount=eo.uint32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({batchedCommandsId:isSet(en.batchedCommandsId)?bytesFromBase64(en.batchedCommandsId):new Uint8Array,commandCount:isSet(en.commandCount)?Number(en.commandCount):0}),toJSON(en){let ei={};return void 0!==en.batchedCommandsId&&(ei.batchedCommandsId=base64FromBytes(void 0!==en.batchedCommandsId?en.batchedCommandsId:new Uint8Array)),void 0!==en.commandCount&&(ei.commandCount=Math.round(en.commandCount)),ei},create:en=>ei.SignCommandsResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseSignCommandsResponse();return ei.batchedCommandsId=en.batchedCommandsId??new Uint8Array,ei.commandCount=en.commandCount??0,ei}},ei.AddChainRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.name&&ei.uint32(18).string(en.name),0!==en.keyType&&ei.uint32(32).int32(en.keyType),0!==en.params.length&&ei.uint32(42).bytes(en.params),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddC
2hainRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.name=eo.string();break;case 4:es.keyType=eo.int32();break;case 5:es.params=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,name:isSet(en.name)?String(en.name):"",keyType:isSet(en.keyType)?(0,eu.keyTypeFromJSON)(en.keyType):0,params:isSet(en.params)?bytesFromBase64(en.params):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.name&&(ei.name=en.name),void 0!==en.keyType&&(ei.keyType=(0,eu.keyTypeToJSON)(en.keyType)),void 0!==en.params&&(ei.params=base64FromBytes(void 0!==en.params?en.params:new Uint8Array)),ei},create:en=>ei.AddChainRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseAddChainRequest();return ei.sender=en.sender??new Uint8Array,ei.name=en.name??"",ei.keyType=en.keyType??0,ei.params=en.params??new Uint8Array,ei}},ei.AddChainResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddChainResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.AddChainResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseAddChainResponse();return ei}},ei.RetryFailedEventRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),""!==en.eventId&&ei.uint32(26).string(en.eventId),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRetryFailedEventRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.eventId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",eventId:isSet(en.eventId)?String(en.eventId):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.eventId&&(ei.eventId=en.eventId),ei},create:en=>ei.RetryFailedEventRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRetryFailedEventRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.eventId=en.eventId??"",ei}},ei.RetryFailedEventResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRetryFailedEventResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RetryFailedEventResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRetryFailedEventResponse();return ei}};var ep=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(ep.Buffer)return Uint8Array.from(ep.Buffer.from(en,"base64"));{let ei=ep.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(ep.Buffer)return ep.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),ep.btoa(ei.join(""))}}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},79339:function(en,ei,eo){"use strict";var ea,es,ed,eu,ef,ep,em=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.PollMetadata=ei.Gateway=ei.TokenDetails=ei.Asset=ei.TransferKey=ei.SigMetadata=ei.CommandBatchMetadata=ei.Command=ei.TransactionMetadata=ei.ERC20TokenMetadata=ei.ERC20Deposit=ei.BurnerInfo=ei.NetworkInfo=ei.EventMultisigOperatorshipTransferred=ei.EventMultisigOwnershipTransferred=ei.EventTokenDeployed=ei.EventTransfer=ei.EventContractCallWithToken=ei.EventContractCall=ei.EventTokenSent=ei.Event=ei.VoteEvents=ei.event_StatusToJSON=ei.event_StatusFromJSON=ei.Event_Status=ei.depositStatusToJSON=ei.depositStatusFromJSON=ei.DepositStatus=ei.sigTypeToJSON=ei.sigTypeFromJSON=ei.SigType=ei.batchedCommandsStatusToJSON=ei.batchedCommandsStatusFromJSON=ei.BatchedCommandsStatus=ei.commandTypeToJSON=ei.commandTypeFromJSON=ei.CommandType=ei.statusToJSON=ei.statusFromJSON=ei.Status=ei.protobufPackage=void 0;let eg=em(eo(41583)),ey=em(eo(62100)),eb=eo(2347);function statusFromJSON(en){switch(en){case 0:case"STATUS_UNSPECIFIED":return ea.STATUS_UNSPECIFIED;case 1:case"STATUS_INITIALIZED":return ea.STATUS_INITIALIZED;case 2:case"STATUS_PENDING":return ea.STATUS_PENDING;case 4:case"STATUS_CONFIRMED":return ea.STATUS_CONFIRMED;default:return ea.UNRECOGNIZED}}function statusToJSON(en){switch(en){case ea.STATUS_UNSPECIFIED:return"STATUS_UNSPECIFIED";case ea.STATUS_INITIALIZED:return"STATUS_INITIALIZED";case ea.STATUS_PENDING:return"STATUS_PENDING";case ea.STATUS_CONFIRMED:return"STATUS_CONFIRMED";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function commandTypeFromJSON(en){switch(en){case 0:case"COMMAND_TYPE_UNSPECIFIED":return es.COMMAND_TYPE_UNSPECIFIED;case 1:case"COMMAND_TYPE_MINT_TOKEN":return es.COMMAND_TYPE_MINT_TOKEN;case 2:case"COMMAND_TYPE_DEPLOY_TOKEN":return es.COMMAND_TYPE_DEPLOY_TOKEN;case 3:case"COMMAND_TYPE_BURN_TOKEN":return es.COMMAND_TYPE_BURN_TOKEN;case 4:case"COMMAND_TYPE_TRANSFER_OPERATORSHIP":return es.COMMAND_TYPE_TRANSFER_OPERATORSHIP;case 5:case"COMMAND_TYPE_APPROVE_CONTRACT_CALL_WITH_MINT":return es.COMMAND_TYPE_APPROVE_CONTRACT_CALL_WITH_MINT;case 6:case"COMMAND_TYPE_APPROVE_CONTRACT_CALL":return es.COMMAND_TYPE_APPROVE_CONTRACT_CALL;default:return es.UNRECOGNIZED}}function commandTypeToJSON(en){switch(en){case es.COMMAND_TYPE_UNSPECIFIED:return"COMMAND_TYPE_UNSPECIFIED";case es.COMMAND_TYPE_MINT_TOKEN:return"COMMAND_TYPE_MINT_TOKEN";case es.COMMAND_TYPE_DEPLOY_TOKEN:return"COMMAND_TYPE_DEPLOY_TOKEN";case es.COMMAND_TYPE_BURN_TOKEN:return"COMMAND_TYPE_BURN_TOKEN";case es.COMMAND_TYPE_TRANSFER_OPERATORSHIP:return"COMMAND_TYPE_TRANSFER_OPERATORSHIP";case es.COMMAND_TYPE_APPROVE_CONTRACT_CALL_WITH_MINT:return"COMMAND_TYPE_APPROVE_CONTRACT_CALL_WITH_MINT";case es.COMMAND_TYPE_APPROVE_CONTRACT_CALL:return"COMMAND_TYPE_APPROVE_CONTRACT_CALL";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function batchedCommandsStatusFromJSON(en){switch(en){case 0:case"BATCHED_COMMANDS_STATUS_UNSPECIFIED":return ed.BATCHED_COMMANDS_STATUS_UNSPECIFIED;case 1:case"BATCHED_COMMANDS_STATUS_SIGNING":return ed.BATCHED_COMMANDS_STATUS_SIGNING;case 2:case"BATCHED_COMMANDS_STATUS_ABORTED":return ed.BATCHED_COMMANDS_STATUS_ABORTED;case 3:case"BATCHED_COMMANDS_STATUS_SIGNED":return ed.BATCHED_COMMANDS_STATUS_SIGNED;default:return ed.UNRECOGNIZED}}function batchedCommandsStatusToJSON(en){switch(en){case ed.BATCHED_COMMANDS_STATUS_UNSPECIFIED:return"BATCHED_COMMANDS_STATUS_UNSPECIFIED";case ed.BATCHED_COMMANDS_STATUS_SIGNING:return"BATCHED_COMMANDS_STATUS_SIGNING";case ed.BATCHED_COMMANDS_STATUS_ABORTED:return"BATCHED_COMMANDS_STATUS_ABORTED";case ed.BATCHED_COMMANDS_STATUS_SIGNED:return"BATCHED_COMMANDS_STATUS_SIGNED";case ed.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function sigTypeFromJSON(en){switch(en){case 0:case"SIG_TYPE_UNSPECIFIED":return eu.SIG_TYPE_UNSPECIFIED;case 1:case"SIG_TYPE_TX":return eu.SIG_TYPE_TX;case 2:case"SIG_TYPE_COMMAND":return eu.SIG_TYPE_COMMAND;default:return eu.UNRECOGNIZED}}function sigTypeToJSON(en){switch(en){case eu.SIG_TYPE_UNSPECIFIED:return"SIG_TYPE_UNSPECIFIED";case eu.SIG_TYPE_TX:return"SIG_TYPE_TX";case eu.SIG_TYPE_COMMAND:return"SIG_TYPE_COMMAND";case eu.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function depositStatusFromJSON(en){switch(en){case 0:case"DEPOSIT_STATUS_UNSPECIFIED":return ef.DEPOSIT_STATUS_UNSPECIFIED;case 1:case"DEPOSIT_STATUS_PENDING":return ef.DEPOSIT_STATUS_PENDING;case 2:case"DEPOSIT_STATUS_CONFIRMED":return ef.DEPOSIT_STATUS_CONFIRMED;case 3:case"DEPOSIT_STATUS_BURNED":return ef.DEPOSIT_STATUS_BURNED;default:return ef.UNRECOGNIZED}}function depositStatusToJSON(en){switch(en){case ef.DEPOSIT_STATUS_UNSPECIFIED:return"DEPOSIT_STATUS_UNSPECIFIED";case ef.DEPOSIT_STATUS_PENDING:return"DEPOSIT_STATUS_PENDING";case ef.DEPOSIT_STATUS_CONFIRMED:return"DEPOSIT_STATUS_CONFIRMED";case ef.DEPOSIT_STATUS_BURNED:return"DEPOSIT_STATUS_BURNED";case ef.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function event_StatusFromJSON(en){switch(en){case 0:case"STATUS_UNSPECIFIED":return ep.STATUS_UNSPECIFIED;case 1:case"STATUS_CONFIRMED":return ep.STATUS_CONFIRMED;case 2:case"STATUS_COMPLETED":return ep.STATUS_COMPLETED;case 3:case"STATUS_FAILED":return ep.STATUS_FAILED;default:return ep.UNRECOGNIZED}}function event_StatusToJSON(en){switch(en){case ep.STATUS_UNSPECIFIED:return"STATUS_UNSPECIFIED";case ep.STATUS_CONFIRMED:return"STATUS_CONFIRMED";case ep.STATUS_COMPLETED:return"STATUS_COMPLETED";case ep.STATUS_FAILED:return"STATUS_FAILED";case ep.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseVoteEvents(){return{chain:"",events:[]}}function createBaseEvent(){return{chain:"",txId:new Uint8Array,index:eg.default.UZERO,status:0,tokenSent:void 0,contractCall:void 0,contractCallWithToken:void 0,transfer:void 0,tokenDeployed:void 0,multisigOwnershipTransferred:void 0,multisigOperatorshipTransferred:void 0}}function createBaseEventTokenSent(){return{sender:new Uint8Array,destinationChain:"",destinationAddress:"",symbol
2:"",amount:new Uint8Array}}function createBaseEventContractCall(){return{sender:new Uint8Array,destinationChain:"",contractAddress:"",payloadHash:new Uint8Array}}function createBaseEventContractCallWithToken(){return{sender:new Uint8Array,destinationChain:"",contractAddress:"",payloadHash:new Uint8Array,symbol:"",amount:new Uint8Array}}function createBaseEventTransfer(){return{to:new Uint8Array,amount:new Uint8Array}}function createBaseEventTokenDeployed(){return{symbol:"",tokenAddress:new Uint8Array}}function createBaseEventMultisigOwnershipTransferred(){return{preOwners:[],prevThreshold:new Uint8Array,newOwners:[],newThreshold:new Uint8Array}}function createBaseEventMultisigOperatorshipTransferred(){return{newOperators:[],newThreshold:new Uint8Array,newWeights:[]}}function createBaseNetworkInfo(){return{name:"",id:new Uint8Array}}function createBaseBurnerInfo(){return{burnerAddress:new Uint8Array,tokenAddress:new Uint8Array,destinationChain:"",symbol:"",asset:"",salt:new Uint8Array}}function createBaseERC20Deposit(){return{txId:new Uint8Array,amount:new Uint8Array,asset:"",destinationChain:"",burnerAddress:new Uint8Array,logIndex:eg.default.UZERO}}function createBaseERC20TokenMetadata(){return{asset:"",chainId:new Uint8Array,details:void 0,tokenAddress:"",txHash:"",status:0,isExternal:!1,burnerCode:new Uint8Array}}function createBaseTransactionMetadata(){return{rawTx:new Uint8Array,pubKey:new Uint8Array}}function createBaseCommand(){return{id:new Uint8Array,command:"",params:new Uint8Array,keyId:"",maxGasCost:0,type:0}}function createBaseCommandBatchMetadata(){return{id:new Uint8Array,commandIds:[],data:new Uint8Array,sigHash:new Uint8Array,status:0,keyId:"",prevBatchedCommandsId:new Uint8Array,signature:void 0}}function createBaseSigMetadata(){return{type:0,chain:"",commandBatchId:new Uint8Array}}function createBaseTransferKey(){return{txId:new Uint8Array,nextKeyId:""}}function createBaseAsset(){return{chain:"",name:""}}function createBaseTokenDetails(){return{tokenName:"",symbol:"",decimals:0,capacity:new Uint8Array}}function createBaseGateway(){return{address:new Uint8Array}}function createBasePollMetadata(){return{chain:"",txId:new Uint8Array}}ei.protobufPackage="axelar.evm.v1beta1",function(en){en[en.STATUS_UNSPECIFIED=0]="STATUS_UNSPECIFIED",en[en.STATUS_INITIALIZED=1]="STATUS_INITIALIZED",en[en.STATUS_PENDING=2]="STATUS_PENDING",en[en.STATUS_CONFIRMED=4]="STATUS_CONFIRMED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.Status||(ei.Status={})),ei.statusFromJSON=statusFromJSON,ei.statusToJSON=statusToJSON,function(en){en[en.COMMAND_TYPE_UNSPECIFIED=0]="COMMAND_TYPE_UNSPECIFIED",en[en.COMMAND_TYPE_MINT_TOKEN=1]="COMMAND_TYPE_MINT_TOKEN",en[en.COMMAND_TYPE_DEPLOY_TOKEN=2]="COMMAND_TYPE_DEPLOY_TOKEN",en[en.COMMAND_TYPE_BURN_TOKEN=3]="COMMAND_TYPE_BURN_TOKEN",en[en.COMMAND_TYPE_TRANSFER_OPERATORSHIP=4]="COMMAND_TYPE_TRANSFER_OPERATORSHIP",en[en.COMMAND_TYPE_APPROVE_CONTRACT_CALL_WITH_MINT=5]="COMMAND_TYPE_APPROVE_CONTRACT_CALL_WITH_MINT",en[en.COMMAND_TYPE_APPROVE_CONTRACT_CALL=6]="COMMAND_TYPE_APPROVE_CONTRACT_CALL",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.CommandType||(ei.CommandType={})),ei.commandTypeFromJSON=commandTypeFromJSON,ei.commandTypeToJSON=commandTypeToJSON,function(en){en[en.BATCHED_COMMANDS_STATUS_UNSPECIFIED=0]="BATCHED_COMMANDS_STATUS_UNSPECIFIED",en[en.BATCHED_COMMANDS_STATUS_SIGNING=1]="BATCHED_COMMANDS_STATUS_SIGNING",en[en.BATCHED_COMMANDS_STATUS_ABORTED=2]="BATCHED_COMMANDS_STATUS_ABORTED",en[en.BATCHED_COMMANDS_STATUS_SIGNED=3]="BATCHED_COMMANDS_STATUS_SIGNED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ed=ei.BatchedCommandsStatus||(ei.BatchedCommandsStatus={})),ei.batchedCommandsStatusFromJSON=batchedCommandsStatusFromJSON,ei.batchedCommandsStatusToJSON=batchedCommandsStatusToJSON,function(en){en[en.SIG_TYPE_UNSPECIFIED=0]="SIG_TYPE_UNSPECIFIED",en[en.SIG_TYPE_TX=1]="SIG_TYPE_TX",en[en.SIG_TYPE_COMMAND=2]="SIG_TYPE_COMMAND",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(eu=ei.SigType||(ei.SigType={})),ei.sigTypeFromJSON=sigTypeFromJSON,ei.sigTypeToJSON=sigTypeToJSON,function(en){en[en.DEPOSIT_STATUS_UNSPECIFIED=0]="DEPOSIT_STATUS_UNSPECIFIED",en[en.DEPOSIT_STATUS_PENDING=1]="DEPOSIT_STATUS_PENDING",en[en.DEPOSIT_STATUS_CONFIRMED=2]="DEPOSIT_STATUS_CONFIRMED",en[en.DEPOSIT_STATUS_BURNED=3]="DEPOSIT_STATUS_BURNED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ef=ei.DepositStatus||(ei.DepositStatus={})),ei.depositStatusFromJSON=depositStatusFromJSON,ei.depositStatusToJSON=depositStatusToJSON,function(en){en[en.STATUS_UNSPECIFIED=0]="STATUS_UNSPECIFIED",en[en.STATUS_CONFIRMED=1]="STATUS_CONFIRMED",en[en.STATUS_COMPLETED=2]="STATUS_COMPLETED",en[en.STATUS_FAILED=3]="STATUS_FAILED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ep=ei.Event_Status||(ei.Event_Status={})),ei.event_StatusFromJSON=event_StatusFromJSON,ei.event_StatusToJSON=event_StatusToJSON,ei.VoteEvents={encode(en,eo=ey.default.Writer.create()){for(let ea of(""!==en.chain&&eo.uint32(10).string(en.chain),en.events))ei.Event.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ey.default.Reader?en:new ey.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseVoteEvents();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.chain=ea.string();break;case 2:ed.events.push(ei.Event.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",events:Array.isArray(en?.events)?en.events.map(e
2n=>ei.Event.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.chain&&(eo.chain=en.chain),en.events?eo.events=en.events.map(en=>en?ei.Event.toJSON(en):void 0):eo.events=[],eo},create:en=>ei.VoteEvents.fromPartial(en??{}),fromPartial(en){let eo=createBaseVoteEvents();return eo.chain=en.chain??"",eo.events=en.events?.map(en=>ei.Event.fromPartial(en))||[],eo}},ei.Event={encode:(en,eo=ey.default.Writer.create())=>(""!==en.chain&&eo.uint32(10).string(en.chain),0!==en.txId.length&&eo.uint32(18).bytes(en.txId),en.index.isZero()||eo.uint32(24).uint64(en.index),0!==en.status&&eo.uint32(32).int32(en.status),void 0!==en.tokenSent&&ei.EventTokenSent.encode(en.tokenSent,eo.uint32(42).fork()).ldelim(),void 0!==en.contractCall&&ei.EventContractCall.encode(en.contractCall,eo.uint32(50).fork()).ldelim(),void 0!==en.contractCallWithToken&&ei.EventContractCallWithToken.encode(en.contractCallWithToken,eo.uint32(58).fork()).ldelim(),void 0!==en.transfer&&ei.EventTransfer.encode(en.transfer,eo.uint32(66).fork()).ldelim(),void 0!==en.tokenDeployed&&ei.EventTokenDeployed.encode(en.tokenDeployed,eo.uint32(74).fork()).ldelim(),void 0!==en.multisigOwnershipTransferred&&ei.EventMultisigOwnershipTransferred.encode(en.multisigOwnershipTransferred,eo.uint32(82).fork()).ldelim(),void 0!==en.multisigOperatorshipTransferred&&ei.EventMultisigOperatorshipTransferred.encode(en.multisigOperatorshipTransferred,eo.uint32(90).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ey.default.Reader?en:new ey.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseEvent();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.chain=ea.string();break;case 2:ed.txId=ea.bytes();break;case 3:ed.index=ea.uint64();break;case 4:ed.status=ea.int32();break;case 5:ed.tokenSent=ei.EventTokenSent.decode(ea,ea.uint32());break;case 6:ed.contractCall=ei.EventContractCall.decode(ea,ea.uint32());break;case 7:ed.contractCallWithToken=ei.EventContractCallWithToken.decode(ea,ea.uint32());break;case 8:ed.transfer=ei.EventTransfer.decode(ea,ea.uint32());break;case 9:ed.tokenDeployed=ei.EventTokenDeployed.decode(ea,ea.uint32());break;case 10:ed.multisigOwnershipTransferred=ei.EventMultisigOwnershipTransferred.decode(ea,ea.uint32());break;case 11:ed.multisigOperatorshipTransferred=ei.EventMultisigOperatorshipTransferred.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",txId:isSet(en.txId)?bytesFromBase64(en.txId):new Uint8Array,index:isSet(en.index)?eg.default.fromValue(en.index):eg.default.UZERO,status:isSet(en.status)?event_StatusFromJSON(en.status):0,tokenSent:isSet(en.tokenSent)?ei.EventTokenSent.fromJSON(en.tokenSent):void 0,contractCall:isSet(en.contractCall)?ei.EventContractCall.fromJSON(en.contractCall):void 0,contractCallWithToken:isSet(en.contractCallWithToken)?ei.EventContractCallWithToken.fromJSON(en.contractCallWithToken):void 0,transfer:isSet(en.transfer)?ei.EventTransfer.fromJSON(en.transfer):void 0,tokenDeployed:isSet(en.tokenDeployed)?ei.EventTokenDeployed.fromJSON(en.tokenDeployed):void 0,multisigOwnershipTransferred:isSet(en.multisigOwnershipTransferred)?ei.EventMultisigOwnershipTransferred.fromJSON(en.multisigOwnershipTransferred):void 0,multisigOperatorshipTransferred:isSet(en.multisigOperatorshipTransferred)?ei.EventMultisigOperatorshipTransferred.fromJSON(en.multisigOperatorshipTransferred):void 0}),toJSON(en){let eo={};return void 0!==en.chain&&(eo.chain=en.chain),void 0!==en.txId&&(eo.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),void 0!==en.index&&(eo.index=(en.index||eg.default.UZERO).toString()),void 0!==en.status&&(eo.status=event_StatusToJSON(en.status)),void 0!==en.tokenSent&&(eo.tokenSent=en.tokenSent?ei.EventTokenSent.toJSON(en.tokenSent):void 0),void 0!==en.contractCall&&(eo.contractCall=en.contractCall?ei.EventContractCall.toJSON(en.contractCall):void 0),void 0!==en.contractCallWithToken&&(eo.contractCallWithToken=en.contractCallWithToken?ei.EventContractCallWithToken.toJSON(en.contractCallWithToken):void 0),void 0!==en.transfer&&(eo.transfer=en.transfer?ei.EventTransfer.toJSON(en.transfer):void 0),void 0!==en.tokenDeployed&&(eo.tokenDeployed=en.tokenDeployed?ei.EventTokenDeployed.toJSON(en.tokenDeployed):void 0),void 0!==en.multisigOwnershipTransferred&&(eo.multisigOwnershipTransferred=en.multisigOwnershipTransferred?ei.EventMultisigOwnershipTransferred.toJSON(en.multisigOwnershipTransferred):void 0),void 0!==en.multisigOperatorshipTransferred&&(eo.multisigOperatorshipTransferred=en.multisigOperatorshipTransferred?ei.EventMultisigOperatorshipTransferred.toJSON(en.multisigOperatorshipTransferred):void 0),eo},create:en=>ei.Event.fromPartial(en??{}),fromPartial(en){let eo=createBaseEvent();return eo.chain=en.chain??"",eo.txId=en.txId??new Uint8Array,eo.index=void 0!==en.index&&null!==en.index?eg.default.fromValue(en.index):eg.default.UZERO,eo.status=en.status??0,eo.tokenSent=void 0!==en.tokenSent&&null!==en.tokenSent?ei.EventTokenSent.fromPartial(en.tokenSent):void 0,eo.contractCall=void 0!==en.contractCall&&null!==en.contractCall?ei.EventContractCall.fromPartial(en.contractCall):void 0,eo.contractCallWithToken=void 0!==en.contractCallWithToken&&null!==en.contractCallWithToken?ei.EventContractCallWithToken.fromPartial(en.contractCallWithToken):void 0,eo.transfer=void 0!==en.transfer&&null!==en.transfer?ei.EventTransfer.fromPartial(en.transfer):void 0,eo.tokenDeployed=void 0!==en.tokenDeployed&&null!==en.tokenDeployed?ei.EventTokenDeployed.fromPartial(en.tokenDeployed):void 0,eo.multisigOwnershipTransferred=void 0!==en.multisigOwnershipTransferred&&null!==en.multisigOwnershipTransferred?ei.EventMultisigOwnershipTransferred.fromPartial(en.multisigOwnershipTransferred):void 0,eo.multisigOperatorshipTransferred=void 0!==en.multisigOperatorshipTransferred&&null!==en.multisigOperatorshipTransferred?ei.EventMultisigOperatorshipTransferred.fromPartial(en.multisigOperatorshipTransferred):void 0,eo}},ei.EventTokenSent={encode:(en,ei=ey.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.destinationChain&&ei.uint32(18).string(en.destinationChain),""!==en.destinationAddress&&ei.uint32(26).string(en.destinationAddress),""!==en.symbol&&ei.uint32(34).string(en.symbol),0!==en.amount.length&&ei.uint32(42).bytes(en.amount),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventTokenSent();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.destinationChain=eo.string();break;case 3:es.destinationAddress=eo.string();break;case 4:es.symbol=eo.string();break;case 5:es.amount=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,destinationChain:isSet(en.destinationChain)?String(en.destinationChain):"",destinationAddress:isSet(en.destinationAddress)?String(en.destinationAddress):"",symbol
2:isSet(en.symbol)?String(en.symbol):"",amount:isSet(en.amount)?bytesFromBase64(en.amount):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.destinationChain&&(ei.destinationChain=en.destinationChain),void 0!==en.destinationAddress&&(ei.destinationAddress=en.destinationAddress),void 0!==en.symbol&&(ei.symbol=en.symbol),void 0!==en.amount&&(ei.amount=base64FromBytes(void 0!==en.amount?en.amount:new Uint8Array)),ei},create:en=>ei.EventTokenSent.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventTokenSent();return ei.sender=en.sender??new Uint8Array,ei.destinationChain=en.destinationChain??"",ei.destinationAddress=en.destinationAddress??"",ei.symbol=en.symbol??"",ei.amount=en.amount??new Uint8Array,ei}},ei.EventContractCall={encode:(en,ei=ey.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.destinationChain&&ei.uint32(18).string(en.destinationChain),""!==en.contractAddress&&ei.uint32(26).string(en.contractAddress),0!==en.payloadHash.length&&ei.uint32(34).bytes(en.payloadHash),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventContractCall();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.destinationChain=eo.string();break;case 3:es.contractAddress=eo.string();break;case 4:es.payloadHash=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,destinationChain:isSet(en.destinationChain)?String(en.destinationChain):"",contractAddress:isSet(en.contractAddress)?String(en.contractAddress):"",payloadHash:isSet(en.payloadHash)?bytesFromBase64(en.payloadHash):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.destinationChain&&(ei.destinationChain=en.destinationChain),void 0!==en.contractAddress&&(ei.contractAddress=en.contractAddress),void 0!==en.payloadHash&&(ei.payloadHash=base64FromBytes(void 0!==en.payloadHash?en.payloadHash:new Uint8Array)),ei},create:en=>ei.EventContractCall.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventContractCall();return ei.sender=en.sender??new Uint8Array,ei.destinationChain=en.destinationChain??"",ei.contractAddress=en.contractAddress??"",ei.payloadHash=en.payloadHash??new Uint8Array,ei}},ei.EventContractCallWithToken={encode:(en,ei=ey.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.destinationChain&&ei.uint32(18).string(en.destinationChain),""!==en.contractAddress&&ei.uint32(26).string(en.contractAddress),0!==en.payloadHash.length&&ei.uint32(34).bytes(en.payloadHash),""!==en.symbol&&ei.uint32(42).string(en.symbol),0!==en.amount.length&&ei.uint32(50).bytes(en.amount),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventContractCallWithToken();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.destinationChain=eo.string();break;case 3:es.contractAddress=eo.string();break;case 4:es.payloadHash=eo.bytes();break;case 5:es.symbol=eo.string();break;case 6:es.amount=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,destinationChain:isSet(en.destinationChain)?String(en.destinationChain):"",contractAddress:isSet(en.contractAddress)?String(en.contractAddress):"",payloadHash:isSet(en.payloadHash)?bytesFromBase64(en.payloadHash):new Uint8Array,symbol:isSet(en.symbol)?String(en.symbol):"",amount:isSet(en.amount)?bytesFromBase64(en.amount):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.destinationChain&&(ei.destinationChain=en.destinationChain),void 0!==en.contractAddress&&(ei.contractAddress=en.contractAddress),void 0!==en.payloadHash&&(ei.payloadHash=base64FromBytes(void 0!==en.payloadHash?en.payloadHash:new Uint8Array)),void 0!==en.symbol&&(ei.symbol=en.symbol),void 0!==en.amount&&(ei.amount=base64FromBytes(void 0!==en.amount?en.amount:new Uint8Array)),ei},create:en=>ei.EventContractCallWithToken.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventContractCallWithToken();return ei.sender=en.sender??new Uint8Array,ei.destinationChain=en.destinationChain??"",ei.contractAddress=en.contractAddress??"",ei.payloadHash=en.payloadHash??new Uint8Array,ei.symbol=en.symbol??"",ei.amount=en.amount??new Uint8Array,ei}},ei.EventTransfer={encode:(en,ei=ey.default.Writer.create())=>(0!==en.to.length&&ei.uint32(10).bytes(en.to),0!==en.amount.length&&ei.uint32(18).bytes(en.amount),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventTransfer();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.to=eo.bytes();break;case 2:es.amount=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({to:isSet(en.to)?bytesFromBase64(en.to):new Uint8Array,amount:isSet(en.amount)?bytesFromBase64(en.amount):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.to&&(ei.to=base64FromBytes(void 0!==en.to?en.to:new Uint8Array)),void 0!==en.amount&&(ei.amount=base64FromBytes(void 0!==en.amount?en.amount:new Uint8Array)),ei},create:en=>ei.EventTransfer.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventTransfer();
2return ei.to=en.to??new Uint8Array,ei.amount=en.amount??new Uint8Array,ei}},ei.EventTokenDeployed={encode:(en,ei=ey.default.Writer.create())=>(""!==en.symbol&&ei.uint32(10).string(en.symbol),0!==en.tokenAddress.length&&ei.uint32(18).bytes(en.tokenAddress),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventTokenDeployed();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.symbol=eo.string();break;case 2:es.tokenAddress=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({symbol:isSet(en.symbol)?String(en.symbol):"",tokenAddress:isSet(en.tokenAddress)?bytesFromBase64(en.tokenAddress):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.symbol&&(ei.symbol=en.symbol),void 0!==en.tokenAddress&&(ei.tokenAddress=base64FromBytes(void 0!==en.tokenAddress?en.tokenAddress:new Uint8Array)),ei},create:en=>ei.EventTokenDeployed.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventTokenDeployed();return ei.symbol=en.symbol??"",ei.tokenAddress=en.tokenAddress??new Uint8Array,ei}},ei.EventMultisigOwnershipTransferred={encode(en,ei=ey.default.Writer.create()){for(let eo of en.preOwners)ei.uint32(10).bytes(eo);for(let eo of(0!==en.prevThreshold.length&&ei.uint32(18).bytes(en.prevThreshold),en.newOwners))ei.uint32(26).bytes(eo);return 0!==en.newThreshold.length&&ei.uint32(34).bytes(en.newThreshold),ei},decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventMultisigOwnershipTransferred();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.preOwners.push(eo.bytes());break;case 2:es.prevThreshold=eo.bytes();break;case 3:es.newOwners.push(eo.bytes());break;case 4:es.newThreshold=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({preOwners:Array.isArray(en?.preOwners)?en.preOwners.map(en=>bytesFromBase64(en)):[],prevThreshold:isSet(en.prevThreshold)?bytesFromBase64(en.prevThreshold):new Uint8Array,newOwners:Array.isArray(en?.newOwners)?en.newOwners.map(en=>bytesFromBase64(en)):[],newThreshold:isSet(en.newThreshold)?bytesFromBase64(en.newThreshold):new Uint8Array}),toJSON(en){let ei={};return en.preOwners?ei.preOwners=en.preOwners.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.preOwners=[],void 0!==en.prevThreshold&&(ei.prevThreshold=base64FromBytes(void 0!==en.prevThreshold?en.prevThreshold:new Uint8Array)),en.newOwners?ei.newOwners=en.newOwners.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.newOwners=[],void 0!==en.newThreshold&&(ei.newThreshold=base64FromBytes(void 0!==en.newThreshold?en.newThreshold:new Uint8Array)),ei},create:en=>ei.EventMultisigOwnershipTransferred.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventMultisigOwnershipTransferred();return ei.preOwners=en.preOwners?.map(en=>en)||[],ei.prevThreshold=en.prevThreshold??new Uint8Array,ei.newOwners=en.newOwners?.map(en=>en)||[],ei.newThreshold=en.newThreshold??new Uint8Array,ei}},ei.EventMultisigOperatorshipTransferred={encode(en,ei=ey.default.Writer.create()){for(let eo of en.newOperators)ei.uint32(26).bytes(eo);for(let eo of(0!==en.newThreshold.length&&ei.uint32(34).bytes(en.newThreshold),en.newWeights))ei.uint32(42).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEventMultisigOperatorshipTransferred();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 3:es.newOperators.push(eo.bytes());break;case 4:es.newThreshold=eo.bytes();break;case 5:es.newWeights.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({newOperators:Array.isArray(en?.newOperators)?en.newOperators.map(en=>bytesFromBase64(en)):[],newThreshold:isSet(en.newThreshold)?bytesFromBase64(en.newThreshold):new Uint8Array,newWeights:Array.isArray(en?.newWeights)?en.newWeights.map(en=>bytesFromBase64(en)):[]}),toJSON(en){let ei={};return en.newOperators?ei.newOperators=en.newOperators.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.newOperators=[],void 0!==en.newThreshold&&(ei.newThreshold=base64FromBytes(void 0!==en.newThreshold?en.newThreshold:new Uint8Array)),en.newWeights?ei.newWeights=en.newWeights.map(e
2n=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.newWeights=[],ei},create:en=>ei.EventMultisigOperatorshipTransferred.fromPartial(en??{}),fromPartial(en){let ei=createBaseEventMultisigOperatorshipTransferred();return ei.newOperators=en.newOperators?.map(en=>en)||[],ei.newThreshold=en.newThreshold??new Uint8Array,ei.newWeights=en.newWeights?.map(en=>en)||[],ei}},ei.NetworkInfo={encode:(en,ei=ey.default.Writer.create())=>(""!==en.name&&ei.uint32(10).string(en.name),0!==en.id.length&&ei.uint32(18).bytes(en.id),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseNetworkInfo();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.name=eo.string();break;case 2:es.id=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({name:isSet(en.name)?String(en.name):"",id:isSet(en.id)?bytesFromBase64(en.id):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.name&&(ei.name=en.name),void 0!==en.id&&(ei.id=base64FromBytes(void 0!==en.id?en.id:new Uint8Array)),ei},create:en=>ei.NetworkInfo.fromPartial(en??{}),fromPartial(en){let ei=createBaseNetworkInfo();return ei.name=en.name??"",ei.id=en.id??new Uint8Array,ei}},ei.BurnerInfo={encode:(en,ei=ey.default.Writer.create())=>(0!==en.burnerAddress.length&&ei.uint32(10).bytes(en.burnerAddress),0!==en.tokenAddress.length&&ei.uint32(18).bytes(en.tokenAddress),""!==en.destinationChain&&ei.uint32(26).string(en.destinationChain),""!==en.symbol&&ei.uint32(34).string(en.symbol),""!==en.asset&&ei.uint32(42).string(en.asset),0!==en.salt.length&&ei.uint32(50).bytes(en.salt),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBurnerInfo();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.burnerAddress=eo.bytes();break;case 2:es.tokenAddress=eo.bytes();break;case 3:es.destinationChain=eo.string();break;case 4:es.symbol=eo.string();break;case 5:es.asset=eo.string();break;case 6:es.salt=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({burnerAddress:isSet(en.burnerAddress)?bytesFromBase64(en.burnerAddress):new Uint8Array,tokenAddress:isSet(en.tokenAddress)?bytesFromBase64(en.tokenAddress):new Uint8Array,destinationChain:isSet(en.destinationChain)?String(en.destinationChain):"",symbol:isSet(en.symbol)?String(en.symbol):"",asset:isSet(en.asset)?String(en.asset):"",salt:isSet(en.salt)?bytesFromBase64(en.salt):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.burnerAddress&&(ei.burnerAddress=base64FromBytes(void 0!==en.burnerAddress?en.burnerAddress:new Uint8Array)),void 0!==en.tokenAddress&&(ei.tokenAddress=base64FromBytes(void 0!==en.tokenAddress?en.tokenAddress:new Uint8Array)),void 0!==en.destinationChain&&(ei.destinationChain=en.destinationChain),void 0!==en.symbol&&(ei.symbol=en.symbol),void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.salt&&(ei.salt=base64FromBytes(void 0!==en.salt?en.salt:new 
2Uint8Array)),ei},create:en=>ei.BurnerInfo.fromPartial(en??{}),fromPartial(en){let ei=createBaseBurnerInfo();return ei.burnerAddress=en.burnerAddress??new Uint8Array,ei.tokenAddress=en.tokenAddress??new Uint8Array,ei.destinationChain=en.destinationChain??"",ei.symbol=en.symbol??"",ei.asset=en.asset??"",ei.salt=en.salt??new Uint8Array,ei}},ei.ERC20Deposit={encode:(en,ei=ey.default.Writer.create())=>(0!==en.txId.length&&ei.uint32(10).bytes(en.txId),0!==en.amount.length&&ei.uint32(18).bytes(en.amount),""!==en.asset&&ei.uint32(26).string(en.asset),""!==en.destinationChain&&ei.uint32(34).string(en.destinationChain),0!==en.burnerAddress.length&&ei.uint32(42).bytes(en.burnerAddress),en.logIndex.isZero()||ei.uint32(48).uint64(en.logIndex),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseERC20Deposit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.txId=eo.bytes();break;case 2:es.amount=eo.bytes();break;case 3:es.asset=eo.string();break;case 4:es.destinationChain=eo.string();break;case 5:es.burnerAddress=eo.bytes();break;case 6:es.logIndex=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({txId:isSet(en.txId)?bytesFromBase64(en.txId):new Uint8Array,amount:isSet(en.amount)?bytesFromBase64(en.amount):new Uint8Array,asset:isSet(en.asset)?String(en.asset):"",destinationChain:isSet(en.destinationChain)?String(en.destinationChain):"",burnerAddress:isSet(en.burnerAddress)?bytesFromBase64(en.burnerAddress):new Uint8Array,logIndex:isSet(en.logIndex)?eg.default.fromValue(en.logIndex):eg.default.UZERO}),toJSON(en){let ei={};return void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),void 0!==en.amount&&(ei.amount=base64FromBytes(void 0!==en.amount?en.amount:new Uint8Array)),void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.destinationChain&&(ei.destinationChain=en.destinationChain),void 0!==en.burnerAddress&&(ei.burnerAddress=base64FromBytes(void 0!==en.burnerAddress?en.burnerAddress:new Uint8Array)),void 0!==en.logIndex&&(ei.logIndex=(en.logIndex||eg.default.UZERO).toString()),ei},create:en=>ei.ERC20Deposit.fromPartial(en??{}),fromPartial(en){let ei=createBaseERC20Deposit();return ei.txId=en.txId??new Uint8Array,ei.amount=en.amount??new Uint8Array,ei.asset=en.asset??"",ei.destinationChain=en.destinationChain??"",ei.burnerAddress=en.burnerAddress??new Uint8Array,ei.logIndex=void 0!==en.logIndex&&null!==en.logIndex?eg.default.fromValue(en.logIndex):eg.default.UZERO,ei}},ei.ERC20TokenMetadata={encode:(en,eo=ey.default.Writer.create())=>(""!==en.asset&&eo.uint32(10).string(en.asset),0!==en.chainId.length&&eo.uint32(18).bytes(en.chainId),void 0!==en.details&&ei.TokenDetails.encode(en.details,eo.uint32(26).fork()).ldelim(),""!==en.tokenAddress&&eo.uint32(34).string(en.tokenAddress),""!==en.txHash&&eo.uint32(42).string(en.txHash),0!==en.status&&eo.uint32(56).int32(en.status),!0===en.isExternal&&eo.uint32(64).bool(en.isExternal),0!==en.burnerCode.length&&eo.uint32(74).bytes(en.burnerCode),eo),decode(en,eo){let ea=en instanceof ey.default.Reader?en:new ey.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseERC20TokenMetadata();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.asset=ea.string();break;case 2:ed.chainId=ea.bytes();break;case 3:ed.details=ei.TokenDetails.decode(ea,ea.uint32());break;case 4:ed.tokenAddress=ea.string();break;case 5:ed.txHash=ea.string();break;case 7:ed.status=ea.int32();break;case 8:ed.isExternal=ea.bool();break;case 9:ed.burnerCode=ea.bytes();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({asset:isSet(en.asset)?String(en.asset):"",chainId:isSet(en.chainId)?bytesFromBase64(en.chainId):new Uint8Array,details:isSet(en.details)?ei.TokenDetails.fromJSON(en.details):void 0,tokenAddress:isSet(en.tokenAddress)?String(en.tokenAddress):"",txHash:isSet(en.txHash)?String(en.txHash):"",status:isSet(en.status)?statusFromJSON(en.status):0,isExternal:!!isSet(en.isExternal)&&!!en.isExternal,burnerCode:isSet(en.burnerCode)?bytesFromBase64(en.burnerCode):new Uint8Array}),toJSON(en){let eo={};return void 0!==en.asset&&(eo.asset=en.asset),void 0!==en.chainId&&(eo.chainId=base64FromBytes(void 0!==en.chainId?en.chainId:new Uint8Array)),void 0!==en.details&&(eo.details=en.details?ei.TokenDetails.toJSON(en.details):void 0),void 0!==en.tokenAddress&&(eo.tokenAddress=en.tokenAddress),void 0!==en.txHash&&(eo.txHash=en.txHash),void 0!==en.status&&(eo.status=statusToJSON(en.status)),void 0!==en.isExternal&&(eo.isExternal=en.isExternal),void 0!==en.burnerCode&&(eo.burnerCode=base64FromBytes(void 0!==en.burnerCode?en.burnerCode:new Uint8Array)),eo},create:en=>ei.ERC20TokenMetadata.fromPartial(en??{}),fromPartial(en){let eo=createBaseERC20TokenMetadata();return eo.asset=en.asset??"",eo.chainId=en.chainId??new Uint8Array,eo.details=void 0!==en.details&&null!==en.details?ei.TokenDetails.fromPartial(en.details):void 0,eo.tokenAddress=en.tokenAddress??"",eo.txHash=en.txHash??"",eo.status=en.status??0,eo.isExternal=en.isExternal??!1,eo.burnerCode=en.burnerCode??new Uint8Array,eo}},ei.TransactionMetadata={encode:(en,ei=ey.default.Writer.create())=>(0!==en.rawTx.length&&ei.uint32(10).bytes(en.rawTx),0!==en.pubKey.length&&ei.uint32(18).bytes(en.pubKey),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransactionMetadata();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.rawTx=eo.bytes();break;case 2:es.pubKey=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({rawTx:isSet(en.rawTx)?bytesFromBase64(en.rawTx):new Uint8Array,pubKey:isSet(en.pubKey)?bytesFromBase64(en.pubKey):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.rawTx&&(ei.rawTx=base64FromBytes(void 0!==en.rawTx?en.rawTx:new Uint8Array)),void 0!==en.pubKey&&(ei.pubKey=base64FromBytes(void 0!==en.pubKey?en.pubKey:new Uint8Array)),ei},create:en=>ei.TransactionMetadata.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransactionMetadata();return ei.rawTx=en.rawTx??new Uint8Array,ei.pubKey=en.pubKey??new Uint8Array,ei}},ei.Command={encode:(en,ei=ey.default.Writer.create())=>(0!==en.id.length&&ei.uint32(10).bytes(en.id),""!==en.command&&ei.uint32(18).string(en.command),0!==en.params.length&&ei.uint32(26).bytes(en.params),""!==en.keyId&&ei.uint32(34).string(en.keyId),0!==en.maxGasCost&&ei.uint32(40).uint32(en.maxGasCost),0!==en.type&&ei.uint32(48).int32(en.type),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommand();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.id=eo.bytes();break;case 2:es.command=eo.string();break;case 3:es.params=eo.bytes();break;case 4:es.keyId=eo.string();break;case 5:es.maxGasCost=eo.uint32();break;case 6:es.type=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({id:isSet(en.id)?bytesFromBase64(en.id):new Uint8Array,command:isSet(en.command)?String(en.command):"",params:isSet(en.params)?bytesFromBase64(en.params):new Uint8Array,keyId:isSet(en.keyId)?String(en.keyId):"",maxGasCost:isSet(en.maxGasCost)?Number(en.maxGasCost):0,type:isSet(en.type)?commandTypeFromJSON(en.type):0}),toJSON(en){let ei={};return void 0!==en.id&&(ei.id=base64FromBytes(void 0!==en.id?en.id:new Uint8Array)),void 0!==en.command&&(ei.command=en.command),void 0!==en.params&&(ei.params=base64FromBytes(void 0!==en.params?en.params:new Uint8Array)),void 0!==en.keyId&&(ei.keyId=en.keyId),void 0!==en.maxGasCost&&(ei.maxGasCost=Math.round(en.maxGasCost)),void 0!==en.type&&(ei.type=commandTypeToJSON(en.type)),ei},create:en=>ei.Command.fromPartial(en??{}),fromPartial(en){let ei=createBaseCommand();return ei.id=en.id??new Uint8Array,ei.command=en.command??"",ei.params=en.params??new Uint8Array,ei.keyId=en.keyId??"",ei.maxGasCost=en.maxGasCost??0,ei.type=en.type??0,ei}},ei.CommandBatchMetadata={encode(en,ei=ey.default.Writer.create()){for(let eo of(0!==e
2n.id.length&&ei.uint32(10).bytes(en.id),en.commandIds))ei.uint32(18).bytes(eo);return 0!==en.data.length&&ei.uint32(26).bytes(en.data),0!==en.sigHash.length&&ei.uint32(34).bytes(en.sigHash),0!==en.status&&ei.uint32(40).int32(en.status),""!==en.keyId&&ei.uint32(50).string(en.keyId),0!==en.prevBatchedCommandsId.length&&ei.uint32(58).bytes(en.prevBatchedCommandsId),void 0!==en.signature&&eb.Any.encode(en.signature,ei.uint32(66).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommandBatchMetadata();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.id=eo.bytes();break;case 2:es.commandIds.push(eo.bytes());break;case 3:es.data=eo.bytes();break;case 4:es.sigHash=eo.bytes();break;case 5:es.status=eo.int32();break;case 6:es.keyId=eo.string();break;case 7:es.prevBatchedCommandsId=eo.bytes();break;case 8:es.signature=eb.Any.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({id:isSet(en.id)?bytesFromBase64(en.id):new Uint8Array,commandIds:Array.isArray(en?.commandIds)?en.commandIds.map(en=>bytesFromBase64(en)):[],data:isSet(en.data)?bytesFromBase64(en.data):new Uint8Array,sigHash:isSet(en.sigHash)?bytesFromBase64(en.sigHash):new Uint8Array,status:isSet(en.status)?batchedCommandsStatusFromJSON(en.status):0,keyId:isSet(en.keyId)?String(en.keyId):"",prevBatchedCommandsId:isSet(en.prevBatchedCommandsId)?bytesFromBase64(en.prevBatchedCommandsId):new Uint8Array,signature:isSet(en.signature)?eb.Any.fromJSON(en.signature):void 0}),toJSON(en){let ei={};return void 0!==en.id&&(ei.id=base64FromBytes(void 0!==en.id?en.id:new Uint8Array)),en.commandIds?ei.commandIds=en.commandIds.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.commandIds=[],void 0!==en.data&&(ei.data=base64FromBytes(void 0!==en.data?en.data:new Uint8Array)),void 0!==en.sigHash&&(ei.sigHash=base64FromBytes(void 0!==en.sigHash?en.sigHash:new Uint8Array)),void 0!==en.status&&(ei.status=batchedCommandsStatusToJSON(en.status)),void 0!==en.keyId&&(ei.keyId=en.keyId),void 0!==en.prevBatchedCommandsId&&(ei.prevBatchedCommandsId=base64FromBytes(void 0!==en.prevBatchedCommandsId?en.prevBatchedCommandsId:new Uint8Array)),void 0!==en.signature&&(ei.signature=en.signature?eb.Any.toJSON(en.signature):void 0),ei},create:en=>ei.CommandBatchMetadata.fromPartial(en??{}),fromPartial(en){let ei=createBaseCommandBatchMetadata();return ei.id=en.id??new Uint8Array,ei.commandIds=en.commandIds?.map(en=>en)||[],ei.data=en.data??new Uint8Array,ei.sigHash=en.sigHash??new Uint8Array,ei.status=en.status??0,ei.keyId=en.keyId??"",ei.prevBatchedCommandsId=en.prevBatchedCommandsId??new Uint8Array,ei.signature=void 0!==en.signature&&null!==en.signature?eb.Any.fromPartial(en.signature):void 0,ei}},ei.SigMetadata={encode:(en,ei=ey.default.Writer.create())=>(0!==en.type&&ei.uint32(8).int32(en.type),""!==en.chain&&ei.uint32(18).string(en.chain),0!==en.commandBatchId.length&&ei.uint32(26).bytes(en.commandBatchId),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSigMetadata();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.type=eo.int32();break;case 2:es.chain=eo.string();break;case 3:es.commandBatchId=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({type:isSet(en.type)?sigTypeFromJSON(en.type):0,chain:isSet(en.chain)?String(en.chain):"",commandBatchId:isSet(en.commandBatchId)?bytesFromBase64(en.commandBatchId):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.type&&(ei.type=sigTypeToJSON(en.type)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.commandBatchId&&(ei.commandBatchId=base64FromBytes(void 0!==en.commandBatchId?en.commandBatchId:new Uint8Array)),ei},create:en=>ei.SigMetadata.fromPartial(en??{}),fromPartial(en){let ei=createBaseSigMetadata();return ei.type=en.type??0,ei.chain=en.chain??"",ei.commandBatchId=en.commandBatchId??new Uint8Array,ei}},ei.TransferKey={encode:(en,ei=ey.default.Writer.create())=>(0!==en.txId.length&&ei.uint32(10).bytes(en.txId),""!==en.nextKeyId&&ei.uint32(26).string(en.nextKeyId),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransferKey();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.txId=eo.bytes();break;case 3:es.nextKeyId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>
2({txId:isSet(en.txId)?bytesFromBase64(en.txId):new Uint8Array,nextKeyId:isSet(en.nextKeyId)?String(en.nextKeyId):""}),toJSON(en){let ei={};return void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),void 0!==en.nextKeyId&&(ei.nextKeyId=en.nextKeyId),ei},create:en=>ei.TransferKey.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransferKey();return ei.txId=en.txId??new Uint8Array,ei.nextKeyId=en.nextKeyId??"",ei}},ei.Asset={encode:(en,ei=ey.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.name&&ei.uint32(18).string(en.name),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAsset();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.name=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",name:isSet(en.name)?String(en.name):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.name&&(ei.name=en.name),ei},create:en=>ei.Asset.fromPartial(en??{}),fromPartial(en){let ei=createBaseAsset();return ei.chain=en.chain??"",ei.name=en.name??"",ei}},ei.TokenDetails={encode:(en,ei=ey.default.Writer.create())=>(""!==en.tokenName&&ei.uint32(10).string(en.tokenName),""!==en.symbol&&ei.uint32(18).string(en.symbol),0!==en.decimals&&ei.uint32(24).uint32(en.decimals),0!==en.capacity.length&&ei.uint32(34).bytes(en.capacity),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTokenDetails();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.tokenName=eo.string();break;case 2:es.symbol=eo.string();break;case 3:es.decimals=eo.uint32();break;case 4:es.capacity=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({tokenName:isSet(en.tokenName)?String(en.tokenName):"",symbol:isSet(en.symbol)?String(en.symbol):"",decimals:isSet(en.decimals)?Number(en.decimals):0,capacity:isSet(en.capacity)?bytesFromBase64(en.capacity):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.tokenName&&(ei.tokenName=en.tokenName),void 0!==en.symbol&&(ei.symbol=en.symbol),void 0!==en.decimals&&(ei.decimals=Math.round(en.decimals)),void 0!==en.capacity&&(ei.capacity=base64FromBytes(void 0!==en.capacity?en.capacity:new Uint8Array)),ei},create:en=>ei.TokenDetails.fromPartial(en??{}),fromPartial(en){let ei=createBaseTokenDetails();return ei.tokenName=en.tokenName??"",ei.symbol=en.symbol??"",ei.decimals=en.decimals??0,ei.capacity=en.capacity??new Uint8Array,ei}},ei.Gateway={encode:(en,ei=ey.default.Writer.create())=>(0!==en.address.length&&ei.uint32(10).bytes(en.address),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGateway();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.address=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({address:isSet(en.address)?bytesFromBase64(en.address):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=base64FromBytes(void 0!==en.address?en.address:new Uint8Array)),ei},create:en=>ei.Gateway.fromPartial(en??{}),fromPartial(en){let ei=createBaseGateway();return ei.address=en.address??new Uint8Array,ei}},ei.PollMetadata={encode:(en,ei=ey.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),0!==en.txId.length&&ei.uint32(18).bytes(en.txId),ei),decode(en,ei){let eo=en instanceof ey.default.Reader?en:new ey.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePollMetadata();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.txId=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",txId:isSet(en.txId)?bytesFromBase64(en.txId):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.txId&&(ei.txId=base64FromBytes(void 0!==en.txId?en.txId:new Uint8Array)),ei},create:en=>ei.PollMetadata.fromPartial(en??{}),fromPartial(en){let ei=createBasePollMetadata();return ei.chain=en.chain??"",ei.txId=en.txId??new Uint8Array,ei}};var eS=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eS.Buffer)return Uint8Array.from(eS.Buffer.from(en,"base64"));{let ei=eS.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eS.Buffer)return eS.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eS.btoa(ei.join(""))}}function isSet(en){return null!=en}ey.default.util.Long!==eg.default&&(ey.default.util.Long=eg.default,ey.default.configure())},45743:function(en,ei,eo){"use strict";var ea,es,ed,eu=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.GeneralMessage=ei.Asset=ei.FeeInfo=ei.TransferFee=ei.CrossChainTransfer=ei.CrossChainAddress=ei.Chain=ei.generalMessage_StatusToJSON=ei.generalMessage_StatusFromJSON=ei.GeneralMessage_Status=ei.transferDirectionToJSON=ei.transferDirectionFromJSON=ei.TransferDirection=ei.transferStateToJSON=ei.transferStateFromJSON=ei.TransferState=ei.protobufPackage=void 0;let ef=eu(eo(41583)),ep=eu(eo(62100)),em=eo(61039),eg=eo(99058);function transferStateFromJSON(en){switch(en){case 0:case"TRANSFER_STATE_UNSPECIFIED":return ea.TRANSFER_STATE_UNSPECIFIED;case 1:case"TRANSFER_STATE_PENDING":return ea.TRANSFER_STATE_PENDING;case 2:case"TRANSFER_STATE_ARCHIVED":return ea.TRANSFER_STATE_ARCHIVED;case 3:case"TRANSFER_STATE_INSUFFICIENT_AMOUNT":return ea.TRANSFER_STATE_INSUFFICIENT_AMOUNT;default:return ea.UNRECOGNIZED}}function transferStateToJSON(en){switch(en){case ea.TRANSFER_STATE_UNSPECIFIED:return"TRANSFER_STATE_UNSPECIFIED";case ea.TRANSFER_STATE_PENDING:return"TRANSFER_STATE_PENDING";case ea.TRANSFER_STATE_ARCHIVED:return"TRANSFER_STATE_ARCHIVED";case ea.TRANSFER_STATE_INSUFFICIENT_AMOUNT:return"TRANSFER_STATE_INSUFFICIENT_AMOUNT";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function transferDirectionFromJSON(en){switch(en){case 0:case"TRANSFER_DIRECTION_UNSPECIFIED":return es.TRANSFER_DIRECTION_UNSPECIFIED;case 1:case"TRANSFER_DIRECTION_INCOMING":return es.TRANSFER_DIRECTION_INCOMING;case 2:case"TRANSFER_DIRECTION_OUTGOING":return es.TRANSFER_DIRECTION_OUTGOING;default:return es.UNRECOGNIZED}}function transferDirectionToJSON(en){switch(en){case es.TRANSFER_DIRECTION_UNSPECIFIED:return"TRANSFER_DIRECTION_UNSPECIFIED";case es.TRANSFER_DIRECTION_INCOMING:return"TRANSFER_DIRECTION_INCOMING";case es.TRANSFER_DIRECTION_OUTGOING:return"TRANSFER_DIRECTION_OUTGOING";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function generalMessage_StatusFromJSON(en){switch(en){case 0:case"STATUS_UNSPECIFIED":return ed.STATUS_UNSPECIFIED;case 1:case"STATUS_APPROVED":return ed.STATUS_APPROVED;case 2:case"STATUS_PROCESSING":return ed.STATUS_PROCESSING;case 3:case"STATUS_EXECUTED":return ed.STATUS_EXECUTED;case 4:case"STATUS_FAILED":return ed.STATUS_FAILED;default:return ed.UNRECOGNIZED}}function generalMessage_StatusToJSON(en){switch(en){case ed.STATUS_UNSPECIFIED:return"STATUS_UNSPECIFIED";case ed.STATUS_APPROVED:return"STATUS_APPROVED";case ed.STATUS_PROCESSING:return"STATUS_PROCESSING";case ed.STATUS_EXECUTED:return"STATUS_EXECUTED";case ed.STATUS_FAILED:return"STATUS_FAILED";case ed.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseChain(){return{name:"",supportsForeignAssets:!1,keyType:0,module:""}}function createBaseCrossChainAddress(){return{chain:void 0,address:""}}function createBaseCrossChainTransfer(){return{recipient:void 0,asset:void 0,id:ef.default.UZERO,state:0}}function createBaseTransferFee(){return{coins:[]}}function createBaseFeeInfo(){return{chain:"",asset:"",feeRate:new Uint8Array,minFee:new Uint8Array,maxFee:new Uint8Array}}function createBaseAsset(){return{denom:"",isNativeAsset:!1}}function createBaseGeneralMessage(){return{id:"",sender:void 0,recipient:void 0,payloadHash:new Uint8Array,status:0,asset:void 0,sourceTxId:new Uint8Array,sourceTxIndex:ef.default.UZERO}}ei.protobufPackage="axelar.nexus.exported.v1beta1",function(en){en[en.TRANSFER_STATE_UNSPECIFIED=0]="TRANSFER_STATE_UNSPECIFIED",en[en.TRANSFER_STATE_PENDING=1]="TRANSFER_STATE_PENDING",en[en.TRANSFER_STATE_ARCHIVED=2]="TRANSFER_STATE_ARCHIVED",en[en.TRANSFER_STATE_INSUFFICIENT_AMOUNT=3]="TRANSFER_STATE_INSUFFICIENT_AMOUNT",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.TransferState||(ei.TransferState={})),ei.transferStateFromJSON=transferStateFromJSON,ei.transferStateToJSON=transferStateToJSON,function(en){en[en.TRANSFER_DIRECTION_UNSPECIFIED=0]="TRANSFER_DIRECTION_UNSPECIFIED",en[en.TRANSFER_DIRECTION_INCOMING=1]="TRANSFER_DIRECTION_INCOMING",en[en.TRANSFER_DIRECTION_OUTGOING=2]="TRANSFER_DIRECTION_OUTGOING",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.TransferDirection||(ei.TransferDirection={})),ei.transferDirectionFromJSON=transferDirectionFromJSON,ei.transferDirectionToJSON=transferDirectionToJSON,function(en){en[en.STATUS_UNSPECIFIED=0]="STATUS_UNSPECIFIED",en[en.STATUS_APPROVED=1]="STATUS_APPROVED",en[en.STATUS_PROCESSING=2]="STATUS_PROCESSING",en[en.STATUS_EXECUTED=3]="STATUS_EXECUTED",en[en.STATUS_FAILED=4]="STATUS_FAILED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ed=ei.GeneralMessage_Status||(ei.GeneralMessage_Status={})),ei.generalMessage_StatusFromJSON=generalMessage_StatusFromJSON,ei.generalMessage_StatusToJSON=generalMessage_StatusToJSON,ei.Chain={encode:(en,ei=ep.default.Writer.create())=>(""!==en.name&&ei.uint32(10).string(en.name),!0===en.supportsForeignAssets&&ei.uint32(24).bool(en.supportsForeignAssets),0!==en.keyType&&ei.uint32(32).int32(en.keyType),""!==en.module&&ei.uint32(42).string(en.module),ei),decode(en,ei){let eo=en instanceof ep.default.Reader?en:new ep.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChain();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.name=eo.string();break;case 3:es.supportsForeignAssets=eo.bool();break;case 4:es.keyType=eo.int32();break;case 5:es.module=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({name:isSet(en.name)?String(en.name):"",supportsForeignAssets:!!isSet(en.supportsForeignAssets)&&!!en.supportsForeignAssets,keyType:isSet(en.keyType)?(0,eg.keyTypeFromJSON)(en.keyType):0,module:isSet(en.module)?String(en.module):""}),toJSON(en){let ei={};return void 0!==en.name&&(ei.name=en.name),void 0!==en.supportsForeignAssets&&
2(ei.supportsForeignAssets=en.supportsForeignAssets),void 0!==en.keyType&&(ei.keyType=(0,eg.keyTypeToJSON)(en.keyType)),void 0!==en.module&&(ei.module=en.module),ei},create:en=>ei.Chain.fromPartial(en??{}),fromPartial(en){let ei=createBaseChain();return ei.name=en.name??"",ei.supportsForeignAssets=en.supportsForeignAssets??!1,ei.keyType=en.keyType??0,ei.module=en.module??"",ei}},ei.CrossChainAddress={encode:(en,eo=ep.default.Writer.create())=>(void 0!==en.chain&&ei.Chain.encode(en.chain,eo.uint32(10).fork()).ldelim(),""!==en.address&&eo.uint32(18).string(en.address),eo),decode(en,eo){let ea=en instanceof ep.default.Reader?en:new ep.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCrossChainAddress();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.chain=ei.Chain.decode(ea,ea.uint32());break;case 2:ed.address=ea.string();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({chain:isSet(en.chain)?ei.Chain.fromJSON(en.chain):void 0,address:isSet(en.address)?String(en.address):""}),toJSON(en){let eo={};return void 0!==en.chain&&(eo.chain=en.chain?ei.Chain.toJSON(en.chain):void 0),void 0!==en.address&&(eo.address=en.address),eo},create:en=>ei.CrossChainAddress.fromPartial(en??{}),fromPartial(en){let eo=createBaseCrossChainAddress();return eo.chain=void 0!==en.chain&&null!==en.chain?ei.Chain.fromPartial(en.chain):void 0,eo.address=en.address??"",eo}},ei.CrossChainTransfer={encode:(en,eo=ep.default.Writer.create())=>(void 0!==en.recipient&&ei.CrossChainAddress.encode(en.recipient,eo.uint32(10).fork()).ldelim(),void 0!==en.asset&&em.Coin.encode(en.asset,eo.uint32(18).fork()).ldelim(),en.id.isZero()||eo.uint32(24).uint64(en.id),0!==en.state&&eo.uint32(32).int32(en.state),eo),decode(en,eo){let ea=en instanceof ep.default.Reader?en:new ep.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCrossChainTransfer();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.recipient=ei.CrossChainAddress.decode(ea,ea.uint32());break;case 2:ed.asset=em.Coin.decode(ea,ea.uint32());break;case 3:ed.id=ea.uint64();break;case 4:ed.state=ea.int32();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({recipient:isSet(en.recipient)?ei.CrossChainAddress.fromJSON(en.recipient):void 0,asset:isSet(en.asset)?em.Coin.fromJSON(en.asset):void 0,id:isSet(en.id)?ef.default.fromValue(en.id):ef.default.UZERO,state:isSet(en.state)?transferStateFromJSON(en.state):0}),toJSON(en){let eo={};return void 0!==en.recipient&&(eo.recipient=en.recipient?ei.CrossChainAddress.toJSON(en.recipient):void 0),void 0!==en.asset&&(eo.asset=en.asset?em.Coin.toJSON(en.asset):void 0),void 0!==en.id&&(eo.id=(en.id||ef.default.UZERO).toString()),void 0!==en.state&&(eo.state=transferStateToJSON(en.state)),eo},create:en=>ei.CrossChainTransfer.fromPartial(en??{}),fromPartial(en){let eo=createBaseCrossChainTransfer();return eo.recipient=void 0!==en.recipient&&null!==en.recipient?ei.CrossChainAddress.fromPartial(en.recipient):void 0,eo.asset=void 0!==en.asset&&null!==en.asset?em.Coin.fromPartial(en.asset):void 0,eo.id=void 0!==en.id&&null!==en.id?ef.default.fromValue(en.id):ef.default.UZERO,eo.state=en.state??0,eo}},ei.TransferFee={encode(en,ei=ep.default.Writer.create()){for(let eo of en.coins)em.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.default.Reader?en:new ep.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransferFee();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.coins.push(em.Coin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({coins:Array.isArray(en?.coins)?en.coins.map(en=>em.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.coins?ei.coins=en.coins.map(en=>en?em.Coin.toJSON(en):void 0):ei.coins=[],ei},create:en=>ei.TransferFee.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransferFee();return ei.coins=en.coins?.map(en=>em.Coin.fromPartial(en))||[],ei}},ei.FeeInfo={encode:(en,ei=ep.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.asset&&ei.uint32(18).string(en.asset),0!==en.feeRate.length&&ei.uint32(26).bytes(en.feeRate),0!==en.minFee.length&&ei.uint32(34).bytes(en.minFee),0!==en.maxFee.length&&ei.uint32(42).bytes(en.maxFee),ei),decode(en,ei){let eo=en instanceof ep.default.Reader?en:new ep.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseFeeInfo();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.asset=eo.string();break;case 3:es.feeRate=eo.bytes();break;case 4:es.minFee=eo.bytes();break;case 5:es.maxFee=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",asset:isSet(en.asset)?String(en.asset):"",feeRate:isSet(en.feeRate)?bytesFromBase64(en.feeRate):new Uint8Array,minFee:isSet(en.minFee)?bytesFromBase64(en.minFee):new Uint8Array,maxFee:isSet(en.maxFee)?bytesFromBase64(en.maxFee):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.asset&&(ei.asset=en.asset),void 0!==en.feeRate&&(ei.feeRate=base64FromBytes(void 0!==en.feeRate?en.feeRate:new Uint8Array)),void 0!==en.minFee&&(ei.minFee=base64FromBytes(void 0!==en.minFee?en.minFee:new Uint8Array)),void 0!==en.maxFee&&(ei.maxFee=base64FromBytes(void 0!==en.maxFee?en.maxFee:new Uint8Array)),ei},create:en=>ei.FeeInfo.fromPartial(en??{}),fromPartial(en){let ei=createBaseFeeInfo();return ei.chain=en.chain??"",ei.asset=en.asset??"",ei.feeRate=en.feeRate??new Uint8Array,ei.minFee=en.minFee??new Uint8Array,ei.maxFee=en.maxFee??new Uint8Array,ei}},ei.Asset={encode:(en,ei=ep.default.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),!0===en.isNativeAsset&&ei.uint32(24).bool(en.isNativeAsset),ei),decode(en,ei){let eo=en instanceof ep.default.Reader?en:new ep.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAsset();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 3:es.isNativeAsset=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:isSet(en.denom)?String(en.denom):"",isNativeAsset:!!isSet(en.isNativeAsset)&&!!en.isNativeAsset}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.isNativeAsset&&(ei.isNativeAsset=en.isNativeAsset),ei},create:en=>ei.Asset.fromPartial(en??{}),fromPartial(en){let ei=createBaseAsset();return ei.denom=en.denom??"",ei.isNativeAsset=en.isNativeAsset??!1,ei}},ei.GeneralMessage={encode:(en,eo=ep.default.Writer.create())=>(""!==en.id&&eo.uint32(10).string(en.id),void 0!==en.sender&&ei.CrossChainAddress.encode(en.sender,eo.uint32(18).fork()).ldelim(),void 0!==en.recipient&&ei.CrossChainAddress.encode(en.recipient,eo.uint32(26).fork()).ldelim(),0!==en.payloadHash.length&&eo.uint32(34).bytes(en.payloadHash),0!==en.status&&eo.uint32(40).int32(en.status),void 0!==en.asset&&em.Coin.encode(en.asset,eo.uint32(50).fork()).ldelim(),0!==en.sourceTxId.length&&eo.uint32(58).bytes(en.sourceTxId),en.sourceTxIndex.isZero()||eo.uint32(64).uint64(en.sourceTxIndex),eo),decode(en,eo){let ea=en instanceof ep.default.Reader?en:new ep.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseGeneralMessage();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.id=ea.string();break;case 2:ed.sender=ei.CrossChainAddress.decode(ea,ea.uint32());break;case 3:ed.recipient=ei.CrossChainAddress.decode(ea,ea.uint32());break;case 4:ed.payloadHash=ea.bytes();break;case 5:ed.status=ea.int32();break;case 6:ed.asset=em.Coin.decode(ea,ea.uint32());break;case 7:ed.sourceTxId=ea.bytes();break;case 8:ed.sourceTxIndex=ea.uint64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({id:isSet(en.id)?String(en.id):"",sender:isSet(en.sender)?ei.CrossChainAddress.fromJSON(en.sender):void 0,recipient:isSet(en.recipient)?ei.CrossChainAddress.fromJSON(en.recipient):void 0,payloadHash:isSet(en.payloadHash)?bytesFromBase64(en.payloadHash):new Uint8Array,status:isSet(en.status)?generalMessage_StatusFromJSON(en.status):0,asset:isSet(en.asset)?em.Coin.fromJSON(en.asset):void 0,sourceTxId:isSet(en.sourceTxId)?bytesFromBase64(en.sourceTxId):new Uint8Array,sourceTxIndex:isSet(en.sourceTxIndex)?ef.default.fromValue(en.sourceTxIndex):ef.default.UZERO}),toJSON(en){let eo={};return void 0!==en.id&&(eo.id=en.id),void 0!==en.sender&&(eo.sender=en.sender?ei.
2CrossChainAddress.toJSON(en.sender):void 0),void 0!==en.recipient&&(eo.recipient=en.recipient?ei.CrossChainAddress.toJSON(en.recipient):void 0),void 0!==en.payloadHash&&(eo.payloadHash=base64FromBytes(void 0!==en.payloadHash?en.payloadHash:new Uint8Array)),void 0!==en.status&&(eo.status=generalMessage_StatusToJSON(en.status)),void 0!==en.asset&&(eo.asset=en.asset?em.Coin.toJSON(en.asset):void 0),void 0!==en.sourceTxId&&(eo.sourceTxId=base64FromBytes(void 0!==en.sourceTxId?en.sourceTxId:new Uint8Array)),void 0!==en.sourceTxIndex&&(eo.sourceTxIndex=(en.sourceTxIndex||ef.default.UZERO).toString()),eo},create:en=>ei.GeneralMessage.fromPartial(en??{}),fromPartial(en){let eo=createBaseGeneralMessage();return eo.id=en.id??"",eo.sender=void 0!==en.sender&&null!==en.sender?ei.CrossChainAddress.fromPartial(en.sender):void 0,eo.recipient=void 0!==en.recipient&&null!==en.recipient?ei.CrossChainAddress.fromPartial(en.recipient):void 0,eo.payloadHash=en.payloadHash??new Uint8Array,eo.status=en.status??0,eo.asset=void 0!==en.asset&&null!==en.asset?em.Coin.fromPartial(en.asset):void 0,eo.sourceTxId=en.sourceTxId??new Uint8Array,eo.sourceTxIndex=void 0!==en.sourceTxIndex&&null!==en.sourceTxIndex?ef.default.fromValue(en.sourceTxIndex):ef.default.UZERO,eo}};var ey=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(ey.Buffer)return Uint8Array.from(ey.Buffer.from(en,"base64"));
2{let ei=ey.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(ey.Buffer)return ey.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),ey.btoa(ei.join(""))}}function isSet(en){return null!=en}ep.default.util.Long!==ef.default&&(ep.default.util.Long=ef.default,ep.default.configure())},84212:function(en,ei,eo){"use strict";var ea,es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MessageResponse=ei.MessageRequest=ei.TransferRateLimit=ei.TransferRateLimitResponse=ei.TransferRateLimitRequest=ei.RecipientAddressResponse=ei.RecipientAddressRequest=ei.ChainsByAssetResponse=ei.ChainsByAssetRequest=ei.ChainStateResponse=ei.ChainStateRequest=ei.AssetsResponse=ei.AssetsRequest=ei.ChainsResponse=ei.ChainsRequest=ei.TransferFeeResponse=ei.TransferFeeRequest=ei.FeeInfoResponse=ei.FeeInfoRequest=ei.TransfersForChainResponse=ei.TransfersForChainRequest=ei.LatestDepositAddressResponse=ei.LatestDepositAddressRequest=ei.ChainMaintainersResponse=ei.ChainMaintainersRequest=ei.chainStatusToJSON=ei.chainStatusFromJSON=ei.ChainStatus=ei.protobufPackage=void 0;let ed=es(eo(41583)),eu=es(eo(62100)),ef=eo(18762),ep=eo(61039),em=eo(61099),eg=eo(45743),ey=eo(23071);function chainStatusFromJSON(en){switch(en){case 0:case"CHAIN_STATUS_UNSPECIFIED":return ea.CHAIN_STATUS_UNSPECIFIED;case 1:case"CHAIN_STATUS_ACTIVATED":return ea.CHAIN_STATUS_ACTIVATED;case 2:case"CHAIN_STATUS_DEACTIVATED":return ea.CHAIN_STATUS_DEACTIVATED;default:return ea.UNRECOGNIZED}}function chainStatusToJSON(en){switch(en){case ea.CHAIN_STATUS_UNSPECIFIED:return"CHAIN_STATUS_UNSPECIFIED";case ea.CHAIN_STATUS_ACTIVATED:return"CHAIN_STATUS_ACTIVATED";case ea.CHAIN_STATUS_DEACTIVATED:return"CHAIN_STATUS_DEACTIVATED";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseChainMaintainersRequest(){return{chain:""}}function createBaseChainMaintainersResponse(){return{maintainers:[]}}function createBaseLatestDepositAddressRequest(){return{recipientAddr:"",recipientChain:"",depositChain:""}}function createBaseLatestDepositAddressResponse(){return{depositAddr:""}}function createBaseTransfersForChainRequest(){return{chain:"",state:0,pagination:void 0}}function createBaseTransfersForChainResponse(){return{transfers:[],pagination:void 0}}function createBaseFeeInfoRequest(){return{chain:"",asset:""}}function createBaseFeeInfoResponse(){return{feeInfo:void 0}}function createBaseTransferFeeRequest(){return{sourceChain:"",destinationChain:"",amount:""}}function createBaseTransferFeeResponse(){return{fee:void 0}}function createBaseChainsRequest(){return{status:0}}function createBaseChainsResponse(){return{chains:[]}}function createBaseAssetsRequest(){return{chain:""}}function createBaseAssetsResponse(){return{assets:[]}}function createBaseChainStateRequest(){return{chain:""}}function createBaseChainStateResponse(){return{state:void 0}}function createBaseChainsByAssetRequest(){return{asset:""}}function createBaseChainsByAssetResponse(){return{chains:[]}}function createBaseRecipientAddressRequest(){return{depositAddr:"",depositChain:""}}function createBaseRecipientAddressResponse(){return{recipientAddr:"",recipientChain:""}}function createBaseTransferRateLimitRequest(){return{chain:"",asset:""}}function createBaseTransferRateLimitResponse(){return{transferRateLimit:void 0}}function createBaseTransferRateLimit(){return{limit:new Uint8Array,window:void 0,incoming:new Uint8Array,outgoing:new Uint8Array,timeLeft:void 0}}function createBaseMessageRequest(){return{id:""}}function createBaseMessageResponse(){return{message:void 0}}ei.protobufPackage="axelar.nexus.v1beta1",function(en){en[en.CHAIN_STATUS_UNSPECIFIED=0]="CHAIN_STATUS_UNSPECIFIED",en[en.CHAIN_STATUS_ACTIVATED=1]="CHAIN_STATUS_ACTIVATED",en[en.CHAIN_STATUS_DEACTIVATED=2]="CHAIN_STATUS_DEACTIVATED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.ChainStatus||(ei.ChainStatus={})),ei.chainStatusFromJSON=chainStatusFromJSON,ei.chainStatusToJSON=chainStatusToJSON,ei.ChainMaintainersRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainMaintainersRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chain=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.ChainMaintainersRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainMaintainersRequest();return ei.chain=en.chain??"",ei}},ei.ChainMaintainersResponse={encode(en,ei=eu.default.Writer.create()){for(let eo of en.maintainers
2)ei.uint32(10).bytes(eo);return ei},decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainMaintainersResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.maintainers.push(eo.bytes()):eo.skipType(7&en)}return es},fromJSON:en=>({maintainers:Array.isArray(en?.maintainers)?en.maintainers.map(en=>bytesFromBase64(en)):[]}),toJSON(en){let ei={};return en.maintainers?ei.maintainers=en.maintainers.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.maintainers=[],ei},create:en=>ei.ChainMaintainersResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainMaintainersResponse();return ei.maintainers=en.maintainers?.map(en=>en)||[],ei}},ei.LatestDepositAddressRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.recipientAddr&&ei.uint32(10).string(en.recipientAddr),""!==en.recipientChain&&ei.uint32(18).string(en.recipientChain),""!==en.depositChain&&ei.uint32(26).string(en.depositChain),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLatestDepositAddressRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.recipientAddr=eo.string();break;case 2:es.recipientChain=eo.string();break;case 3:es.depositChain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({recipientAddr:isSet(en.recipientAddr)?String(en.recipientAddr):"",recipientChain:isSet(en.recipientChain)?String(en.recipientChain):"",depositChain:isSet(en.depositChain)?String(en.depositChain):""}),toJSON(en){let ei={};return void 0!==en.recipientAddr&&(ei.recipientAddr=en.recipientAddr),void 0!==en.recipientChain&&(ei.recipientChain=en.recipientChain),void 0!==en.depositChain&&(ei.depositChain=en.depositChain),ei},create:en=>ei.LatestDepositAddressRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseLatestDepositAddressRequest();return ei.recipientAddr=en.recipientAddr??"",ei.recipientChain=en.recipientChain??"",ei.depositChain=en.depositChain??"",ei}},ei.LatestDepositAddressResponse={encode:(en,ei=eu.default.Writer.create())=>(""!==en.depositAddr&&ei.uint32(10).string(en.depositAddr),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLatestDepositAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.depositAddr=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({depositAddr:isSet(en.depositAddr)?String(en.depositAddr):""}),toJSON(en){let ei={};return void 0!==en.depositAddr&&(ei.depositAddr=en.depositAddr),ei},create:en=>ei.LatestDepositAddressResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseLatestDepositAddressResponse();return ei.depositAddr=en.depositAddr??"",ei}},ei.TransfersForChainRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),0!==en.state&&ei.uint32(16).int32(en.state),void 0!==en.pagination&&ef.PageRequest.encode(en.pagination,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransfersForChainRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.state=eo.int32();break;case 3:es.pagination=ef.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",state:isSet(en.state)?(0,eg.transferStateFromJSON)(en.state):0,pagination:isSet(en.pagination)?ef.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.state&&(ei.state=(0,eg.transferStateToJSON)(en.state)),void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageRequest.toJSON(en.pagination):void 0),ei},create:en=>ei.TransfersForChainRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransfersForChainRequest();return ei.chain=en.chain??"",ei.state=en.state??0,ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.TransfersForChainResponse={encode(en,ei=eu.default.Writer.create()){for(let eo of en.transfers)eg.CrossChainTransfer.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&ef.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransfersForChainResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.transfers.push(eg.CrossChainTransfer.decode(eo,eo.uint32()));break;case 2:es.pagination=ef.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({transfers:Array.isArray(en?.transfers)?en.transfers.map(en=>eg.CrossChainTransfer.fromJSON(en)):[],pagination:isSet(en.pagination)?ef.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.transfers?ei.transfers=en.transfers.map(en=>en?eg.CrossChainTransfer.toJSON(en):void 0):ei.transfers=[],void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageResponse.toJSON(en.pagination):void 0),ei},create:en=>ei.TransfersForChainResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransfersForChainResponse();return ei.transfers=en.transfers?.map(en=>eg.CrossChainTransfer.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.FeeInfoRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.asset&&ei.uint32(18).string(en.asset),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseFeeInfoRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.asset=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",asset:isSet(en.asset)?String(en.asset):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.asset&&(ei.asset=en.asset),ei},create:en=>ei.FeeInfoRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseFeeInfoRequest();return ei.chain=en.chain??"",ei.asset=en.asset??"",ei}},ei.FeeInfoResponse={encode:(en,ei=eu.default.Writer.create())=>(void 0!==en.feeInfo&&eg.FeeInfo.encode(en.feeInfo,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseFeeInfoResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.feeInfo=eg.FeeInfo.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({feeInfo:isSet(en.feeInfo)?eg.FeeInfo.fromJSON(en.feeInfo):void 0}),toJSON(en){let ei={};return void 0!==en.feeInfo&&(ei.feeInfo=en.feeInfo?eg.FeeInfo.toJSON(en.feeInfo):void 0),ei},create:en=>ei.FeeInfoResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseFeeInfoResponse();return ei.feeInfo=void 0!==en.feeInfo&&null!==en.feeInfo?eg.FeeInfo.fromPartial(en.feeInfo):void 0,ei}},ei.TransferFeeRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.sourceChain&&ei.uint32(10).string(en.sourceChain),""!==en.destinationChain&&ei.uint32(18).string(en.destinationChain),""!==en.amount&&ei.uint32(26).string(en.amount),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransferFeeRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sourceChain=eo.string();break;case 2:es.destinationChain=eo.string();break;case 3:es.amount=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sourceChain:isSet(en.sourceChain)?String(en.sourceChain):"",destinationChain:isSet(en.destinationChain)?String(en.destinationChain):"",amount:isSet(en.amount)?String(en.amount):""}),toJSON(en){let ei={};return void 0!==en.sourceChain&&(ei.sourceChain=en.sourceChain),void 0!==en.destinationChain&&(ei.destinationChain=en.destinationChain),void 0!==en.amount&&(ei.amount=en.amount),ei},create:en=>ei.TransferFeeRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransferFeeRequest();return ei.sourceChain=en.sourceChain??"",ei.destinationChain=en.destinationChain??"",ei.amount=en.amount??"",ei}},ei.TransferFeeResponse={encode:(en,ei=eu.default.Writer.create())=>(void 0!==en.fee&&ep.Coin.encode(en.fee,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransferFeeResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.fee=ep.Coin.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({fee:isSet(en.fee)?ep.Coin.fromJSON(en.fee):void 0}),toJSON(en){let ei={};return void 0!==en.fee&&(ei.fee=en.fee?ep.Coin.toJSON(en.fee):void 0),ei},create:en=>ei.TransferFeeResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransferFeeResponse();return ei.fee=void 0!==en.fee&&null!==en.fee?ep.Coin.fromPartial(en.fee):void 0,ei}},ei.ChainsRequest={encode:(en,ei=eu.default.Writer.create())=>(0!==en.status&&ei.uint32(8).int32(en.status),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.status=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({status:isSet(en.status)?chainStatusFromJSON(en.status):0}),toJSON(en){let ei={};return void 0!==en.status&&(ei.status=chainStatusToJSON(en.status)),ei},create:en=>ei.ChainsRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainsRequest();return ei.status=en.status??0,ei}},ei.ChainsResponse={encode(en,ei=eu.default.Writer.create()){for(let eo of en.chains)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chains.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({chains:Array.isArray(en?.chains)?en.chains.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.chains?ei.chains=en.chains.map(en=>en):ei.chains=[],ei},create:en=>ei.ChainsResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainsResponse();return ei.chains=en.chains?.map(en=>en)||[],ei}},ei.AssetsRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAssetsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chain=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.AssetsRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseAssetsRequest();return ei.chain=en.chain??"",ei}},ei.AssetsResponse={encode(en,ei=eu.default.Writer.create()){for(let eo of en.assets)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAssetsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.assets.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({assets:Array.isArray(en?.assets)?en.assets.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.assets?ei.assets=en.assets.map(en=>en):ei.assets=[],ei},create:en=>ei.AssetsResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseAssetsResponse();return ei.assets=en.assets?.map(en=>en)||[],ei}},ei.ChainStateRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainStateRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chain=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.ChainStateRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainStateRequest();return ei.chain=en.chain??"",ei}},ei.ChainStateResponse={encode:(en,ei=eu.default.Writer.create())=>(void 0!==en.state&&ey.ChainState.encode(en.state,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainStateResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.state=ey.ChainState.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({state:isSet(en.state)?ey.ChainState.fromJSON(en.state):void 0}),toJSON(en){let ei={};return void 0!==en.state&&(ei.state=en.state?ey.ChainState.toJSON(en.state):void 0),ei},create:en=>ei.ChainStateResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainStateResponse();return ei.state=void 0!==en.state&&null!==en.state?ey.ChainState.fromPartial(en.state):void 0,ei}},ei.ChainsByAssetRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.asset&&ei.uint32(10).string(en.asset),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainsByAssetRequest
2();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.asset=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({asset:isSet(en.asset)?String(en.asset):""}),toJSON(en){let ei={};return void 0!==en.asset&&(ei.asset=en.asset),ei},create:en=>ei.ChainsByAssetRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainsByAssetRequest();return ei.asset=en.asset??"",ei}},ei.ChainsByAssetResponse={encode(en,ei=eu.default.Writer.create()){for(let eo of en.chains)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseChainsByAssetResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.chains.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({chains:Array.isArray(en?.chains)?en.chains.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.chains?ei.chains=en.chains.map(en=>en):ei.chains=[],ei},create:en=>ei.ChainsByAssetResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseChainsByAssetResponse();return ei.chains=en.chains?.map(en=>en)||[],ei}},ei.RecipientAddressRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.depositAddr&&ei.uint32(10).string(en.depositAddr),""!==en.depositChain&&ei.uint32(18).string(en.depositChain),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRecipientAddressRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.depositAddr=eo.string();break;case 2:es.depositChain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({depositAddr:isSet(en.depositAddr)?String(en.depositAddr):"",depositChain:isSet(en.depositChain)?String(en.depositChain):""}),toJSON(en){let ei={};return void 0!==en.depositAddr&&(ei.depositAddr=en.depositAddr),void 0!==en.depositChain&&(ei.depositChain=en.depositChain),ei},create:en=>ei.RecipientAddressRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRecipientAddressRequest();return ei.depositAddr=en.depositAddr??"",ei.depositChain=en.depositChain??"",ei}},ei.RecipientAddressResponse={encode:(en,ei=eu.default.Writer.create())=>(""!==en.recipientAddr&&ei.uint32(10).string(en.recipientAddr),""!==en.recipientChain&&ei.uint32(18).string(en.recipientChain),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRecipientAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.recipientAddr=eo.string();break;case 2:es.recipientChain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({recipientAddr:isSet(en.recipientAddr)?String(en.recipientAddr):"",recipientChain:isSet(en.recipientChain)?String(en.recipientChain):""}),toJSON(en){let ei={};return void 0!==en.recipientAddr&&(ei.recipientAddr=en.recipientAddr),void 0!==en.recipientChain&&(ei.recipientChain=en.recipientChain),ei},create:en=>ei.RecipientAddressResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRecipientAddressResponse();return ei.recipientAddr=en.recipientAddr??"",ei.recipientChain=en.recipientChain??"",ei}},ei.TransferRateLimitRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),""!==en.asset&&ei.uint32(18).string(en.asset),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransferRateLimitRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.asset=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",asset:isSet(en.asset)?String(en.asset):""}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.asset&&(ei.asset=en.asset),ei},create:en=>ei.TransferRateLimitRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransferRateLimitRequest();return ei.chain=en.chain??"",ei.asset=en.asset??"",ei}},ei.TransferRateLimitResponse={encode:(en,eo=eu.default.Writer.create())=>(void 0!==en.transferRateLimit&&ei.TransferRateLimit.encode(en.transferRateLimit,eo.uint32(10).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eu.default.Reader?en:new eu.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseTransferRateLimitResponse();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.transferRateLimit=ei.TransferRateLimit.decode(ea,ea.uint32()):ea.skipType(7&en)}return ed},fromJSON:en=>({transferRateLimit:isSet(en.transferRateLimit)?ei.TransferRateLimit.fromJSON(en.transferRateLimit):void 0}),toJSON(en){let eo={};return void 0!==en.transferRateLimit&&(eo.transferRateLimit=en.transferRateLimit?ei.TransferRateLimit.toJSON(en.transferRateLimit):void 0),eo},create:en=>ei.TransferRateLimitResponse.fromPartial(en??{}),fromPartial(en){let eo=createBaseTransferRateLimitResponse();return eo.transferRateLimit=void 0!==en.transferRateLimit&&null!==en.transferRateLimit?ei.TransferRateLimit.fromPartial(en.transferRateLimit):void 0,eo}},ei.TransferRateLimit={encode:(en,ei=eu.default.Writer.create())=>(0!==en.limit.length&&ei.uint32(10).bytes(en.limit),void 0!==en.window&&em.Duration.encode(en.window,ei.uint32(18).fork()).ldelim(),0!==en.incoming.length&&ei.uint32(26).bytes(en.incoming),0!==en.outgoing.length&&ei.uint32(34).bytes(en.outgoing),void 0!==en.timeLeft&&em.Duration.encode(en.timeLeft,ei.uint32(42).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransferRateLimit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.limit=eo.bytes();break;case 2:es.window=em.Duration.decode(eo,eo.uint32());break;case 3:es.incoming=eo.bytes();break;case 4:es.outgoing=eo.bytes();break;case 5:es.timeLeft=em.Duration.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({limit:isSet(en.limit)?bytesFromBase64(en.limit):new Uint8Array,window:isSet(en.window)?em.Duration.fromJSON(en.window):void 0,incoming:isSet(en.incoming)?bytesFromBase64(en.incoming):new Uint8Array,outgoing:isSet(en.outgoing)?bytesFromBase64(en.outgoing):new Uint8Array,timeLeft:isSet(en.timeLeft)?em.Duration.fromJSON(en.timeLeft):void 0}),toJSON(en){let ei={};return void 0!==en.limit&&(ei.limit=base64FromBytes(void 0!==en.limit?en.limit:new Uint8Array)),void 0!==en.window&&(ei.window=en.window?em.Duration.toJSON(en.window):void 0),void 0!==en.incoming&&(ei.incoming=base64FromBytes(void 0!==en.incoming?en.incoming:new Uint8Array)),void 0!==en.outgoing&&(ei.outgoing=base64FromBytes(void 0!==en.outgoing?en.outgoing:new Uint8Array)),void 0!==en.timeLeft&&(ei.timeLeft=en.timeLeft?em.Duration.toJSON(en.timeLeft):void 0),ei},create:en=>ei.TransferRateLimit.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransferRateLimit();return ei.limit=en.limit??new Uint8Array,ei.window=void 0!==en.window&&null!==en.window?em.Duration.fromPartial(en.window):void 0,ei.incoming=en.incoming??new Uint8Array,ei.outgoing=en.outgoing??new Uint8Array,ei.timeLeft=void 0!==en.timeLeft&&null!==en.timeLeft?em.Duration.fromPartial(en.timeLeft):void 0,ei}},ei.MessageRequest={encode:(en,ei=eu.default.Writer.create())=>(""!==en.id&&ei.uint32(10).string(en.id),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMessageRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.id=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({id:isSet(en.id)?String(en.id):""}),toJSON(en){let ei={};return void 0!==en.id&&(ei.id=en.id),ei},create:en=>ei.MessageRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseMessageRequest();return ei.id=en.id??"",ei}},ei.MessageResponse={encode:(en,ei=eu.default.Writer.create())=>(void 0!==en.message&&eg.GeneralMessage.encode(en.message,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMessageResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.message=eg.GeneralMessage.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({message:isSet(en.message)?eg.GeneralMessage.fromJSON(en.message):void 0}),toJSON(en){let ei={};return void 0!==en.message&&(ei.message=en.message?eg.GeneralMessage.toJSON(en.message):void 0),ei},create:en=>ei.MessageResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseMessageResponse();return ei.message=void 0!==en.message&&null!==en.message?eg.GeneralMessage.fromPartial(en.message):void 0,ei}};var eb=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eb.Buffer)return Uint8Array.from(eb.Buffer.from(en,"base64"));{let ei=eb.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eb.Buffer)return eb.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eb.btoa(ei.join(""))}}function isSet(en){return null!=en}eu.default.util.Long!==ed.default&&(eu.default.util.Long=ed.default,eu.default.configure())},62370:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryServiceClientImpl=ei.MsgServiceClientImpl=ei.protobufPackage=void 0;let es=ea(eo(62100)),ed=eo(84212),eu=eo(34710);ei.protobufPackage="axelar.nexus.v1beta1";let MsgServiceClientImpl=class MsgServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.nexus.v1beta1.MsgService",this.rpc=en,this.RegisterChainMaintainer=this.RegisterChainMaintainer.bind(this),this.DeregisterChainMaintainer=this.DeregisterChainMaintainer.bind(this),this.ActivateChain=this.ActivateChain.bind(this),this.DeactivateChain=this.DeactivateChain.bind(this),this.RegisterAssetFee=this.RegisterAssetFee.bind(this),this.SetTransferRateLimit=this.SetTransferRateLimit.bind(this)}RegisterChainMaintainer(en){let ei=eu.RegisterChainMaintainerRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RegisterChainMaintainer",ei);return eo.then(en=>eu.RegisterChainMaintainerResponse.decode(new es.default.Reader(en)))}DeregisterChainMaintainer(en){let ei=eu.DeregisterChainMaintainerRequest.encode(en).finish(),eo=this.rpc.request(this.service,"DeregisterChainMaintainer",ei);return eo.then(en=>eu.DeregisterChainMaintainerResponse.decode(new es.default.Reader(en)))}ActivateChain(en){let ei=eu.ActivateChainRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ActivateChain",ei);return eo.then(en=>eu.ActivateChainResponse.decode(new es.default.Reader(en)))}DeactivateChain(en){let ei=eu.DeactivateChainRequest.encode(en).finish(),eo=this.rpc.request(this.service,"DeactivateChain",ei);return eo.then(en=>eu.DeactivateChainResponse.decode(new es.default.Reader(en)))}RegisterAssetFee(en){let ei=eu.RegisterAssetFeeRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RegisterAssetFee",ei);return eo.then(en=>eu.RegisterAssetFeeResponse.decode(new es.default.Reader(en)))}SetTransferRateLimit(en){let ei=eu.SetTransferRateLimitRequest.encode(en).finish(),eo=this.rpc.request(this.service,"SetTransferRateLimit",ei);return eo.then(en=>eu.SetTransferRateLimitResponse.decode(new es.default.Reader(en)))}};ei.MsgServiceClientImpl=MsgServiceClientImpl;let QueryServiceClientImpl=class QueryServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.nexus.v1beta1.QueryService",this.rpc=en,this.LatestDepositAddress=this.LatestDepositAddress.bind(this),this.TransfersForChain=this.TransfersForChain.bind(this),this.FeeInfo=this.FeeInfo.bind(this),this.TransferFee=this.TransferFee.bind(this),this.Chains=this.Chains.bind(this),this.Assets=this.Assets.bind(this),this.ChainState=this.ChainState.bind(this),this.ChainsByAsset=this.ChainsByAsset.bind(this),this.RecipientAddress=this.RecipientAddress.bind(this),this.ChainMaintainers=this.ChainMaintainers.bind(this),this.TransferRateLimit=this.TransferRateLimit.bind(this),this.Message=this.Message.bind(this)}LatestDepositAddress(en){let ei=ed.LatestDepositAddressRequest.encode(en).finish(),eo=this.rpc.request(this.service,"LatestDepositAddress",ei);return eo.then(en=>ed.LatestDepositAddressResponse.decode(new es.default.Reader(en)))}TransfersForChain(en){let ei=ed.TransfersForChainRequest.encode(en).finish(),eo=this.rpc.request(this.service,"TransfersForChain",ei);return eo.then(en=>ed.TransfersForChainResponse.decode(new es.default.Reader(en)))}FeeInfo(en){let ei=ed.FeeInfoRequest.encode(en).finish(),eo=this.rpc.request(this.service,"FeeInfo",ei);return eo.then(en=>ed.FeeInfoResponse.decode(new es.default.Reader(en)))}TransferFee(en){let ei=ed.TransferFeeRequest.encode(en).finish(),eo=this.rpc.request(this.service,"TransferFee",ei);return eo.then(en=>ed.TransferFeeResponse.decode(new es.default.Reader(en)))}Chains(en){let ei=ed.ChainsRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Chains",ei);return eo.then(en=>ed.ChainsResponse.decode(new es.default.Reader(en)))}Assets(en){let ei=ed.AssetsRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Assets",ei);return eo.then(en=>ed.AssetsResponse.decode(new es.default.Reader(en)))}ChainState(en){let ei=ed.ChainStateRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ChainState",ei);return eo.then(en=>ed.ChainStateResponse.decode(new es.default.Reader(en)))}ChainsByAsset(en){let ei=ed.ChainsByAssetRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ChainsByAsset",ei);return eo.then(en=>ed.ChainsByAssetResponse.decode(new es.default.Reader(en)))}RecipientAddress(en){let ei=ed.RecipientAddressRequest.encode(en).finish(),eo=this.rpc.request(this.service,"RecipientAddress",ei);return eo.then(en=>ed.RecipientAddressResponse.decode(new es.default.Reader(en)))}ChainMaintainers(en){let ei=ed.ChainMaintainersRequest.encode(en).finish(),eo=this.rpc.request(this.service,"ChainMaintainers",ei);return eo.then(en=>ed.ChainMaintainersResponse.decode(new es.default.Reader(en)))}TransferRateLimit(en){let ei=ed.TransferRateLimitRequest.encode(en).finish(),eo=this.rpc.request(this.service,"TransferRateLimit",ei);return eo.then(en=>ed.TransferRateLimitResponse.decode(new es.default.Reader(en)))}Message(en){let ei=ed.MessageRequest.encode(en).finish(),eo=this.rpc.request(this.service,"Message",ei);return eo.then(en=>ed.MessageResponse.decode(new es.default.Reader(en)))}};ei.QueryServiceClientImpl=QueryServiceClientImpl},34710:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SetTransferRateLimitResponse=ei.SetTransferRateLimitRequest=ei.RegisterAssetFeeResponse=ei.RegisterAssetFeeRequest=ei.DeactivateChainResponse=ei.DeactivateChainRequest=ei.ActivateChainResponse=ei.ActivateChainRequest=ei.DeregisterChainMaintainerResponse=ei.DeregisterChainMaintainerRequest=ei.RegisterChainMaintainerResponse=ei.RegisterChainMaintainerRequest=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100)),eu=eo(61039),ef=eo(61099),ep=eo(45743);
2function createBaseRegisterChainMaintainerRequest(){return{sender:new Uint8Array,chains:[]}}function createBaseRegisterChainMaintainerResponse(){return{}}function createBaseDeregisterChainMaintainerRequest(){return{sender:new Uint8Array,chains:[]}}function createBaseDeregisterChainMaintainerResponse(){return{}}function createBaseActivateChainRequest(){return{sender:new Uint8Array,chains:[]}}function createBaseActivateChainResponse(){return{}}function createBaseDeactivateChainRequest(){return{sender:new Uint8Array,chains:[]}}function createBaseDeactivateChainResponse(){return{}}function createBaseRegisterAssetFeeRequest(){return{sender:new Uint8Array,feeInfo:void 0}}function createBaseRegisterAssetFeeResponse(){return{}}function createBaseSetTransferRateLimitRequest(){return{sender:new Uint8Array,chain:"",limit:void 0,window:void 0}}function createBaseSetTransferRateLimitResponse(){return{}}ei.protobufPackage="axelar.nexus.v1beta1",ei.RegisterChainMaintainerRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),en.chains))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterChainMaintainerRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chains.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chains:Array.isArray(en?.chains)?en.chains.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),en.chains?ei.chains=en.chains.map(en=>en):ei.chains=[],ei},create:en=>ei.RegisterChainMaintainerRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterChainMaintainerRequest();return ei.sender=en.sender??new Uint8Array,ei.chains=en.chains?.map(en=>en)||[],ei}},ei.RegisterChainMaintainerResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterChainMaintainerResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RegisterChainMaintainerResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterChainMaintainerResponse();return ei}},ei.DeregisterChainMaintainerRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),en.chains))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDeregisterChainMaintainerRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chains.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chains:Array.isArray(en?.chains)?en.chains.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),en.chains?ei.chains=en.chains.map(en=>en):ei.chains=[],ei},create:en=>ei.DeregisterChainMaintainerRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseDeregisterChainMaintainerRequest();return ei.sender=en.sender??new Uint8Array,ei.chains=en.chains?.map(en=>en)||[],ei}},ei.DeregisterChainMaintainerResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDeregisterChainMaintainerResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.DeregisterChainMaintainerResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseDeregisterChainMaintainerResponse();return ei}},ei.ActivateChainRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==e
2n.sender.length&&ei.uint32(10).bytes(en.sender),en.chains))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseActivateChainRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chains.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chains:Array.isArray(en?.chains)?en.chains.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),en.chains?ei.chains=en.chains.map(en=>en):ei.chains=[],ei},create:en=>ei.ActivateChainRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseActivateChainRequest();return ei.sender=en.sender??new Uint8Array,ei.chains=en.chains?.map(en=>en)||[],ei}},ei.ActivateChainResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseActivateChainResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ActivateChainResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseActivateChainResponse();return ei}},ei.DeactivateChainRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),en.chains))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDeactivateChainRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chains.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chains:Array.isArray(en?.chains)?en.chains.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),en.chains?ei.chains=en.chains.map(en=>en):ei.chains=[],ei},create:en=>ei.DeactivateChainRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseDeactivateChainRequest();return ei.sender=en.sender??new Uint8Array,ei.chains=en.chains?.map(en=>en)||[],ei}},ei.DeactivateChainResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDeactivateChainResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.DeactivateChainResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseDeactivateChainResponse();return ei}},ei.RegisterAssetFeeRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),void 0!==en.feeInfo&&ep.FeeInfo.encode(en.feeInfo,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterAssetFeeRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.feeInfo=ep.FeeInfo.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,feeInfo:isSet(en.feeInfo)?ep.FeeInfo.fromJSON(en.feeInfo):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.feeInfo&&(ei.feeInfo=en.feeInfo?ep.FeeInfo.toJSON(en.feeInfo):void 0),ei},create:en=>ei.RegisterAssetFeeRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterAssetFeeRequest();return ei.sender=en.sender??new Uint8Array,ei.feeInfo=void 0!==en.feeInfo&&null!==en.feeInfo?ep.FeeInfo.fromPartial(en.feeInfo):void 0,ei}},ei.RegisterAssetFeeResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterAssetFeeResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RegisterAssetFeeResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterAssetFeeResponse();return ei}},ei.SetTransferRateLimitRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),void 0!==en.limit&&eu.Coin.encode(en.limit,ei.uint32(26).fork()).ldelim(),void 0!==en.window&&ef.Duration.encode(en.window,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSetTransferRateLimitRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.limit=eu.Coin.decode(eo,eo.uint32());break;case 4:es.window=ef.Duration.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",limit:isSet(en.limit)?eu.Coin.fromJSON(en.limit):void 0,window:isSet(en.window)?ef.Duration.fromJSON(en.window):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.limit&&(ei.limit=en.limit?eu.Coin.toJSON(en.limit):void 0),void 0!==en.window&&(ei.window=en.window?ef.Duration.toJSON(en.window):void 0),ei},create:en=>ei.SetTransferRateLimitRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseSetTransferRateLimitRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.limit=void 0!==en.limit&&null!==en.limit?eu.Coin.fromPartial(en.limit):void 0,ei.window=void 0!==en.window&&null!==en.window?ef.Duration.fromPartial(en.window):void 0,ei}},ei.SetTransferRateLimitResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSetTransferRateLimitResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.SetTransferRateLimitResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseSetTransferRateLimitResponse();return ei}};var em=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(em.Buffer)return Uint8Array.from(em.Buffer.from(en,"base64"));{let ei=em.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(em.Buffer)return em.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),em.btoa(ei.join(""))}}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},23071:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.TransferEpoch=ei.RateLimit=ei.LinkedAddresses=ei.ChainState=ei.MaintainerState=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100)),eu=eo(61039),ef=eo(61099),ep=eo(89505),em=eo(45743);function createBaseMaintainerState(){return{address:new Uint8Array,missingVotes:void 0,incorrectVotes:void 0,chain:""}}function createBaseChainState(){return{chain:void 0,activated:!1,assets:[],maintainerStates:[]}}function createBaseLinkedAddresses(){return{depositAddress:void 0,recipientAddress:void 0}}function createBaseRateLimit(){return{chain:"",limit:void 0,window:void 0}}function createBaseTransferEpoch(){return{chain:"",amount:void 0,epoch:es.default.UZERO,direction:0}}ei.protobufPackage="axelar.nexus.v1beta1",ei.MaintainerState={encode:(en,ei=ed.default.Writer.create())=>(0!==en.address.length&&ei.uint32(10).bytes(en.address),void 0!==en.missingVotes&&ep.Bitmap.encode(en.missingVotes,ei.uint32(18).fork()).ldelim(),void 0!==en.incorrectVotes&&ep.Bitmap.encode(en.incorrectVotes,ei.uint32(26).fork()).ldelim(),""!==en.chain&&ei.uint32(34).string(en.chain),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMaintainerState();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.bytes();break;case 2:es.missingVotes=ep.Bitmap.decode(eo,eo.uint32());break;case 3:es.incorrectVotes=ep.Bitmap.decode(eo,eo.uint32());break;case 4:es.chain=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:isSet(en.address)?bytesFromBase64(en.address):new Uint8Array,missingVotes:isSet(en.missingVotes)?ep.Bitmap.fromJSON(en.missingVotes):void 0,incorrectVotes:isSet(en.incorrectVotes)?ep.Bitmap.fromJSON(en.incorrectVotes):void 0,chain:isSet(en.chain)?String(en.chain):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=base64FromBytes(void 0!==en.address?en.address:new Uint8Array)),void 0!==en.missingVotes&&(ei.missingVotes=en.missingVotes?ep.Bitmap.toJSON(en.missingVotes):void 0),void 0!==en.incorrectVotes&&(ei.incorrectVotes=en.incorrectVotes?ep.Bitmap.toJSON(en.incorrectVotes):void 0),void 0!==en.chain&&(ei.chain=en.chain),ei},create:en=>ei.MaintainerState.fromPartial(en??{}),fromPartial(en){let ei=createBaseMaintainerState();return ei.address=en.address??new Uint8Array,ei.missingVotes=void 0!==en.missingVotes&&null!==en.missingVotes?ep.Bitmap.fromPartial(en.missingVotes):void 0,ei.incorrectVotes=void 0!==en.incorrectVotes&&null!==en.incorrectVotes?ep.Bitmap.fromPartial(en.incorrectVotes):void 0,ei.chain=en.chain??"",ei}},ei.ChainState={encode(en,eo=ed.default.Writer.create()){for(let ei of(void 0!==en.chain&&em.Chain.encode(en.chain,eo.uint32(10).fork()).ldelim(),!0===en.activated&&eo.uint32(24).bool(en.activated),en.assets))em.Asset.encode(ei,eo.uint32(42).fork()).ldelim();for(let ea of en.maintainerStates)ei.MaintainerState.encode(ea,eo.uint32(50).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,eu=createBaseChainState();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:eu.chain=em.Chain.decode(ea,ea.uint32());break;case 3:eu.activated=ea.bool();break;case 5:eu.assets.push(em.Asset.decode(ea,ea.uint32()));break;case 6:eu.maintainerStates.push(ei.MaintainerState.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return eu},fromJSON:en=>({chain:isSet(en.chain)?em.Chain.fromJSON(en.chain):void 0,activated:!!isSet(en.activated)&&!!en.activated,assets:Array.isArray(en?.assets)?en.assets.map(en=>em.Asset.fromJSON(en)):[],maintainerStates:Array.isArray(en?.maintainerStates)?en.maintainerStates.map(e
2n=>ei.MaintainerState.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.chain&&(eo.chain=en.chain?em.Chain.toJSON(en.chain):void 0),void 0!==en.activated&&(eo.activated=en.activated),en.assets?eo.assets=en.assets.map(en=>en?em.Asset.toJSON(en):void 0):eo.assets=[],en.maintainerStates?eo.maintainerStates=en.maintainerStates.map(en=>en?ei.MaintainerState.toJSON(en):void 0):eo.maintainerStates=[],eo},create:en=>ei.ChainState.fromPartial(en??{}),fromPartial(en){let eo=createBaseChainState();return eo.chain=void 0!==en.chain&&null!==en.chain?em.Chain.fromPartial(en.chain):void 0,eo.activated=en.activated??!1,eo.assets=en.assets?.map(en=>em.Asset.fromPartial(en))||[],eo.maintainerStates=en.maintainerStates?.map(en=>ei.MaintainerState.fromPartial(en))||[],eo}},ei.LinkedAddresses={encode:(en,ei=ed.default.Writer.create())=>(void 0!==en.depositAddress&&em.CrossChainAddress.encode(en.depositAddress,ei.uint32(10).fork()).ldelim(),void 0!==en.recipientAddress&&em.CrossChainAddress.encode(en.recipientAddress,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLinkedAddresses();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.depositAddress=em.CrossChainAddress.decode(eo,eo.uint32());break;case 2:es.recipientAddress=em.CrossChainAddress.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({depositAddress:isSet(en.depositAddress)?em.CrossChainAddress.fromJSON(en.depositAddress):void 0,recipientAddress:isSet(en.recipientAddress)?em.CrossChainAddress.fromJSON(en.recipientAddress):void 0}),toJSON(en){let ei={};return void 0!==en.depositAddress&&(ei.depositAddress=en.depositAddress?em.CrossChainAddress.toJSON(en.depositAddress):void 0),void 0!==en.recipientAddress&&(ei.recipientAddress=en.recipientAddress?em.CrossChainAddress.toJSON(en.recipientAddress):void 0),ei},create:en=>ei.LinkedAddresses.fromPartial(en??{}),fromPartial(en){let ei=createBaseLinkedAddresses();return ei.depositAddress=void 0!==en.depositAddress&&null!==en.depositAddress?em.CrossChainAddress.fromPartial(en.depositAddress):void 0,ei.recipientAddress=void 0!==en.recipientAddress&&null!==en.recipientAddress?em.CrossChainAddress.fromPartial(en.recipientAddress):void 0,ei}},ei.RateLimit={encode:(en,ei=ed.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),void 0!==en.limit&&eu.Coin.encode(en.limit,ei.uint32(18).fork()).ldelim(),void 0!==en.window&&ef.Duration.encode(en.window,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRateLimit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.limit=eu.Coin.decode(eo,eo.uint32());break;case 3:es.window=ef.Duration.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",limit:isSet(en.limit)?eu.Coin.fromJSON(en.limit):void 0,window:isSet(en.window)?ef.Duration.fromJSON(en.window):void 0}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.limit&&(ei.limit=en.limit?eu.Coin.toJSON(en.limit):void 0),void 0!==en.window&&(ei.window=en.window?ef.Duration.toJSON(en.window):void 0),ei},create:en=>ei.RateLimit.fromPartial(en??{}),fromPartial(en){let ei=createBaseRateLimit();return ei.chain=en.chain??"",ei.limit=void 0!==en.limit&&null!==en.limit?eu.Coin.fromPartial(en.limit):void 0,ei.window=void 0!==en.window&&null!==en.window?ef.Duration.fromPartial(en.window):void 0,ei}},ei.TransferEpoch={encode:(en,ei=ed.default.Writer.create())=>(""!==en.chain&&ei.uint32(10).string(en.chain),void 0!==en.amount&&eu.Coin.encode(en.amount,ei.uint32(18).fork()).ldelim(),en.epoch.isZero()||ei.uint32(24).uint64(en.epoch),0!==en.direction&&ei.uint32(32).int32(en.direction),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTransferEpoch();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.amount=eu.Coin.decode(eo,eo.uint32());break;case 3:es.epoch=eo.uint64();break;case 4:es.direction=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",amount:isSet(en.amount)?eu.Coin.fromJSON(en.amount):void 0,epoch:isSet(en.epoch)?es.default.fromValue(en.epoch):es.default.UZERO,direction:isSet(en.direction)?(0,em.transferDirectionFromJSON)(en.direction):0}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.amount&&(ei.amount=en.amount?eu.Coin.toJSON(en.amount):void 0),void 0!==en.epoch&&(ei.epoch=(en.epoch||es.default.UZERO).toString()),void 0!==en.direction&&(ei.direction=(0,em.transferDirectionToJSON)(en.direction)),ei},create:en=>ei.TransferEpoch.fromPartial(en??{}),fromPartial(en){let ei=createBaseTransferEpoch();return ei.chain=en.chain??"",ei.amount=void 0!==en.amount&&null!==en.amount?eu.Coin.fromPartial(en.amount):void 0,ei.epoch=void 0!==en.epoch&&null!==en.epoch?es.default.fromValue(en.epoch):es.default.UZERO,ei.direction=en.direction??0,ei}};var eg=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eg.Buffer)return Uint8Array.from(eg.Buffer.from(en,"base64"));{let ei=eg.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eg.Buffer)return eg.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eg.btoa(ei.join(""))}}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},34855:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Snapshot_ParticipantsEntry=ei.Snapshot=ei.Participant=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100)),eu=eo(79637);function createBaseParticipant(){return{address:new Uint8Array,weight:new Uint8Array}}function createBaseSnapshot(){return{timestamp:void 0,height:es.default.ZERO,participants:{},bondedWeight:new Uint8Array}}function createBaseSnapshot_ParticipantsEntry(){return{key:"",value:void 0}}ei.protobufPackage="axelar.snapshot.exported.v1beta1",ei.Participant={encode:(en,ei=ed.default.Writer.create())=>(0!==en.address.length&&ei.uint32(10).bytes(en.address),0!==en.weight.length&&ei.uint32(18).bytes(en.weight),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParticipant();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.bytes();break;case 2:es.weight=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:isSet(en.address)?bytesFromBase64(en.address):new Uint8Array,weight:isSet(en.weight)?bytesFromBase64(en.weight):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=base64FromBytes(void 0!==en.address?en.address:new Uint8Array)),void 0!==en.weight&&(ei.weight=base64FromBytes(void 0!==en.weight?en.weight:new Uint8Array)),ei},create:en=>ei.Participant.fromPartial(en??{}),fromPartial(en){let ei=createBaseParticipant();return ei.address=en.address??new Uint8Array,ei.weight=en.weight??new Uint8Array,ei}},ei.Snapshot={encode:(en,eo=ed.default.Writer.create())=>(void 0!==en.timestamp&&eu.Timestamp.encode(toTimestamp(en.timestamp),eo.uint32(18).fork()).ldelim(),en.height.isZero()||eo.uint32(24).int64(en.height),Object.entries(en.participants).forEach(([en,ea])=>{ei.Snapshot_ParticipantsEntry.encode({key:en,value:ea},eo.uint32(66).fork()).ldelim()}),0!==en.bondedWeight.length&&eo.uint32(74).bytes(en.bondedWeight),eo),decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ef=createBaseSnapshot();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 2:ef.timestamp=fromTimestamp(eu.Timestamp.decode(ea,ea.uint32()));break;case 3:ef.height=ea.int64();break;case 8:let eo=ei.Snapshot_ParticipantsEntry.decode(ea,ea.uint32());void 0!==eo.value&&(ef.participants[eo.key]=eo.value);break;case 9:ef.bondedWeight=ea.bytes();break;default:ea.skipType(7&en)}}return ef},fromJSON:en=>({timestamp:isSet(en.timestamp)?fromJsonTimestamp(en.timestamp):void 0,height:isSet(en.height)?es.default.fromValue(en.height):es.default.ZERO,participants:isObject(en.participants)?Object.entries(en.participants).reduce((en,[eo,ea])=>(en[eo]=ei.Participant.fromJSON(ea),en),{}):{},bondedWeight:isSet(en.bondedWeight)?bytesFromBase64(en.bondedWeight):new Uint8Array}),toJSON(en){let eo={};return void 0!==en.timestamp&&(eo.timestamp=en.timestamp.toISOString()),void 0!==en.height&&(eo.height=(en.height||es.default.ZERO).toString()),eo.participants={},en.participants&&Object.entries(en.participants).forEach(([en,ea])=>{eo.participants[en]=ei.Participant.toJSON(ea)}),void 0!==en.bondedWeight&&(eo.bondedWeight=base64FromBytes(void 0!==en.bondedWeight?en.bondedWeight:new Uint8Array)),eo},create:en=>ei.Snapshot.fromPartial(en??{}),fromPartial(en){let eo=createBaseSnapshot();return eo.timestamp=en.timestamp??void 0,eo.height=void 0!==en.height&&null!==en.height?es.default.fromValue(en.height):es.default.ZERO,eo.participants=Object.entries(en.participants??{}).reduce((en,[eo,ea])=>(void 0!==ea&&(en[eo]=ei.Participant.fromPartial(ea)),en),{}),eo.bondedWeight=en.bondedWeight??new Uint8Array,eo}},ei.Snapshot_ParticipantsEntry={encode:(en,eo=ed.default.Writer.create())=>(""!==en.key&&eo.uint32(10).string(en.key),void 0!==en.value&&ei.Participant.encode(en.value,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,eu=createBaseSnapshot_ParticipantsEntry();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:eu.key=ea.string();break;case 2:eu.value=ei.Participant.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return eu},fromJSON:en=>({key:isSet(en.key)?String(en.key):"",value:isSet(en.value)?ei.Participant.fromJSON(en.value):void 0}),toJSON(en){let eo={};return void 0!==en.key&&(eo.key=en.key),void 0!==en.value&&(eo.value=en.value?ei.Participant.toJSON(en.value):void 0),eo},create:en=>ei.Snapshot_ParticipantsEntry.fromPartial(en??{}),fromPartial(en){let eo=createBaseSnapshot_ParticipantsEntry();return eo.key=en.key??"",eo.value=void 0!==en.value&&null!==en.value?ei.Participant.fromPartial(en.value):void 0,eo}};var ef=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(ef.Buffer)return Uint8Array.from(ef.Buffer.from(en,"base64"));{let ei=ef.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(ef.Buffer)return ef.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),ef.btoa(ei.join(""))}}function toTimestamp(en){let ei=numberToLong(en.getTime()/1e3),eo=en.getTime()%1e3*1e6;return{seconds:ei,nanos:eo}}function fromTimestamp(en){let ei=1e3*en.seconds.toNumber();return ei+=en.nanos/1e6,new Date(ei)}function fromJsonTimestamp(en){return en instanceof Date?en:"string"==typeof en?new Date(en):fromTimestamp(eu.Timestamp.fromJSON(en))}function numberToLong(en){return es.default.fromNumber(en)}function isObject(en){return"object"==typeof en&&null!==en}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},99058:function(en,ei,eo){"use strict";var ea,es,ed,eu=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SigKeyPair=ei.KeyRequirement=ei.keyShareDistributionPolicyToJSON=ei.keyShareDistributionPolicyFromJSON=ei.KeyShareDistributionPolicy=ei.keyTypeToJSON=ei.keyTypeFromJSON=ei.KeyType=ei.keyRoleToJSON=ei.keyRoleFromJSON=ei.KeyRole=ei.protobufPackage=void 0;let ef=eu(eo(41583)),ep=eu(eo(62100)),em=eo(52265);function keyRoleFromJSON(en){switch(en){case 0:case"KEY_ROLE_UNSPECIFIED":return ea.KEY_ROLE_UNSPECIFIED;case 1:case"KEY_ROLE_MASTER_KEY":return ea.KEY_ROLE_MASTER_KEY;case 2:case"KEY_ROLE_SECONDARY_KEY":return ea.KEY_ROLE_SECONDARY_KEY;case 3:case"KEY_ROLE_EXTERNAL_KEY":return ea.KEY_ROLE_EXTERNAL_KEY;default:return ea.UNRECOGNIZED}}function keyRoleToJSON(en){switch(en){case ea.KEY_ROLE_UNSPECIFIED:return"KEY_ROLE_UNSPECIFIED";case ea.KEY_ROLE_MASTER_KEY:return"KEY_ROLE_MASTER_KEY";case ea.KEY_ROLE_SECONDARY_KEY:return"KEY_ROLE_SECONDARY_KEY";case ea.KEY_ROLE_EXTERNAL_KEY:return"KEY_ROLE_EXTERNAL_KEY";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function keyTypeFromJSON(en){switch(en){case 0:case"KEY_TYPE_UNSPECIFIED":return es.KEY_TYPE_UNSPECIFIED;case 1:case"KEY_TYPE_NONE":return es.KEY_TYPE_NONE;case 2:case"KEY_TYPE_THRESHOLD":return es.KEY_TYPE_THRESHOLD;case 3:case"KEY_TYPE_MULTISIG":return es.KEY_TYPE_MULTISIG;default:return es.UNRECOGNIZED}}function keyTypeToJSON(en){switch(en){case es.KEY_TYPE_UNSPECIFIED:return"KEY_TYPE_UNSPECIFIED";case es.KEY_TYPE_NONE:return"KEY_TYPE_NONE";case es.KEY_TYPE_THRESHOLD:return"KEY_TYPE_THRESHOLD";case es.KEY_TYPE_MULTISIG:return"KEY_TYPE_MULTISIG";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function keyShareDistributionPolicyFromJSON(en){switch(en){case 0:case"KEY_SHARE_DISTRIBUTION_POLICY_UNSPECIFIED":return ed.KEY_SHARE_DISTRIBUTION_POLICY_UNSPECIFIED;case 1:case"KEY_SHARE_DISTRIBUTION_POLICY_WEIGHTED_BY_STAKE":return ed.KEY_SHARE_DISTRIBUTION_POLICY_WEIGHTED_BY_STAKE;case 2:case"KEY_SHARE_DISTRIBUTION_POLICY_ONE_PER_VALIDATOR":return ed.KEY_SHARE_DISTRIBUTION_POLICY_ONE_PER_VALIDATOR;default:return ed.UNRECOGNIZED}}function keyShareDistributionPolicyToJSON(en){switch(en){case ed.KEY_SHARE_DISTRIBUTION_POLICY_UNSPECIFIED:return"KEY_SHARE_DISTRIBUTION_POLICY_UNSPECIFIED";case ed.KEY_SHARE_DISTRIBUTION_POLICY_WEIGHTED_BY_STAKE:return"KEY_SHARE_DISTRIBUTION_POLICY_WEIGHTED_BY_STAKE";case ed.KEY_SHARE_DISTRIBUTION_POLICY_ONE_PER_VALIDATOR:return"KEY_SHARE_DISTRIBUTION_POLICY_ONE_PER_VALIDATOR";case ed.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseKeyRequirement(){return{keyRole:0,keyType:0,minKeygenThreshold:void 0,safetyThreshold:void 0,keyShareDistributionPolicy:0,maxTotalShareCount:ef.default.ZERO,minTotalShareCount:ef.default.ZERO,keygenVotingThreshold:void 0,signVotingThreshold:void 0,keygenTimeout:ef.default.ZERO,signTimeout:ef.default.ZERO}}function createBaseSigKeyPair(){return{pubKey:new Uint8Array,signature:new Uint8Array}}ei.protobufPackage="axelar.tss.exported.v1beta1",function(en){en[en.KEY_ROLE_UNSPECIFIED=0]="KEY_ROLE_UNSPECIFIED",en[en.KEY_ROLE_MASTER_KEY=1]="KEY_ROLE_MASTER_KEY",en[en.KEY_ROLE_SECONDARY_KEY=2]="KEY_ROLE_SECONDARY_KEY",en[en.KEY_ROLE_EXTERNAL_KEY=3]="KEY_ROLE_EXTERNAL_KEY",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.KeyRole||(ei.KeyRole={})),ei.keyRoleFromJSON=keyRoleFromJSON,ei.keyRoleToJSON=keyRoleToJSON,function(en){en[en.KEY_TYPE_UNSPECIFIED=0]="KEY_TYPE_UNSPECIFIED",en[en.KEY_TYPE_NONE=1]="KEY_TYPE_NONE",en[en.KEY_TYPE_THRESHOLD=2]="KEY_TYPE_THRESHOLD",en[en.KEY_TYPE_MULTISIG=3]="KEY_TYPE_MULTISIG",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.KeyType||(ei.KeyType={})),ei.keyTypeFromJSON=keyTypeFromJSON,ei.keyTypeToJSON=keyTypeToJSON,function(en){en[en.KEY_SHARE_DISTRIBUTION_POLICY_UNSPECIFIED=0]="KEY_SHARE_DISTRIBUTION_POLICY_UNSPECIFIED",en[en.KEY_SHARE_DISTRIBUTION_POLICY_WEIGHTED_BY_STAKE=1]="KEY_SHARE_DISTRIBUTION_POLICY_WEIGHTED_BY_STAKE",en[en.KEY_SHARE_DISTRIBUTION_POLICY_ONE_PER_VALIDATOR=2]="KEY_SHARE_DISTRIBUTION_POLICY_ONE_PER_VALIDATOR",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}
2(ed=ei.KeyShareDistributionPolicy||(ei.KeyShareDistributionPolicy={})),ei.keyShareDistributionPolicyFromJSON=keyShareDistributionPolicyFromJSON,ei.keyShareDistributionPolicyToJSON=keyShareDistributionPolicyToJSON,ei.KeyRequirement={encode:(en,ei=ep.default.Writer.create())=>(0!==en.keyRole&&ei.uint32(8).int32(en.keyRole),0!==en.keyType&&ei.uint32(16).int32(en.keyType),void 0!==en.minKeygenThreshold&&em.Threshold.encode(en.minKeygenThreshold,ei.uint32(26).fork()).ldelim(),void 0!==en.safetyThreshold&&em.Threshold.encode(en.safetyThreshold,ei.uint32(34).fork()).ldelim(),0!==en.keyShareDistributionPolicy&&ei.uint32(40).int32(en.keyShareDistributionPolicy),en.maxTotalShareCount.isZero()||ei.uint32(48).int64(en.maxTotalShareCount),en.minTotalShareCount.isZero()||ei.uint32(56).int64(en.minTotalShareCount),void 0!==en.keygenVotingThreshold&&em.Threshold.encode(en.keygenVotingThreshold,ei.uint32(66).fork()).ldelim(),void 0!==en.signVotingThreshold&&em.Threshold.encode(en.signVotingThreshold,ei.uint32(74).fork()).ldelim(),en.keygenTimeout.isZero()||ei.uint32(80).int64(en.keygenTimeout),en.signTimeout.isZero()||ei.uint32(88).int64(en.signTimeout),ei),decode(en,ei){let eo=en instanceof ep.default.Reader?en:new ep.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeyRequirement();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.keyRole=eo.int32();break;case 2:es.keyType=eo.int32();break;case 3:es.minKeygenThreshold=em.Threshold.decode(eo,eo.uint32());break;case 4:es.safetyThreshold=em.Threshold.decode(eo,eo.uint32());break;case 5:es.keyShareDistributionPolicy=eo.int32();break;case 6:es.maxTotalShareCount=eo.int64();break;case 7:es.minTotalShareCount=eo.int64();break;case 8:es.keygenVotingThreshold=em.Threshold.decode(eo,eo.uint32());break;case 9:es.signVotingThreshold=em.Threshold.decode(eo,eo.uint32());break;case 10:es.keygenTimeout=eo.int64();break;case 11:es.signTimeout=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({keyRole:isSet(en.keyRole)?keyRoleFromJSON(en.keyRole):0,keyType:isSet(en.keyType)?keyTypeFromJSON(en.keyType):0,minKeygenThreshold:isSet(en.minKeygenThreshold)?em.Threshold.fromJSON(en.minKeygenThreshold):void 0,safetyThreshold:isSet(en.safetyThreshold)?em.Threshold.fromJSON(en.safetyThreshold):void 0,keyShareDistributionPolicy:isSet(en.keyShareDistributionPolicy)?keyShareDistributionPolicyFromJSON(en.keyShareDistributionPolicy):0,maxTotalShareCount:isSet(en.maxTotalShareCount)?ef.default.fromValue(en.maxTotalShareCount):ef.default.ZERO,minTotalShareCount:isSet(en.minTotalShareCount)?ef.default.fromValue(en.minTotalShareCount):ef.default.ZERO,keygenVotingThreshold:isSet(en.keygenVotingThreshold)?em.Threshold.fromJSON(en.keygenVotingThreshold):void 0,signVotingThreshold:isSet(en.signVotingThreshold)?em.Threshold.fromJSON(en.signVotingThreshold):void 0,keygenTimeout:isSet(en.keygenTimeout)?ef.default.fromValue(en.keygenTimeout):ef.default.ZERO,signTimeout:isSet(en.signTimeout)?ef.default.fromValue(en.signTimeout):ef.default.ZERO}),toJSON(en){let ei={};return void 0!==en.keyRole&&(ei.keyRole=keyRoleToJSON(en.keyRole)),void 0!==en.keyType&&(ei.keyType=keyTypeToJSON(en.keyType)),void 0!==en.minKeygenThreshold&&(ei.minKeygenThreshold=en.minKeygenThreshold?em.Threshold.toJSON(en.minKeygenThreshold):void 0),void 0!==en.safetyThreshold&&(ei.safetyThreshold=en.safetyThreshold?em.Threshold.toJSON(en.safetyThreshold):void 0),void 0!==en.keyShareDistributionPolicy&&(ei.keyShareDistributionPolicy=keyShareDistributionPolicyToJSON(en.keyShareDistributionPolicy)),void 0!==en.maxTotalShareCount&&(ei.maxTotalShareCount=(en.maxTotalShareCount||ef.default.ZERO).toString()),void 0!==en.minTotalShareCount&&(ei.minTotalShareCount=(en.minTotalShareCount||ef.default.ZERO).toString()),void 0!==en.keygenVotingThreshold&&(ei.keygenVotingThreshold=en.keygenVotingThreshold?em.Threshold.toJSON(en.keygenVotingThreshold):void 0),void 0!==en.signVotingThreshold&&(ei.signVotingThreshold=en.signVotingThreshold?em.Threshold.toJSON(en.signVotingThreshold):void 0),void 0!==en.keygenTimeout&&(ei.keygenTimeout=(en.keygenTimeout||ef.default.ZERO).toString()),void 0!==en.signTimeout&&(ei.signTimeout=(en.signTimeout||ef.default.ZERO).toString()),ei},create:en=>ei.KeyRequirement.fromPartial(en??{}
2),fromPartial(en){let ei=createBaseKeyRequirement();return ei.keyRole=en.keyRole??0,ei.keyType=en.keyType??0,ei.minKeygenThreshold=void 0!==en.minKeygenThreshold&&null!==en.minKeygenThreshold?em.Threshold.fromPartial(en.minKeygenThreshold):void 0,ei.safetyThreshold=void 0!==en.safetyThreshold&&null!==en.safetyThreshold?em.Threshold.fromPartial(en.safetyThreshold):void 0,ei.keyShareDistributionPolicy=en.keyShareDistributionPolicy??0,ei.maxTotalShareCount=void 0!==en.maxTotalShareCount&&null!==en.maxTotalShareCount?ef.default.fromValue(en.maxTotalShareCount):ef.default.ZERO,ei.minTotalShareCount=void 0!==en.minTotalShareCount&&null!==en.minTotalShareCount?ef.default.fromValue(en.minTotalShareCount):ef.default.ZERO,ei.keygenVotingThreshold=void 0!==en.keygenVotingThreshold&&null!==en.keygenVotingThreshold?em.Threshold.fromPartial(en.keygenVotingThreshold):void 0,ei.signVotingThreshold=void 0!==en.signVotingThreshold&&null!==en.signVotingThreshold?em.Threshold.fromPartial(en.signVotingThreshold):void 0,ei.keygenTimeout=void 0!==en.keygenTimeout&&null!==en.keygenTimeout?ef.default.fromValue(en.keygenTimeout):ef.default.ZERO,ei.signTimeout=void 0!==en.signTimeout&&null!==en.signTimeout?ef.default.fromValue(en.signTimeout):ef.default.ZERO,ei}},ei.SigKeyPair={encode:(en,ei=ep.default.Writer.create())=>(0!==en.pubKey.length&&ei.uint32(10).bytes(en.pubKey),0!==en.signature.length&&ei.uint32(18).bytes(en.signature),ei),decode(en,ei){let eo=en instanceof ep.default.Reader?en:new ep.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSigKeyPair();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.pubKey=eo.bytes();break;case 2:es.signature=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({pubKey:isSet(en.pubKey)?bytesFromBase64(en.pubKey):new Uint8Array,signature:isSet(en.signature)?bytesFromBase64(en.signature):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.pubKey&&(ei.pubKey=base64FromBytes(void 0!==en.pubKey?en.pubKey:new Uint8Array)),void 0!==en.signature&&(ei.signature=base64FromBytes(void 0!==en.signature?en.signature:new Uint8Array)),ei},create:en=>ei.SigKeyPair.fromPartial(en??{}),fromPartial(en){let ei=createBaseSigKeyPair();return ei.pubKey=en.pubKey??new Uint8Array,ei.signature=en.signature??new Uint8Array,ei}};var eg=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eg.Buffer)return Uint8Array.from(eg.Buffer.from(en,"base64"));{let ei=eg.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eg.Buffer)return eg.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eg.btoa(ei.join(""))}}function isSet(en){return null!=en}ep.default.util.Long!==ef.default&&(ep.default.util.Long=ef.default,ep.default.configure())},59864:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SignInit=ei.KeygenInit=ei.TrafficOut=ei.TrafficIn=ei.MessageOut_CriminalList_Criminal=ei.MessageOut_CriminalList=ei.MessageOut_SignResult=ei.MessageOut_KeygenResult=ei.MessageOut=ei.MessageIn=ei.KeygenOutput=ei.RecoverResponse=ei.RecoverRequest=ei.messageOut_CriminalList_Criminal_CrimeTypeToJSON=ei.messageOut_CriminalList_Criminal_CrimeTypeFromJSON=ei.MessageOut_CriminalList_Criminal_CrimeType=ei.recoverResponse_ResponseToJSON=ei.recoverResponse_ResponseFromJSON=ei.RecoverResponse_Response=ei.protobufPackage=void 0;let eu=ed(eo(41583)),ef=ed(eo(62100));function recoverResponse_ResponseFromJSON(en){switch(en){case 0:case"RESPONSE_UNSPECIFIED":return ea.RESPONSE_UNSPECIFIED;case 1:case"RESPONSE_SUCCESS":return ea.RESPONSE_SUCCESS;case 2:case"RESPONSE_FAIL":return ea.RESPONSE_FAIL;default:return ea.UNRECOGNIZED}}function recoverResponse_ResponseToJSON(en){switch(en){case ea.RESPONSE_UNSPECIFIED:return"RESPONSE_UNSPECIFIED";case ea.RESPONSE_SUCCESS:return"RESPONSE_SUCCESS";case ea.RESPONSE_FAIL:return"RESPONSE_FAIL";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function messageOut_CriminalList_Criminal_CrimeTypeFromJSON(en){switch(en){case 0:case"CRIME_TYPE_UNSPECIFIED":return es.CRIME_TYPE_UNSPECIFIED;case 1:case"CRIME_TYPE_NON_MALICIOUS":return es.CRIME_TYPE_NON_MALICIOUS;case 2:case"CRIME_TYPE_MALICIOUS":return es.CRIME_TYPE_MALICIOUS;default:return es.UNRECOGNIZED}}function messageOut_CriminalList_Criminal_CrimeTypeToJSON(en){switch(en){case es.CRIME_TYPE_UNSPECIFIED:return"CRIME_TYPE_UNSPECIFIED";case es.CRIME_TYPE_NON_MALICIOUS:return"CRIME_TYPE_NON_MALICIOUS";case es.CRIME_TYPE_MALICIOUS:return"CRIME_TYPE_MALICIOUS";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}
2function createBaseRecoverRequest(){return{keygenInit:void 0,keygenOutput:void 0}}function createBaseRecoverResponse(){return{response:0}}function createBaseKeygenOutput(){return{pubKey:new Uint8Array,groupRecoverInfo:new Uint8Array,privateRecoverInfo:new Uint8Array}}function createBaseMessageIn(){return{keygenInit:void 0,signInit:void 0,traffic:void 0,abort:void 0}}function createBaseMessageOut(){return{traffic:void 0,keygenResult:void 0,signResult:void 0,needRecover:void 0}}function createBaseMessageOut_KeygenResult(){return{data:void 0,criminals:void 0}}function createBaseMessageOut_SignResult(){return{signature:void 0,criminals:void 0}}function createBaseMessageOut_CriminalList(){return{criminals:[]}}function createBaseMessageOut_CriminalList_Criminal(){return{partyUid:"",crimeType:0}}function createBaseTrafficIn(){return{fromPartyUid:"",payload:new Uint8Array,isBroadcast:!1}}function createBaseTrafficOut(){return{toPartyUid:"",payload:new Uint8Array,isBroadcast:!1}}function createBaseKeygenInit(){return{newKeyUid:"",partyUids:[],partyShareCounts:[],myPartyIndex:0,threshold:0}}function createBaseSignInit(){return{newSigUid:"",keyUid:"",partyUids:[],messageToSign:new Uint8Array}}ei.protobufPackage="axelar.tss.tofnd.v1beta1",function(en){en[en.RESPONSE_UNSPECIFIED=0]="RESPONSE_UNSPECIFIED",en[en.RESPONSE_SUCCESS=1]="RESPONSE_SUCCESS",en[en.RESPONSE_FAIL=2]="RESPONSE_FAIL",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.RecoverResponse_Response||(ei.RecoverResponse_Response={})),ei.recoverResponse_ResponseFromJSON=recoverResponse_ResponseFromJSON,ei.recoverResponse_ResponseToJSON=recoverResponse_ResponseToJSON,function(en){en[en.CRIME_TYPE_UNSPECIFIED=0]="CRIME_TYPE_UNSPECIFIED",en[en.CRIME_TYPE_NON_MALICIOUS=1]="CRIME_TYPE_NON_MALICIOUS",en[en.CRIME_TYPE_MALICIOUS=2]="CRIME_TYPE_MALICIOUS",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.MessageOut_CriminalList_Criminal_CrimeType||(ei.MessageOut_CriminalList_Criminal_CrimeType={})),ei.messageOut_CriminalList_Criminal_CrimeTypeFromJSON=messageOut_CriminalList_Criminal_CrimeTypeFromJSON,ei.messageOut_CriminalList_Criminal_CrimeTypeToJSON=messageOut_CriminalList_Criminal_CrimeTypeToJSON,ei.RecoverRequest={encode:(en,eo=ef.default.Writer.create())=>(void 0!==en.keygenInit&&ei.KeygenInit.encode(en.keygenInit,eo.uint32(10).fork()).ldelim(),void 0!==en.keygenOutput&&ei.KeygenOutput.encode(en.keygenOutput,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseRecoverRequest
2();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.keygenInit=ei.KeygenInit.decode(ea,ea.uint32());break;case 2:ed.keygenOutput=ei.KeygenOutput.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({keygenInit:isSet(en.keygenInit)?ei.KeygenInit.fromJSON(en.keygenInit):void 0,keygenOutput:isSet(en.keygenOutput)?ei.KeygenOutput.fromJSON(en.keygenOutput):void 0}),toJSON(en){let eo={};return void 0!==en.keygenInit&&(eo.keygenInit=en.keygenInit?ei.KeygenInit.toJSON(en.keygenInit):void 0),void 0!==en.keygenOutput&&(eo.keygenOutput=en.keygenOutput?ei.KeygenOutput.toJSON(en.keygenOutput):void 0),eo},create:en=>ei.RecoverRequest.fromPartial(en??{}),fromPartial(en){let eo=createBaseRecoverRequest();return eo.keygenInit=void 0!==en.keygenInit&&null!==en.keygenInit?ei.KeygenInit.fromPartial(en.keygenInit):void 0,eo.keygenOutput=void 0!==en.keygenOutput&&null!==en.keygenOutput?ei.KeygenOutput.fromPartial(en.keygenOutput):void 0,eo}},ei.RecoverResponse={encode:(en,ei=ef.default.Writer.create())=>(0!==en.response&&ei.uint32(8).int32(en.response),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRecoverResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.response=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({response:isSet(en.response)?recoverResponse_ResponseFromJSON(en.response):0}),toJSON(en){let ei={};return void 0!==en.response&&(ei.response=recoverResponse_ResponseToJSON(en.response)),ei},create:en=>ei.RecoverResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRecoverResponse();return ei.response=en.response??0,ei}},ei.KeygenOutput={encode:(en,ei=ef.default.Writer.create())=>(0!==en.pubKey.length&&ei.uint32(10).bytes(en.pubKey),0!==en.groupRecoverInfo.length&&ei.uint32(18).bytes(en.groupRecoverInfo),0!==en.privateRecoverInfo.length&&ei.uint32(26).bytes(en.privateRecoverInfo),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeygenOutput();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.pubKey=eo.bytes();break;case 2:es.groupRecoverInfo=eo.bytes();break;case 3:es.privateRecoverInfo=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({pubKey:isSet(en.pubKey)?bytesFromBase64(en.pubKey):new Uint8Array,groupRecoverInfo:isSet(en.groupRecoverInfo)?bytesFromBase64(en.groupRecoverInfo):new Uint8Array,privateRecoverInfo:isSet(en.privateRecoverInfo)?bytesFromBase64(en.privateRecoverInfo):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.pubKey&&(ei.pubKey=base64FromBytes(void 0!==en.pubKey?en.pubKey:new Uint8Array)),void 0!==en.groupRecoverInfo&&(ei.groupRecoverInfo=base64FromBytes(void 0!==en.groupRecoverInfo?en.groupRecoverInfo:new Uint8Array)),void 0!==en.privateRecoverInfo&&(ei.privateRecoverInfo=base64FromBytes(void 0!==en.privateRecoverInfo?en.privateRecoverInfo:new Uint8Array)),ei},create:en=>ei.KeygenOutput.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeygenOutput();return ei.pubKey=en.pubKey??new Uint8Array,ei.groupRecoverInfo=en.groupRecoverInfo??new Uint8Array,ei.privateRecoverInfo=en.privateRecoverInfo??new Uint8Array,ei}},ei.MessageIn={encode:(en,eo=ef.default.Writer.create())=>(void 0!==en.keygenInit&&ei.KeygenInit.encode(en.keygenInit,eo.uint32(10).fork()).ldelim(),void 0!==en.signInit&&ei.SignInit.encode(en.signInit,eo.uint32(18).fork()).ldelim(),void 0!==en.traffic&&ei.TrafficIn.encode(en.traffic,eo.uint32(26).fork()).ldelim(),void 0!==en.abort&&eo.uint32(32).bool(en.abort),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseMessageIn();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.keygenInit=ei.KeygenInit.decode(ea,ea.uint32());break;case 2:ed.signInit=ei.SignInit.decode(ea,ea.uint32());break;case 3:ed.traffic=ei.TrafficIn.decode(ea,ea.uint32());break;case 4:ed.abort=ea.bool();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({keygenInit:isSet(en.keygenInit)?ei.KeygenInit.fromJSON(en.keygenInit):void 0,signInit:isSet(en.sign
2Init)?ei.SignInit.fromJSON(en.signInit):void 0,traffic:isSet(en.traffic)?ei.TrafficIn.fromJSON(en.traffic):void 0,abort:isSet(en.abort)?!!en.abort:void 0}),toJSON(en){let eo={};return void 0!==en.keygenInit&&(eo.keygenInit=en.keygenInit?ei.KeygenInit.toJSON(en.keygenInit):void 0),void 0!==en.signInit&&(eo.signInit=en.signInit?ei.SignInit.toJSON(en.signInit):void 0),void 0!==en.traffic&&(eo.traffic=en.traffic?ei.TrafficIn.toJSON(en.traffic):void 0),void 0!==en.abort&&(eo.abort=en.abort),eo},create:en=>ei.MessageIn.fromPartial(en??{}),fromPartial(en){let eo=createBaseMessageIn();return eo.keygenInit=void 0!==en.keygenInit&&null!==en.keygenInit?ei.KeygenInit.fromPartial(en.keygenInit):void 0,eo.signInit=void 0!==en.signInit&&null!==en.signInit?ei.SignInit.fromPartial(en.signInit):void 0,eo.traffic=void 0!==en.traffic&&null!==en.traffic?ei.TrafficIn.fromPartial(en.traffic):void 0,eo.abort=en.abort??void 0,eo}},ei.MessageOut={encode:(en,eo=ef.default.Writer.create())=>(void 0!==en.traffic&&ei.TrafficOut.encode(en.traffic,eo.uint32(10).fork()).ldelim(),void 0!==en.keygenResult&&ei.MessageOut_KeygenResult.encode(en.keygenResult,eo.uint32(18).fork()).ldelim(),void 0!==en.signResult&&ei.MessageOut_SignResult.encode(en.signResult,eo.uint32(26).fork()).ldelim(),void 0!==en.needRecover&&eo.uint32(32).bool(en.needRecover),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseMessageOut();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.traffic=ei.TrafficOut.decode(ea,ea.uint32());break;case 2:ed.keygenResult=ei.MessageOut_KeygenResult.decode(ea,ea.uint32());break;case 3:ed.signResult=ei.MessageOut_SignResult.decode(ea,ea.uint32());break;case 4:ed.needRecover=ea.bool();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({traffic:isSet(en.traffic)?ei.TrafficOut.fromJSON(en.traffic):void 0,keygenResult:isSet(en.keygenResult)?ei.MessageOut_KeygenResult.fromJSON(en.keygenResult):void 0,signResult:isSet(en.signResult)?ei.MessageOut_SignResult.fromJSON(en.signResult):void 0,needRecover:isSet(en.needRecover)?!!en.needRecover:void 0}),toJSON(en){let eo={};return void 0!==en.traffic&&(eo.traffic=en.traffic?ei.TrafficOut.toJSON(en.traffic):void 0),void 0!==en.keygenResult&&(eo.keygenResult=en.keygenResult?ei.MessageOut_KeygenResult.toJSON(en.keygenResult):void 0),void 0!==en.signResult&&(eo.signResult=en.signResult?ei.MessageOut_SignResult.toJSON(en.signResult):void 0),void 0!==en.needRecover&&(eo.needRecover=en.needRecover),eo},create:en=>ei.MessageOut.fromPartial(en??{}),fromPartial(en){let eo=createBaseMessageOut();return eo.traffic=void 0!==en.traffic&&null!==en.traffic?ei.TrafficOut.fromPartial(en.traffic):void 0,eo.keygenResult=void 0!==en.keygenResult&&null!==en.keygenResult?ei.MessageOut_KeygenResult.fromPartial(en.keygenResult):void 0,eo.signResult=void 0!==en.signResult&&null!==en.signResult?ei.MessageOut_SignResult.fromPartial(en.signResult):void 0,eo.needRecover=en.needRecover??void 0,eo}},ei.MessageOut_KeygenResult={encode:(en,eo=ef.default.Writer.create())=>(void 0!==en.data&&ei.KeygenOutput.encode(en.data,eo.uint32(10).fork()).ldelim(),void 0!==en.criminals&&ei.MessageOut_CriminalList.encode(en.criminals,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseMessageOut_KeygenResult();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.data=ei.KeygenOutput.decode(ea,ea.uint32());break;case 2:ed.criminals=ei.MessageOut_CriminalList.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({data:isSet(en.data)?ei.KeygenOutput.fromJSON(en.data):void 0,criminals:isSet(en.criminals)?ei.MessageOut_CriminalList.fromJSON(en.criminals):void 0}),toJSON(en){let eo={};return void 0!==en.data&&(eo.data=en.data?ei.KeygenOutput.toJSON(en.data):void 0),void 0!==en.criminals&&(eo.criminals=en.criminals?ei.MessageOut_CriminalList.toJSON(en.criminals):void 0),eo},create:en=>ei.MessageOut_KeygenResult.fromPartial(en??{}),fromPartial(en){let eo=createBaseMessageOut_KeygenResult();return eo.data=void 0!==en.data&&null!==en.data?ei.KeygenOutput.fromPartial(en.data):void 0,eo.criminals=void 0!==en.criminals&&null!==en.criminals?ei.MessageOut_CriminalList.fromPartial(en.criminals):void 0,eo}},ei.MessageOut_SignResult={encode:(en,eo=ef.default.Writer.create())=>(void 0!==en.signature&&eo.uint32(10).bytes(en.signature),void 0!==en.criminals&&ei.MessageOut_CriminalList.encode(en.criminals,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseMessageOut_SignResult();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.signature=ea.bytes();break;case 2:ed.criminals=ei.MessageOut_CriminalList.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({signature:isSet(en.signature)?bytesFromBase64(en.signature):void 0,criminals:isSet(en.criminals)?ei.MessageOut_CriminalList.fromJSON(en.criminals):void 0}),toJSON(en){let eo={};return void 0!==en.signature&&(eo.signature=void 0!==en.signature?base64FromBytes(en.signature):void 0),void 0!==en.criminals&&(eo.criminals=en.criminals?ei.MessageOut_CriminalList.toJSON(en.criminals):void 0),eo},create:en=>ei.MessageOut_SignResult.fromPartial(en??{}),fromPartial(en){let eo=createBaseMessageOut_SignResult();return eo.signature=en.signature??void 0,eo.criminals=void 0!==en.criminals&&null!==en.criminals?ei.MessageOut_CriminalList.fromPartial(en.criminals):void 0,eo}},ei.MessageOut_CriminalList={encode(en,eo=ef.default.Writer.create()){for(let ea of en.criminals)ei.MessageOut_CriminalList_Criminal.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ef.default.Reader?en:new ef.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseMessageOut_CriminalList();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.criminals.push(ei.MessageOut_CriminalList_Criminal.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({criminals:Array.isArray(en?.criminals)?en.criminals.map(en=>ei.MessageOut_CriminalList_Criminal.fromJSON(en)):[]}),toJSON(en){let eo={};return en.criminals?eo.criminals=en.criminals.map(en=>en?ei.MessageOut_CriminalList_Criminal.toJSON(en):void 0):eo.criminals=[],eo},create:en=>ei.MessageOut_CriminalList.fromPartial(en??{}),fromPartial(en){let eo=createBaseMessageOut_CriminalList();return eo.criminals=en.criminals?.map(en=>ei.MessageOut_CriminalList_Criminal.fromPartial(en))||[],eo}},ei.MessageOut_CriminalList_Criminal={encode:(en,ei=ef.default.Writer.create())=>(""!==en.partyUid&&ei.uint32(10).string(en.partyUid),0!==en.crimeType&&ei.uint32(16).int32(en.crimeType),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMessageOut_CriminalList_Criminal();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.partyUid=eo.string();break;case 2:es.crimeType=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({partyUid:isSet(en.partyUid)?String(en.partyUid):"",crimeType:isSet(en.crimeType)?messageOut_CriminalList_Criminal_CrimeTypeFromJSON(en.crimeType):0}),toJSON(en){let ei={};return void 0!==en.partyUid&&(ei.partyUid=en.partyUid),void 0!==en.crimeType&&(ei.crimeType=messageOut_CriminalList_Criminal_CrimeTypeToJSON(en.crimeType)),ei},create:en=>ei.MessageOut_CriminalList_Criminal.fromPartial(en??{}),fromPartial(en){let ei=createBaseMessageOut_CriminalList_Criminal();return ei.partyUid=en.partyUid??"",ei.crimeType=en.crimeType??0,ei}},ei.TrafficIn={encode:(en,ei=ef.default.Writer.create())=>(""!==en.fromPartyUid&&ei.uint32(10).string(en.fromPartyUid),0!==en.payload.length&&ei.uint32(18).bytes(en.payload),!0===en.isBroadcast&&ei.uint32(24).bool(en.isBroadcast),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTrafficIn();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.fromPartyUid=eo.string();break;case 2:es.payload=eo.bytes();break;case 3:es.isBroadcast=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({fromPartyUid:isSet(en.fromPartyUid)?String(en.fromPartyUid):"",payload:isSet(en.payload)?bytesFromBase64(en.payload):new Uint8Array,isBroadcast:!!isSet(en.isBroadcast)&&!!en.isBroadcast}),toJSON(en){let ei={};return void 0!==en.fromPartyUid&&(ei.fromPartyUid=en.fromPartyUid),void 0!==en.payload&&(ei.payload=base64FromBytes(void 0!==en.payload?en.payload:new Uint8Array)),void 0!==en.isBroadcast&&(ei.isBroadcast=en.isBroadcast),ei},create:en=>ei.TrafficIn.fromPartial(en??{}),fromPartial(en){let ei=createBaseTrafficIn();return ei.fromPartyUid=en.fromPartyUid??"",ei.payload=en.payload??new Uint8Array,ei.isBroadcast=en.isBroadcast??!1,ei}},ei.TrafficOut={encode:(en,ei=ef.default.Writer.create())=>(""!==en.toPartyUid&&ei.uint32(10).string(en.toPartyUid),0!==en.payload.length&&ei.uint32(18).bytes(en.payload),!0===en.isBroadcast&&ei.uint32(24).bool(en.isBroadcast),ei),decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTrafficOut();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.toPartyUid=eo.string();break;case 2:es.payload=eo.bytes();break;case 3:es.isBroadcast=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({toPartyUid:isSet(en.toPartyUid)?String(en.toPartyUid):"",payload:isSet(en.payload)?bytesFromBase64(en.payload):new Uint8Array,isBroadcast:!!isSet(en.isBroadcast)&&!!en.isBroadcast}),toJSON(en){let ei={};return void 0!==en.toPartyUid&&(ei.toPartyUid=en.toPartyUid),void 0!==en.payload&&(ei.payload=base64FromBytes(void 0!==en.payload?en.payload:new Uint8Array)),void 0!==en.isBroadcast&&(ei.isBroadcast=en.isBroadcast),ei},create:en=>ei.TrafficOut.fromPartial(en??{}),fromPartial(en){let ei=createBaseTrafficOut();return ei.toPartyUid=en.toPartyUid??"",ei.payload=en.payload??new Uint8Array,ei.isBroadcast=en.isBroadcast??!1,ei}},ei.KeygenInit={encode(en,ei=ef.default.Writer.create()){for(let eo of(""!==en.newKeyUid&&ei.uint32(10).string(en.newKeyUid),en.partyUids))ei.uint32(18).string(eo);for(let eo of(ei.uint32(42).fork(),en.partyShareCounts))ei.uint32(eo);return ei.ldelim(),0!==en.myPartyIndex&&ei.uint32(24).uint32(en.myPartyIndex),0!==en.threshold&&ei.uint32(32).uint32(en.threshold),ei},decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeygenInit(
2);for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.newKeyUid=eo.string();break;case 2:es.partyUids.push(eo.string());break;case 5:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.partyShareCounts.push(eo.uint32())}else es.partyShareCounts.push(eo.uint32());break;case 3:es.myPartyIndex=eo.uint32();break;case 4:es.threshold=eo.uint32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({newKeyUid:isSet(en.newKeyUid)?String(en.newKeyUid):"",partyUids:Array.isArray(en?.partyUids)?en.partyUids.map(en=>String(en)):[],partyShareCounts:Array.isArray(en?.partyShareCounts)?en.partyShareCounts.map(en=>Number(en)):[],myPartyIndex:isSet(en.myPartyIndex)?Number(en.myPartyIndex):0,threshold:isSet(en.threshold)?Number(en.threshold):0}),toJSON(en){let ei={};return void 0!==en.newKeyUid&&(ei.newKeyUid=en.newKeyUid),en.partyUids?ei.partyUids=en.partyUids.map(en=>en):ei.partyUids=[],en.partyShareCounts?ei.partyShareCounts=en.partyShareCounts.map(en=>Math.round(en)):ei.partyShareCounts=[],void 0!==en.myPartyIndex&&(ei.myPartyIndex=Math.round(en.myPartyIndex)),void 0!==en.threshold&&(ei.threshold=Math.round(en.threshold)),ei},create:en=>ei.KeygenInit.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeygenInit();return ei.newKeyUid=en.newKeyUid??"",ei.partyUids=en.partyUids?.map(en=>en)||[],ei.partyShareCounts=en.partyShareCounts?.map(en=>en)||[],ei.myPartyIndex=en.myPartyIndex??0,ei.threshold=en.threshold??0,ei}},ei.SignInit={encode(en,ei=ef.default.Writer.create()){for(let eo of(""!==en.newSigUid&&ei.uint32(10).string(en.newSigUid),""!==en.keyUid&&ei.uint32(18).string(en.keyUid),en.partyUids))ei.uint32(26).string(eo);return 0!==en.messageToSign.length&&ei.uint32(34).bytes(en.messageToSign),ei},decode(en,ei){let eo=en instanceof ef.default.Reader?en:new ef.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSignInit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.newSigUid=eo.string();break;case 2:es.keyUid=eo.string();break;case 3:es.partyUids.push(eo.string());break;case 4:es.messageToSign=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({newSigUid:isSet(en.newSigUid)?String(en.newSigUid):"",keyUid:isSet(en.keyUid)?String(en.keyUid):"",partyUids:Array.isArray(en?.partyUids)?en.partyUids.map(en=>String(en)):[],messageToSign:isSet(en.messageToSign)?bytesFromBase64(en.messageToSign):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.newSigUid&&(ei.newSigUid=en.newSigUid),void 0!==en.keyUid&&(ei.keyUid=en.keyUid),en.partyUids?ei.partyUids=en.partyUids.map(en=>en):ei.partyUids=[],void 0!==en.messageToSign&&(ei.messageToSign=base64FromBytes(void 0!==en.messageToSign?en.messageToSign:new Uint8Array)),ei},create:en=>ei.SignInit.fromPartial(en??{}),fromPartial(en){let ei=createBaseSignInit();return ei.newSigUid=en.newSigUid??"",ei.keyUid=en.keyUid??"",ei.partyUids=en.partyUids?.map(en=>en)||[],ei.messageToSign=en.messageToSign??new Uint8Array,ei}};var ep=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(ep.Buffer)return Uint8Array.from(ep.Buffer.from(en,"base64"));{let ei=ep.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(ep.Buffer)return ep.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),ep.btoa(ei.join(""))}}function isSet(en){return null!=en}ef.default.util.Long!==eu.default&&(ef.default.util.Long=eu.default,ef.default.configure())},4479:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryServiceClientImpl=ei.MsgServiceClientImpl=ei.protobufPackage=void 0;let es=ea(eo(62100)),ed=eo(12022);ei.protobufPackage="axelar.tss.v1beta1";let MsgServiceClientImpl=class MsgServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.tss.v1beta1.MsgService",this.rpc=en,this.HeartBeat=this.HeartBeat.bind(this)}HeartBeat(en){let ei=ed.HeartBeatRequest.encode(en).finish(),eo=this.rpc.request(this.service,"HeartBeat",ei);return eo.then(en=>ed.HeartBeatResponse.decode(new es.default.Reader(en)))}};ei.MsgServiceClientImpl=MsgServiceClientImpl;let QueryServiceClientImpl=class QueryServiceClientImpl{constructor(en,ei){this.service=ei?.service||"axelar.tss.v1beta1.QueryService",this.rpc=en}};ei.QueryServiceClientImpl=QueryServiceClientImpl},12022:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SubmitMultisigSignaturesResponse=ei.SubmitMultisigSignaturesRequest=ei.SubmitMultisigPubKeysResponse=ei.SubmitMultisigPubKeysRequest=ei.RegisterExternalKeysResponse=ei.RegisterExternalKeysRequest_ExternalKey=ei.RegisterExternalKeysRequest=ei.HeartBeatResponse=ei.HeartBeatRequest=ei.VoteSigResponse=ei.VoteSigRequest=ei.VotePubKeyResponse=ei.VotePubKeyRequest=ei.ProcessSignTrafficResponse=ei.ProcessSignTrafficRequest=ei.ProcessKeygenTrafficResponse=ei.ProcessKeygenTrafficRequest=ei.RotateKeyResponse=ei.RotateKeyRequest=ei.StartKeygenResponse=ei.StartKeygenRequest=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100)),eu=eo(83763),ef=eo(99058),ep=eo(59864),em=eo(33322);function createBaseStartKeygenRequest(){return{sender:"",keyInfo:void 0}}function createBaseStartKeygenResponse(){return{}}function createBaseRotateKeyRequest(){return{sender:new Uint8Array,chain:"",keyRole:0,keyId:""}}function createBaseRotateKeyResponse(){return{}}function createBaseProcessKeygenTrafficRequest(){return{sender:new Uint8Array,sessionId:"",payload:void 0}}function createBaseProcessKeygenTrafficResponse(){return{}}function createBaseProcessSignTrafficRequest(){return{sender:new Uint8Array,sessionId:"",payload:void 0}}function createBaseProcessSignTrafficResponse(){return{}}function createBaseVotePubKeyRequest(){return{sender:new Uint8Array,pollKey:void 0,result:void 0}}function createBaseVotePubKeyResponse(){return{log:""}}function createBaseVoteSigRequest(){return{sender:new Uint8Array,pollKey:void 0,result:void 0}}function createBaseVoteSigResponse(){return{log:""}}function createBaseHeartBeatRequest(){return{sender:new Uint8Array,keyIds:[]}}function createBaseHeartBeatResponse(){return{}}function createBaseRegisterExternalKeysRequest(){return{sender:new Uint8Array,chain:"",externalKeys:[]}}function createBaseRegisterExternalKeysRequest_ExternalKey(){return{id:"",pubKey:new Uint8Array}}function createBaseRegisterExternalKeysResponse(){return{}}function createBaseSubmitMultisigPubKeysRequest(){return{sender:new Uint8Array,keyId:"",sigKeyPairs:[]}}function createBaseSubmitMultisigPubKeysResponse(){return{}}function createBaseSubmitMultisigSignaturesRequest(){return{sender:new Uint8Array,sigId:"",signatures:[]}}function createBaseSubmitMultisigSignaturesResponse(){return{}}ei.protobufPackage="axelar.tss.v1beta1",ei.StartKeygenRequest={encode:(en,ei=ed.default.Writer.create())=>(""!==en.sender&&ei.uint32(10).string(en.sender),void 0!==en.keyInfo&&em.KeyInfo.encode(en.keyInfo,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseStartKeygenRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.string();break;case 2:es.keyInfo=em.KeyInfo.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?String(en.sender):"",keyInfo:isSet(en.keyInfo)?em.KeyInfo.fromJSON(en.keyInfo):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=en.sender),void 0!==en.keyInfo&&(ei.keyInfo=en.keyInfo?em.KeyInfo.toJSON(en.keyInfo):void 0),ei},create:en=>ei.StartKeygenRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseStartKeygenRequest();return ei.sender=en.sender??"",ei.keyInfo=void 0!==en.keyInfo&&null!==en.keyInfo?em.KeyInfo.fromPartial(en.keyInfo):void 0,ei}},ei.StartKeygenResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseStartKeygenResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.StartKeygenResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseStartKeygenResponse();return ei}},ei.RotateKeyRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.chain&&ei.uint32(18).string(en.chain),0!==en.keyRole&&ei.uint32(24).int32(en.keyRole),""!==en.keyId&&ei.uint32(34).string(en.keyId),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRotateKeyRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.chain=eo.string();break;case 3:es.keyRole=eo.int32();break;case 4:es.keyId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",keyRole:isSet(en.keyRole)?(0,ef.keyRoleFromJSON)(en.keyRole):0,keyId:isSet(en.keyId)?String(en.keyId):""}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(ei.chain=en.chain),void 0!==en.keyRole&&(ei.keyRole=(0,ef.keyRoleToJSON)(en.keyRole)),void 0!==en.keyId&&(ei.keyId=en.keyId),ei},create:en=>ei.RotateKeyRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseRotateKeyRequest();return ei.sender=en.sender??new Uint8Array,ei.chain=en.chain??"",ei.keyRole=en.keyRole??0,ei.keyId=en.keyId??"",ei}},ei.RotateKeyResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRotateKeyResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RotateKeyResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRotateKeyResponse();return ei}},ei.ProcessKeygenTrafficRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.sessionId&&ei.uint32(18).string(en.sessionId),void 0!==en.payload&&ep.TrafficOut.encode(en.payload,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseProcessKeygenTrafficRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.sessionId=eo.string();break;case 3:es.payload=ep.TrafficOut.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,sessionId:isSet(en.sessionId)?String(en.sessionId):"",payload:isSet(en.payload)?ep.TrafficOut.fromJSON(en.payload):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.sessionId&&(ei.sessionId=en.sessionId),void 0!==en.payload&&(ei.payload=en.payload?ep.TrafficOut.toJSON(en.payload):void 0),ei},create:en=>ei.ProcessKeygenTrafficRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseProcessKeygenTrafficRequest();return ei.sender=en.sender??new Uint8Array,ei.sessionId=en.sessionId??"",ei.payload=void 0!==en.payload&&null!==en.payload?ep.TrafficOut.fromPartial(en.payload):void 0,ei}},ei.ProcessKeygenTrafficResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseProcessKeygenTrafficResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ProcessKeygenTrafficResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseProcessKeygenTrafficResponse();return ei}},ei.ProcessSignTrafficRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.sessionId&&ei.uint32(18).string(en.sessionId),void 0!==en.payload&&ep.TrafficOut.encode(en.payload,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseProcessSignTrafficRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.sessionId=eo.string();break;case 3:es.payload=ep.TrafficOut.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,sessionId:isSet(en.sessionId)?String(en.sessionId):"",payload:isSet(en.payload)?ep.TrafficOut.fromJSON(en.payload):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.sessionId&&(ei.sessionId=en.sessionId),void 0!==en.payload&&(ei.payload=en.payload?ep.TrafficOut.toJSON(en.payload):void 0),ei},create:en=>ei.ProcessSignTrafficRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseProcessSignTrafficRequest();return ei.sender=en.sender??new Uint8Array,ei.sessionId=en.sessionId??"",ei.payload=void 0!==en.payload&&null!==en.payload?ep.TrafficOut.fromPartial(en.payload):void 0,ei}},ei.ProcessSignTrafficResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseProcessSignTrafficResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.ProcessSignTrafficResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseProcessSignTrafficResponse();return ei}},ei.VotePubKeyRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),void 0!==en.pollKey&&eu.PollKey.encode(en.pollKey,ei.uint32(18).fork()).ldelim(),void 0!==en.result&&ep.MessageOut_KeygenResult.encode(en.result,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseVotePubKeyRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.pollKey=eu.PollKey.decode(eo,eo.uint32());break;case 3:es.result=ep.MessageOut_KeygenResult.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,pollKey:isSet(en.pollKey)?eu.PollKey.fromJSON(en.pollKey):void 0,result:isSet(en.result)?ep.MessageOut_KeygenResult.fromJSON(en.result):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.pollKey&&(ei.pollKey=en.pollKey?eu.PollKey.toJSON(en.pollKey):void 0),void 0!==en.result&&(ei.result=en.result?ep.MessageOut_KeygenResult.toJSON(en.result):void 0),ei},create:en=>ei.VotePubKeyRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseVotePubKeyRequest();return ei.sender=en.sender??new Uint8Array,ei.pollKey=void 0!==en.pollKey&&null!==en.pollKey?eu.PollKey.fromPartial(en.pollKey):void 0,ei.result=void 0!==en.result&&null!==en.result?ep.MessageOut_KeygenResult.fromPartial(en.result):void 0,ei}},ei.VotePubKeyResponse={encode:(en,ei=ed.default.Writer.create())=>(""!==en.log&&ei.uint32(10).string(en.log),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseVotePubKeyResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.log=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({log:isSet(en.log)?String(en.log):""}),toJSON(en){let ei={};return void 0!==en.log&&(ei.log=en.log),ei},create:en=>ei.VotePubKeyResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseVotePubKeyResponse();return ei.log=en.log??"",ei}},ei.VoteSigRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),void 0!==en.pollKey&&eu.PollKey.encode(en.pollKey,ei.uint32(18).fork()).ldelim(),void 0!==en.result&&ep.MessageOut_SignResult.encode(en.result,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseVoteSigRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.pollKey=eu.PollKey.decode(eo,eo.uint32());break;case 3:es.result=ep.MessageOut_SignResult.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,pollKey:isSet(en.pollKey)?eu.PollKey.fromJSON(en.pollKey):void 0,result:isSet(en.result)?ep.MessageOut_SignResult.fromJSON(en.result):void 0}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.pollKey&&(ei.pollKey=en.pollKey?eu.PollKey.toJSON(en.pollKey):void 0),void 0!==en.result&&(ei.result=en.result?ep.MessageOut_SignResult.toJSON(en.result):void 0),ei},create:en=>ei.VoteSigRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseVoteSigRequest();return ei.sender=en.sender??new Uint8Array,ei.pollKey=void 0!==en.pollKey&&null!==en.pollKey?eu.PollKey.fromPartial(en.pollKey):void 0,ei.result=void 0!==en.result&&null!==en.result?ep.MessageOut_SignResult.fromPartial(en.result):void 0,ei}},ei.VoteSigResponse={encode:(en,ei=ed.default.Writer.create())=>(""!==en.log&&ei.uint32(10).string(en.log),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseVoteSigResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.log=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({log:isSet(en.log)?String(en.log):""}),toJSON(en){let ei={};return void 0!==en.log&&(ei.log=en.log),ei},create:en=>ei.VoteSigResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseVoteSigResponse();return ei.log=en.log??"",ei}},ei.HeartBeatRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==e
2n.sender.length&&ei.uint32(10).bytes(en.sender),en.keyIds))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseHeartBeatRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.keyIds.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,keyIds:Array.isArray(en?.keyIds)?en.keyIds.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),en.keyIds?ei.keyIds=en.keyIds.map(en=>en):ei.keyIds=[],ei},create:en=>ei.HeartBeatRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseHeartBeatRequest();return ei.sender=en.sender??new Uint8Array,ei.keyIds=en.keyIds?.map(en=>en)||[],ei}},ei.HeartBeatResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseHeartBeatResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.HeartBeatResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseHeartBeatResponse();return ei}},ei.RegisterExternalKeysRequest={encode(en,eo=ed.default.Writer.create()){for(let ea of(0!==en.sender.length&&eo.uint32(10).bytes(en.sender),""!==en.chain&&eo.uint32(18).string(en.chain),en.externalKeys))ei.RegisterExternalKeysRequest_ExternalKey.encode(ea,eo.uint32(26).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,eu=createBaseRegisterExternalKeysRequest();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:eu.sender=ea.bytes();break;case 2:eu.chain=ea.string();break;case 3:eu.externalKeys.push(ei.RegisterExternalKeysRequest_ExternalKey.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return eu},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,chain:isSet(en.chain)?String(en.chain):"",externalKeys:Array.isArray(en?.externalKeys)?en.externalKeys.map(en=>ei.RegisterExternalKeysRequest_ExternalKey.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.sender&&(eo.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.chain&&(eo.chain=en.chain),en.externalKeys?eo.externalKeys=en.externalKeys.map(en=>en?ei.RegisterExternalKeysRequest_ExternalKey.toJSON(en):void 0):eo.externalKeys=[],eo},create:en=>ei.RegisterExternalKeysRequest.fromPartial(en??{}),fromPartial(en){let eo=createBaseRegisterExternalKeysRequest();return eo.sender=en.sender??new Uint8Array,eo.chain=en.chain??"",eo.externalKeys=en.externalKeys?.map(en=>ei.RegisterExternalKeysRequest_ExternalKey.fromPartial(en))||[],eo}},ei.RegisterExternalKeysRequest_ExternalKey={encode:(en,ei=ed.default.Writer.create())=>(""!==en.id&&ei.uint32(10).string(en.id),0!==en.pubKey.length&&ei.uint32(18).bytes(en.pubKey),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterExternalKeysRequest_ExternalKey();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.id=eo.string();break;case 2:es.pubKey=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({id:isSet(en.id)?String(en.id):"",pubKey:isSet(en.pubKey)?bytesFromBase64(en.pubKey):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.id&&(ei.id=en.id),void 0!==en.pubKey&&(ei.pubKey=base64FromBytes(void 0!==en.pubKey?en.pubKey:new Uint8Array)),ei},create:en=>ei.RegisterExternalKeysRequest_ExternalKey.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterExternalKeysRequest_ExternalKey();return ei.id=en.id??"",ei.pubKey=en.pubKey??new Uint8Array,ei}},ei.RegisterExternalKeysResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRegisterExternalKeysResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.RegisterExternalKeysResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseRegisterExternalKeysResponse();return ei}},ei.SubmitMultisigPubKeysRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==e
2n.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.keyId&&ei.uint32(18).string(en.keyId),en.sigKeyPairs))ef.SigKeyPair.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSubmitMultisigPubKeysRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.keyId=eo.string();break;case 3:es.sigKeyPairs.push(ef.SigKeyPair.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,keyId:isSet(en.keyId)?String(en.keyId):"",sigKeyPairs:Array.isArray(en?.sigKeyPairs)?en.sigKeyPairs.map(en=>ef.SigKeyPair.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.keyId&&(ei.keyId=en.keyId),en.sigKeyPairs?ei.sigKeyPairs=en.sigKeyPairs.map(en=>en?ef.SigKeyPair.toJSON(en):void 0):ei.sigKeyPairs=[],ei},create:en=>ei.SubmitMultisigPubKeysRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseSubmitMultisigPubKeysRequest();return ei.sender=en.sender??new Uint8Array,ei.keyId=en.keyId??"",ei.sigKeyPairs=en.sigKeyPairs?.map(en=>ef.SigKeyPair.fromPartial(en))||[],ei}},ei.SubmitMultisigPubKeysResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSubmitMultisigPubKeysResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.SubmitMultisigPubKeysResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseSubmitMultisigPubKeysResponse();return ei}},ei.SubmitMultisigSignaturesRequest={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==en.sender.length&&ei.uint32(10).bytes(en.sender),""!==en.sigId&&ei.uint32(18).string(en.sigId),en.signatures))ei.uint32(26).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSubmitMultisigSignaturesRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sender=eo.bytes();break;case 2:es.sigId=eo.string();break;case 3:es.signatures.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sender:isSet(en.sender)?bytesFromBase64(en.sender):new Uint8Array,sigId:isSet(en.sigId)?String(en.sigId):"",signatures:Array.isArray(en?.signatures)?en.signatures.map(en=>bytesFromBase64(en)):[]}),toJSON(en){let ei={};return void 0!==en.sender&&(ei.sender=base64FromBytes(void 0!==en.sender?en.sender:new Uint8Array)),void 0!==en.sigId&&(ei.sigId=en.sigId),en.signatures?ei.signatures=en.signatures.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.signatures=[],ei},create:en=>ei.SubmitMultisigSignaturesRequest.fromPartial(en??{}),fromPartial(en){let ei=createBaseSubmitMultisigSignaturesRequest();return ei.sender=en.sender??new Uint8Array,ei.sigId=en.sigId??"",ei.signatures=en.signatures?.map(en=>en)||[],ei}},ei.SubmitMultisigSignaturesResponse={encode:(en,ei=ed.default.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSubmitMultisigSignaturesResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},create:en=>ei.SubmitMultisigSignaturesResponse.fromPartial(en??{}),fromPartial(en){let ei=createBaseSubmitMultisigSignaturesResponse();return ei}};var eg=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eg.Buffer)return Uint8Array.from(eg.Buffer.from(en,"base64"));{let ei=eg.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eg.Buffer)return eg.Buffer.from(en).toString("base64");{let ei=[];
2return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eg.btoa(ei.join(""))}}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},33322:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValidatorStatus=ei.ExternalKeys=ei.KeyRecoveryInfo_PrivateEntry=ei.KeyRecoveryInfo=ei.MultisigInfo_Info=ei.MultisigInfo=ei.KeyInfo=ei.KeygenVoteData=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100)),eu=eo(99058);function createBaseKeygenVoteData(){return{pubKey:new Uint8Array,groupRecoveryInfo:new Uint8Array}}function createBaseKeyInfo(){return{keyId:"",keyRole:0,keyType:0}}function createBaseMultisigInfo(){return{id:"",timeout:es.default.ZERO,targetNum:es.default.ZERO,infos:[]}}function createBaseMultisigInfo_Info(){return{participant:new Uint8Array,data:[]}}function createBaseKeyRecoveryInfo(){return{keyId:"",public:new Uint8Array,private:{}}}function createBaseKeyRecoveryInfo_PrivateEntry(){return{key:"",value:new Uint8Array}}function createBaseExternalKeys(){return{chain:"",keyIds:[]}}function createBaseValidatorStatus(){return{validator:new Uint8Array,suspendedUntil:es.default.UZERO}}ei.protobufPackage="axelar.tss.v1beta1",ei.KeygenVoteData={encode:(en,ei=ed.default.Writer.create())=>(0!==en.pubKey.length&&ei.uint32(10).bytes(en.pubKey),0!==en.groupRecoveryInfo.length&&ei.uint32(18).bytes(en.groupRecoveryInfo),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeygenVoteData();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.pubKey=eo.bytes();break;case 2:es.groupRecoveryInfo=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({pubKey:isSet(en.pubKey)?bytesFromBase64(en.pubKey):new Uint8Array,groupRecoveryInfo:isSet(en.groupRecoveryInfo)?bytesFromBase64(en.groupRecoveryInfo):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.pubKey&&(ei.pubKey=base64FromBytes(void 0!==en.pubKey?en.pubKey:new Uint8Array)),void 0!==en.groupRecoveryInfo&&(ei.groupRecoveryInfo=base64FromBytes(void 0!==en.groupRecoveryInfo?en.groupRecoveryInfo:new Uint8Array)),ei},create:en=>ei.KeygenVoteData.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeygenVoteData();return ei.pubKey=en.pubKey??new Uint8Array,ei.groupRecoveryInfo=en.groupRecoveryInfo??new Uint8Array,ei}},ei.KeyInfo={encode:(en,ei=ed.default.Writer.create())=>(""!==en.keyId&&ei.uint32(10).string(en.keyId),0!==en.keyRole&&ei.uint32(16).int32(en.keyRole),0!==en.keyType&&ei.uint32(24).int32(en.keyType),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeyInfo();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.keyId=eo.string();break;case 2:es.keyRole=eo.int32();break;case 3:es.keyType=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({keyId:isSet(en.keyId)?String(en.keyId):"",keyRole:isSet(en.keyRole)?(0,eu.keyRoleFromJSON)(en.keyRole):0,keyType:isSet(en.keyType)?(0,eu.keyTypeFromJSON)(en.keyType):0}),toJSON(en){let ei={};return void 0!==en.keyId&&(ei.keyId=en.keyId),void 0!==en.keyRole&&(ei.keyRole=(0,eu.keyRoleToJSON)(en.keyRole)),void 0!==en.keyType&&(ei.keyType=(0,eu.keyTypeToJSON)(en.keyType)),ei},create:en=>ei.KeyInfo.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeyInfo();return ei.keyId=en.keyId??"",ei.keyRole=en.keyRole??0,ei.keyType=en.keyType??0,ei}},ei.MultisigInfo={encode(en,eo=ed.default.Writer.create()){for(let ea of(""!==en.id&&eo.uint32(10).string(en.id),en.timeout.isZero()||eo.uint32(16).int64(en.timeout),en.targetNum.isZero()||eo.uint32(24).int64(en.targetNum),en.infos))ei.MultisigInfo_Info.encode(ea,eo.uint32(34).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,eu=createBaseMultisigInfo();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:eu.id=ea.string();break;case 2:eu.timeout=ea.int64();break;case 3:eu.targetNum=ea.int64();break;case 4:eu.infos.push(ei.MultisigInfo_Info.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return eu},fromJSON:en=>({id:isSet(en.id)?String(en.id):"",timeout:isSet(en.timeout)?es.default.fromValue(en.timeout):es.default.ZERO,targetNum:isSet(en.targetNum)?es.default.fromValue(en.targetNum):es.default.ZERO,infos:Array.isArray(en?.infos)?en.infos.map(en=>ei.MultisigInfo_Info.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.id&&(eo.id=en.id),void 0!==en.timeout&&(eo.timeout=(en.timeout||es.default.ZERO).toString()),void 0!==en.targetNum&&(eo.targetNum=(en.targetNum||es.default.ZERO).toString()),en.infos?eo.infos=en.infos.map(en=>en?ei.MultisigInfo_Info.toJSON(en):void 0):eo.infos=[],eo},create:en=>ei.MultisigInfo.fromPartial(en??{}),fromPartial(en){let eo=createBaseMultisigInfo();return eo.id=en.id??"",eo.timeout=void 0!==en.timeout&&null!==en.timeout?es.default.fromValue(en.timeout):es.default.ZERO,eo.targetNum=void 0!==en.targetNum&&null!==en.targetNum?es.default.fromValue(en.targetNum):es.default.ZERO,eo.infos=en.infos?.map(en=>ei.MultisigInfo_Info.fromPartial(en))||[],eo}},ei.MultisigInfo_Info={encode(en,ei=ed.default.Writer.create()){for(let eo of(0!==e
2n.participant.length&&ei.uint32(10).bytes(en.participant),en.data))ei.uint32(18).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMultisigInfo_Info();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.participant=eo.bytes();break;case 2:es.data.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({participant:isSet(en.participant)?bytesFromBase64(en.participant):new Uint8Array,data:Array.isArray(en?.data)?en.data.map(en=>bytesFromBase64(en)):[]}),toJSON(en){let ei={};return void 0!==en.participant&&(ei.participant=base64FromBytes(void 0!==en.participant?en.participant:new Uint8Array)),en.data?ei.data=en.data.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.data=[],ei},create:en=>ei.MultisigInfo_Info.fromPartial(en??{}),fromPartial(en){let ei=createBaseMultisigInfo_Info();return ei.participant=en.participant??new Uint8Array,ei.data=en.data?.map(en=>en)||[],ei}},ei.KeyRecoveryInfo={encode:(en,eo=ed.default.Writer.create())=>(""!==en.keyId&&eo.uint32(10).string(en.keyId),0!==en.public.length&&eo.uint32(18).bytes(en.public),Object.entries(en.private).forEach(([en,ea])=>{ei.KeyRecoveryInfo_PrivateEntry.encode({key:en,value:ea},eo.uint32(26).fork()).ldelim()}),eo),decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,eu=createBaseKeyRecoveryInfo();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:eu.keyId=ea.string();break;case 2:eu.public=ea.bytes();break;case 3:let eo=ei.KeyRecoveryInfo_PrivateEntry.decode(ea,ea.uint32());void 0!==eo.value&&(eu.private[eo.key]=eo.value);break;default:ea.skipType(7&en)}}return eu},fromJSON:en=>({keyId:isSet(en.keyId)?String(en.keyId):"",public:isSet(en.public)?bytesFromBase64(en.public):new Uint8Array,private:isObject(en.private)?Object.entries(en.private).reduce((en,[ei,eo])=>(en[ei]=bytesFromBase64(eo),en),{}):{}}),toJSON(en){let ei={};return void 0!==en.keyId&&(ei.keyId=en.keyId),void 0!==en.public&&(ei.public=base64FromBytes(void 0!==en.public?en.public:new Uint8Array)),ei.private={},en.private&&Object.entries(en.private).forEach(([en,eo])=>{ei.private[en]=base64FromBytes(eo)}),ei},create:en=>ei.KeyRecoveryInfo.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeyRecoveryInfo();return ei.keyId=en.keyId??"",ei.public=en.public??new Uint8Array,ei.private=Object.entries(en.private??{}).reduce((en,[ei,eo])=>(void 0!==eo&&(en[ei]=eo),en),{}),ei}},ei.KeyRecoveryInfo_PrivateEntry={encode:(en,ei=ed.default.Writer.create())=>(""!==en.key&&ei.uint32(10).string(en.key),0!==en.value.length&&ei.uint32(18).bytes(en.value),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseKeyRecoveryInfo_PrivateEntry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.string();break;case 2:es.value=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:isSet(en.key)?String(en.key):"",value:isSet(en.value)?bytesFromBase64(en.value):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=en.key),void 0!==en.value&&(ei.value=base64FromBytes(void 0!==en.value?en.value:new Uint8Array)),ei},create:en=>ei.KeyRecoveryInfo_PrivateEntry.fromPartial(en??{}),fromPartial(en){let ei=createBaseKeyRecoveryInfo_PrivateEntry();return ei.key=en.key??"",ei.value=en.value??new Uint8Array,ei}},ei.ExternalKeys={encode(en,ei=ed.default.Writer.create()){for(let eo of(""!==en.chain&&ei.uint32(10).string(en.chain),en.keyIds))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseExternalKeys();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.chain=eo.string();break;case 2:es.keyIds.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({chain:isSet(en.chain)?String(en.chain):"",keyIds:Array.isArray(en?.keyIds)?en.keyIds.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.chain&&(ei.chain=en.chain),en.keyIds?ei.keyIds=en.keyIds.map(en=>en):ei.keyIds=[],ei},create:en=>ei.ExternalKeys.fromPartial(en??{}),fromPartial(en){let ei=createBaseExternalKeys();return ei.chain=en.chain??"",ei.keyIds=en.keyIds?.map(en=>en)||[],ei}}
2,ei.ValidatorStatus={encode:(en,ei=ed.default.Writer.create())=>(0!==en.validator.length&&ei.uint32(10).bytes(en.validator),en.suspendedUntil.isZero()||ei.uint32(16).uint64(en.suspendedUntil),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorStatus();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validator=eo.bytes();break;case 2:es.suspendedUntil=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({validator:isSet(en.validator)?bytesFromBase64(en.validator):new Uint8Array,suspendedUntil:isSet(en.suspendedUntil)?es.default.fromValue(en.suspendedUntil):es.default.UZERO}),toJSON(en){let ei={};return void 0!==en.validator&&(ei.validator=base64FromBytes(void 0!==en.validator?en.validator:new Uint8Array)),void 0!==en.suspendedUntil&&(ei.suspendedUntil=(en.suspendedUntil||es.default.UZERO).toString()),ei},create:en=>ei.ValidatorStatus.fromPartial(en??{}),fromPartial(en){let ei=createBaseValidatorStatus();return ei.validator=en.validator??new Uint8Array,ei.suspendedUntil=void 0!==en.suspendedUntil&&null!==en.suspendedUntil?es.default.fromValue(en.suspendedUntil):es.default.UZERO,ei}};var ef=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(ef.Buffer)return Uint8Array.from(ef.Buffer.from(en,"base64"));{let ei=ef.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(ef.Buffer)return ef.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),ef.btoa(ei.join(""))}}function isObject(en){return"object"==typeof en&&null!==en}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},89505:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.CircularBuffer=ei.Bitmap=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBaseBitmap(){return{trueCountCache:void 0}}function createBaseCircularBuffer(){return{cumulativeValue:[],index:0,maxSize:0}}function isSet(en){return null!=en}ei.protobufPackage="axelar.utils.v1beta1",ei.Bitmap={encode:(en,eo=ed.default.Writer.create())=>(void 0!==en.trueCountCache&&ei.CircularBuffer.encode(en.trueCountCache,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ed.default.Reader?en:new ed.default.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,eu=createBaseBitmap();for(;ea.pos<es;){let en=ea.uint32();en>>>3==2?eu.trueCountCache=ei.CircularBuffer.decode(ea,ea.uint32()):ea.skipType(7&en)}return eu},fromJSON:en=>({trueCountCache:isSet(en.trueCountCache)?ei.CircularBuffer.fromJSON(en.trueCountCache):void 0}),toJSON(en){let eo={};return void 0!==en.trueCountCache&&(eo.trueCountCache=en.trueCountCache?ei.CircularBuffer.toJSON(en.trueCountCache):void 0),eo},create:en=>ei.Bitmap.fromPartial(en??{}),fromPartial(en){let eo=createBaseBitmap();return eo.trueCountCache=void 0!==en.trueCountCache&&null!==en.trueCountCache?ei.CircularBuffer.fromPartial(en.trueCountCache):void 0,eo}},ei.CircularBuffer={encode(en,ei=ed.default.Writer.create()){for(let eo of(ei.uint32(10).fork(),en.cumulativeValue))ei.uint64(eo);return ei.ldelim(),0!==en.index&&ei.uint32(16).int32(en.index),0!==en.maxSize&&ei.uint32(24).int32(en.maxSize),ei},decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCircularBuffer();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.cumulativeValue.push(eo.uint64())}else es.cumulativeValue.push(eo.uint64());break;case 2:es.index=eo.int32();break;case 3:es.maxSize=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({cumulativeValue:Array.isArray(en?.cumulativeValue)?en.cumulativeValue.map(en=>es.default.fromValue(en)):[],index:isSet(en.index)?Number(en.index):0,maxSize:isSet(en.maxSize)?Number(en.maxSize):0}),toJSON(en){let ei={};return en.cumulativeValue?ei.cumulativeValue=en.cumulativeValue.map(en=>(en||es.default.UZERO).toString()):ei.cumulativeValue=[],void 0!==en.index&&(ei.index=Math.round(en.index)),void 0!==en.maxSize&&(ei.maxSize=Math.round(en.maxSize)),ei},create:en=>ei.CircularBuffer.fromPartial(en??{}),fromPartial(en){let ei=createBaseCircularBuffer();return ei.cumulativeValue=en.cumulativeValue?.map(en=>es.default.fromValue(en))||[],ei.index=en.index??0,ei.maxSize=en.maxSize??0,ei}},ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},52265:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Threshold=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBaseThreshold(){return{numerator:es.default.ZERO,denominator:es.default.ZERO}}function isSet(en){return null!=en}ei.protobufPackage="axelar.utils.v1beta1",ei.Threshold={encode:(en,ei=ed.default.Writer.create())=>(en.numerator.isZero()||ei.uint32(8).int64(en.numerator),en.denominator.isZero()||ei.uint32(16).int64(en.denominator),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseThreshold();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.numerator=eo.int64();break;case 2:es.denominator=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({numerator:isSet(en.numerator)?es.default.fromValue(en.numerator):es.default.ZERO,denominator:isSet(en.denominator)?es.default.fromValue(en.denominator):es.default.ZERO}),toJSON(en){let ei={};return void 0!==en.numerator&&(ei.numerator=(en.numerator||es.default.ZERO).toString()),void 0!==en.denominator&&(ei.denominator=(en.denominator||es.default.ZERO).toString()),ei},create:en=>ei.Threshold.fromPartial(en??{}),fromPartial(en){let ei=createBaseThreshold();return ei.numerator=void 0!==en.numerator&&null!==en.numerator?es.default.fromValue(en.numerator):es.default.ZERO,ei.denominator=void 0!==en.denominator&&null!==en.denominator?es.default.fromValue(en.denominator):es.default.ZERO,ei}},ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},83763:function(en,ei,eo){"use strict";var ea,es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}
2),ei.PollParticipants=ei.PollKey=ei.PollMetadata=ei.pollStateToJSON=ei.pollStateFromJSON=ei.PollState=ei.protobufPackage=void 0;let ed=es(eo(41583)),eu=es(eo(62100)),ef=eo(2347),ep=eo(34855),em=eo(52265);function pollStateFromJSON(en){switch(en){case 0:case"POLL_STATE_UNSPECIFIED":return ea.POLL_STATE_UNSPECIFIED;case 1:case"POLL_STATE_PENDING":return ea.POLL_STATE_PENDING;case 2:case"POLL_STATE_COMPLETED":return ea.POLL_STATE_COMPLETED;case 3:case"POLL_STATE_FAILED":return ea.POLL_STATE_FAILED;default:return ea.UNRECOGNIZED}}function pollStateToJSON(en){switch(en){case ea.POLL_STATE_UNSPECIFIED:return"POLL_STATE_UNSPECIFIED";case ea.POLL_STATE_PENDING:return"POLL_STATE_PENDING";case ea.POLL_STATE_COMPLETED:return"POLL_STATE_COMPLETED";case ea.POLL_STATE_FAILED:return"POLL_STATE_FAILED";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBasePollMetadata(){return{expiresAt:ed.default.ZERO,result:void 0,votingThreshold:void 0,state:0,minVoterCount:ed.default.ZERO,rewardPoolName:"",gracePeriod:ed.default.ZERO,completedAt:ed.default.ZERO,id:ed.default.UZERO,snapshot:void 0,module:"",moduleMetadata:void 0}}function createBasePollKey(){return{module:"",id:""}}function createBasePollParticipants(){return{pollId:ed.default.UZERO,participants:[]}}ei.protobufPackage="axelar.vote.exported.v1beta1",function(en){en[en.POLL_STATE_UNSPECIFIED=0]="POLL_STATE_UNSPECIFIED",en[en.POLL_STATE_PENDING=1]="POLL_STATE_PENDING",en[en.POLL_STATE_COMPLETED=2]="POLL_STATE_COMPLETED",en[en.POLL_STATE_FAILED=3]="POLL_STATE_FAILED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.PollState||(ei.PollState={})),ei.pollStateFromJSON=pollStateFromJSON,ei.pollStateToJSON=pollStateToJSON,ei.PollMetadata={encode:(en,ei=eu.default.Writer.create())=>(en.expiresAt.isZero()||ei.uint32(24).int64(en.expiresAt),void 0!==en.result&&ef.Any.encode(en.result,ei.uint32(34).fork()).ldelim(),void 0!==en.votingThreshold&&em.Threshold.encode(en.votingThreshold,ei.uint32(42).fork()).ldelim(),0!==en.state&&ei.uint32(48).int32(en.state),en.minVoterCount.isZero()||ei.uint32(56).int64(en.minVoterCount),""!==en.rewardPoolName&&ei.uint32(82).string(en.rewardPoolName),en.gracePeriod.isZero()||ei.uint32(88).int64(en.gracePeriod),en.completedAt.isZero()||ei.uint32(96).int64(en.completedAt),en.id.isZero()||ei.uint32(104).uint64(en.id),void 0!==en.snapshot&&ep.Snapshot.encode(en.snapshot,ei.uint32(122).fork()).ldelim(),""!==en.module&&ei.uint32(130).string(en.module),void 0!==en.moduleMetadata&&ef.Any.encode(en.moduleMetadata,ei.uint32(138).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePollMetadata();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 3:es.expiresAt=eo.int64();break;case 4:es.result=ef.Any.decode(eo,eo.uint32());break;case 5:es.votingThreshold=em.Threshold.decode(eo,eo.uint32());break;case 6:es.state=eo.int32();break;case 7:es.minVoterCount=eo.int64();break;case 10:es.rewardPoolName=eo.string();break;case 11:es.gracePeriod=eo.int64();break;case 12:es.completedAt=eo.int64();break;case 13:es.id=eo.uint64();break;case 15:es.snapshot=ep.Snapshot.decode(eo,eo.uint32());break;case 16:es.module=eo.string();break;case 17:es.moduleMetadata=ef.Any.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({expiresAt:isSet(en.expiresAt)?ed.default.fromValue(en.expiresAt):ed.default.ZERO,result:isSet(en.result)?ef.Any.fromJSON(en.result):void 0,votingThreshold:isSet(en.votingThreshold)?em.Threshold.fromJSON(en.votingThreshold):void 0,state:isSet(en.state)?pollStateFromJSON(en.state):0,minVoterCount:isSet(en.minVoterCount)?ed.default.fromValue(en.minVoterCount):ed.default.ZERO,rewardPoolName:isSet(en.rewardPoolName)?String(en.rewardPoolName):"",gracePeriod:isSet(en.gracePeriod)?ed.default.fromValue(en.gracePeriod):ed.default.ZERO,completedAt:isSet(en.completedAt)?ed.default.fromValue(en.completedAt):ed.default.ZERO,id:isSet(en.id)?ed.default.fromValue(en.id):ed.default.UZERO,snapshot:isSet(en.snapshot)?ep.Snapshot.fromJSON(en.snapshot):void 0,module:isSet(en.module)?String(en.module):"",moduleMetadata:isSet(en.moduleMetadata)?ef.Any.fromJSON(en.moduleMetadata):void 0}),toJSON(en){let ei={};return void 0!==en.expiresAt&&(ei.expiresAt=(en.expiresAt||ed.default.ZERO).toString()),void 0!==en.result&&(ei.result=en.result?ef.Any.toJSON(en.result):void 0),void 0!==en.votingThreshold&&(ei.votingThreshold=en.votingThreshold?em.Threshold.toJSON(en.votingThreshold):void 0),void 0!==en.state&&(ei.state=pollStateToJSON(en.state)),void 0!==en.minVoterCount&&(ei.minVoterCount=(en.minVoterCount||ed.default.ZERO).toString()),void 0!==en.rewardPoolName&&(ei.rewardPoolName=en.rewardPoolName),void 0!==en.gracePeriod&&(ei.gracePeriod=(en.gracePeriod||ed.default.ZERO).toString()),void 0!==en.completedAt&&(ei.completedAt=(en.completedAt||ed.default.ZERO).toString()),void 0!==en.id&&(ei.id=(en.id||ed.default.UZERO).toString()),void 0!==en.snapshot&&(ei.snapshot=en.snapshot?ep.Snapshot.toJSON(en.snapshot):void 0),void 0!==en.module&&(ei.module=en.module),void 0!==en.moduleMetadata&&(ei.moduleMetadata=en.moduleMetadata?ef.Any.toJSON(en.moduleMetadata):void 0),ei},create:en=>ei.PollMetadata.fromPartial(en??{}),fromPartial(en){let ei=createBasePollMetadata();return ei.expiresAt=void 0!==en.expiresAt&&null!==en.expiresAt?ed.default.fromValue(en.expiresAt):ed.default.ZERO,ei.result=void 0!==en.result&&null!==en.result?ef.Any.fromPartial(en.result):void 0,ei.votingThreshold=void 0!==en.votingThreshold&&null!==en.votingThreshold?em.Threshold.fromPartial(en.votingThreshold):void 0,ei.state=en.state??0,ei.minVoterCount=void 0!==en.minVoterCount&&null!==en.minVoterCount?ed.default.fromValue(en.minVoterCount):ed.default.ZERO,ei.rewardPoolName=en.rewardPoolName??"",ei.gracePeriod=void 0!==en.gracePeriod&&null!==en.gracePeriod?ed.default.fromValue(en.gracePeriod):ed.default.ZERO,ei.c
2ompletedAt=void 0!==en.completedAt&&null!==en.completedAt?ed.default.fromValue(en.completedAt):ed.default.ZERO,ei.id=void 0!==en.id&&null!==en.id?ed.default.fromValue(en.id):ed.default.UZERO,ei.snapshot=void 0!==en.snapshot&&null!==en.snapshot?ep.Snapshot.fromPartial(en.snapshot):void 0,ei.module=en.module??"",ei.moduleMetadata=void 0!==en.moduleMetadata&&null!==en.moduleMetadata?ef.Any.fromPartial(en.moduleMetadata):void 0,ei}},ei.PollKey={encode:(en,ei=eu.default.Writer.create())=>(""!==en.module&&ei.uint32(10).string(en.module),""!==en.id&&ei.uint32(18).string(en.id),ei),decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePollKey();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.module=eo.string();break;case 2:es.id=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({module:isSet(en.module)?String(en.module):"",id:isSet(en.id)?String(en.id):""}),toJSON(en){let ei={};return void 0!==en.module&&(ei.module=en.module),void 0!==en.id&&(ei.id=en.id),ei},create:en=>ei.PollKey.fromPartial(en??{}),fromPartial(en){let ei=createBasePollKey();return ei.module=en.module??"",ei.id=en.id??"",ei}},ei.PollParticipants={encode(en,ei=eu.default.Writer.create()){for(let eo of(en.pollId.isZero()||ei.uint32(8).uint64(en.pollId),en.participants))ei.uint32(18).bytes(eo);return ei},decode(en,ei){let eo=en instanceof eu.default.Reader?en:new eu.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePollParticipants();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.pollId=eo.uint64();break;case 2:es.participants.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({pollId:isSet(en.pollId)?ed.default.fromValue(en.pollId):ed.default.UZERO,participants:Array.isArray(en?.participants)?en.participants.map(en=>bytesFromBase64(en)):[]}),toJSON(en){let ei={};return void 0!==en.pollId&&(ei.pollId=(en.pollId||ed.default.UZERO).toString()),en.participants?ei.participants=en.participants.map(en=>base64FromBytes(void 0!==en?en:new Uint8Array)):ei.participants=[],ei},create:en=>ei.PollParticipants.fromPartial(en??{}),fromPartial(en){let ei=createBasePollParticipants();return ei.pollId=void 0!==en.pollId&&null!==en.pollId?ed.default.fromValue(en.pollId):ed.default.UZERO,ei.participants=en.participants?.map(en=>en)||[],ei}};var eg=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eg.Buffer)return Uint8Array.from(eg.Buffer.from(en,"base64"));{let ei=eg.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eg.Buffer)return eg.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eg.btoa(ei.join(""))}}function isSet(en){return null!=en}eu.default.util.Long!==ed.default&&(eu.default.util.Long=ed.default,eu.default.configure())},18762:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.PageResponse=ei.PageRequest=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBasePageRequest(){return{key:new Uint8Array,offset:es.default.UZERO,limit:es.default.UZERO,countTotal:!1,reverse:!1}}function createBasePageResponse(){return{nextKey:new Uint8Array,total:es.default.UZERO}}ei.protobufPackage="cosmos.base.query.v1beta1",ei.PageRequest={encode:(en,ei=ed.default.Writer.create())=>(0!==en.key.length&&ei.uint32(10).bytes(en.key),en.offset.isZero()||ei.uint32(16).uint64(en.offset),en.limit.isZero()||ei.uint32(24).uint64(en.limit),!0===en.countTotal&&ei.uint32(32).bool(en.countTotal),!0===en.reverse&&ei.uint32(40).bool(en.reverse),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePageRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.bytes();break;case 2:es.offset=eo.uint64();break;case 3:es.limit=eo.uint64();break;case 4:es.countTotal=eo.bool();break;case 5:es.reverse=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:isSet(en.key)?bytesFromBase64(en.key):new Uint8Array,offset:isSet(en.offset)?es.default.fromValue(en.offset):es.default.UZERO,limit:isSet(en.limit)?es.default.fromValue(en.limit):es.default.UZERO,countTotal:!!isSet(en.countTotal)&&!!en.countTotal,reverse:!!isSet(en.reverse)&&!!en.reverse}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=base64FromBytes(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.offset&&(ei.offset=(en.offset||es.default.UZERO).toString()),void 0!==en.limit&&(ei.limit=(en.limit||es.default.UZERO).toString()),void 0!==en.countTotal&&(ei.countTotal=en.countTotal),void 0!==en.reverse&&(ei.reverse=en.reverse),ei},create:en=>ei.PageRequest.fromPartial(en??{}),fromPartial(en){let ei=createBasePageRequest();return ei.key=en.key??new Uint8Array,ei.offset=void 0!==en.offset&&null!==en.offset?es.default.fromValue(en.offset):es.default.UZERO,ei.limit=void 0!==en.limit&&null!==en.limit?es.default.fromValue(en.limit):es.default.UZERO,ei.c
2ountTotal=en.countTotal??!1,ei.reverse=en.reverse??!1,ei}},ei.PageResponse={encode:(en,ei=ed.default.Writer.create())=>(0!==en.nextKey.length&&ei.uint32(10).bytes(en.nextKey),en.total.isZero()||ei.uint32(16).uint64(en.total),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePageResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.nextKey=eo.bytes();break;case 2:es.total=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({nextKey:isSet(en.nextKey)?bytesFromBase64(en.nextKey):new Uint8Array,total:isSet(en.total)?es.default.fromValue(en.total):es.default.UZERO}),toJSON(en){let ei={};return void 0!==en.nextKey&&(ei.nextKey=base64FromBytes(void 0!==en.nextKey?en.nextKey:new Uint8Array)),void 0!==en.total&&(ei.total=(en.total||es.default.UZERO).toString()),ei},create:en=>ei.PageResponse.fromPartial(en??{}),fromPartial(en){let ei=createBasePageResponse();return ei.nextKey=en.nextKey??new Uint8Array,ei.total=void 0!==en.total&&null!==en.total?es.default.fromValue(en.total):es.default.UZERO,ei}};var eu=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eu.Buffer)return Uint8Array.from(eu.Buffer.from(en,"base64"));{let ei=eu.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eu.Buffer)return eu.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eu.btoa(ei.join(""))}}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},61039:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.DecProto=ei.IntProto=ei.DecCoin=ei.Coin=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBaseCoin(){return{denom:"",amount:""}}function createBaseDecCoin(){return{denom:"",amount:""}}function createBaseIntProto(){return{int:""}}function createBaseDecProto(){return{dec:""}}function isSet(en){return null!=en}ei.protobufPackage="cosmos.base.v1beta1",ei.Coin={encode:(en,ei=ed.default.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),""!==en.amount&&ei.uint32(18).string(en.amount),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCoin();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.amount=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:isSet(en.denom)?String(en.denom):"",amount:isSet(en.amount)?String(en.amount):""}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.amount&&(ei.amount=en.amount),ei},create:en=>ei.Coin.fromPartial(en??{}),fromPartial(en){let ei=createBaseCoin();return ei.denom=en.denom??"",ei.amount=en.amount??"",ei}},ei.DecCoin={encode:(en,ei=ed.default.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),""!==en.amount&&ei.uint32(18).string(en.amount),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDecCoin();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.amount=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:isSet(en.denom)?String(en.denom):"",amount:isSet(en.amount)?String(en.amount):""}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.amount&&(ei.amount=en.amount),ei},create:en=>ei.DecCoin.fromPartial(en??{}),fromPartial(en){let ei=createBaseDecCoin();return ei.denom=en.denom??"",ei.amount=en.amount??"",ei}},ei.IntProto={encode:(en,ei=ed.default.Writer.create())=>(""!==en.int&&ei.uint32(10).string(en.int),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseIntProto();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.int=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({int:isSet(en.int)?String(en.int):""}),toJSON(en){let ei={};return void 0!==en.int&&(ei.int=en.int),ei},create:en=>ei.IntProto.fromPartial(en??{}),fromPartial(en){let ei=createBaseIntProto();return ei.int=en.int??"",ei}},ei.DecProto={encode:(en,ei=ed.default.Writer.create())=>(""!==en.dec&&ei.uint32(10).string(en.dec),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDecProto();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.dec=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({dec:isSet(en.dec)?String(en.dec):""}),toJSON(en){let ei={};return void 0!==en.dec&&(ei.dec=en.dec),ei},create:en=>ei.DecProto.fromPartial(en??{}),fromPartial(en){let ei=createBaseDecProto();return ei.dec=en.dec??"",ei}},ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},2347:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Any=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBaseAny(){return{typeUrl:"",value:new Uint8Array}}ei.protobufPackage="google.protobuf",ei.Any={encode:(en,ei=ed.default.Writer.create())=>(""!==en.typeUrl&&ei.uint32(10).string(en.typeUrl),0!==en.value.length&&ei.uint32(18).bytes(en.value),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAny();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.typeUrl=eo.string();break;case 2:es.value=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({typeUrl:isSet(en.typeUrl)?String(en.typeUrl):"",value:isSet(en.value)?bytesFromBase64(en.value):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.typeUrl&&(ei.typeUrl=en.typeUrl),void 0!==en.value&&(ei.value=base64FromBytes(void 0!==en.value?en.value:new Uint8Array)),ei},create:en=>ei.Any.fromPartial(en??{}),fromPartial(en){let ei=createBaseAny();return ei.typeUrl=en.typeUrl??"",ei.value=en.value??new Uint8Array,ei}};var eu=(()=>
2{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();function bytesFromBase64(en){if(eu.Buffer)return Uint8Array.from(eu.Buffer.from(en,"base64"));{let ei=eu.atob(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}}function base64FromBytes(en){if(eu.Buffer)return eu.Buffer.from(en).toString("base64");{let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eu.btoa(ei.join(""))}}function isSet(en){return null!=en}ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},61099:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Duration=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBaseDuration(){return{seconds:es.default.ZERO,nanos:0}}function isSet(en){return null!=en}ei.protobufPackage="google.protobuf",ei.Duration={encode:(en,ei=ed.default.Writer.create())=>(en.seconds.isZero()||ei.uint32(8).int64(en.seconds),0!==en.nanos&&ei.uint32(16).int32(en.nanos),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDuration();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.seconds=eo.int64();break;case 2:es.nanos=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({seconds:isSet(en.seconds)?es.default.fromValue(en.seconds):es.default.ZERO,nanos:isSet(en.nanos)?Number(en.nanos):0}),toJSON(en){let ei={};return void 0!==en.seconds&&(ei.seconds=(en.seconds||es.default.ZERO).toString()),void 0!==en.nanos&&(ei.nanos=Math.round(en.nanos)),ei},create:en=>ei.Duration.fromPartial(en??{}),fromPartial(en){let ei=createBaseDuration();return ei.seconds=void 0!==en.seconds&&null!==en.seconds?es.default.fromValue(en.seconds):es.default.ZERO,ei.nanos=en.nanos??0,ei}},ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},79637:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Timestamp=ei.protobufPackage=void 0;let es=ea(eo(41583)),ed=ea(eo(62100));function createBaseTimestamp(){return{seconds:es.default.ZERO,nanos:0}}function isSet(en){return null!=en}ei.protobufPackage="google.protobuf",ei.Timestamp={encode:(en,ei=ed.default.Writer.create())=>(en.seconds.isZero()||ei.uint32(8).int64(en.seconds),0!==en.nanos&&ei.uint32(16).int32(en.nanos),ei),decode(en,ei){let eo=en instanceof ed.default.Reader?en:new ed.default.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTimestamp();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.seconds=eo.int64();break;case 2:es.nanos=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({seconds:isSet(en.seconds)?es.default.fromValue(en.seconds):es.default.ZERO,nanos:isSet(en.nanos)?Number(en.nanos):0}),toJSON(en){let ei={};return void 0!==en.seconds&&(ei.seconds=(en.seconds||es.default.ZERO).toString()),void 0!==en.nanos&&(ei.nanos=Math.round(en.nanos)),ei},create:en=>ei.Timestamp.fromPartial(en??{}),fromPartial(en){let ei=createBaseTimestamp();return ei.seconds=void 0!==en.seconds&&null!==en.seconds?es.default.fromValue(en.seconds):es.default.ZERO,ei.nanos=en.nanos??0,ei}},ed.default.util.Long!==es.default&&(ed.default.util.Long=es.default,ed.default.configure())},84453:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decompress=ei.compress=void 0;let ea=eo(10641);function compress(en){return en.batch?{compressed:compressBatch(en.batch)}:en}function decompress(en){return en.compressed?{batch:decompressBatch(en.compressed)}:en}function compressBatch(en){let ei=[],eo=[],ea=new Map;for(let es of en.entries)if(es.exist){let en={exist:compressExist(es.exist,eo,ea)};ei.push(en)}else if(es.nonexist){let en=es.nonexist,ed={nonexist:{key:en.key,left
2:compressExist(en.left,eo,ea),right:compressExist(en.right,eo,ea)}};ei.push(ed)}else throw Error("Unexpected batch entry during compress");return{entries:ei,lookupInners:eo}}function compressExist(en,ei,eo){if(!en)return;let es=en.path.map(en=>{let es=ea.ics23.InnerOp.encode(en).finish(),ed=eo.get(es);return void 0===ed&&(ed=ei.length,ei.push(en),eo.set(es,ed)),ed});return{key:en.key,value:en.value,leaf:en.leaf,path:es}}function decompressBatch(en){let ei=en.lookupInners,eo=en.entries.map(en=>{if(en.exist)return{exist:decompressExist(en.exist,ei)};if(en.nonexist){let eo=en.nonexist;return{nonexist:{key:eo.key,left:decompressExist(eo.left,ei),right:decompressExist(eo.right,ei)}}}throw Error("Unexpected batch entry during compress")});return{entries:eo}}function decompressExist(en,ei){if(!en)return;let{key:eo,value:ea,leaf:es,path:ed}=en,eu=(ed||[]).map(en=>ei[en]);return{key:eo,value:ea,leaf:es,path:eu}}ei.compress=compress,ei.decompress=decompress},21708:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.batchVerifyNonMembership=ei.batchVerifyMembership=ei.verifyNonMembership=ei.verifyMembership=void 0;let ea=eo(84453),es=eo(4659),ed=eo(23824);function verifyMembership(en,ei,eo,ed,eu){let ef=(0,ea.decompress)(en),ep=getExistForKey(ef,ed);if(!ep)return!1;try{return(0,es.verifyExistence)(ep,ei,eo,ed,eu),!0}catch(en){return!1}}function verifyNonMembership(en,ei,eo,ed){let eu=(0,ea.decompress)(en),ef=getNonExistForKey(eu,ed);if(!ef)return!1;try{return(0,es.verifyNonExistence)(ef,ei,eo,ed),!0}catch(en){return!1}}function batchVerifyMembership(en,ei,eo,es){let ed=(0,ea.decompress)(en);for(let[en,ea]of es.entries())if(!verifyMembership(ed,ei,eo,en,ea))return!1;return!0}function batchVerifyNonMembership(en,ei,eo,es){let ed=(0,ea.decompress)(en);for(let en of es)if(!verifyNonMembership(ed,ei,eo,en))return!1;return!0}function getExistForKey(en,ei){let match=en=>!!en&&(0,ed.bytesEqual)(ei,en.key);return match(en.exist)?en.exist:en.batch?en.batch.entries.map(en=>en.exist||null).find(match):void 0}function getNonExistForKey(en,ei){let match=en=>!!en&&(!en.left||(0,ed.bytesBefore)(en.left.key,ei))&&(!en.right||(0,ed.bytesBefore)(ei,en.right.key));return match(en.nonexist)?en.nonexist:en.batch?en.batch.entries.map(en=>en.nonexist||null).find(match):void 0}ei.verifyMembership=verifyMembership,ei.verifyNonMembership=verifyNonMembership,ei.batchVerifyMembership=batchVerifyMembership,ei.batchVerifyNonMembership=batchVerifyNonMembership},55201:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.verifyNonExistence=ei.verifyExistence=ei.tendermintSpec=ei.iavlSpec=ei.calculateExistenceRoot=ei.verifyNonMembership=ei.verifyMembership=ei.ics23=void 0;var ea=eo(10641);Object.defineProperty(ei,"ics23",{enumerable:!0,get:function(){return ea.ics23}});var es=eo(21708);Object.defineProperty(ei,"verifyMembership",{enumerable:!0,get:function(){return es.verifyMembership}}),Object.defineProperty(ei,"verifyNonMembership",{enumerable:!0,get:function(){return es.verifyNonMembership}});var ed=eo(4659);Object.defineProperty(ei,"calculateExistenceRoot",{enumerable:!0,get:function(){return ed.calculateExistenceRoot}}),Object.defineProperty(ei,"iavlSpec",{enumerable:!0,get:function(){return ed.iavlSpec}}),Object.defineProperty(ei,"tendermintSpec",{enumerable:!0,get:function(){return ed.tendermintSpec}}),Object.defineProperty(ei,"verifyExistence",{enumerable:!0,get:function(){return ed.verifyExistence}}),Object.defineProperty(ei,"verifyNonExistence",{enumerable:!0,get:function(){return ed.verifyNonExistence}})},89768:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.doHash=ei.applyInner=ei.applyLeaf=void 0;let ea=eo(70830),es=eo(23061),ed=eo(86262),eu=eo(10641);function applyLeaf(en,ei,eo){if(0===ei.length)throw Error("Missing key");if(0===eo.length)throw Error("Missing value");let ea=prepareLeafData(ensureHash(en.prehashKey),ensureLength(en.length),ei),es=prepareLeafData(ensureHash(en.prehashValue),ensureLength(en.length),eo),ed=new Uint8Array([...ensureBytes(en.prefix),...ea,...es]);return doHash(ensureHash(en.hash),ed)}function applyInner(en,ei){if(0===ei.length)throw Error("Inner op needs child value");let eo=new Uint8Array([...ensureBytes(en.prefix),...ei,...ensureBytes(en.suffix)]);return doHash(ensureHash(en.hash),eo)}function ensure(en,ei){return null==en?ei:en}
2ei.applyLeaf=applyLeaf,ei.applyInner=applyInner;let ensureHash=en=>ensure(en,eu.ics23.HashOp.NO_HASH),ensureLength=en=>ensure(en,eu.ics23.LengthOp.NO_PREFIX),ensureBytes=en=>ensure(en,new Uint8Array([]));function prepareLeafData(en,ei,eo){let ea=doHashOrNoop(en,eo);return doLengthOp(ei,ea)}function doHashOrNoop(en,ei){return en===eu.ics23.HashOp.NO_HASH?ei:doHash(en,ei)}function doHash(en,ei){switch(en){case eu.ics23.HashOp.SHA256:return(0,es.sha256)(ei);case eu.ics23.HashOp.SHA512:return(0,ed.sha512)(ei);case eu.ics23.HashOp.RIPEMD160:return(0,ea.ripemd160)(ei);case eu.ics23.HashOp.BITCOIN:return(0,ea.ripemd160)((0,es.sha256)(ei));case eu.ics23.HashOp.SHA512_256:return(0,ed.sha512_256)(ei)}throw Error(`Unsupported hashop: ${en}`)}function doLengthOp(en,ei){switch(en){case eu.ics23.LengthOp.NO_PREFIX:return ei;case eu.ics23.LengthOp.VAR_PROTO:return new Uint8Array([...encodeVarintProto(ei.length),...ei]);case eu.ics23.LengthOp.REQUIRE_32_BYTES:if(32!==ei.length)throw Error(`Length is ${ei.length}, not 32 bytes`);return ei;case eu.ics23.LengthOp.REQUIRE_64_BYTES:if(64!==ei.length)throw Error(`Length is ${ei.length}, not 64 bytes`);return ei;case eu.ics23.LengthOp.FIXED32_LITTLE:return new Uint8Array([...encodeFixed32Le(ei.length),...ei])}throw Error(`Unsupported lengthop: ${en}`)}function encodeVarintProto(en){let ei=[],eo=en;for(;eo>=128;){let en=eo%128+128;ei=[...ei,en],eo/=128}return ei=[...ei,eo],new Uint8Array(ei)}function encodeFixed32Le(en){let ei=new Uint8Array(4),eo=en;for(let en=ei.length;en>0;en--)ei[Math.abs(en-ei.length)]=eo%256,eo=Math.floor(eo/256);return ei}ei.doHash=doHash},4659:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ensureLeftNeighbor=ei.ensureSpec=ei.calculateExistenceRoot=ei.verifyNonExistence=ei.verifyExistence=ei.smtSpec=ei.tendermintSpec=ei.iavlSpec=void 0;let ea=eo(10641),es=eo(89768),ed=eo(23824);function verifyExistence(en,ei,eo,ea,es){ensureSpec(en,ei);let eu=calculateExistenceRoot(en);(0,ed.ensureBytesEqual)(eu,eo),(0,ed.ensureBytesEqual)(ea,en.key),(0,ed.ensureBytesEqual)(es,en.value)}function verifyNonExistence(en,ei,eo,ea){let es,eu;if(en.left&&(verifyExistence(en.left,ei,eo,en.left.key,en.left.value),es=en.left.key),en.right&&(verifyExistence(en.right,ei,eo,en.right.key,en.right.value),eu=en.right.key),!es&&!eu)throw Error("neither left nor right proof defined");if(es&&(0,ed.ensureBytesBefore)(es,ea),eu&&(0,ed.ensureBytesBefore)(ea,eu),!ei.innerSpec)throw Error("no inner spec");es?eu?ensureLeftNeighbor(ei.innerSpec,en.left.path,en.right.path):ensureRightMost(ei.innerSpec,en.left.path):ensureLeftMost(ei.innerSpec,en.right.path)}function calculateExistenceRoot(en){if(!en.key||!en.value)throw Error("Existence proof needs key and value set");if(!en.leaf)throw Error("Existence proof must start with a leaf operation");let ei=en.path||[],eo=(0,es.applyLeaf)(en.leaf,en.key,en.value);for(let en of ei)eo=(0,es.applyInner)(en,eo);return eo}function ensureSpec(en,ei){if(!en.leaf)throw Error("Existence proof must start with a leaf operation");if(!ei.leafSpec)throw Error("Spec must include leafSpec");if(!ei.innerSpec)throw Error("Spec must include innerSpec");(0,ed.ensureLeaf)(en.leaf,ei.leafSpec);let eo=en.path||[];if(ei.minDepth&&eo.length<ei.minDepth)throw Error(`Too few inner nodes ${eo.length}`);if(ei.maxDepth&&eo.length>ei.maxDepth)throw Error(`Too many inner nodes ${eo.length}`);for(let en of eo)(0,ed.ensureInner)(en,ei.leafSpec.prefix,ei.innerSpec)}function ensureLeftMost(en,ei){let{minPrefix:eo,maxPrefix:ea,suffix:es}=getPadding(en,0);for(let en of ei)if(!hasPadding(en,eo,ea,es))throw Error("Step not leftmost")}function ensureRightMost(en,ei){let eo=en.childOrder.length-1,{minPrefix:ea,maxPrefix:es,suffix:ed}=getPadding(en,eo);for(let en of ei)if(!hasPadding(en,ea,es,ed))throw Error("Step not leftmost")}function ensureLeftNeighbor(en,ei,eo){let ea=[...ei],es=[...eo],eu=ea.pop(),ef=es.pop();for(;(0,ed.bytesEqual)(eu.prefix,ef.prefix)&&(0,ed.bytesEqual)(eu.suffix,ef.suffix);)eu=ea.pop(),ef=es.pop();if(!isLeftStep(en,eu,ef))throw Error("Not left neightbor at first divergent step");ensureRightMost(en,ea),ensureLeftMost(en,es)}function isLeftStep(en,ei,eo){let ea=orderFromPadding(en,ei),es=orderFromPadding(en,eo);return es===ea+1}function orderFromPadding(en,ei){for(let eo=0;eo<en.childOrder.length;eo++){let{minPrefix:ea,maxPrefix:es,suffix:ed}=getPadding(en,eo);if(hasPadding(ei,ea,es,ed))return eo}throw Error("Cannot find any valid spacing for this node")}function hasPadding(en,ei,eo,ea){return!((en.prefix||[]).length<ei)&&!((en.prefix||[]).length>eo)&&(en.suffix||[]).length===ea}function getPadding(en,ei){let eo=getPosition(en.childOrder,ei),ea=eo*en.childSize,es=ea+en.minPrefixLength,ed=ea+en.maxPrefixLength,eu=(en.childOrder.length-1-eo)*en.childSize;return{minPrefix:es,maxPrefix:ed,suffix:eu}}function getPosition(en,ei){if(ei<0||ei>=en.length)throw Error(`Invalid branch: ${ei}`);return en.findIndex(en=>en===ei)}ei.iavlSpec={leafSpec:{prefix:Uint8Array.from([0]),hash:ea.ics23.HashOp.SHA256,prehashValue:ea.ics23.HashOp.SHA256,prehashKey:ea.ics23.HashOp.NO_HASH,length:ea.ics23.LengthOp.VAR_PROTO},innerSpec:{childOrder:[0,1],minPrefixLength:4,maxPrefixLength:12,childSize:33,hash:ea.ics23.HashOp.SHA256}},ei.tendermintSpec={leafSpec:{prefix:Uint8Array.from([0]),hash:ea.ics23.HashOp.SHA256,prehashValue:ea.ics23.HashOp.SHA256,prehashKey:ea.ics23.HashOp.NO_HASH,length:ea.ics23.LengthOp.VAR_PROTO},innerSpec:{childOrder:[0,1],minPrefixLength:1,maxPrefixLength:1,childSize:32,hash:ea.ics23.HashOp.SHA256}},ei.smtSpec={leafSpec:{hash:ea.ics23.HashOp.SHA256,prehashKey:ea.ics23.HashOp.NO_HASH,prehashValue:ea.ics23.HashOp.SHA256,length:ea.ics23.LengthOp.NO_PREFIX,prefix:Uint8Array.from([0])},innerSpec:{childOrder:[0,1],childSize:32,minPrefixLength:1,maxPrefixLength:1,emptyChild:new Uint8Array(32),hash:ea.ics23.HashOp.SHA256},maxDepth:256},ei.verifyExistence=verifyExistence,ei.verifyNonExistence=verifyNonExistence,ei.calculateExistenceRoot=calculateExistenceRoot,ei.ensureSpec=ensureSpec,ei.ensureLeftNeighbor=ensureLeftNeighbor},23824:function(en,ei){"use strict";function ensureLeaf(en,ei){if(en.hash!==ei.hash)throw Error(`Unexpected hashOp: ${en.hash}`);if(en.prehashKey!==ei.prehashKey)throw Error(`Unexpected prehashKey: ${en.prehashKey}`);if(en.prehashValue!==ei.prehashValue)throw Error(`Unexpected prehashValue: ${en.prehashValue}`);if(en.length!==ei.length)throw Error(`Unexpected length op: ${en.length}`);
2ensurePrefix(en.prefix,ei.prefix)}function ensureInner(en,ei,eo){if(en.hash!==eo.hash)throw Error(`Unexpected hashOp: ${en.hash}`);if(!en.prefix)throw Error("No prefix set for inner node");if(hasPrefix(en.prefix,ei))throw Error("Inner node has leaf prefix");if(en.prefix.length<(eo.minPrefixLength||0))throw Error(`Prefix too short: ${en.prefix.length} bytes`);let ea=(eo.childOrder.length-1)*eo.childSize;if(en.prefix.length>(eo.maxPrefixLength||0)+ea)throw Error(`Prefix too long: ${en.prefix.length} bytes`)}function ensurePrefix(en,ei){if(ei&&0!==ei.length){if(!en)throw Error("Target bytes missing");ensureBytesEqual(ei,en.slice(0,ei.length))}}function ensureBytesEqual(en,ei){if(en.length!==ei.length)throw Error(`Different lengths ${en.length} vs ${ei.length}`);for(let eo=0;eo<en.length;eo++)if(en[eo]!==ei[eo])throw Error(`Arrays differ at index ${eo}: ${en[eo]} vs ${ei[eo]}`)}function bytesEqual(en,ei){if(en.length!==ei.length)return!1;for(let eo=0;eo<en.length;eo++)if(en[eo]!==ei[eo])return!1;return!0}function hasPrefix(en,ei){if(!ei||0===ei.length||!en||en.length<=ei.length)return!1;for(let eo=0;eo<ei.length;eo++)if(en[eo]!==ei[eo])return!1;throw!0}function ensureBytesBefore(en,ei){if(!bytesBefore(en,ei))throw Error("first is after last")}function bytesBefore(en,ei){let eo=en.length<ei.length?en.length:ei.length;for(let ea=0;ea<eo;ea++){if(en[ea]<ei[ea])return!0;if(en[ea]>ei[ea])return!1}return en.length<ei.length}Object.defineProperty(ei,"__esModule",{value:!0}),ei.bytesBefore=ei.ensureBytesBefore=ei.bytesEqual=ei.ensureBytesEqual=ei.ensureInner=ei.ensureLeaf=void 0,ei.ensureLeaf=ensureLeaf,ei.ensureInner=ensureInner,ei.ensureBytesEqual=ensureBytesEqual,ei.bytesEqual=bytesEqual,ei.ensureBytesBefore=ensureBytesBefore,ei.bytesBefore=bytesBefore},73302:function(en,ei,eo){"use strict";en.exports=eo(96401)},96401:function(en,ei,eo){"use strict";var ea=ei;function configure(){ea.util._configure(),ea.Writer._configure(ea.BufferWriter),ea.Reader._configure(ea.BufferReader)}ea.build="minimal",ea.Writer=eo(77490),ea.BufferWriter=eo(97094),ea.Reader=eo(952),ea.BufferReader=eo(43318),ea.util=eo(10493),ea.rpc=eo(77365),ea.roots=eo(76756),ea.configure=configure,configure()},952:function(en,ei,eo){"use strict";en.exports=Reader;var ea,es=eo(10493),ed=es.LongBits,eu=es.utf8;function indexOutOfRange(en,ei){return RangeError("index out of range: "+en.pos+" + "+(ei||1)+" > "+en.len)}function Reader(en){this.buf=en,this.pos=0,this.len=en.length}var ef="undefined"!=typeof Uint8Array?function(en){if(en instanceof Uint8Array||Array.isArray(en))return new Reader(en);throw Error("illegal buffer")}:function(en){if(Array.isArray(en))return new Reader(en);throw Error("illegal buffer")},create=function(){return es.Buffer?function(en){return(Reader.create=function(en){return es.Buffer.isBuffer(en)?new ea(en):ef(en)})(en)}:ef};function readLongVarint(){var en=new ed(0,0),ei=0;if(this.len-this.pos>4){for(;ei<4;++ei)if(en.lo=(en.lo|(127&this.buf[this.pos])<<7*ei)>>>0,this.buf[this.pos++]<128)return en;if(en.lo=(en.lo|(127&this.buf[this.pos])<<28)>>>0,en.hi=(en.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return en;ei=0}else{for(;ei<3;++ei){if(this.pos>=this.len)throw indexOutOfRange(this);if(en.lo=(en.lo|(127&this.buf[this.pos])<<7*ei)>>>0,this.buf[this.pos++]<128)return en}return en.lo=(en.lo|(127&this.buf[this.pos++])<<7*ei)>>>0,en}if(this.len-this.pos>4){for(;ei<5;++ei)if(en.hi=(en.hi|(127&this.buf[this.pos])<<7*ei+3)>>>0,this.buf[this.pos++]<128)return en}else for(;ei<5;++ei){if(this.pos>=this.len)throw indexOutOfRange(this);if(en.hi=(en.hi|(127&this.buf[this.pos])<<7*ei+3)>>>0,this.buf[this.pos++]<128)return en}throw Error("invalid varint encoding")}function readFixed32_end(en,ei){return(en[ei-4]|en[ei-3]<<8|en[ei-2]<<16|en[ei-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new ed(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=es.Array.prototype.subarray||es.Array.prototype.slice,Reader.prototype.uint32=function(){var en=4294967295;return function(){if(en=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(en=(en|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(en=(en|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(en=(en|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(en=(en|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return en;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return en}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var en=this.uint32();return en>>>1^-(1&en)|0},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var en=es.float.readFloatLE(this.buf,this.pos);return this.pos+=4,en},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var en=es.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,en},Reader.prototype.bytes=function(){var en=this.uint32(),ei=this.pos,eo=this.pos+en;if(eo>this.len)throw indexOutOfRange(this,en);return(this.pos+=en,Array.isArray(this.buf))?this.buf.slice(ei,eo):ei===eo?new this.buf.constructor(0):this._slice.call(this.buf,ei,eo)},Reader.prototype.string=function(){var en=this.bytes();return eu.read(en,0,en.length)},Reader.prototype.skip=function(en){if("number"==typeof en){if(this.pos+en>this.len)throw indexOutOfRange(this,en);this.pos+=en}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.prototype.skipType=function(en){switch(en){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(en=7&this.uint32());)this.skipType(en);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+en+" at offset "+this.pos)}return this}
2,Reader._configure=function(en){ea=en,Reader.create=create(),ea._configure();var ei=es.Long?"toLong":"toNumber";es.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[ei](!1)},uint64:function(){return readLongVarint.call(this)[ei](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[ei](!1)},fixed64:function(){return readFixed64.call(this)[ei](!0)},sfixed64:function(){return readFixed64.call(this)[ei](!1)}})}},43318:function(en,ei,eo){"use strict";en.exports=BufferReader;var ea=eo(952);(BufferReader.prototype=Object.create(ea.prototype)).constructor=BufferReader;var es=eo(10493);function BufferReader(en){ea.call(this,en)}BufferReader._configure=function(){es.Buffer&&(BufferReader.prototype._slice=es.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var en=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+en,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+en,this.len))},BufferReader._configure()},76756:function(en){"use strict";en.exports={}},77365:function(en,ei,eo){"use strict";ei.Service=eo(81216)},81216:function(en,ei,eo){"use strict";en.exports=Service;var ea=eo(10493);function Service(en,ei,eo){if("function"!=typeof en)throw TypeError("rpcImpl must be a function");ea.EventEmitter.call(this),this.rpcImpl=en,this.requestDelimited=!!ei,this.responseDelimited=!!eo}(Service.prototype=Object.create(ea.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(en,ei,eo,es,ed){if(!es)throw TypeError("request must be specified");var eu=this;if(!ed)return ea.asPromise(rpcCall,eu,en,ei,eo,es);if(!eu.rpcImpl){setTimeout(function(){ed(Error("already ended"))},0);return}try{return eu.rpcImpl(en,ei[eu.requestDelimited?"encodeDelimited":"encode"](es).finish(),function(ei,ea){if(ei)return eu.emit("error",ei,en),ed(ei);if(null===ea){eu.end(!0);return}if(!(ea instanceof eo))try{ea=eo[eu.responseDelimited?"decodeDelimited":"decode"](ea)}catch(ei){return eu.emit("error",ei,en),ed(ei)}return eu.emit("data",ea,en),ed(null,ea)})}catch(ei){eu.emit("error",ei,en),setTimeout(function(){ed(ei)},0);return}},Service.prototype.end=function(en){return this.rpcImpl&&(en||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},77372:function(en,ei,eo){"use strict";en.exports=LongBits;var ea=eo(10493);function LongBits(en,ei){this.lo=en>>>0,this.hi=ei>>>0}var es=LongBits.zero=new LongBits(0,0);es.toNumber=function(){return 0},es.zzEncode=es.zzDecode=function(){return this},es.length=function(){return 1};var ed=LongBits.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";LongBits.fromNumber=function(en){if(0===en)return es;var ei=en<0;ei&&(en=-en);var eo=en>>>0,ea=(en-eo)/4294967296>>>0;return ei&&(ea=~ea>>>0,eo=~eo>>>0,++eo>4294967295&&(eo=0,++ea>4294967295&&(ea=0))),new LongBits(eo,ea)},LongBits.from=function(en){if("number"==typeof en)return LongBits.fromNumber(en);if(ea.isString(en)){if(!ea.Long)return LongBits.fromNumber(parseInt(en,10));en=ea.Long.fromString(en)}return en.low||en.high?new LongBits(en.low>>>0,en.high>>>0):es},LongBits.prototype.toNumber=function(en){if(!en&&this.hi>>>31){var ei=~this.lo+1>>>0,eo=~this.hi>>>0;return ei||(eo=eo+1>>>0),-(ei+4294967296*eo)}return this.lo+4294967296*this.hi},LongBits.prototype.toLong=function(en){return ea.Long?new ea.Long(0|this.lo,0|this.hi,!!en):{low:0|this.lo,high:0|this.hi,unsigned:!!en}};var eu=String.prototype.charCodeAt;LongBits.fromHash=function(en){return en===ed?es:new LongBits((eu.call(en,0)|eu.call(en,1)<<8|eu.call(en,2)<<16|eu.call(en,3)<<24)>>>0,(eu.call(en,4)|eu.call(en,5)<<8|eu.call(en,6)<<16|eu.call(en,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var en=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^en)>>>0,this.lo=(this.lo<<1^en)>>>0,this},LongBits.prototype.zzDecode=function(){var en=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^en)>>>0,this.hi=(this.hi>>>1^en)>>>0,this},LongBits.prototype.length=function(){var en=this.lo,ei=(this.lo>>>28|this.hi<<4)>>>0,eo=this.hi>>>24;return 0===eo?0===ei?en<16384?en<128?1:2:en<2097152?3:4:ei<16384?ei<128?5:6:ei<2097152?7:8:eo<128?9:10}},10493:function(en,ei,eo){"use strict";var ea=ei;function merge(en,ei,eo){for(var ea=Object.keys(ei),es=0;es<ea.length;++es)void 0!==en[ea[es]]&&eo||(en[ea[es]]=ei[ea[es]]);return en}function newError(en){function CustomError(en,ei){if(!(this instanceof CustomError))return new CustomError(en,ei);Object.defineProperty(this,"message",{get:function(){return en}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),ei&&merge(this,ei)}return(CustomError.prototype=Object.create(Error.prototype)).constructor=CustomError,Object.defineProperty(CustomError.prototype,"name",{get:function(){return en}}),CustomError.prototype.toString=function(){return this.name+": "+this.message},CustomError}
vendor: 6,167 bytes, line 2
2ea.asPromise=eo(34537),ea.base64=eo(97419),ea.EventEmitter=eo(19211),ea.float=eo(10945),ea.inquire=eo(67199),ea.utf8=eo(94997),ea.pool=eo(76662),ea.LongBits=eo(77372),ea.isNode=!!(void 0!==eo.g&&eo.g&&eo.g.process&&eo.g.process.versions&&eo.g.process.versions.node),ea.global=ea.isNode&&eo.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,ea.emptyArray=Object.freeze?Object.freeze([]):[],ea.emptyObject=Object.freeze?Object.freeze({}):{},ea.isInteger=Number.isInteger||function(en){return"number"==typeof en&&isFinite(en)&&Math.floor(en)===en},ea.isString=function(en){return"string"==typeof en||en instanceof String},ea.isObject=function(en){return en&&"object"==typeof en},ea.isset=ea.isSet=function(en,ei){var eo=en[ei];return!!(null!=eo&&en.hasOwnProperty(ei))&&("object"!=typeof eo||(Array.isArray(eo)?eo.length:Object.keys(eo).length)>0)},ea.Buffer=function(){try{var en=ea.inquire("buffer").Buffer;return en.prototype.utf8Write?en:null}catch(en){return null}}(),ea._Buffer_from=null,ea._Buffer_allocUnsafe=null,ea.newBuffer=function(en){return"number"==typeof en?ea.Buffer?ea._Buffer_allocUnsafe(en):new ea.Array(en):ea.Buffer?ea._Buffer_from(en):"undefined"==typeof Uint8Array?en:new Uint8Array(en)},ea.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,ea.Long=ea.global.dcodeIO&&ea.global.dcodeIO.Long||ea.global.Long||ea.inquire("long"),ea.key2Re=/^true|false|0|1$/,ea.key32Re=/^-?(?:0|[1-9][0-9]*)$/,ea.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,ea.longToHash=function(en){return en?ea.LongBits.from(en).toHash():ea.LongBits.zeroHash},ea.longFromHash=function(en,ei){var eo=ea.LongBits.fromHash(en);return ea.Long?ea.Long.fromBits(eo.lo,eo.hi,ei):eo.toNumber(!!ei)},ea.merge=merge,ea.lcFirst=function(en){return en.charAt(0).toLowerCase()+en.substring(1)},ea.newError=newError,ea.ProtocolError=newError("ProtocolError"),ea.oneOfGetter=function(en){for(var ei={},eo=0;eo<en.length;++eo)ei[en[eo]]=1;return function(){for(var en=Object.keys(this),eo=en.length-1;eo>-1;--eo)if(1===ei[en[eo]]&&void 0!==this[en[eo]]&&null!==this[en[eo]])return en[eo]}},ea.oneOfSetter=function(en){return function(ei){for(var eo=0;eo<en.length;++eo)en[eo]!==ei&&delete this[en[eo]]}},ea.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},ea._configure=function(){var en=ea.Buffer;if(!en){ea._Buffer_from=ea._Buffer_allocUnsafe=null;return}ea._Buffer_from=en.from!==Uint8Array.from&&en.from||function(ei,eo){return new en(ei,eo)},ea._Buffer_allocUnsafe=en.allocUnsafe||function(ei){return new en(ei)}}},77490:function(en,ei,eo){"use strict";en.exports=Writer;var ea,es=eo(10493),ed=es.LongBits,eu=es.base64,ef=es.utf8;function Op(en,ei,eo){this.fn=en,this.len=ei,this.next=void 0,this.val=eo}function noop(){}function State(en){this.head=en.head,this.tail=en.tail,this.len=en.len,this.next=en.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return es.Buffer?function(){return(Writer.create=function(){return new ea})()}:function(){return new Writer}};function writeByte(en,ei,eo){ei[eo]=255&en}function writeVarint32(en,ei,eo){for(;en>127;)ei[eo++]=127&en|128,en>>>=7;ei[eo]=en}function VarintOp(en,ei){this.len=en,this.next=void 0,this.val=ei}function writeVarint64(en,ei,eo){for(;en.hi;)ei[eo++]=127&en.lo|128,en.lo=(en.lo>>>7|en.hi<<25)>>>0,en.hi>>>=7;for(;en.lo>127;)ei[eo++]=127&en.lo|128,en.lo=en.lo>>>7;ei[eo++]=en.lo}function writeFixed32(en,ei,eo){ei[eo]=255&en,ei[eo+1]=en>>>8&255,ei[eo+2]=en>>>16&255,ei[eo+3]=en>>>24}Writer.create=create(),Writer.alloc=function(en){return new es.Array(en)},es.Array!==Array&&(Writer.alloc=es.pool(Writer.alloc,es.Array.prototype.subarray)),Writer.prototype._push=function(en,ei,eo){return this.tail=this.tail.next=new Op(en,ei,eo),this.len+=ei,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(en){return this.len+=(this.tail=this.tail.next=new VarintOp((en>>>=0)<128?1:en<16384?2:en<2097152?3:en<268435456?4:5,en)).len,this},Writer.prototype.int32=function(en){return en<0?this._push(writeVarint64,10,ed.fromNumber(en)):this.uint32(en)},Writer.prototype.sint32=function(en){return this.uint32((en<<1^en>>31)>>>0)},Writer.prototype.uint64=function(en){var ei=ed.from(en);return this._push(writeVarint64,ei.length(),ei)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(en){var ei=ed.from(en).zzEncode();return this._push(writeVarint64,ei.length(),ei)},Writer.prototype.bool=function(en){return this._push(writeByte,1,en?1:0)},Writer.prototype.fixed32=function(en){return this._push(writeFixed32,4,en>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(en){var ei=ed.from(en);return this._push(writeFixed32,4,ei.lo)._push(writeFixed32,4,ei.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(en){return this._push(es.float.writeFloatLE,4,en)},Writer.prototype.double=function(en){return this._push(es.float.writeDoubleLE,8,en)};var ep=es.Array.prototype.set?function(en,ei,eo){ei.set(en,eo)}:function(en,ei,eo){for(var ea=0;ea<en.length;++ea)ei[eo+ea]=en[ea]};Writer.prototype.bytes=function(en){var ei=en.length>>>0;if(!ei)return this._push(writeByte,1,0);if(es.isString(en)){var eo=Writer.alloc(ei=eu.length(en));eu.decode(en,eo,0),en=eo}return this.uint32(ei)._push(ep,ei,en)},Writer.prototype.string=function(en){var ei=ef.length(en);return ei?this.uint32(ei)._push(ef.write,ei,en):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var en=this.head,ei=this.tail,eo=this.len;return this.reset().uint32(eo),eo&&(this.tail.next=en.next,this.tail=ei,this.len+=eo),this},Writer.prototype.finish=function(){for(var en=this.head.next,ei=this.constructor.alloc(this.len),eo=0;en;
2)en.fn(en.val,ei,eo),eo+=en.len,en=en.next;return ei},Writer._configure=function(en){ea=en,Writer.create=create(),ea._configure()}},97094:function(en,ei,eo){"use strict";en.exports=BufferWriter;var ea=eo(77490);(BufferWriter.prototype=Object.create(ea.prototype)).constructor=BufferWriter;var es=eo(10493);function BufferWriter(){ea.call(this)}function writeStringBuffer(en,ei,eo){en.length<40?es.utf8.write(en,ei,eo):ei.utf8Write?ei.utf8Write(en,eo):ei.write(en,eo)}BufferWriter._configure=function(){BufferWriter.alloc=es._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=es.Buffer&&es.Buffer.prototype instanceof Uint8Array&&"set"===es.Buffer.prototype.set.name?function(en,ei,eo){ei.set(en,eo)}:function(en,ei,eo){if(en.copy)en.copy(ei,eo,0,en.length);else for(var ea=0;ea<en.length;)ei[eo++]=en[ea++]}},BufferWriter.prototype.bytes=function(en){es.isString(en)&&(en=es._Buffer_from(en,"base64"));var ei=en.length>>>0;return this.uint32(ei),ei&&this._push(BufferWriter.writeBytesBuffer,ei,en),this},BufferWriter.prototype.string=function(en){var ei=es.Buffer.byteLength(en);return this.uint32(ei),ei&&this._push(writeStringBuffer,ei,en),this},BufferWriter._configure()},43217:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.pubkeyToAddress=ei.pubkeyToRawAddress=ei.rawSecp256k1PubkeyToRawAddress=ei.rawEd25519PubkeyToRawAddress=void 0;let ea=eo(79562),es=eo(28972),ed=eo(90011),eu=eo(93554);function rawEd25519PubkeyToRawAddress(en){if(32!==en.length)throw Error(`Invalid Ed25519 pubkey length: ${en.length}`);return(0,ea.sha256)(en).slice(0,20)}function rawSecp256k1PubkeyToRawAddress(en){if(33!==en.length)throw Error(`Invalid Secp256k1 pubkey length (compressed): ${en.length}`);return(0,ea.ripemd160)((0,ea.sha256)(en))}function pubkeyToRawAddress(en){if((0,eu.isSecp256k1Pubkey)(en)){let ei=(0,es.fromBase64)(en.value);return rawSecp256k1PubkeyToRawAddress(ei)}if((0,eu.isEd25519Pubkey)(en)){let ei=(0,es.fromBase64)(en.value);return rawEd25519PubkeyToRawAddress(ei)}if((0,eu.isMultisigThresholdPubkey)(en)){let ei=(0,ed.encodeAminoPubkey)(en);return(0,ea.sha256)(ei).slice(0,20)}throw Error("Unsupported public key type")}function pubkeyToAddress(en,ei){return(0,es.toBech32)(ei,pubkeyToRawAddress(en))}ei.rawEd25519PubkeyToRawAddress=rawEd25519PubkeyToRawAddress,ei.rawSecp256k1PubkeyToRawAddress=rawSecp256k1PubkeyToRawAddress,ei.pubkeyToRawAddress=pubkeyToRawAddress,ei.pubkeyToAddress=pubkeyToAddress},28709:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.addCoins=ei.parseCoins=ei.coins=ei.coin=void 0;let ea=eo(62949);function coin(en,ei){let eo;if("number"==typeof en)try{eo=new ea.Uint53(en).toString()}catch(en){throw Error("Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.")}else{if(!en.match(/^[0-9]+$/))throw Error("Invalid unsigned integer string format");eo=en.replace(/^0*/,"")||"0"}return{amount:eo,denom:ei}}function coins(en,ei){return[coin(en,ei)]}function parseCoins(en){return en.replace(/\s/g,"").split(",").filter(Boolean).map(en=>{let ei=en.match(/^([0-9]+)([a-zA-Z]+)/);if(!ei)throw Error("Got an invalid coin string");return{amount:ei[1].replace(/^0+/,"")||"0",denom:ei[2]}})}function addCoins(en,ei){if(en.denom!==ei.denom)throw Error("Trying to add two coins with different denoms");return{amount:ea.Decimal.fromAtomics(en.amount,0).plus(ea.Decimal.fromAtomics(ei.amount,0)).atomics,denom:en.denom}}ei.coin=coin,ei.coins=coins,ei.parseCoins=parseCoins,ei.addCoins=addCoins},90011:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.encodeBech32Pubkey=ei.encodeAminoPubkey=ei.decodeBech32Pubkey=ei.decodeAminoPubkey=ei.encodeEd25519Pubkey=ei.encodeSecp256k1Pubkey=void 0;let ea=eo(28972),es=eo(62949),ed=eo(85553),eu=eo(93554);function encodeSecp256k1Pubkey(en){if(33!==en.length||2!==en[0]&&3!==en[0])throw Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:eu.pubkeyType.secp256k1,value:(0,ea.toBase64)(en)}}function encodeEd25519Pubkey(en){if(32!==en.length)throw Error("Ed25519 public key must be 32 bytes long");return{type:eu.pubkeyType.ed25519,value:(0,ea.toBase64)(en)}}ei.encodeSecp256k1Pubkey=encodeSecp256k1Pubkey,ei.encodeEd25519Pubkey=encodeEd25519Pubkey;let ef=(0,ea.fromHex)("eb5ae98721"),ep=(0,ea.fromHex)("1624de6420"),em=(0,ea.fromHex)("0dfb100520"),eg=(0,ea.fromHex)("22c1f7e2");function decodeAminoPubkey(en){if((0,ed.arrayContentStartsWith)(en,ef)){let ei=en.slice(ef.length);if(33!==ei.length)throw Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:eu.pubkeyType.secp256k1,value:(0,ea.toBase64)(ei)}}if((0,ed.arrayContentStartsWith)(en,ep)){let ei=en.slice(ep.length);if(32!==ei.length)throw Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:eu.pubkeyType.ed25519,value:(0,ea.toBase64)(ei)}}if((0,ed.arrayContentStartsWith)(en,em)){let ei=en.slice(em.length);if(32!==ei.length)throw Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:eu.pubkeyType.sr25519,value:(0,ea.toBase64)(ei)}}if((0,ed.arrayContentStartsWith)(en,eg))return decodeMultisigPubkey(en);throw Error("Unsupported public key type. Amino data starts with: "+(0,ea.toHex)(en.slice(0,5)))}function decodeBech32Pubkey(en){let{data:ei}=(0,ea.fromBech32)(en);return decodeAminoPubkey(ei)}
2function decodeUvarint(en){if(en.length<1)throw Error("Can't decode varint. EOF");if(en[0]>127)throw Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[en[0],1]}function decodeMultisigPubkey(en){let ei=Array.from(en),eo=ei.splice(0,eg.length);if(!(0,ed.arrayContentStartsWith)(eo,eg))throw Error("Invalid multisig prefix.");if(8!=ei.shift())throw Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");let[ea,es]=decodeUvarint(ei);ei.splice(0,es);let ef=[];for(;ei.length>0;){if(18!=ei.shift())throw Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");let[en,eo]=decodeUvarint(ei);if(ei.splice(0,eo),ei.length<en)throw Error("Invalid multisig data length.");let ea=ei.splice(0,en),es=decodeAminoPubkey(Uint8Array.from(ea));ef.push(es)}return{type:eu.pubkeyType.multisigThreshold,value:{threshold:ea.toString(),pubkeys:ef}}}function encodeUvarint(en){let ei=es.Uint53.fromString(en.toString()).toNumber();if(ei>127)throw Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[ei]}function encodeAminoPubkey(en){if((0,eu.isMultisigThresholdPubkey)(en)){let ei=Array.from(eg);for(let eo of(ei.push(8),ei.push(...encodeUvarint(en.value.threshold)),en.value.pubkeys.map(en=>encodeAminoPubkey(en))))ei.push(18),ei.push(...encodeUvarint(eo.length)),ei.push(...eo);return new Uint8Array(ei)}if((0,eu.isEd25519Pubkey)(en))return new Uint8Array([...ep,...(0,ea.fromBase64)(en.value)]);if((0,eu.isSecp256k1Pubkey)(en))return new Uint8Array([...ef,...(0,ea.fromBase64)(en.value)]);throw Error("Unsupported pubkey type")}function encodeBech32Pubkey(en,ei){return(0,ea.toBech32)(ei,encodeAminoPubkey(en))}ei.decodeAminoPubkey=decodeAminoPubkey,ei.decodeBech32Pubkey=decodeBech32Pubkey,ei.encodeAminoPubkey=encodeAminoPubkey,ei.encodeBech32Pubkey=encodeBech32Pubkey},33359:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.executeKdf=ei.makeStdTx=ei.isStdTx=ei.serializeSignDoc=ei.makeSignDoc=ei.encodeSecp256k1Signature=ei.decodeSignature=ei.Secp256k1Wallet=ei.Secp256k1HdWallet=ei.extractKdfConfiguration=ei.pubkeyType=ei.isSinglePubkey=ei.isSecp256k1Pubkey=ei.isMultisigThresholdPubkey=ei.isEd25519Pubkey=ei.makeCosmoshubPath=ei.createMultisigThresholdPubkey=ei.encodeSecp256k1Pubkey=ei.encodeEd25519Pubkey=ei.encodeBech32Pubkey=ei.encodeAminoPubkey=ei.decodeBech32Pubkey=ei.decodeAminoPubkey=ei.parseCoins=ei.coins=ei.coin=ei.addCoins=ei.rawSecp256k1PubkeyToRawAddress=ei.rawEd25519PubkeyToRawAddress=ei.pubkeyToRawAddress=ei.pubkeyToAddress=void 0;var ea=eo(43217);Object.defineProperty(ei,"pubkeyToAddress",{enumerable:!0,get:function(){return ea.pubkeyToAddress}}),Object.defineProperty(ei,"pubkeyToRawAddress",{enumerable:!0,get:function(){return ea.pubkeyToRawAddress}}),Object.defineProperty(ei,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return ea.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(ei,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return ea.rawSecp256k1PubkeyToRawAddress}});var es=eo(28709);Object.defineProperty(ei,"addCoins",{enumerable:!0,get:function(){return es.addCoins}}),Object.defineProperty(ei,"coin",{enumerable:!0,get:function(){return es.coin}}),Object.defineProperty(ei,"coins",{enumerable:!0,get:function(){return es.coins}}),Object.defineProperty(ei,"parseCoins",{enumerable:!0,get:function(){return es.parseCoins}});var ed=eo(90011);Object.defineProperty(ei,"decodeAminoPubkey",{enumerable:!0,get:function(){return ed.decodeAminoPubkey}}),Object.defineProperty(ei,"decodeBech32Pubkey",{enumerable:!0,get:function(){return ed.decodeBech32Pubkey}}),Object.defineProperty(ei,"encodeAminoPubkey",{enumerable:!0,get:function(){return ed.encodeAminoPubkey}}),Object.defineProperty(ei,"encodeBech32Pubkey",{enumerable:!0,get:function(){return ed.encodeBech32Pubkey}}),Object.defineProperty(ei,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return ed.encodeEd25519Pubkey}}),Object.defineProperty(ei,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return ed.encodeSecp256k1Pubkey}});var eu=eo(37851);Object.defineProperty(ei,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return eu.createMultisigThresholdPubkey}});var ef=eo(959);Object.defineProperty(ei,"makeCosmoshubPath",{enumerable:!0,get:function(){return ef.makeCosmoshubPath}});var ep=eo(93554);Object.defineProperty(ei,"isEd25519Pubkey",{enumerable:!0,get:function(){return ep.isEd25519Pubkey}}),Object.defineProperty(ei,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return ep.isMultisigThresholdPubkey}}),Object.defineProperty(ei,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return ep.isSecp256k1Pubkey}}),Object.defineProperty(ei,"isSinglePubkey",{enumerable:!0,get:function(){return ep.isSinglePubkey}}),Object.defineProperty(ei,"pubkeyType",{enumerable:!0,get:function(){return ep.pubkeyType}});var em=eo(84531);Object.defineProperty(ei,"extractKdfConfiguration",{enumerable:!0,get:function(){return em.extractKdfConfiguration}}),Object.defineProperty(ei,"Secp256k1HdWallet",{enumerable:!0,get:function(){return em.Secp256k1HdWallet}});var eg=eo(71295);Object.defineProperty(ei,"Secp256k1Wallet",{enumerable:!0,get:function(){return eg.Secp256k1Wallet}});var ey=eo(6891);Object.defineProperty(ei,"decodeSignature",{enumerable:!0,get:function(){return ey.decodeSignature}}),Object.defineProperty(ei,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return ey.encodeSecp256k1Signature}});var eb=eo(21361);Object.defineProperty(ei,"makeSignDoc",{enumerable:!0,get:function(){return eb.makeSignDoc}}),Object.defineProperty(ei,"serializeSignDoc",{enumerable:!0,get:function(){return eb.serializeSignDoc}});var eS=eo(60489);Object.defineProperty(ei,"isStdTx",{enumerable:!0,get:function(){return eS.isStdTx}}),Object.defineProperty(ei,"makeStdTx",{enumerable:!0,get:function(){return eS.makeStdTx}});var e_=eo(65077);Object.defineProperty(ei,"executeKdf",{enumerable:!0,get:function(){return e_.executeKdf}})},37851:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createMultisigThresholdPubkey=ei.compareArrays=void 0;let ea=eo(28972),es=eo(62949),ed=eo(43217);function compareArrays(en,ei){let eo=(0,ea.toHex)(en),es=(0,ea.toHex)(ei);return eo===es?0:eo<es?-1:1}function createMultisigThresholdPubkey(en,ei,eo=!1){let ea=new es.Uint53(ei);if(ea.toNumber()>en.length)throw Error(`Threshold k = ${ea.toNumber()} exceeds number of keys n = ${en.length}`);let eu=eo?en:Array.from(en).sort((en,ei)=>{let eo=(0,ed.pubkeyToRawAddress)(en),ea=(0,ed.pubkeyToRawAddress)(ei);return compareArrays(eo,ea)});return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:ea.toString(),pubkeys:eu}}}ei.compareArrays=compareArrays,ei.createMultisigThresholdPubkey=createMultisigThresholdPubkey},959:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.makeCosmoshubPath=void 0;let ea=eo(79562);function makeCosmoshubPath(en){return[ea.Slip10RawIndex.hardened(44),ea.Slip10RawIndex.hardened(118),ea.Slip10RawIndex.hardened(0),ea.Slip10RawIndex.normal(0),ea.Slip10RawIndex.normal(en)]}ei.makeCosmoshubPath=makeCosmoshubPath},93554:function(en,ei){"use strict";function isEd25519Pubkey(en){return"tendermint/PubKeyEd25519"===en.type}function isSecp256k1Pubkey(en){return"tendermint/PubKeySecp256k1"===en.type}function isSinglePubkey(en){let eo=[ei.pubkeyType.ed25519,ei.pubkeyType.secp256k1,ei.pubkeyType.sr25519];return eo.includes(en.type)}function isMultisigThresholdPubkey(en){return"tendermint/PubKeyMultisigThreshold"===en.type}Object.defineProperty(ei,"__esModule",{value:!0}),ei.isMultisigThresholdPubkey=ei.isSinglePubkey=ei.pubkeyType=ei.isSecp256k1Pubkey=ei.isEd25519Pubkey=void 0,ei.isEd25519Pubkey=isEd25519Pubkey,ei.isSecp256k1Pubkey=isSecp256k1Pubkey,ei.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"},ei.isSinglePubkey=isSinglePubkey,ei.isMultisigThresholdPubkey=isMultisigThresholdPubkey},84531:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Secp256k1HdWallet=ei.extractKdfConfiguration=void 0;let ea=eo(79562),es=eo(28972),ed=eo(85553),eu=eo(43217),ef=eo(959),ep=eo(6891),em=eo(21361),eg=eo(65077),ey="secp256k1wallet-v1",eb={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};function isDerivationJson(en){return!!(0,ed.isNonNullObject)(en)&&"string"==typeof en.hdPath&&"string"==typeof en.prefix}function extractKdfConfigurationV1(en){return en.kdf}function extractKdfConfiguration(en){let ei=JSON.parse(en);if(!(0,ed.isNonNullObject)(ei))throw Error("Root document is not an object.");if(ei.type===ey)return extractKdfConfigurationV1(ei);throw Error("Unsupported serialization type")}ei.extractKdfConfiguration=extractKdfConfiguration;let eS={bip39Password:"",hdPaths:[(0,ef.makeCosmoshubPath)(0)],prefix:"cosmos"};let Secp256k1HdWallet=class Secp256k1HdWallet{static async fromMnemonic(en,ei={}){let eo=new ea.EnglishMnemonic(en),es=await ea.Bip39.mnemonicToSeed(eo,ei.bip39Password);return new Secp256k1HdWallet(eo,{...ei,seed:es})}static async generate(en=12,ei={}){let eo=4*Math.floor(11*en/33),es=ea.Random.getBytes(eo),ed=ea.Bip39.encode(es);return Secp256k1HdWallet.fromMnemonic(ed.toString(),ei)}static async deserialize(en,ei){let eo=JSON.parse(en);if(!(0,ed.isNonNullObject)(eo))throw Error("Root document is not an object.");if(eo.type===ey)return Secp256k1HdWallet.deserializeTypeV1(en,ei);throw Error("Unsupported serialization type")}static async deserializeWithEncryptionKey(en,ei){let eo=JSON.parse(en);if(!(0,ed.isNonNullObject)(eo))throw Error("Root document is not an object.");let eu=eo;if(eu.type===ey){let en=await (0,eg.decrypt)((0,es.fromBase64)(eu.data),ei,eu.encryption),eo=JSON.parse((0,es.fromUtf8)(en)),{mnemonic:ef,accounts:ep}=eo;if((0,ed.assert)("string"==typeof ef),!Array.isArray(ep))throw Error("Property 'accounts' is not an array");if(!ep.every(en=>isDerivationJson(en)))throw Error("Account is not in the correct format.");let em=ep[0].prefix;if(!ep.every(({prefix:en})=>en===em))throw Error("Accounts do not all have the same prefix");let ey=ep.map(({hdPath:en})=>(0,ea.stringToPath)(en));return Secp256k1HdWallet.fromMnemonic(ef,{hdPaths:ey,prefix:em})}throw Error("Unsupported serialization type")}static async deserializeTypeV1(en,ei){let eo=JSON.parse(en);if(!(0,ed.isNonNullObject)(eo))throw Error("Root document is not an object.");let ea=await (0,eg.executeKdf)(ei,eo.kdf);return Secp256k1HdWallet.deserializeWithEncryptionKey(en,ea)}constructor(en,ei){let eo=ei.hdPaths??eS.hdPaths,ea=ei.prefix??eS.prefix;this.secret=en,this.seed=ei.seed,this.accounts=eo.map(en=>({hdPath:en,prefix:ea}))}get mnemonic(){return this.secret.toString()}async getAccounts(){let en=await this.getAccountsWithPrivkeys();return en.map(({algo:en,pubkey:ei,address:eo})=>({algo:en,pubkey:ei,address:eo}))}async signAmino(en,ei){let eo=await this.getAccountsWithPrivkeys(),es=eo.find(({address:ei})=>ei===en);if(void 0===es)throw Error(`Address ${en} not found in wallet`);let{privkey:ed,pubkey:eu}=es,ef=(0,ea.sha256)((0,em.serializeSignDoc)(ei)),eg=await ea.Secp256k1.createSignature(ef,ed),ey=new Uint8Array([...eg.r(32),...eg.s(32)]);return{signed:ei,signature:(0,ep.encodeSecp256k1Signature)(eu,ey)}}async serialize(en){let ei=eb,eo=await (0,eg.executeKdf)(en,ei);return this.serializeWithEncryptionKey(eo,ei)}async serializeWithEncryptionKey(en,ei){let eo={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:en,prefix:ei})=>({hdPath:(0,ea.pathToString)(en),prefix:ei}))},ed=(0,es.toUtf8)(JSON.stringify(eo)),eu={algorithm:eg.supportedAlgorithms.xchacha20poly1305Ietf},ef=await (0,eg.encrypt)(ed,en,eu),ep={type:ey,kdf:ei,encryption:eu,data:(0,es.toBase64)(ef)};return JSON.stringify(ep)}async getKeyPair(en){let{privkey:ei}=ea.Slip10.derivePath(ea.Slip10Curve.Secp256k1,this.seed,en),{pubkey:eo}=await ea.Secp256k1.makeKeypair(ei);return{privkey:ei,pubkey:ea.Secp256k1.compressPubkey(eo)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:en,prefix:ei})=>{let{privkey:eo,pubkey:ea}=await this.getKeyPair(en),ed=(0,es.toBech32)(ei,(0,eu.rawSecp256k1PubkeyToRawAddress)(ea));return{algo:"secp256k1",privkey:eo,pubkey:ea,address:ed}}))}};ei.Secp256k1HdWallet=Secp256k1HdWallet},71295:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Secp256k1Wallet=void 0;let ea=eo(79562),es=eo(28972),ed=eo(43217),eu=eo(6891),ef=eo(21361);let Secp256k1Wallet=class Secp256k1Wallet{static async fromKey(en,ei="cosmos"){let eo=(await ea.Secp256k1.makeKeypair(en)).pubkey;return new Secp256k1Wallet(en,ea.Secp256k1.compressPubkey(eo),ei)}constructor(en,ei,eo){this.privkey=en,this.pubkey=ei,this.prefix=eo}get address(){return(0,es.toBech32)(this.prefix,(0,ed.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(en,ei){if(en!==this.address)throw Error(`Address ${en} not found in wallet`);let eo=new ea.Sha256((0,ef.serializeSignDoc)(ei)).digest(),es=await ea.Secp256k1.createSignature(eo,this.privkey),ed=new Uint8Array([...es.r(32),...es.s(32)]);return{signed:ei,signature:(0,eu.encodeSecp256k1Signature)(this.pubkey,ed)}}};ei.Secp256k1Wallet=Secp256k1Wallet},6891:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decodeSignature=ei.encodeSecp256k1Signature=void 0;let ea=eo(28972),es=eo(90011),ed=eo(93554);function encodeSecp256k1Signature(en,ei){if(64!==ei.length)throw Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,es.encodeSecp256k1Pubkey)(en),signature:(0,ea.toBase64)(ei)}}function decodeSignature(en){if(en.pub_key.type===ed.pubkeyType.secp256k1)return{pubkey:(0,ea.fromBase64)(en.pub_key.value),signature:(0,ea.fromBase64)(en.signature)};throw Error("Unsupported pubkey type")}ei.encodeSecp256k1Signature=encodeSecp256k1Signature,ei.decodeSignature=decodeSignature},21361:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.serializeSignDoc=ei.escapeCharacters=ei.makeSignDoc=ei.sortedJsonStringify=void 0;let ea=eo(28972),es=eo(62949);function sortedObject(en){if("object"!=typeof en||null===en)return en;if(Array.isArray(en))return en.map(sortedObject);let ei=Object.keys(en).sort(),eo={};
2return ei.forEach(ei=>{eo[ei]=sortedObject(en[ei])}),eo}function sortedJsonStringify(en){return JSON.stringify(sortedObject(en))}function makeSignDoc(en,ei,eo,ea,ed,eu){return{chain_id:eo,account_number:es.Uint53.fromString(ed.toString()).toString(),sequence:es.Uint53.fromString(eu.toString()).toString(),fee:ei,msgs:en,memo:ea||""}}function escapeCharacters(en){let ei=/&/g,eo=/</g,ea=/>/g;return en.replace(ei,"\\u0026").replace(eo,"\\u003c").replace(ea,"\\u003e")}function serializeSignDoc(en){let ei=escapeCharacters(sortedJsonStringify(en));return(0,ea.toUtf8)(ei)}ei.sortedJsonStringify=sortedJsonStringify,ei.makeSignDoc=makeSignDoc,ei.escapeCharacters=escapeCharacters,ei.serializeSignDoc=serializeSignDoc},60489:function(en,ei){"use strict";function isStdTx(en){let{memo:ei,msg:eo,fee:ea,signatures:es}=en;return"string"==typeof ei&&Array.isArray(eo)&&"object"==typeof ea&&Array.isArray(es)}function makeStdTx(en,ei){return{msg:en.msgs,fee:en.fee,memo:en.memo,signatures:Array.isArray(ei)?ei:[ei]}}Object.defineProperty(ei,"__esModule",{value:!0}),ei.makeStdTx=ei.isStdTx=void 0,ei.isStdTx=isStdTx,ei.makeStdTx=makeStdTx},65077:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decrypt=ei.encrypt=ei.supportedAlgorithms=ei.executeKdf=ei.cosmjsSalt=void 0;let ea=eo(79562),es=eo(28972);async function executeKdf(en,eo){if("argon2id"===eo.algorithm){let es=eo.params;if(!(0,ea.isArgon2idOptions)(es))throw Error("Invalid format of argon2id params");return ea.Argon2id.execute(en,ei.cosmjsSalt,es)}throw Error("Unsupported KDF algorithm")}async function encrypt(en,eo,es){if(es.algorithm===ei.supportedAlgorithms.xchacha20poly1305Ietf){let ei=ea.Random.getBytes(ea.xchacha20NonceLength);return new Uint8Array([...ei,...await ea.Xchacha20poly1305Ietf.encrypt(en,eo,ei)])}throw Error(`Unsupported encryption algorithm: '${es.algorithm}'`)}async function decrypt(en,eo,es){if(es.algorithm===ei.supportedAlgorithms.xchacha20poly1305Ietf){let ei=en.slice(0,ea.xchacha20NonceLength);return ea.Xchacha20poly1305Ietf.decrypt(en.slice(ea.xchacha20NonceLength),eo,ei)}throw Error(`Unsupported encryption algorithm: '${es.algorithm}'`)}ei.cosmjsSalt=(0,es.toAscii)("The CosmJS salt."),ei.executeKdf=executeKdf,ei.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},ei.encrypt=encrypt,ei.decrypt=decrypt},99549:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Bip39=ei.EnglishMnemonic=ei.mnemonicToEntropy=ei.entropyToMnemonic=void 0;let ea=eo(28972),es=eo(42997),ed=eo(52387),eu=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","co
2ach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","
2initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","ric
2h","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function bytesToBitstring(en){return Array.from(en).map(en=>en.toString(2).padStart(8,"0")).join("")}function deriveChecksumBits(en){let ei=8*en.length,eo=ei/32,ea=(0,ed.sha256)(en);return bytesToBitstring(ea).slice(0,eo)}function bitstringToByte(en){return parseInt(en,2)}let ef=[16,20,24,28,32],ep=[12,15,18,21,24];function entropyToMnemonic(en){if(-1===ef.indexOf(en.length))throw Error("invalid input length");let ei=bytesToBitstring(en),eo=deriveChecksumBits(en),ea=ei+eo,es=ea.match(/(.{11})/g),ed=es.map(en=>{let ei=bitstringToByte(en);return eu[ei]});return ed.join(" ")}ei.entropyToMnemonic=entropyToMnemonic;let em="Invalid number of words",eg="Found word that is not in the wordlist",ey="Invalid entropy",eb="Invalid mnemonic checksum";function normalize(en){return en.normalize("NFKD")}function mnemonicToEntropy(en){let ei=normalize(en).split(" ");if(!ep.includes(ei.length))throw Error(em);let eo=ei.map(en=>{let ei=eu.indexOf(en);if(-1===ei)throw Error(eg);return ei.toString(2).padStart(11,"0")}).join(""),ea=32*Math.floor(eo.length/33),es=eo.slice(0,ea),ed=eo.slice(ea),ef=es.match(/(.{1,8})/g).map(bitstringToByte);if(ef.length<16||ef.length>32||ef.length%4!=0)throw Error(ey);let eS=Uint8Array.from(ef),e_=deriveChecksumBits(eS);if(e_!==ed)throw Error(eb);return eS}ei.mnemonicToEntropy=mnemonicToEntropy;let EnglishMnemonic=class EnglishMnemonic{constructor(en){if(!EnglishMnemonic.mnemonicMatcher.test(en))throw Error("Invalid mnemonic format");let ei=en.split(" "),eo=[12,15,18,21,24];if(-1===eo.indexOf(ei.length))throw Error(`Invalid word count in mnemonic (allowed: ${eo} got: ${ei.length})`);for(let en of ei)if(-1===EnglishMnemonic.wordlist.indexOf(en))throw Error("Mnemonic contains invali
2d word");mnemonicToEntropy(en),this.data=en}toString(){return this.data}};ei.EnglishMnemonic=EnglishMnemonic,EnglishMnemonic.wordlist=eu,EnglishMnemonic.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;let Bip39=class Bip39{static encode(en){return new EnglishMnemonic(entropyToMnemonic(en))}static decode(en){return mnemonicToEntropy(en.toString())}static async mnemonicToSeed(en,ei){let eo=(0,ea.toUtf8)(normalize(en.toString())),ed="mnemonic"+(ei?normalize(ei):""),eu=(0,ea.toUtf8)(ed);return(0,es.pbkdf2Sha512)(eo,eu,2048,64)}};ei.Bip39=Bip39},13955:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Hmac=void 0;let Hmac=class Hmac{constructor(en,ei){let eo=new en().blockSize;this.hash=ei=>new en().update(ei).digest();let ea=ei;if(ea.length>eo&&(ea=this.hash(ea)),ea.length<eo){let en=new Uint8Array(eo-ea.length);ea=new Uint8Array([...ea,...en])}this.oKeyPad=ea.map(en=>92^en),this.iKeyPad=ea.map(en=>54^en),this.messageHasher=new en,this.blockSize=eo,this.update(this.iKeyPad)}update(en){return this.messageHasher.update(en),this}digest(){let en=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...en]))}};ei.Hmac=Hmac},79562:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.stringToPath=ei.Slip10RawIndex=ei.slip10CurveFromString=ei.Slip10Curve=ei.Slip10=ei.pathToString=ei.sha512=ei.Sha512=ei.sha256=ei.Sha256=ei.Secp256k1Signature=ei.ExtendedSecp256k1Signature=ei.Secp256k1=ei.ripemd160=ei.Ripemd160=ei.Random=ei.Xchacha20poly1305Ietf=ei.xchacha20NonceLength=ei.isArgon2idOptions=ei.Ed25519Keypair=ei.Ed25519=ei.Argon2id=ei.keccak256=ei.Keccak256=ei.Hmac=ei.EnglishMnemonic=ei.Bip39=void 0;var ea=eo(99549);Object.defineProperty(ei,"Bip39",{enumerable:!0,get:function(){return ea.Bip39}}),Object.defineProperty(ei,"EnglishMnemonic",{enumerable:!0,get:function(){return ea.EnglishMnemonic}});var es=eo(13955);Object.defineProperty(ei,"Hmac",{enumerable:!0,get:function(){return es.Hmac}});var ed=eo(59372);Object.defineProperty(ei,"Keccak256",{enumerable:!0,get:function(){return ed.Keccak256}}),Object.defineProperty(ei,"keccak256",{enumerable:!0,get:function(){return ed.keccak256}});var eu=eo(53942);Object.defineProperty(ei,"Argon2id",{enumerable:!0,get:function(){return eu.Argon2id}}),Object.defineProperty(ei,"Ed25519",{enumerable:!0,get:function(){return eu.Ed25519}}),Object.defineProperty(ei,"Ed25519Keypair",{enumerable:!0,get:function(){return eu.Ed25519Keypair}}),Object.defineProperty(ei,"isArgon2idOptions",{enumerable:!0,get:function(){return eu.isArgon2idOptions}}),Object.defineProperty(ei,"xchacha20NonceLength",{enumerable:!0,get:function(){return eu.xchacha20NonceLength}}),Object.defineProperty(ei,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return eu.Xchacha20poly1305Ietf}});var ef=eo(616);Object.defineProperty(ei,"Random",{enumerable:!0,get:function(){return ef.Random}});var ep=eo(70568);Object.defineProperty(ei,"Ripemd160",{enumerable:!0,get:function(){return ep.Ripemd160}}),Object.defineProperty(ei,"ripemd160",{enumerable:!0,get:function(){return ep.ripemd160}});var em=eo(56649);Object.defineProperty(ei,"Secp256k1",{enumerable:!0,get:function(){return em.Secp256k1}});var eg=eo(58222);Object.defineProperty(ei,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return eg.ExtendedSecp256k1Signature}}),Object.defineProperty(ei,"Secp256k1Signature",{enumerable:!0,get:function(){return eg.Secp256k1Signature}});var ey=eo(52387);Object.defineProperty(ei,"Sha256",{enumerable:!0,get:function(){return ey.Sha256}}),Object.defineProperty(ei,"sha256",{enumerable:!0,get:function(){return ey.sha256}}),Object.defineProperty(ei,"Sha512",{enumerable:!0,get:function(){return ey.Sha512}}),Object.defineProperty(ei,"sha512",{enumerable:!0,get:function(){return ey.sha512}});var eb=eo(52081);Object.defineProperty(ei,"pathToString",{enumerable:!0,get:function(){return eb.pathToString}}),Object.defineProperty(ei,"Slip10",{enumerable:!0,get:function(){return eb.Slip10}}),Object.defineProperty(ei,"Slip10Curve",{enumerable:!0,get:function(){return eb.Slip10Curve}}),Object.defineProperty(ei,"slip10CurveFromString",{enumerable:!0,get:function(){return eb.slip10CurveFromString}}),Object.defineProperty(ei,"Slip10RawIndex",{enumerable:!0,get:function(){return eb.Slip10RawIndex}}),Object.defineProperty(ei,"stringToPath",{enumerable:!0,get:function(){return eb.stringToPath}})},59372:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.keccak256=ei.Keccak256=void 0;let ea=eo(85426),es=eo(49583);let Keccak256=class Keccak256{constructor(en){this.blockSize=64,this.impl=ea.keccak_256.create(),en&&this.update(en
2)}update(en){return this.impl.update((0,es.toRealUint8Array)(en)),this}digest(){return this.impl.digest()}};function keccak256(en){return new Keccak256(en).digest()}ei.Keccak256=Keccak256,ei.keccak256=keccak256},53942:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Xchacha20poly1305Ietf=ei.xchacha20NonceLength=ei.Ed25519=ei.Ed25519Keypair=ei.Argon2id=ei.isArgon2idOptions=void 0;let es=eo(85553),ed=ea(eo(98948));function isArgon2idOptions(en){return!!(0,es.isNonNullObject)(en)&&"number"==typeof en.outputLength&&"number"==typeof en.opsLimit&&"number"==typeof en.memLimitKib}ei.isArgon2idOptions=isArgon2idOptions;let Argon2id=class Argon2id{static async execute(en,ei,eo){return await ed.default.ready,ed.default.crypto_pwhash(eo.outputLength,en,ei,eo.opsLimit,1024*eo.memLimitKib,ed.default.crypto_pwhash_ALG_ARGON2ID13)}};ei.Argon2id=Argon2id;let Ed25519Keypair=class Ed25519Keypair{static fromLibsodiumPrivkey(en){if(64!==en.length)throw Error(`Unexpected key length ${en.length}. Must be 64.`);return new Ed25519Keypair(en.slice(0,32),en.slice(32,64))}constructor(en,ei){this.privkey=en,this.pubkey=ei}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}};ei.Ed25519Keypair=Ed25519Keypair;let Ed25519=class Ed25519{static async makeKeypair(en){await ed.default.ready;let ei=ed.default.crypto_sign_seed_keypair(en);return Ed25519Keypair.fromLibsodiumPrivkey(ei.privateKey)}static async createSignature(en,ei){return await ed.default.ready,ed.default.crypto_sign_detached(en,ei.toLibsodiumPrivkey())}static async verifySignature(en,ei,eo){return await ed.default.ready,ed.default.crypto_sign_verify_detached(en,ei,eo)}};ei.Ed25519=Ed25519,ei.xchacha20NonceLength=24;let Xchacha20poly1305Ietf=class Xchacha20poly1305Ietf{static async encrypt(en,ei,eo){await ed.default.ready;let ea=null;return ed.default.crypto_aead_xchacha20poly1305_ietf_encrypt(en,ea,null,eo,ei)}static async decrypt(en,ei,eo){await ed.default.ready;let ea=null;return ed.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,en,ea,eo,ei)}};ei.Xchacha20poly1305Ietf=Xchacha20poly1305Ietf},42997:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.pbkdf2Sha512=ei.pbkdf2Sha512Noble=ei.pbkdf2Sha512NodeCrypto=ei.pbkdf2Sha512Subtle=ei.getSubtle=ei.getNodeCrypto=void 0;let eu=eo(85553),ef=eo(29023),ep=eo(86262);async function getNodeCrypto(){try{let en=await Promise.resolve().then(()=>ed(eo(42474)));if("object"==typeof en&&Object.keys(en).length<=1)return;return en}catch{return}}async function getSubtle(){let en=globalThis?.crypto?.subtle;return en||(en=globalThis?.crypto?.webcrypto?.subtle),en}async function pbkdf2Sha512Subtle(en,ei,eo,ea,es){return(0,eu.assert)(en,"Argument subtle is falsy"),(0,eu.assert)("object"==typeof en,"Argument subtle is not of type object"),(0,eu.assert)("function"==typeof en.importKey,"subtle.importKey is not a function"),(0,eu.assert)("function"==typeof en.deriveBits,"subtle.deriveBits is not a function"),en.importKey("raw",ei,{name:"PBKDF2"},!1,["deriveBits"]).then(ei=>en.deriveBits({name:"PBKDF2",salt:eo,iterations:ea,hash:{name:"SHA-512"}},ei,8*es).then(en=>new Uint8Array(en)))}async function pbkdf2Sha512NodeCrypto(en,ei,eo,ea,es){return(0,eu.assert)(en,"Argument nodeCrypto is falsy"),(0,eu.assert)("object"==typeof en,"Argument nodeCrypto is not of type object"),(0,eu.assert)("function"==typeof en.pbkdf2,"nodeCrypto.pbkdf2 is not a function"),new Promise((ed,eu)=>{en.pbkdf2(ei,eo,ea,es,"sha512",(en,ei)=>{en?eu(en):ed(Uint8Array.from(ei))})})}async function pbkdf2Sha512Noble(en,ei,eo,ea){return(0,ef.pbkdf2Async)(ep.sha512,en,ei,{c:eo,dkLen:ea})}async function pbkdf2Sha512(en,ei,eo,ea){let es=await getSubtle();
2if(es)return pbkdf2Sha512Subtle(es,en,ei,eo,ea);{let es=await getNodeCrypto();return es?pbkdf2Sha512NodeCrypto(es,en,ei,eo,ea):pbkdf2Sha512Noble(en,ei,eo,ea)}}ei.getNodeCrypto=getNodeCrypto,ei.getSubtle=getSubtle,ei.pbkdf2Sha512Subtle=pbkdf2Sha512Subtle,ei.pbkdf2Sha512NodeCrypto=pbkdf2Sha512NodeCrypto,ei.pbkdf2Sha512Noble=pbkdf2Sha512Noble,ei.pbkdf2Sha512=pbkdf2Sha512},616:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Random=void 0;let Random=class Random{static getBytes(en){try{let ei="object"==typeof window?window:self,eo=void 0!==ei.crypto?ei.crypto:ei.msCrypto,ea=new Uint8Array(en);return eo.getRandomValues(ea),ea}catch{try{let ei=eo(42474);return new Uint8Array([...ei.randomBytes(en)])}catch{throw Error("No secure random number generator found")}}}};ei.Random=Random},70568:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ripemd160=ei.Ripemd160=void 0;let ea=eo(70830),es=eo(49583);let Ripemd160=class Ripemd160{constructor(en){this.blockSize=64,this.impl=ea.ripemd160.create(),en&&this.update(en)}update(en){return this.impl.update((0,es.toRealUint8Array)(en)),this}digest(){return this.impl.digest()}};function ripemd160(en){return new Ripemd160(en).digest()}ei.Ripemd160=Ripemd160,ei.ripemd160=ripemd160},56649:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Secp256k1=void 0;let es=eo(28972),ed=ea(eo(13550)),eu=ea(eo(86266)),ef=eo(58222),ep=new eu.default.ec("secp256k1"),em=new ed.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");let Secp256k1=class Secp256k1{static async makeKeypair(en){if(32!==en.length)throw Error("input data is not a valid secp256k1 private key");let ei=ep.keyFromPrivate(en);if(!0!==ei.validate().result)throw Error("input data is not a valid secp256k1 private key");let eo=new ed.default(en);if(eo.gte(em))throw Error("input data is not a valid secp256k1 private key");let ea={privkey:(0,es.fromHex)(ei.getPrivate("hex")),pubkey:Uint8Array.from(ei.getPublic("array"))};return ea}static async createSignature(en,ei){if(0===en.length)throw Error("Message hash must not be empty");if(en.length>32)throw Error("Message hash length must not exceed 32 bytes");let eo=ep.keyFromPrivate(ei),{r:ea,s:es,recoveryParam:ed}=eo.sign(en,{canonical:!0});if("number"!=typeof ed)throw Error("Recovery param missing");return new ef.ExtendedSecp256k1Signature(Uint8Array.from(ea.toArray()),Uint8Array.from(es.toArray()),ed)}static async verifySignature(en,ei,eo){if(0===ei.length)throw Error("Message hash must not be empty");if(ei.length>32)throw Error("Message hash length must not exceed 32 bytes");let ea=ep.keyFromPublic(eo);try{return ea.verify(ei,en.toDer())}catch(en){return!1}}static recoverPubkey(en,ei){let eo={r:(0,es.toHex)(en.r()),s:(0,es.toHex)(en.s())},ea=ep.recoverPubKey(ei,eo,en.recovery),ed=ep.keyFromPublic(ea);return(0,es.fromHex)(ed.getPublic(!1,"hex"))}static compressPubkey(en){switch(en.length){case 33:return en;case 65:return Uint8Array.from(ep.keyFromPublic(en).getPublic(!0,"array"));default:throw Error("Invalid pubkey length")}}static uncompressPubkey(en){switch(en.length){case 33:return Uint8Array.from(ep.keyFromPublic(en).getPublic(!1,"array"));case 65:return en;default:throw Error("Invalid pubkey length")}}static trimRecoveryByte(en){switch(en.length){case 64:return en;case 65:return en.slice(0,64);default:throw Error("Invalid signature length")}}};ei.Secp256k1=Secp256k1},58222:function(en,ei){"use strict";function trimLeadingNullBytes(en){let ei=0;for(let eo of en)if(0===eo)ei++;else break;return en.slice(ei)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.ExtendedSecp256k1Signature=ei.Secp256k1Signature=void 0;let eo=2;let Secp256k1Signature=class Secp256k1Signature{static fromFixedLength(en){if(64!==en.length)throw Error(`Got invalid data length: ${en.length}. Expected 2x 32 bytes for the pair (r, s)`);return new Secp256k1Signature(trimLeadingNullBytes(en.slice(0,32)),trimLeadingNullBytes(en.slice(32,64)))}static fromDer(en){let ei=0;if(48!==en[ei++])throw Error("Prefix 0x30 expected");let ea=en[ei++];if(en.length-ei!==ea)throw Error("Data length mismatch detected");let es=en[ei++];
2if(es!==eo)throw Error("INTEGER tag expected");let ed=en[ei++];if(ed>=128)throw Error("Decoding length values above 127 not supported");let eu=en.slice(ei,ei+ed);ei+=ed;let ef=en[ei++];if(ef!==eo)throw Error("INTEGER tag expected");let ep=en[ei++];if(ep>=128)throw Error("Decoding length values above 127 not supported");let em=en.slice(ei,ei+ep);return ei+=ep,new Secp256k1Signature(trimLeadingNullBytes(eu),trimLeadingNullBytes(em))}constructor(en,ei){if(en.length>32||0===en.length||0===en[0])throw Error("Unsigned integer r must be encoded as unpadded big endian.");if(ei.length>32||0===ei.length||0===ei[0])throw Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:en,s:ei}}r(en){if(void 0===en)return this.data.r;{let ei=en-this.data.r.length;if(ei<0)throw Error("Length too small to hold parameter r");let eo=new Uint8Array(ei);return new Uint8Array([...eo,...this.data.r])}}s(en){if(void 0===en)return this.data.s;{let ei=en-this.data.s.length;if(ei<0)throw Error("Length too small to hold parameter s");let eo=new Uint8Array(ei);return new Uint8Array([...eo,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){let en=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,ei=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,ea=en.length,es=ei.length,ed=new Uint8Array([eo,ea,...en,eo,es,...ei]);return new Uint8Array([48,ed.length,...ed])}};ei.Secp256k1Signature=Secp256k1Signature;let ExtendedSecp256k1Signature=class ExtendedSecp256k1Signature extends Secp256k1Signature{static fromFixedLength(en){if(65!==en.length)throw Error(`Got invalid data length ${en.length}. Expected 32 + 32 + 1`);return new ExtendedSecp256k1Signature(trimLeadingNullBytes(en.slice(0,32)),trimLeadingNullBytes(en.slice(32,64)),en[64])}constructor(en,ei,eo){if(super(en,ei),!Number.isInteger(eo))throw Error("The recovery parameter must be an integer.");if(eo<0||eo>4)throw Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=eo}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}};ei.ExtendedSecp256k1Signature=ExtendedSecp256k1Signature},52387:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.sha512=ei.Sha512=ei.sha256=ei.Sha256=void 0;let ea=eo(23061),es=eo(86262),ed=eo(49583);let Sha256=class Sha256{constructor(en){this.blockSize=64,this.impl=ea.sha256.create(),en&&this.update(en)}update(en){return this.impl.update((0,ed.toRealUint8Array)(en)),this}digest(){return this.impl.digest()}};function sha256(en){return new Sha256(en).digest()}ei.Sha256=Sha256,ei.sha256=sha256;let Sha512=class Sha512{constructor(en){this.blockSize=128,this.impl=es.sha512.create(),en&&this.update(en)}update(en){return this.impl.update((0,ed.toRealUint8Array)(en)),this}digest(){return this.impl.digest()}};function sha512(en){return new Sha512(en).digest()}ei.Sha512=Sha512,ei.sha512=sha512},52081:function(en,ei,eo){"use strict";var ea,es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.stringToPath=ei.pathToString=ei.Slip10=ei.Slip10RawIndex=ei.slip10CurveFromString=ei.Slip10Curve=void 0;let ed=eo(28972),eu=eo(62949),ef=es(eo(13550)),ep=es(eo(86266)),em=eo(13955),eg=eo(52387);function slip10CurveFromString(en){switch(en){case ea.Ed25519:return ea.Ed25519;case ea.Secp256k1:return ea.Secp256k1;default:throw Error(`Unknown curve string: '${en}'`)}}!function(en){en.Secp256k1="Bitcoin seed",en.Ed25519="ed25519 seed"}(ea=ei.Slip10Curve||(ei.Slip10Curve={})),ei.slip10CurveFromString=slip10CurveFromString;let Slip10RawIndex=class Slip10RawIndex extends eu.Uint32{static hardened(en){return new Slip10RawIndex(en+2147483648)}static normal(en){return new Slip10RawIndex(en)}isHardened(){return this.data>=2147483648}};ei.Slip10RawIndex=Slip10RawIndex;let ey=new ep.default.ec("secp256k1");let Slip10=class Slip10{static derivePath(en,ei,eo){let ea=this.master(en,ei);for(let ei of eo)ea=this.child(en,ea.privkey,ea.chainCode,ei);return ea}static master(en,ei){let eo=new em.Hmac(eg.Sha512,(0,ed.toAscii)(en)).update(ei).digest(),es=eo.slice(0,32),eu=eo.slice(32,64);
2return en!==ea.Ed25519&&(this.isZero(es)||this.isGteN(en,es))?this.master(en,eo):{chainCode:eu,privkey:es}}static child(en,ei,eo,es){let ed;if(es.isHardened()){let en=new Uint8Array([0,...ei,...es.toBytesBigEndian()]);ed=new em.Hmac(eg.Sha512,eo).update(en).digest()}else{if(en===ea.Ed25519)throw Error("Normal keys are not allowed with ed25519");{let ea=new Uint8Array([...Slip10.serializedPoint(en,new ef.default(ei)),...es.toBytesBigEndian()]);ed=new em.Hmac(eg.Sha512,eo).update(ea).digest()}}return this.childImpl(en,ei,eo,es,ed)}static serializedPoint(en,ei){if(en===ea.Secp256k1)return(0,ed.fromHex)(ey.g.mul(ei).encodeCompressed("hex"));throw Error("curve not supported")}static childImpl(en,ei,eo,es,ed){let eu=ed.slice(0,32),ep=ed.slice(32,64),ey=ep;if(en===ea.Ed25519)return{chainCode:ey,privkey:eu};let eb=this.n(en),eS=new ef.default(eu).add(new ef.default(ei)).mod(eb),e_=Uint8Array.from(eS.toArray("be",32));if(this.isGteN(en,eu)||this.isZero(e_)){let ea=new em.Hmac(eg.Sha512,eo).update(new Uint8Array([1,...ep,...es.toBytesBigEndian()])).digest();return this.childImpl(en,ei,eo,es,ea)}return{chainCode:ey,privkey:e_}}static isZero(en){return en.every(en=>0===en)}static isGteN(en,ei){let eo=new ef.default(ei);return eo.gte(this.n(en))}static n(en){if(en===ea.Secp256k1)return new ef.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);throw Error("curve not supported")}};function pathToString(en){return en.reduce((en,ei)=>{let eo=ei.isHardened()?`${ei.toNumber()-2147483648}'`:ei.toString();return en+"/"+eo},"m")}function stringToPath(en){if(!en.startsWith("m"))throw Error("Path string must start with 'm'");let ei=en.slice(1),eo=[];for(;ei;){let en=ei.match(/^\/([0-9]+)('?)/);if(!en)throw Error("Syntax error while reading path component");let[ea,es,ed]=en,ef=eu.Uint53.fromString(es).toNumber();if(ef>=2147483648)throw Error("Component value too high. Must not exceed 2**31-1.");ed?eo.push(Slip10RawIndex.hardened(ef)):eo.push(Slip10RawIndex.normal(ef)),ei=ei.slice(ea.length)}return eo}ei.Slip10=Slip10,ei.pathToString=pathToString,ei.stringToPath=stringToPath},49583:function(en,ei){"use strict";function toRealUint8Array(en){return en instanceof Uint8Array?en:Uint8Array.from(en)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.toRealUint8Array=void 0,ei.toRealUint8Array=toRealUint8Array},47768:function(en,ei){"use strict";function toAscii(en){let toNums=en=>en.split("").map(en=>{let ei=en.charCodeAt(0);if(ei<32||ei>126)throw Error("Cannot encode character that is out of printable ASCII range: "+ei);return ei});return Uint8Array.from(toNums(en))}function fromAscii(en){let fromNums=en=>en.map(en=>{if(en<32||en>126)throw Error("Cannot decode character that is out of printable ASCII range: "+en);return String.fromCharCode(en)});return fromNums(Array.from(en)).join("")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.fromAscii=ei.toAscii=void 0,ei.toAscii=toAscii,ei.fromAscii=fromAscii},93431:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.fromBase64=ei.toBase64=void 0;let eu=ed(eo(79742));function toBase64(en){return eu.fromByteArray(en)}function fromBase64(en){if(!en.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw Error("Invalid base64 string format");return eu.toByteArray(en)}ei.toBase64=toBase64,ei.fromBase64=fromBase64},15438:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.normalizeBech32=ei.fromBech32=ei.toBech32=void 0;let eu=ed(eo(73235));function toBech32(en,ei,eo){let ea=eu.encode(en,eu.toWords(ei),eo);return ea}function fromBech32(en,ei=1/0){let eo=eu.decode(en,ei);return{prefix:eo.prefix,data:new Uint8Array(eu.fromWords(eo.words))}}function normalizeBech32(en){let{prefix:ei,data:eo}=fromBech32(en);return toBech32(ei,eo)}ei.toBech32=toBech32,ei.fromBech32=fromBech32,ei.normalizeBech32=normalizeBech32},26135:function(en,ei){"use strict";function toHex(en){let ei="";for(let eo of en)ei+=("0"+eo.toString(16)).slice(-2);return ei}function fromHex(en){if(en.length%2!=0)throw Error("hex string length must be a multiple of 2");let ei=new Uint8Array(en.length/2);for(let eo=0;eo<ei.length;eo++){let ea=2*eo,es=en.slice(ea,ea+2);
2if(!es.match(/[0-9a-f]{2}/i))throw Error("hex string contains invalid characters");ei[eo]=parseInt(es,16)}return ei}Object.defineProperty(ei,"__esModule",{value:!0}),ei.fromHex=ei.toHex=void 0,ei.toHex=toHex,ei.fromHex=fromHex},28972:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.toUtf8=ei.fromUtf8=ei.toRfc3339=ei.fromRfc3339=ei.toHex=ei.fromHex=ei.toBech32=ei.normalizeBech32=ei.fromBech32=ei.toBase64=ei.fromBase64=ei.toAscii=ei.fromAscii=void 0;var ea=eo(47768);Object.defineProperty(ei,"fromAscii",{enumerable:!0,get:function(){return ea.fromAscii}}),Object.defineProperty(ei,"toAscii",{enumerable:!0,get:function(){return ea.toAscii}});var es=eo(93431);Object.defineProperty(ei,"fromBase64",{enumerable:!0,get:function(){return es.fromBase64}}),Object.defineProperty(ei,"toBase64",{enumerable:!0,get:function(){return es.toBase64}});var ed=eo(15438);Object.defineProperty(ei,"fromBech32",{enumerable:!0,get:function(){return ed.fromBech32}}),Object.defineProperty(ei,"normalizeBech32",{enumerable:!0,get:function(){return ed.normalizeBech32}}),Object.defineProperty(ei,"toBech32",{enumerable:!0,get:function(){return ed.toBech32}});var eu=eo(26135);Object.defineProperty(ei,"fromHex",{enumerable:!0,get:function(){return eu.fromHex}}),Object.defineProperty(ei,"toHex",{enumerable:!0,get:function(){return eu.toHex}});var ef=eo(37310);Object.defineProperty(ei,"fromRfc3339",{enumerable:!0,get:function(){return ef.fromRfc3339}}),Object.defineProperty(ei,"toRfc3339",{enumerable:!0,get:function(){return ef.toRfc3339}});var ep=eo(26081);Object.defineProperty(ei,"fromUtf8",{enumerable:!0,get:function(){return ep.fromUtf8}}),Object.defineProperty(ei,"toUtf8",{enumerable:!0,get:function(){return ep.toUtf8}})},37310:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.toRfc3339=ei.fromRfc3339=void 0;let eo=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function padded(en,ei=2){return en.toString().padStart(ei,"0")}function fromRfc3339(en){let ei,ea,es;let ed=eo.exec(en);if(!ed)throw Error("Date string is not in RFC3339 format");let eu=+ed[1],ef=+ed[2],ep=+ed[3],em=+ed[4],eg=+ed[5],ey=+ed[6],eb=ed[7]?Math.floor(1e3*+ed[7]):0;"Z"===ed[8]?(ei=1,ea=0,es=0):(ei="-"===ed[8].substring(0,1)?-1:1,ea=+ed[8].substring(1,3),es=+ed[8].substring(4,6));let eS=ei*(60*ea+es)*60,e_=Date.UTC(eu,ef-1,ep,em,eg,ey,eb)-1e3*eS;return new Date(e_)}function toRfc3339(en){let ei=en.getUTCFullYear(),eo=padded(en.getUTCMonth()+1),ea=padded(en.getUTCDate()),es=padded(en.getUTCHours()),ed=padded(en.getUTCMinutes()),eu=padded(en.getUTCSeconds()),ef=padded(en.getUTCMilliseconds(),3);return`${ei}-${eo}-${ea}T${es}:${ed}:${eu}.${ef}Z`}ei.fromRfc3339=fromRfc3339,ei.toRfc3339=toRfc3339},26081:function(en,ei){"use strict";function toUtf8(en){return new TextEncoder().encode(en)}function fromUtf8(en,ei=!1){let eo=!ei;return new TextDecoder("utf-8",{fatal:eo}).decode(en)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.fromUtf8=ei.toUtf8=void 0,ei.toUtf8=toUtf8,ei.fromUtf8=fromUtf8},73235:function(en){"use strict";for(var ei="qpzry9x8gf2tvdw0s3jn54khce6mua7l",eo={},ea=0;ea<ei.length;ea++){var es=ei.charAt(ea);if(void 0!==eo[es])throw TypeError(es+" is ambiguous");eo[es]=ea}function polymodStep(en){var ei=en>>25;return(33554431&en)<<5^996825010&-(ei>>0&1)^642813549&-(ei>>1&1)^513874426&-(ei>>2&1)^1027748829&-(ei>>3&1)^705979059&-(ei>>4&1)}function prefixChk(en){for(var ei=1,eo=0;eo<en.length;++eo){var ea=en.charCodeAt(eo);if(ea<33||ea>126)return"Invalid prefix ("+en+")";ei=polymodStep(ei)^ea>>5}for(eo=0,ei=polymodStep(ei);eo<en.length;++eo){var es=en.charCodeAt(eo);ei=polymodStep(ei)^31&es}return ei}function encode(en,eo,ea){if(ea=ea||90,en.length+7+eo.length>ea)throw TypeError("Exceeds length limit");var es=prefixChk(en=en.toLowerCase());if("string"==typeof es)throw Error(es);for(var ed=en+"1",eu=0;eu<eo.length;++eu){var ef=eo[eu];if(ef>>5!=0)throw Error("Non 5-bit word");es=polymodStep(es)^ef,ed+=ei.charAt(ef)}for(eu=0;eu<6;++eu)es=polymodStep(es);for(es^=1,eu=0;eu<6;++eu){var ep=es>>(5-eu)*5&31;ed+=ei.charAt(ep)}return ed}function __decode(en,ei){if(ei=ei||90,en.length<8)return en+" too short";if(en.length>ei)return"Exceeds length limit";var ea=en.toLowerCase(),es=en.toUpperCase();if(en!==ea&&en!==es)return"Mixed-case string "+en;var ed=(en=ea).lastIndexOf("1");if(-1===ed)return"No separator character for "+en;if(0===ed)return"Missing prefix for "+en;var eu=en.slice(0,ed),ef=en.slice(ed+1);if(ef.length<6)return"Data too short";
2var ep=prefixChk(eu);if("string"==typeof ep)return ep;for(var em=[],eg=0;eg<ef.length;++eg){var ey=ef.charAt(eg),eb=eo[ey];if(void 0===eb)return"Unknown character "+ey;ep=polymodStep(ep)^eb,eg+6>=ef.length||em.push(eb)}return 1!==ep?"Invalid checksum for "+en:{prefix:eu,words:em}}function decodeUnsafe(){var en=__decode.apply(null,arguments);if("object"==typeof en)return en}function decode(en){var ei=__decode.apply(null,arguments);if("object"==typeof ei)return ei;throw Error(ei)}function convert(en,ei,eo,ea){for(var es=0,ed=0,eu=(1<<eo)-1,ef=[],ep=0;ep<en.length;++ep)for(es=es<<ei|en[ep],ed+=ei;ed>=eo;)ef.push(es>>(ed-=eo)&eu);if(ea)ed>0&&ef.push(es<<eo-ed&eu);else{if(ed>=ei)return"Excess padding";if(es<<eo-ed&eu)return"Non-zero padding"}return ef}function toWordsUnsafe(en){var ei=convert(en,8,5,!0);if(Array.isArray(ei))return ei}function toWords(en){var ei=convert(en,8,5,!0);if(Array.isArray(ei))return ei;throw Error(ei)}function fromWordsUnsafe(en){var ei=convert(en,5,8,!1);if(Array.isArray(ei))return ei}function fromWords(en){var ei=convert(en,5,8,!1);if(Array.isArray(ei))return ei;throw Error(ei)}en.exports={decodeUnsafe:decodeUnsafe,decode:decode,encode:encode,toWordsUnsafe:toWordsUnsafe,toWords:toWords,fromWordsUnsafe:fromWordsUnsafe,fromWords:fromWords}},38828:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Decimal=void 0;let es=ea(eo(13550)),ed=100;let Decimal=class Decimal{static fromUserInput(en,ei){let eo,ea;Decimal.verifyFractionalDigits(ei);let es=en.match(/[^0-9.]/);if(es)throw Error(`Invalid character at position ${es.index+1}`);if(""===en)eo="0",ea="";else if(-1===en.search(/\./))eo=en,ea="";else{let ei=en.split(".");switch(ei.length){case 0:case 1:throw Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!ei[1])throw Error("Fractional part missing");eo=ei[0],ea=ei[1].replace(/0+$/,"");break;default:throw Error("More than one separator found")}}if(ea.length>ei)throw Error("Got more fractional digits than supported");let ed=`${eo}${ea.padEnd(ei,"0")}`;return new Decimal(ed,ei)}static fromAtomics(en,ei){return Decimal.verifyFractionalDigits(ei),new Decimal(en,ei)}static zero(en){return Decimal.verifyFractionalDigits(en),new Decimal("0",en)}static one(en){return Decimal.verifyFractionalDigits(en),new Decimal("1"+"0".repeat(en),en)}static verifyFractionalDigits(en){if(!Number.isInteger(en))throw Error("Fractional digits is not an integer");if(en<0)throw Error("Fractional digits must not be negative");if(en>ed)throw Error(`Fractional digits must not exceed ${ed}`)}static compare(en,ei){if(en.fractionalDigits!==ei.fractionalDigits)throw Error("Fractional digits do not match");return en.data.atomics.cmp(new es.default(ei.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}constructor(en,ei){if(!en.match(/^[0-9]+$/))throw Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new es.default(en),fractionalDigits:ei}}clone(){return new Decimal(this.atomics,this.fractionalDigits)}floor(){let en=new es.default(10).pow(new es.default(this.data.fractionalDigits)),ei=this.data.atomics.div(en),eo=this.data.atomics.mod(en);return eo.isZero()?this.clone():Decimal.fromAtomics(ei.mul(en).toString(),this.fractionalDigits)}ceil(){let en=new es.default(10).pow(new es.default(this.data.fractionalDigits)),ei=this.data.atomics.div(en),eo=this.data.atomics.mod(en);return eo.isZero()?this.clone():Decimal.fromAtomics(ei.addn(1).mul(en).toString(),this.fractionalDigits)}toString(){let en=new es.default(10).pow(new es.default(this.data.fractionalDigits)),ei=this.data.atomics.div(en),eo=this.data.atomics.mod(en);if(eo.isZero())return ei.toString();{let en=eo.toString().padStart(this.data.fractionalDigits,"0"),ea=en.replace(/0+$/,"");return`${ei.toString()}.${ea}`}}toFloatApproximation(){let en=Number(this.toString());if(Number.isNaN(en))throw Error("Conversion to number failed");return en}plus(en){if(this.fractionalDigits!==en.fractionalDigits)throw Error("Fractional digits do not match");let ei=this.data.atomics.add(new es.default(en.atomics));return new Decimal(ei.toString(),this.fractionalDigits)}minus(en){if(this.fractionalDigits!==en.fractionalDigits)throw Error("Fractional digits do not match");let ei=this.data.atomics.sub(new es.default(en.atomics));if(ei.ltn(0))throw Error("Difference must not be negative");return new Decimal(ei.toString(),this.fractionalDigits)}multiply(en){let ei=this.data.atomics.mul(new es.default(en.toString()));return new Decimal(ei.toString(),this.fractionalDigits)}equals(en){return 0===Decimal.compare(this,en)}isLessThan(en){return 0>Decimal.compare(this,en)}isLessThanOrEqual(en){return 0>=Decimal.compare(this,en)}isGreaterThan(en){return Decimal.compare(this,en)>0}isGreaterThanOrEqual(en){return Decimal.compare(this,en)>=0}};ei.Decimal=Decimal},62949:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Uint64=ei.Uint53=ei.Uint32=ei.Int53=ei.Decimal=void 0;var ea=eo(38828);Object.defineProperty(ei,"Decimal",{enumerable:!0,get:function(){return ea.Decimal}});var es=eo(40172);Object.defineProperty(ei,"Int53",{enumerable:!0,get:function(){return es.Int53}}),Object.defineProperty(ei,"Uint32",{enumerable:!0,get:function(){return es.Uint32}}),Object.defineProperty(ei,"Uint53",{enumerable:!0,get:function(){return es.Uint53}}),Object.defineProperty(ei,"Uint64",{enumerable:!0,get:function(){return es.Uint64}})},40172:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Uint64=ei.Uint53=ei.Int53=ei.Uint32=void 0;let es=ea(eo(13550)),ed=new es.default("18446744073709551615",10,"be");let Uint32=class Uint32{static fromBigEndianBytes(en){return Uint32.fromBytes(en)}static fromBytes(en,ei="be"){if(4!==en.length)throw Error("Invalid input length. Expected 4 bytes.");for(let ei=0;ei<en.length;++ei)if(!Number.isInteger(en[ei])||en[ei]>255||en[ei]<0)throw Error("Invalid value in byte. Found: "+en[ei]);let eo="be"===ei?en:Array.from(en).reverse();
2return new Uint32(16777216*eo[0]+65536*eo[1]+256*eo[2]+eo[3])}static fromString(en){if(!en.match(/^[0-9]+$/))throw Error("Invalid string format");return new Uint32(Number.parseInt(en,10))}constructor(en){if(Number.isNaN(en))throw Error("Input is not a number");if(!Number.isInteger(en))throw Error("Input is not an integer");if(en<0||en>4294967295)throw Error("Input not in uint32 range: "+en.toString());this.data=en}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/16777216),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/16777216)])}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}};ei.Uint32=Uint32;let Int53=class Int53{static fromString(en){if(!en.match(/^-?[0-9]+$/))throw Error("Invalid string format");return new Int53(Number.parseInt(en,10))}constructor(en){if(Number.isNaN(en))throw Error("Input is not a number");if(!Number.isInteger(en))throw Error("Input is not an integer");if(en<Number.MIN_SAFE_INTEGER||en>Number.MAX_SAFE_INTEGER)throw Error("Input not in int53 range: "+en.toString());this.data=en}toNumber(){return this.data}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}};ei.Int53=Int53;let Uint53=class Uint53{static fromString(en){let ei=Int53.fromString(en);return new Uint53(ei.toNumber())}constructor(en){let ei=new Int53(en);if(0>ei.toNumber())throw Error("Input is negative");this.data=ei}toNumber(){return this.data.toNumber()}toBigInt(){return BigInt(this.toNumber())}toString(){return this.data.toString()}};ei.Uint53=Uint53;let Uint64=class Uint64{static fromBytesBigEndian(en){return Uint64.fromBytes(en)}static fromBytes(en,ei="be"){if(8!==en.length)throw Error("Invalid input length. Expected 8 bytes.");for(let ei=0;ei<en.length;++ei)if(!Number.isInteger(en[ei])||en[ei]>255||en[ei]<0)throw Error("Invalid value in byte. Found: "+en[ei]);let eo="be"===ei?Array.from(en):Array.from(en).reverse();return new Uint64(new es.default(eo))}static fromString(en){if(!en.match(/^[0-9]+$/))throw Error("Invalid string format");return new Uint64(new es.default(en,10,"be"))}static fromNumber(en){let ei;if(Number.isNaN(en))throw Error("Input is not a number");if(!Number.isInteger(en))throw Error("Input is not an integer");try{ei=new es.default(en)}catch{throw Error("Input is not a safe integer")}return new Uint64(ei)}constructor(en){if(en.isNeg())throw Error("Input is negative");if(en.gt(ed))throw Error("Input exceeds uint64 range");this.data=en}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toBigInt(){return BigInt(this.toString())}toNumber(){return this.data.toNumber()}};ei.Uint64=Uint64},78296:function(en,ei){"use strict";function parseCoins(en){return en.replace(/\s/g,"").split(",").filter(Boolean).map(en=>{let ei=en.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!ei)throw Error("Got an invalid coin string");return{amount:ei[1].replace(/^0+/,"")||"0",denom:ei[2]}})}Object.defineProperty(ei,"__esModule",{value:!0}),ei.parseCoins=void 0,ei.parseCoins=parseCoins},37358:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decodeTxRaw=void 0;let ea=eo(29639);function decodeTxRaw(en){let ei=ea.TxRaw.decode(en);return{authInfo:ea.AuthInfo.decode(ei.authInfoBytes),body:ea.TxBody.decode(ei.bodyBytes),signatures:ei.signatures}}ei.decodeTxRaw=decodeTxRaw},15443:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.DirectSecp256k1HdWallet=ei.extractKdfConfiguration=void 0;let ea=eo(33359),es=eo(79562),ed=eo(28972),eu=eo(85553),ef=eo(9153),ep=eo(13580),em="directsecp256k1hdwallet-v1",eg={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};function isDerivationJson(en){return!!(0,eu.isNonNullObject)(en)&&"string"==typeof en.hdPath&&"string"==typeof en.prefix}function extractKdfConfigurationV1(en){return en.kdf}function extractKdfConfiguration(en){let ei=JSON.parse(en);if(!(0,eu.isNonNullObject)(ei))throw Error("Root document is not an object.");if(ei.type===em)return extractKdfConfigurationV1(ei);throw Error("Unsupported serialization type")}ei.extractKdfConfiguration=extractKdfConfiguration;let ey={bip39Password:"",hdPaths:[(0,ea.makeCosmoshubPath)(0)],prefix:"cosmos"};let DirectSecp256k1HdWallet=class DirectSecp256k1HdWallet{static async fromMnemonic(en,ei={}){let eo=new es.EnglishMnemonic(en),ea=await es.Bip39.mnemonicToSeed(eo,ei.bip39Password);return new DirectSecp256k1HdWallet(eo,{...ei,seed:ea})}static async generate(en=12,ei={}){let eo=4*Math.floor(11*en/33),ea=es.Random.getBytes(eo),ed=es.Bip39.encode(ea);return DirectSecp256k1HdWallet.fromMnemonic(ed.toString(),ei)}static async deserialize(en,ei){let eo=JSON.parse(en);if(!(0,eu.isNonNullObject)(eo))throw Error("Root document is not an object.");if(eo.type===em)return DirectSecp256k1HdWallet.deserializeTypeV1(en,ei);throw Error("Unsupported serialization type")}static async deserializeWithEncryptionKey(en,ei){let eo=JSON.parse(en);if(!(0,eu.isNonNullObject)(eo))throw Error("Root document is not an object.");let ea=eo;if(ea.type===em){let en=await (0,ep.decrypt)((0,ed.fromBase64)(ea.data),ei,ea.encryption),eo=JSON.parse((0,ed.fromUtf8)(en)),{mnemonic:ef,accounts:em}=eo;if((0,eu.assert)("string"==typeof ef),!Array.isArray(em))throw Error("Property 'accounts' is not an array");if(!em.every(en=>isDerivationJson(en)))throw Error("Account is not in the correct format.");let eg=em[0].prefix;if(!em.every(({prefix:en})=>en===eg))throw Error("Accounts do not all have the same prefix");let ey=em.map(({hdPath:en})=>(0,es.stringToPath)(en));return DirectSecp256k1HdWallet.fromMnemonic(ef,{hdPaths:ey,prefix:eg})}throw Error("Unsupported serialization type")}static async deserializeTypeV1(en,ei){let eo=JSON.parse(en);if(!(0,eu.isNonNullObject)(eo))throw Error("Root document is not an object.");let ea=await (0,ep.executeKdf)(ei,eo.kdf);return DirectSecp256k1HdWallet.deserializeWithEncryptionKey(en,ea)}constructor(en,ei){let eo=ei.prefix??ey.prefix,ea=ei.hdPaths??ey.hdPaths;this.secret=en,this.seed=ei.seed,this.accounts=ea.map(en=>({hdPath:en,prefix:eo}))}get mnemonic(){return this.secret.toString()}async getAccounts(){let en=await this.getAccountsWithPrivkeys();return en.map(({algo:en,pubkey:ei,address:eo})=>({algo:en,pubkey:ei,address:eo}))}async signDirect(en,ei){let eo=await this.getAccountsWithPrivkeys(),ed=eo.find(({address:ei})=>ei===en);if(void 0===ed)throw Error(`Address ${en} not found in wallet`);let{privkey:eu,pubkey:ep}=ed,em=(0,ef.makeSignBytes)(ei),eg=(0,es.sha256)(em),ey=await es.Secp256k1.createSignature(eg,eu),eb=new Uint8Array([...ey.r(32),...ey.s(32)]),eS=(0,ea.encodeSecp256k1Signature)(ep,eb);return{signed:ei,signature:eS}}async serialize(en){let ei=eg,eo=await (0,ep.executeKdf)(en,ei);return this.serializeWithEncryptionKey(eo,ei)}async serializeWithEncryptionKey(en,ei){let eo={mnemonic:this.mnemonic,accounts:this.accounts.map(({hdPath:en,prefix:ei})=>({hdPath:(0,es.pathToString)(en),prefix:ei}))},ea=(0,ed.toUtf8)(JSON.stringify(eo)),eu={algorithm:ep.supportedAlgorithms.xchacha20poly1305Ietf},ef=await (0,ep.encrypt)(ea,en,eu),eg={type:em,kdf:ei,encryption:eu,data:(0,ed.toBase64)(ef)};return JSON.stringify(eg)}async getKeyPair(en){let{privkey:ei}=es.Slip10.derivePath(es.Slip10Curve.Secp256k1,this.seed,en),{pubkey:eo}=await es.Secp256k1.makeKeypair(ei);return{privkey:ei,pubkey:es.Secp256k1.compressPubkey(eo)}}async getAccountsWithPrivkeys(){return Promise.all(this.accounts.map(async({hdPath:en,prefix:ei})=>{let{privkey:eo,pubkey:es}=await this.getKeyPair(en),eu=(0,ed.toBech32)(ei,(0,ea.rawSecp256k1PubkeyToRawAddress)(es));return{algo:"secp256k1",privkey:eo,pubkey:es,address:eu}}))}};ei.DirectSecp256k1HdWallet=DirectSecp256k1HdWallet},24134:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.DirectSecp256k1Wallet=void 0;let ea=eo(33359),es=eo(79562),ed=eo(28972),eu=eo(9153);let DirectSecp256k1Wallet=class DirectSecp256k1Wallet{static async fromKey(en,ei="cosmos"){let eo=(await es.Secp256k1.makeKeypair(en)).pubkey;return new DirectSecp256k1Wallet(en,es.Secp256k1.compressPubkey(eo),ei)}constructor(en,ei,eo){this.privkey=en,this.pubkey=ei,this.prefix=eo}get address(){return(0,ed.toBech32)(this.prefix,(0,ea.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(en,ei){let eo=(0,eu.makeSignBytes)(ei);if(en!==this.address)throw Error(`Address ${en} not found in wallet`);let ed=(0,es.sha256)(eo),ef=await es.Secp256k1.createSignature(ed,this.privkey),ep=new Uint8Array([...ef.r(32),...ef.s(32)]),em=(0,ea.encodeSecp256k1Signature)(this.pubkey,ep);return{signed:ei,signature:em}}};ei.DirectSecp256k1Wallet=DirectSecp256k1Wallet},74087:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.coins=ei.coin=ei.executeKdf=ei.makeSignDoc=ei.makeSignBytes=ei.makeAuthInfoBytes=ei.isOfflineDirectSigner=ei.Registry=ei.isTxBodyEncodeObject=ei.isTsProtoGeneratedType=ei.isPbjsGeneratedType=ei.encodePubkey=ei.decodePubkey=ei.anyToSinglePubkey=ei.makeCosmoshubPath=ei.DirectSecp256k1Wallet=ei.extractKdfConfiguration=ei.DirectSecp256k1HdWallet=ei.decodeTxRaw=ei.parseCoins=void 0;var ea=eo(78296);Object.defineProperty(ei,"parseCoins",{enumerable:!0,get:function(){return ea.parseCoins}});var es=eo(37358);Object.defineProperty(ei,"decodeTxRaw",{enumerable:!0,get:function(){return es.decodeTxRaw}});var ed=eo(15443);Object.defineProperty(ei,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return ed.DirectSecp256k1HdWallet}}),Object.defineProperty(ei,"extractKdfConfiguration",{enumerable:!0,get:function(){return ed.extractKdfConfiguration}});var eu=eo(24134);Object.defineProperty(ei,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return eu.DirectSecp256k1Wallet}});var ef=eo(68549);Object.defineProperty(ei,"makeCosmoshubPath",{enumerable:!0,get:function(){return ef.makeCosmoshubPath}});var ep=eo(94594);Object.defineProperty(ei,"anyToSinglePubkey",{enumerable:!0,get:function(){return ep.anyToSinglePubkey}}),Object.defineProperty(ei,"decodePubkey",{enumerable:!0,get:function(){return ep.decodePubkey}}),Object.defineProperty(ei,"encodePubkey",{enumerable:!0,get:function(){return ep.encodePubkey}});var em=eo(59030);Object.defineProperty(ei,"isPbjsGeneratedType",{enumerable:!0,get:function(){return em.isPbjsGeneratedType}}),Object.defineProperty(ei,"isTsProtoGeneratedType",{enumerable:!0,get:function(){return em.isTsProtoGeneratedType}}),Object.defineProperty(ei,"isTxBodyEncodeObject",{enumerable:!0,get:function(){return em.isTxBodyEncodeObject}}),Object.defineProperty(ei,"Registry",{enumerable:!0,get:function(){return em.Registry}});var eg=eo(61183);Object.defineProperty(ei,"isOfflineDirectSigner",{enumerable:!0,get:function(){return eg.isOfflineDirectSigner}});var ey=eo(9153);Object.defineProperty(ei,"makeAuthInfoBytes",{enumerable:!0,get:function(){return ey.makeAuthInfoBytes}}),Object.defineProperty(ei,"makeSignBytes",{enumerable:!0,get:function(){return ey.makeSignBytes}}),Object.defineProperty(ei,"makeSignDoc",{enumerable:!0,get:function(){return ey.makeSignDoc}});var eb=eo(13580);Object.defineProperty(ei,"executeKdf",{enumerable:!0,get:function(){return eb.executeKdf}});var eS=eo(33359);Object.defineProperty(ei,"coin",{enumerable:!0,get:function(){return eS.coin}}),Object.defineProperty(ei,"coins",{enumerable:!0,get:function(){return eS.coins}})},68549:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.makeCosmoshubPath=void 0;let ea=eo(79562);function makeCosmoshubPath(en){return[ea.Slip10RawIndex.hardened(44),ea.Slip10RawIndex.hardened(118),ea.Slip10RawIndex.hardened(0),ea.Slip10RawIndex.normal(0),ea.Slip10RawIndex.normal(en)]}ei.makeCosmoshubPath=makeCosmoshubPath},94594:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decodePubkey=ei.anyToSinglePubkey=ei.encodePubkey=void 0;let ea=eo(33359),es=eo(28972),ed=eo(62949),eu=eo(48973),ef=eo(40479),ep=eo(47228),em=eo(53862);function encodePubkey(en){if((0,ea.isSecp256k1Pubkey)(en)){let ei=ep.PubKey.fromPartial({key:(0,es.fromBase64)(en.value)});return em.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(ep.PubKey.encode(ei).finish())})}if((0,ea.isEd25519Pubkey)(en)){let ei=eu.PubKey.fromPartial({key:(0,es.fromBase64)(en.value)});
2return em.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(eu.PubKey.encode(ei).finish())})}if((0,ea.isMultisigThresholdPubkey)(en)){let ei=ef.LegacyAminoPubKey.fromPartial({threshold:ed.Uint53.fromString(en.value.threshold).toNumber(),publicKeys:en.value.pubkeys.map(encodePubkey)});return em.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(ef.LegacyAminoPubKey.encode(ei).finish())})}throw Error(`Pubkey type ${en.type} not recognized`)}function anyToSinglePubkey(en){switch(en.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{let{key:ei}=ep.PubKey.decode(en.value);return(0,ea.encodeSecp256k1Pubkey)(ei)}case"/cosmos.crypto.ed25519.PubKey":{let{key:ei}=eu.PubKey.decode(en.value);return(0,ea.encodeEd25519Pubkey)(ei)}default:throw Error(`Pubkey type_url ${en.typeUrl} not recognized as single public key type`)}}function decodePubkey(en){switch(en.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return anyToSinglePubkey(en);case"/cosmos.crypto.multisig.LegacyAminoPubKey":{let{threshold:ei,publicKeys:eo}=ef.LegacyAminoPubKey.decode(en.value),ea={type:"tendermint/PubKeyMultisigThreshold",value:{threshold:ei.toString(),pubkeys:eo.map(anyToSinglePubkey)}};return ea}default:throw Error(`Pubkey type_url ${en.typeUrl} not recognized`)}}ei.encodePubkey=encodePubkey,ei.anyToSinglePubkey=anyToSinglePubkey,ei.decodePubkey=decodePubkey},59030:function(en,ei,eo){"use strict";var ea=eo(48764).Buffer;Object.defineProperty(ei,"__esModule",{value:!0}),ei.Registry=ei.isTxBodyEncodeObject=ei.isPbjsGeneratedType=ei.isTsProtoGeneratedType=void 0;let es=eo(98994),ed=eo(10891),eu=eo(29639),ef=eo(53862);function isTsProtoGeneratedType(en){return"function"==typeof en.fromPartial}function isPbjsGeneratedType(en){return!isTsProtoGeneratedType(en)}ei.isTsProtoGeneratedType=isTsProtoGeneratedType,ei.isPbjsGeneratedType=isPbjsGeneratedType;let ep={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};function isTxBodyEncodeObject(en){return"/cosmos.tx.v1beta1.TxBody"===en.typeUrl}ei.isTxBodyEncodeObject=isTxBodyEncodeObject;let Registry=class Registry{constructor(en){let{cosmosCoin:ei,cosmosMsgSend:eo}=ep;this.types=new Map(en?[...en]:[[ei,ed.Coin],[eo,es.MsgSend]])}register(en,ei){this.types.set(en,ei)}lookupType(en){return this.types.get(en)}lookupTypeWithError(en){let ei=this.lookupType(en);if(!ei)throw Error(`Unregistered type url: ${en}`);return ei}encode(en){let{value:ei,typeUrl:eo}=en;if(isTxBodyEncodeObject(en))return this.encodeTxBody(ei);let ea=this.lookupTypeWithError(eo),es=isTsProtoGeneratedType(ea)?ea.fromPartial(ei):ea.create(ei);return ea.encode(es).finish()}encodeAsAny(en){let ei=this.encode(en);return ef.Any.fromPartial({typeUrl:en.typeUrl,value:ei})}encodeTxBody(en){let ei=en.messages.map(en=>this.encodeAsAny(en)),eo=eu.TxBody.fromPartial({...en,messages:ei});return eu.TxBody.encode(eo).finish()}decode({typeUrl:en,value:ei}){if(en===ep.cosmosTxBody)return this.decodeTxBody(ei);let eo=this.lookupTypeWithError(en),es=eo.decode(ei);return Object.entries(es).forEach(([en,ei])=>{void 0!==ea&&void 0!==ea.isBuffer&&ea.isBuffer(ei)&&(es[en]=Uint8Array.from(ei))}),es}decodeTxBody(en){let ei=eu.TxBody.decode(en);return{...ei,messages:ei.messages.map(({typeUrl:en,value:ei})=>{if(!en)throw Error("Missing type_url in Any");if(!ei)throw Error("Missing value in Any");return this.decode({typeUrl:en,value:ei})})}}};ei.Registry=Registry},61183:function(en,ei){"use strict";function isOfflineDirectSigner(en){return void 0!==en.signDirect}Object.defineProperty(ei,"__esModule",{value:!0}),ei.isOfflineDirectSigner=void 0,ei.isOfflineDirectSigner=isOfflineDirectSigner},9153:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.makeSignBytes=ei.makeSignDoc=ei.makeAuthInfoBytes=void 0;let es=eo(85553),ed=eo(72574),eu=eo(29639),ef=ea(eo(73518));function makeSignerInfos(en,ei){return en.map(({pubkey:en,sequence:eo})=>({publicKey:en,modeInfo:{single:{mode:ei}},sequence:ef.default.fromNumber(eo)}))}function makeAuthInfoBytes(en,ei,eo,ea,ep,em=ed.SignMode.SIGN_MODE_DIRECT){(0,es.assert)(void 0===ea||"string"==typeof ea,"feeGranter must be undefined or string"),(0,es.assert)(void 0===ep||"string"==typeof ep,"feePayer must be undefined or string");let eg=eu.AuthInfo.fromPartial({signerInfos:makeSignerInfos(en,em),fee:{amount:[...ei],gasLimit:ef.default.fromNumber(eo),granter:ea,payer:ep}});return eu.AuthInfo.encode(eg).finish()}function makeSignDoc(en,ei,eo,ea){return{bodyBytes:en,authInfoBytes:ei,chainId:eo,accountNumber:ef.default.fromNumber(ea)}}function makeSignBytes({accountNumber:en,authInfoBytes:ei,bodyBytes:eo,chainId:ea}){let es=eu.SignDoc.fromPartial({accountNumber:en,authInfoBytes:ei,bodyBytes:eo,chainId:ea});return eu.SignDoc.encode(es).finish()}ei.makeAuthInfoBytes=makeAuthInfoBytes,ei.makeSignDoc=makeSignDoc,ei.makeSignBytes=makeSignBytes},13580:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decrypt=ei.encrypt=ei.supportedAlgorithms=ei.executeKdf=ei.cosmjsSalt=void 0;let ea=eo(79562),es=eo(28972);async function executeKdf(en,eo){if("argon2id"===eo.algorithm){let es=eo.params;if(!(0,ea.isArgon2idOptions)(es))throw Error("Invalid format of argon2id params");return ea.Argon2id.execute(en,ei.cosmjsSalt,es)}throw Error("Unsupported KDF algorithm")}async function encrypt(en,eo,es){if(es.algorithm===ei.supportedAlgorithms.xchacha20poly1305Ietf){let ei=ea.Random.getBytes(ea.xchacha20NonceLength);return new Uint8Array([...ei,...await ea.Xchacha20poly1305Ietf.encrypt(en,eo,ei)])}throw Error(`Unsupported encryption algorithm: '${es.algorithm}'`)}async function decrypt(en,eo,es){if(es.algorithm===ei.supportedAlgorithms.xchacha20poly1305Ietf){let ei=en.slice(0,ea.xchacha20NonceLength);return ea.Xchacha20poly1305Ietf.decrypt(en.slice(ea.xchacha20NonceLength),eo,ei)}throw Error(`Unsupported encryption algorithm: '${es.algorithm}'`)}ei.cosmjsSalt=(0,es.toAscii)("The CosmJS salt."),ei.executeKdf=executeKdf,ei.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},ei.encrypt=encrypt,ei.decrypt=decrypt},73518:function(en){en.exports=Long;var ei=null;try{ei=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(en){}function Long(en,ei,eo){this.low=0|en,this.high=0|ei,this.unsigned=!!eo}
vendor: 4,152 bytes, line 2
2function isLong(en){return!0===(en&&en.__isLong__)}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0}),Long.isLong=isLong;var eo={},ea={};function fromInt(en,ei){var es,ed,eu;return ei?(en>>>=0,(eu=0<=en&&en<256)&&(ed=ea[en]))?ed:(es=fromBits(en,(0|en)<0?-1:0,!0),eu&&(ea[en]=es),es):(en|=0,(eu=-128<=en&&en<128)&&(ed=eo[en]))?ed:(es=fromBits(en,en<0?-1:0,!1),eu&&(eo[en]=es),es)}function fromNumber(en,ei){if(isNaN(en))return ei?eg:em;if(ei){if(en<0)return eg;if(en>=eu)return eR}else{if(en<=-ef)return eA;if(en+1>=ef)return e_}return en<0?fromNumber(-en,ei).neg():fromBits(en%ed|0,en/ed|0,ei)}function fromBits(en,ei,eo){return new Long(en,ei,eo)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var es=Math.pow;function fromString(en,ei,eo){if(0===en.length)throw Error("empty string");if("NaN"===en||"Infinity"===en||"+Infinity"===en||"-Infinity"===en)return em;if("number"==typeof ei?(eo=ei,ei=!1):ei=!!ei,(eo=eo||10)<2||36<eo)throw RangeError("radix");if((ea=en.indexOf("-"))>0)throw Error("interior hyphen");if(0===ea)return fromString(en.substring(1),ei,eo).neg();for(var ea,ed=fromNumber(es(eo,8)),eu=em,ef=0;ef<en.length;ef+=8){var ep=Math.min(8,en.length-ef),eg=parseInt(en.substring(ef,ef+ep),eo);if(ep<8){var ey=fromNumber(es(eo,ep));eu=eu.mul(ey).add(fromNumber(eg))}else eu=(eu=eu.mul(ed)).add(fromNumber(eg))}return eu.unsigned=ei,eu}function fromValue(en,ei){return"number"==typeof en?fromNumber(en,ei):"string"==typeof en?fromString(en,ei):fromBits(en.low,en.high,"boolean"==typeof ei?ei:en.unsigned)}Long.fromString=fromString,Long.fromValue=fromValue;var ed=4294967296,eu=18446744073709552e3,ef=0x7fffffffffffffff,ep=fromInt(16777216),em=fromInt(0);Long.ZERO=em;var eg=fromInt(0,!0);Long.UZERO=eg;var ey=fromInt(1);Long.ONE=ey;var eb=fromInt(1,!0);Long.UONE=eb;var eS=fromInt(-1);Long.NEG_ONE=eS;var e_=fromBits(-1,2147483647,!1);Long.MAX_VALUE=e_;var eR=fromBits(-1,-1,!0);Long.MAX_UNSIGNED_VALUE=eR;var eA=fromBits(0,-2147483648,!1);Long.MIN_VALUE=eA;var ew=Long.prototype;ew.toInt=function(){return this.unsigned?this.low>>>0:this.low},ew.toNumber=function(){return this.unsigned?(this.high>>>0)*ed+(this.low>>>0):this.high*ed+(this.low>>>0)},ew.toString=function(en){if((en=en||10)<2||36<en)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(!this.eq(eA))return"-"+this.neg().toString(en);var ei=fromNumber(en),eo=this.div(ei),ea=eo.mul(ei).sub(this);return eo.toString(en)+ea.toInt().toString(en)}for(var ed=fromNumber(es(en,6),this.unsigned),eu=this,ef="";;){var ep=eu.div(ed),em=(eu.sub(ep.mul(ed)).toInt()>>>0).toString(en);if((eu=ep).isZero())return em+ef;for(;em.length<6;)em="0"+em;ef=""+em+ef}},ew.getHighBits=function(){return this.high},ew.getHighBitsUnsigned=function(){return this.high>>>0},ew.getLowBits=function(){return this.low},ew.getLowBitsUnsigned=function(){return this.low>>>0},ew.getNumBitsAbs=function(){if(this.isNegative())return this.eq(eA)?64:this.neg().getNumBitsAbs();for(var en=0!=this.high?this.high:this.low,ei=31;ei>0&&(en&1<<ei)==0;ei--);return 0!=this.high?ei+33:ei+1},ew.isZero=function(){return 0===this.high&&0===this.low},ew.eqz=ew.isZero,ew.isNegative=function(){return!this.unsigned&&this.high<0},ew.isPositive=function(){return this.unsigned||this.high>=0},ew.isOdd=function(){return(1&this.low)==1},ew.isEven=function(){return(1&this.low)==0},ew.equals=function(en){return isLong(en)||(en=fromValue(en)),(this.unsigned===en.unsigned||this.high>>>31!=1||en.high>>>31!=1)&&this.high===en.high&&this.low===en.low},ew.eq=ew.equals,ew.notEquals=function(en){return!this.eq(en)},ew.neq=ew.notEquals,ew.ne=ew.notEquals,ew.lessThan=function(en){return 0>this.comp(en)},ew.lt=ew.lessThan,ew.lessThanOrEqual=function(en){return 0>=this.comp(en)},ew.lte=ew.lessThanOrEqual,ew.le=ew.lessThanOrEqual,ew.greaterThan=function(en){return this.comp(en)>0},ew.gt=ew.greaterThan,ew.greaterThanOrEqual=function(en){return this.comp(en)>=0},ew.gte=ew.greaterThanOrEqual,ew.ge=ew.greaterThanOrEqual,ew.compare=function(en){if(isLong(en)||(en=fromValue(en)),this.eq(en))return 0;var ei=this.isNegative(),eo=en.isNegative();
2return ei&&!eo?-1:!ei&&eo?1:this.unsigned?en.high>>>0>this.high>>>0||en.high===this.high&&en.low>>>0>this.low>>>0?-1:1:this.sub(en).isNegative()?-1:1},ew.comp=ew.compare,ew.negate=function(){return!this.unsigned&&this.eq(eA)?eA:this.not().add(ey)},ew.neg=ew.negate,ew.add=function(en){isLong(en)||(en=fromValue(en));var ei,eo,ea=this.high>>>16,es=65535&this.high,ed=this.low>>>16,eu=65535&this.low,ef=en.high>>>16,ep=65535&en.high,em=en.low>>>16,eg=65535&en.low,ey=0,eb=0;return ei=0+((eo=0+(eu+eg))>>>16),eo&=65535,ei+=ed+em,eb+=ei>>>16,ei&=65535,eb+=es+ep,ey+=eb>>>16,eb&=65535,ey+=ea+ef,fromBits(ei<<16|eo,(ey&=65535)<<16|eb,this.unsigned)},ew.subtract=function(en){return isLong(en)||(en=fromValue(en)),this.add(en.neg())},ew.sub=ew.subtract,ew.multiply=function(en){if(this.isZero())return em;if(isLong(en)||(en=fromValue(en)),ei)return fromBits(ei.mul(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned);if(en.isZero())return em;if(this.eq(eA))return en.isOdd()?eA:em;if(en.eq(eA))return this.isOdd()?eA:em;if(this.isNegative())return en.isNegative()?this.neg().mul(en.neg()):this.neg().mul(en).neg();if(en.isNegative())return this.mul(en.neg()).neg();if(this.lt(ep)&&en.lt(ep))return fromNumber(this.toNumber()*en.toNumber(),this.unsigned);var eo,ea,es=this.high>>>16,ed=65535&this.high,eu=this.low>>>16,ef=65535&this.low,eg=en.high>>>16,ey=65535&en.high,eb=en.low>>>16,eS=65535&en.low,e_=0,eR=0;return eo=0+((ea=0+ef*eS)>>>16),ea&=65535,eo+=eu*eS,eR+=eo>>>16,eo&=65535,eo+=ef*eb,eR+=eo>>>16,eo&=65535,eR+=ed*eS,e_+=eR>>>16,eR&=65535,eR+=eu*eb,e_+=eR>>>16,eR&=65535,eR+=ef*ey,e_+=eR>>>16,eR&=65535,e_+=es*eS+ed*eb+eu*ey+ef*eg,fromBits(eo<<16|ea,(e_&=65535)<<16|eR,this.unsigned)},ew.mul=ew.multiply,ew.divide=function(en){if(isLong(en)||(en=fromValue(en)),en.isZero())throw Error("division by zero");if(ei){var eo,ea,ed;return this.unsigned||-2147483648!==this.high||-1!==en.low||-1!==en.high?fromBits((this.unsigned?ei.div_u:ei.div_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?eg:em;if(this.unsigned){if(en.unsigned||(en=en.toUnsigned()),en.gt(this))return eg;if(en.gt(this.shru(1)))return eb;ed=eg}else{if(this.eq(eA))return en.eq(ey)||en.eq(eS)?eA:en.eq(eA)?ey:(eo=this.shr(1).div(en).shl(1)).eq(em)?en.isNegative()?ey:eS:(ea=this.sub(en.mul(eo)),ed=eo.add(ea.div(en)));if(en.eq(eA))return this.unsigned?eg:em;if(this.isNegative())return en.isNegative()?this.neg().div(en.neg()):this.neg().div(en).neg();if(en.isNegative())return this.div(en.neg()).neg();ed=em}for(ea=this;ea.gte(en);){for(var eu=Math.ceil(Math.log(eo=Math.max(1,Math.floor(ea.toNumber()/en.toNumber())))/Math.LN2),ef=eu<=48?1:es(2,eu-48),ep=fromNumber(eo),e_=ep.mul(en);e_.isNegative()||e_.gt(ea);)eo-=ef,e_=(ep=fromNumber(eo,this.unsigned)).mul(en);ep.isZero()&&(ep=ey),ed=ed.add(ep),ea=ea.sub(e_)}return ed},ew.div=ew.divide,ew.modulo=function(en){return(isLong(en)||(en=fromValue(en)),ei)?fromBits((this.unsigned?ei.rem_u:ei.rem_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this.sub(this.div(en).mul(en))},ew.mod=ew.modulo,ew.rem=ew.modulo,ew.not=function(){return fromBits(~this.low,~this.high,this.unsigned)},ew.and=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low&en.low,this.high&en.high,this.unsigned)},ew.or=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low|en.low,this.high|en.high,this.unsigned)},ew.xor=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low^en.low,this.high^en.high,this.unsigned)},ew.shiftLeft=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low<<en,this.high<<en|this.low>>>32-en,this.unsigned):fromBits(0,this.low<<en-32,this.unsigned)},ew.shl=ew.shiftLeft,ew.shiftRight=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low>>>en|this.high<<32-en,this.high>>en,this.unsigned):fromBits(this.high>>en-32,this.high>=0?0:-1,this.unsigned)},ew.shr=ew.shiftRight,ew.shiftRightUnsigned=function(en){if(isLong(en)&&(en=en.toInt()),0==(en&=63))return this;var ei=this.high;return en<32?fromBits(this.low>>>en|ei<<32-en,ei>>>en,this.unsigned):32===en?fromBits(ei,0,this.unsigned):fromBits(ei>>>en-32,0,this.unsigned)},ew.shru=ew.shiftRightUnsigned,ew.shr_u=ew.shiftRightUnsigned,ew.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this},ew.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)},ew.toBytes=function(en){return en?this.toBytesLE():this.toBytesBE()},ew.toBytesLE=function(){var en=this.high,ei=this.low;return[255&ei,ei>>>8&255,ei>>>16&255,ei>>>24,255&en,en>>>8&255,en>>>16&255,en>>>24]},ew.toBytesBE=function(){var en=this.high,ei=this.low;return[en>>>24,en>>>16&255,en>>>8&255,255&en,ei>>>24,ei>>>16&255,ei>>>8&255,255&ei]},Long.fromBytes=function(en,ei,eo){return eo?Long.fromBytesLE(en,ei):Long.fromBytesBE(en,ei)},Long.fromBytesLE=function(en,ei){return new Long(en[0]|en[1]<<8|en[2]<<16|en[3]<<24,en[4]|en[5]<<8|en[6]<<16|en[7]<<24,ei)},Long.fromBytesBE=function(en,ei){return new Long(en[4]<<24|en[5]<<16|en[6]<<8|en[7],en[0]<<24|en[1]<<16|en[2]<<8|en[3],ei)}},63830:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.StreamingSocket=ei.SocketWrapper=ei.ReconnectingSocket=ei.QueueingStreamingSocket=ei.ConnectionStatus=void 0;var ea=eo(62365);Object.defineProperty(ei,"ConnectionStatus",{enumerable:!0,get:function(){return ea.ConnectionStatus}}),Object.defineProperty(ei,"QueueingStreamingSocket",{enumerable:!0,get:function(){return ea.QueueingStreamingSocket}});var es=eo(45850);Object.defineProperty(ei,"ReconnectingSocket",{enumerable:!0,get:function(){return es.ReconnectingSocket}});var ed=eo(59320);Object.defineProperty(ei,"SocketWrapper",{enumerable:!0,get:function(){return ed.SocketWrapper}});var eu=eo(36794);Object.defineProperty(ei,"StreamingSocket",{enumerable:!0,get:function(){return eu.StreamingSocket}})},62365:function(en,ei,eo){"use strict";var ea;Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueueingStreamingSocket=ei.ConnectionStatus=void 0;let es=eo(1662),ed=eo(43813),eu=eo(36794);!function(en){en[en.Unconnected=0]="Unconnected",en[en.Connecting=1]="Connecting",en[en.Connected=2]="Connected",en[en.Disconnected=3]="Disconnected"}(ea=ei.ConnectionStatus||(ei.ConnectionStatus={}));let QueueingStreamingSocket=class QueueingStreamingSocket{constructor(en,ei=1e4,eo){this.queue=[],this.isProcessingQueue=!1,this.url=en,this.timeout=ei,this.reconnectedHandler=eo;let ef={start:en=>this.eventProducerListener=en,stop:()=>this.eventProducerListener=void 0};this.events=ed.Stream.create(ef),this.connectionStatusProducer=new es.DefaultValueProducer(ea.Unconnected),this.connectionStatus=new es.ValueAndUpdates(this.connectionStatusProducer),this.socket=new eu.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:en=>{if(!this.eventProducerListener)throw Error("No event producer listener set");this.eventProducerListener.next(en)},error:()=>this.connectionStatusProducer.update(ea.Disconnected)})}connect(){this.connectionStatusProducer.update(ea.Connecting),this.socket.connected.then(async()=>(this.connectionStatusProducer.update(ea.Connected),this.processQueue()),()=>this.connectionStatusProducer.update(ea.Disconnected)),this.socket.connect()}disconnect(){this.connectionStatusProducer.update(ea.Disconnected),this.socket.disconnect()}reconnect(){this.socket=new eu.StreamingSocket(this.url,this.timeout),this.socket.events.subscribe({next:en=>{if(!this.eventProducerListener)throw Error("No event producer listener set");this.eventProducerListener.next(en)},error:()=>this.connectionStatusProducer.update(ea.Disconnected)}),this.socket.connected.then(()=>{this.reconnectedHandler&&this.reconnectedHandler()}),this.connect()}getQueueLength(){return this.queue.length}queueRequest(en){this.queue.push(en),this.processQueue()}async processQueue(){let en;if(!this.isProcessingQueue&&this.connectionStatus.value===ea.Connected)for(this.isProcessingQueue=!0;en=this.queue.shift();)try{await this.socket.send(en),this.isProcessingQueue=!1}catch(ei){this.queue.unshift(en),this.isProcessingQueue=!1;return}}};ei.QueueingStreamingSocket=QueueingStreamingSocket},45850:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ReconnectingSocket=void 0;let ea=eo(43813),es=eo(62365);let ReconnectingSocket=class ReconnectingSocket{static calculateTimeout(en){return Math.min(2**en*100,5e3)}constructor(en,ei=1e4,eo){this.unconnected=!0,this.disconnected=!1,this.timeoutIndex=0,this.reconnectTimeout=null;let ed={start:en=>this.eventProducerListener=en,stop:()=>this.eventProducerListener=void 0};this.events=ea.Stream.create(ed),this.socket=new es.QueueingStreamingSocket(en,ei,eo),this.socket.events.subscribe({next:en=>{this.eventProducerListener&&this.eventProducerListener.next(en)},error:en=>{this.eventProducerListener&&this.eventProducerListener.error(en)}}),this.connectionStatus=this.socket.connectionStatus,this.connectionStatus.updates.subscribe({next:en=>{en===es.ConnectionStatus.Connected&&(this.timeoutIndex=0),en===es.ConnectionStatus.Disconnected&&(this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null),this.reconnectTimeout=setTimeout(()=>this.socket.reconnect(),ReconnectingSocket.calculateTimeout(this.timeoutIndex++)))}})}connect(){if(!this.unconnected)throw Error("Cannot connect: socket has already connected");this.socket.connect(),this.unconnected=!1}disconnect(){if(this.unconnected)throw Error("Cannot disconnect: socket has not yet connected");this.socket.disconnect(),this.eventProducerListener&&this.eventProducerListener.complete(),this.disconnected=!0}queueRequest(en){if(this.disconnected)throw Error("Cannot queue request: socket has disconnected");this.socket.queueRequest(en)}};ei.ReconnectingSocket=ReconnectingSocket},59320:function(en,ei,eo){"use strict";var ea=eo(83454),es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SocketWrapper=void 0;let ed=es(eo(46792));function environmentIsNodeJs(){return void 0!==ea&&void 0!==ea.versions&&void 0!==ea.versions.node}let SocketWrapper=class SocketWrapper{constructor(en,ei,eo,ea,es,ed=1e4){this.closed=!1,this.connected=new Promise((en,ei)=>{this.connectedResolver=en,this.connectedRejecter=ei}),this.url=en,this.messageHandler=ei,this.errorHandler=eo,this.openHandler=ea,this.closeHandler=es,this.timeout=ed}connect(){let en=new ed.default(this.url);en.onerror=en=>{this.clearTimeout(),this.errorHandler&&this.errorHandler(en)},en.onmessage=en=>{this.messageHandler({type:en.type,data:en.data})},en.onopen=en=>{this.clearTimeout(),this.connectedResolver(),this.openHandler&&this.openHandler()}
2,en.onclose=en=>{this.closed=!0,this.closeHandler&&this.closeHandler(en)};let ei=Date.now();this.timeoutId=setTimeout(()=>{en.onmessage=()=>0,en.onerror=()=>0,en.onopen=()=>0,en.onclose=()=>0,en.close(),this.socket=void 0;let eo=Math.floor(Date.now()-ei);this.connectedRejecter(`Connection attempt timed out after ${eo} ms`)},this.timeout),this.socket=en}disconnect(){if(!this.socket)throw Error("Socket undefined. This must be called after connecting.");switch(this.clearTimeout(),this.socket.readyState){case ed.default.OPEN:this.socket.close(1e3);break;case ed.default.CLOSED:break;case ed.default.CONNECTING:this.socket.onopen=()=>0,this.socket.onclose=()=>0,this.socket.onerror=()=>0,this.socket.onmessage=()=>0,this.socket=void 0,this.closeHandler&&this.closeHandler({wasClean:!1,code:4001});break;case ed.default.CLOSING:break;default:throw Error(`Unknown readyState: ${this.socket.readyState}`)}}async send(en){return new Promise((ei,eo)=>{if(!this.socket)throw Error("Socket undefined. This must be called after connecting.");if(this.closed)throw Error("Socket was closed, so no data can be sent anymore.");if(this.socket.readyState!==ed.default.OPEN)throw Error("Websocket is not open");environmentIsNodeJs()?this.socket.send(en,en=>en?eo(en):ei()):(this.socket.send(en),ei())})}clearTimeout(){if(!this.timeoutId)throw Error("Timeout ID not set. This should not happen and usually means connect() was not called.");clearTimeout(this.timeoutId)}};ei.SocketWrapper=SocketWrapper},36794:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.StreamingSocket=void 0;let ea=eo(43813),es=eo(59320);let StreamingSocket=class StreamingSocket{constructor(en,ei=1e4){this.socket=new es.SocketWrapper(en,en=>{this.eventProducerListener&&this.eventProducerListener.next(en)},en=>{this.eventProducerListener&&this.eventProducerListener.error(en)},()=>{},en=>{this.eventProducerListener&&(en.wasClean?this.eventProducerListener.complete():this.eventProducerListener.error("Socket was closed unclean"))},ei),this.connected=this.socket.connected;let eo={start:en=>this.eventProducerListener=en,stop:()=>this.eventProducerListener=void 0};this.events=ea.Stream.create(eo)}connect(){this.socket.connect()}disconnect(){this.socket.disconnect()}async send(en){return this.socket.send(en)}};ei.StreamingSocket=StreamingSocket},70555:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.concat=void 0;let ea=eo(43813);function concat(...en){let ei=[],eo=[],es=new Set,ed=0;function reset(){for(;ei.length>0;){let en=ei.shift();en.unsubscribe()}eo.length=0,es.clear(),ed=0}let eu={start:ea=>{function emitAllQueuesEvents(en){for(;;){let ei=eo[en].shift();if(void 0===ei)return;ea.next(ei)}}function isDone(){return ed>=en.length}if(en.forEach(en=>eo.push([])),isDone()){ea.complete();return}en.forEach((en,eu)=>{ei.push(en.subscribe({next:en=>{eu===ed?ea.next(en):eo[eu].push(en)},complete:()=>{for(es.add(eu);es.has(ed);)emitAllQueuesEvents(ed),ed++;isDone()?ea.complete():emitAllQueuesEvents(ed)},error:en=>{ea.error(en),reset()}}))})},stop:()=>{reset()}};return ea.Stream.create(eu)}ei.concat=concat},21480:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.DefaultValueProducer=void 0;let DefaultValueProducer=class DefaultValueProducer{get value(){return this.internalValue}constructor(en,ei){this.callbacks=ei,this.internalValue=en}update(en){this.internalValue=en,this.listener&&this.listener.next(en)}error(en){this.listener&&this.listener.error(en)}start(en){this.listener=en,en.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}};ei.DefaultValueProducer=DefaultValueProducer},8901:function(en,ei){"use strict";function dropDuplicates(en){let operand=ei=>{let eo=new Set,ea=ei.filter(ei=>!eo.has(en(ei))).debug(ei=>eo.add(en(ei)));return ea};return operand}Object.defineProperty(ei,"__esModule",{value:!0}),ei.dropDuplicates=void 0,ei.dropDuplicates=dropDuplicates},1662:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueAndUpdates=ei.toListPromise=ei.fromListPromise=ei.firstEvent=ei.dropDuplicates=ei.DefaultValueProducer=ei.concat=void 0;var ed=eo(70555);Object.defineProperty(ei,"concat",{enumerable:!0,get:function(){return ed.concat}});var eu=eo(21480);Object.defineProperty(ei,"DefaultValueProducer",{enumerable:!0,get:function(){return eu.DefaultValueProducer}});var ef=eo(8901);Object.defineProperty(ei,"dropDuplicates",{enumerable:!0,get:function(){return ef.dropDuplicates}});var ep=eo(86247);Object.defineProperty(ei,"firstEvent",{enumerable:!0,get:function(){return ep.firstEvent}}),Object.defineProperty(ei,"fromListPromise",{enumerable:!0,get:function(){return ep.fromListPromise}}),Object.defineProperty(ei,"toListPromise",{enumerable:!0,get:function(){return ep.toListPromise}}),es(eo(71267),ei);var em=eo(42729);Object.defineProperty(ei,"ValueAndUpdates",{enumerable:!0,get:function(){return em.ValueAndUpdates}})},86247:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.firstEvent=ei.toListPromise=ei.fromListPromise=void 0;let ea=eo(43813);function fromListPromise(en){let ei={start:ei=>{en.then(en=>{for(let eo of en)ei.next(eo);ei.complete()}).catch(en=>ei.error(en))},stop:()=>{}};return ea.Stream.create(ei)}async function toListPromise(en,ei){return new Promise((eo,ea)=>
2{if(0===ei){eo([]);return}let es=[];en.take(ei).subscribe({next:en=>{es.push(en),es.length===ei&&eo(es)},complete:()=>{ea(`Stream completed before all events could be collected. Collected ${es.length}, expected ${ei}`)},error:en=>ea(en)})})}async function firstEvent(en){return(await toListPromise(en,1))[0]}ei.fromListPromise=fromListPromise,ei.toListPromise=toListPromise,ei.firstEvent=firstEvent},71267:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.lastValue=ei.asArray=ei.countStream=ei.Reducer=void 0;let Reducer=class Reducer{constructor(en,ei,eo){this.stream=en,this.reducer=ei,this.state=eo,this.completed=new Promise((en,ei)=>{let eo=this.stream.subscribe({next:en=>{this.state=this.reducer(this.state,en)},complete:()=>{en(),eo.unsubscribe()},error:en=>{ei(en),eo.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}};function increment(en,ei){return en+1}function countStream(en){return new Reducer(en,increment,0)}function append(en,ei){return[...en,ei]}function asArray(en){return new Reducer(en,append,[])}function last(en,ei){return ei}function lastValue(en){return new Reducer(en,last,void 0)}ei.Reducer=Reducer,ei.countStream=countStream,ei.asArray=asArray,ei.lastValue=lastValue},42729:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueAndUpdates=void 0;let ea=eo(43813);let ValueAndUpdates=class ValueAndUpdates{get value(){return this.producer.value}constructor(en){this.producer=en,this.updates=ea.MemoryStream.createWithMemory(this.producer)}async waitFor(en){let ei="function"==typeof en?en:ei=>ei===en;return new Promise((en,eo)=>{let ea=this.updates.subscribe({next:eo=>{ei(eo)&&(en(eo),setTimeout(()=>ea.unsubscribe(),0))},complete:()=>{ea.unsubscribe(),eo("Update stream completed without expected value")},error:en=>{eo(en)}})})}};ei.ValueAndUpdates=ValueAndUpdates},92538:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.accountFromAny=void 0;let ea=eo(62949),es=eo(74087),ed=eo(85553),eu=eo(83487),ef=eo(5303);function uint64FromProto(en){return ea.Uint64.fromString(en.toString())}function accountFromBaseAccount(en){let{address:ei,pubKey:eo,accountNumber:ea,sequence:ed}=en,eu=eo?(0,es.decodePubkey)(eo):null;return{address:ei,pubkey:eu,accountNumber:uint64FromProto(ea).toNumber(),sequence:uint64FromProto(ed).toNumber()}}function accountFromAny(en){let{typeUrl:ei,value:eo}=en;switch(ei){case"/cosmos.auth.v1beta1.BaseAccount":return accountFromBaseAccount(eu.BaseAccount.decode(eo));case"/cosmos.auth.v1beta1.ModuleAccount":{let en=eu.ModuleAccount.decode(eo).baseAccount;return(0,ed.assert)(en),accountFromBaseAccount(en)}case"/cosmos.vesting.v1beta1.BaseVestingAccount":{let en=ef.BaseVestingAccount.decode(eo)?.baseAccount;return(0,ed.assert)(en),accountFromBaseAccount(en)}case"/cosmos.vesting.v1beta1.ContinuousVestingAccount":{let en=ef.ContinuousVestingAccount.decode(eo)?.baseVestingAccount?.baseAccount;return(0,ed.assert)(en),accountFromBaseAccount(en)}case"/cosmos.vesting.v1beta1.DelayedVestingAccount":{let en=ef.DelayedVestingAccount.decode(eo)?.baseVestingAccount?.baseAccount;return(0,ed.assert)(en),accountFromBaseAccount(en)}case"/cosmos.vesting.v1beta1.PeriodicVestingAccount":{let en=ef.PeriodicVestingAccount.decode(eo)?.baseVestingAccount?.baseAccount;return(0,ed.assert)(en),accountFromBaseAccount(en)}default:throw Error(`Unsupported type: '${ei}'`)}}ei.accountFromAny=accountFromAny},86111:function(en,ei){"use strict";function isAminoConverter(en){return"string"!=typeof en[1]}Object.defineProperty(ei,"__esModule",{value:!0}),ei.AminoTypes=void 0;let AminoTypes=class AminoTypes{constructor(en){this.register=en}toAmino({typeUrl:en,value:ei}){let eo=this.register[en];if("not_supported_by_chain"===eo)throw Error(`The message type '${en}' cannot be signed using the Amino JSON sign mode because this is not supported by chain.`);if(!eo)throw Error(`Type URL '${en}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);return{type:eo.aminoType,value:eo.toAmino(ei)}}fromAmino({type:en,value:ei}){let eo=Object.entries(this.register).filter(isAminoConverter).filter(([ei,{aminoType:eo}])=>eo===en);switch(eo.length){case 0:throw Error(`Amino type identifier '${en}' does not exist in the Amino message type register. If you need support for this message type, you can pass in additional entries to the AminoTypes constructor. If you think this message type should be included by default, please open an issue at https://github.com/cosmos/cosmjs/issues.`);case 1:{let[en,ea]=eo[0];return{typeUrl:en,value:ea.fromAmino(ei)}}default:throw Error(`Multiple types are registered with Amino type identifier '${en}': '`+eo.map(([en,ei])=>
2en).sort().join("', '")+"'. Thus fromAmino cannot be performed.")}}};ei.AminoTypes=AminoTypes},76615:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.fromTendermintEvent=void 0;let ea=eo(28972);function fromTendermintEvent(en){return{type:en.type,attributes:en.attributes.map(en=>({key:"string"==typeof en.key?en.key:(0,ea.fromUtf8)(en.key,!0),value:"string"==typeof en.value?en.value:(0,ea.fromUtf8)(en.value,!0)}))}}ei.fromTendermintEvent=fromTendermintEvent},91371:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.calculateFee=ei.GasPrice=void 0;let ea=eo(62949),es=eo(74087);function checkDenom(en){if(en.length<3||en.length>128)throw Error("Denom must be between 3 and 128 characters")}let GasPrice=class GasPrice{constructor(en,ei){this.amount=en,this.denom=ei}static fromString(en){let ei=en.match(/^([0-9.]+)([a-z][a-z0-9]*)$/i);if(!ei)throw Error("Invalid gas price string");let[eo,es,ed]=ei;checkDenom(ed);let eu=18,ef=ea.Decimal.fromUserInput(es,eu);return new GasPrice(ef,ed)}toString(){return this.amount.toString()+this.denom}};function calculateFee(en,ei){let eo="string"==typeof ei?GasPrice.fromString(ei):ei,{denom:ed,amount:eu}=eo,ef=eu.multiply(new ea.Uint53(en)).ceil().toString();return{amount:(0,es.coins)(ef,ed),gas:en.toString()}}ei.GasPrice=GasPrice,ei.calculateFee=calculateFee},24658:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupAuthExtension=ei.isMsgWithdrawDelegatorRewardEncodeObject=ei.isMsgVoteWeightedEncodeObject=ei.isMsgVoteEncodeObject=ei.isMsgUndelegateEncodeObject=ei.isMsgTransferEncodeObject=ei.isMsgSubmitProposalEncodeObject=ei.isMsgSendEncodeObject=ei.isMsgEditValidatorEncodeObject=ei.isMsgDepositEncodeObject=ei.isMsgDelegateEncodeObject=ei.isMsgCreateValidatorEncodeObject=ei.isMsgBeginRedelegateEncodeObject=ei.isAminoMsgWithdrawValidatorCommission=ei.isAminoMsgWithdrawDelegatorReward=ei.isAminoMsgVoteWeighted=ei.isAminoMsgVote=ei.isAminoMsgVerifyInvariant=ei.isAminoMsgUnjail=ei.isAminoMsgUndelegate=ei.isAminoMsgTransfer=ei.isAminoMsgSubmitProposal=ei.isAminoMsgSubmitEvidence=ei.isAminoMsgSetWithdrawAddress=ei.isAminoMsgSend=ei.isAminoMsgMultiSend=ei.isAminoMsgFundCommunityPool=ei.isAminoMsgEditValidator=ei.isAminoMsgDeposit=ei.isAminoMsgDelegate=ei.isAminoMsgCreateVestingAccount=ei.isAminoMsgCreateValidator=ei.isAminoMsgBeginRedelegate=ei.createVestingAminoConverters=ei.createStakingAminoConverters=ei.createSlashingAminoConverters=ei.createIbcAminoConverters=ei.createGovAminoConverters=ei.createFeegrantAminoConverters=ei.createEvidenceAminoConverters=ei.createDistributionAminoConverters=ei.createCrysisAminoConverters=ei.createBankAminoConverters=ei.createAuthzAminoConverters=ei.logs=ei.GasPrice=ei.calculateFee=ei.fromTendermintEvent=ei.AminoTypes=ei.accountFromAny=void 0,ei.parseCoins=ei.makeCosmoshubPath=ei.coins=ei.coin=ei.TimeoutError=ei.StargateClient=ei.isDeliverTxSuccess=ei.isDeliverTxFailure=ei.BroadcastTxError=ei.assertIsDeliverTxSuccess=ei.assertIsDeliverTxFailure=ei.SigningStargateClient=ei.defaultRegistryTypes=ei.createDefaultAminoConverters=ei.QueryClient=ei.decodeCosmosSdkDecFromProto=ei.createProtobufRpcClient=ei.createPagination=ei.makeMultisignedTxBytes=ei.makeMultisignedTx=ei.setupTxExtension=ei.setupStakingExtension=ei.setupSlashingExtension=ei.setupMintExtension=ei.setupIbcExtension=ei.setupGovExtension=ei.setupFeegrantExtension=ei.setupDistributionExtension=ei.setupBankExtension=ei.setupAuthzExtension=void 0;var eu=eo(92538);Object.defineProperty(ei,"accountFromAny",{enumerable:!0,get:function(){return eu.accountFromAny}});var ef=eo(86111);Object.defineProperty(ei,"AminoTypes",{enumerable:!0,get:function(){return ef.AminoTypes}});var ep=eo(76615);Object.defineProperty(ei,"fromTendermintEvent",{enumerable:!0,get:function(){return ep.fromTendermintEvent}});var em=eo(91371);Object.defineProperty(ei,"calculateFee",{enumerable:!0,get:function(){return em.calculateFee}}),Object.defineProperty(ei,"GasPrice",{enumerable:!0,get:function(){return em.GasPrice}}
2),ei.logs=ed(eo(52082));var eg=eo(27393);Object.defineProperty(ei,"createAuthzAminoConverters",{enumerable:!0,get:function(){return eg.createAuthzAminoConverters}}),Object.defineProperty(ei,"createBankAminoConverters",{enumerable:!0,get:function(){return eg.createBankAminoConverters}}),Object.defineProperty(ei,"createCrysisAminoConverters",{enumerable:!0,get:function(){return eg.createCrysisAminoConverters}}),Object.defineProperty(ei,"createDistributionAminoConverters",{enumerable:!0,get:function(){return eg.createDistributionAminoConverters}}),Object.defineProperty(ei,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return eg.createEvidenceAminoConverters}}),Object.defineProperty(ei,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return eg.createFeegrantAminoConverters}}),Object.defineProperty(ei,"createGovAminoConverters",{enumerable:!0,get:function(){return eg.createGovAminoConverters}}),Object.defineProperty(ei,"createIbcAminoConverters",{enumerable:!0,get:function(){return eg.createIbcAminoConverters}}),Object.defineProperty(ei,"createSlashingAminoConverters",{enumerable:!0,get:function(){return eg.createSlashingAminoConverters}}),Object.defineProperty(ei,"createStakingAminoConverters",{enumerable:!0,get:function(){return eg.createStakingAminoConverters}}),Object.defineProperty(ei,"createVestingAminoConverters",{enumerable:!0,get:function(){return eg.createVestingAminoConverters}}),Object.defineProperty(ei,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return eg.isAminoMsgBeginRedelegate}}),Object.defineProperty(ei,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return eg.isAminoMsgCreateValidator}}),Object.defineProperty(ei,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return eg.isAminoMsgCreateVestingAccount}}),Object.defineProperty(ei,"isAminoMsgDelegate",{enumerable:!0,get:function(){return eg.isAminoMsgDelegate}}),Object.defineProperty(ei,"isAminoMsgDeposit",{enumerable:!0,get:function(){return eg.isAminoMsgDeposit}}),Object.defineProperty(ei,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return eg.isAminoMsgEditValidator}}),Object.defineProperty(ei,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return eg.isAminoMsgFundCommunityPool}}),Object.defineProperty(ei,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return eg.isAminoMsgMultiSend}}),Object.defineProperty(ei,"isAminoMsgSend",{enumerable:!0,get:function(){return eg.isAminoMsgSend}}),Object.defineProperty(ei,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return eg.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(ei,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return eg.isAminoMsgSubmitEvidence}}),Object.defineProperty(ei,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return eg.isAminoMsgSubmitProposal}}),Object.defineProperty(ei,"isAminoMsgTransfer",{enumerable:!0,get:function(){return eg.isAminoMsgTransfer}}),Object.defineProperty(ei,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return eg.isAminoMsgUndelegate}}),Object.defineProperty(ei,"isAminoMsgUnjail",{enumerable:!0,get:function(){return eg.isAminoMsgUnjail}}),Object.defineProperty(ei,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return eg.isAminoMsgVerifyInvariant}}),Object.defineProperty(ei,"isAminoMsgVote",{enumerable:!0,get:function(){return eg.isAminoMsgVote}}),Object.defineProperty(ei,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return eg.isAminoMsgVoteWeighted}}),Object.defineProperty(ei,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return eg.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(ei,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return eg.isAminoMsgWithdrawValidatorCommission}}),Object.defineProperty(ei,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return eg.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(ei,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return eg.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(ei,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return eg.isMsgDelegateEncodeObject}}),Object.defineProperty(ei,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return eg.isMsgDepositEncodeObject}}),Object.defineProperty(ei,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return eg.isMsgEditValidatorEncodeObject}}),Object.defineProperty(ei,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return eg.isMsgSendEncodeObject}}),Object.defineProperty(ei,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return eg.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(ei,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return eg.isMsgTransferEncodeObject}}),Object.defineProperty(ei,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return eg.isMsgUndelegateEncodeObject}}),Object.defineProperty(ei,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return eg.isMsgVoteEncodeObject}}),Object.defineProperty(ei,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return eg.isMsgVoteWeightedEncodeObject}}),Object.defineProperty(ei,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return eg.isMsgWithdrawDelegatorRewardEncodeObject}}),Object.defineProperty(ei,"setupAuthExtension",{enumerable:!0,get:function(){return eg.setupAuthExtension}}),Object.defineProperty(ei,"setupAuthzExtension",{enumerable:!0,get:function(){return eg.setupAuthzExtension}}),Object.defineProperty(ei,"setupBankExtension",{enumerable:!0,get:function(){return eg.setupBankExtension}}),Object.defineProperty(ei,"setupDistributionExtension",{enumerable:!0,get:function(){return eg.setupDistributionExtension}}),Object.defineProperty(ei,"setupFeegrantExtension",{enumerable:!0,get:function(){return eg.setupFeegrantExtension}}),Object.defineProperty(ei,"setupGovExtension",{enumerable:!0,get:function(){return eg.setupGovExtension}}),Object.defineProperty(ei,"setupIbcExtension",{enumerable:!0,get:function(){return eg.setupIbcExtension}}),Object.defineProperty(ei,"setupMintExtension",{enumerable:!0,get:function(){return eg.setupMintExtension}}),Object.defineProperty(ei,"setupSlashingExtension",{enumerable:!0,get:function(){return eg.setupSlashingExtension}}),Object.defineProperty(ei,"setupStakingExtension",{enumerable:!0,get:function(){return eg.setupStakingExtension}}),Object.defineProperty(ei,"setupTxExtension",{enumerable:!0,get:function(){return eg.setupTxExtension}});var ey=eo(19625);Object.defineProperty(ei,"makeMultisignedTx",{enumerable:!0,get:function(){return ey.makeMultisignedTx}}),Object.defineProperty(ei,"makeMultisignedTxBytes",{enumerable:!0,get:function(){return ey.makeMultisignedTxBytes}});var eb=eo(45504);Object.defineProperty(ei,"createPagination",{enumerable:!0,get:function(){return eb.createPagination}}),Object.defineProperty(ei,"createProtobufRpcClient",{enumerable:!0,get:function(){return eb.createProtobufRpcClient}}),Object.defineProperty(ei,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return eb.decodeCosmosSdkDecFromProto}}),Object.defineProperty(ei,"QueryClient",{enumerable:!0,get:function(){return eb.QueryClient}});var eS=eo(59438);Object.defineProperty(ei,"createDefaultAminoConverters",{enumerable:!0,get:function(){return eS.createDefaultAminoConverters}}),Object.defineProperty(ei,"defaultRegistryTypes",{enumerable:!0,get:function(){return eS.defaultRegistryTypes}}),Object.defineProperty(ei,"SigningStargateClient",{enumerable:!0,get:function(){return eS.SigningStargateClient}});var e_=eo(16499);Object.defineProperty(ei,"assertIsDeliverTxFailure",{enumerable:!0,get:function(){return e_.assertIsDeliverTxFailure}}),Object.defineProperty(ei,"assertIsDeliverTxSuccess",{enumerable:!0,get:function(){return e_.assertIsDeliverTxSuccess}}),Object.defineProperty(ei,"BroadcastTxError",{enumerable:!0,get:function(){return e_.BroadcastTxError}}),Object.defineProperty(ei,"isDeliverTxFailure",{enumerable:!0,get:function(){return e_.isDeliverTxFailure}}),Object.defineProperty(ei,"isDeliverTxSuccess",{enumerable:!0,get:function(){return e_.isDeliverTxSuccess}}),Object.defineProperty(ei,"StargateClient",{enumerable:!0,get:function(){return e_.StargateClient}}),Object.defineProperty(ei,"TimeoutError",{enumerable:!0,get:function(){return e_.TimeoutError}});var eR=eo(74087);Object.defineProperty(ei,"coin",{enumerable:!0,get:function(){return eR.coin}}),Object.defineProperty(ei,"coins",{enumerable:!0,get:function(){return eR.coins}}),Object.defineProperty(ei,"makeCosmoshubPath",{enumerable:!0,get:function(){return eR.makeCosmoshubPath}}),Object.defineProperty(ei,"parseCoins",{enumerable:!0,get:function(){return eR.parseCoins}})},52082:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.findAttribute=ei.parseRawLog=ei.parseLogs=ei.parseLog=ei.parseEvent=ei.parseAttribute=void 0;let ea=eo(85553);function parseAttribute(en){if(!(0,ea.isNonNullObject)(en))throw Error("Attribute must be a non-null object");let{key:ei,value:eo}=en;if("string"!=typeof ei||!ei)throw Error("Attribute's key must be a non-empty string");if("string"!=typeof eo&&void 0!==eo)throw Error("Attribute's value must be a string or unset");return{key:ei,value:eo||""}}function parseEvent(en){if(!(0,ea.isNonNullObject)(en))throw Error("Event must be a non-null object");let{type:ei,attributes:eo}=en;if("string"!=typeof ei||""===ei)throw Error("Event type must be a non-empty string");if(!Array.isArray(eo))throw Error("Event's attributes must be an array");return{type:ei,attributes:eo.map(parseAttribute)}}function parseLog(en){if(!(0,ea.isNonNullObject)(en))throw Error("Log must be a non-null object");let{msg_index:ei,log:eo,events:es}=en;if("number"!=typeof ei)throw Error("Log's msg_index must be a number");if("string"!=typeof eo)throw Error("Log's log must be a string");if(!Array.isArray(es))throw Error("Log's events must be an array");return{msg_index:ei,log:eo,events:es.map(parseEvent)}}function parseLogs(en){if(!Array.isArray(en))throw Error("Logs must be an array");return en.map(parseLog)}function parseRawLog(en="[]"){let ei=JSON.parse(en).map(({events:en},ei)=>({msg_index:ei,events:en,log:""}));return parseLogs(ei)}function findAttribute(en,ei,eo){let ea=en.find(()=>!0),es=ea?.events.find(en=>en.type===ei)?.attributes.find(en=>en.key===eo);if(!es)throw Error(`Could not find attribute '${eo}' in first event of type '${ei}' in first log.`);return es}ei.parseAttribute=parseAttribute,ei.parseEvent=parseEvent,ei.parseLog=parseL
2og,ei.parseLogs=parseLogs,ei.parseRawLog=parseRawLog,ei.findAttribute=findAttribute},78288:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupAuthExtension=void 0;let ea=eo(54443),es=eo(45504);function setupAuthExtension(en){let ei=(0,es.createProtobufRpcClient)(en),eo=new ea.QueryClientImpl(ei);return{auth:{account:async en=>{let{account:ei}=await eo.Account({address:en});return ei??null}}}}ei.setupAuthExtension=setupAuthExtension},44357:function(en,ei){"use strict";function createAuthzAminoConverters(){return{"/cosmos.authz.v1beta1.MsgGrant":"not_supported_by_chain","/cosmos.authz.v1beta1.MsgExec":"not_supported_by_chain","/cosmos.authz.v1beta1.MsgRevoke":"not_supported_by_chain"}}Object.defineProperty(ei,"__esModule",{value:!0}),ei.createAuthzAminoConverters=void 0,ei.createAuthzAminoConverters=createAuthzAminoConverters},59829:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.authzTypes=void 0;let ea=eo(70895);ei.authzTypes=[["/cosmos.authz.v1beta1.MsgExec",ea.MsgExec],["/cosmos.authz.v1beta1.MsgGrant",ea.MsgGrant],["/cosmos.authz.v1beta1.MsgRevoke",ea.MsgRevoke]]},27960:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupAuthzExtension=void 0;let ea=eo(95413),es=eo(45504);function setupAuthzExtension(en){let ei=(0,es.createProtobufRpcClient)(en),eo=new ea.QueryClientImpl(ei);return{authz:{grants:async(en,ei,ea,ed)=>await eo.Grants({granter:en,grantee:ei,msgTypeUrl:ea,pagination:(0,es.createPagination)(ed)}),granteeGrants:async(en,ei)=>await eo.GranteeGrants({grantee:en,pagination:(0,es.createPagination)(ei)}),granterGrants:async(en,ei)=>await eo.GranterGrants({granter:en,pagination:(0,es.createPagination)(ei)})}}}ei.setupAuthzExtension=setupAuthzExtension},61531:function(en,ei){"use strict";function isAminoMsgSend(en){return"cosmos-sdk/MsgSend"===en.type}function isAminoMsgMultiSend(en){return"cosmos-sdk/MsgMultiSend"===en.type}function createBankAminoConverters(){return{"/cosmos.bank.v1beta1.MsgSend":{aminoType:"cosmos-sdk/MsgSend",toAmino:({fromAddress:en,toAddress:ei,amount:eo})=>({from_address:en,to_address:ei,amount:[...eo]}),fromAmino:({from_address:en,to_address:ei,amount:eo})=>({fromAddress:en,toAddress:ei,amount:[...eo]})},"/cosmos.bank.v1beta1.MsgMultiSend":{aminoType:"cosmos-sdk/MsgMultiSend",toAmino:({inputs:en,outputs:ei})=>({inputs:en.map(en=>({address:en.address,coins:[...en.coins]})),outputs:ei.map(en=>({address:en.address,coins:[...en.coins]}))}),fromAmino:({inputs:en,outputs:ei})=>({inputs:en.map(en=>({address:en.address,coins:[...en.coins]})),outputs:ei.map(en=>({address:en.address,coins:[...en.coins]}))})}}}Object.defineProperty(ei,"__esModule",{value:!0}),ei.createBankAminoConverters=ei.isAminoMsgMultiSend=ei.isAminoMsgSend=void 0,ei.isAminoMsgSend=isAminoMsgSend,ei.isAminoMsgMultiSend=isAminoMsgMultiSend,ei.createBankAminoConverters=createBankAminoConverters},40010:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isMsgSendEncodeObject=ei.bankTypes=void 0;let ea=eo(98994);function isMsgSendEncodeObject(en){return"/cosmos.bank.v1beta1.MsgSend"===en.typeUrl}ei.bankTypes=[["/cosmos.bank.v1beta1.MsgMultiSend",ea.MsgMultiSend],["/cosmos.bank.v1beta1.MsgSend",ea.MsgSend]],ei.isMsgSendEncodeObject=isMsgSendEncodeObject},19012:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupBankExtension=void 0;let ea=eo(85553),es=eo(62916),ed=eo(45504);function setupBankExtension(en){let ei=(0,ed.createProtobufRpcClient)(en),eo=new es.QueryClientImpl(ei);return{bank:{balance:async(en,ei)=>{let{balance:es}=await eo.Balance({address:en,denom:ei});return(0,ea.assert)(es),es},allBalances:async en=>{let{balances:ei}=await eo.AllBalances({address:en});return ei},totalSupply:async en=>{let ei=await eo.TotalSupply({pagination:(0,ed.createPagination)(en)});return ei},supplyOf:async en=>{let{amount:ei}=await eo.SupplyOf({denom:en});return(0,ea.assert)(ei),ei},denomMetadata:async en=>{let{metadata:ei}=await eo.DenomMetadata({denom:en});return(0,ea.assert)(ei),ei},denomsMetadata:async()=>{let{metadatas:en}=await eo.DenomsMetadata({pagination:void 0});return en}}}}ei.setupBankExtension=setupBankExtension},30269:function(en,ei){"use strict";function isAminoMsgVerifyInvariant(en){return"cosmos-sdk/MsgVerifyInvariant"===en.type}function createCrysisAminoConverters(){throw Error("Not implemented")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.createCrysisAminoConverters=ei.isAminoMsgVerifyInvariant=void 0,ei.isAminoMsgVerifyInvariant=isAminoMsgVerifyInvariant,ei.createCrysisAminoConverters=createCrysisAminoConverters},46992:function(en,ei){"use strict";function isAminoMsgSetWithdrawAddress(en){return"cosmos-sdk/MsgModifyWithdrawAddress"===en.type}function isAminoMsgWithdrawDelegatorReward(en){return"cosmos-sdk/MsgWithdrawDelegationReward"===en.type}function isAminoMsgWithdrawValidatorCommission(en){return"cosmos-sdk/MsgWithdrawValidatorCommission"===en.type}function isAminoMsgFundCommunityPool(en){return"cosmos-sdk/MsgFundCommunityPool"===en.type}function createDistributionAminoConverters(){return{"/cosmos.distribution.v1beta1.MsgFundCommunityPool":{aminoType:"cosmos-sdk/MsgFundCommunityPool",toAmino:({amount:en,depositor:ei})=>({amount:[...en],depositor:ei}),fromAmino:({amount:en,depositor:ei})=>({amount:[...en],depositor:ei})},"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":{aminoType:"cosmos-sdk/MsgModifyWithdrawAddress",toAmino:({delegatorAddress:en,withdrawAddress:ei})=>({delegator_address:en,withdraw_address:ei}),fromAmino:({delegator_address:en,withdraw_address:ei})=>({delegatorAddress:en,withdrawAddress:ei})},"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":{aminoType:"cosmos-sdk/MsgWithdrawDelegationReward",toAmino:({delegatorAddress:en,val
2idatorAddress:ei})=>({delegator_address:en,validator_address:ei}),fromAmino:({delegator_address:en,validator_address:ei})=>({delegatorAddress:en,validatorAddress:ei})},"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":{aminoType:"cosmos-sdk/MsgWithdrawValidatorCommission",toAmino:({validatorAddress:en})=>({validator_address:en}),fromAmino:({validator_address:en})=>({validatorAddress:en})}}}Object.defineProperty(ei,"__esModule",{value:!0}),ei.createDistributionAminoConverters=ei.isAminoMsgFundCommunityPool=ei.isAminoMsgWithdrawValidatorCommission=ei.isAminoMsgWithdrawDelegatorReward=ei.isAminoMsgSetWithdrawAddress=void 0,ei.isAminoMsgSetWithdrawAddress=isAminoMsgSetWithdrawAddress,ei.isAminoMsgWithdrawDelegatorReward=isAminoMsgWithdrawDelegatorReward,ei.isAminoMsgWithdrawValidatorCommission=isAminoMsgWithdrawValidatorCommission,ei.isAminoMsgFundCommunityPool=isAminoMsgFundCommunityPool,ei.createDistributionAminoConverters=createDistributionAminoConverters},22320:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isMsgWithdrawDelegatorRewardEncodeObject=ei.distributionTypes=void 0;let ea=eo(73773);function isMsgWithdrawDelegatorRewardEncodeObject(en){return"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward"===en.typeUrl}ei.distributionTypes=[["/cosmos.distribution.v1beta1.MsgFundCommunityPool",ea.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",ea.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",ea.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",ea.MsgWithdrawValidatorCommission]],ei.isMsgWithdrawDelegatorRewardEncodeObject=isMsgWithdrawDelegatorRewardEncodeObject},16561:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupDistributionExtension=void 0;let es=eo(76208),ed=ea(eo(50960)),eu=eo(45504);function setupDistributionExtension(en){let ei=(0,eu.createProtobufRpcClient)(en),eo=new es.QueryClientImpl(ei);return{distribution:{communityPool:async()=>{let en=await eo.CommunityPool({});return en},delegationRewards:async(en,ei)=>{let ea=await eo.DelegationRewards({delegatorAddress:en,validatorAddress:ei});return ea},delegationTotalRewards:async en=>{let ei=await eo.DelegationTotalRewards({delegatorAddress:en});return ei},delegatorValidators:async en=>{let ei=await eo.DelegatorValidators({delegatorAddress:en});return ei},delegatorWithdrawAddress:async en=>{let ei=await eo.DelegatorWithdrawAddress({delegatorAddress:en});return ei},params:async()=>{let en=await eo.Params({});return en},validatorCommission:async en=>{let ei=await eo.ValidatorCommission({validatorAddress:en});return ei},validatorOutstandingRewards:async en=>{let ei=await eo.ValidatorOutstandingRewards({validatorAddress:en});return ei},validatorSlashes:async(en,ei,ea,es)=>{let ef=await eo.ValidatorSlashes({validatorAddress:en,startingHeight:ed.default.fromNumber(ei,!0),endingHeight:ed.default.fromNumber(ea,!0),pagination:(0,eu.createPagination)(es)});return ef}}}}ei.setupDistributionExtension=setupDistributionExtension},56275:function(en,ei){"use strict";function isAminoMsgSubmitEvidence(en){return"cosmos-sdk/MsgSubmitEvidence"===en.type}function createEvidenceAminoConverters(){throw Error("Not implemented")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.createEvidenceAminoConverters=ei.isAminoMsgSubmitEvidence=void 0,ei.isAminoMsgSubmitEvidence=isAminoMsgSubmitEvidence,ei.createEvidenceAminoConverters=createEvidenceAminoConverters},66651:function(en,ei){"use strict";function createFeegrantAminoConverters(){return{"/cosmos.feegrant.v1beta1.MsgGrantAllowance":"not_supported_by_chain","/cosmos.feegrant.v1beta1.MsgRevokeAllowance":"not_supported_by_chain"}}Object.defineProperty(ei,"__esModule",{value:!0}),ei.createFeegrantAminoConverters=void 0,ei.createFeegrantAminoConverters=createFeegrantAminoConverters},26324:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.feegrantTypes=void 0;let ea=eo(65192);ei.feegrantTypes=[["/cosmos.feegrant.v1beta1.MsgGrantAllowance",ea.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",ea.MsgRevokeAllowance]]},72940:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupFeegrantExtension=void 0;let ea=eo(6343),es=eo(45504);function setupFeegrantExtension(en){let ei=(0,es.createProtobufRpcClient)(en),eo=new ea.QueryClientImpl(ei);return{feegrant:{allowance:async(en,ei)=>{let ea=await eo.Allowance({granter:en,grantee:ei});return ea},allowances:async(en,ei)=>{let ea=await eo.Allowances({grantee:en,pagination:(0,es.createPagination)(ei)});return ea}}}}ei.setupFeegrantExtension=setupFeegrantExtension},57280:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.createGovAminoConverters=ei.isAminoMsgDeposit=ei.isAminoMsgVoteWeighted=ei.isAminoMsgVote=ei.isAminoMsgSubmitProposal=void 0;let es=eo(62949),ed=eo(85553),eu=eo(99876),ef=eo(53862),ep=ea(eo(50960)),em=eo(45504);function isAminoMsgSubmitProposal(en){return"cosmos-sdk/MsgSubmitProposal"===en.type}function isAminoMsgVote(en){return"cosmos-sdk/MsgVote"===en.type}function isAminoMsgVoteWeighted(en){return"cosmos-sdk/MsgVoteWeighted"===en.type}function isAminoMsgDeposit(en){return"cosmos-sdk/MsgDeposit"===en.type}function createGovAminoConverters(){return{"/cosmos.gov.v1beta1.MsgDeposit":{aminoType:"cosmos-sdk/MsgDeposit",toAmino:({amount:en,depositor:ei,proposalId:eo})=>({amount:en,depositor:ei,proposal_id:eo.toString()}),fromAmino:({amount:en,depositor:ei,proposal_id:eo})=>({amount:Array.from(en),depositor:ei,proposalId:ep.default.fromString(eo)})},"/cosmos.gov.v1beta1.MsgVote":{aminoType:"cosmos-sdk/MsgVote",toAmino:({option:en,proposalId:ei,voter:eo})=>({option:en,proposal_id:ei.toString(),voter:eo}),fromAmino:({option:en,proposal_id:ei,voter:eo})=>({option:(0,eu.voteOptionFromJSON)(en),proposalId:ep.default.fromString(ei),voter:eo})},"/cosmos.gov.v1beta1.MsgVoteWeighted":{aminoType:"cosmos-sdk/MsgVoteWeighted",toAmino:({options:en,proposalId:ei,voter:eo})=>({options:en.map(en=>({option:en.option,weight:(0,em.decodeCosmosSdkDecFromProto)(en.weight).toString().padEnd(20,"0")})),proposal_id:ei.toString(),voter:eo}),fromAmino:({options:en,proposal_id:ei,voter:eo})=>({proposalId:ep.default.fromString(ei),voter:eo,options:en.map(en=>({option:(0,eu.voteOptionFromJSON)(en.option),weight:es.Decimal.fromUserInput(en.weight,18).atomics}))})},"/cosmos.gov.v1beta1.MsgSubmitProposal":{aminoType:"cosmos-sdk/MsgSubmitProposal",toAmino:({initialDeposit:en,proposer:ei,content:eo})=>{let ea;if((0,ed.assertDefinedAndNotNull)(eo),"/cosmos.gov.v1beta1.TextProposal"===eo.typeUrl){let en=eu.TextProposal.decode(eo.value);ea={type:"cosmos-sdk/TextProposal",value:{description:en.description,title:en.title}}}else throw Error(`Unsupported proposal type: '${eo.typeUrl}'`);return{initial_deposit:en,proposer:ei,content:ea}},fromAmino:({initial_deposit:en,proposer:ei,content:eo})=>{let ea;if("cosmos-sdk/TextProposal"===eo.type){let{value:en}=eo;(0,ed.assert)((0,ed.isNonNullObject)(en));let{title:ei,description:es}=en;(0,ed.assert)("string"==typeof ei),(0,ed.assert)("string"==typeof es),ea=ef.Any.fromPartial({typeUrl:"/cosmos.gov.v1beta1.TextProposal",value:eu.TextProposal.encode(eu.TextProposal.fromPartial({title:ei,description:es})).finish()})}else throw Error(`Unsupported proposal type: '${eo.type}'`);return{initialDeposit:Array.from(en),proposer:ei,content:ea}}}}}ei.isAminoMsgSubmitProposal=isAminoMsgSubmitProposal,ei.isAminoMsgVote=isAminoMsgVote,ei.isAminoMsgVoteWeighted=isAminoMsgVoteWeighted,ei.isAminoMsgDeposit=isAminoMsgDeposit,ei.createGovAminoConverters=createGovAminoConverters},47184:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isMsgVoteWeightedEncodeObject=ei.isMsgVoteEncodeObject=ei.isMsgSubmitProposalEncodeObject=ei.isMsgDepositEncodeObject=ei.govTypes=void 0;let ea=eo(20750);function isMsgDepositEncodeObject(en){return"/cosmos.gov.v1beta1.MsgDeposit"===en.typeUrl}function isMsgSubmitProposalEncodeObject(en){return"/cosmos.gov.v1beta1.MsgSubmitProposal"===en.typeUrl}function isMsgVoteEncodeObject(en){return"/cosmos.gov.v1beta1.MsgVote"===en.typeUrl}function isMsgVoteWeightedEncodeObject(en){return"/cosmos.gov.v1beta1.MsgVoteWeighted"===en.typeUrl}ei.govTypes=[["/cosmos.gov.v1beta1.MsgDeposit",ea.MsgDeposit],["/cosmos.gov.v1beta1.MsgSubmitProposal",ea.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",ea.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",ea.MsgVoteWeighted]],ei.isMsgDepositEncodeObject=isMsgDepositEncodeObject,ei.isMsgSubmitProposalEncodeObject=isMsgSubmitProposalEncodeObject,ei.isMsgVoteEncodeObject=isMsgVoteEncodeObject,ei.isMsgVoteWeightedEncodeObject=isMsgVoteWeightedEncodeObject},31306:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupGovExtension=void 0;let ea=eo(89207),es=eo(45504);function setupGovExtension(en){let ei=(0,es.createProtobufRpcClient)(en),eo=new ea.QueryClientImpl(ei);return{gov:{params:async en=>
2{let ei=await eo.Params({paramsType:en});return ei},proposals:async(en,ei,ea,ed)=>{let eu=await eo.Proposals({proposalStatus:en,depositor:ei,voter:ea,pagination:(0,es.createPagination)(ed)});return eu},proposal:async en=>{let ei=await eo.Proposal({proposalId:(0,es.longify)(en)});return ei},deposits:async(en,ei)=>{let ea=await eo.Deposits({proposalId:(0,es.longify)(en),pagination:(0,es.createPagination)(ei)});return ea},deposit:async(en,ei)=>{let ea=await eo.Deposit({proposalId:(0,es.longify)(en),depositor:ei});return ea},tally:async en=>{let ei=await eo.TallyResult({proposalId:(0,es.longify)(en)});return ei},votes:async(en,ei)=>{let ea=await eo.Votes({proposalId:(0,es.longify)(en),pagination:(0,es.createPagination)(ei)});return ea},vote:async(en,ei)=>{let ea=await eo.Vote({proposalId:(0,es.longify)(en),voter:ei});return ea}}}}ei.setupGovExtension=setupGovExtension},85744:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.createIbcAminoConverters=ei.isAminoMsgTransfer=void 0;let es=eo(39385),ed=ea(eo(50960));function isAminoMsgTransfer(en){return"cosmos-sdk/MsgTransfer"===en.type}function omitDefault(en){if("string"==typeof en)return""===en?void 0:en;if("number"==typeof en)return 0===en?void 0:en;if(ed.default.isLong(en))return en.isZero()?void 0:en;throw Error(`Got unsupported type '${typeof en}'`)}function createIbcAminoConverters(){return{"/ibc.applications.transfer.v1.MsgTransfer":{aminoType:"cosmos-sdk/MsgTransfer",toAmino:({sourcePort:en,sourceChannel:ei,token:eo,sender:ea,receiver:es,timeoutHeight:ed,timeoutTimestamp:eu})=>({source_port:en,source_channel:ei,token:eo,sender:ea,receiver:es,timeout_height:ed?{revision_height:omitDefault(ed.revisionHeight)?.toString(),revision_number:omitDefault(ed.revisionNumber)?.toString()}:{},timeout_timestamp:omitDefault(eu)?.toString()}),fromAmino:({source_port:en,source_channel:ei,token:eo,sender:ea,receiver:eu,timeout_height:ef,timeout_timestamp:ep})=>es.MsgTransfer.fromPartial({sourcePort:en,sourceChannel:ei,token:eo,sender:ea,receiver:eu,timeoutHeight:ef?{revisionHeight:ed.default.fromString(ef.revision_height||"0",!0),revisionNumber:ed.default.fromString(ef.revision_number||"0",!0)}:void 0,timeoutTimestamp:ed.default.fromString(ep||"0",!0)})}}}ei.isAminoMsgTransfer=isAminoMsgTransfer,ei.createIbcAminoConverters=createIbcAminoConverters},90536:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isMsgTransferEncodeObject=ei.ibcTypes=void 0;let ea=eo(39385),es=eo(7375),ed=eo(62082),eu=eo(74848);function isMsgTransferEncodeObject(en){return"/ibc.applications.transfer.v1.MsgTransfer"===en.typeUrl}ei.ibcTypes=[["/ibc.applications.transfer.v1.MsgTransfer",ea.MsgTransfer],["/ibc.core.channel.v1.MsgAcknowledgement",es.MsgAcknowledgement],["/ibc.core.channel.v1.MsgChannelCloseConfirm",es.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",es.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelOpenAck",es.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",es.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelOpenInit",es.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",es.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgRecvPacket",es.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",es.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",es.MsgTimeoutOnClose],["/ibc.core.client.v1.MsgCreateClient",ed.MsgCreateClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",ed.MsgSubmitMisbehaviour],["/ibc.core.client.v1.MsgUpdateClient",ed.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",ed.MsgUpgradeClient],["/ibc.core.connection.v1.MsgConnectionOpenAck",eu.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",eu.MsgConnectionOpenConfirm],["/ibc.core.connection.v1.MsgConnectionOpenInit",eu.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",eu.MsgConnectionOpenTry]],ei.isMsgTransferEncodeObject=isMsgTransferEncodeObject},20794:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupIbcExtension=void 0;let es=eo(28972),ed=eo(62949),eu=eo(75892),ef=eo(71787),ep=eo(6688),em=eo(66448),eg=eo(72329),ey=eo(11234),eb=ea(eo(
250960)),eS=eo(45504);function decodeTendermintClientStateAny(en){if(en?.typeUrl!=="/ibc.lightclients.tendermint.v1.ClientState")throw Error(`Unexpected client state type: ${en?.typeUrl}`);return ey.ClientState.decode(en.value)}function decodeTendermintConsensusStateAny(en){if(en?.typeUrl!=="/ibc.lightclients.tendermint.v1.ConsensusState")throw Error(`Unexpected client state type: ${en?.typeUrl}`);return ey.ConsensusState.decode(en.value)}function setupIbcExtension(en){let ei=(0,eS.createProtobufRpcClient)(en),eo=new ep.QueryClientImpl(ei),ea=new em.QueryClientImpl(ei),ey=new eg.QueryClientImpl(ei),e_=new eu.QueryClientImpl(ei);return{ibc:{channel:{channel:async(en,ei)=>eo.Channel({portId:en,channelId:ei}),channels:async en=>eo.Channels({pagination:(0,eS.createPagination)(en)}),allChannels:async()=>{let en,ei;let ea=[];do ea.push(...(en=await eo.Channels({pagination:(0,eS.createPagination)(ei)})).channels),ei=en.pagination?.nextKey;while(ei&&ei.length);return{channels:ea,height:en.height}},connectionChannels:async(en,ei)=>eo.ConnectionChannels({connection:en,pagination:(0,eS.createPagination)(ei)}),allConnectionChannels:async en=>{let ei,ea;let es=[];do es.push(...(ei=await eo.ConnectionChannels({connection:en,pagination:(0,eS.createPagination)(ea)})).channels),ea=ei.pagination?.nextKey;while(ea&&ea.length);return{channels:es,height:ei.height}},clientState:async(en,ei)=>eo.ChannelClientState({portId:en,channelId:ei}),consensusState:async(en,ei,ea,es)=>eo.ChannelConsensusState({portId:en,channelId:ei,revisionNumber:eb.default.fromNumber(ea,!0),revisionHeight:eb.default.fromNumber(es,!0)}),packetCommitment:async(en,ei,ea)=>eo.PacketCommitment({portId:en,channelId:ei,sequence:eb.default.fromNumber(ea,!0)}),packetCommitments:async(en,ei,ea)=>eo.PacketCommitments({channelId:ei,portId:en,pagination:(0,eS.createPagination)(ea)}),allPacketCommitments:async(en,ei)=>{let ea,es;let ed=[];do ed.push(...(ea=await eo.PacketCommitments({channelId:ei,portId:en,pagination:(0,eS.createPagination)(es)})).commitments),es=ea.pagination?.nextKey;while(es&&es.length);return{commitments:ed,height:ea.height}},packetReceipt:async(en,ei,ea)=>eo.PacketReceipt({portId:en,channelId:ei,sequence:eb.default.fromNumber(ea,!0)}),packetAcknowledgement:async(en,ei,ea)=>eo.PacketAcknowledgement({portId:en,channelId:ei,sequence:eb.default.fromNumber(ea,!0)}),packetAcknowledgements:async(en,ei,ea)=>{let es=ep.QueryPacketAcknowledgementsRequest.fromPartial({portId:en,channelId:ei,pagination:(0,eS.createPagination)(ea)});return eo.PacketAcknowledgements(es)},allPacketAcknowledgements:async(en,ei)=>{let ea,es;let ed=[];do{let eu=ep.QueryPacketAcknowledgementsRequest.fromPartial({channelId:ei,portId:en,pagination:(0,eS.createPagination)(es)});ea=await eo.PacketAcknowledgements(eu),ed.push(...ea.acknowledgements),es=ea.pagination?.nextKey}while(es&&es.length);return{acknowledgements:ed,height:ea.height}},unreceivedPackets:async(en,ei,ea)=>eo.UnreceivedPackets({portId:en,channelId:ei,packetCommitmentSequences:ea.map(en=>eb.default.fromNumber(en,!0))}),unreceivedAcks:async(en,ei,ea)=>eo.UnreceivedAcks({portId:en,channelId:ei,packetAckSequences:ea.map(en=>eb.default.fromNumber(en,!0))}),nextSequenceReceive:async(en,ei)=>eo.NextSequenceReceive({portId:en,channelId:ei})},client:{state:async en=>ea.ClientState({clientId:en}),states:async en=>ea.ClientStates({pagination:(0,eS.createPagination)(en)}),allStates:async()=>{let en,ei;let eo=[];do eo.push(...(en=await ea.ClientStates({pagination:(0,eS.createPagination)(ei)})).clientStates),ei=en.pagination?.nextKey;while(ei&&ei.length);return{clientStates:eo}},consensusState:async(en,ei)=>ea.ConsensusState(em.QueryConsensusStateRequest.fromPartial({clientId:en,revisionHeight:void 0!==ei?eb.default.fromNumber(ei,!0):void 0,latestHeight:void 0===ei})),consensusStates:async(en,ei)=>ea.ConsensusStates({clientId:en,pagination:(0,eS.createPagination)(ei)}),allConsensusStates:async en=>{let ei,eo;let es=[];do es.push(...(ei=await ea.ConsensusStates({clientId:en,pagination:(0,eS.createPagination)(eo)})).consensusStates),eo=ei.pagination?.nextKey;while(eo&&eo.length);return{consensusStates:es}},params:async()=>ea.ClientParams({}),stateTm:async en=>{let ei=await ea.ClientState({clientId:en});return decodeTendermintClientStateAny(ei.clientState)},statesTm:async en=>{let{clientStates:ei}=await ea.ClientStates({pagination:(0,eS.createPagination)(en)});return ei.map(({clientState:en})=>decodeTendermintClientStateAny(en))},allStatesTm:async()=>{let en,ei;let eo=[];do eo.push(...(en=await ea.ClientStates({pagination:(0,eS.createPagination)(ei)}
2)).clientStates),ei=en.pagination?.nextKey;while(ei&&ei.length);return eo.map(({clientState:en})=>decodeTendermintClientStateAny(en))},consensusStateTm:async(en,ei)=>{let eo=await ea.ConsensusState(em.QueryConsensusStateRequest.fromPartial({clientId:en,revisionHeight:ei?.revisionHeight,revisionNumber:ei?.revisionNumber,latestHeight:void 0===ei}));return decodeTendermintConsensusStateAny(eo.consensusState)}},connection:{connection:async en=>ey.Connection({connectionId:en}),connections:async en=>ey.Connections({pagination:(0,eS.createPagination)(en)}),allConnections:async()=>{let en,ei;let eo=[];do eo.push(...(en=await ey.Connections({pagination:(0,eS.createPagination)(ei)})).connections),ei=en.pagination?.nextKey;while(ei&&ei.length);return{connections:eo,height:en.height}},clientConnections:async en=>ey.ClientConnections({clientId:en}),clientState:async en=>ey.ConnectionClientState({connectionId:en}),consensusState:async(en,ei)=>ey.ConnectionConsensusState(eg.QueryConnectionConsensusStateRequest.fromPartial({connectionId:en,revisionHeight:eb.default.fromNumber(ei,!0)}))},transfer:{denomTrace:async en=>e_.DenomTrace({hash:en}),denomTraces:async en=>e_.DenomTraces({pagination:(0,eS.createPagination)(en)}),allDenomTraces:async()=>{let en,ei;let eo=[];do eo.push(...(en=await e_.DenomTraces({pagination:(0,eS.createPagination)(ei)})).denomTraces),ei=en.pagination?.nextKey;while(ei&&ei.length);return{denomTraces:eo}},params:async()=>e_.Params({})},verified:{channel:{channel:async(ei,eo)=>{let ea=(0,es.toAscii)(`channelEnds/ports/${ei}/channels/${eo}`),{value:ed}=await en.queryStoreVerified("ibc",ea);return ed.length?ef.Channel.decode(ed):null},packetCommitment:async(ei,eo,ea)=>{let ed=(0,es.toAscii)(`commitments/ports/${ei}/channels/${eo}/packets/${ea}`),{value:eu}=await en.queryStoreVerified("ibc",ed);return eu},packetAcknowledgement:async(ei,eo,ea)=>{let ed=(0,es.toAscii)(`acks/ports/${ei}/channels/${eo}/acknowledgements/${ea}`),{value:eu}=await en.queryStoreVerified("ibc",ed);return eu},nextSequenceReceive:async(ei,eo)=>{let ea=(0,es.toAscii)(`seqAcks/ports/${ei}/channels/${eo}/nextSequenceAck`),{value:eu}=await en.queryStoreVerified("ibc",ea);return eu.length?ed.Uint64.fromBytes(eu).toNumber():null}}}}}}ei.setupIbcExtension=setupIbcExtension},27393:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isAminoMsgEditValidator=ei.isAminoMsgDelegate=ei.isAminoMsgCreateValidator=ei.isAminoMsgBeginRedelegate=ei.createStakingAminoConverters=ei.setupSlashingExtension=ei.isAminoMsgUnjail=ei.createSlashingAminoConverters=ei.setupMintExtension=ei.setupIbcExtension=ei.isMsgTransferEncodeObject=ei.ibcTypes=ei.isAminoMsgTransfer=ei.createIbcAminoConverters=ei.setupGovExtension=ei.isMsgVoteWeightedEncodeObject=ei.isMsgVoteEncodeObject=ei.isMsgSubmitProposalEncodeObject=ei.isMsgDepositEncodeObject=ei.govTypes=ei.isAminoMsgVoteWeighted=ei.isAminoMsgVote=ei.isAminoMsgSubmitProposal=ei.isAminoMsgDeposit=ei.createGovAminoConverters=ei.setupFeegrantExtension=ei.feegrantTypes=ei.createFeegrantAminoConverters=ei.isAminoMsgSubmitEvidence=ei.createEvidenceAminoConverters=ei.setupDistributionExtension=ei.isMsgWithdrawDelegatorRewardEncodeObject=ei.distributionTypes=ei.isAminoMsgWithdrawValidatorCommission=ei.isAminoMsgWithdrawDelegatorReward=ei.isAminoMsgSetWithdrawAddress=ei.isAminoMsgFundCommunityPool=ei.createDistributionAminoConverters=ei.isAminoMsgVerifyInvariant=ei.createCrysisAminoConverters=ei.setupBankExtension=ei.isMsgSendEncodeObject=ei.bankTypes=ei.isAminoMsgSend=ei.isAminoMsgMultiSend=ei.createBankAminoConverters=ei.setupAuthzExtension=ei.authzTypes=ei.createAuthzAminoConverters=ei.setupAuthExtension=void 0,ei.vestingTypes=ei.isAminoMsgCreateVestingAccount=ei.createVestingAminoConverters=ei.setupTxExtension=ei.setupStakingExtension=ei.stakingTypes=ei.isMsgUndelegateEncodeObject=ei.isMsgEditValidatorEncodeObject=ei.isMsgDelegateEncodeObject=ei.isMsgCreateValidatorEncodeObject=ei.isMsgBeginRedelegateEncodeObject=ei.isAminoMsgUndelegate=void 0;var ea=eo(78288);Object.defineProperty(ei,"setupAuthExtension",{enumerable:!0,get:function(){return ea.setupAuthExtension}});var es=eo(44357);Object.defineProperty(ei,"createAuthzAminoConverters",{enumerable:!0,get:function(){return es.createAuthzAminoConverters}});var ed=eo(59829);Object.defineProperty(ei,"authzTypes",{enumerable:!0,get:function(){return ed.authzTypes}});var eu=eo(27960);Object.defineProperty(ei,"setupAuthzExtension",{enumerable:!0,get:function(){return eu.setupAuthzExtension}});var ef=eo(61531);Object.defineProperty(ei,"createBankAminoConverters",{enumerable:!0,get:function(){return ef.createBankAminoConverters}}),Object.defineProperty(ei,"isAminoMsgMultiSend",{enumerable:!0,get:function(){return ef.isAminoMsgMultiSend}}),Object.defineProperty(ei,"isAminoMsgSend",{enumerable:!0,get:function(){return ef.isAminoMsgSend}});var ep=eo(40010);Object.defineProperty(ei,"bankTypes",{enumerable:!0,get:function(){return ep.bankTypes}}),Object.defineProperty(ei,"isMsgSendEncodeObject",{enumerable:!0,get:function(){return ep.isMsgSendEncodeObject}});var em=eo(19012);Object.defineProperty(ei,"setupBankExtension",{enumerable:!0,get:function(){return em.setupBankExtension}});
2var eg=eo(30269);Object.defineProperty(ei,"createCrysisAminoConverters",{enumerable:!0,get:function(){return eg.createCrysisAminoConverters}}),Object.defineProperty(ei,"isAminoMsgVerifyInvariant",{enumerable:!0,get:function(){return eg.isAminoMsgVerifyInvariant}});var ey=eo(46992);Object.defineProperty(ei,"createDistributionAminoConverters",{enumerable:!0,get:function(){return ey.createDistributionAminoConverters}}),Object.defineProperty(ei,"isAminoMsgFundCommunityPool",{enumerable:!0,get:function(){return ey.isAminoMsgFundCommunityPool}}),Object.defineProperty(ei,"isAminoMsgSetWithdrawAddress",{enumerable:!0,get:function(){return ey.isAminoMsgSetWithdrawAddress}}),Object.defineProperty(ei,"isAminoMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return ey.isAminoMsgWithdrawDelegatorReward}}),Object.defineProperty(ei,"isAminoMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return ey.isAminoMsgWithdrawValidatorCommission}});var eb=eo(22320);Object.defineProperty(ei,"distributionTypes",{enumerable:!0,get:function(){return eb.distributionTypes}}),Object.defineProperty(ei,"isMsgWithdrawDelegatorRewardEncodeObject",{enumerable:!0,get:function(){return eb.isMsgWithdrawDelegatorRewardEncodeObject}});var eS=eo(16561);Object.defineProperty(ei,"setupDistributionExtension",{enumerable:!0,get:function(){return eS.setupDistributionExtension}});var e_=eo(56275);Object.defineProperty(ei,"createEvidenceAminoConverters",{enumerable:!0,get:function(){return e_.createEvidenceAminoConverters}}),Object.defineProperty(ei,"isAminoMsgSubmitEvidence",{enumerable:!0,get:function(){return e_.isAminoMsgSubmitEvidence}});var eR=eo(66651);Object.defineProperty(ei,"createFeegrantAminoConverters",{enumerable:!0,get:function(){return eR.createFeegrantAminoConverters}});var eA=eo(26324);Object.defineProperty(ei,"feegrantTypes",{enumerable:!0,get:function(){return eA.feegrantTypes}});var ew=eo(72940);Object.defineProperty(ei,"setupFeegrantExtension",{enumerable:!0,get:function(){return ew.setupFeegrantExtension}});var eO=eo(57280);Object.defineProperty(ei,"createGovAminoConverters",{enumerable:!0,get:function(){return eO.createGovAminoConverters}}),Object.defineProperty(ei,"isAminoMsgDeposit",{enumerable:!0,get:function(){return eO.isAminoMsgDeposit}}),Object.defineProperty(ei,"isAminoMsgSubmitProposal",{enumerable:!0,get:function(){return eO.isAminoMsgSubmitProposal}}),Object.defineProperty(ei,"isAminoMsgVote",{enumerable:!0,get:function(){return eO.isAminoMsgVote}}),Object.defineProperty(ei,"isAminoMsgVoteWeighted",{enumerable:!0,get:function(){return eO.isAminoMsgVoteWeighted}});var eE=eo(47184);Object.defineProperty(ei,"govTypes",{enumerable:!0,get:function(){return eE.govTypes}}),Object.defineProperty(ei,"isMsgDepositEncodeObject",{enumerable:!0,get:function(){return eE.isMsgDepositEncodeObject}}),Object.defineProperty(ei,"isMsgSubmitProposalEncodeObject",{enumerable:!0,get:function(){return eE.isMsgSubmitProposalEncodeObject}}),Object.defineProperty(ei,"isMsgVoteEncodeObject",{enumerable:!0,get:function(){return eE.isMsgVoteEncodeObject}}),Object.defineProperty(ei,"isMsgVoteWeightedEncodeObject",{enumerable:!0,get:function(){return eE.isMsgVoteWeightedEncodeObject}});var eP=eo(31306);Object.defineProperty(ei,"setupGovExtension",{enumerable:!0,get:function(){return eP.setupGovExtension}});var eC=eo(85744);Object.defineProperty(ei,"createIbcAminoConverters",{enumerable:!0,get:function(){return eC.createIbcAminoConverters}}),Object.defineProperty(ei,"isAminoMsgTransfer",{enumerable:!0,get:function(){return eC.isAminoMsgTransfer}});var eT=eo(90536);Object.defineProperty(ei,"ibcTypes",{enumerable:!0,get:function(){return eT.ibcTypes}}),Object.defineProperty(ei,"isMsgTransferEncodeObject",{enumerable:!0,get:function(){return eT.isMsgTransferEncodeObject}});var eB=eo(20794);Object.defineProperty(ei,"setupIbcExtension",{enumerable:!0,get:function(){return eB.setupIbcExtension}});var eN=eo(84170);Object.defineProperty(ei,"setupMintExtension",{enumerable:!0,get:function(){return eN.setupMintExtension}});var eI=eo(77013);Object.defineProperty(ei,"createSlashingAminoConverters",{enumerable:!0,get:function(){return eI.createSlashingAminoConverters}}),Object.defineProperty(ei,"isAminoMsgUnjail",{enumerable:!0,get:function(){return eI.isAminoMsgUnjail}});var ex=eo(5774);Object.defineProperty(ei,"setupSlashingExtension",{enumerable:!0,get:function(){return ex.setupSlashingExtension}});var eM=eo(64151);Object.defineProperty(ei,"createStakingAminoConverters",{enumerable:!0,get:function(){return eM.createStakingAminoConverters}}),Object.defineProperty(ei,"isAminoMsgBeginRedelegate",{enumerable:!0,get:function(){return eM.isAminoMsgBeginRedelegate}}),Object.defineProperty(ei,"isAminoMsgCreateValidator",{enumerable:!0,get:function(){return eM.isAminoMsgCreateValidator}}),Object.defineProperty(ei,"isAminoMsgDelegate",{enumerable:!0,get:function(){return eM.isAminoMsgDelegate}}),Object.defineProperty(ei,"isAminoMsgEditValidator",{enumerable:!0,get:function(){return eM.isAminoMsgEditValidator}}),Object.defineProperty(ei,"isAminoMsgUndelegate",{enumerable:!0,get:function(){return eM.isAminoMsgUndelegate}});var eD=eo(12453);Object.defineProperty(ei,"isMsgBeginRedelegateEncodeObject",{enumerable:!0,get:function(){return eD.isMsgBeginRedelegateEncodeObject}}),Object.defineProperty(ei,"isMsgCreateValidatorEncodeObject",{enumerable:!0,get:function(){return eD.isMsgCreateValidatorEncodeObject}}),Object.defineProperty(ei,"isMsgDelegateEncodeObject",{enumerable:!0,get:function(){return eD.isMsgDelegateEncodeObject}}),Object.defineProperty(ei,"isMsgEditValidatorEncodeObject",{enumerable:!0,get:function(){return eD.isMsgEditValidatorEncodeObject}}),Object.defineProperty(ei,"isMsgUndelegateEncodeObject",{enumerable:!0,get:function(){return eD.isMsgUndelegateEncodeObject}}),Object.defineProperty(ei,"stakingTypes",{enumerable:!0,get:function(){return eD.stakingTypes}});
2var eU=eo(5608);Object.defineProperty(ei,"setupStakingExtension",{enumerable:!0,get:function(){return eU.setupStakingExtension}});var eL=eo(39704);Object.defineProperty(ei,"setupTxExtension",{enumerable:!0,get:function(){return eL.setupTxExtension}});var eJ=eo(48605);Object.defineProperty(ei,"createVestingAminoConverters",{enumerable:!0,get:function(){return eJ.createVestingAminoConverters}}),Object.defineProperty(ei,"isAminoMsgCreateVestingAccount",{enumerable:!0,get:function(){return eJ.isAminoMsgCreateVestingAccount}});var eF=eo(43907);Object.defineProperty(ei,"vestingTypes",{enumerable:!0,get:function(){return eF.vestingTypes}})},84170:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupMintExtension=void 0;let ea=eo(85553),es=eo(82879),ed=eo(45504);function setupMintExtension(en){let ei=(0,ed.createProtobufRpcClient)(en),eo=new es.QueryClientImpl(ei);return{mint:{params:async()=>{let{params:en}=await eo.Params({});return(0,ea.assert)(en),{blocksPerYear:en.blocksPerYear,goalBonded:(0,ed.decodeCosmosSdkDecFromProto)(en.goalBonded),inflationMin:(0,ed.decodeCosmosSdkDecFromProto)(en.inflationMin),inflationMax:(0,ed.decodeCosmosSdkDecFromProto)(en.inflationMax),inflationRateChange:(0,ed.decodeCosmosSdkDecFromProto)(en.inflationRateChange),mintDenom:en.mintDenom}},inflation:async()=>{let{inflation:en}=await eo.Inflation({});return(0,ed.decodeCosmosSdkDecFromProto)(en)},annualProvisions:async()=>{let{annualProvisions:en}=await eo.AnnualProvisions({});return(0,ed.decodeCosmosSdkDecFromProto)(en)}}}}ei.setupMintExtension=setupMintExtension},77013:function(en,ei){"use strict";function isAminoMsgUnjail(en){return"cosmos-sdk/MsgUnjail"===en.type}function createSlashingAminoConverters(){throw Error("Not implemented")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.createSlashingAminoConverters=ei.isAminoMsgUnjail=void 0,ei.isAminoMsgUnjail=isAminoMsgUnjail,ei.createSlashingAminoConverters=createSlashingAminoConverters},5774:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupSlashingExtension=void 0;let ea=eo(26701),es=eo(45504);function setupSlashingExtension(en){let ei=(0,es.createProtobufRpcClient)(en),eo=new ea.QueryClientImpl(ei);return{slashing:{signingInfo:async en=>{let ei=await eo.SigningInfo({consAddress:en});return ei},signingInfos:async en=>{let ei=await eo.SigningInfos({pagination:(0,es.createPagination)(en)});return ei},params:async()=>{let en=await eo.Params({});return en}}}}ei.setupSlashingExtension=setupSlashingExtension},64151:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createStakingAminoConverters=ei.isAminoMsgUndelegate=ei.isAminoMsgBeginRedelegate=ei.isAminoMsgDelegate=ei.isAminoMsgEditValidator=ei.isAminoMsgCreateValidator=ei.protoDecimalToJson=void 0;let ea=eo(62949),es=eo(74087),ed=eo(85553);function protoDecimalToJson(en){let ei=ea.Decimal.fromAtomics(en,18),[eo,es]=ei.toString().split(".");return`${eo}.${(es??"").padEnd(18,"0")}
2`}function jsonDecimalToProto(en){let ei=ea.Decimal.fromUserInput(en,18);return ei.atomics}function isAminoMsgCreateValidator(en){return"cosmos-sdk/MsgCreateValidator"===en.type}function isAminoMsgEditValidator(en){return"cosmos-sdk/MsgEditValidator"===en.type}function isAminoMsgDelegate(en){return"cosmos-sdk/MsgDelegate"===en.type}function isAminoMsgBeginRedelegate(en){return"cosmos-sdk/MsgBeginRedelegate"===en.type}function isAminoMsgUndelegate(en){return"cosmos-sdk/MsgUndelegate"===en.type}function createStakingAminoConverters(){return{"/cosmos.staking.v1beta1.MsgBeginRedelegate":{aminoType:"cosmos-sdk/MsgBeginRedelegate",toAmino:({delegatorAddress:en,validatorSrcAddress:ei,validatorDstAddress:eo,amount:ea})=>((0,ed.assertDefinedAndNotNull)(ea,"missing amount"),{delegator_address:en,validator_src_address:ei,validator_dst_address:eo,amount:ea}),fromAmino:({delegator_address:en,validator_src_address:ei,validator_dst_address:eo,amount:ea})=>({delegatorAddress:en,validatorSrcAddress:ei,validatorDstAddress:eo,amount:ea})},"/cosmos.staking.v1beta1.MsgCreateValidator":{aminoType:"cosmos-sdk/MsgCreateValidator",toAmino:({description:en,commission:ei,minSelfDelegation:eo,delegatorAddress:ea,validatorAddress:eu,pubkey:ef,value:ep})=>((0,ed.assertDefinedAndNotNull)(en,"missing description"),(0,ed.assertDefinedAndNotNull)(ei,"missing commission"),(0,ed.assertDefinedAndNotNull)(ef,"missing pubkey"),(0,ed.assertDefinedAndNotNull)(ep,"missing value"),{description:{moniker:en.moniker,identity:en.identity,website:en.website,security_contact:en.securityContact,details:en.details},commission:{rate:protoDecimalToJson(ei.rate),max_rate:protoDecimalToJson(ei.maxRate),max_change_rate:protoDecimalToJson(ei.maxChangeRate)},min_self_delegation:eo,delegator_address:ea,validator_address:eu,pubkey:(0,es.decodePubkey)(ef),value:ep}),fromAmino:({description:en,commission:ei,min_self_delegation:eo,delegator_address:ea,validator_address:ed,pubkey:eu,value:ef})=>({description:{moniker:en.moniker,identity:en.identity,website:en.website,securityContact:en.security_contact,details:en.details},commission:{rate:jsonDecimalToProto(ei.rate),maxRate:jsonDecimalToProto(ei.max_rate),maxChangeRate:jsonDecimalToProto(ei.max_change_rate)},minSelfDelegation:eo,delegatorAddress:ea,validatorAddress:ed,pubkey:(0,es.encodePubkey)(eu),value:ef})},"/cosmos.staking.v1beta1.MsgDelegate":{aminoType:"cosmos-sdk/MsgDelegate",toAmino:({delegatorAddress:en,validatorAddress:ei,amount:eo})=>((0,ed.assertDefinedAndNotNull)(eo,"missing amount"),{delegator_address:en,validator_address:ei,amount:eo}),fromAmino:({delegator_address:en,validator_address:ei,amount:eo})=>({delegatorAddress:en,validatorAddress:ei,amount:eo})},"/cosmos.staking.v1beta1.MsgEditValidator":{aminoType:"cosmos-sdk/MsgEditValidator",toAmino:({description:en,commissionRate:ei,minSelfDelegation:eo,validatorAddress:ea})=>((0,ed.assertDefinedAndNotNull)(en,"missing description"),{description:{moniker:en.moniker,identity:en.identity,website:en.website,security_contact:en.securityContact,details:en.details},commission_rate:ei?protoDecimalToJson(ei):void 0,min_self_delegation:eo||void 0,validator_address:ea}),fromAmino:({description:en,commission_rate:ei,min_self_delegation:eo,validator_address:ea})=>({description:{moniker:en.moniker,identity:en.identity,website:en.website,securityContact:en.security_contact,details:en.details},commissionRate:ei?jsonDecimalToProto(ei):"",minSelfDelegation:eo??"",validatorAddress:ea})},"/cosmos.staking.v1beta1.MsgUndelegate":{aminoType:"cosmos-sdk/MsgUndelegate",toAmino:({delegatorAddress:en,validatorAddress:ei,amount:eo})=>((0,ed.assertDefinedAndNotNull)(eo,"missing amount"),{delegator_address:en,validator_address:ei,amount:eo}),fromAmino:({delegator_address:en,validator_address:ei,amount:eo})=>({delegatorAddress:en,validatorAddress:ei,amount:eo})}}}ei.protoDecimalToJson=protoDecimalToJson,ei.isAminoMsgCreateValidator=isAminoMsgCreateValidator,ei.isAminoMsgEditValidator=isAminoMsgEditValidator,ei.isAminoMsgDelegate=isAminoMsgDelegate,ei.isAminoMsgBeginRedelegate=isAminoMsgBeginRedelegate,ei.isAminoMsgUndelegate=isAminoMsgUndelegate,ei.createStakingAminoConverters=createStakingAminoConverters},12453:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isMsgUndelegateEncodeObject=ei.isMsgEditValidatorEncodeObject=ei.isMsgDelegateEncodeObject=ei.isMsgCreateValidatorEncodeObject=ei.isMsgBeginRedelegateEncodeObject=ei.stakingTypes=void 0;let ea=eo(80422);function isMsgBeginRedelegateEncodeObject(en){return"/cosmos.staking.v1beta1.MsgBeginRedelegate"===en.typeUrl}function isMsgCreateValidatorEncodeObject(en){return"/cosmos.staking.v1beta1.MsgCreateValidator"===en.typeUrl}function isMsgDelegateEncodeObject(en){return"/cosmos.staking.v1beta1.MsgDelegate"===en.typeUrl}function isMsgEditValidatorEncodeObject(en){return"/cosmos.staking.v1beta1.MsgEditValidator"===en.typeUrl}function isMsgUndelegateEncodeObject(en){return"/cosmos.staking.v1beta1.MsgUndelegate"===en.typeUrl}ei.stakingTypes=[["/cosmos.staking.v1beta1.MsgBeginRedelegate",ea.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgCreateValidator",ea.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgDelegate",ea.MsgDelegate],["/cosmos.staking.v1beta1.MsgEditValidator",ea.MsgEditValidator],["/cosmos.staking.v1beta1.MsgUndelegate",ea.MsgUndelegate]],ei.isMsgBeginRedelegateEncodeObject=isMsgBeginRedelegateEncodeObject,ei.isMsgCreateValidatorEncodeObject=isMsgCreateValidatorEncodeObject,ei.isMsgDelegateEncodeObject=isMsgDelegateEncodeObject,ei.isMsgEditValidatorEncodeObject=isMsgEditValidatorEncodeObject,ei.isMsgUndelegateEncodeObject=isMsgUndelegateEncodeObject},5608:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupStakingExtension=void 0;let es=eo(84438),ed=ea(eo(50960)),eu=eo(45504);function setupStakingExtension(en){let ei=(0,eu.createProtobufRpcClient)(en),eo=new es.QueryClientImpl(ei);return{staking:{delegation:async(en,ei)=>{let ea=await eo.Delegation({delegatorAddr:en,validatorAddr:ei});return ea},delegatorDelegations:async(en,ei)=>{let ea=await eo.DelegatorDelegations({delegatorAddr:en,pagination:(0,eu.createPagination)(ei)});return ea},delegatorUnbondingDelegations:async(en,ei)=>{let ea=await eo.DelegatorUnbondingDelegations({delegatorAddr:en,pagination:(0,eu.createPagination)(ei)});return ea},delegatorValidator:async(en,ei)=>{let ea=await eo.DelegatorValidator({delegatorAddr:en,validatorAddr:ei});return ea},delegatorValidators:async(en,ei)=>{let ea=await eo.DelegatorValidators({delegatorAddr:en,pagination:(0,eu.createPagination)(ei)});return ea},historicalInfo:async en=>{let ei=await eo.HistoricalInfo({height:ed.default.fromNumber(en,!0)});return ei},params:async()=>
2{let en=await eo.Params({});return en},pool:async()=>{let en=await eo.Pool({});return en},redelegations:async(en,ei,ea,es)=>{let ed=await eo.Redelegations({delegatorAddr:en,srcValidatorAddr:ei,dstValidatorAddr:ea,pagination:(0,eu.createPagination)(es)});return ed},unbondingDelegation:async(en,ei)=>{let ea=await eo.UnbondingDelegation({delegatorAddr:en,validatorAddr:ei});return ea},validator:async en=>{let ei=await eo.Validator({validatorAddr:en});return ei},validatorDelegations:async(en,ei)=>{let ea=await eo.ValidatorDelegations({validatorAddr:en,pagination:(0,eu.createPagination)(ei)});return ea},validators:async(en,ei)=>{let ea=await eo.Validators({status:en,pagination:(0,eu.createPagination)(ei)});return ea},validatorUnbondingDelegations:async(en,ei)=>{let ea=await eo.ValidatorUnbondingDelegations({validatorAddr:en,pagination:(0,eu.createPagination)(ei)});return ea}}}}ei.setupStakingExtension=setupStakingExtension},39704:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.setupTxExtension=void 0;let es=eo(74087),ed=eo(72574),eu=eo(74616),ef=eo(29639),ep=ea(eo(50960)),em=eo(45504);function setupTxExtension(en){let ei=(0,em.createProtobufRpcClient)(en),eo=new eu.ServiceClientImpl(ei);return{tx:{getTx:async en=>{let ei={hash:en},ea=await eo.GetTx(ei);return ea},simulate:async(en,ei,ea,em)=>{let eg=ef.Tx.fromPartial({authInfo:ef.AuthInfo.fromPartial({fee:ef.Fee.fromPartial({}),signerInfos:[{publicKey:(0,es.encodePubkey)(ea),sequence:ep.default.fromNumber(em,!0),modeInfo:{single:{mode:ed.SignMode.SIGN_MODE_UNSPECIFIED}}}]}),body:ef.TxBody.fromPartial({messages:Array.from(en),memo:ei}),signatures:[new Uint8Array]}),ey=eu.SimulateRequest.fromPartial({txBytes:ef.Tx.encode(eg).finish()}),eb=await eo.Simulate(ey);return eb}}}}ei.setupTxExtension=setupTxExtension},48605:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.createVestingAminoConverters=ei.isAminoMsgCreateVestingAccount=void 0;let es=ea(eo(50960));function isAminoMsgCreateVestingAccount(en){return"cosmos-sdk/MsgCreateVestingAccount"===en.type}function createVestingAminoConverters(){return{"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":{aminoType:"cosmos-sdk/MsgCreateVestingAccount",toAmino:({fromAddress:en,toAddress:ei,amount:eo,endTime:ea,delayed:es})=>({from_address:en,to_address:ei,amount:[...eo],end_time:ea.toString(),delayed:es}),fromAmino:({from_address:en,to_address:ei,amount:eo,end_time:ea,delayed:ed})=>({fromAddress:en,toAddress:ei,amount:[...eo],endTime:es.default.fromString(ea),delayed:ed})}}}ei.isAminoMsgCreateVestingAccount=isAminoMsgCreateVestingAccount,ei.createVestingAminoConverters=createVestingAminoConverters},43907:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.vestingTypes=void 0;let ea=eo(34287);ei.vestingTypes=[["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",ea.MsgCreateVestingAccount]]},19625:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.makeMultisignedTxBytes=ei.makeMultisignedTx=ei.makeCompactBitArray=void 0;let es=eo(33359),ed=eo(28972),eu=eo(74087),ef=eo(77381),ep=eo(72574),em=eo(29639),eg=eo(29639),ey=ea(eo(50960));function makeCompactBitArray(en){let ei=Math.ceil(en.length/8),eo=en.length-8*Math.floor(en.length/8),ea=new Uint8Array(ei);return en.forEach((en,ei)=>{let eo=Math.floor(ei/8),es=ei%8;en&&(ea[eo]|=1<<7-es)}),ef.CompactBitArray.fromPartial({elems:ea,extraBitsStored:eo})}function makeMultisignedTx(en,ei,eo,ea,eb){let eS=Array.from(eb.keys()),e_=(0,ed.fromBech32)(eS[0]).prefix,eR=Array(en.value.pubkeys.length).fill(!1),eA=[];for(let ei=0;ei<en.value.pubkeys.length;ei++){let eo=(0,es.pubkeyToAddress)(en.value.pubkeys[ei],e_),ea=eb.get(eo);ea&&(eR[ei]=!0,eA.push(ea))}let ew={publicKey:(0,eu.encodePubkey)(en),modeInfo:{multi:{bitarray:makeCompactBitArray(eR),modeInfos:eA.map(en=>({single:{mode:ep.SignMode.SIGN_MODE_LEGACY_AMINO_JSON}}))}},sequence:ey.default.fromNumber(ei)},eO=em.AuthInfo.fromPartial({signerInfos:[ew],fee:{amount:[...eo.amount],gasLimit:ey.default.fromString(eo.gas)}}),eE=em.AuthInfo.encode(eO).finish(),eP=eg.TxRaw.fromPartial({bodyBytes:ea,authInfoBytes:eE,signatures:[ef.MultiSignature.encode(ef.MultiSignature.fromPartial({signatures:eA})).finish()]});return eP}function makeMultisignedTxBytes(en,ei,eo,ea,es){let ed=makeMultisignedTx(en,ei,eo,ea,es);return Uint8Array.from(eg.TxRaw.encode(ed).finish())}ei.makeCompactBitArray=makeCompactBitArray,ei.makeMultisignedTx=makeMultisignedTx,ei.makeMultisignedTxBytes=makeMultisignedTxBytes},45504:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.longify=ei.decodeCosmosSdkDecFromProto=ei.createProtobufRpcClient=ei.createPagination=ei.QueryClient=void 0;var ea=eo(35814);Object.defineProperty(ei,"QueryClient",{enumerable:!0,get:function(){return ea.QueryClient}});var es=eo(14145);Object.defineProperty(ei,"createPagination",{enumerable:!0,get:function(){return es.createPagination}}),Object.defineProperty(ei,"createProtobufRpcClient",{enumerable:!0,get:function(){return es.createProtobufRpcClient}}),Object.defineProperty(ei,"decodeCosmosSdkDecFromProto",{enumerable:!0,get:function(){return es.decodeCosmosSdkDecFromProto}}),Object.defineProperty(ei,"longify",{enumerable:!0,get:function(){return es.longify}})},35814:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClient=void 0;let ea=eo(55201),es=eo(28972),ed=eo(67298),eu=eo(85553);function checkAndParseOp(en,ei,eo){if(en.type!==ei)throw Error(`Op expected to be ${ei}, got "${en.type}`);if(!(0,eu.arrayContentEquals)(eo,en.key))throw Error(`Proven key different than queried key.
3Query: ${(0,es.toHex)(eo)}
4Proven: ${(0,es.toHex)(en.key)}`);return ea.ics23.CommitmentProof.decode(en.data)}let QueryClient=class QueryClient{static withExtensions(en,...ei){let eo=new QueryClient(en),ea=ei.map(en=>en(eo));for(let en of ea)for(let[ei,ea]of((0,eu.assert)((0,eu.isNonNullObject)(en),"Extension must be a non-null object"),Object.entries(en))){(0,eu.assert)((0,eu.isNonNullObject)(ea),`Module must be a non-null object. Found type ${typeof ea} for module "${ei}".`);let en=eo[ei]||{};eo[ei]={...en,...ea}}return eo}constructor(en){this.tmClient=en}async queryStoreVerified(en,ei,eo){let{height:ed,proof:ef,key:ep,value:em}
4=await this.queryRawProof(en,ei,eo),eg=checkAndParseOp(ef.ops[0],"ics23:iavl",ei),ey=checkAndParseOp(ef.ops[1],"ics23:simple",(0,es.toAscii)(en));(0,eu.assert)(ey.exist),(0,eu.assert)(ey.exist.value),em&&0!==em.length?((0,eu.assert)(eg.exist),(0,eu.assert)(eg.exist.value),(0,ea.verifyExistence)(eg.exist,ea.iavlSpec,ey.exist.value,ei,em)):((0,eu.assert)(eg.nonexist),(0,ea.verifyNonExistence)(eg.nonexist,ea.iavlSpec,ey.exist.value,ei));let eb=await this.getNextHeader(ed);return(0,ea.verifyExistence)(ey.exist,ea.tendermintSpec,eb.appHash,(0,es.toAscii)(en),ey.exist.value),{key:ep,value:em,height:ed}}async queryRawProof(en,ei,eo){let{key:ea,value:ed,height:ef,proof:ep,code:em,log:eg}=await this.tmClient.abciQuery({path:`/store/${en}/key`,data:ei,prove:!0,height:eo});if(em)throw Error(`Query failed with (${em}): ${eg}`);if(!(0,eu.arrayContentEquals)(ei,ea))throw Error(`Response key ${(0,es.toHex)(ea)} doesn't match query key ${(0,es.toHex)(ei)}`);if(!ef)throw Error("No query height returned");if(!ep||2!==ep.ops.length)throw Error(`Expected 2 proof ops, got ${ep?.ops.length??0}. Are you using stargate?`);return checkAndParseOp(ep.ops[0],"ics23:iavl",ea),checkAndParseOp(ep.ops[1],"ics23:simple",(0,es.toAscii)(en)),{key:ea,value:ed,height:ef,proof:{ops:[...ep.ops]}}}async queryAbci(en,ei,eo){let ea=await this.tmClient.abciQuery({path:en,data:ei,prove:!1,height:eo});if(ea.code)throw Error(`Query failed with (${ea.code}): ${ea.log}`);if(!ea.height)throw Error("No query height returned");return{value:ea.value,height:ea.height}}async getNextHeader(en){let ei,eo;if((0,eu.assertDefined)(en),0===en)throw Error("Query returned height 0, cannot prove it");let ea=en+1;try{eo=this.tmClient.subscribeNewBlockHeader()}catch{}if(eo){let en=await (0,ed.firstEvent)(eo);en.height===ea&&(ei=en)}for(;!ei;){let eo=(await this.tmClient.blockchain(en,ea)).blockMetas.map(en=>en.header).find(en=>en.height===ea);eo?ei=eo:await (0,eu.sleep)(1e3)}return(0,eu.assert)(ei.height===ea,"Got wrong header. This is a bug in the logic above."),ei}};ei.QueryClient=QueryClient},14145:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.decodeCosmosSdkDecFromProto=ei.longify=ei.createProtobufRpcClient=ei.createPagination=ei.toAccAddress=void 0;let es=eo(28972),ed=eo(62949),eu=eo(79551),ef=ea(eo(50960));function toAccAddress(en){return(0,es.fromBech32)(en).data}function createPagination(en){return en?eu.PageRequest.fromPartial({key:en}):void 0}function createProtobufRpcClient(en){return{request:async(ei,eo,ea)=>{let es=`/${ei}/${eo}`,ed=await en.queryAbci(es,ea,void 0);return ed.value}}}function longify(en){let ei=ed.Uint64.fromString(en.toString());return ef.default.fromBytesBE([...ei.toBytesBigEndian()],!0)}function decodeCosmosSdkDecFromProto(en){let ei="string"==typeof en?en:(0,es.fromAscii)(en);return ed.Decimal.fromAtomics(ei,18)}ei.toAccAddress=toAccAddress,ei.createPagination=createPagination,ei.createProtobufRpcClient=createProtobufRpcClient,ei.longify=longify,ei.decodeCosmosSdkDecFromProto=decodeCosmosSdkDecFromProto},59438:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SigningStargateClient=ei.createDefaultAminoConverters=ei.defaultRegistryTypes=void 0;let es=eo(33359),ed=eo(28972),eu=eo(62949),ef=eo(74087),ep=eo(73034),em=eo(85553),eg=eo(10891),ey=eo(73773),eb=eo(80422),eS=eo(72574),e_=eo(29639),eR=eo(39385),eA=ea(eo(50960)),ew=eo(86111),eO=eo(91371),eE=eo(27393),eP=eo(27393),eC=eo(16499);function createDefaultAminoConverters(){return{...(0,eP.createAuthzAminoConverters)(),...(0,eP.createBankAminoConverters)(),...(0,eP.createDistributionAminoConverters)(),...(0,eP.createGovAminoConverters)(),...(0,eP.createStakingAminoConverters)(),...(0,eP.createIbcAminoConverters)(),...(0,eP.createFeegrantAminoConverters)(),...(0,eP.createVestingAminoConverters)()}}ei.defaultRegistryTypes=[["/cosmos.base.v1beta1.Coin",eg.Coin],...eE.authzTypes,...eE.bankTypes,...eE.distributionTypes,...eE.feegrantTypes,...eE.govTypes,...eE.stakingTypes,...eE.ibcTypes,...eE.vestingTypes],ei.createDefaultAminoConverters=createDefaultAminoConverters;let SigningStargateClient=class SigningStargateClient extends eC.StargateClient{static async connectWithSigner(en,ei,eo={}){let ea;let es=await ep.Tendermint37Client.connect(en),ed=(await es.status()).nodeInfo.version;return ed.startsWith("0.37.")?ea=es:(es.disconnect(),ea=await ep.Tendermint34Client.connect(en)),SigningStargateClient.createWithSigner(ea,ei,eo)}static async createWithSigner(en,ei,eo={}){return new SigningStargateClient(en,ei,eo)}static async offline(en,ei={}){return new SigningStargateClient(void 0,en,ei)}constructor(en,eo,ea){super(en,ea);let{registry:es=new ef.Registry(ei.defaultRegistryTypes),aminoTypes:ed=new ew.AminoTypes(createDefaultAminoConverters())}=ea;this.registry=es,this.aminoTypes=ed,this.signer=eo,this.broadcastTimeoutMs=ea.broadcastTimeoutMs,this.broadcastPollIntervalMs=ea.broadcastPollIntervalMs,this.gasPrice=ea.gasPrice}async simulate(en,ei,eo){let ea=ei.map(en=>this.registry.encodeAsAny(en)),ed=(await this.signer.getAccounts()).find(ei=>ei.address===en);if(!ed)throw Error("Failed to retrieve account from signer");let ef=(0,es.encodeSecp256k1Pubkey)(ed.pubkey),{sequence:ep}
4=await this.getSequence(en),{gasInfo:eg}=await this.forceGetQueryClient().tx.simulate(ea,eo,ef,ep);return(0,em.assertDefined)(eg),eu.Uint53.fromString(eg.gasUsed.toString()).toNumber()}async sendTokens(en,ei,eo,ea,es=""){let ed={typeUrl:"/cosmos.bank.v1beta1.MsgSend",value:{fromAddress:en,toAddress:ei,amount:[...eo]}};return this.signAndBroadcast(en,[ed],ea,es)}async delegateTokens(en,ei,eo,ea,es=""){let ed={typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:eb.MsgDelegate.fromPartial({delegatorAddress:en,validatorAddress:ei,amount:eo})};return this.signAndBroadcast(en,[ed],ea,es)}async undelegateTokens(en,ei,eo,ea,es=""){let ed={typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:eb.MsgUndelegate.fromPartial({delegatorAddress:en,validatorAddress:ei,amount:eo})};return this.signAndBroadcast(en,[ed],ea,es)}async withdrawRewards(en,ei,eo,ea=""){let es={typeUrl:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:ey.MsgWithdrawDelegatorReward.fromPartial({delegatorAddress:en,validatorAddress:ei})};return this.signAndBroadcast(en,[es],eo,ea)}async sendIbcTokens(en,ei,eo,ea,es,ed,eu,ef,ep=""){let em=eu?eA.default.fromNumber(eu).multiply(1e9):void 0,eg={typeUrl:"/ibc.applications.transfer.v1.MsgTransfer",value:eR.MsgTransfer.fromPartial({sourcePort:ea,sourceChannel:es,sender:en,receiver:ei,token:eo,timeoutHeight:ed,timeoutTimestamp:em})};return this.signAndBroadcast(en,[eg],ef,ep)}async signAndBroadcast(en,ei,eo,ea=""){let es;if("auto"==eo||"number"==typeof eo){(0,em.assertDefined)(this.gasPrice,"Gas price must be set in the client options when auto gas is used.");let ed=await this.simulate(en,ei,ea),eu="number"==typeof eo?eo:1.3;es=(0,eO.calculateFee)(Math.round(ed*eu),this.gasPrice)}else es=eo;let ed=await this.sign(en,ei,es,ea),eu=e_.TxRaw.encode(ed).finish();return this.broadcastTx(eu,this.broadcastTimeoutMs,this.broadcastPollIntervalMs)}async sign(en,ei,eo,ea,es){let ed;if(es)ed=es;else{let{accountNumber:ei,sequence:eo}
4=await this.getSequence(en),ea=await this.getChainId();ed={accountNumber:ei,sequence:eo,chainId:ea}}return(0,ef.isOfflineDirectSigner)(this.signer)?this.signDirect(en,ei,eo,ea,ed):this.signAmino(en,ei,eo,ea,ed)}async signAmino(en,ei,eo,ea,{accountNumber:ep,sequence:eg,chainId:ey}){(0,em.assert)(!(0,ef.isOfflineDirectSigner)(this.signer));let eb=(await this.signer.getAccounts()).find(ei=>ei.address===en);if(!eb)throw Error("Failed to retrieve account from signer");let eR=(0,ef.encodePubkey)((0,es.encodeSecp256k1Pubkey)(eb.pubkey)),eA=eS.SignMode.SIGN_MODE_LEGACY_AMINO_JSON,ew=ei.map(en=>this.aminoTypes.toAmino(en)),eO=(0,es.makeSignDoc)(ew,eo,ey,ea,ep,eg),{signature:eE,signed:eP}=await this.signer.signAmino(en,eO),eC={messages:eP.msgs.map(en=>this.aminoTypes.fromAmino(en)),memo:eP.memo},eT={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:eC},eB=this.registry.encode(eT),eN=eu.Int53.fromString(eP.fee.gas).toNumber(),eI=eu.Int53.fromString(eP.sequence).toNumber(),ex=(0,ef.makeAuthInfoBytes)([{pubkey:eR,sequence:eI}],eP.fee.amount,eN,eP.fee.granter,eP.fee.payer,eA);return e_.TxRaw.fromPartial({bodyBytes:eB,authInfoBytes:ex,signatures:[(0,ed.fromBase64)(eE.signature)]})}async signDirect(en,ei,eo,ea,{accountNumber:ep,sequence:eg,chainId:ey}){(0,em.assert)((0,ef.isOfflineDirectSigner)(this.signer));let eb=(await this.signer.getAccounts()).find(ei=>ei.address===en);if(!eb)throw Error("Failed to retrieve account from signer");let eS=(0,ef.encodePubkey)((0,es.encodeSecp256k1Pubkey)(eb.pubkey)),eR={typeUrl:"/cosmos.tx.v1beta1.TxBody",value:{messages:ei,memo:ea}},eA=this.registry.encode(eR),ew=eu.Int53.fromString(eo.gas).toNumber(),eO=(0,ef.makeAuthInfoBytes)([{pubkey:eS,sequence:eg}],eo.amount,ew,eo.granter,eo.payer),eE=(0,ef.makeSignDoc)(eA,eO,ey,ep),{signature:eP,signed:eC}=await this.signer.signDirect(en,eE);return e_.TxRaw.fromPartial({bodyBytes:eC.bodyBytes,authInfoBytes:eC.authInfoBytes,signatures:[(0,ed.fromBase64)(eP.signature)]})}};ei.SigningStargateClient=SigningStargateClient},16499:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.StargateClient=ei.BroadcastTxError=ei.assertIsDeliverTxFailure=ei.assertIsDeliverTxSuccess=ei.isDeliverTxSuccess=ei.isDeliverTxFailure=ei.TimeoutError=void 0;let ea=eo(33359),es=eo(28972),ed=eo(62949),eu=eo(73034),ef=eo(85553),ep=eo(84194),em=eo(92538),eg=eo(76615),ey=eo(27393),eb=eo(45504);let TimeoutError=class TimeoutError extends Error{constructor(en,ei){super(en),this.txId=ei}};function isDeliverTxFailure(en){return!!en.code}function isDeliverTxSuccess(en){return!isDeliverTxFailure(en)}function assertIsDeliverTxSuccess(en){if(isDeliverTxFailure(en))throw Error(`Error when broadcasting tx ${en.transactionHash} at height ${en.height}. Code: ${en.code}; Raw log: ${en.rawLog}`)}function assertIsDeliverTxFailure(en){if(isDeliverTxSuccess(en))throw Error(`Transaction ${en.transactionHash} did not fail at height ${en.height}. Code: ${en.code}; Raw log: ${en.rawLog}`)}ei.TimeoutError=TimeoutError,ei.isDeliverTxFailure=isDeliverTxFailure,ei.isDeliverTxSuccess=isDeliverTxSuccess,ei.assertIsDeliverTxSuccess=assertIsDeliverTxSuccess,ei.assertIsDeliverTxFailure=assertIsDeliverTxFailure;let BroadcastTxError=class BroadcastTxError extends Error{constructor(en,ei,eo){super(`Broadcasting transaction failed with code ${en} (codespace: ${ei}). Log: ${eo}`),this.code=en,this.codespace=ei,this.log=eo}};ei.BroadcastTxError=BroadcastTxError;let StargateClient=class StargateClient{static async connect(en,ei={}){let eo;let ea=await eu.Tendermint37Client.connect(en),es=(await ea.status()).nodeInfo.version;return es.startsWith("0.37.")?eo=ea:(ea.disconnect(),eo=await eu.Tendermint34Client.connect(en)),StargateClient.create(eo,ei)}static async create(en,ei={}){return new StargateClient(en,ei)}constructor(en,ei){en&&(this.tmClient=en,this.queryClient=eb.QueryClient.withExtensions(en,ey.setupAuthExtension,ey.setupBankExtension,ey.setupStakingExtension,ey.setupTxExtension));let{accountParser:eo=em.accountFromAny}=ei;this.accountParser=eo}getTmClient(){return this.tmClient}forceGetTmClient(){if(!this.tmClient)throw Error("Tendermint client not available. You cannot use online functionality in offline mode.");return this.tmClient}getQueryClient(){return this.queryClient}forceGetQueryClient(){if(!this.queryClient)throw Error("Query client not available. You cannot use online functionality in offline mode.");return this.queryClient}async getChainId(){if(!this.chainId){let en=await this.forceGetTmClient().status(),ei=en.nodeInfo.network;if(!ei)throw Error("Chain ID must not be empty");this.chainId=ei}return this.chainId}async getHeight(){let en=await this.forceGetTmClient().status();return en.syncInfo.latestBlockHeight}async getAccount(en){try{let ei=await this.forceGetQueryClient().auth.account(en);return ei?this.accountParser(ei):null}catch(en){if(/rpc error: code = NotFound/i.test(en.toString()))return null;throw en}}async getSequence(en){let ei=await this.getAccount(en);if(!ei)throw Error(`Account '${en}' does not exist on chain. Send some tokens there before trying to query sequence.`);return{accountNumber:ei.accountNumber,sequence:ei.sequence}}async getBlock(en){let ei=await this.forceGetTmClient().block(en);return{id:(0,es.toHex)(ei.blockId.hash).toUpperCase(),header:{version:{block:new ed.Uint53(ei.block.header.version.block).toString(),app:new ed.Uint53(ei.block.header.version.app).toString()},height:ei.block.header.height,chainId:ei.block.header.chainId,time:(0,eu.toRfc3339WithNanoseconds)(ei.block.header.time)},txs:ei.block.txs}}async getBalance(en,ei){return this.forceGetQueryClient().bank.balance(en,ei)}async getAllBalances(en){return this.forceGetQueryClient().bank.allBalances(en)}async getBalanceStaked(en){let ei;let eo=[];do{let{delegationResponses:ea,pagination:es}=await this.forceGetQueryClient().staking.delegatorDelegations(en,ei),ed=ea||[];eo.push(...ed),ei=es?.nextKey}while(void 0!==ei&&0!==ei.length);let es=eo.reduce((en,ei)=>((0,ef.assert)(ei.balance),null!==en?(0,ea.addCoins)(en,ei.balance):ei.balance),null);return es}async getDelegation(en,ei){let eo;try{eo=(await this.forceGetQueryClient().staking.delegation(en,ei)).delegationResponse?.balance}catch(en){if(en.toString().includes("key not found"));else throw en}return eo||null}async getTx(en){let ei=await this.txsQuery(`tx.hash='${en}'`);return ei[0]??null}async searchTx(en){let ei;if("string"==typeof en)ei=en;else if(Array.isArray(en))ei=en.map(en=>`${en.key}='${en.value}'`).join(" AND ");
4else throw Error("Got unsupported query type. See CosmJS 0.31 CHANGELOG for API breaking changes here.");return this.txsQuery(ei)}disconnect(){this.tmClient&&this.tmClient.disconnect()}async broadcastTx(en,ei=6e4,eo=3e3){let ea=!1,ed=setTimeout(()=>{ea=!0},ei),pollForTx=async en=>{if(ea)throw new TimeoutError(`Transaction with ID ${en} was submitted but was not yet found on the chain. You might want to check later. There was a wait of ${ei/1e3} seconds.`,en);await (0,ef.sleep)(eo);let es=await this.getTx(en);return es?{code:es.code,height:es.height,txIndex:es.txIndex,events:es.events,rawLog:es.rawLog,transactionHash:en,msgResponses:es.msgResponses,gasUsed:es.gasUsed,gasWanted:es.gasWanted}:pollForTx(en)},eu=await this.forceGetTmClient().broadcastTxSync({tx:en});if(eu.code)return Promise.reject(new BroadcastTxError(eu.code,eu.codespace??"",eu.log));let ep=(0,es.toHex)(eu.hash).toUpperCase();return new Promise((en,ei)=>pollForTx(ep).then(ei=>{clearTimeout(ed),en(ei)},en=>{clearTimeout(ed),ei(en)}))}async txsQuery(en){let ei=await this.forceGetTmClient().txSearchAll({query:en});return ei.txs.map(en=>{let ei=ep.TxMsgData.decode(en.result.data??new Uint8Array);return{height:en.height,txIndex:en.index,hash:(0,es.toHex)(en.hash).toUpperCase(),code:en.result.code,events:en.result.events.map(eg.fromTendermintEvent),rawLog:en.result.log||"",tx:en.tx,msgResponses:ei.msgResponses,gasUsed:en.result.gasUsed,gasWanted:en.result.gasWanted}})}};ei.StargateClient=StargateClient},87626:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.concat=void 0;let ea=eo(43813);function concat(...en){let ei=[],eo=[],es=new Set,ed=0;function reset(){for(;ei.length>0;){let en=ei.shift();en.unsubscribe()}eo.length=0,es.clear(),ed=0}let eu={start:ea=>{function emitAllQueuesEvents(en){for(;;){let ei=eo[en].shift();if(void 0===ei)return;ea.next(ei)}}function isDone(){return ed>=en.length}if(en.forEach(en=>eo.push([])),isDone()){ea.complete();return}en.forEach((en,eu)=>{ei.push(en.subscribe({next:en=>{eu===ed?ea.next(en):eo[eu].push(en)},complete:()=>{for(es.add(eu);es.has(ed);)emitAllQueuesEvents(ed),ed++;isDone()?ea.complete():emitAllQueuesEvents(ed)},error:en=>{ea.error(en),reset()}}))})},stop:()=>{reset()}};return ea.Stream.create(eu)}ei.concat=concat},69226:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.DefaultValueProducer=void 0;let DefaultValueProducer=class DefaultValueProducer{get value(){return this.internalValue}constructor(en,ei){this.callbacks=ei,this.internalValue=en}update(en){this.internalValue=en,this.listener&&this.listener.next(en)}error(en){this.listener&&this.listener.error(en)}start(en){this.listener=en,en.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}};ei.DefaultValueProducer=DefaultValueProducer},69043:function(en,ei){"use strict";function dropDuplicates(en){let operand=ei=>{let eo=new Set,ea=ei.filter(ei=>!eo.has(en(ei))).debug(ei=>eo.add(en(ei)));return ea};return operand}Object.defineProperty(ei,"__esModule",{value:!0}),ei.dropDuplicates=void 0,ei.dropDuplicates=dropDuplicates},67298:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueAndUpdates=ei.toListPromise=ei.fromListPromise=ei.firstEvent=ei.dropDuplicates=ei.DefaultValueProducer=ei.concat=void 0;var ed=eo(87626);Object.defineProperty(ei,"concat",{enumerable:!0,get:function(){return ed.concat}});var eu=eo(69226);Object.defineProperty(ei,"DefaultValueProducer",{enumerable:!0,get:function(){return eu.DefaultValueProducer}});var ef=eo(69043);Object.defineProperty(ei,"dropDuplicates",{enumerable:!0,get:function(){return ef.dropDuplicates}});var ep=eo(99511);Object.defineProperty(ei,"firstEvent",{enumerable:!0,get:function(){return ep.firstEvent}}),Object.defineProperty(ei,"fromListPromise",{enumerable:!0,get:function(){return ep.fromListPromise}}),Object.defineProperty(ei,"toListPromise",{enumerable:!0,get:function(){return ep.toListPromise}}),es(eo(40721),ei);var em=eo(89780);Object.defineProperty(ei,"ValueAndUpdates",{enumerable:!0,get:function(){return em.ValueAndUpdates}})},99511:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.firstEvent=ei.toListPromise=ei.fromListPromise=void 0;let ea=eo(43813);function fromListPromise(en){let ei={start:ei=>{en.then(en=>{for(let eo of en)ei.next(eo);ei.complete()}).catch(en=>ei.error(en))},stop:()=>{}};return ea.Stream.create(ei)}async function toListPromise(en,ei){return new Promise((eo,ea)=>
4{if(0===ei){eo([]);return}let es=[];en.take(ei).subscribe({next:en=>{es.push(en),es.length===ei&&eo(es)},complete:()=>{ea(`Stream completed before all events could be collected. Collected ${es.length}, expected ${ei}`)},error:en=>ea(en)})})}async function firstEvent(en){return(await toListPromise(en,1))[0]}ei.fromListPromise=fromListPromise,ei.toListPromise=toListPromise,ei.firstEvent=firstEvent},40721:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.lastValue=ei.asArray=ei.countStream=ei.Reducer=void 0;let Reducer=class Reducer{constructor(en,ei,eo){this.stream=en,this.reducer=ei,this.state=eo,this.completed=new Promise((en,ei)=>{let eo=this.stream.subscribe({next:en=>{this.state=this.reducer(this.state,en)},complete:()=>{en(),eo.unsubscribe()},error:en=>{ei(en),eo.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}};function increment(en,ei){return en+1}function countStream(en){return new Reducer(en,increment,0)}function append(en,ei){return[...en,ei]}function asArray(en){return new Reducer(en,append,[])}function last(en,ei){return ei}function lastValue(en){return new Reducer(en,last,void 0)}ei.Reducer=Reducer,ei.countStream=countStream,ei.asArray=asArray,ei.lastValue=lastValue},89780:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueAndUpdates=void 0;let ea=eo(43813);let ValueAndUpdates=class ValueAndUpdates{get value(){return this.producer.value}constructor(en){this.producer=en,this.updates=ea.MemoryStream.createWithMemory(this.producer)}async waitFor(en){let ei="function"==typeof en?en:ei=>ei===en;return new Promise((en,eo)=>{let ea=this.updates.subscribe({next:eo=>{ei(eo)&&(en(eo),setTimeout(()=>ea.unsubscribe(),0))},complete:()=>{ea.unsubscribe(),eo("Update stream completed without expected value")},error:en=>{eo(en)}})})}};ei.ValueAndUpdates=ValueAndUpdates},50960:function(en){en.exports=Long;var ei=null;try{ei=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(en){}function Long(en,ei,eo){this.low=0|en,this.high=0|ei,this.unsigned=!!eo}function isLong(en){return!0===(en&&en.__isLong__)}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0}),Long.isLong=isLong;var eo={},ea={};function fromInt(en,ei){var es,ed,eu;return ei?(en>>>=0,(eu=0<=en&&en<256)&&(ed=ea[en]))?ed:(es=fromBits(en,(0|en)<0?-1:0,!0),eu&&(ea[en]=es),es):(en|=0,(eu=-128<=en&&en<128)&&(ed=eo[en]))?ed:(es=fromBits(en,en<0?-1:0,!1),eu&&(eo[en]=es),es)}function fromNumber(en,ei){if(isNaN(en))return ei?eg:em;if(ei){if(en<0)return eg;if(en>=eu)return eR}else{if(en<=-ef)return eA;if(en+1>=ef)return e_}return en<0?fromNumber(-en,ei).neg():fromBits(en%ed|0,en/ed|0,ei)}function fromBits(en,ei,eo){return new Long(en,ei,eo)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var es=Math.pow;function fromString(en,ei,eo){if(0===en.length)throw Error("empty string");if("NaN"===en||"Infinity"===en||"+Infinity"===en||"-Infinity"===en)return em;if("number"==typeof ei?(eo=ei,ei=!1):ei=!!ei,(eo=eo||10)<2||36<eo)throw RangeError("radix");if((ea=en.indexOf("-"))>0)throw Error("interior hyphen");if(0===ea)return fromString(en.substring(1),ei,eo).neg();for(var ea,ed=fromNumber(es(eo,8)),eu=em,ef=0;ef<en.length;ef+=8){var ep=Math.min(8,en.length-ef),eg=parseInt(en.substring(ef,ef+ep),eo);if(ep<8){var ey=fromNumber(es(eo,ep));eu=eu.mul(ey).add(fromNumber(eg))}else eu=(eu=eu.mul(ed)).add(fromNumber(eg))}return eu.unsigned=ei,eu}function fromValue(en,ei){return"number"==typeof en?fromNumber(en,ei):"string"==typeof en?fromString(en,ei):fromBits(en.low,en.high,"boolean"==typeof ei?ei:en.unsigned)}Long.fromString=fromString,Long.fromValue=fromValue;var ed=4294967296,eu=18446744073709552e3,ef=0x7fffffffffffffff,ep=fromInt(16777216),em=fromInt(0);Long.ZERO=em;var eg=fromInt(0,!0);Long.UZERO=eg;var ey=fromInt(1);
vendor: 2,606 bytes, line 4
4Long.ONE=ey;var eb=fromInt(1,!0);Long.UONE=eb;var eS=fromInt(-1);Long.NEG_ONE=eS;var e_=fromBits(-1,2147483647,!1);Long.MAX_VALUE=e_;var eR=fromBits(-1,-1,!0);Long.MAX_UNSIGNED_VALUE=eR;var eA=fromBits(0,-2147483648,!1);Long.MIN_VALUE=eA;var ew=Long.prototype;ew.toInt=function(){return this.unsigned?this.low>>>0:this.low},ew.toNumber=function(){return this.unsigned?(this.high>>>0)*ed+(this.low>>>0):this.high*ed+(this.low>>>0)},ew.toString=function(en){if((en=en||10)<2||36<en)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(!this.eq(eA))return"-"+this.neg().toString(en);var ei=fromNumber(en),eo=this.div(ei),ea=eo.mul(ei).sub(this);return eo.toString(en)+ea.toInt().toString(en)}for(var ed=fromNumber(es(en,6),this.unsigned),eu=this,ef="";;){var ep=eu.div(ed),em=(eu.sub(ep.mul(ed)).toInt()>>>0).toString(en);if((eu=ep).isZero())return em+ef;for(;em.length<6;)em="0"+em;ef=""+em+ef}},ew.getHighBits=function(){return this.high},ew.getHighBitsUnsigned=function(){return this.high>>>0},ew.getLowBits=function(){return this.low},ew.getLowBitsUnsigned=function(){return this.low>>>0},ew.getNumBitsAbs=function(){if(this.isNegative())return this.eq(eA)?64:this.neg().getNumBitsAbs();for(var en=0!=this.high?this.high:this.low,ei=31;ei>0&&(en&1<<ei)==0;ei--);return 0!=this.high?ei+33:ei+1},ew.isZero=function(){return 0===this.high&&0===this.low},ew.eqz=ew.isZero,ew.isNegative=function(){return!this.unsigned&&this.high<0},ew.isPositive=function(){return this.unsigned||this.high>=0},ew.isOdd=function(){return(1&this.low)==1},ew.isEven=function(){return(1&this.low)==0},ew.equals=function(en){return isLong(en)||(en=fromValue(en)),(this.unsigned===en.unsigned||this.high>>>31!=1||en.high>>>31!=1)&&this.high===en.high&&this.low===en.low},ew.eq=ew.equals,ew.notEquals=function(en){return!this.eq(en)},ew.neq=ew.notEquals,ew.ne=ew.notEquals,ew.lessThan=function(en){return 0>this.comp(en)},ew.lt=ew.lessThan,ew.lessThanOrEqual=function(en){return 0>=this.comp(en)},ew.lte=ew.lessThanOrEqual,ew.le=ew.lessThanOrEqual,ew.greaterThan=function(en){return this.comp(en)>0},ew.gt=ew.greaterThan,ew.greaterThanOrEqual=function(en){return this.comp(en)>=0},ew.gte=ew.greaterThanOrEqual,ew.ge=ew.greaterThanOrEqual,ew.compare=function(en){if(isLong(en)||(en=fromValue(en)),this.eq(en))return 0;var ei=this.isNegative(),eo=en.isNegative();return ei&&!eo?-1:!ei&&eo?1:this.unsigned?en.high>>>0>this.high>>>0||en.high===this.high&&en.low>>>0>this.low>>>0?-1:1:this.sub(en).isNegative()?-1:1},ew.comp=ew.compare,ew.negate=function(){return!this.unsigned&&this.eq(eA)?eA:this.not().add(ey)}
4,ew.neg=ew.negate,ew.add=function(en){isLong(en)||(en=fromValue(en));var ei,eo,ea=this.high>>>16,es=65535&this.high,ed=this.low>>>16,eu=65535&this.low,ef=en.high>>>16,ep=65535&en.high,em=en.low>>>16,eg=65535&en.low,ey=0,eb=0;return ei=0+((eo=0+(eu+eg))>>>16),eo&=65535,ei+=ed+em,eb+=ei>>>16,ei&=65535,eb+=es+ep,ey+=eb>>>16,eb&=65535,ey+=ea+ef,fromBits(ei<<16|eo,(ey&=65535)<<16|eb,this.unsigned)},ew.subtract=function(en){return isLong(en)||(en=fromValue(en)),this.add(en.neg())},ew.sub=ew.subtract,ew.multiply=function(en){if(this.isZero())return em;if(isLong(en)||(en=fromValue(en)),ei)return fromBits(ei.mul(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned);if(en.isZero())return em;if(this.eq(eA))return en.isOdd()?eA:em;if(en.eq(eA))return this.isOdd()?eA:em;if(this.isNegative())return en.isNegative()?this.neg().mul(en.neg()):this.neg().mul(en).neg();if(en.isNegative())return this.mul(en.neg()).neg();if(this.lt(ep)&&en.lt(ep))return fromNumber(this.toNumber()*en.toNumber(),this.unsigned);var eo,ea,es=this.high>>>16,ed=65535&this.high,eu=this.low>>>16,ef=65535&this.low,eg=en.high>>>16,ey=65535&en.high,eb=en.low>>>16,eS=65535&en.low,e_=0,eR=0;return eo=0+((ea=0+ef*eS)>>>16),ea&=65535,eo+=eu*eS,eR+=eo>>>16,eo&=65535,eo+=ef*eb,eR+=eo>>>16,eo&=65535,eR+=ed*eS,e_+=eR>>>16,eR&=65535,eR+=eu*eb,e_+=eR>>>16,eR&=65535,eR+=ef*ey,e_+=eR>>>16,eR&=65535,e_+=es*eS+ed*eb+eu*ey+ef*eg,fromBits(eo<<16|ea,(e_&=65535)<<16|eR,this.unsigned)},ew.mul=ew.multiply,ew.divide=function(en){if(isLong(en)||(en=fromValue(en)),en.isZero())throw Error("division by zero");if(ei){var eo,ea,ed;return this.unsigned||-2147483648!==this.high||-1!==en.low||-1!==en.high?fromBits((this.unsigned?ei.div_u:ei.div_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?eg:em;if(this.unsigned){if(en.unsigned||(en=en.toUnsigned()),en.gt(this))return eg;if(en.gt(this.shru(1)))return eb;ed=eg}else{if(this.eq(eA))return en.eq(ey)||en.eq(eS)?eA:en.eq(eA)?ey:(eo=this.shr(1).div(en).shl(1)).eq(em)?en.isNegative()?ey:eS:(ea=this.sub(en.mul(eo)),ed=eo.add(ea.div(en)));if(en.eq(eA))return this.unsigned?eg:em;if(this.isNegative())return en.isNegative()?this.neg().div(en.neg()):this.neg().div(en).neg();if(en.isNegative())return this.div(en.neg()).neg();ed=em}for(ea=this;ea.gte(en);){for(var eu=Math.ceil(Math.log(eo=Math.max(1,Math.floor(ea.toNumber()/en.toNumber())))/Math.LN2),ef=eu<=48?1:es(2,eu-48),ep=fromNumber(eo),e_=ep.mul(en);e_.isNegative()||e_.gt(ea);)eo-=ef,e_=(ep=fromNumber(eo,this.unsigned)).mul(en);ep.isZero()&&(ep=ey),ed=ed.add(ep),ea=ea.sub(e_)}return ed},ew.div=ew.divide,ew.modulo=function(en){return(isLong(en)||(en=fromValue(en)),ei)?fromBits((this.unsigned?ei.rem_u:ei.rem_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this.sub(this.div(en).mul(en))},ew.mod=ew.modulo,ew.rem=ew.modulo,ew.not=function(){return fromBits(~this.low,~this.high,this.unsigned)},ew.and=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low&en.low,this.high&en.high,this.unsigned)},ew.or=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low|en.low,this.high|en.high,this.unsigned)},ew.xor=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low^en.low,this.high^en.high,this.unsigned)},ew.shiftLeft=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low<<en,this.high<<en|this.low>>>32-en,this.unsigned):fromBits(0,this.low<<en-32,this.unsigned)},ew.shl=ew.shiftLeft,ew.shiftRight=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low>>>en|this.high<<32-en,this.high>>en,this.unsigned):fromBits(this.high>>en-32,this.high>=0?0:-1,this.unsigned)},ew.shr=ew.shiftRight,ew.shiftRightUnsigned=function(en){if(isLong(en)&&(en=en.toInt()),0==(en&=63))return this;var ei=this.high;return en<32?fromBits(this.low>>>en|ei<<32-en,ei>>>en,this.unsigned):32===en?fromBits(ei,0,this.unsigned):fromBits(ei>>>en-32,0,this.unsigned)},ew.shru=ew.shiftRightUnsigned,ew.shr_u=ew.shiftRightUnsigned,ew.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this},ew.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)},ew.toBytes=function(en){return en?this.toBytesLE():this.toBytesBE()},ew.toBytesLE=function(){var en=this.high,ei=this.low;return[255&ei,ei>>>8&255,ei>>>16&255,ei>>>24,255&en,en>>>8&255,en>>>16&255,en>>>24]},ew.toBytesBE=function(){var en=this.high,ei=this.low;return[en>>>24,en>>>16&255,en>>>8&255,255&en,ei>>>24,ei>>>16&255,ei>>>8&255,255&ei]},Long.fromBytes=function(en,ei,eo){return eo?Long.fromBytesLE(en,ei):Long.fromBytesBE(en,ei)},Long.fromBytesLE=function(en,ei){return new Long(en[0]|en[1]<<8|en[2]<<16|en[3]<<24,en[4]|en[5]<<8|en[6]<<16|en[7]<<24,ei)},Long.fromBytesBE=function(en,ei){return new Long(en[4]<<24|en[5]<<16|en[6]<<8|en[7],en[0]<<24|en[1]<<16|en[2]<<8|en[3],ei)}},2522:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.pubkeyToAddress=ei.pubkeyToRawAddress=ei.rawSecp256k1PubkeyToRawAddress=ei.rawEd25519PubkeyToRawAddress=void 0;let ea=eo(79562),es=eo(28972);function rawEd25519PubkeyToRawAddress(en){if(32!==en.length)throw Error(`Invalid Ed25519 pubkey length: ${en.length}`);return(0,ea.sha256)(en).slice(0,20)}function rawSecp256k1PubkeyToRawAddress(en){if(33!==en.length)throw Error(`Invalid Secp256k1 pubkey length (compressed): ${en.length}`);return(0,ea.ripemd160)((0,ea.sha256)(en))}function pubkeyToRawAddress(en,ei){switch(en){case"ed25519":return rawEd25519PubkeyToRawAddress(ei);case"secp256k1":return rawSecp256k1PubkeyToRawAddress(ei);default:throw Error(`Pubkey type ${en} not supported`)}}function pubkeyToAddress(en,ei){return(0,es.toHex)(pubkeyToRawAddress(en,ei)).toUpperCase()}ei.rawEd25519PubkeyToRawAddress=rawEd25519PubkeyToRawAddress,ei.rawSecp256k1PubkeyToRawAddress=rawSecp256k1PubkeyToRawAddress,ei.pubkeyToRawAddress=pubkeyToRawAddress,ei.pubkeyToAddress=pubkeyToAddress},18477:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.DateTime=ei.toSeconds=ei.fromSeconds=ei.toRfc3339WithNanoseconds=ei.fromRfc3339WithNanoseconds=void 0;let ea=eo(28972),es=eo(62949);function fromRfc3339WithNanoseconds(en){let ei=(0,ea.fromRfc3339)(en),eo=en.match(/\.(\d+)Z$/),es=eo?eo[1].slice(3):"";return ei.nanoseconds=parseInt(es.padEnd(6,"0"),10),ei}function toRfc3339WithNanoseconds(en){let ei=en.toISOString(),eo=en.nanoseconds?.toString()??"";return`${ei.slice(0,-1)}${eo.padStart(6,"0")}Z`}function fromSeconds(en,ei=0){let eo=new es.Uint32(ei).toNumber();if(eo>999999999)throw Error("Nano seconds must not exceed 999999999");let ea=new Date(1e3*en+Math.floor(eo/1e6));return ea.nanoseconds=eo%1e6,ea}function toSeconds(en){return{seconds:Math.floor(en.getTime()/1e3),nanos:en.getTime()%1e3*1e6+(en.nanoseconds??0)}}ei.fromRfc3339WithNanoseconds=fromRfc3339WithNanoseconds,ei.toRfc3339WithNanoseconds=toRfc3339WithNanoseconds,ei.fromSeconds=fromSeconds,ei.toSeconds=toSeconds;let DateTime=class DateTime{static decode(en){return fromRfc3339WithNanoseconds(en)}static encode(en){return toRfc3339WithNanoseconds(en)}};ei.DateTime=DateTime},73034:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.BlockIdFlag=ei.isTendermint37Client=ei.isTendermint34Client=ei.Tendermint37Client=ei.tendermint37=ei.Tendermint34Client=ei.tendermint34=ei.VoteType=ei.SubscriptionEventType=ei.Method=ei.broadcastTxSyncSuccess=ei.broadcastTxCommitSuccess=ei.WebsocketClient=ei.HttpClient=ei.HttpBatchClient=ei.toSeconds=ei.toRfc3339WithNanoseconds=ei.fromSeconds=ei.fromRfc3339WithNanoseconds=ei.DateTime=ei.rawSecp256k1PubkeyToRawAddress=ei.rawEd25519PubkeyToRawAddress=ei.pubkeyToRawAddress=ei.pubkeyToAddress=void 0;var eu=eo(2522);Object.defineProperty(ei,"pubkeyToAddress",{enumerable:!0,get:function(){return eu.pubkeyToAddress}}),Object.defineProperty(ei,"pubkeyToRawAddress",{enumerable:!0,get:function(){return eu.pubkeyToRawAddress}}),Object.defineProperty(ei,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return eu.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(ei,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return eu.rawSecp256k1PubkeyToRawAddress}});var ef=eo(18477);Object.defineProperty(ei,"DateTime",{enumerable:!0,get:function(){return ef.DateTime}}),Object.defineProperty(ei,"fromRfc3339WithNanoseconds",{enumerable:!0,get:function(){return ef.fromRfc3339WithNanoseconds}}),Object.defineProperty(ei,"fromSeconds",{enumerable:!0,get:function(){return ef.fromSeconds}}),Object.defineProperty(ei,"toRfc3339WithNanoseconds",{enumerable:!0,get:function(){return ef.toRfc3339WithNanoseconds}}),Object.defineProperty(ei,"toSeconds",{enumerable:!0,get:function(){return ef.toSeconds}});var ep=eo(38443);Object.defineProperty(ei,"HttpBatchClient",{enumerable:!0,get:function(){return ep.HttpBatchClient}}),Object.defineProperty(ei,"HttpClient",{enumerable:!0,get:function(){return ep.HttpClient}}),Object.defineProperty(ei,"WebsocketClient",{enumerable:!0,get:function(){return ep.WebsocketClient}});var em=eo(67468);Object.defineProperty(ei,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return em.broadcastTxCommitSuccess}}),Object.defineProperty(ei,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return em.broadcastTxSyncSuccess}}),Object.defineProperty(ei,"Method",{enumerable:!0,get:function(){return em.Method}}),Object.defineProperty(ei,"SubscriptionEventType",{enumerable:!0,get:function(){return em.SubscriptionEventType}}),Object.defineProperty(ei,"VoteType",{enumerable:!0,get:function(){return em.VoteType}}),ei.tendermint34=ed(eo(67468));var eg=eo(67468);Object.defineProperty(ei,"Tendermint34Client",{enumerable:!0,get:function(){return eg.Tendermint34Client}}),ei.tendermint37=ed(eo(65355));var ey=eo(65355);Object.defineProperty(ei,"Tendermint37Client",{enumerable:!0,get:function(){return ey.Tendermint37Client}});var eb=eo(81173);Object.defineProperty(ei,"isTendermint34Client",{enumerable:!0,get:function(){return eb.isTendermint34Client}}),Object.defineProperty(ei,"isTendermint37Client",{enumerable:!0,get:function(){return eb.isTendermint37Client}});var eS=eo(73508);Object.defineProperty(ei,"BlockIdFlag",{enumerable:!0,get:function(){return eS.BlockIdFlag}})},77244:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.smallIntToApi=ei.apiToBigInt=ei.apiToSmallInt=void 0;let ea=eo(62949),es=eo(50122);
4function apiToSmallInt(en){let ei="number"==typeof en?new ea.Int53(en):ea.Int53.fromString(en);return ei.toNumber()}function apiToBigInt(en){if((0,es.assertString)(en),!en.match(/^-?[0-9]+$/))throw Error("Invalid string format");return BigInt(en)}function smallIntToApi(en){return new ea.Int53(en).toString()}ei.apiToSmallInt=apiToSmallInt,ei.apiToBigInt=apiToBigInt,ei.smallIntToApi=smallIntToApi},27793:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createJsonRpcRequest=void 0;let eo="123456789";function randomNumericChar(){return eo[Math.floor(Math.random()*eo.length)]}function randomId(){return parseInt(Array.from({length:12}).map(()=>randomNumericChar()).join(""),10)}function createJsonRpcRequest(en,ei){let eo=ei?{...ei}:{};return{jsonrpc:"2.0",id:randomId(),method:en,params:eo}}ei.createJsonRpcRequest=createJsonRpcRequest},57493:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.http=void 0;let es=ea(eo(9669));function filterBadStatus(en){if(en.status>=400)throw Error(`Bad status on response: ${en.status}`);return en}function isExperimental(en){return en.toString().includes("emitExperimentalWarning")}async function http(en,ei,eo,ea){if("function"!=typeof fetch||isExperimental(fetch))return es.default.request({url:ei,method:en,data:ea,headers:eo}).then(en=>en.data);{let es={method:en,body:ea?JSON.stringify(ea):void 0,headers:{"Content-Type":"application/json",...eo}};return fetch(ei,es).then(filterBadStatus).then(en=>en.json())}}ei.http=http},93831:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.HttpBatchClient=void 0;let ea=eo(6522),es=eo(57493),ed=eo(15734),eu={dispatchInterval:20,batchSizeLimit:20};let HttpBatchClient=class HttpBatchClient{constructor(en,ei={}){this.queue=[],this.options={batchSizeLimit:ei.batchSizeLimit??eu.batchSizeLimit,dispatchInterval:ei.dispatchInterval??eu.dispatchInterval},"string"==typeof en?this.url=(0,ed.hasProtocol)(en)?en:"http://"+en:(this.url=en.url,this.headers=en.headers),this.timer=setInterval(()=>this.tick(),ei.dispatchInterval),this.validate()}disconnect(){this.timer&&clearInterval(this.timer),this.timer=void 0}async execute(en){return new Promise((ei,eo)=>{this.queue.push({request:en,resolve:ei,reject:eo}),this.queue.length>=this.options.batchSizeLimit&&this.tick()})}validate(){if(!this.options.batchSizeLimit||!Number.isSafeInteger(this.options.batchSizeLimit)||this.options.batchSizeLimit<1)throw Error("batchSizeLimit must be a safe integer >= 1")}tick(){let en=this.queue.splice(0,this.options.batchSizeLimit);if(!en.length)return;let ei=en.map(en=>en.request),eo=ei.map(en=>en.id);(0,es.http)("POST",this.url,this.headers,ei).then(ei=>{let eo=Array.isArray(ei)?ei:[ei];eo.forEach(ei=>{let eo=en.find(en=>en.request.id===ei.id);if(!eo)return;let{reject:es,resolve:ed}=eo,eu=(0,ea.parseJsonRpcResponse)(ei);(0,ea.isJsonRpcErrorResponse)(eu)?es(Error(JSON.stringify(eu.error))):ed(eu)})},ei=>{for(let ea of eo){let eo=en.find(en=>en.request.id===ea);if(!eo)return;eo.reject(ei)}})}};ei.HttpBatchClient=HttpBatchClient},25398:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.HttpClient=void 0;let ea=eo(6522),es=eo(57493),ed=eo(15734);let HttpClient=class HttpClient{constructor(en){"string"==typeof en?this.url=(0,ed.hasProtocol)(en)?en:"http://"+en:(this.url=en.url,this.headers=en.headers)}disconnect(){}async execute(en){let ei=(0,ea.parseJsonRpcResponse)(await (0,es.http)("POST",this.url,this.headers,en));if((0,ea.isJsonRpcErrorResponse)(ei))throw Error(JSON.stringify(ei.error));return ei}};ei.HttpClient=HttpClient},38443:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.WebsocketClient=ei.instanceOfRpcStreamingClient=ei.HttpClient=ei.HttpBatchClient=void 0;var ea=eo(93831);Object.defineProperty(ei,"HttpBatchClient",{enumerable:!0,get:function(){return ea.HttpBatchClient}});var es=eo(25398);Object.defineProperty(ei,"HttpClient",{enumerable:!0,get:function(){return es.HttpClient}});var ed=eo(15734);Object.defineProperty(ei,"instanceOfRpcStreamingClient",{enumerable:!0,get:function(){return ed.instanceOfRpcStreamingClient}});var eu=eo(62494);Object.defineProperty(ei,"WebsocketClient",{enumerable:!0,get:function(){return eu.WebsocketClient}})},15734:function(en,ei){"use strict";function instanceOfRpcStreamingClient(en){return"function"==typeof en.listen}function hasProtocol(en){return -1!==en.search("://")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.hasProtocol=ei.instanceOfRpcStreamingClient=void 0,ei.instanceOfRpcStreamingClient=instanceOfRpcStreamingClient,ei.hasProtocol=hasProtocol},62494:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.WebsocketClient=void 0;let ea=eo(6522),es=eo(63830),ed=eo(97452),eu=eo(43813),ef=eo(15734);function defaultErrorHandler(en){throw en}function toJsonRpcResponse(en){if("message"!==en.type)throw Error(`Unexcepted message type on websocket: ${en.type}`);let ei=(0,ea.parseJsonRpcResponse)(JSON.parse(en.data));return ei}let RpcEventProducer=class RpcEventProducer{constructor(en,ei){this.running=!1,this.subscriptions=[],this.request=en,this.socket=ei}start(en){if(this.running)throw Error("Already started. Please stop first before restarting.");this.running=!0,this.connectToClient(en),this.socket.queueRequest(JSON.stringify(this.request))}stop(){this.running=!1;let en={...this.request,method:"unsubscribe"};try{this.socket.queueRequest(JSON.stringify(en))}catch(en){if(en instanceof Error&&en.message.match(/socket has disconnected/i));else throw en}}connectToClient(en){let ei=this.socket.events.map(toJsonRpcResponse),eo=ei.filter(en=>en.id===this.request.id).subscribe({next:ei=>
4{(0,ea.isJsonRpcErrorResponse)(ei)&&(this.closeSubscriptions(),en.error(JSON.stringify(ei.error))),eo.unsubscribe()}}),es=ei.filter(en=>en.id===this.request.id).subscribe({next:ei=>{(0,ea.isJsonRpcErrorResponse)(ei)?(this.closeSubscriptions(),en.error(JSON.stringify(ei.error))):en.next(ei.result)}}),ed=ei.subscribe({error:ei=>{this.closeSubscriptions(),en.error(ei)},complete:()=>{this.closeSubscriptions(),en.complete()}});this.subscriptions.push(eo,es,ed)}closeSubscriptions(){for(let en of this.subscriptions)en.unsubscribe();this.subscriptions=[]}};let WebsocketClient=class WebsocketClient{constructor(en,ei=defaultErrorHandler){this.subscriptionStreams=new Map;let eo=en.endsWith("/")?"websocket":"/websocket",ea=(0,ef.hasProtocol)(en)?en:"ws://"+en;this.url=ea+eo,this.socket=new es.ReconnectingSocket(this.url);let ed=this.socket.events.subscribe({error:en=>{ei(en),ed.unsubscribe()}});this.jsonRpcResponseStream=this.socket.events.map(toJsonRpcResponse),this.socket.connect()}async execute(en){let ei=this.responseForRequestId(en.id);this.socket.queueRequest(JSON.stringify(en));let eo=await ei;if((0,ea.isJsonRpcErrorResponse)(eo))throw Error(JSON.stringify(eo.error));return eo}listen(en){if("subscribe"!==en.method)throw Error('Request method must be "subscribe" to start event listening');let ei=en.params.query;if("string"!=typeof ei)throw Error("request.params.query must be a string");if(!this.subscriptionStreams.has(ei)){let eo=new RpcEventProducer(en,this.socket),ea=eu.Stream.create(eo);this.subscriptionStreams.set(ei,ea)}return this.subscriptionStreams.get(ei).filter(en=>void 0!==en.query)}async connected(){await this.socket.connectionStatus.waitFor(es.ConnectionStatus.Connected)}disconnect(){this.socket.disconnect()}async responseForRequestId(en){return(0,ed.firstEvent)(this.jsonRpcResponseStream.filter(ei=>ei.id===en))}};ei.WebsocketClient=WebsocketClient},41731:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.adaptor34=void 0;let ea=eo(89057),es=eo(45240),ed=eo(83106);ei.adaptor34={params:es.Params,responses:ed.Responses,hashTx:ea.hashTx,hashBlock:ea.hashBlock}},45240:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=void 0;let eu=eo(28972),ef=eo(77244),ep=eo(27793),em=eo(50122),eg=ed(eo(74920));function encodeHeightParam(en){return{height:(0,em.may)(ef.smallIntToApi,en.height)}}function encodeBlockchainRequestParams(en){return{minHeight:(0,em.may)(ef.smallIntToApi,en.minHeight),maxHeight:(0,em.may)(ef.smallIntToApi,en.maxHeight)}}function encodeBlockSearchParams(en){return{query:en.query,page:(0,em.may)(ef.smallIntToApi,en.page),per_page:(0,em.may)(ef.smallIntToApi,en.per_page),order_by:en.order_by}}function encodeAbciQueryParams(en){return{path:(0,em.assertNotEmpty)(en.path),data:(0,eu.toHex)(en.data),height:(0,em.may)(ef.smallIntToApi,en.height),prove:en.prove}}function encodeBroadcastTxParams(en){return{tx:(0,eu.toBase64)((0,em.assertNotEmpty)(en.tx))}}function encodeTxParams(en){return{hash:(0,eu.toBase64)((0,em.assertNotEmpty)(en.hash)),prove:en.prove}}function encodeTxSearchParams(en){return{query:en.query,prove:en.prove,page:(0,em.may)(ef.smallIntToApi,en.page),per_page:(0,em.may)(ef.smallIntToApi,en.per_page),order_by:en.order_by}}function encodeValidatorsParams(en){return{height:(0,em.may)(ef.smallIntToApi,en.height),page:(0,em.may)(ef.smallIntToApi,en.page),per_page:(0,em.may)(ef.smallIntToApi,en.per_page)}}let Params=class Params{static encodeAbciInfo(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeAbciQuery(en){return(0,ep.createJsonRpcRequest)(en.method,encodeAbciQueryParams(en.params))}static encodeBlock(en){return(0,ep.createJsonRpcRequest)(en.method,encodeHeightParam(en.params))}static encodeBlockchain(en){return(0,ep.createJsonRpcRequest)(en.method,encodeBlockchainRequestParam
4s(en.params))}static encodeBlockResults(en){return(0,ep.createJsonRpcRequest)(en.method,encodeHeightParam(en.params))}static encodeBlockSearch(en){return(0,ep.createJsonRpcRequest)(en.method,encodeBlockSearchParams(en.params))}static encodeBroadcastTx(en){return(0,ep.createJsonRpcRequest)(en.method,encodeBroadcastTxParams(en.params))}static encodeCommit(en){return(0,ep.createJsonRpcRequest)(en.method,encodeHeightParam(en.params))}static encodeGenesis(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeHealth(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeNumUnconfirmedTxs(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeStatus(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeSubscribe(en){let ei={key:"tm.event",value:en.query.type},eo=eg.buildQuery({tags:[ei],raw:en.query.raw});return(0,ep.createJsonRpcRequest)("subscribe",{query:eo})}static encodeTx(en){return(0,ep.createJsonRpcRequest)(en.method,encodeTxParams(en.params))}static encodeTxSearch(en){return(0,ep.createJsonRpcRequest)(en.method,encodeTxSearchParams(en.params))}static encodeValidators(en){return(0,ep.createJsonRpcRequest)(en.method,encodeValidatorsParams(en.params))}};ei.Params=Params},83106:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Responses=ei.decodeValidatorInfo=ei.decodeValidatorGenesis=ei.decodeValidatorUpdate=ei.decodeEvent=void 0;let ea=eo(28972),es=eo(85553),ed=eo(18477),eu=eo(77244),ef=eo(73508),ep=eo(50122),em=eo(89057);function decodeAbciInfo(en){return{data:en.data,lastBlockHeight:(0,ep.may)(eu.apiToSmallInt,en.last_block_height),lastBlockAppHash:(0,ep.may)(ea.fromBase64,en.last_block_app_hash)}}function decodeQueryProof(en){return{ops:en.ops.map(en=>({type:en.type,key:(0,ea.fromBase64)(en.key),data:(0,ea.fromBase64)(en.data)}))}}function decodeAbciQuery(en){return{key:(0,ea.fromBase64)((0,ep.assertString)(en.key??"")),value:(0,ea.fromBase64)((0,ep.assertString)(en.value??"")),proof:(0,ep.may)(decodeQueryProof,en.proofOps),height:(0,ep.may)(eu.apiToSmallInt,en.height),code:(0,ep.may)(eu.apiToSmallInt,en.code),codespace:(0,ep.assertString)(en.codespace??""),index:(0,ep.may)(eu.apiToSmallInt,en.index),log:en.log,info:(0,ep.assertString)(en.info??"")}}function decodeAttribute(en){return{key:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.key)),value:(0,ea.fromBase64)((0,ep.assertString)(en.value??""))}}function decodeAttributes(en){return(0,ep.assertArray)(en).map(decodeAttribute)}function decodeEvent(en){return{type:en.type,attributes:en.attributes?decodeAttributes(en.attributes):[]}}function decodeEvents(en){return(0,ep.assertArray)(en).map(decodeEvent)}function decodeTxData(en){return{code:(0,eu.apiToSmallInt)((0,ep.assertNumber)(en.code??0)),codespace:en.codespace,log:en.log,data:(0,ep.may)(ea.fromBase64,en.data),events:en.events?decodeEvents(en.events):[],gasWanted:(0,eu.apiToSmallInt)(en.gas_wanted??"0"),gasUsed:(0,eu.apiToSmallInt)(en.gas_used??"0")}}function decodePubkey(en){if("Sum"in en){let[[ei,eo]]=Object.entries(en.Sum.value);return(0,es.assert)("ed25519"===ei||"secp256k1"===ei,`unknown pubkey type: ${ei}`),{algorithm:ei,data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(eo))}}switch(en.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.value))};default:throw Error(`unknown pubkey type: ${en.type}`)}}function decodeBlockParams(en){return{maxBytes:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_bytes)),maxGas:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_gas))}}function decodeEvidenceParams(en){return{maxAgeNumBlocks:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_age_num_blocks)),maxAgeDuration:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_age_duration))}}function decodeConsensusParams(en){return{block:decodeBlockParams((0,ep.assertObject)(en.block)),evidence:decodeEvidenceParams((0,ep.assertObject)(en.evidence))}}function decodeValidatorUpdate(en){return{pubkey:decodePubkey((0,ep.assertObject)(en.pub_key)),votingPower:(0,eu.apiToBigInt)(en.power??"0")}}
4function decodeBlockResults(en){return{height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),results:(en.txs_results||[]).map(decodeTxData),validatorUpdates:(en.validator_updates||[]).map(decodeValidatorUpdate),consensusUpdates:(0,ep.may)(decodeConsensusParams,en.consensus_param_updates),beginBlockEvents:decodeEvents(en.begin_block_events||[]),endBlockEvents:decodeEvents(en.end_block_events||[])}}function decodeBlockId(en){return{hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash)),parts:{total:(0,ep.assertNotEmpty)(en.parts.total),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.parts.hash))}}}function decodeBlockVersion(en){return{block:(0,eu.apiToSmallInt)(en.block),app:(0,eu.apiToSmallInt)(en.app??0)}}function decodeHeader(en){return{version:decodeBlockVersion(en.version),chainId:(0,ep.assertNotEmpty)(en.chain_id),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),time:(0,ed.fromRfc3339WithNanoseconds)((0,ep.assertNotEmpty)(en.time)),lastBlockId:en.last_block_id.hash?decodeBlockId(en.last_block_id):null,lastCommitHash:(0,ea.fromHex)((0,ep.assertSet)(en.last_commit_hash)),dataHash:(0,ea.fromHex)((0,ep.assertSet)(en.data_hash)),validatorsHash:(0,ea.fromHex)((0,ep.assertSet)(en.validators_hash)),nextValidatorsHash:(0,ea.fromHex)((0,ep.assertSet)(en.next_validators_hash)),consensusHash:(0,ea.fromHex)((0,ep.assertSet)(en.consensus_hash)),appHash:(0,ea.fromHex)((0,ep.assertSet)(en.app_hash)),lastResultsHash:(0,ea.fromHex)((0,ep.assertSet)(en.last_results_hash)),evidenceHash:(0,ea.fromHex)((0,ep.assertSet)(en.evidence_hash)),proposerAddress:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.proposer_address))}}function decodeBlockMeta(en){return{blockId:decodeBlockId(en.block_id),blockSize:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.block_size)),header:decodeHeader(en.header),numTxs:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.num_txs))}}function decodeBlockchain(en){return{lastHeight:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.last_height)),blockMetas:(0,ep.assertArray)(en.block_metas).map(decodeBlockMeta)}}function decodeBroadcastTxSync(en){return{...decodeTxData(en),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash))}}function decodeBroadcastTxCommit(en){return{height:(0,eu.apiToSmallInt)(en.height),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash)),checkTx:decodeTxData((0,ep.assertObject)(en.check_tx)),deliverTx:(0,ep.may)(decodeTxData,en.deliver_tx)}}function decodeBlockIdFlag(en){return(0,es.assert)(en in ef.BlockIdFlag),en}function decodeOptionalTime(en){let ei=en&&!en.startsWith("0001-01-01");return ei?(0,ed.fromRfc3339WithNanoseconds)(en):void 0}function decodeCommitSignature(en){return{blockIdFlag:decodeBlockIdFlag(en.block_id_flag),validatorAddress:en.validator_address?(0,ea.fromHex)(en.validator_address):void 0,timestamp:decodeOptionalTime(en.timestamp),signature:en.signature?(0,ea.fromBase64)(en.signature):void 0}}function decodeCommit(en){return{blockId:decodeBlockId((0,ep.assertObject)(en.block_id)),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),round:(0,eu.apiToSmallInt)(en.round),signatures:(0,ep.assertArray)(en.signatures).map(decodeCommitSignature)}}function decodeCommitResponse(en){return{canonical:(0,ep.assertBoolean)(en.canonical),header:decodeHeader(en.signed_header.header),commit:decodeCommit(en.signed_header.commit)}}function decodeValidatorGenesis(en){return{address:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.address)),pubkey:decodePubkey((0,ep.assertObject)(en.pub_key)),votingPower:(0,eu.apiToBigInt)((0,ep.assertNotEmpty)(en.power))}}function decodeGenesis(en){return{genesisTime:(0,ed.fromRfc3339WithNanoseconds)((0,ep.assertNotEmpty)(en.genesis_time)),chainId:(0,ep.assertNotEmpty)(en.chain_id),consensusParams:decodeConsensusParams(en.consensus_params),validators:en.validators?(0,ep.assertArray)(en.validators).map(decodeValidatorGenesis):[],appHash:(0,ea.fromHex)((0,ep.assertSet)(en.app_hash)),appState:en.app_state}}function decodeValidatorInfo(en){return{pubkey:decodePubkey((0,ep.assertObject)(en.pub_key)),votingPower:(0,eu.apiToBigInt)((0,ep.assertNotEmpty)(en.voting_power)),address:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.address)),proposerPriority:en.proposer_priority?(0,eu.apiToSmallInt)(en.proposer_priority):void 0}}
4function decodeNodeInfo(en){return{id:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.id)),listenAddr:(0,ep.assertNotEmpty)(en.listen_addr),network:(0,ep.assertNotEmpty)(en.network),version:(0,ep.assertString)(en.version),channels:(0,ep.assertNotEmpty)(en.channels),moniker:(0,ep.assertNotEmpty)(en.moniker),other:(0,ep.dictionaryToStringMap)(en.other),protocolVersion:{app:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.protocol_version.app)),block:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.protocol_version.block)),p2p:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.protocol_version.p2p))}}}function decodeSyncInfo(en){let ei=en.earliest_block_height?(0,eu.apiToSmallInt)(en.earliest_block_height):void 0,eo=en.earliest_block_time?(0,ed.fromRfc3339WithNanoseconds)(en.earliest_block_time):void 0;return{earliestAppHash:en.earliest_app_hash?(0,ea.fromHex)(en.earliest_app_hash):void 0,earliestBlockHash:en.earliest_block_hash?(0,ea.fromHex)(en.earliest_block_hash):void 0,earliestBlockHeight:ei||void 0,earliestBlockTime:eo?.getTime()?eo:void 0,latestBlockHash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.latest_block_hash)),latestAppHash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.latest_app_hash)),latestBlockTime:(0,ed.fromRfc3339WithNanoseconds)((0,ep.assertNotEmpty)(en.latest_block_time)),latestBlockHeight:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.latest_block_height)),catchingUp:(0,ep.assertBoolean)(en.catching_up)}}function decodeStatus(en){return{nodeInfo:decodeNodeInfo(en.node_info),syncInfo:decodeSyncInfo(en.sync_info),validatorInfo:decodeValidatorInfo(en.validator_info)}}function decodeTxProof(en){return{data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.data)),rootHash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.root_hash)),proof:{total:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.proof.total)),index:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.proof.index)),leafHash:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.proof.leaf_hash)),aunts:(0,ep.assertArray)(en.proof.aunts).map(ea.fromBase64)}}}function decodeTxResponse(en){return{tx:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.tx)),result:decodeTxData((0,ep.assertObject)(en.tx_result)),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),index:(0,eu.apiToSmallInt)((0,ep.assertNumber)(en.index)),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash)),proof:(0,ep.may)(decodeTxProof,en.proof)}}function decodeTxSearch(en){return{totalCount:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total_count)),txs:(0,ep.assertArray)(en.txs).map(decodeTxResponse)}}function decodeTxEvent(en){let ei=(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.tx));return{tx:ei,hash:(0,em.hashTx)(ei),result:decodeTxData(en.result),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height))}}function decodeValidators(en){return{blockHeight:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.block_height)),validators:(0,ep.assertArray)(en.validators).map(decodeValidatorInfo),count:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.count)),total:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total))}}function decodeBlock(en){return{header:decodeHeader((0,ep.assertObject)(en.header)),lastCommit:en.last_commit.block_id.hash?decodeCommit((0,ep.assertObject)(en.last_commit)):null,txs:en.data.txs?(0,ep.assertArray)(en.data.txs).map(ea.fromBase64):[],evidence:en.evidence?.evidence??[]}}function decodeBlockResponse(en){return{blockId:decodeBlockId(en.block_id),block:decodeBlock(en.block)}}function decodeBlockSearch(en){return{totalCount:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total_count)),blocks:(0,ep.assertArray)(en.blocks).map(decodeBlockResponse)}}function decodeNumUnconfirmedTxs(en){return{total:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total)),totalBytes:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total_bytes))}}ei.decodeEvent=decodeEvent,ei.decodeValidatorUpdate=decodeValidatorUpdate,ei.decodeValidatorGenesis=decodeValidatorGenesis,ei.decodeValidatorInfo=decodeValidatorInfo;let Responses=class Responses{static decodeAbciInfo(en){return decodeAbciInfo((0,ep.assertObject)(en.result.response))}static decodeAbciQuery(en){return decodeAbciQuery((0,ep.assertObject)(en.result.response))}static decodeBlock(en){return decodeBlockResponse(en.result)}
4static decodeBlockResults(en){return decodeBlockResults(en.result)}static decodeBlockSearch(en){return decodeBlockSearch(en.result)}static decodeBlockchain(en){return decodeBlockchain(en.result)}static decodeBroadcastTxSync(en){return decodeBroadcastTxSync(en.result)}static decodeBroadcastTxAsync(en){return Responses.decodeBroadcastTxSync(en)}static decodeBroadcastTxCommit(en){return decodeBroadcastTxCommit(en.result)}static decodeCommit(en){return decodeCommitResponse(en.result)}static decodeGenesis(en){return decodeGenesis((0,ep.assertObject)(en.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(en){return decodeNumUnconfirmedTxs(en.result)}static decodeStatus(en){return decodeStatus(en.result)}static decodeNewBlockEvent(en){return decodeBlock(en.data.value.block)}static decodeNewBlockHeaderEvent(en){return decodeHeader(en.data.value.header)}static decodeTxEvent(en){return decodeTxEvent(en.data.value.TxResult)}static decodeTx(en){return decodeTxResponse(en.result)}static decodeTxSearch(en){return decodeTxSearch(en.result)}static decodeValidators(en){return decodeValidators(en.result)}};ei.Responses=Responses},50122:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.encodeBlockId=ei.encodeVersion=ei.encodeBytes=ei.encodeTime=ei.encodeUvarint=ei.encodeString=ei.dictionaryToStringMap=ei.may=ei.assertNotEmpty=ei.assertObject=ei.assertArray=ei.assertNumber=ei.assertString=ei.assertBoolean=ei.assertSet=void 0;let ea=eo(28972);function assertSet(en){if(void 0===en)throw Error("Value must not be undefined");if(null===en)throw Error("Value must not be null");return en}function assertBoolean(en){if(assertSet(en),"boolean"!=typeof en)throw Error("Value must be a boolean");return en}function assertString(en){if(assertSet(en),"string"!=typeof en)throw Error("Value must be a string");return en}function assertNumber(en){if(assertSet(en),"number"!=typeof en)throw Error("Value must be a number");return en}function assertArray(en){if(assertSet(en),!Array.isArray(en))throw Error("Value must be a an array");return en}function assertObject(en){if(assertSet(en),"object"!=typeof en)throw Error("Value must be an object");if("[object Object]"!==Object.prototype.toString.call(en))throw Error("Value must be a simple object");return en}function assertNotEmpty(en){if(assertSet(en),"number"==typeof en&&0===en)throw Error("must provide a non-zero value");if(0===en.length)throw Error("must provide a non-empty value");return en}function may(en,ei){return null==ei?void 0:en(ei)}function dictionaryToStringMap(en){let ei=new Map;for(let eo of Object.keys(en)){let ea=en[eo];if("string"!=typeof ea)throw Error("Found dictionary value of type other than string");ei.set(eo,ea)}return ei}function encodeString(en){let ei=(0,ea.toUtf8)(en);return Uint8Array.from([ei.length,...ei])}function encodeUvarint(en){return en>=128?Uint8Array.from([255&en|128,...encodeUvarint(en>>7)]):Uint8Array.from([255&en])}function encodeTime(en){let ei=en.getTime(),eo=Math.floor(ei/1e3),ea=eo?[8,...encodeUvarint(eo)]:new Uint8Array,es=(en.nanoseconds||0)+ei%1e3*1e6,ed=es?[16,...encodeUvarint(es)]:new Uint8Array;return Uint8Array.from([...ea,...ed])}function encodeBytes(en){if(en.length>=128)throw Error("Not implemented for byte arrays of length 128 or more");return en.length?Uint8Array.from([en.length,...en]):new Uint8Array}function encodeVersion(en){let ei=en.block?Uint8Array.from([8,...encodeUvarint(en.block)]):new Uint8Array,eo=en.app?Uint8Array.from([16,...encodeUvarint(en.app)]):new Uint8Array;return Uint8Array.from([...ei,...eo])}function encodeBlockId(en){return Uint8Array.from([10,en.hash.length,...en.hash,18,en.parts.hash.length+4,8,en.parts.total,18,en.parts.hash.length,...en.parts.hash])}ei.assertSet=assertSet,ei.assertBoolean=assertBoolean,ei.assertString=assertString,ei.assertNumber=assertNumber,ei.assertArray=assertArray,ei.assertObject=assertObject,ei.assertNotEmpty=assertNotEmpty,ei.may=may,ei.dictionaryToStringMap=dictionaryToStringMap,ei.encodeString=encodeString,ei.encodeUvarint=encodeUvarint,ei.encodeTime=encodeTime,ei.encodeBytes=encodeBytes,ei.encodeVersion=encodeVersion,ei.encodeBlockId=encodeBlockId},89057:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.hashBlock=ei.hashTx=void 0;let ea=eo(79562),es=eo(50122);function hashTx(en){return(0,ea.sha256)(en)}function getSplitPoint(en){if(en<1)throw Error("Cannot split an empty tree");let ei=2**Math.floor(Math.log2(en));return ei<en?ei:ei/2}function hashLeaf(en){let ei=new ea.Sha256(Uint8Array.from([0]));
4return ei.update(en),ei.digest()}function hashInner(en,ei){let eo=new ea.Sha256(Uint8Array.from([1]));return eo.update(en),eo.update(ei),eo.digest()}function hashTree(en){switch(en.length){case 0:throw Error("Cannot hash empty tree");case 1:return hashLeaf(en[0]);default:{let ei=getSplitPoint(en.length),eo=hashTree(en.slice(0,ei)),ea=hashTree(en.slice(ei));return hashInner(eo,ea)}}}function hashBlock(en){if(!en.lastBlockId)throw Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");let ei=[(0,es.encodeVersion)(en.version),(0,es.encodeString)(en.chainId),(0,es.encodeUvarint)(en.height),(0,es.encodeTime)(en.time),(0,es.encodeBlockId)(en.lastBlockId),(0,es.encodeBytes)(en.lastCommitHash),(0,es.encodeBytes)(en.dataHash),(0,es.encodeBytes)(en.validatorsHash),(0,es.encodeBytes)(en.nextValidatorsHash),(0,es.encodeBytes)(en.consensusHash),(0,es.encodeBytes)(en.appHash),(0,es.encodeBytes)(en.lastResultsHash),(0,es.encodeBytes)(en.evidenceHash),(0,es.encodeBytes)(en.proposerAddress)];return hashTree(ei)}ei.hashTx=hashTx,ei.hashBlock=hashBlock},67468:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Tendermint34Client=ei.VoteType=ei.broadcastTxSyncSuccess=ei.broadcastTxCommitSuccess=ei.SubscriptionEventType=ei.Method=void 0;var ea=eo(74920);Object.defineProperty(ei,"Method",{enumerable:!0,get:function(){return ea.Method}}),Object.defineProperty(ei,"SubscriptionEventType",{enumerable:!0,get:function(){return ea.SubscriptionEventType}});var es=eo(56802);Object.defineProperty(ei,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return es.broadcastTxCommitSuccess}}),Object.defineProperty(ei,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return es.broadcastTxSyncSuccess}}),Object.defineProperty(ei,"VoteType",{enumerable:!0,get:function(){return es.VoteType}});var ed=eo(34533);Object.defineProperty(ei,"Tendermint34Client",{enumerable:!0,get:function(){return ed.Tendermint34Client}})},74920:function(en,ei){"use strict";var eo,ea;function buildQuery(en){let ei=en.tags?en.tags:[],eo=ei.map(en=>`${en.key}='${en.value}'`),ea=en.raw?[en.raw]:[];return[...eo,...ea].join(" AND ")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.buildQuery=ei.SubscriptionEventType=ei.Method=void 0,function(en){en.AbciInfo="abci_info",en.AbciQuery="abci_query",en.Block="block",en.Blockchain="blockchain",en.BlockResults="block_results",en.BlockSearch="block_search",en.BroadcastTxAsync="broadcast_tx_async",en.BroadcastTxSync="broadcast_tx_sync",en.BroadcastTxCommit="broadcast_tx_commit",en.Commit="commit",en.Genesis="genesis",en.Health="health",en.NumUnconfirmedTxs="num_unconfirmed_txs",en.Status="status",en.Subscribe="subscribe",en.Tx="tx",en.TxSearch="tx_search",en.Validators="validators",en.Unsubscribe="unsubscribe"}(eo=ei.Method||(ei.Method={})),function(en){en.NewBlock="NewBlock",en.NewBlockHeader="NewBlockHeader",en.Tx="Tx"}(ea=ei.SubscriptionEventType||(ei.SubscriptionEventType={})),ei.buildQuery=buildQuery},56802:function(en,ei){"use strict";var eo;function broadcastTxSyncSuccess(en){return 0===en.code}function broadcastTxCommitSuccess(en){return 0===en.checkTx.code&&!!en.deliverTx&&0===en.deliverTx.code}Object.defineProperty(ei,"__esModule",{value:!0}),ei.VoteType=ei.broadcastTxCommitSuccess=ei.broadcastTxSyncSuccess=void 0,ei.broadcastTxSyncSuccess=broadcastTxSyncSuccess,ei.broadcastTxCommitSuccess=broadcastTxCommitSuccess,function(en){en[en.PreVote=1]="PreVote",en[en.PreCommit=2]="PreCommit"}(eo=ei.VoteType||(ei.VoteType={}))},34533:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Tendermint34Client=void 0;let eu=eo(27793),ef=eo(38443),ep=eo(41731),em=ed(eo(74920));let Tendermint34Client=class Tendermint34Client{static async connect(en){let ei;if("object"==typeof en)ei=new ef.HttpClient(en);else{let eo=en.startsWith("http://")||en.startsWith("https://");ei=eo?new ef.HttpClient(en):new ef.WebsocketClient(en)}return await this.detectVersion(ei),Tendermint34Client.create(ei)}static async create(en){return new Tendermint34Client(en)}static async detectVersion(en){let ei=(0,eu.createJsonRpcRequest)(em.Method.Status),eo=await en.execute(ei),ea=eo.result;if(!ea||!ea.node_info)throw Error("Unrecognized format for status response");let es=ea.node_info.version;
4if("string"!=typeof es)throw Error("Unrecognized version format: must be string");return es}constructor(en){this.client=en,this.p=ep.adaptor34.params,this.r=ep.adaptor34.responses}disconnect(){this.client.disconnect()}async abciInfo(){let en={method:em.Method.AbciInfo};return this.doCall(en,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(en){let ei={params:en,method:em.Method.AbciQuery};return this.doCall(ei,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(en){let ei={method:em.Method.Block,params:{height:en}};return this.doCall(ei,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(en){let ei={method:em.Method.BlockResults,params:{height:en}};return this.doCall(ei,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(en){let ei={params:en,method:em.Method.BlockSearch},eo=await this.doCall(ei,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...eo,blocks:[...eo.blocks].sort((en,ei)=>en.block.header.height-ei.block.header.height)}}async blockSearchAll(en){let ei=en.page||1,eo=[],ea=!1;for(;!ea;){let es=await this.blockSearch({...en,page:ei});eo.push(...es.blocks),eo.length<es.totalCount?ei++:ea=!0}return eo.sort((en,ei)=>en.block.header.height-ei.block.header.height),{totalCount:eo.length,blocks:eo}}async blockchain(en,ei){let eo={method:em.Method.Blockchain,params:{minHeight:en,maxHeight:ei}};return this.doCall(eo,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(en){let ei={params:en,method:em.Method.BroadcastTxSync};return this.doCall(ei,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(en){let ei={params:en,method:em.Method.BroadcastTxAsync};return this.doCall(ei,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(en){let ei={params:en,method:em.Method.BroadcastTxCommit};return this.doCall(ei,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(en){let ei={method:em.Method.Commit,params:{height:en}};return this.doCall(ei,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){let en={method:em.Method.Genesis};return this.doCall(en,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){let en={method:em.Method.Health};return this.doCall(en,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){let en={method:em.Method.NumUnconfirmedTxs};return this.doCall(en,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){let en={method:em.Method.Status};return this.doCall(en,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){let en={method:em.Method.Subscribe,query:{type:em.SubscriptionEventType.NewBlock}};return this.subscribe(en,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){let en={method:em.Method.Subscribe,query:{type:em.SubscriptionEventType.NewBlockHeader}};return this.subscribe(en,this.r.decodeNewBlockHeaderEvent)}subscribeTx(en){let ei={method:em.Method.Subscribe,query:{type:em.SubscriptionEventType.Tx,raw:en}};return this.subscribe(ei,this.r.decodeTxEvent)}async tx(en){let ei={params:en,method:em.Method.Tx};return this.doCall(ei,this.p.encodeTx,this.r.decodeTx)}async txSearch(en){let ei={params:en,method:em.Method.TxSearch};return this.doCall(ei,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(en){let ei=en.page||1,eo=[],ea=!1;for(;!ea;){let es=await this.txSearch({...en,page:ei});eo.push(...es.txs),eo.length<es.totalCount?ei++:ea=!0}return{totalCount:eo.length,txs:eo}}async validators(en){let ei={method:em.Method.Validators,params:en};return this.doCall(ei,this.p.encodeValidators,this.r.decodeValidators)}async validatorsAll(en){let ei=[],eo=1,ea=!1,es=en;for(;!ea;){let en=await this.validators({per_page:50,height:es,page:eo});ei.push(...en.validators),es=es||en.blockHeight,ei.length<en.total?eo++:ea=!0}return{blockHeight:es??0,count:ei.length,total:ei.length,validators:ei}}async doCall(en,ei,eo){let ea=ei(en),es=await this.client.execute(ea);return eo(es)}subscribe(en,ei){if(!(0,ef.instanceOfRpcStreamingClient)(this.client))throw Error("This RPC client type cannot subscribe to events");let eo=this.p.encodeSubscribe(en),ea=this.client.listen(eo);return ea.map(en=>ei(en))}};ei.Tendermint34Client=Tendermint34Client},40522:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.adaptor37=void 0;let ea=eo(6305),es=eo(114),ed=eo(72644);ei.adaptor37={params:es.Params,responses:ed.Responses,hashTx:ea.hashTx,hashBlock:ea.hashBlock}},114:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=void 0;let eu=eo(28972),ef=eo(77244),ep=eo(27793),em=eo(71110),eg=ed(eo(9784));function encodeHeightParam(en){return{height:(0,em.may)(ef.smallIntToApi,en.height)}}
4function encodeBlockchainRequestParams(en){return{minHeight:(0,em.may)(ef.smallIntToApi,en.minHeight),maxHeight:(0,em.may)(ef.smallIntToApi,en.maxHeight)}}function encodeBlockSearchParams(en){return{query:en.query,page:(0,em.may)(ef.smallIntToApi,en.page),per_page:(0,em.may)(ef.smallIntToApi,en.per_page),order_by:en.order_by}}function encodeAbciQueryParams(en){return{path:(0,em.assertNotEmpty)(en.path),data:(0,eu.toHex)(en.data),height:(0,em.may)(ef.smallIntToApi,en.height),prove:en.prove}}function encodeBroadcastTxParams(en){return{tx:(0,eu.toBase64)((0,em.assertNotEmpty)(en.tx))}}function encodeTxParams(en){return{hash:(0,eu.toBase64)((0,em.assertNotEmpty)(en.hash)),prove:en.prove}}function encodeTxSearchParams(en){return{query:en.query,prove:en.prove,page:(0,em.may)(ef.smallIntToApi,en.page),per_page:(0,em.may)(ef.smallIntToApi,en.per_page),order_by:en.order_by}}function encodeValidatorsParams(en){return{height:(0,em.may)(ef.smallIntToApi,en.height),page:(0,em.may)(ef.smallIntToApi,en.page),per_page:(0,em.may)(ef.smallIntToApi,en.per_page)}}let Params=class Params{static encodeAbciInfo(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeAbciQuery(en){return(0,ep.createJsonRpcRequest)(en.method,encodeAbciQueryParams(en.params))}static encodeBlock(en){return(0,ep.createJsonRpcRequest)(en.method,encodeHeightParam(en.params))}static encodeBlockchain(en){return(0,ep.createJsonRpcRequest)(en.method,encodeBlockchainRequestParams(en.params))}
4static encodeBlockResults(en){return(0,ep.createJsonRpcRequest)(en.method,encodeHeightParam(en.params))}static encodeBlockSearch(en){return(0,ep.createJsonRpcRequest)(en.method,encodeBlockSearchParams(en.params))}static encodeBroadcastTx(en){return(0,ep.createJsonRpcRequest)(en.method,encodeBroadcastTxParams(en.params))}static encodeCommit(en){return(0,ep.createJsonRpcRequest)(en.method,encodeHeightParam(en.params))}static encodeGenesis(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeHealth(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeNumUnconfirmedTxs(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeStatus(en){return(0,ep.createJsonRpcRequest)(en.method)}static encodeSubscribe(en){let ei={key:"tm.event",value:en.query.type},eo=eg.buildQuery({tags:[ei],raw:en.query.raw});return(0,ep.createJsonRpcRequest)("subscribe",{query:eo})}static encodeTx(en){return(0,ep.createJsonRpcRequest)(en.method,encodeTxParams(en.params))}static encodeTxSearch(en){return(0,ep.createJsonRpcRequest)(en.method,encodeTxSearchParams(en.params))}static encodeValidators(en){return(0,ep.createJsonRpcRequest)(en.method,encodeValidatorsParams(en.params))}};ei.Params=Params},72644:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Responses=ei.decodeValidatorInfo=ei.decodeValidatorGenesis=ei.decodeValidatorUpdate=ei.decodeEvent=void 0;let ea=eo(28972),es=eo(85553),ed=eo(18477),eu=eo(77244),ef=eo(73508),ep=eo(71110),em=eo(6305);function decodeAbciInfo(en){return{data:en.data,lastBlockHeight:(0,ep.may)(eu.apiToSmallInt,en.last_block_height),lastBlockAppHash:(0,ep.may)(ea.fromBase64,en.last_block_app_hash)}}function decodeQueryProof(en){return{ops:en.ops.map(en=>({type:en.type,key:(0,ea.fromBase64)(en.key),data:(0,ea.fromBase64)(en.data)}))}}function decodeAbciQuery(en){return{key:(0,ea.fromBase64)((0,ep.assertString)(en.key??"")),value:(0,ea.fromBase64)((0,ep.assertString)(en.value??"")),proof:(0,ep.may)(decodeQueryProof,en.proofOps),height:(0,ep.may)(eu.apiToSmallInt,en.height),code:(0,ep.may)(eu.apiToSmallInt,en.code),codespace:(0,ep.assertString)(en.codespace??""),index:(0,ep.may)(eu.apiToSmallInt,en.index),log:en.log,info:(0,ep.assertString)(en.info??"")}}function decodeEventAttribute(en){return{key:(0,ep.assertNotEmpty)(en.key),value:en.value??""}}function decodeAttributes(en){return(0,ep.assertArray)(en).map(decodeEventAttribute)}function decodeEvent(en){return{type:en.type,attributes:en.attributes?decodeAttributes(en.attributes):[]}}function decodeEvents(en){return(0,ep.assertArray)(en).map(decodeEvent)}function decodeTxData(en){return{code:(0,eu.apiToSmallInt)((0,ep.assertNumber)(en.code??0)),codespace:en.codespace,log:en.log,data:(0,ep.may)(ea.fromBase64,en.data),events:en.events?decodeEvents(en.events):[],gasWanted:(0,eu.apiToSmallInt)(en.gas_wanted??"0"),gasUsed:(0,eu.apiToSmallInt)(en.gas_used??"0")}}function decodePubkey(en){if("Sum"in en){let[[ei,eo]]=Object.entries(en.Sum.value);return(0,es.assert)("ed25519"===ei||"secp256k1"===ei,`unknown pubkey type: ${ei}`),{algorithm:ei,data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(eo))}}switch(en.type){case"tendermint/PubKeyEd25519":return{algorithm:"ed25519",data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.value))};case"tendermint/PubKeySecp256k1":return{algorithm:"secp256k1",data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.value))};default:throw Error(`unknown pubkey type: ${en.type}`)}}function decodeBlockParams(en){return{maxBytes:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_bytes)),maxGas:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_gas))}}function decodeEvidenceParams(en){return{maxAgeNumBlocks:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_age_num_blocks)),maxAgeDuration:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.max_age_duration))}}function decodeConsensusParams(en){return{block:decodeBlockParams((0,ep.assertObject)(en.block)),evidence:decodeEvidenceParams((0,ep.assertObject)(en.evidence))}}function decodeValidatorUpdate(en){return{pubkey:decodePubkey((0,ep.assertObject)(en.pub_key)),votingPower:(0,eu.apiToBigInt)(en.power??"0")}}
4function decodeBlockResults(en){return{height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),results:(en.txs_results||[]).map(decodeTxData),validatorUpdates:(en.validator_updates||[]).map(decodeValidatorUpdate),consensusUpdates:(0,ep.may)(decodeConsensusParams,en.consensus_param_updates),beginBlockEvents:decodeEvents(en.begin_block_events||[]),endBlockEvents:decodeEvents(en.end_block_events||[])}}function decodeBlockId(en){return{hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash)),parts:{total:(0,ep.assertNotEmpty)(en.parts.total),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.parts.hash))}}}function decodeBlockVersion(en){return{block:(0,eu.apiToSmallInt)(en.block),app:(0,eu.apiToSmallInt)(en.app??0)}}function decodeHeader(en){return{version:decodeBlockVersion(en.version),chainId:(0,ep.assertNotEmpty)(en.chain_id),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),time:(0,ed.fromRfc3339WithNanoseconds)((0,ep.assertNotEmpty)(en.time)),lastBlockId:en.last_block_id.hash?decodeBlockId(en.last_block_id):null,lastCommitHash:(0,ea.fromHex)((0,ep.assertSet)(en.last_commit_hash)),dataHash:(0,ea.fromHex)((0,ep.assertSet)(en.data_hash)),validatorsHash:(0,ea.fromHex)((0,ep.assertSet)(en.validators_hash)),nextValidatorsHash:(0,ea.fromHex)((0,ep.assertSet)(en.next_validators_hash)),consensusHash:(0,ea.fromHex)((0,ep.assertSet)(en.consensus_hash)),appHash:(0,ea.fromHex)((0,ep.assertSet)(en.app_hash)),lastResultsHash:(0,ea.fromHex)((0,ep.assertSet)(en.last_results_hash)),evidenceHash:(0,ea.fromHex)((0,ep.assertSet)(en.evidence_hash)),proposerAddress:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.proposer_address))}}function decodeBlockMeta(en){return{blockId:decodeBlockId(en.block_id),blockSize:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.block_size)),header:decodeHeader(en.header),numTxs:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.num_txs))}}function decodeBlockchain(en){return{lastHeight:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.last_height)),blockMetas:(0,ep.assertArray)(en.block_metas).map(decodeBlockMeta)}}function decodeBroadcastTxSync(en){return{...decodeTxData(en),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash))}}function decodeBroadcastTxCommit(en){return{height:(0,eu.apiToSmallInt)(en.height),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash)),checkTx:decodeTxData((0,ep.assertObject)(en.check_tx)),deliverTx:(0,ep.may)(decodeTxData,en.deliver_tx)}}function decodeBlockIdFlag(en){return(0,es.assert)(en in ef.BlockIdFlag),en}function decodeOptionalTime(en){let ei=en&&!en.startsWith("0001-01-01");return ei?(0,ed.fromRfc3339WithNanoseconds)(en):void 0}function decodeCommitSignature(en){return{blockIdFlag:decodeBlockIdFlag(en.block_id_flag),validatorAddress:en.validator_address?(0,ea.fromHex)(en.validator_address):void 0,timestamp:decodeOptionalTime(en.timestamp),signature:en.signature?(0,ea.fromBase64)(en.signature):void 0}}function decodeCommit(en){return{blockId:decodeBlockId((0,ep.assertObject)(en.block_id)),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),round:(0,eu.apiToSmallInt)(en.round),signatures:(0,ep.assertArray)(en.signatures).map(decodeCommitSignature)}}function decodeCommitResponse(en){return{canonical:(0,ep.assertBoolean)(en.canonical),header:decodeHeader(en.signed_header.header),commit:decodeCommit(en.signed_header.commit)}}function decodeValidatorGenesis(en){return{address:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.address)),pubkey:decodePubkey((0,ep.assertObject)(en.pub_key)),votingPower:(0,eu.apiToBigInt)((0,ep.assertNotEmpty)(en.power))}}function decodeGenesis(en){return{genesisTime:(0,ed.fromRfc3339WithNanoseconds)((0,ep.assertNotEmpty)(en.genesis_time)),chainId:(0,ep.assertNotEmpty)(en.chain_id),consensusParams:decodeConsensusParams(en.consensus_params),validators:en.validators?(0,ep.assertArray)(en.validators).map(decodeValidatorGenesis):[],appHash:(0,ea.fromHex)((0,ep.assertSet)(en.app_hash)),appState:en.app_state}}function decodeValidatorInfo(en){return{pubkey:decodePubkey((0,ep.assertObject)(en.pub_key)),votingPower:(0,eu.apiToBigInt)((0,ep.assertNotEmpty)(en.voting_power)),address:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.address)),proposerPriority:en.proposer_priority?(0,eu.apiToSmallInt)(en.proposer_priority):void 0}}
4function decodeNodeInfo(en){return{id:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.id)),listenAddr:(0,ep.assertNotEmpty)(en.listen_addr),network:(0,ep.assertNotEmpty)(en.network),version:(0,ep.assertString)(en.version),channels:(0,ep.assertNotEmpty)(en.channels),moniker:(0,ep.assertNotEmpty)(en.moniker),other:(0,ep.dictionaryToStringMap)(en.other),protocolVersion:{app:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.protocol_version.app)),block:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.protocol_version.block)),p2p:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.protocol_version.p2p))}}}function decodeSyncInfo(en){let ei=en.earliest_block_height?(0,eu.apiToSmallInt)(en.earliest_block_height):void 0,eo=en.earliest_block_time?(0,ed.fromRfc3339WithNanoseconds)(en.earliest_block_time):void 0;return{earliestAppHash:en.earliest_app_hash?(0,ea.fromHex)(en.earliest_app_hash):void 0,earliestBlockHash:en.earliest_block_hash?(0,ea.fromHex)(en.earliest_block_hash):void 0,earliestBlockHeight:ei||void 0,earliestBlockTime:eo?.getTime()?eo:void 0,latestBlockHash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.latest_block_hash)),latestAppHash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.latest_app_hash)),latestBlockTime:(0,ed.fromRfc3339WithNanoseconds)((0,ep.assertNotEmpty)(en.latest_block_time)),latestBlockHeight:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.latest_block_height)),catchingUp:(0,ep.assertBoolean)(en.catching_up)}}function decodeStatus(en){return{nodeInfo:decodeNodeInfo(en.node_info),syncInfo:decodeSyncInfo(en.sync_info),validatorInfo:decodeValidatorInfo(en.validator_info)}}function decodeTxProof(en){return{data:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.data)),rootHash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.root_hash)),proof:{total:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.proof.total)),index:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.proof.index)),leafHash:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.proof.leaf_hash)),aunts:(0,ep.assertArray)(en.proof.aunts).map(ea.fromBase64)}}}function decodeTxResponse(en){return{tx:(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.tx)),result:decodeTxData((0,ep.assertObject)(en.tx_result)),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height)),index:(0,eu.apiToSmallInt)((0,ep.assertNumber)(en.index)),hash:(0,ea.fromHex)((0,ep.assertNotEmpty)(en.hash)),proof:(0,ep.may)(decodeTxProof,en.proof)}}function decodeTxSearch(en){return{totalCount:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total_count)),txs:(0,ep.assertArray)(en.txs).map(decodeTxResponse)}}function decodeTxEvent(en){let ei=(0,ea.fromBase64)((0,ep.assertNotEmpty)(en.tx));return{tx:ei,hash:(0,em.hashTx)(ei),result:decodeTxData(en.result),height:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.height))}}function decodeValidators(en){return{blockHeight:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.block_height)),validators:(0,ep.assertArray)(en.validators).map(decodeValidatorInfo),count:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.count)),total:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total))}}function decodeBlock(en){return{header:decodeHeader((0,ep.assertObject)(en.header)),lastCommit:en.last_commit.block_id.hash?decodeCommit((0,ep.assertObject)(en.last_commit)):null,txs:en.data.txs?(0,ep.assertArray)(en.data.txs).map(ea.fromBase64):[],evidence:en.evidence?.evidence??[]}}function decodeBlockResponse(en){return{blockId:decodeBlockId(en.block_id),block:decodeBlock(en.block)}}function decodeBlockSearch(en){return{totalCount:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total_count)),blocks:(0,ep.assertArray)(en.blocks).map(decodeBlockResponse)}}function decodeNumUnconfirmedTxs(en){return{total:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total)),totalBytes:(0,eu.apiToSmallInt)((0,ep.assertNotEmpty)(en.total_bytes))}}ei.decodeEvent=decodeEvent,ei.decodeValidatorUpdate=decodeValidatorUpdate,ei.decodeValidatorGenesis=decodeValidatorGenesis,ei.decodeValidatorInfo=decodeValidatorInfo;let Responses=class Responses{static decodeAbciInfo(en){return decodeAbciInfo((0,ep.assertObject)(en.result.response))}static decodeAbciQuery(en){return decodeAbciQuery((0,ep.assertObject)(en.result.response))}static decodeBlock(en){return decodeBlockResponse(en.result)}
4static decodeBlockResults(en){return decodeBlockResults(en.result)}static decodeBlockSearch(en){return decodeBlockSearch(en.result)}static decodeBlockchain(en){return decodeBlockchain(en.result)}static decodeBroadcastTxSync(en){return decodeBroadcastTxSync(en.result)}static decodeBroadcastTxAsync(en){return Responses.decodeBroadcastTxSync(en)}static decodeBroadcastTxCommit(en){return decodeBroadcastTxCommit(en.result)}static decodeCommit(en){return decodeCommitResponse(en.result)}static decodeGenesis(en){return decodeGenesis((0,ep.assertObject)(en.result.genesis))}static decodeHealth(){return null}static decodeNumUnconfirmedTxs(en){return decodeNumUnconfirmedTxs(en.result)}static decodeStatus(en){return decodeStatus(en.result)}static decodeNewBlockEvent(en){return decodeBlock(en.data.value.block)}static decodeNewBlockHeaderEvent(en){return decodeHeader(en.data.value.header)}static decodeTxEvent(en){return decodeTxEvent(en.data.value.TxResult)}static decodeTx(en){return decodeTxResponse(en.result)}static decodeTxSearch(en){return decodeTxSearch(en.result)}static decodeValidators(en){return decodeValidators(en.result)}};ei.Responses=Responses},71110:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.encodeBlockId=ei.encodeVersion=ei.encodeBytes=ei.encodeTime=ei.encodeUvarint=ei.encodeString=ei.dictionaryToStringMap=ei.may=ei.assertNotEmpty=ei.assertObject=ei.assertArray=ei.assertNumber=ei.assertString=ei.assertBoolean=ei.assertSet=void 0;let ea=eo(28972);function assertSet(en){if(void 0===en)throw Error("Value must not be undefined");if(null===en)throw Error("Value must not be null");return en}function assertBoolean(en){if(assertSet(en),"boolean"!=typeof en)throw Error("Value must be a boolean");return en}function assertString(en){if(assertSet(en),"string"!=typeof en)throw Error("Value must be a string");return en}function assertNumber(en){if(assertSet(en),"number"!=typeof en)throw Error("Value must be a number");return en}function assertArray(en){if(assertSet(en),!Array.isArray(en))throw Error("Value must be a an array");return en}function assertObject(en){if(assertSet(en),"object"!=typeof en)throw Error("Value must be an object");if("[object Object]"!==Object.prototype.toString.call(en))throw Error("Value must be a simple object");return en}function assertNotEmpty(en){if(assertSet(en),"number"==typeof en&&0===en)throw Error("must provide a non-zero value");if(0===en.length)throw Error("must provide a non-empty value");return en}function may(en,ei){return null==ei?void 0:en(ei)}function dictionaryToStringMap(en){let ei=new Map;for(let eo of Object.keys(en)){let ea=en[eo];if("string"!=typeof ea)throw Error("Found dictionary value of type other than string");ei.set(eo,ea)}return ei}function encodeString(en){let ei=(0,ea.toUtf8)(en);return Uint8Array.from([ei.length,...ei])}function encodeUvarint(en){return en>=128?Uint8Array.from([255&en|128,...encodeUvarint(en>>7)]):Uint8Array.from([255&en])}function encodeTime(en){let ei=en.getTime(),eo=Math.floor(ei/1e3),ea=eo?[8,...encodeUvarint(eo)]:new Uint8Array,es=(en.nanoseconds||0)+ei%1e3*1e6,ed=es?[16,...encodeUvarint(es)]:new Uint8Array;return Uint8Array.from([...ea,...ed])}function encodeBytes(en){if(en.length>=128)throw Error("Not implemented for byte arrays of length 128 or more");return en.length?Uint8Array.from([en.length,...en]):new Uint8Array}function encodeVersion(en){let ei=en.block?Uint8Array.from([8,...encodeUvarint(en.block)]):new Uint8Array,eo=en.app?Uint8Array.from([16,...encodeUvarint(en.app)]):new Uint8Array;return Uint8Array.from([...ei,...eo])}function encodeBlockId(en){return Uint8Array.from([10,en.hash.length,...en.hash,18,en.parts.hash.length+4,8,en.parts.total,18,en.parts.hash.length,...en.parts.hash])}ei.assertSet=assertSet,ei.assertBoolean=assertBoolean,ei.assertString=assertString,ei.assertNumber=assertNumber,ei.assertArray=assertArray,ei.assertObject=assertObject,ei.assertNotEmpty=assertNotEmpty,ei.may=may,ei.dictionaryToStringMap=dictionaryToStringMap,ei.encodeString=encodeString,ei.encodeUvarint=encodeUvarint,ei.encodeTime=encodeTime,ei.encodeBytes=encodeBytes,ei.encodeVersion=encodeVersion,ei.encodeBlockId=encodeBlockId},6305:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.hashBlock=ei.hashTx=void 0;let ea=eo(79562),es=eo(71110);function hashTx(en){return(0,ea.sha256)(en)}function getSplitPoint(en){if(en<1)throw Error("Cannot split an empty tree");let ei=2**Math.floor(Math.log2(en));return ei<en?ei:ei/2}function hashLeaf(en){let ei=new ea.Sha256(Uint8Array.from([0]));
4return ei.update(en),ei.digest()}function hashInner(en,ei){let eo=new ea.Sha256(Uint8Array.from([1]));return eo.update(en),eo.update(ei),eo.digest()}function hashTree(en){switch(en.length){case 0:throw Error("Cannot hash empty tree");case 1:return hashLeaf(en[0]);default:{let ei=getSplitPoint(en.length),eo=hashTree(en.slice(0,ei)),ea=hashTree(en.slice(ei));return hashInner(eo,ea)}}}function hashBlock(en){if(!en.lastBlockId)throw Error("Hashing a block header with no last block ID (i.e. header at height 1) is not supported. If you need this, contributions are welcome. Please add documentation and test vectors for this case.");let ei=[(0,es.encodeVersion)(en.version),(0,es.encodeString)(en.chainId),(0,es.encodeUvarint)(en.height),(0,es.encodeTime)(en.time),(0,es.encodeBlockId)(en.lastBlockId),(0,es.encodeBytes)(en.lastCommitHash),(0,es.encodeBytes)(en.dataHash),(0,es.encodeBytes)(en.validatorsHash),(0,es.encodeBytes)(en.nextValidatorsHash),(0,es.encodeBytes)(en.consensusHash),(0,es.encodeBytes)(en.appHash),(0,es.encodeBytes)(en.lastResultsHash),(0,es.encodeBytes)(en.evidenceHash),(0,es.encodeBytes)(en.proposerAddress)];return hashTree(ei)}ei.hashTx=hashTx,ei.hashBlock=hashBlock},65355:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.Tendermint37Client=ei.VoteType=ei.broadcastTxSyncSuccess=ei.broadcastTxCommitSuccess=ei.SubscriptionEventType=ei.Method=void 0;var ea=eo(9784);Object.defineProperty(ei,"Method",{enumerable:!0,get:function(){return ea.Method}}),Object.defineProperty(ei,"SubscriptionEventType",{enumerable:!0,get:function(){return ea.SubscriptionEventType}});var es=eo(47147);Object.defineProperty(ei,"broadcastTxCommitSuccess",{enumerable:!0,get:function(){return es.broadcastTxCommitSuccess}}),Object.defineProperty(ei,"broadcastTxSyncSuccess",{enumerable:!0,get:function(){return es.broadcastTxSyncSuccess}}),Object.defineProperty(ei,"VoteType",{enumerable:!0,get:function(){return es.VoteType}});var ed=eo(93416);Object.defineProperty(ei,"Tendermint37Client",{enumerable:!0,get:function(){return ed.Tendermint37Client}})},9784:function(en,ei){"use strict";var eo,ea;function buildQuery(en){let ei=en.tags?en.tags:[],eo=ei.map(en=>`${en.key}='${en.value}'`),ea=en.raw?[en.raw]:[];return[...eo,...ea].join(" AND ")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.buildQuery=ei.SubscriptionEventType=ei.Method=void 0,function(en){en.AbciInfo="abci_info",en.AbciQuery="abci_query",en.Block="block",en.Blockchain="blockchain",en.BlockResults="block_results",en.BlockSearch="block_search",en.BroadcastTxAsync="broadcast_tx_async",en.BroadcastTxSync="broadcast_tx_sync",en.BroadcastTxCommit="broadcast_tx_commit",en.Commit="commit",en.Genesis="genesis",en.Health="health",en.NumUnconfirmedTxs="num_unconfirmed_txs",en.Status="status",en.Subscribe="subscribe",en.Tx="tx",en.TxSearch="tx_search",en.Validators="validators",en.Unsubscribe="unsubscribe"}(eo=ei.Method||(ei.Method={})),function(en){en.NewBlock="NewBlock",en.NewBlockHeader="NewBlockHeader",en.Tx="Tx"}(ea=ei.SubscriptionEventType||(ei.SubscriptionEventType={})),ei.buildQuery=buildQuery},47147:function(en,ei){"use strict";var eo;function broadcastTxSyncSuccess(en){return 0===en.code}function broadcastTxCommitSuccess(en){return 0===en.checkTx.code&&!!en.deliverTx&&0===en.deliverTx.code}Object.defineProperty(ei,"__esModule",{value:!0}),ei.VoteType=ei.broadcastTxCommitSuccess=ei.broadcastTxSyncSuccess=void 0,ei.broadcastTxSyncSuccess=broadcastTxSyncSuccess,ei.broadcastTxCommitSuccess=broadcastTxCommitSuccess,function(en){en[en.PreVote=1]="PreVote",en[en.PreCommit=2]="PreCommit"}(eo=ei.VoteType||(ei.VoteType={}))},93416:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Tendermint37Client=void 0;let eu=eo(27793),ef=eo(38443),ep=eo(40522),em=ed(eo(9784));let Tendermint37Client=class Tendermint37Client{static async connect(en){let ei;if("object"==typeof en)ei=new ef.HttpClient(en);else{let eo=en.startsWith("http://")||en.startsWith("https://");ei=eo?new ef.HttpClient(en):new ef.WebsocketClient(en)}return await this.detectVersion(ei),Tendermint37Client.create(ei)}static async create(en){return new Tendermint37Client(en)}static async detectVersion(en){let ei=(0,eu.createJsonRpcRequest)(em.Method.Status),eo=await en.execute(ei),ea=eo.result;if(!ea||!ea.node_info)throw Error("Unrecognized format for status response");let es=ea.node_info.version;
4if("string"!=typeof es)throw Error("Unrecognized version format: must be string");return es}constructor(en){this.client=en,this.p=ep.adaptor37.params,this.r=ep.adaptor37.responses}disconnect(){this.client.disconnect()}async abciInfo(){let en={method:em.Method.AbciInfo};return this.doCall(en,this.p.encodeAbciInfo,this.r.decodeAbciInfo)}async abciQuery(en){let ei={params:en,method:em.Method.AbciQuery};return this.doCall(ei,this.p.encodeAbciQuery,this.r.decodeAbciQuery)}async block(en){let ei={method:em.Method.Block,params:{height:en}};return this.doCall(ei,this.p.encodeBlock,this.r.decodeBlock)}async blockResults(en){let ei={method:em.Method.BlockResults,params:{height:en}};return this.doCall(ei,this.p.encodeBlockResults,this.r.decodeBlockResults)}async blockSearch(en){let ei={params:en,method:em.Method.BlockSearch},eo=await this.doCall(ei,this.p.encodeBlockSearch,this.r.decodeBlockSearch);return{...eo,blocks:[...eo.blocks].sort((en,ei)=>en.block.header.height-ei.block.header.height)}}async blockSearchAll(en){let ei=en.page||1,eo=[],ea=!1;for(;!ea;){let es=await this.blockSearch({...en,page:ei});eo.push(...es.blocks),eo.length<es.totalCount?ei++:ea=!0}return eo.sort((en,ei)=>en.block.header.height-ei.block.header.height),{totalCount:eo.length,blocks:eo}}async blockchain(en,ei){let eo={method:em.Method.Blockchain,params:{minHeight:en,maxHeight:ei}};return this.doCall(eo,this.p.encodeBlockchain,this.r.decodeBlockchain)}async broadcastTxSync(en){let ei={params:en,method:em.Method.BroadcastTxSync};return this.doCall(ei,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxSync)}async broadcastTxAsync(en){let ei={params:en,method:em.Method.BroadcastTxAsync};return this.doCall(ei,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxAsync)}async broadcastTxCommit(en){let ei={params:en,method:em.Method.BroadcastTxCommit};return this.doCall(ei,this.p.encodeBroadcastTx,this.r.decodeBroadcastTxCommit)}async commit(en){let ei={method:em.Method.Commit,params:{height:en}};return this.doCall(ei,this.p.encodeCommit,this.r.decodeCommit)}async genesis(){let en={method:em.Method.Genesis};return this.doCall(en,this.p.encodeGenesis,this.r.decodeGenesis)}async health(){let en={method:em.Method.Health};return this.doCall(en,this.p.encodeHealth,this.r.decodeHealth)}async numUnconfirmedTxs(){let en={method:em.Method.NumUnconfirmedTxs};return this.doCall(en,this.p.encodeNumUnconfirmedTxs,this.r.decodeNumUnconfirmedTxs)}async status(){let en={method:em.Method.Status};return this.doCall(en,this.p.encodeStatus,this.r.decodeStatus)}subscribeNewBlock(){let en={method:em.Method.Subscribe,query:{type:em.SubscriptionEventType.NewBlock}};return this.subscribe(en,this.r.decodeNewBlockEvent)}subscribeNewBlockHeader(){let en={method:em.Method.Subscribe,query:{type:em.SubscriptionEventType.NewBlockHeader}};return this.subscribe(en,this.r.decodeNewBlockHeaderEvent)}subscribeTx(en){let ei={method:em.Method.Subscribe,query:{type:em.SubscriptionEventType.Tx,raw:en}};return this.subscribe(ei,this.r.decodeTxEvent)}async tx(en){let ei={params:en,method:em.Method.Tx};return this.doCall(ei,this.p.encodeTx,this.r.decodeTx)}async txSearch(en){let ei={params:en,method:em.Method.TxSearch};return this.doCall(ei,this.p.encodeTxSearch,this.r.decodeTxSearch)}async txSearchAll(en){let ei=en.page||1,eo=[],ea=!1;for(;!ea;){let es=await this.txSearch({...en,page:ei});eo.push(...es.txs),eo.length<es.totalCount?ei++:ea=!0}return{totalCount:eo.length,txs:eo}}async validators(en){let ei={method:em.Method.Validators,params:en};return this.doCall(ei,this.p.encodeValidators,this.r.decodeValidators)}async validatorsAll(en){let ei=[],eo=1,ea=!1,es=en;for(;!ea;){let en=await this.validators({per_page:50,height:es,page:eo});ei.push(...en.validators),es=es||en.blockHeight,ei.length<en.total?eo++:ea=!0}return{blockHeight:es??0,count:ei.length,total:ei.length,validators:ei}}async doCall(en,ei,eo){let ea=ei(en),es=await this.client.execute(ea);return eo(es)}subscribe(en,ei){if(!(0,ef.instanceOfRpcStreamingClient)(this.client))throw Error("This RPC client type cannot subscribe to events");let eo=this.p.encodeSubscribe(en),ea=this.client.listen(eo);return ea.map(en=>ei(en))}};ei.Tendermint37Client=Tendermint37Client},81173:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isTendermint37Client=ei.isTendermint34Client=void 0;let ea=eo(67468),es=eo(65355);function isTendermint34Client(en){return en instanceof ea.Tendermint34Client}function isTendermint37Client(en){return en instanceof es.Tendermint37Client}ei.isTendermint34Client=isTendermint34Client,ei.isTendermint37Client=isTendermint37Client}
4,73508:function(en,ei){"use strict";var eo;Object.defineProperty(ei,"__esModule",{value:!0}),ei.BlockIdFlag=void 0,function(en){en[en.Unknown=0]="Unknown",en[en.Absent=1]="Absent",en[en.Commit=2]="Commit",en[en.Nil=3]="Nil",en[en.Unrecognized=-1]="Unrecognized"}(eo=ei.BlockIdFlag||(ei.BlockIdFlag={}))},46646:function(en,ei){"use strict";function isJsonCompatibleValue(en){return!!("string"==typeof en||"number"==typeof en||"boolean"==typeof en||null===en||isJsonCompatibleArray(en)||isJsonCompatibleDictionary(en))}function isJsonCompatibleArray(en){if(!Array.isArray(en))return!1;for(let ei of en)if(!isJsonCompatibleValue(ei))return!1;return!0}function isJsonCompatibleDictionary(en){return"object"==typeof en&&null!==en&&"[object Object]"===Object.prototype.toString.call(en)&&Object.values(en).every(isJsonCompatibleValue)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.isJsonCompatibleDictionary=ei.isJsonCompatibleArray=ei.isJsonCompatibleValue=void 0,ei.isJsonCompatibleValue=isJsonCompatibleValue,ei.isJsonCompatibleArray=isJsonCompatibleArray,ei.isJsonCompatibleDictionary=isJsonCompatibleDictionary},98956:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.makeJsonRpcId=void 0;let eo=1e4;function makeJsonRpcId(){return eo+=1}ei.makeJsonRpcId=makeJsonRpcId},6522:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.jsonRpcCode=ei.isJsonRpcSuccessResponse=ei.isJsonRpcErrorResponse=ei.parseJsonRpcSuccessResponse=ei.parseJsonRpcResponse=ei.parseJsonRpcRequest=ei.parseJsonRpcId=ei.parseJsonRpcErrorResponse=ei.JsonRpcClient=ei.makeJsonRpcId=void 0;var ea=eo(98956);Object.defineProperty(ei,"makeJsonRpcId",{enumerable:!0,get:function(){return ea.makeJsonRpcId}});var es=eo(95236);Object.defineProperty(ei,"JsonRpcClient",{enumerable:!0,get:function(){return es.JsonRpcClient}});var ed=eo(35499);Object.defineProperty(ei,"parseJsonRpcErrorResponse",{enumerable:!0,get:function(){return ed.parseJsonRpcErrorResponse}}),Object.defineProperty(ei,"parseJsonRpcId",{enumerable:!0,get:function(){return ed.parseJsonRpcId}}),Object.defineProperty(ei,"parseJsonRpcRequest",{enumerable:!0,get:function(){return ed.parseJsonRpcRequest}}),Object.defineProperty(ei,"parseJsonRpcResponse",{enumerable:!0,get:function(){return ed.parseJsonRpcResponse}}),Object.defineProperty(ei,"parseJsonRpcSuccessResponse",{enumerable:!0,get:function(){return ed.parseJsonRpcSuccessResponse}});var eu=eo(38921);Object.defineProperty(ei,"isJsonRpcErrorResponse",{enumerable:!0,get:function(){return eu.isJsonRpcErrorResponse}}),Object.defineProperty(ei,"isJsonRpcSuccessResponse",{enumerable:!0,get:function(){return eu.isJsonRpcSuccessResponse}}),Object.defineProperty(ei,"jsonRpcCode",{enumerable:!0,get:function(){return eu.jsonRpcCode}})},95236:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.JsonRpcClient=void 0;let ea=eo(97452),es=eo(38921);let JsonRpcClient=class JsonRpcClient{constructor(en){this.connection=en}async run(en){let ei=this.connection.responseStream.filter(ei=>ei.id===en.id),eo=(0,ea.firstEvent)(ei);this.connection.sendRequest(en);let ed=await eo;if((0,es.isJsonRpcErrorResponse)(ed)){let en=ed.error;throw Error(`JSON RPC error: code=${en.code}; message='${en.message}'`)}return ed}};ei.JsonRpcClient=JsonRpcClient},35499:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.parseJsonRpcResponse=ei.parseJsonRpcSuccessResponse=ei.parseJsonRpcErrorResponse=ei.parseJsonRpcRequest=ei.parseJsonRpcId=void 0;let ea=eo(46646);function parseJsonRpcId(en){if(!(0,ea.isJsonCompatibleDictionary)(en))throw Error("Data must be JSON compatible dictionary");let ei=en.id;return"number"!=typeof ei&&"string"!=typeof ei?null:ei}function parseJsonRpcRequest(en){if(!(0,ea.isJsonCompatibleDictionary)(en))throw Error("Data must be JSON compatible dictionary");if("2.0"!==en.jsonrpc)throw Error(`Got unexpected jsonrpc version: ${en.jsonrpc}`);let ei=parseJsonRpcId(en);if(null===ei)throw Error("Invalid id field");let eo=en.method;if("string"!=typeof eo)throw Error("Invalid method field");if(!(0,ea.isJsonCompatibleArray)(en.params)&&!(0,ea.isJsonCompatibleDictionary)(en.params))throw Error("Invalid params field");return{jsonrpc:"2.0",id:ei,method:eo,params:en.params}}function parseError(en){let ei;if("number"!=typeof en.code)throw Error("Error property 'code' is not a number");if("string"!=typeof en.message)throw Error("Error property 'message' is not a string");if(void 0===en.data)ei=void 0;else if((0,ea.isJsonCompatibleValue)(en.data))ei=en.data;else throw Error("Error property 'data' is defined but not a JSON compatible value.");return{code:en.code,message:en.message,...void 0!==ei?{data:ei}:{}}}function parseJsonRpcErrorResponse(en){if(!(0,ea.isJsonCompatibleDictionary)(en))throw Error("Data must be JSON compatible dictionary");
4if("2.0"!==en.jsonrpc)throw Error(`Got unexpected jsonrpc version: ${JSON.stringify(en)}`);let ei=en.id;if("number"!=typeof ei&&"string"!=typeof ei&&null!==ei)throw Error("Invalid id field");if(void 0===en.error||!(0,ea.isJsonCompatibleDictionary)(en.error))throw Error("Invalid error field");return{jsonrpc:"2.0",id:ei,error:parseError(en.error)}}function parseJsonRpcSuccessResponse(en){if(!(0,ea.isJsonCompatibleDictionary)(en))throw Error("Data must be JSON compatible dictionary");if("2.0"!==en.jsonrpc)throw Error(`Got unexpected jsonrpc version: ${JSON.stringify(en)}`);let ei=en.id;if("number"!=typeof ei&&"string"!=typeof ei)throw Error("Invalid id field");if(void 0===en.result)throw Error("Invalid result field");let eo=en.result;return{jsonrpc:"2.0",id:ei,result:eo}}function parseJsonRpcResponse(en){let ei;try{ei=parseJsonRpcErrorResponse(en)}catch(eo){ei=parseJsonRpcSuccessResponse(en)}return ei}ei.parseJsonRpcId=parseJsonRpcId,ei.parseJsonRpcRequest=parseJsonRpcRequest,ei.parseJsonRpcErrorResponse=parseJsonRpcErrorResponse,ei.parseJsonRpcSuccessResponse=parseJsonRpcSuccessResponse,ei.parseJsonRpcResponse=parseJsonRpcResponse},38921:function(en,ei){"use strict";function isJsonRpcErrorResponse(en){return"object"==typeof en.error}function isJsonRpcSuccessResponse(en){return!isJsonRpcErrorResponse(en)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.jsonRpcCode=ei.isJsonRpcSuccessResponse=ei.isJsonRpcErrorResponse=void 0,ei.isJsonRpcErrorResponse=isJsonRpcErrorResponse,ei.isJsonRpcSuccessResponse=isJsonRpcSuccessResponse,ei.jsonRpcCode={parseError:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internalError:-32603,serverError:{default:-32e3}}},30601:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.concat=void 0;let ea=eo(43813);function concat(...en){let ei=[],eo=[],es=new Set,ed=0;function reset(){for(;ei.length>0;){let en=ei.shift();en.unsubscribe()}eo.length=0,es.clear(),ed=0}let eu={start:ea=>{function emitAllQueuesEvents(en){for(;;){let ei=eo[en].shift();if(void 0===ei)return;ea.next(ei)}}function isDone(){return ed>=en.length}if(en.forEach(en=>eo.push([])),isDone()){ea.complete();return}en.forEach((en,eu)=>{ei.push(en.subscribe({next:en=>{eu===ed?ea.next(en):eo[eu].push(en)},complete:()=>{for(es.add(eu);es.has(ed);)emitAllQueuesEvents(ed),ed++;isDone()?ea.complete():emitAllQueuesEvents(ed)},error:en=>{ea.error(en),reset()}}))})},stop:()=>{reset()}};return ea.Stream.create(eu)}ei.concat=concat},29537:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.DefaultValueProducer=void 0;let DefaultValueProducer=class DefaultValueProducer{get value(){return this.internalValue}constructor(en,ei){this.callbacks=ei,this.internalValue=en}update(en){this.internalValue=en,this.listener&&this.listener.next(en)}error(en){this.listener&&this.listener.error(en)}start(en){this.listener=en,en.next(this.internalValue),this.callbacks&&this.callbacks.onStarted()}stop(){this.callbacks&&this.callbacks.onStop(),this.listener=void 0}};ei.DefaultValueProducer=DefaultValueProducer},83301:function(en,ei){"use strict";function dropDuplicates(en){let operand=ei=>{let eo=new Set,ea=ei.filter(ei=>!eo.has(en(ei))).debug(ei=>eo.add(en(ei)));return ea};return operand}Object.defineProperty(ei,"__esModule",{value:!0}),ei.dropDuplicates=void 0,ei.dropDuplicates=dropDuplicates},97452:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__exportStar||function(en,ei){for(var eo in en)"default"===eo||Object.prototype.hasOwnProperty.call(ei,eo)||ea(ei,en,eo)};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueAndUpdates=ei.toListPromise=ei.fromListPromise=ei.firstEvent=ei.dropDuplicates=ei.DefaultValueProducer=ei.concat=void 0;var ed=eo(30601);Object.defineProperty(ei,"concat",{enumerable:!0,get:function(){return ed.concat}});var eu=eo(29537);Object.defineProperty(ei,"DefaultValueProducer",{enumerable:!0,get:function(){return eu.DefaultValueProducer}});var ef=eo(83301);Object.defineProperty(ei,"dropDuplicates",{enumerable:!0,get:function(){return ef.dropDuplicates}});var ep=eo(63898);Object.defineProperty(ei,"firstEvent",{enumerable:!0,get:function(){return ep.firstEvent}}),Object.defineProperty(ei,"fromListPromise",{enumerable:!0,get:function(){return ep.fromListPromise}}),Object.defineProperty(ei,"toListPromise",{enumerable:!0,get:function(){return ep.toListPromise}}),es(eo(87876),ei);var em=eo(94851);Object.defineProperty(ei,"ValueAndUpdates",{enumerable:!0,get:function(){return em.ValueAndUpdates}})},63898:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.firstEvent=ei.toListPromise=ei.fromListPromise=void 0;let ea=eo(43813);function fromListPromise(en){let ei={start:ei=>{en.then(en=>{for(let eo of en)ei.next(eo);ei.complete()}).catch(en=>ei.error(en))},stop:()=>{}};return ea.Stream.create(ei)}async function toListPromise(en,ei){return new Promise((eo,ea)=>
4{if(0===ei){eo([]);return}let es=[];en.take(ei).subscribe({next:en=>{es.push(en),es.length===ei&&eo(es)},complete:()=>{ea(`Stream completed before all events could be collected. Collected ${es.length}, expected ${ei}`)},error:en=>ea(en)})})}async function firstEvent(en){return(await toListPromise(en,1))[0]}ei.fromListPromise=fromListPromise,ei.toListPromise=toListPromise,ei.firstEvent=firstEvent},87876:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.lastValue=ei.asArray=ei.countStream=ei.Reducer=void 0;let Reducer=class Reducer{constructor(en,ei,eo){this.stream=en,this.reducer=ei,this.state=eo,this.completed=new Promise((en,ei)=>{let eo=this.stream.subscribe({next:en=>{this.state=this.reducer(this.state,en)},complete:()=>{en(),eo.unsubscribe()},error:en=>{ei(en),eo.unsubscribe()}})})}value(){return this.state}async finished(){return this.completed}};function increment(en,ei){return en+1}function countStream(en){return new Reducer(en,increment,0)}function append(en,ei){return[...en,ei]}function asArray(en){return new Reducer(en,append,[])}function last(en,ei){return ei}function lastValue(en){return new Reducer(en,last,void 0)}ei.Reducer=Reducer,ei.countStream=countStream,ei.asArray=asArray,ei.lastValue=lastValue},94851:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValueAndUpdates=void 0;let ea=eo(43813);let ValueAndUpdates=class ValueAndUpdates{get value(){return this.producer.value}constructor(en){this.producer=en,this.updates=ea.MemoryStream.createWithMemory(this.producer)}async waitFor(en){let ei="function"==typeof en?en:ei=>ei===en;return new Promise((en,eo)=>{let ea=this.updates.subscribe({next:eo=>{ei(eo)&&(en(eo),setTimeout(()=>ea.unsubscribe(),0))},complete:()=>{ea.unsubscribe(),eo("Update stream completed without expected value")},error:en=>{eo(en)}})})}};ei.ValueAndUpdates=ValueAndUpdates},91057:function(en,ei){"use strict";function arrayContentEquals(en,ei){if(en.length!==ei.length)return!1;for(let eo=0;eo<en.length;++eo)if(en[eo]!==ei[eo])return!1;return!0}function arrayContentStartsWith(en,ei){if(en.length<ei.length)return!1;for(let eo=0;eo<ei.length;++eo)if(en[eo]!==ei[eo])return!1;return!0}Object.defineProperty(ei,"__esModule",{value:!0}),ei.arrayContentStartsWith=ei.arrayContentEquals=void 0,ei.arrayContentEquals=arrayContentEquals,ei.arrayContentStartsWith=arrayContentStartsWith},34427:function(en,ei){"use strict";function assert(en,ei){if(!en)throw Error(ei||"condition is not truthy")}function assertDefined(en,ei){if(void 0===en)throw Error(ei??"value is undefined")}function assertDefinedAndNotNull(en,ei){if(null==en)throw Error(ei??"value is undefined or null")}Object.defineProperty(ei,"__esModule",{value:!0}),ei.assertDefinedAndNotNull=ei.assertDefined=ei.assert=void 0,ei.assert=assert,ei.assertDefined=assertDefined,ei.assertDefinedAndNotNull=assertDefinedAndNotNull},85553:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.isUint8Array=ei.isNonNullObject=ei.isDefined=ei.sleep=ei.assertDefinedAndNotNull=ei.assertDefined=ei.assert=ei.arrayContentStartsWith=ei.arrayContentEquals=void 0;var ea=eo(91057);Object.defineProperty(ei,"arrayContentEquals",{enumerable:!0,get:function(){return ea.arrayContentEquals}}),Object.defineProperty(ei,"arrayContentStartsWith",{enumerable:!0,get:function(){return ea.arrayContentStartsWith}});var es=eo(34427);Object.defineProperty(ei,"assert",{enumerable:!0,get:function(){return es.assert}}),Object.defineProperty(ei,"assertDefined",{enumerable:!0,get:function(){return es.assertDefined}}),Object.defineProperty(ei,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return es.assertDefinedAndNotNull}});var ed=eo(73029);Object.defineProperty(ei,"sleep",{enumerable:!0,get:function(){return ed.sleep}});var eu=eo(95012);Object.defineProperty(ei,"isDefined",{enumerable:!0,get:function(){return eu.isDefined}}),Object.defineProperty(ei,"isNonNullObject",{enumerable:!0,get:function(){return eu.isNonNullObject}}),Object.defineProperty(ei,"isUint8Array",{enumerable:!0,get:function(){return eu.isUint8Array}})},73029:function(en,ei){"use strict";async function sleep(en){return new Promise(ei=>setTimeout(ei,en))}Object.defineProperty(ei,"__esModule",{value:!0}),ei.sleep=void 0,ei.sleep=sleep},95012:function(en,ei,eo){"use strict";var ea=eo(48764).Buffer;function isNonNullObject(en){return"object"==typeof en&&null!==en}function isUint8Array(en){return!(!isNonNullObject(en)||"[object Uint8Array]"!==Object.prototype.toString.call(en)||void 0!==ea&&void 0!==ea.isBuffer&&ea.isBuffer(en))}function isDefined(en){return void 0!==en}Object.defineProperty(ei,"__esModule",{value:!0}),ei.isDefined=ei.isUint8Array=ei.isNonNullObject=void 0,ei.isNonNullObject=isNonNullObject,ei.isUint8Array=isUint8Array,ei.isDefined=isDefined},95851:function(en,ei,eo){"use strict";eo.d(ei,{i:function(){return ea}});let ea="abi/5.7.0"},84243:function(en,ei,eo){"use strict";eo.d(ei,{R:function(){return AbiCoder},$:function(){return ew}});var ea=eo(16441),es=eo(6881),ed=eo(1581),eu=eo(95851),ef=eo(61184),ep=eo(52004);let AddressCoder=class AddressCoder extends ef.XI{constructor(en){super("address","address",en,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(en,ei){try{ei=(0,ep.getAddress)(ei)}catch(en){this._throwError(en.message,ei)}return en.writeValue(ei)}decode(en){return(0,ep.getAddress)((0,ea.hexZeroPad)(en.readValue().toHexString(),20))}};let AnonymousCoder=class AnonymousCoder extends ef.XI{constructor(en){super(en.name,en.type,void 0,en.dynamic),this.coder=en}
4defaultValue(){return this.coder.defaultValue()}encode(en,ei){return this.coder.encode(en,ei)}decode(en){return this.coder.decode(en)}};let em=new ed.Logger(eu.i);function pack(en,ei,eo){let ea=null;if(Array.isArray(eo))ea=eo;else if(eo&&"object"==typeof eo){let en={};ea=ei.map(ei=>{let ea=ei.localName;return ea||em.throwError("cannot encode object for signature with missing names",ed.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:ei,value:eo}),en[ea]&&em.throwError("cannot encode object for signature with duplicate names",ed.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:ei,value:eo}),en[ea]=!0,eo[ea]})}else em.throwArgumentError("invalid tuple value","tuple",eo);ei.length!==ea.length&&em.throwArgumentError("types/value length mismatch","tuple",eo);let es=new ef.QV(en.wordSize),eu=new ef.QV(en.wordSize),ep=[];return ei.forEach((en,ei)=>{let eo=ea[ei];if(en.dynamic){let ei=eu.length;en.encode(eu,eo);let ea=es.writeUpdatableValue();ep.push(en=>{ea(en+ei)})}else en.encode(es,eo)}),ep.forEach(en=>{en(es.length)}),en.appendWriter(es)+en.appendWriter(eu)}function unpack(en,ei){let eo=[],ea=en.subReader(0);ei.forEach(ei=>{let es=null;if(ei.dynamic){let eo=en.readValue(),eu=ea.subReader(eo.toNumber());try{es=ei.decode(eu)}catch(en){if(en.code===ed.Logger.errors.BUFFER_OVERRUN)throw en;(es=en).baseType=ei.name,es.name=ei.localName,es.type=ei.type}}else try{es=ei.decode(en)}catch(en){if(en.code===ed.Logger.errors.BUFFER_OVERRUN)throw en;(es=en).baseType=ei.name,es.name=ei.localName,es.type=ei.type}void 0!=es&&eo.push(es)});let es=ei.reduce((en,ei)=>{let eo=ei.localName;return eo&&(en[eo]||(en[eo]=0),en[eo]++),en},{});ei.forEach((en,ei)=>{let ea=en.localName;if(!ea||1!==es[ea]||("length"===ea&&(ea="_length"),null!=eo[ea]))return;let ed=eo[ei];ed instanceof Error?Object.defineProperty(eo,ea,{enumerable:!0,get:()=>{throw ed}}):eo[ea]=ed});for(let en=0;en<eo.length;en++){let ei=eo[en];ei instanceof Error&&Object.defineProperty(eo,en,{enumerable:!0,get:()=>{throw ei}})}return Object.freeze(eo)}let ArrayCoder=class ArrayCoder extends ef.XI{constructor(en,ei,eo){let ea=en.type+"["+(ei>=0?ei:"")+"]",es=-1===ei||en.dynamic;super("array",ea,eo,es),this.coder=en,this.length=ei}defaultValue(){let en=this.coder.defaultValue(),ei=[];for(let eo=0;eo<this.length;eo++)ei.push(en);return ei}encode(en,ei){Array.isArray(ei)||this._throwError("expected array value",ei);let eo=this.length;-1===eo&&(eo=ei.length,en.writeValue(ei.length)),em.checkArgumentCount(ei.length,eo,"coder array"+(this.localName?" "+this.localName:""));let ea=[];for(let en=0;en<ei.length;en++)ea.push(this.coder);return pack(en,ea,ei)}decode(en){let ei=this.length;-1===ei&&32*(ei=en.readValue().toNumber())>en._data.length&&em.throwError("insufficient data length",ed.Logger.errors.BUFFER_OVERRUN,{length:en._data.length,count:ei});let eo=[];for(let en=0;en<ei;en++)eo.push(new AnonymousCoder(this.coder));return en.coerce(this.name,unpack(en,eo))}};let BooleanCoder=class BooleanCoder extends ef.XI{constructor(en){super("bool","bool",en,!1)}defaultValue(){return!1}encode(en,ei){return en.writeValue(ei?1:0)}decode(en){return en.coerce(this.type,!en.readValue().isZero())}};let DynamicBytesCoder=class DynamicBytesCoder extends ef.XI{constructor(en,ei){super(en,en,ei,!0)}defaultValue(){return"0x"}encode(en,ei){return ei=(0,ea.arrayify)(ei),en.writeValue(ei.length)+en.writeBytes(ei)}decode(en){return en.readBytes(en.readValue().toNumber(),!0)}};let BytesCoder=class BytesCoder extends DynamicBytesCoder{constructor(en){super("bytes",en)}decode(en){return en.coerce(this.name,(0,ea.hexlify)(super.decode(en)))}};let FixedBytesCoder=class FixedBytesCoder extends ef.XI{constructor(en,ei){let eo="bytes"+String(en);super(eo,eo,ei,!1),this.size=en}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(en,ei){let eo=(0,ea.arrayify)(ei);return eo.length!==this.size&&this._throwError("incorrect data length",ei),en.writeBytes(eo)}decode(en){return en.coerce(this.name,(0,ea.hexlify)(en.readBytes(this.size)))}};let NullCoder=class NullCoder extends ef.XI{constructor(en){super("null","",en,!1)}defaultValue(){return null}encode(en,ei){return null!=ei&&this._throwError("not null",ei),en.writeBytes([])}decode(en){return en.readBytes(0),en.coerce(this.name,null)}};var eg=eo(2593),ey=eo(21046);let NumberCoder=class NumberCoder extends ef.XI{constructor(en,ei,eo){let ea=(ei?"int":"uint")+8*en;super(ea,ea,eo,!1),this.size=en,this.signed=ei}defaultValue(){return 0}encode(en,ei){let eo=eg.O$.from(ei),ea=ey.Bz.mask(8*en.wordSize);if(this.signed){let en=ea.mask(8*this.size-1);(eo.gt(en)||eo.lt(en.add(ey.fh).mul(ey.tL)))&&this._throwError("value out-of-bounds",ei)}else(eo.lt(ey._Y)||eo.gt(ea.mask(8*this.size)))&&this._throwError("value out-of-bounds",ei);return eo=eo.toTwos(8*this.size).mask(8*this.size),this.signed&&(eo=eo.fromTwos(8*this.size).toTwos(8*en.wordSize)),en.writeValue(eo)}decode(en){let ei=en.readValue().mask(8*this.size);return this.signed&&(ei=ei.fromTwos(8*this.size)),en.coerce(this.name,ei)}};var eb=eo(29251);let StringCoder=class StringCoder extends DynamicBytesCoder{constructor(en){super("string",en)}defaultValue(){return""}encode(en,ei){return super.encode(en,(0,eb.Y0)(ei))}decode(en){return(0,eb.ZN)(super.decode(en))}};let TupleCoder=class TupleCoder extends ef.XI{constructor(en,ei){let eo=!1,ea=[];
4en.forEach(en=>{en.dynamic&&(eo=!0),ea.push(en.type)});let es="tuple("+ea.join(",")+")";super("tuple",es,ei,eo),this.coders=en}defaultValue(){let en=[];this.coders.forEach(ei=>{en.push(ei.defaultValue())});let ei=this.coders.reduce((en,ei)=>{let eo=ei.localName;return eo&&(en[eo]||(en[eo]=0),en[eo]++),en},{});return this.coders.forEach((eo,ea)=>{let es=eo.localName;es&&1===ei[es]&&("length"===es&&(es="_length"),null==en[es]&&(en[es]=en[ea]))}),Object.freeze(en)}encode(en,ei){return pack(en,this.coders,ei)}decode(en){return en.coerce(this.name,unpack(en,this.coders))}};var eS=eo(11388);let e_=new ed.Logger(eu.i),eR=new RegExp(/^bytes([0-9]*)$/),eA=new RegExp(/^(u?int)([0-9]*)$/);let AbiCoder=class AbiCoder{constructor(en){(0,es.defineReadOnly)(this,"coerceFunc",en||null)}_getCoder(en){switch(en.baseType){case"address":return new AddressCoder(en.name);case"bool":return new BooleanCoder(en.name);case"string":return new StringCoder(en.name);case"bytes":return new BytesCoder(en.name);case"array":return new ArrayCoder(this._getCoder(en.arrayChildren),en.arrayLength,en.name);case"tuple":return new TupleCoder((en.components||[]).map(en=>this._getCoder(en)),en.name);case"":return new NullCoder(en.name)}let ei=en.type.match(eA);if(ei){let eo=parseInt(ei[2]||"256");return(0===eo||eo>256||eo%8!=0)&&e_.throwArgumentError("invalid "+ei[1]+" bit length","param",en),new NumberCoder(eo/8,"int"===ei[1],en.name)}if(ei=en.type.match(eR)){let eo=parseInt(ei[1]);return(0===eo||eo>32)&&e_.throwArgumentError("invalid bytes length","param",en),new FixedBytesCoder(eo,en.name)}return e_.throwArgumentError("invalid type","type",en.type)}_getWordSize(){return 32}_getReader(en,ei){return new ef.Ej(en,this._getWordSize(),this.coerceFunc,ei)}_getWriter(){return new ef.QV(this._getWordSize())}getDefaultValue(en){let ei=en.map(en=>this._getCoder(eS._R.from(en))),eo=new TupleCoder(ei,"_");return eo.defaultValue()}encode(en,ei){en.length!==ei.length&&e_.throwError("types/values length mismatch",ed.Logger.errors.INVALID_ARGUMENT,{count:{types:en.length,values:ei.length},value:{types:en,values:ei}});let eo=en.map(en=>this._getCoder(eS._R.from(en))),ea=new TupleCoder(eo,"_"),es=this._getWriter();return ea.encode(es,ei),es.data}decode(en,ei,eo){let es=en.map(en=>this._getCoder(eS._R.from(en))),ed=new TupleCoder(es,"_");return ed.decode(this._getReader((0,ea.arrayify)(ei),eo))}};let ew=new AbiCoder},61184:function(en,ei,eo){"use strict";eo.d(ei,{BR:function(){return checkResultErrors},Ej:function(){return Reader},QV:function(){return Writer},XI:function(){return Coder}});var ea=eo(16441),es=eo(2593),ed=eo(6881),eu=eo(1581),ef=eo(95851);let ep=new eu.Logger(ef.i);function checkResultErrors(en){let ei=[],checkErrors=function(en,eo){if(Array.isArray(eo))for(let ea in eo){let es=en.slice();es.push(ea);try{checkErrors(es,eo[ea])}catch(en){ei.push({path:es,error:en})}}};return checkErrors([],en),ei}let Coder=class Coder{constructor(en,ei,eo,ea){this.name=en,this.type=ei,this.localName=eo,this.dynamic=ea}_throwError(en,ei){ep.throwArgumentError(en,this.localName,ei)}};let Writer=class Writer{constructor(en){(0,ed.defineReadOnly)(this,"wordSize",en||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(en)}get data(){return(0,ea.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(en){return this._data.push(en),this._dataLength+=en.length,en.length}appendWriter(en){return this._writeData((0,ea.concat)(en._data))}writeBytes(en){let ei=(0,ea.arrayify)(en),eo=ei.length%this.wordSize;return eo&&(ei=(0,ea.concat)([ei,this._padding.slice(eo)])),this._writeData(ei)}_getValue(en){let ei=(0,ea.arrayify)(es.O$.from(en));return ei.length>this.wordSize&&ep.throwError("value out-of-bounds",eu.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:ei.length}),ei.length%this.wordSize&&(ei=(0,ea.concat)([this._padding.slice(ei.length%this.wordSize),ei])),ei}writeValue(en){return this._writeData(this._getValue(en))}writeUpdatableValue(){let en=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,ei=>{this._data[en]=this._getValue(ei)}}};let Reader=class Reader{constructor(en,ei,eo,es){(0,ed.defineReadOnly)(this,"_data",(0,ea.arrayify)(en)),(0,ed.defineReadOnly)(this,"wordSize",ei||32),(0,ed.defineReadOnly)(this,"_coerceFunc",eo),(0,ed.defineReadOnly)(this,"allowLoose",es),this._offset=0}get data(){return(0,ea.hexlify)(this._data)}get consumed(){return this._offset}static coerce(en,ei){let eo=en.match("^u?int([0-9]+)$");return eo&&48>=parseInt(eo[1])&&(ei=ei.toNumber()),ei}coerce(en,ei){return this._coerceFunc?this._coerceFunc(en,ei):Reader.coerce(en,ei)}_peekBytes(en,ei,eo){let ea=Math.ceil(ei/this.wordSize)*this.wordSize;return this._offset+ea>this._data.length&&(this.allowLoose&&eo&&this._offset+ei<=this._data.length?ea=ei:ep.throwError("data out-of-bounds",eu.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+ea})),this._data.slice(this._offset,this._offset+ea)}subReader(en){return new Reader(this._data.slice(this._offset+en),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(en,ei){let eo=this._peekBytes(0,en,!!ei);return this._offset+=eo.length,eo.slice(0,en)}readValue(){return es.O$.from(this.readBytes(this.wordSize))}}},11388:function(en,ei,eo){"use strict";eo.d(ei,{HY:function(){return Fragment},IC:function(){return ErrorFragment},QV:function(){return EventFragment},Xg:function(){return ConstructorFragment},YW:function(){return FunctionFragment},_R:function(){return ParamType},pc:function(){return ey}});var ea=eo(2593),es=eo(6881),ed=eo(1581),eu=eo(95851);let ef=new ed.Logger(eu.i),ep={},em={calldata:!0,memory:!0,storage:!0},eg={calldata:!0,memory:!0};function checkModifier(en,ei){if("bytes"===en||"string"===en){if(em[ei])return!0}else if("address"===en){if("payable"===ei)return!0}else if((en.indexOf("[")>=0||"tuple"===en)&&eg[ei])return!0;return(em[ei]||"payable"===ei)&&ef.throwArgumentError("invalid modifier","name",ei),!1}function parseParamType(en,ei){let eo=en;function throwError(ei){ef.throwArgumentError(`unexpected character at position ${ei}`,"param",en)}function newNode(en){let eo={type:"",name:"",parent:en,state:{allowType:!0}};return ei&&(eo.indexed=!1),eo}en=en.replace(/\s/g," ");let ea={type:"",name:"",state:{allowType:!0}},es=ea;for(let eo=0;eo<en.length;eo++){let ea=en[eo];switch(ea){case"(":es.state.allowType&&""===es.type?es.type="tuple":es.state.allowParams||throwError(eo),es.state.allowType=!1,es.type=verifyType(es.type),es.components=[newNode(es)],es=es.components[0];break;case")":delete es.state,"indexed"===es.name&&(ei||throwError(eo),es.indexed=!0,es.name=""),checkModifier(es.type,es.name)&&(es.name=""),es.type=verifyType(es.type);let ed=es;(es=es.parent)||throwError(eo),delete ed.parent,es.state.allowParams=!1,es.state.allowName=!0,es.state.allowArray=!0;break;case",":delete es.state,"indexed"===es.name&&(ei||throwError(eo),es.indexed=!0,es.name=""),checkModifier(es.type,es.name)&&(es.name=""),es.type=verifyType(es.type);let eu=newNode(es.parent);es.parent.components.push(eu),delete es.parent,es=eu;break;case" ":es.state.allowType&&""!==es.type&&(es.type=verifyType(es.type),delete es.state.allowType,es.state.allowName=!0,es.state.allowParams=!0),es.state.allowName&&""!==es.name&&("indexed"===es.name?(ei||throwError(eo),es.indexed&&throwError(eo),es.indexed=!0,es.name=""):checkModifier(es.type,es.name)?es.name="":es.state.allowName=!1);break;case"[":es.state.allowArray||throwError(eo),es.type+=ea,es.state.allowArray=!1,es.state.allowName=!1,es.state.readArray=!0;break;case"]":es.state.readArray||throwError(eo),es.type+=ea,es.state.readArray=!1,es.state.allowArray=!0,es.state.allowName=!0;break;default:es.state.allowType?(es.type+=ea,es.state.allowParams=!0,es.state.allowArray=!0):es.state.allowName?(es.name+=ea,delete es.state.allowArray):es.state.readArray?es.type+=ea:throwError(eo)}}return es.parent&&ef.throwArgumentError("unexpected eof","param",en),delete ea.state,"indexed"===es.name?(ei||throwError(eo.length-7),es.indexed&&throwError(eo.length-7),es.indexed=!0,es.name=""):checkModifier(es.type,es.name)&&(es.name=""),ea.type=verifyType(ea.type),ea}function populate(en,ei){for(let eo in ei)(0,es.defineReadOnly)(en,eo,ei[eo])}let ey=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),eb=new RegExp(/^(.*)\[([0-9]*)\]$/);let ParamType=class ParamType{constructor(en,ei){en!==ep&&ef.throwError("use fromString",ed.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),populate(this,ei);let eo=this.type.match(eb);eo?populate(this,{arrayLength:parseInt(eo[2]||"-1"),arrayChildren:ParamType.fromObject({type:eo[1],components:this.components}),baseType:"array"}):populate(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.t
4ype}),this._isParamType=!0,Object.freeze(this)}format(en){if(en||(en=ey.sighash),ey[en]||ef.throwArgumentError("invalid format type","format",en),en===ey.json){let ei={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(ei.indexed=this.indexed),this.components&&(ei.components=this.components.map(ei=>JSON.parse(ei.format(en)))),JSON.stringify(ei)}let ei="";return"array"===this.baseType?ei+=this.arrayChildren.format(en)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(en!==ey.sighash&&(ei+=this.type),ei+="("+this.components.map(ei=>ei.format(en)).join(en===ey.full?", ":",")+")"):ei+=this.type,en!==ey.sighash&&(!0===this.indexed&&(ei+=" indexed"),en===ey.full&&this.name&&(ei+=" "+this.name)),ei}static from(en,ei){return"string"==typeof en?ParamType.fromString(en,ei):ParamType.fromObject(en)}static fromObject(en){return ParamType.isParamType(en)?en:new ParamType(ep,{name:en.name||null,type:verifyType(en.type),indexed:null==en.indexed?null:!!en.indexed,components:en.components?en.components.map(ParamType.fromObject):null})}static fromString(en,ei){return function(en){return ParamType.fromObject({name:en.name,type:en.type,indexed:en.indexed,components:en.components})}(parseParamType(en,!!ei))}static isParamType(en){return!!(null!=en&&en._isParamType)}};function parseParams(en,ei){return splitNesting(en).map(en=>ParamType.fromString(en,ei))}let Fragment=class Fragment{constructor(en,ei){en!==ep&&ef.throwError("use a static from method",ed.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),populate(this,ei),this._isFragment=!0,Object.freeze(this)}static from(en){return Fragment.isFragment(en)?en:"string"==typeof en?Fragment.fromString(en):Fragment.fromObject(en)}static fromObject(en){if(Fragment.isFragment(en))return en;switch(en.type){case"function":return FunctionFragment.fromObject(en);case"event":return EventFragment.fromObject(en);case"constructor":return ConstructorFragment.fromObject(en);case"error":return ErrorFragment.fromObject(en);case"fallback":case"receive":return null}return ef.throwArgumentError("invalid fragment object","value",en)}static fromString(en){return"event"===(en=(en=(en=en.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?EventFragment.fromString(en.substring(5).trim()):"function"===en.split(" ")[0]?FunctionFragment.fromString(en.substring(8).trim()):"constructor"===en.split("(")[0].trim()?ConstructorFragment.fromString(en.trim()):"error"===en.split(" ")[0]?ErrorFragment.fromString(en.substring(5).trim()):ef.throwArgumentError("unsupported fragment","value",en)}static isFragment(en){return!!(en&&en._isFragment)}};let EventFragment=class EventFragment extends Fragment{format(en){if(en||(en=ey.sighash),ey[en]||ef.throwArgumentError("invalid format type","format",en),en===ey.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(ei=>JSON.parse(ei.format(en)))});let ei="";return en!==ey.sighash&&(ei+="event "),ei+=this.name+"("+this.inputs.map(ei=>ei.format(en)).join(en===ey.full?", ":",")+") ",en!==ey.sighash&&this.anonymous&&(ei+="anonymous "),ei.trim()}static from(en){return"string"==typeof en?EventFragment.fromString(en):EventFragment.fromObject(en)}static fromObject(en){if(EventFragment.isEventFragment(en))return en;"event"!==en.type&&ef.throwArgumentError("invalid event object","value",en);let ei={name:verifyIdentifier(en.name),anonymous:en.anonymous,inputs:en.inputs?en.inputs.map(ParamType.fromObject):[],type:"event"};return new EventFragment(ep,ei)}static fromString(en){let ei=en.match(e_);ei||ef.throwArgumentError("invalid event string","value",en);let eo=!1;return ei[3].split(" ").forEach(en=>{switch(en.trim()){case"anonymous":eo=!0;break;case"":break;default:ef.warn("unknown modifier: "+en)}}),EventFragment.fromObject({name:ei[1].trim(),anonymous:eo,inputs:parseParams(ei[2],!0),type:"event"})}static isEventFragment(en){return en&&en._isFragment&&"event"===en.type}};function parseGas(en,ei){ei.gas=null;let eo=en.split("@");return 1!==eo.length?(eo.length>2&&ef.throwArgumentError("invalid human-readable ABI signature","value",en),eo[1].match(/^[0-9]+$/)||ef.throwArgumentError("invalid human-readable ABI signature gas","value",en),ei.gas=ea.O$.from(eo[1]),eo[0]):en}
vendor: 4,474 bytes, line 4
4function parseModifiers(en,ei){ei.constant=!1,ei.payable=!1,ei.stateMutability="nonpayable",en.split(" ").forEach(en=>{switch(en.trim()){case"constant":ei.constant=!0;break;case"payable":ei.payable=!0,ei.stateMutability="payable";break;case"nonpayable":ei.payable=!1,ei.stateMutability="nonpayable";break;case"pure":ei.constant=!0,ei.stateMutability="pure";break;case"view":ei.constant=!0,ei.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+en)}})}function verifyState(en){let ei={constant:!1,payable:!0,stateMutability:"payable"};return null!=en.stateMutability?(ei.stateMutability=en.stateMutability,ei.constant="view"===ei.stateMutability||"pure"===ei.stateMutability,null!=en.constant&&!!en.constant!==ei.constant&&ef.throwArgumentError("cannot have constant function with mutability "+ei.stateMutability,"value",en),ei.payable="payable"===ei.stateMutability,null!=en.payable&&!!en.payable!==ei.payable&&ef.throwArgumentError("cannot have payable function with mutability "+ei.stateMutability,"value",en)):null!=en.payable?(ei.payable=!!en.payable,null!=en.constant||ei.payable||"constructor"===en.type||ef.throwArgumentError("unable to determine stateMutability","value",en),ei.constant=!!en.constant,ei.constant?ei.stateMutability="view":ei.stateMutability=ei.payable?"payable":"nonpayable",ei.payable&&ei.constant&&ef.throwArgumentError("cannot have constant payable function","value",en)):null!=en.constant?(ei.constant=!!en.constant,ei.payable=!ei.constant,ei.stateMutability=ei.constant?"view":"payable"):"constructor"!==en.type&&ef.throwArgumentError("unable to determine stateMutability","value",en),ei}let ConstructorFragment=class ConstructorFragment extends Fragment{format(en){if(en||(en=ey.sighash),ey[en]||ef.throwArgumentError("invalid format type","format",en),en===ey.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(ei=>JSON.parse(ei.format(en)))});en===ey.sighash&&ef.throwError("cannot format a constructor for sighash",ed.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let ei="constructor("+this.inputs.map(ei=>ei.format(en)).join(en===ey.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(ei+=this.stateMutability+" "),ei.trim()}static from(en){return"string"==typeof en?ConstructorFragment.fromString(en):ConstructorFragment.fromObject(en)}static fromObject(en){if(ConstructorFragment.isConstructorFragment(en))return en;"constructor"!==en.type&&ef.throwArgumentError("invalid constructor object","value",en);let ei=verifyState(en);ei.constant&&ef.throwArgumentError("constructor cannot be constant","value",en);let eo={name:null,type:en.type,inputs:en.inputs?en.inputs.map(ParamType.fromObject):[],payable:ei.payable,stateMutability:ei.stateMutability,gas:en.gas?ea.O$.from(en.gas):null};return new ConstructorFragment(ep,eo)}static fromString(en){let ei={type:"constructor"},eo=(en=parseGas(en,ei)).match(e_);return eo&&"constructor"===eo[1].trim()||ef.throwArgumentError("invalid constructor string","value",en),ei.inputs=parseParams(eo[2].trim(),!1),parseModifiers(eo[3].trim(),ei),ConstructorFragment.fromObject(ei)}static isConstructorFragment(en){return en&&en._isFragment&&"constructor"===en.type}};let FunctionFragment=class FunctionFragment extends ConstructorFragment{format(en){if(en||(en=ey.sighash),ey[en]||ef.throwArgumentError("invalid format type","format",en),en===ey.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(ei=>JSON.parse(ei.format(en))),outputs:this.outputs.map(ei=>JSON.parse(ei.format(en)))});let ei="";return en!==ey.sighash&&(ei+="function "),ei+=this.name+"("+this.inputs.map(ei=>ei.format(en)).join(en===ey.full?", ":",")+") ",en!==ey.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(ei+=this.stateMutability+" "):this.constant&&(ei+="view "),this.outputs&&this.outputs.length&&(ei+="returns ("+this.outputs.map(ei=>ei.format(en)).join(", ")+") "),null!=this.gas&&(ei+="@"+this.gas.toString()+" ")),ei.trim()}static from(en){return"string"==typeof en?FunctionFragment.fromString(en):FunctionFragment.fromObject(en)}
4static fromObject(en){if(FunctionFragment.isFunctionFragment(en))return en;"function"!==en.type&&ef.throwArgumentError("invalid function object","value",en);let ei=verifyState(en),eo={type:en.type,name:verifyIdentifier(en.name),constant:ei.constant,inputs:en.inputs?en.inputs.map(ParamType.fromObject):[],outputs:en.outputs?en.outputs.map(ParamType.fromObject):[],payable:ei.payable,stateMutability:ei.stateMutability,gas:en.gas?ea.O$.from(en.gas):null};return new FunctionFragment(ep,eo)}static fromString(en){let ei={type:"function"},eo=(en=parseGas(en,ei)).split(" returns ");eo.length>2&&ef.throwArgumentError("invalid function string","value",en);let ea=eo[0].match(e_);if(ea||ef.throwArgumentError("invalid function signature","value",en),ei.name=ea[1].trim(),ei.name&&verifyIdentifier(ei.name),ei.inputs=parseParams(ea[2],!1),parseModifiers(ea[3].trim(),ei),eo.length>1){let ea=eo[1].match(e_);(""!=ea[1].trim()||""!=ea[3].trim())&&ef.throwArgumentError("unexpected tokens","value",en),ei.outputs=parseParams(ea[2],!1)}else ei.outputs=[];return FunctionFragment.fromObject(ei)}static isFunctionFragment(en){return en&&en._isFragment&&"function"===en.type}};function checkForbidden(en){let ei=en.format();return("Error(string)"===ei||"Panic(uint256)"===ei)&&ef.throwArgumentError(`cannot specify user defined ${ei} error`,"fragment",en),en}let ErrorFragment=class ErrorFragment extends Fragment{format(en){if(en||(en=ey.sighash),ey[en]||ef.throwArgumentError("invalid format type","format",en),en===ey.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(ei=>JSON.parse(ei.format(en)))});let ei="";return en!==ey.sighash&&(ei+="error "),(ei+=this.name+"("+this.inputs.map(ei=>ei.format(en)).join(en===ey.full?", ":",")+") ").trim()}static from(en){return"string"==typeof en?ErrorFragment.fromString(en):ErrorFragment.fromObject(en)}static fromObject(en){if(ErrorFragment.isErrorFragment(en))return en;"error"!==en.type&&ef.throwArgumentError("invalid error object","value",en);let ei={type:en.type,name:verifyIdentifier(en.name),inputs:en.inputs?en.inputs.map(ParamType.fromObject):[]};return checkForbidden(new ErrorFragment(ep,ei))}static fromString(en){let ei={type:"error"},eo=en.match(e_);return eo||ef.throwArgumentError("invalid error signature","value",en),ei.name=eo[1].trim(),ei.name&&verifyIdentifier(ei.name),ei.inputs=parseParams(eo[2],!1),checkForbidden(ErrorFragment.fromObject(ei))}static isErrorFragment(en){return en&&en._isFragment&&"error"===en.type}};function verifyType(en){return en.match(/^uint($|[^1-9])/)?en="uint256"+en.substring(4):en.match(/^int($|[^1-9])/)&&(en="int256"+en.substring(3)),en}let eS=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function verifyIdentifier(en){return en&&en.match(eS)||ef.throwArgumentError(`invalid identifier "${en}"`,"value",en),en}let e_=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function splitNesting(en){en=en.trim();let ei=[],eo="",ea=0;for(let es=0;es<en.length;es++){let ed=en[es];","===ed&&0===ea?(ei.push(eo),eo=""):(eo+=ed,"("===ed?ea++:")"===ed&&-1==--ea&&ef.throwArgumentError("unbalanced parenthesis","value",en))}return eo&&ei.push(eo),ei}},83893:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{AbiCoder:function(){return es.R},ConstructorFragment:function(){return ea.Xg},ErrorFragment:function(){return ea.IC},EventFragment:function(){return ea.QV},FormatTypes:function(){return ea.pc},Fragment:function(){return ea.HY},FunctionFragment:function(){return ea.YW},Indexed:function(){return ed.Hk},Interface:function(){return ed.vU},LogDescription:function(){return ed.CC},ParamType:function(){return ea._R},TransactionDescription:function(){return ed.vk},checkResultErrors:function(){return eu.BR},defaultAbiCoder:function(){return es.$}});var ea=eo(11388),es=eo(84243),ed=eo(8198),eu=eo(61184)},8198:function(en,ei,eo){"use strict";eo.d(ei,{CC:function(){return LogDescription},Hk:function(){return Indexed},vU:function(){return Interface},vk:function(){return TransactionDescription}});var ea=eo(52004),es=eo(2593),ed=eo(16441),eu=eo(32046),ef=eo(38197),ep=eo(6881),em=eo(84243),eg=eo(11388),ey=eo(1581),eb=eo(95851);let eS=new ey.Logger(eb.i);let LogDescription=class LogDescription extends ep.Description{};let TransactionDescription=class TransactionDescription extends ep.Description{};let ErrorDescription=class ErrorDescription extends ep.Description{};let Indexed=class Indexed extends ep.Description{static isIndexed(en){return!!(en&&en._isIndexed)}};let e_={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function wrapAccessError(en,ei){let eo=Error(`deferred error during ABI decoding triggered accessing ${en}`);return eo.error=ei,eo}let Interface=class Interface{constructor(en){let ei=[];ei="string"==typeof en?JSON.parse(en):en,(0,ep.defineReadOnly)(this,"fragments",ei.map(e
4n=>eg.HY.from(en)).filter(en=>null!=en)),(0,ep.defineReadOnly)(this,"_abiCoder",(0,ep.getStatic)(new.target,"getAbiCoder")()),(0,ep.defineReadOnly)(this,"functions",{}),(0,ep.defineReadOnly)(this,"errors",{}),(0,ep.defineReadOnly)(this,"events",{}),(0,ep.defineReadOnly)(this,"structs",{}),this.fragments.forEach(en=>{let ei=null;switch(en.type){case"constructor":if(this.deploy){eS.warn("duplicate definition - constructor");return}(0,ep.defineReadOnly)(this,"deploy",en);return;case"function":ei=this.functions;break;case"event":ei=this.events;break;case"error":ei=this.errors;break;default:return}let eo=en.format();if(ei[eo]){eS.warn("duplicate definition - "+eo);return}ei[eo]=en}),this.deploy||(0,ep.defineReadOnly)(this,"deploy",eg.Xg.from({payable:!1,type:"constructor"})),(0,ep.defineReadOnly)(this,"_isInterface",!0)}format(en){en||(en=eg.pc.full),en===eg.pc.sighash&&eS.throwArgumentError("interface does not support formatting sighash","format",en);let ei=this.fragments.map(ei=>ei.format(en));return en===eg.pc.json?JSON.stringify(ei.map(en=>JSON.parse(en))):ei}static getAbiCoder(){return em.$}static getAddress(en){return(0,ea.getAddress)(en)}static getSighash(en){return(0,ed.hexDataSlice)((0,eu.id)(en.format()),0,4)}static getEventTopic(en){return(0,eu.id)(en.format())}getFunction(en){if((0,ed.isHexString)(en)){for(let ei in this.functions)if(en===this.getSighash(ei))return this.functions[ei];eS.throwArgumentError("no matching function","sighash",en)}if(-1===en.indexOf("(")){let ei=en.trim(),eo=Object.keys(this.functions).filter(en=>en.split("(")[0]===ei);return 0===eo.length?eS.throwArgumentError("no matching function","name",ei):eo.length>1&&eS.throwArgumentError("multiple matching functions","name",ei),this.functions[eo[0]]}let ei=this.functions[eg.YW.fromString(en).format()];return ei||eS.throwArgumentError("no matching function","signature",en),ei}getEvent(en){if((0,ed.isHexString)(en)){let ei=en.toLowerCase();for(let en in this.events)if(ei===this.getEventTopic(en))return this.events[en];eS.throwArgumentError("no matching event","topichash",ei)}if(-1===en.indexOf("(")){let ei=en.trim(),eo=Object.keys(this.events).filter(en=>en.split("(")[0]===ei);return 0===eo.length?eS.throwArgumentError("no matching event","name",ei):eo.length>1&&eS.throwArgumentError("multiple matching events","name",ei),this.events[eo[0]]}let ei=this.events[eg.QV.fromString(en).format()];return ei||eS.throwArgumentError("no matching event","signature",en),ei}getError(en){if((0,ed.isHexString)(en)){let ei=(0,ep.getStatic)(this.constructor,"getSighash");for(let eo in this.errors){let ea=this.errors[eo];if(en===ei(ea))return this.errors[eo]}eS.throwArgumentError("no matching error","sighash",en)}if(-1===en.indexOf("(")){let ei=en.trim(),eo=Object.keys(this.errors).filter(en=>en.split("(")[0]===ei);return 0===eo.length?eS.throwArgumentError("no matching error","name",ei):eo.length>1&&eS.throwArgumentError("multiple matching errors","name",ei),this.errors[eo[0]]}let ei=this.errors[eg.YW.fromString(en).format()];return ei||eS.throwArgumentError("no matching error","signature",en),ei}
4getSighash(en){if("string"==typeof en)try{en=this.getFunction(en)}catch(ei){try{en=this.getError(en)}catch(en){throw ei}}return(0,ep.getStatic)(this.constructor,"getSighash")(en)}getEventTopic(en){return"string"==typeof en&&(en=this.getEvent(en)),(0,ep.getStatic)(this.constructor,"getEventTopic")(en)}_decodeParams(en,ei){return this._abiCoder.decode(en,ei)}_encodeParams(en,ei){return this._abiCoder.encode(en,ei)}encodeDeploy(en){return this._encodeParams(this.deploy.inputs,en||[])}decodeErrorResult(en,ei){"string"==typeof en&&(en=this.getError(en));let eo=(0,ed.arrayify)(ei);return(0,ed.hexlify)(eo.slice(0,4))!==this.getSighash(en)&&eS.throwArgumentError(`data signature does not match error ${en.name}.`,"data",(0,ed.hexlify)(eo)),this._decodeParams(en.inputs,eo.slice(4))}encodeErrorResult(en,ei){return"string"==typeof en&&(en=this.getError(en)),(0,ed.hexlify)((0,ed.concat)([this.getSighash(en),this._encodeParams(en.inputs,ei||[])]))}decodeFunctionData(en,ei){"string"==typeof en&&(en=this.getFunction(en));let eo=(0,ed.arrayify)(ei);return(0,ed.hexlify)(eo.slice(0,4))!==this.getSighash(en)&&eS.throwArgumentError(`data signature does not match function ${en.name}.`,"data",(0,ed.hexlify)(eo)),this._decodeParams(en.inputs,eo.slice(4))}encodeFunctionData(en,ei){return"string"==typeof en&&(en=this.getFunction(en)),(0,ed.hexlify)((0,ed.concat)([this.get
4Sighash(en),this._encodeParams(en.inputs,ei||[])]))}decodeFunctionResult(en,ei){"string"==typeof en&&(en=this.getFunction(en));let eo=(0,ed.arrayify)(ei),ea=null,es="",eu=null,ef=null,ep=null;switch(eo.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(en.outputs,eo)}catch(en){}break;case 4:{let en=(0,ed.hexlify)(eo.slice(0,4)),ei=e_[en];if(ei)eu=this._abiCoder.decode(ei.inputs,eo.slice(4)),ef=ei.name,ep=ei.signature,ei.reason&&(ea=eu[0]),"Error"===ef?es=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(eu[0])}`:"Panic"===ef&&(es=`; VM Exception while processing transaction: reverted with panic code ${eu[0]}`);else try{let ei=this.getError(en);eu=this._abiCoder.decode(ei.inputs,eo.slice(4)),ef=ei.name,ep=ei.format()}catch(en){}}}return eS.throwError("call revert exception"+es,ey.Logger.errors.CALL_EXCEPTION,{method:en.format(),data:(0,ed.hexlify)(ei),errorArgs:eu,errorName:ef,errorSignature:ep,reason:ea})}encodeFunctionResult(en,ei){return"string"==typeof en&&(en=this.getFunction(en)),(0,ed.hexlify)(this._abiCoder.encode(en.outputs,ei||[]))}encodeFilterTopics(en,ei){"string"==typeof en&&(en=this.getEvent(en)),ei.length>en.inputs.length&&eS.throwError("too many arguments for "+en.format(),ey.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:ei});let eo=[];en.anonymous||eo.push(this.getEventTopic(en));let encodeTopic=(en,ei)=>"string"===en.type?(0,eu.id)(ei):"bytes"===en.type?(0,ef.keccak256)((0,ed.hexlify)(ei)):("bool"===en.type&&"boolean"==typeof ei&&(ei=ei?"0x01":"0x00"),en.type.match(/^u?int/)&&(ei=es.O$.from(ei).toHexString()),"address"===en.type&&this._abiCoder.encode(["address"],[ei]),(0,ed.hexZeroPad)((0,ed.hexlify)(ei),32));for(ei.forEach((ei,ea)=>{let es=en.inputs[ea];if(!es.indexed){null!=ei&&eS.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+es.name,ei);return}null==ei?eo.push(null):"array"===es.baseType||"tuple"===es.baseType?eS.throwArgumentError("filtering with tuples or arrays not supported","contract."+es.name,ei):Array.isArray(ei)?eo.push(ei.map(en=>encodeTopic(es,en))):eo.push(encodeTopic(es,ei))});eo.length&&null===eo[eo.length-1];)eo.pop();return eo}encodeEventLog(en,ei){"string"==typeof en&&(en=this.getEvent(en));let eo=[],ea=[],es=[];return en.anonymous||eo.push(this.getEventTopic(en)),ei.length!==en.inputs.length&&eS.throwArgumentError("event arguments/values mismatch","values",ei),en.inputs.forEach((en,ed)=>{let ep=ei[ed];if(en.indexed){if("string"===en.type)eo.push((0,eu.id)(ep));else if("bytes"===en.type)eo.push((0,ef.keccak256)(ep));else if("tuple"===en.baseType||"array"===en.baseType)throw Error("not implemented");else eo.push(this._abiCoder.encode([en.type],[ep]))}else ea.push(en),es.push(ep)}),{data:this._abiCoder.encode(ea,es),topics:eo}}decodeEventLog(en,ei,eo){if("string"==typeof en&&(en=this.getEvent(en)),null!=eo&&!en.anonymous){let ei=this.getEventTopic(en);(0,ed.isHexString)(eo[0],32)&&eo[0].toLowerCase()===ei||eS.throwError("fragment/topic mismatch",ey.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:ei,value:eo[0]}),eo=eo.slice(1)}let ea=[],es=[],eu=[];en.inputs.forEach((en,ei)=>{en.indexed?"string"===en.type||"bytes"===en.type||"tuple"===en.baseType||"array"===en.baseType?(ea.push(eg._R.fromObject({type:"bytes32",name:en.name})),eu.push(!0)):(ea.push(en),eu.push(!1)):(es.push(en),eu.push(!1))});let ef=null!=eo?this._abiCoder.decode(ea,(0,ed.concat)(eo)):null,ep=this._abiCoder.decode(es,ei,!0),em=[],eb=0,e_=0;en.inputs.forEach((en,ei)=>{if(en.indexed){if(null==ef)em[ei]=new Indexed({_isIndexed:!0,hash:null});else if(eu[ei])em[ei]=new Indexed({_isIndexed:!0,hash:ef[e_++]});else try{em[ei]=ef[e_++]}catch(en){em[ei]=en}}else try{em[ei]=ep[eb++]}catch(en){em[ei]=en}if(en.name&&null==em[en.name]){let eo=em[ei];eo instanceof Error?Object.defineProperty(em,en.name,{enumerable:!0,get:()=>{throw wrapAccessError(`property ${JSON.stringify(en.name)}`,eo)}}):em[en.name]=eo}});for(let en=0;en<em.length;en++){let ei=em[en];ei instanceof Error&&Object.defineProperty(em,en,{enumerable:!0,get:()=>{throw wrapAccessError(`index ${en}`,ei)}})}return Object.freeze(em)}parseTransaction(en){let ei=this.getFunction(en.data.substring(0,10).toLowerCase());return ei?new TransactionDescription({args:this._abiCoder.decode(ei.inputs,"0x"+en.data.substring(10)),functionFragment:ei,name:ei.name,signature:ei.format(),sighash:this.getSighash(ei),value:es.O$.from(en.value||"0")}):null}parseLog(en){let ei=this.getEvent(en.topics[0]);return!ei||ei.anonymous?null:new LogDescription({eventFragment:ei,name:ei.name,signature:ei.format(),topic:this.getEventTopic(ei),args:this.decodeEventLog(ei,en.data,en.topics)})}parseError(en){let ei=(0,ed.hexlify)(en),eo=this.getError(ei.substring(0,10).toLowerCase());return eo?new ErrorDescription({args:this._abiCoder.decode(eo.inputs,"0x"+ei.substring(10)),errorFragment:eo,name:eo.name,signature:eo.format(),sighash:this.getSighash(eo)}):null}static isInterface(en){return!!(en&&en._isInterface)}}},81556:function(en,ei,eo){"use strict";eo.d(ei,{Sg:function(){return ForkEvent},zt:function(){return Provider}});var ea=eo(2593),es=eo(6881),ed=eo(1581);let eu="abstract-provider/5.7.0";var __awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let ef=new ed.Logger(eu);let ForkEvent=class ForkEvent extends es.Description{static isForkEvent(en){return!!(en&&en._isForkEvent)}};let Provider=class Provider{constructor(){ef.checkAbstract(new.target,Provider),(0,es.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){return __awaiter(this,void 0,void 0,function*(){let{block:en,gasPrice:ei}=yield(0,es.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(en=>null)}),eo=null,ed=null,eu=null;return en&&en.baseFeePerGas&&(eo=en.baseFeePerGas,eu=ea.O$.from("1500000000"),ed=en.baseFeePerGas.mul(2).add(eu)),{lastBaseFeePerGas:eo,maxFeePerGas:ed,maxPriorityFeePerGas:eu,gasPrice:ei}})}addListener(en,ei){return this.on(en,ei)}removeListener(en,ei){return this.off(en,ei)}static isProvider(en){return!!(en&&en._isProvider)}}},48088:function(en,ei,eo){"use strict";eo.d(ei,{E:function(){return Signer},b:function(){return VoidSigner}});var ea=eo(6881),es=eo(1581);let ed="abstract-signer/5.7.0";var __awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let eu=new es.Logger(ed),ef=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","
4nonce","to","type","value"],ep=[es.Logger.errors.INSUFFICIENT_FUNDS,es.Logger.errors.NONCE_EXPIRED,es.Logger.errors.REPLACEMENT_UNDERPRICED];let Signer=class Signer{constructor(){eu.checkAbstract(new.target,Signer),(0,ea.defineReadOnly)(this,"_isSigner",!0)}getBalance(en){return __awaiter(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),en)})}getTransactionCount(en){return __awaiter(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),en)})}estimateGas(en){return __awaiter(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let ei=yield(0,ea.resolveProperties)(this.checkTransaction(en));return yield this.provider.estimateGas(ei)})}call(en,ei){return __awaiter(this,void 0,void 0,function*(){this._checkProvider("call");let eo=yield(0,ea.resolveProperties)(this.checkTransaction(en));return yield this.provider.call(eo,ei)})}sendTransaction(en){return __awaiter(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let ei=yield this.populateTransaction(en),eo=yield this.signTransaction(ei);return yield this.provider.sendTransaction(eo)})}getChainId(){return __awaiter(this,void 0,void 0,function*(){this._checkProvider("getChainId");let en=yield this.provider.getNetwork();return en.chainId})}getGasPrice(){return __awaiter(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return __awaiter(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(en){return __awaiter(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(en)})}checkTransaction(en){for(let ei in en)-1===ef.indexOf(ei)&&eu.throwArgumentError("invalid transaction key: "+ei,"transaction",en);let ei=(0,ea.shallowCopy)(en);return null==ei.from?ei.from=this.getAddress():ei.from=Promise.all([Promise.resolve(ei.from),this.getAddress()]).then(ei=>(ei[0].toLowerCase()!==ei[1].toLowerCase()&&eu.throwArgumentError("from address mismatch","transaction",en),ei[0])),ei}populateTransaction(en){return __awaiter(this,void 0,void 0,function*(){let ei=yield(0,ea.resolveProperties)(this.checkTransaction(en));null!=ei.to&&(ei.to=Promise.resolve(ei.to).then(en=>__awaiter(this,void 0,void 0,function*(){if(null==en)return null;let ei=yield this.resolveName(en);return null==ei&&eu.throwArgumentError("provided ENS name resolves to null","tx.to",en),ei})),ei.to.catch(en=>{}));let eo=null!=ei.maxFeePerGas||null!=ei.maxPriorityFeePerGas;if(null!=ei.gasPrice&&(2===ei.type||eo)?eu.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",en):(0===ei.type||1===ei.type)&&eo&&eu.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",en),(2===ei.type||null==ei.type)&&null!=ei.maxFeePerGas&&null!=ei.maxPriorityFeePerGas)ei.type=2;else if(0===ei.type||1===ei.type)null==ei.gasPrice&&(ei.gasPrice=this.getGasPrice());else{let en=yield this.getFeeData();if(null==ei.type){if(null!=en.maxFeePerGas&&null!=en.maxPriorityFeePerGas){if(ei.type=2,null!=ei.gasPrice){let en=ei.gasPrice;delete ei.gasPrice,ei.maxFeePerGas=en,ei.maxPriorityFeePerGas=en}else null==ei.maxFeePerGas&&(ei.maxFeePerGas=en.maxFeePerGas),null==ei.maxPriorityFeePerGas&&(ei.maxPriorityFeePerGas=en.maxPriorityFeePerGas)}else null!=en.gasPrice?(eo&&eu.throwError("network does not support EIP-1559",es.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==ei.gasPrice&&(ei.gasPrice=en.gasPrice),ei.type=0):eu.throwError("failed to get consistent fee data",es.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===ei.type&&(null==ei.maxFeePerGas&&(ei.maxFeePerGas=en.maxFeePerGas),null==ei.maxPriorityFeePerGas&&(ei.maxPriorityFeePerGas=en.maxPriorityFeePerGas))}return null==ei.nonce&&(ei.nonce=this.getTransactionCount("pending")),null==ei.gasLimit&&(ei.gasLimit=this.estimateGas(ei).catch(en=>{if(ep.indexOf(en.code)>=0)throw en;return eu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",es.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:en,tx:ei})}
4)),null==ei.chainId?ei.chainId=this.getChainId():ei.chainId=Promise.all([Promise.resolve(ei.chainId),this.getChainId()]).then(ei=>(0!==ei[1]&&ei[0]!==ei[1]&&eu.throwArgumentError("chainId address mismatch","transaction",en),ei[0])),yield(0,ea.resolveProperties)(ei)})}_checkProvider(en){this.provider||eu.throwError("missing provider",es.Logger.errors.UNSUPPORTED_OPERATION,{operation:en||"_checkProvider"})}static isSigner(en){return!!(en&&en._isSigner)}};let VoidSigner=class VoidSigner extends Signer{constructor(en,ei){super(),(0,ea.defineReadOnly)(this,"address",en),(0,ea.defineReadOnly)(this,"provider",ei||null)}getAddress(){return Promise.resolve(this.address)}_fail(en,ei){return Promise.resolve().then(()=>{eu.throwError(en,es.Logger.errors.UNSUPPORTED_OPERATION,{operation:ei})})}signMessage(en){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(en){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(en,ei,eo){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(en){return new VoidSigner(this.address,en)}}},52004:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{getAddress:function(){return getAddress},getContractAddress:function(){return getContractAddress},getCreate2Address:function(){return getCreate2Address},getIcapAddress:function(){return getIcapAddress},isAddress:function(){return isAddress}});var ea=eo(16441),es=eo(2593),ed=eo(38197),eu=eo(59052),ef=eo(1581);let ep="address/5.7.0",em=new ef.Logger(ep);function getChecksumAddress(en){(0,ea.isHexString)(en,20)||em.throwArgumentError("invalid address","address",en),en=en.toLowerCase();let ei=en.substring(2).split(""),eo=new Uint8Array(40);for(let en=0;en<40;en++)eo[en]=ei[en].charCodeAt(0);let es=(0,ea.arrayify)((0,ed.keccak256)(eo));for(let en=0;en<40;en+=2)es[en>>1]>>4>=8&&(ei[en]=ei[en].toUpperCase()),(15&es[en>>1])>=8&&(ei[en+1]=ei[en+1].toUpperCase());return"0x"+ei.join("")}let eg=9007199254740991;function log10(en){return Math.log10?Math.log10(en):Math.log(en)/Math.LN10}let ey={};for(let en=0;en<10;en++)ey[String(en)]=String(en);for(let en=0;en<26;en++)ey[String.fromCharCode(65+en)]=String(10+en);let eb=Math.floor(log10(eg));function ibanChecksum(en){let ei=(en=(en=en.toUpperCase()).substring(4)+en.substring(0,2)+"00").split("").map(en=>ey[en]).join("");for(;ei.length>=eb;){let en=ei.substring(0,eb);ei=parseInt(en,10)%97+ei.substring(en.length)}let eo=String(98-parseInt(ei,10)%97);for(;eo.length<2;)eo="0"+eo;return eo}function getAddress(en){let ei=null;if("string"!=typeof en&&em.throwArgumentError("invalid address","address",en),en.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==en.substring(0,2)&&(en="0x"+en),ei=getChecksumAddress(en),en.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&ei!==en&&em.throwArgumentError("bad address checksum","address",en);else if(en.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(en.substring(2,4)!==ibanChecksum(en)&&em.throwArgumentError("bad icap checksum","address",en),ei=(0,es.g$)(en.substring(4));ei.length<40;)ei="0"+ei;ei=getChecksumAddress("0x"+ei)}else em.throwArgumentError("invalid address","address",en);return ei}function isAddress(en){try{return getAddress(en),!0}catch(en){}return!1}function getIcapAddress(en){let ei=(0,es.t2)(getAddress(en).substring(2)).toUpperCase();for(;ei.length<30;)ei="0"+ei;return"XE"+ibanChecksum("XE00"+ei)+ei}function getContractAddress(en){let ei=null;try{ei=getAddress(en.from)}catch(ei){em.throwArgumentError("missing from address","transaction",en)}let eo=(0,ea.stripZeros)((0,ea.arrayify)(es.O$.from(en.nonce).toHexString()));return getAddress((0,ea.hexDataSlice)((0,ed.keccak256)((0,eu.encode)([ei,eo])),12))}function getCreate2Address(en,ei,eo){return 32!==(0,ea.hexDataLength)(ei)&&em.throwArgumentError("salt must be 32 bytes","salt",ei),32!==(0,ea.hexDataLength)(eo)&&em.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",eo),getAddress((0,ea.hexDataSlice)((0,ed.keccak256)((0,ea.concat)(["0xff",getAddress(en),ei,eo])),12))}},59567:function(en,ei,eo){"use strict";eo.d(ei,{J:function(){return decode},c:function(){return encode}});var ea=eo(16441);function decode(en){en=atob(en);let ei=[];for(let eo=0;eo<en.length;
4eo++)ei.push(en.charCodeAt(eo));return(0,ea.arrayify)(ei)}function encode(en){en=(0,ea.arrayify)(en);let ei="";for(let eo=0;eo<en.length;eo++)ei+=String.fromCharCode(en[eo]);return btoa(ei)}},4089:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{decode:function(){return ea.J},encode:function(){return ea.c}});var ea=eo(59567)},57727:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{Base32:function(){return ed},Base58:function(){return eu},BaseX:function(){return BaseX}});var ea=eo(16441),es=eo(6881);let BaseX=class BaseX{constructor(en){(0,es.defineReadOnly)(this,"alphabet",en),(0,es.defineReadOnly)(this,"base",en.length),(0,es.defineReadOnly)(this,"_alphabetMap",{}),(0,es.defineReadOnly)(this,"_leader",en.charAt(0));for(let ei=0;ei<en.length;ei++)this._alphabetMap[en.charAt(ei)]=ei}encode(en){let ei=(0,ea.arrayify)(en);if(0===ei.length)return"";let eo=[0];for(let en=0;en<ei.length;++en){let ea=ei[en];for(let en=0;en<eo.length;++en)ea+=eo[en]<<8,eo[en]=ea%this.base,ea=ea/this.base|0;for(;ea>0;)eo.push(ea%this.base),ea=ea/this.base|0}let es="";for(let en=0;0===ei[en]&&en<ei.length-1;++en)es+=this._leader;for(let en=eo.length-1;en>=0;--en)es+=this.alphabet[eo[en]];return es}decode(en){if("string"!=typeof en)throw TypeError("Expected String");let ei=[];if(0===en.length)return new Uint8Array(ei);ei.push(0);for(let eo=0;eo<en.length;eo++){let ea=this._alphabetMap[en[eo]];if(void 0===ea)throw Error("Non-base"+this.base+" character");let es=ea;for(let en=0;en<ei.length;++en)es+=ei[en]*this.base,ei[en]=255&es,es>>=8;for(;es>0;)ei.push(255&es),es>>=8}for(let eo=0;en[eo]===this._leader&&eo<en.length-1;++eo)ei.push(0);return(0,ea.arrayify)(new Uint8Array(ei.reverse()))}};let ed=new BaseX("abcdefghijklmnopqrstuvwxyz234567"),eu=new BaseX("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},48794:function(en,ei,eo){"use strict";eo.d(ei,{i:function(){return ea}});let ea="bignumber/5.7.0"},2593:function(en,ei,eo){"use strict";eo.d(ei,{O$:function(){return BigNumber},Zm:function(){return isBigNumberish},g$:function(){return _base36To16},t2:function(){return _base16To36}});var ea=eo(13550),es=eo.n(ea),ed=eo(16441),eu=eo(1581),ef=eo(48794),ep=es().BN;let em=new eu.Logger(ef.i),eg={},ey=9007199254740991;function isBigNumberish(en){return null!=en&&(BigNumber.isBigNumber(en)||"number"==typeof en&&en%1==0||"string"==typeof en&&!!en.match(/^-?[0-9]+$/)||(0,ed.isHexString)(en)||"bigint"==typeof en||(0,ed.isBytes)(en))}let eb=!1;let BigNumber=class BigNumber{constructor(en,ei){en!==eg&&em.throwError("cannot call constructor directly; use BigNumber.from",eu.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=ei,this._isBigNumber=!0,Object.freeze(this)}fromTwos(en){return toBigNumber(toBN(this).fromTwos(en))}toTwos(en){return toBigNumber(toBN(this).toTwos(en))}abs(){return"-"===this._hex[0]?BigNumber.from(this._hex.substring(1)):this}add(en){return toBigNumber(toBN(this).add(toBN(en)))}sub(en){return toBigNumber(toBN(this).sub(toBN(en)))}div(en){let ei=BigNumber.from(en);return ei.isZero()&&throwFault("division-by-zero","div"),toBigNumber(toBN(this).div(toBN(en)))}mul(en){return toBigNumber(toBN(this).mul(toBN(en)))}mod(en){let ei=toBN(en);return ei.isNeg()&&throwFault("division-by-zero","mod"),toBigNumber(toBN(this).umod(ei))}pow(en){let ei=toBN(en);return ei.isNeg()&&throwFault("negative-power","pow"),toBigNumber(toBN(this).pow(ei))}and(en){let ei=toBN(en);return(this.isNegative()||ei.isNeg())&&throwFault("unbound-bitwise-result","and"),toBigNumber(toBN(this).and(ei))}or(en){let ei=toBN(en);return(this.isNegative()||ei.isNeg())&&throwFault("unbound-bitwise-result","or"),toBigNumber(toBN(this).or(ei))}xor(en){let ei=toBN(en);return(this.isNegative()||ei.isNeg())&&throwFault("unbound-bitwise-result","xor"),toBigNumber(toBN(this).xor(ei))}mask(en){return(this.isNegative()||en<0)&&throwFault("negative-width","mask"),toBigNumber(toBN(this).maskn(en))}shl(en){return(this.isNegative()||en<0)&&throwFault("negative-width","shl"),toBigNumber(toBN(this).shln(en))}shr(en){return(this.isNegative()||en<0)&&throwFault("negative-width","shr"),toBigNumber(toBN(this).shrn(en))}
4eq(en){return toBN(this).eq(toBN(en))}lt(en){return toBN(this).lt(toBN(en))}lte(en){return toBN(this).lte(toBN(en))}gt(en){return toBN(this).gt(toBN(en))}gte(en){return toBN(this).gte(toBN(en))}isNegative(){return"-"===this._hex[0]}isZero(){return toBN(this).isZero()}toNumber(){try{return toBN(this).toNumber()}catch(en){throwFault("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(en){}return em.throwError("this platform does not support BigInt",eu.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?eb||(eb=!0,em.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?em.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",eu.Logger.errors.UNEXPECTED_ARGUMENT,{}):em.throwError("BigNumber.toString does not accept parameters",eu.Logger.errors.UNEXPECTED_ARGUMENT,{})),toBN(this).toString(10)}toHexString(){return this._hex}toJSON(en){return{type:"BigNumber",hex:this.toHexString()}}static from(en){if(en instanceof BigNumber)return en;if("string"==typeof en)return en.match(/^-?0x[0-9a-f]+$/i)?new BigNumber(eg,toHex(en)):en.match(/^-?[0-9]+$/)?new BigNumber(eg,toHex(new ep(en))):em.throwArgumentError("invalid BigNumber string","value",en);if("number"==typeof en)return en%1&&throwFault("underflow","BigNumber.from",en),(en>=ey||en<=-ey)&&throwFault("overflow","BigNumber.from",en),BigNumber.from(String(en));let ei=en;if("bigint"==typeof ei)return BigNumber.from(ei.toString());if((0,ed.isBytes)(ei))return BigNumber.from((0,ed.hexlify)(ei));if(ei){if(ei.toHexString){let en=ei.toHexString();if("string"==typeof en)return BigNumber.from(en)}else{let en=ei._hex;if(null==en&&"BigNumber"===ei.type&&(en=ei.hex),"string"==typeof en&&((0,ed.isHexString)(en)||"-"===en[0]&&(0,ed.isHexString)(en.substring(1))))return BigNumber.from(en)}}return em.throwArgumentError("invalid BigNumber value","value",en)}static isBigNumber(en){return!!(en&&en._isBigNumber)}};function toHex(en){if("string"!=typeof en)return toHex(en.toString(16));if("-"===en[0])return("-"===(en=en.substring(1))[0]&&em.throwArgumentError("invalid hex","value",en),"0x00"===(en=toHex(en)))?en:"-"+en;if("0x"!==en.substring(0,2)&&(en="0x"+en),"0x"===en)return"0x00";for(en.length%2&&(en="0x0"+en.substring(2));en.length>4&&"0x00"===en.substring(0,4);)en="0x"+en.substring(4);return en}function toBigNumber(en){return BigNumber.from(toHex(en))}function toBN(en){let ei=BigNumber.from(en).toHexString();return"-"===ei[0]?new ep("-"+ei.substring(3),16):new ep(ei.substring(2),16)}function throwFault(en,ei,eo){let ea={fault:en,operation:ei};return null!=eo&&(ea.value=eo),em.throwError(en,eu.Logger.errors.NUMERIC_FAULT,ea)}function _base36To16(en){return new ep(en,36).toString(16)}function _base16To36(en){return new ep(en,16).toString(36)}},20335:function(en,ei,eo){"use strict";eo.d(ei,{Ox:function(){return parseFixed},S5:function(){return formatFixed},xs:function(){return FixedNumber}});var ea=eo(16441),es=eo(1581),ed=eo(48794),eu=eo(2593);let ef=new es.Logger(ed.i),ep={},em=eu.O$.from(0),eg=eu.O$.from(-1);function throwFault(en,ei,eo,ea){let ed={fault:ei,operation:eo};return void 0!==ea&&(ed.value=ea),ef.throwError(en,es.Logger.errors.NUMERIC_FAULT,ed)}let ey="0";for(;ey.length<256;)ey+=ey;function getMultiplier(en){if("number"!=typeof en)try{en=eu.O$.from(en).toNumber()}catch(en){}return"number"==typeof en&&en>=0&&en<=256&&!(en%1)?"1"+ey.substring(0,en):ef.throwArgumentError("invalid decimal size","decimals",en)}function formatFixed(en,ei){null==ei&&(ei=0);let eo=getMultiplier(ei);en=eu.O$.from(en);let ea=en.lt(em);ea&&(en=en.mul(eg));let es=en.mod(eo).toString();for(;es.length<eo.length-1;)es="0"+es;es=es.match(/^([0-9]*[1-9]|0)(0*)/)[1];let ed=en.div(eo).toString();return en=1===eo.length?ed:ed+"."+es,ea&&(en="-"+en),en}function parseFixed(en,ei){null==ei&&(ei=0);let eo=getMultiplier(ei);"string"==typeof en&&en.match(/^-?[0-9.]+$/)||ef.throwArgumentError("invalid decimal value","value",en);let ea="-"===en.substring(0,1);ea&&(en=en.substring(1)),"."===en&&ef.throwArgumentError("missing value","value",en);let es=en.split(".");es.length>2&&ef.throwArgumentError("too many decimal points","value",en);
4let ed=es[0],ep=es[1];for(ed||(ed="0"),ep||(ep="0");"0"===ep[ep.length-1];)ep=ep.substring(0,ep.length-1);for(ep.length>eo.length-1&&throwFault("fractional component exceeds decimals","underflow","parseFixed"),""===ep&&(ep="0");ep.length<eo.length-1;)ep+="0";let em=eu.O$.from(ed),ey=eu.O$.from(ep),eb=em.mul(eo).add(ey);return ea&&(eb=eb.mul(eg)),eb}let FixedFormat=class FixedFormat{constructor(en,ei,eo,ea){en!==ep&&ef.throwError("cannot use FixedFormat constructor; use FixedFormat.from",es.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=ei,this.width=eo,this.decimals=ea,this.name=(ei?"":"u")+"fixed"+String(eo)+"x"+String(ea),this._multiplier=getMultiplier(ea),Object.freeze(this)}static from(en){if(en instanceof FixedFormat)return en;"number"==typeof en&&(en=`fixed128x${en}`);let ei=!0,eo=128,ea=18;if("string"==typeof en){if("fixed"===en);else if("ufixed"===en)ei=!1;else{let es=en.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);es||ef.throwArgumentError("invalid fixed format","format",en),ei="u"!==es[1],eo=parseInt(es[2]),ea=parseInt(es[3])}}else if(en){let check=(ei,eo,ea)=>null==en[ei]?ea:(typeof en[ei]!==eo&&ef.throwArgumentError("invalid fixed format ("+ei+" not "+eo+")","format."+ei,en[ei]),en[ei]);ei=check("signed","boolean",ei),eo=check("width","number",eo),ea=check("decimals","number",ea)}return eo%8&&ef.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",eo),ea>80&&ef.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",ea),new FixedFormat(ep,ei,eo,ea)}};let FixedNumber=class FixedNumber{constructor(en,ei,eo,ea){en!==ep&&ef.throwError("cannot use FixedNumber constructor; use FixedNumber.from",es.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=ea,this._hex=ei,this._value=eo,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(en){this.format.name!==en.format.name&&ef.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",en)}addUnsafe(en){this._checkFormat(en);let ei=parseFixed(this._value,this.format.decimals),eo=parseFixed(en._value,en.format.decimals);return FixedNumber.fromValue(ei.add(eo),this.format.decimals,this.format)}subUnsafe(en){this._checkFormat(en);let ei=parseFixed(this._value,this.format.decimals),eo=parseFixed(en._value,en.format.decimals);return FixedNumber.fromValue(ei.sub(eo),this.format.decimals,this.format)}mulUnsafe(en){this._checkFormat(en);let ei=parseFixed(this._value,this.format.decimals),eo=parseFixed(en._value,en.format.decimals);return FixedNumber.fromValue(ei.mul(eo).div(this.format._multiplier),this.format.decimals,this.format)}
4divUnsafe(en){this._checkFormat(en);let ei=parseFixed(this._value,this.format.decimals),eo=parseFixed(en._value,en.format.decimals);return FixedNumber.fromValue(ei.mul(this.format._multiplier).div(eo),this.format.decimals,this.format)}floor(){let en=this.toString().split(".");1===en.length&&en.push("0");let ei=FixedNumber.from(en[0],this.format),eo=!en[1].match(/^(0*)$/);return this.isNegative()&&eo&&(ei=ei.subUnsafe(eb.toFormat(ei.format))),ei}ceiling(){let en=this.toString().split(".");1===en.length&&en.push("0");let ei=FixedNumber.from(en[0],this.format),eo=!en[1].match(/^(0*)$/);return!this.isNegative()&&eo&&(ei=ei.addUnsafe(eb.toFormat(ei.format))),ei}round(en){null==en&&(en=0);let ei=this.toString().split(".");if(1===ei.length&&ei.push("0"),(en<0||en>80||en%1)&&ef.throwArgumentError("invalid decimal count","decimals",en),ei[1].length<=en)return this;let eo=FixedNumber.from("1"+ey.substring(0,en),this.format),ea=eS.toFormat(this.format);return this.mulUnsafe(eo).addUnsafe(ea).floor().divUnsafe(eo)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(en){if(null==en)return this._hex;en%8&&ef.throwArgumentError("invalid byte width","width",en);let ei=eu.O$.from(this._hex).fromTwos(this.format.width).toTwos(en).toHexString();return(0,ea.hexZeroPad)(ei,en/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(en){return FixedNumber.fromString(this._value,en)}static fromValue(en,ei,eo){return null!=eo||null==ei||(0,eu.Zm)(ei)||(eo=ei,ei=null),null==ei&&(ei=0),null==eo&&(eo="fixed"),FixedNumber.fromString(formatFixed(en,ei),FixedFormat.from(eo))}static fromString(en,ei){null==ei&&(ei="fixed");let eo=FixedFormat.from(ei),es=parseFixed(en,eo.decimals);!eo.signed&&es.lt(em)&&throwFault("unsigned value cannot be negative","overflow","value",en);let ed=null;eo.signed?ed=es.toTwos(eo.width).toHexString():(ed=es.toHexString(),ed=(0,ea.hexZeroPad)(ed,eo.width/8));let eu=formatFixed(es,eo.decimals);return new FixedNumber(ep,ed,eu,eo)}static fromBytes(en,ei){null==ei&&(ei="fixed");let eo=FixedFormat.from(ei);if((0,ea.arrayify)(en).length>eo.width/8)throw Error("overflow");let es=eu.O$.from(en);eo.signed&&(es=es.fromTwos(eo.width));let ed=es.toTwos((eo.signed?0:1)+eo.width).toHexString(),ef=formatFixed(es,eo.decimals);return new FixedNumber(ep,ed,ef,eo)}static from(en,ei){if("string"==typeof en)return FixedNumber.fromString(en,ei);if((0,ea.isBytes)(en))return FixedNumber.fromBytes(en,ei);try{return FixedNumber.fromValue(en,0,ei)}catch(en){if(en.code!==es.Logger.errors.INVALID_ARGUMENT)throw en}return ef.throwArgumentError("invalid FixedNumber value","value",en)}static isFixedNumber(en){return!!(en&&en._isFixedNumber)}};let eb=FixedNumber.from(1),eS=FixedNumber.from("0.5")},16441:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{arrayify:function(){return arrayify},concat:function(){return concat},hexConcat:function(){return hexConcat},hexDataLength:function(){return hexDataLength},hexDataSlice:function(){return hexDataSlice},hexStripZeros:function(){return hexStripZeros},hexValue:function(){return hexValue},hexZeroPad:function(){return hexZeroPad},hexlify:function(){return hexlify},isBytes:function(){return isBytes},isBytesLike:function(){return isBytesLike},isHexString:function(){return isHexString},joinSignature:function(){return joinSignature},splitSignature:function(){return splitSignature},stripZeros:function(){return stripZeros},zeroPad:function(){return zeroPad}});var ea=eo(1581);let es="bytes/5.7.0",ed=new ea.Logger(es);function isHexable(en){return!!en.toHexString}function addSlice(en){return en.slice||(en.slice=function(){let ei=Array.prototype.slice.call(arguments);return addSlice(new Uint8Array(Array.prototype.slice.apply(en,ei)))}),en}function isBytesLike(en){return isHexString(en)&&!(en.length%2)||isBytes(en)}function isInteger(en){return"number"==typeof en&&en==en&&en%1==0}function isBytes(en){if(null==en)return!1;if(en.constructor===Uint8Array)return!0;if("string"==typeof en||!isInteger(en.length)||en.length<0)return!1;for(let ei=0;ei<en.length;ei++){let eo=en[ei];if(!isInteger(eo)||eo<0||eo>=256)return!1}return!0}
vendor: 5,218 bytes, line 4
4function arrayify(en,ei){if(ei||(ei={}),"number"==typeof en){ed.checkSafeUint53(en,"invalid arrayify value");let ei=[];for(;en;)ei.unshift(255&en),en=parseInt(String(en/256));return 0===ei.length&&ei.push(0),addSlice(new Uint8Array(ei))}if(ei.allowMissingPrefix&&"string"==typeof en&&"0x"!==en.substring(0,2)&&(en="0x"+en),isHexable(en)&&(en=en.toHexString()),isHexString(en)){let eo=en.substring(2);eo.length%2&&("left"===ei.hexPad?eo="0"+eo:"right"===ei.hexPad?eo+="0":ed.throwArgumentError("hex data is odd-length","value",en));let ea=[];for(let en=0;en<eo.length;en+=2)ea.push(parseInt(eo.substring(en,en+2),16));return addSlice(new Uint8Array(ea))}return isBytes(en)?addSlice(new Uint8Array(en)):ed.throwArgumentError("invalid arrayify value","value",en)}function concat(en){let ei=en.map(en=>arrayify(en)),eo=ei.reduce((en,ei)=>en+ei.length,0),ea=new Uint8Array(eo);return ei.reduce((en,ei)=>(ea.set(ei,en),en+ei.length),0),addSlice(ea)}function stripZeros(en){let ei=arrayify(en);if(0===ei.length)return ei;let eo=0;for(;eo<ei.length&&0===ei[eo];)eo++;return eo&&(ei=ei.slice(eo)),ei}function zeroPad(en,ei){(en=arrayify(en)).length>ei&&ed.throwArgumentError("value out of range","value",arguments[0]);let eo=new Uint8Array(ei);return eo.set(en,ei-en.length),addSlice(eo)}function isHexString(en,ei){return"string"==typeof en&&!!en.match(/^0x[0-9A-Fa-f]*$/)&&(!ei||en.length===2+2*ei)}let eu="0123456789abcdef";function hexlify(en,ei){if(ei||(ei={}),"number"==typeof en){ed.checkSafeUint53(en,"invalid hexlify value");let ei="";for(;en;)ei=eu[15&en]+ei,en=Math.floor(en/16);return ei.length?(ei.length%2&&(ei="0"+ei),"0x"+ei):"0x00"}if("bigint"==typeof en)return(en=en.toString(16)).length%2?"0x0"+en:"0x"+en;if(ei.allowMissingPrefix&&"string"==typeof en&&"0x"!==en.substring(0,2)&&(en="0x"+en),isHexable(en))return en.toHexString();if(isHexString(en))return en.length%2&&("left"===ei.hexPad?en="0x0"+en.substring(2):"right"===ei.hexPad?en+="0":ed.throwArgumentError("hex data is odd-length","value",en)),en.toLowerCase();if(isBytes(en)){let ei="0x";for(let eo=0;eo<en.length;eo++){let ea=en[eo];ei+=eu[(240&ea)>>4]+eu[15&ea]}return ei}return ed.throwArgumentError("invalid hexlify value","value",en)}function hexDataLength(en){if("string"!=typeof en)en=hexlify(en);else if(!isHexString(en)||en.length%2)return null;return(en.length-2)/2}function hexDataSlice(en,ei,eo){return("string"!=typeof en?en=hexlify(en):(!isHexString(en)||en.length%2)&&ed.throwArgumentError("invalid hexData","value",en),ei=2+2*ei,null!=eo)?"0x"+en.substring(ei,2+2*eo):"0x"+en.substring(ei)}function hexConcat(en){let ei="0x";return en.forEach(en=>{ei+=hexlify(en).substring(2)}),ei}function hexValue(en){let ei=hexStripZeros(hexlify(en,{hexPad:"left"}));return"0x"===ei?"0x0":ei}function hexStripZeros(en){"string"!=typeof en&&(en=hexlify(en)),isHexString(en)||ed.throwArgumentError("invalid hex string","value",en),en=en.substring(2);let ei=0;for(;ei<en.length&&"0"===en[ei];)ei++;return"0x"+en.substring(ei)}function hexZeroPad(en,ei){for("string"!=typeof en?en=hexlify(en):isHexString(en)||ed.throwArgumentError("invalid hex string","value",en),en.length>2*ei+2&&ed.throwArgumentError("value out of range","value",arguments[1]);en.length<2*ei+2;)en="0x0"+en.substring(2);return en}function splitSignature(en){let ei={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(isBytesLike(en)){let eo=arrayify(en);64===eo.length?(ei.v=27+(eo[32]>>7),eo[32]&=127,ei.r=hexlify(eo.slice(0,32)),ei.s=hexlify(eo.slice(32,64))):65===eo.length?(ei.r=hexlify(eo.slice(0,32)),ei.s=hexlify(eo.slice(32,64)),ei.v=eo[64]):ed.throwArgumentError("invalid signature string","signature",en),ei.v<27&&(0===ei.v||1===ei.v?ei.v+=27:ed.throwArgumentError("signature invalid v byte","signature",en)),ei.recoveryParam=1-ei.v%2,ei.recoveryParam&&(eo[32]|=128),ei._vs=hexlify(eo.slice(32,64))}else{if(ei.r=en.r,ei.s=en.s,ei.v=en.v,ei.recoveryParam=en.recoveryParam,ei._vs=en._vs,null!=ei._vs){let eo=zeroPad(arrayify(ei._vs),32);ei._vs=hexlify(eo);let ea=eo[0]>=128?1:0;null==ei.recoveryParam?ei.recoveryParam=ea:ei.recoveryParam!==ea&&ed.throwArgumentError("signature recoveryParam mismatch _vs","signature",en),eo[0]&=127;let es=hexlify(eo);null==ei.s?ei.s=es:ei.s!==es&&ed.throwArgumentError("signature v mismatch _vs","signature",en)}if(null==ei.recoveryParam)null==ei.v?ed.throwArgumentError("signature missing v and recoveryParam","signature",en):0===ei.v||1===ei.v?ei.recoveryParam=ei.v:ei.recoveryParam=1-ei.v%2;else if(null==ei.v)ei.v=27+ei.recoveryParam;else{let eo=0===ei.v||1===ei.v?ei.v:1-ei.v%2;ei.recoveryParam!==eo&&ed.throwArgumentError("signature recoveryParam mismatch v","signature",en)}null!=ei.r&&isHexString(ei.r)?ei.r=hexZeroPad(ei.r,32):ed.throwArgumentError("signature missing or invalid r","signature",en),null!=ei.s&&isHexString(ei.s)?ei.s=hexZeroPad(ei.s,32):ed.throwArgumentError("signature missing or invalid s","signature",en);let eo=arrayify(ei.s);eo[0]>=128&&ed.throwArgumentError("signature s out of range","signature",en),ei.recoveryParam&&(eo[0]|=128);let ea=hexlify(eo);ei._vs&&(isHexString(ei._vs)||ed.throwArgumentError("signature invalid _vs","signature",en),ei._vs=hexZeroPad(ei._vs,32)),null==e
4i._vs?ei._vs=ea:ei._vs!==ea&&ed.throwArgumentError("signature _vs mismatch v and s","signature",en)}return ei.yParityAndS=ei._vs,ei.compact=ei.r+ei.yParityAndS.substring(2),ei}function joinSignature(en){return hexlify(concat([(en=splitSignature(en)).r,en.s,en.recoveryParam?"0x1c":"0x1b"]))}},21046:function(en,ei,eo){"use strict";eo.d(ei,{$B:function(){return eg},Bz:function(){return em},Ce:function(){return ep},PS:function(){return ey},Py:function(){return ef},_Y:function(){return ed},fh:function(){return eu},tL:function(){return es}});var ea=eo(2593);let es=ea.O$.from(-1),ed=ea.O$.from(0),eu=ea.O$.from(1),ef=ea.O$.from(2),ep=ea.O$.from("1000000000000000000"),em=ea.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),eg=ea.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),ey=ea.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},57218:function(en,ei,eo){"use strict";eo.d(ei,{R:function(){return ea}});let ea="0x0000000000000000000000000000000000000000000000000000000000000000"},35644:function(en,ei,eo){"use strict";eo.d(ei,{i:function(){return ea}});let ea="hash/5.7.0"},32046:function(en,ei,eo){"use strict";eo.d(ei,{id:function(){return id}});var ea=eo(38197),es=eo(29251);function id(en){return(0,ea.keccak256)((0,es.Y0)(en))}},75931:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{_TypedDataEncoder:function(){return eu.E},dnsEncode:function(){return es.Kn},ensNormalize:function(){return es.w3},hashMessage:function(){return ed.r},id:function(){return ea.id},isValidName:function(){return es.r1},messagePrefix:function(){return ed.B},namehash:function(){return es.VM}});var ea=eo(32046),es=eo(27586),ed=eo(93684),eu=eo(67827)},93684:function(en,ei,eo){"use strict";eo.d(ei,{B:function(){return eu},r:function(){return hashMessage}});var ea=eo(16441),es=eo(38197),ed=eo(29251);let eu="\x19Ethereum Signed Message:\n";function hashMessage(en){return"string"==typeof en&&(en=(0,ed.Y0)(en)),(0,es.keccak256)((0,ea.concat)([(0,ed.Y0)(eu),(0,ed.Y0)(String(en.length)),en]))}},27586:function(en,ei,eo){"use strict";eo.d(ei,{Kn:function(){return dnsEncode},w3:function(){return ensNormalize},r1:function(){return isValidName},VM:function(){return namehash}});var ea=eo(16441),es=eo(29251),ed=eo(38197),eu=eo(1581),ef=eo(35644),ep=eo(59567);function flat(en,ei){null==ei&&(ei=1);let eo=[],ea=eo.forEach,flatDeep=function(en,ei){ea.call(en,function(en){ei>0&&Array.isArray(en)?flatDeep(en,ei-1):eo.push(en)})};return flatDeep(en,ei),eo}function fromEntries(en){let ei={};for(let eo=0;eo<en.length;eo++){let ea=en[eo];ei[ea[0]]=ea[1]}return ei}function decode_arithmetic(en){let ei=0;function u16(){return en[ei++]<<8|en[ei++]}let eo=u16(),ea=1,es=[0,1];for(let en=1;en<eo;en++)es.push(ea+=u16());let ed=u16(),eu=ei;ei+=ed;let ef=0,ep=0;function read_bit(){return 0==ef&&(ep=ep<<8|en[ei++],ef=8),ep>>--ef&1}let em=31,eg=Math.pow(2,em),ey=eg>>>1,eb=ey>>1,eS=eg-1,e_=0;for(let en=0;en<em;en++)e_=e_<<1|read_bit();let eR=[],eA=0,ew=eg;for(;;){let en=Math.floor(((e_-eA+1)*ea-1)/ew),ei=0,ed=eo;for(;ed-ei>1;){let eo=ei+ed>>>1;en<es[eo]?ed=eo:ei=eo}if(0==ei)break;eR.push(ei);let eu=eA+Math.floor(ew*es[ei]/ea),ef=eA+Math.floor(ew*es[ei+1]/ea)-1;for(;((eu^ef)&ey)==0;)e_=e_<<1&eS|read_bit(),eu=eu<<1&eS,ef=ef<<1&eS|1;for(;eu&~ef&eb;)e_=e_&ey|e_<<1&eS>>>1|read_bit(),eu=eu<<1^ey,ef=(ef^ey)<<1|ey|1;eA=eu,ew=1+ef-eu}let eO=eo-4;return eR.map(ei=>{switch(ei-eO){case 3:return eO+65792+(en[eu++]<<16|en[eu++]<<8|en[eu++]);case 2:return eO+256+(en[eu++]<<8|en[eu++]);case 1:return eO+en[eu++];default:return ei-1}})}function read_payload(en){let ei=0;return()=>en[ei++]}function read_compressed_payload(en){return read_payload(decode_arithmetic(en))}function signed(en){return 1&en?~en>>1:en>>1}function read_counts(en,ei){let eo=Array(en);for(let ea=0;ea<en;ea++)eo[ea]=1+ei();return eo}function read_ascending(en,ei){let eo=Array(en);for(let ea=0,es=-1;ea<en;ea++)eo[ea]=es+=1+ei();return eo}function read_deltas(en,ei){let eo=Array(en);for(let ea=0,es=0;ea<en;ea++)eo[ea]=es+=signed(ei());return eo}function read_member_array(en,ei){let eo=read_ascending(en(),en),ea=en(),es=read_ascending(ea,en),ed=read_counts(ea,en);for(let en=0;en<ea;en++)for(let ei=0;ei<ed[en];ei++)eo.push(es[en]+ei);return ei?eo.map(en=>ei[en]):eo}function read_mapped_map(en){let ei=[];for(;;){let eo=en();if(0==eo)break;ei.push(read_linear_table(eo,en))}for(;;){let eo=en()-1;if(eo<0)break;ei.push(read_replacement_table(eo,en))}return fromEntries(flat(ei))}function read_zero_terminated_array(en){let ei=[];for(;;){let eo=en();if(0==eo)break;ei.push(eo)}return ei}function read_transposed(en,ei,eo){let ea=Array(en).fill(void 0).map(()=>[]);for(let es=0;es<ei;
4es++)read_deltas(en,eo).forEach((en,ei)=>ea[ei].push(en));return ea}function read_linear_table(en,ei){let eo=1+ei(),ea=ei(),es=read_zero_terminated_array(ei);return flat(read_transposed(es.length,1+en,ei).map((en,ei)=>{let ed=en[0],eu=en.slice(1);return Array(es[ei]).fill(void 0).map((en,ei)=>{let es=ei*ea;return[ed+ei*eo,eu.map(en=>en+es)]})}))}function read_replacement_table(en,ei){return read_transposed(1+ei(),1+en,ei).map(en=>[en[0],en.slice(1)])}function read_emoji_trie(en){let ei=read_member_array(en).sort((en,ei)=>en-ei);return read();function read(){let eo=[];for(;;){let ea=read_member_array(en,ei);if(0==ea.length)break;eo.push({set:new Set(ea),node:read()})}eo.sort((en,ei)=>ei.set.size-en.set.size);let ea=en();return{branches:eo,valid:ea%3,fe0f:!!(1&(ea=ea/3|0)),save:1==(ea>>=1),check:2==ea}}}function getData(){return read_compressed_payload((0,ep.J)
vendor: 14,757 bytes, line 4
4("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))
4}let em=getData(),eg=new Set(read_member_array(em)),ey=new Set(read_member_array(em)),eb=read_mapped_map(em),eS=read_emoji_trie(em),e_=45,eR=95;function explode_cp(en){return(0,es.XL)(en)}function filter_fe0f(en){return en.filter(en=>65039!=en)}function ens_normalize_post_check(en){for(let ei of en.split(".")){let en=explode_cp(ei);try{for(let ei=en.lastIndexOf(eR)-1;ei>=0;ei--)if(en[ei]!==eR)throw Error("underscore only allowed at start");if(en.length>=4&&en.every(en=>en<128)&&en[2]===e_&&en[3]===e_)throw Error("invalid label extension")}catch(en){throw Error(`Invalid label "${ei}": ${en.message}`)}}return en}function ens_normalize(en){return ens_normalize_post_check(normalize(en,filter_fe0f))}function normalize(en,ei){let eo=explode_cp(en).reverse(),ea=[];for(;eo.length;){let en=consume_emoji_reversed(eo);if(en){ea.push(...ei(en));continue}let es=eo.pop();if(eg.has(es)){ea.push(es);continue}if(ey.has(es))continue;let ed=eb[es];if(ed){ea.push(...ed);continue}throw Error(`Disallowed codepoint: 0x${es.toString(16).toUpperCase()}`)}return ens_normalize_post_check(nfc(String.fromCodePoint(...ea)))}function nfc(en){return en.normalize("NFC")}function consume_emoji_reversed(en,ei){var eo;let ea,es;let ed=eS,eu=[],ef=en.length;for(ei&&(ei.length=0);ef;){let ep=en[--ef];if(!(ed=null===(eo=ed.branches.find(en=>en.set.has(ep)))||void 0===eo?void 0:eo.node))break;if(ed.save)es=ep;else if(ed.check&&ep===es)break;eu.push(ep),ed.fe0f&&(eu.push(65039),ef>0&&65039==en[ef-1]&&ef--),ed.valid&&(ea=eu.slice(),2==ed.valid&&ea.splice(1,1),ei&&ei.push(...en.slice(ef).reverse()),en.length=ef)}return ea}let eA=new eu.Logger(ef.i),ew=new Uint8Array(32);function checkComponent(en){if(0===en.length)throw Error("invalid ENS name; empty component");return en}function ensNameSplit(en){let ei=(0,es.Y0)(ens_normalize(en)),eo=[];if(0===en.length)return eo;let ea=0;for(let en=0;en<ei.length;en++){let es=ei[en];46===es&&(eo.push(checkComponent(ei.slice(ea,en))),ea=en+1)}if(ea>=ei.length)throw Error("invalid ENS name; empty component");return eo.push(checkComponent(ei.slice(ea))),eo}function ensNormalize(en){return ensNameSplit(en).map(en=>(0,es.ZN)(en)).join(".")}function isValidName(en){try{return 0!==ensNameSplit(en).length}catch(en){}return!1}function namehash(en){"string"!=typeof en&&eA.throwArgumentError("invalid ENS name; not a string","name",en);let ei=ew,eo=ensNameSplit(en);for(;eo.length;)ei=(0,ed.keccak256)((0,ea.concat)([ei,(0,ed.keccak256)(eo.pop())]));return(0,ea.hexlify)(ei)}function dnsEncode(en){return(0,ea.hexlify)((0,ea.concat)(ensNameSplit(en).map(en=>{if(en.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let ei=new Uint8Array(en.length+1);return ei.set(en,1),ei[0]=ei.length-1,ei})))+"00"}ew.fill(0)},67827:function(en,ei,eo){"use strict";eo.d(ei,{E:function(){return TypedDataEncoder}});var ea=eo(52004),es=eo(2593),ed=eo(16441),eu=eo(38197),ef=eo(6881),ep=eo(1581),em=eo(35644),eg=eo(32046),__awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let ey=new ep.Logger(em.i),eb=new Uint8Array(32);eb.fill(0);let eS=es.O$.from(-1),e_=es.O$.from(0),eR=es.O$.from(1),eA=es.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function hexPadRight(en){let ei=(0,ed.arrayify)(en),eo=ei.length%32;return eo?(0,ed.hexConcat)([ei,eb.slice(eo)]):(0,ed.hexlify)(ei)}let ew=(0,ed.hexZeroPad)(eR.toHexString(),32),eO=(0,ed.hexZeroPad)(e_.toHexString(),32),eE={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},eP=["name","version","chainId","verifyingContract","salt"];function checkString(en){return function(ei){return"string"!=typeof ei&&ey.throwArgumentError(`invalid domain value for ${JSON.stringify(en)}`,`domain.${en}`,ei),ei}}let eC={name:checkString("name"),version:checkString("version"),chainId:function(en){try{return es.O$.from(en).toString()}catch(en){}return ey.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",en)},verifyingContract:function(en){try{return(0,ea.getAddress)(en).toLowerCase()}catch(en){}return ey.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",en)},salt:function(en){try{let ei=(0,ed.arrayify)(en);if(32!==ei.length)throw Error("bad length");return(0,ed.hexlify)(ei)}catch(en){}return ey.throwArgumentError('invalid domain value "salt"',"domain.salt",en)}};function getBaseEncoder(en){{let ei=en.match(/^(u?)int(\d*)$/);if(ei){let eo=""===ei[1],ea=parseInt(ei[2]||"256");(ea%8!=0||ea>256||ei[2]&&ei[2]!==String(ea))&&ey.throwArgumentError("invalid numeric width","type",en);let eu=eA.mask(eo?ea-1:ea),ef=eo?eu.add(eR).mul(eS):e_;return function(ei){let eo=es.O$.from(ei);return(eo.lt(ef)||eo.gt(eu))&&ey.throwArgumentError(`value out-of-bounds for ${en}`,"value",ei),(0,ed.hexZeroPad)(eo.toTwos(256).toHexString(),32)}}}{let ei=en.match(/^bytes(\d+)$/);if(ei){let eo=parseInt(ei[1]);return(0===eo||eo>32||ei[1]!==String(eo))&&ey.throwArgumentError("invalid bytes width","type",en),function(ei){let ea=(0,ed.arrayify)(ei);return ea.length!==eo&&ey.throwArgumentError(`invalid length for ${en}`,"value",ei),hexPadRight(ei)}}}switch(en){case"address":return function(en){return(0,ed.hexZeroPad)((0,ea.getAddress)(en),32)};case"bool":return function(en){return en?ew:eO};case"bytes":return function(en){return(0,eu.keccak256)(en)};case"string":return function(en){return(0,eg.id)(en)}}return null}function encodeType(en,ei){return`${en}(${ei.map(({name:en,type:ei})=>ei+" "+en).join(",")})`}let TypedDataEncoder=class TypedDataEncoder{constructor(en){(0,ef.defineReadOnly)(this,"types",Object.freeze((0,ef.deepCopy)(en))),(0,ef.defineReadOnly)(this,"_encoderCache",{}),(0,ef.defineReadOnly)(this,"_types",{});let ei={},eo={},ea={};
4for(let es in Object.keys(en).forEach(en=>{ei[en]={},eo[en]=[],ea[en]={}}),en){let ea={};en[es].forEach(ed=>{ea[ed.name]&&ey.throwArgumentError(`duplicate variable name ${JSON.stringify(ed.name)} in ${JSON.stringify(es)}`,"types",en),ea[ed.name]=!0;let eu=ed.type.match(/^([^\x5b]*)(\x5b|$)/)[1];eu===es&&ey.throwArgumentError(`circular type reference to ${JSON.stringify(eu)}`,"types",en);let ef=getBaseEncoder(eu);ef||(eo[eu]||ey.throwArgumentError(`unknown type ${JSON.stringify(eu)}`,"types",en),eo[eu].push(es),ei[es][eu]=!0)})}let es=Object.keys(eo).filter(en=>0===eo[en].length);function checkCircular(es,ed){ed[es]&&ey.throwArgumentError(`circular type reference to ${JSON.stringify(es)}`,"types",en),ed[es]=!0,Object.keys(ei[es]).forEach(en=>{eo[en]&&(checkCircular(en,ed),Object.keys(ed).forEach(ei=>{ea[ei][en]=!0}))}),delete ed[es]}for(let ei in 0===es.length?ey.throwArgumentError("missing primary type","types",en):es.length>1&&ey.throwArgumentError(`ambiguous primary types or unused types: ${es.map(en=>JSON.stringify(en)).join(", ")}`,"types",en),(0,ef.defineReadOnly)(this,"primaryType",es[0]),checkCircular(this.primaryType,{}),ea){let eo=Object.keys(ea[ei]);eo.sort(),this._types[ei]=encodeType(ei,en[ei])+eo.map(ei=>encodeType(ei,en[ei])).join("")}}getEncoder(en){let ei=this._encoderCache[en];return ei||(ei=this._encoderCache[en]=this._getEncoder(en)),ei}_getEncoder(en){{let ei=getBaseEncoder(en);if(ei)return ei}let ei=en.match(/^(.*)(\x5b(\d*)\x5d)$/);
4if(ei){let en=ei[1],eo=this.getEncoder(en),ea=parseInt(ei[3]);return ei=>{ea>=0&&ei.length!==ea&&ey.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",ei);let es=ei.map(eo);return this._types[en]&&(es=es.map(eu.keccak256)),(0,eu.keccak256)((0,ed.hexConcat)(es))}}let eo=this.types[en];if(eo){let ei=(0,eg.id)(this._types[en]);return en=>{let ea=eo.map(({name:ei,type:eo})=>{let ea=this.getEncoder(eo)(en[ei]);return this._types[eo]?(0,eu.keccak256)(ea):ea});return ea.unshift(ei),(0,ed.hexConcat)(ea)}}return ey.throwArgumentError(`unknown type: ${en}`,"type",en)}encodeType(en){let ei=this._types[en];return ei||ey.throwArgumentError(`unknown type: ${JSON.stringify(en)}`,"name",en),ei}encodeData(en,ei){return this.getEncoder(en)(ei)}hashStruct(en,ei){return(0,eu.keccak256)(this.encodeData(en,ei))}encode(en){return this.encodeData(this.primaryType,en)}hash(en){return this.hashStruct(this.primaryType,en)}_visit(en,ei,eo){{let ea=getBaseEncoder(en);if(ea)return eo(en,ei)}let ea=en.match(/^(.*)(\x5b(\d*)\x5d)$/);if(ea){let en=ea[1],es=parseInt(ea[3]);return es>=0&&ei.length!==es&&ey.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",ei),ei.map(ei=>this._visit(en,ei,eo))}let es=this.types[en];return es?es.reduce((en,{name:ea,type:es})=>(en[ea]=this._visit(es,ei[ea],eo),en),{}):ey.throwArgumentError(`unknown type: ${en}`,"type",en)}visit(en,ei){return this._visit(this.primaryType,en,ei)}static from(en){return new TypedDataEncoder(en)}static getPrimaryType(en){return TypedDataEncoder.from(en).primaryType}static hashStruct(en,ei,eo){return TypedDataEncoder.from(ei).hashStruct(en,eo)}static hashDomain(en){let ei=[];for(let eo in en){let ea=eE[eo];ea||ey.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(eo)}`,"domain",en),ei.push({name:eo,type:ea})}return ei.sort((en,ei)=>eP.indexOf(en.name)-eP.indexOf(ei.name)),TypedDataEncoder.hashStruct("EIP712Domain",{EIP712Domain:ei},en)}static encode(en,ei,eo){return(0,ed.hexConcat)(["0x1901",TypedDataEncoder.hashDomain(en),TypedDataEncoder.from(ei).hash(eo)])}static hash(en,ei,eo){return(0,eu.keccak256)(TypedDataEncoder.encode(en,ei,eo))}static resolveNames(en,ei,eo,ea){return __awaiter(this,void 0,void 0,function*(){en=(0,ef.shallowCopy)(en);let es={};en.verifyingContract&&!(0,ed.isHexString)(en.verifyingContract,20)&&(es[en.verifyingContract]="0x");let eu=TypedDataEncoder.from(ei);for(let en in eu.visit(eo,(en,ei)=>("address"!==en||(0,ed.isHexString)(ei,20)||(es[ei]="0x"),ei)),es)es[en]=yield ea(en);return en.verifyingContract&&es[en.verifyingContract]&&(en.verifyingContract=es[en.verifyingContract]),{domain:en,value:eo=eu.visit(eo,(en,ei)=>"address"===en&&es[ei]?es[ei]:ei)}})}
4static getPayload(en,ei,eo){TypedDataEncoder.hashDomain(en);let ea={},eu=[];eP.forEach(ei=>{let eo=en[ei];null!=eo&&(ea[ei]=eC[ei](eo),eu.push({name:ei,type:eE[ei]}))});let ep=TypedDataEncoder.from(ei),em=(0,ef.shallowCopy)(ei);return em.EIP712Domain?ey.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",ei):em.EIP712Domain=eu,ep.encode(eo),{types:em,domain:ea,primaryType:ep.primaryType,message:ep.visit(eo,(en,ei)=>{if(en.match(/^bytes(\d*)/))return(0,ed.hexlify)((0,ed.arrayify)(ei));if(en.match(/^u?int/))return es.O$.from(ei).toString();switch(en){case"address":return ei.toLowerCase();case"bool":return!!ei;case"string":return"string"!=typeof ei&&ey.throwArgumentError("invalid string","value",ei),ei}return ey.throwArgumentError("unsupported type","type",en)})}}}},84178:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{HDNode:function(){return HDNode},defaultPath:function(){return eC},entropyToMnemonic:function(){return entropyToMnemonic},getAccountPath:function(){return getAccountPath},isValidMnemonic:function(){return isValidMnemonic},mnemonicToEntropy:function(){return mnemonicToEntropy},mnemonicToSeed:function(){return mnemonicToSeed}});var ea=eo(57727),es=eo(16441),ed=eo(2593),eu=eo(29251),ef=eo(85306),ep=eo(6881),em=eo(67669),eg=eo(2006),ey=eo(21261),eb=eo(83875),eS=eo(10234),e_=eo(1581);let eR="hdnode/5.7.0",eA=new e_.Logger(eR),ew=ed.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),eO=(0,eu.Y0)("Bitcoin seed"),eE=2147483648;function getUpperMask(en){return(1<<en)-1<<8-en}function getLowerMask(en){return(1<<en)-1}function bytes32(en){return(0,es.hexZeroPad)((0,es.hexlify)(en),32)}function base58check(en){return ea.Base58.encode((0,es.concat)([en,(0,es.hexDataSlice)((0,eg.JQ)((0,eg.JQ)(en)),0,4)]))}function getWordlist(en){if(null==en)return eS.E.en;if("string"==typeof en){let ei=eS.E[en];return null==ei&&eA.throwArgumentError("unknown locale","wordlist",en),ei}return en}let eP={},eC="m/44'/60'/0'/0/0";let HDNode=class HDNode{constructor(en,ei,eo,ea,ed,eu,ef,ey){if(en!==eP)throw Error("HDNode constructor cannot be called directly");if(ei){let en=new em.SigningKey(ei);(0,ep.defineReadOnly)(this,"privateKey",en.privateKey),(0,ep.defineReadOnly)(this,"publicKey",en.compressedPublicKey)}else(0,ep.defineReadOnly)(this,"privateKey",null),(0,ep.defineReadOnly)(this,"publicKey",(0,es.hexlify)(eo));(0,ep.defineReadOnly)(this,"parentFingerprint",ea),(0,ep.defineReadOnly)(this,"fingerprint",(0,es.hexDataSlice)((0,eg.bP)((0,eg.JQ)(this.publicKey)),0,4)),(0,ep.defineReadOnly)(this,"address",(0,eb.computeAddress)(this.publicKey)),(0,ep.defineReadOnly)(this,"chainCode",ed),(0,ep.defineReadOnly)(this,"index",eu),(0,ep.defineReadOnly)(this,"depth",ef),null==ey?((0,ep.defineReadOnly)(this,"mnemonic",null),(0,ep.defineReadOnly)(this,"path",null)):"string"==typeof ey?((0,ep.defineReadOnly)(this,"mnemonic",null),(0,ep.defineReadOnly)(this,"path",ey)):((0,ep.defineReadOnly)(this,"mnemonic",ey),(0,ep.defineReadOnly)(this,"path",ey.path))}get extendedKey(){if(this.depth>=256)throw Error("Depth too large!");return base58check((0,es.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,es.hexlify)(this.depth),this.parentFingerprint,(0,es.hexZeroPad)((0,es.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,es.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new HDNode(eP,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(en){if(en>4294967295)throw Error("invalid index - "+String(en));let ei=this.path;ei&&(ei+="/"+(en&~eE));let eo=new Uint8Array(37);if(en&eE){if(!this.privateKey)throw Error("cannot derive child of neutered node");eo.set((0,es.arrayify)(this.privateKey),1),ei&&(ei+="'")}else eo.set((0,es.arrayify)(this.publicKey));for(let ei=24;ei>=0;ei-=8)eo[33+(ei>>3)]=en>>24-ei&255;let ea=(0,es.arrayify)((0,eg.Gy)(ey.p.sha512,this.chainCode,eo)),eu=ea.slice(0,32),ef=ea.slice(32),ep=null,eb=null;if(this.privateKey)ep=bytes32(ed.O$.from(eu).add(this.privateKey).mod(ew));else{let en=new em.SigningKey((0,es.hexlify)(eu));eb=en._addPoint(this.publicKey)}let eS=ei,e_=this.mnemonic;return e_&&(eS=Object.freeze({phrase:e_.phrase,path:ei,locale:e_.locale||"en"})),new HDNode(eP,ep,eb,this.fingerprint,bytes32(ef),en,this.depth+1,eS)}derivePath(en){let ei=en.split("/");if(0===ei.length||"m"===ei[0]&&0!==this.depth)throw Error("invalid path - "+en);"m"===ei[0]&&ei.shift();let eo=this;for(let en=0;en<ei.length;en++){let ea=ei[en];if(ea.match(/^[0-9]+'$/)){let en=parseInt(ea.substring(0,ea.length-1));if(en>=eE)throw Error("invalid path index - "+ea);eo=eo._derive(eE+en)}else if(ea.match(/^[0-9]+$/)){let en=parseInt(ea);if(en>=eE)throw Error("invalid path index - "+ea);eo=eo._derive(en)}else throw Error("invalid path component - "+ea)}return eo}static _fromSeed(en,ei){let eo=(0,es.arrayify)(en);if(eo.length<16||eo.length>64)throw Error("invalid seed");let ea=(0,es.arrayify)((0,eg.Gy)(ey.p.sha512,eO,eo));return new HDNode(eP,bytes32(ea.slice(0,32)),null,"0x00000000",bytes32(ea.slice(32)),0,0,ei)}static fromMnemonic(en,ei,eo){return eo=getWordlist(eo),en=entropyToMnemonic(mnemonicToEntropy(en,eo),eo),HDNode._fromSeed(mnemonicToSeed(en,ei),{phrase:en,path:"m",locale:eo.locale})}static fromSeed(en){return HDNode._fromSeed(en,null)}static fromExtendedKey(en){let ei=ea.Base58.decode(en);
4(82!==ei.length||base58check(ei.slice(0,78))!==en)&&eA.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let eo=ei[4],ed=(0,es.hexlify)(ei.slice(5,9)),eu=parseInt((0,es.hexlify)(ei.slice(9,13)).substring(2),16),ef=(0,es.hexlify)(ei.slice(13,45)),ep=ei.slice(45,78);switch((0,es.hexlify)(ei.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new HDNode(eP,null,(0,es.hexlify)(ep),ed,ef,eu,eo,null);case"0x0488ade4":case"0x04358394 ":if(0!==ep[0])break;return new HDNode(eP,(0,es.hexlify)(ep.slice(1)),null,ed,ef,eu,eo,null)}return eA.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}};function mnemonicToSeed(en,ei){ei||(ei="");let eo=(0,eu.Y0)("mnemonic"+ei,eu.Uj.NFKD);return(0,ef.n)((0,eu.Y0)(en,eu.Uj.NFKD),eo,2048,64,"sha512")}function mnemonicToEntropy(en,ei){ei=getWordlist(ei),eA.checkNormalize();let eo=ei.split(en);if(eo.length%3!=0)throw Error("invalid mnemonic");let ea=(0,es.arrayify)(new Uint8Array(Math.ceil(11*eo.length/8))),ed=0;for(let en=0;en<eo.length;en++){let es=ei.getWordIndex(eo[en].normalize("NFKD"));if(-1===es)throw Error("invalid mnemonic");for(let en=0;en<11;en++)es&1<<10-en&&(ea[ed>>3]|=1<<7-ed%8),ed++}let eu=32*eo.length/3,ef=eo.length/3,ep=getUpperMask(ef),em=(0,es.arrayify)((0,eg.JQ)(ea.slice(0,eu/8)))[0]&ep;if(em!==(ea[ea.length-1]&ep))throw Error("invalid checksum");return(0,es.hexlify)(ea.slice(0,eu/8))}function entropyToMnemonic(en,ei){if(ei=getWordlist(ei),(en=(0,es.arrayify)(en)).length%4!=0||en.length<16||en.length>32)throw Error("invalid entropy");let eo=[0],ea=11;for(let ei=0;ei<en.length;ei++)ea>8?(eo[eo.length-1]<<=8,eo[eo.length-1]|=en[ei],ea-=8):(eo[eo.length-1]<<=ea,eo[eo.length-1]|=en[ei]>>8-ea,eo.push(en[ei]&getLowerMask(8-ea)),ea+=3);let ed=en.length/4,eu=(0,es.arrayify)((0,eg.JQ)(en))[0]&getUpperMask(ed);return eo[eo.length-1]<<=ed,eo[eo.length-1]|=eu>>8-ed,ei.join(eo.map(en=>ei.getWord(en)))}function isValidMnemonic(en,ei){try{return mnemonicToEntropy(en,ei),!0}catch(en){}return!1}function getAccountPath(en){return("number"!=typeof en||en<0||en>=eE||en%1)&&eA.throwArgumentError("invalid account index","index",en),`m/44'/60'/${en}'/0/0`}},29816:function(en,ei,eo){"use strict";eo.d(ei,{i:function(){return ea}});let ea="json-wallets/5.7.0"},64341:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{decryptCrowdsale:function(){return decrypt},decryptJsonWallet:function(){return decryptJsonWallet},decryptJsonWalletSync:function(){return decryptJsonWalletSync},decryptKeystore:function(){return eA.pe},decryptKeystoreSync:function(){return eA.hb},encryptKeystore:function(){return eA.HI},getJsonWalletAddress:function(){return eR.Rb},isCrowdsaleWallet:function(){return eR.LW},isKeystoreWallet:function(){return eR.aO}});var ea=eo(78826),es=eo.n(ea),ed=eo(52004),eu=eo(16441),ef=eo(38197),ep=eo(85306),em=eo(29251),eg=eo(6881),ey=eo(1581),eb=eo(29816),eS=eo(97013);let e_=new ey.Logger(eb.i);let CrowdsaleAccount=class CrowdsaleAccount extends eg.Description{isCrowdsaleAccount(en){return!!(en&&en._isCrowdsaleAccount)}};function decrypt(en,ei){let eo=JSON.parse(en);ei=(0,eS.Ij)(ei);let ea=(0,ed.getAddress)((0,eS.gx)(eo,"ethaddr")),eg=(0,eS.p3)((0,eS.gx)(eo,"encseed"));eg&&eg.length%16==0||e_.throwArgumentError("invalid encseed","json",en);let ey=(0,eu.arrayify)((0,ep.n)(ei,ei,2e3,32,"sha256")).slice(0,16),eb=eg.slice(0,16),eR=eg.slice(16),eA=new(es()).ModeOfOperation.cbc(ey,eb),ew=es().padding.pkcs7.strip((0,eu.arrayify)(eA.decrypt(eR))),eO="";for(let en=0;en<ew.length;en++)eO+=String.fromCharCode(ew[en]);let eE=(0,em.Y0)(eO),eP=(0,ef.keccak256)(eE);return new CrowdsaleAccount({_isCrowdsaleAccount:!0,address:ea,privateKey:eP})}var eR=eo(67949),eA=eo(81964);function decryptJsonWallet(en,ei,eo){if((0,eR.LW)(en)){eo&&eo(0);let ea=decrypt(en,ei);return eo&&eo(1),Promise.resolve(ea)}return(0,eR.aO)(en)?(0,eA.pe)(en,ei,eo):Promise.reject(Error("invalid JSON wallet"))}function decryptJsonWalletSync(en,ei){if((0,eR.LW)(en))return decrypt(en,ei);if((0,eR.aO)(en))return(0,eA.hb)(en,ei);throw Error("invalid JSON wallet")}},67949:function(en,ei,eo){"use strict";eo.d(ei,{LW:function(){return isCrowdsaleWallet},Rb:function(){return getJsonWalletAddress},aO:function(){return isKeystoreWallet}});var ea=eo(52004);function isCrowdsaleWallet(en){let ei=null;try{ei=JSON.parse(en)}catch(en){return!1}return ei.encseed&&ei.ethaddr}function isKeystoreWallet(en){let ei=null;try{ei=JSON.parse(en)}catch(en){return!1}
4return!!ei.version&&parseInt(ei.version)===ei.version&&3===parseInt(ei.version)}function getJsonWalletAddress(en){if(isCrowdsaleWallet(en))try{return(0,ea.getAddress)(JSON.parse(en).ethaddr)}catch(en){return null}if(isKeystoreWallet(en))try{return(0,ea.getAddress)(JSON.parse(en).address)}catch(en){}return null}},81964:function(en,ei,eo){"use strict";eo.d(ei,{HI:function(){return encrypt},hb:function(){return decryptSync},pe:function(){return decrypt}});var ea=eo(78826),es=eo.n(ea),ed=eo(17635),eu=eo.n(ed),ef=eo(52004),ep=eo(16441),em=eo(84178),eg=eo(38197),ey=eo(85306),eb=eo(5634),eS=eo(6881),e_=eo(83875),eR=eo(97013),eA=eo(1581),ew=eo(29816),__awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let eO=new eA.Logger(ew.i);function hasMnemonic(en){return null!=en&&en.mnemonic&&en.mnemonic.phrase}let KeystoreAccount=class KeystoreAccount extends eS.Description{isKeystoreAccount(en){return!!(en&&en._isKeystoreAccount)}};function _decrypt(en,ei,eo){let ea=(0,eR.gx)(en,"crypto/cipher");if("aes-128-ctr"===ea){let ea=(0,eR.p3)((0,eR.gx)(en,"crypto/cipherparams/iv")),ed=new(es()).Counter(ea),eu=new(es()).ModeOfOperation.ctr(ei,ed);return(0,ep.arrayify)(eu.decrypt(eo))}return null}function _getAccount(en,ei){let eo=(0,eR.p3)((0,eR.gx)(en,"crypto/ciphertext")),ea=(0,ep.hexlify)((0,eg.keccak256)((0,ep.concat)([ei.slice(16,32),eo]))).substring(2);if(ea!==(0,eR.gx)(en,"crypto/mac").toLowerCase())throw Error("invalid password");let ed=_decrypt(en,ei.slice(0,16),eo);ed||eO.throwError("unsupported cipher",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let eu=ei.slice(32,64),ey=(0,e_.computeAddress)(ed);if(en.address){let ei=en.address.toLowerCase();if("0x"!==ei.substring(0,2)&&(ei="0x"+ei),(0,ef.getAddress)(ei)!==ey)throw Error("address mismatch")}let eb={_isKeystoreAccount:!0,address:ey,privateKey:(0,ep.hexlify)(ed)};if("0.1"===(0,eR.gx)(en,"x-ethers/version")){let ei=(0,eR.p3)((0,eR.gx)(en,"x-ethers/mnemonicCiphertext")),eo=(0,eR.p3)((0,eR.gx)(en,"x-ethers/mnemonicCounter")),ea=new(es()).Counter(eo),ed=new(es()).ModeOfOperation.ctr(eu,ea),ef=(0,eR.gx)(en,"x-ethers/path")||em.defaultPath,eg=(0,eR.gx)(en,"x-ethers/locale")||"en",ey=(0,ep.arrayify)(ed.decrypt(ei));try{let en=(0,em.entropyToMnemonic)(ey,eg),ei=em.HDNode.fromMnemonic(en,null,eg).derivePath(ef);if(ei.privateKey!=eb.privateKey)throw Error("mnemonic mismatch");eb.mnemonic=ei.mnemonic}catch(en){if(en.code!==eA.Logger.errors.INVALID_ARGUMENT||"wordlist"!==en.argument)throw en}}return new KeystoreAccount(eb)}function pbkdf2Sync(en,ei,eo,ea,es){return(0,ep.arrayify)((0,ey.n)(en,ei,eo,ea,es))}function pbkdf2(en,ei,eo,ea,es){return Promise.resolve(pbkdf2Sync(en,ei,eo,ea,es))}function _computeKdfKey(en,ei,eo,ea,es){let ed=(0,eR.Ij)(ei),eu=(0,eR.gx)(en,"crypto/kdf");if(eu&&"string"==typeof eu){let throwError=function(en,ei){return eO.throwArgumentError("invalid key-derivation function parameters",en,ei)};if("scrypt"===eu.toLowerCase()){let ei=(0,eR.p3)((0,eR.gx)(en,"crypto/kdfparams/salt")),eo=parseInt((0,eR.gx)(en,"crypto/kdfparams/n")),ef=parseInt((0,eR.gx)(en,"crypto/kdfparams/r")),ep=parseInt((0,eR.gx)(en,"crypto/kdfparams/p"));eo&&ef&&ep||throwError("kdf",eu),(eo&eo-1)!=0&&throwError("N",eo);let em=parseInt((0,eR.gx)(en,"crypto/kdfparams/dklen"));return 32!==em&&throwError("dklen",em),ea(ed,ei,eo,ef,ep,64,es)}if("pbkdf2"===eu.toLowerCase()){let ei=(0,eR.p3)((0,eR.gx)(en,"crypto/kdfparams/salt")),ea=null,es=(0,eR.gx)(en,"crypto/kdfparams/prf");"hmac-sha256"===es?ea="sha256":"hmac-sha512"===es?ea="sha512":throwError("prf",es);let eu=parseInt((0,eR.gx)(en,"crypto/kdfparams/c")),ef=parseInt((0,eR.gx)(en,"crypto/kdfparams/dklen"));return 32!==ef&&throwError("dklen",ef),eo(ed,ei,eu,ef,ea)}}return eO.throwArgumentError("unsupported key-derivation function","kdf",eu)}function decryptSync(en,ei){let eo=JSON.parse(en),ea=_computeKdfKey(eo,ei,pbkdf2Sync,eu().syncScrypt);return _getAccount(eo,ea)}function decrypt(en,ei,eo){return __awaiter(this,void 0,void 0,function*(){let ea=JSON.parse(en),es=yield _computeKdfKey(ea,ei,pbkdf2,eu().scrypt,eo);return _getAccount(ea,es)})}function encrypt(en,ei,eo,ea){try{if((0,ef.getAddress)(en.address)!==(0,e_.computeAddress)(en.privateKey))throw Error("address/privateKey mismatch");if(hasMnemonic(en)){let ei=en.mnemonic,eo=em.HDNode.fromMnemonic(ei.phrase,null,ei.locale).derivePath(ei.path||em.defaultPath);if(eo.privateKey!=en.privateKey)throw Error("mnemonic mismatch")}}catch(en){return Promise.reject(en)}"function"!=typeof eo||ea||(ea=eo,eo={}),eo||(eo={});let ed=(0,ep.arrayify)(en.privateKey),ey=(0,eR.Ij)(ei),eS=null,eA=null,ew=null;if(hasMnemonic(en)){let ei=en.mnemonic;eS=(0,ep.arrayify)((0,em.mnemonicToEntropy)(ei.phrase,ei.locale||"en")),eA=ei.path||em.defaultPath,ew=ei.locale||"en"}let eO=eo.client;eO||(eO="ethers.js");let eE=null;eE=eo.salt?(0,ep.arrayify)(eo.salt):(0,eb.O)(32);let eP=null;if(eo.iv){if(16!==(eP=(0,ep.arrayify)(eo.iv)).length)throw Error("invalid iv")}else eP=(0,eb.O)(16);let eC=null;if(eo.uuid){if(16!==(eC=(0,ep.arrayify)(eo.uuid)).length)throw Error("invalid uuid")}else eC=(0,eb.O)(16);let eT=131072,eB=8,eN=1;return eo.scrypt&&(eo.scrypt.N&&(eT=eo.scrypt.N),eo.scrypt.r&&(eB=eo.scrypt.r),eo.scrypt.p&&(eN=eo.scrypt.p)),eu().scrypt
4(ey,eE,eT,eB,eN,64,ea).then(ei=>{ei=(0,ep.arrayify)(ei);let eo=ei.slice(0,16),ea=ei.slice(16,32),eu=ei.slice(32,64),ef=new(es()).Counter(eP),em=new(es()).ModeOfOperation.ctr(eo,ef),ey=(0,ep.arrayify)(em.encrypt(ed)),e_=(0,eg.keccak256)((0,ep.concat)([ea,ey])),eI={address:en.address.substring(2).toLowerCase(),id:(0,eR.EH)(eC),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,ep.hexlify)(eP).substring(2)},ciphertext:(0,ep.hexlify)(ey).substring(2),kdf:"scrypt",kdfparams:{salt:(0,ep.hexlify)(eE).substring(2),n:eT,dklen:32,p:eN,r:eB},mac:e_.substring(2)}};if(eS){let en=(0,eb.O)(16),ei=new(es()).Counter(en),eo=new(es()).ModeOfOperation.ctr(eu,ei),ea=(0,ep.arrayify)(eo.encrypt(eS)),ed=new Date,ef=ed.getUTCFullYear()+"-"+(0,eR.VP)(ed.getUTCMonth()+1,2)+"-"+(0,eR.VP)(ed.getUTCDate(),2)+"T"+(0,eR.VP)(ed.getUTCHours(),2)+"-"+(0,eR.VP)(ed.getUTCMinutes(),2)+"-"+(0,eR.VP)(ed.getUTCSeconds(),2)+".0Z";eI["x-ethers"]={client:eO,gethFilename:"UTC--"+ef+"--"+eI.address,mnemonicCounter:(0,ep.hexlify)(en).substring(2),mnemonicCiphertext:(0,ep.hexlify)(ea).substring(2),path:eA,locale:ew,version:"0.1"}}return JSON.stringify(eI)})}},97013:function(en,ei,eo){"use strict";eo.d(ei,{EH:function(){return uuidV4},Ij:function(){return getPassword},VP:function(){return zpad},gx:function(){return searchPath},p3:function(){return looseArrayify}});var ea=eo(16441),es=eo(29251);function looseArrayify(en){return"string"==typeof en&&"0x"!==en.substring(0,2)&&(en="0x"+en),(0,ea.arrayify)(en)}function zpad(en,ei){for(en=String(en);en.length<ei;)en="0"+en;return en}function getPassword(en){return"string"==typeof en?(0,es.Y0)(en,es.Uj.NFKC):(0,ea.arrayify)(en)}function searchPath(en,ei){let eo=en,ea=ei.toLowerCase().split("/");for(let en=0;en<ea.length;en++){let ei=null;for(let es in eo)if(es.toLowerCase()===ea[en]){ei=eo[es];break}if(null===ei)return null;eo=ei}return eo}function uuidV4(en){let ei=(0,ea.arrayify)(en);ei[6]=15&ei[6]|64,ei[8]=63&ei[8]|128;let eo=(0,ea.hexlify)(ei);return[eo.substring(2,10),eo.substring(10,14),eo.substring(14,18),eo.substring(18,22),eo.substring(22,34)].join("-")}},38197:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{keccak256:function(){return keccak256}});var ea=eo(91094),es=eo.n(ea),ed=eo(16441);function keccak256(en){return"0x"+es().keccak_256((0,ed.arrayify)(en))}},1581:function(en,ei,eo){"use strict";var ea,es;eo.r(ei),eo.d(ei,{ErrorCode:function(){return es},LogLevel:function(){return ea},Logger:function(){return Logger}});let ed="logger/5.7.0",eu=!1,ef=!1,ep={debug:1,default:2,info:2,warning:3,error:4,off:5},em=2,eg=null;function _checkNormalize(){try{let en=[];if(["NFD","NFC","NFKD","NFKC"].forEach(ei=>{try{if("test"!=="test".normalize(ei))throw Error("bad normalize")}catch(eo){en.push(ei)}}),en.length)throw Error("missing "+en.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(en){return en.message}return null}let ey=_checkNormalize();!function(en){en.DEBUG="DEBUG",en.INFO="INFO",en.WARNING="WARNING",en.ERROR="ERROR",en.OFF="OFF"}(ea||(ea={})),function(en){en.UNKNOWN_ERROR="UNKNOWN_ERROR",en.NOT_IMPLEMENTED="NOT_IMPLEMENTED",en.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",en.NETWORK_ERROR="NETWORK_ERROR",en.SERVER_ERROR="SERVER_ERROR",en.TIMEOUT="TIMEOUT",en.BUFFER_OVERRUN="BUFFER_OVERRUN",en.NUMERIC_FAULT="NUMERIC_FAULT",en.MISSING_NEW="MISSING_NEW",en.INVALID_ARGUMENT="INVALID_ARGUMENT",en.MISSING_ARGUMENT="MISSING_ARGUMENT",en.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",en.CALL_EXCEPTION="CALL_EXCEPTION",en.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",en.NONCE_EXPIRED="NONCE_EXPIRED",en.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",en.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",en.TRANSACTION_REPLACED="TRANSACTION_REPLACED",en.ACTION_REJECTED="ACTION_REJECTED"}(es||(es={}));let eb="0123456789abcdef";let Logger=class Logger{constructor(en){Object.defineProperty(this,"version",{enumerable:!0,value:en,writable:!1})}_log(en,ei){let eo=en.toLowerCase();null==ep[eo]&&this.throwArgumentError("invalid log level name","logLevel",en),em>ep[eo]||console.log.apply(console,ei)}debug(...en){this._log(Logger.levels.DEBUG,en)}info(...en){this._log(Logger.levels.INFO,en)}warn(...en){this._log(Logger.levels.WARNING,en)}makeError(en,ei,eo){if(ef)return this.makeError("censored error",ei,{});ei||(ei=Logger.errors.UNKNOWN_ERROR),eo||(eo={});let ea=[];
4Object.keys(eo).forEach(en=>{let ei=eo[en];try{if(ei instanceof Uint8Array){let eo="";for(let en=0;en<ei.length;en++)eo+=eb[ei[en]>>4]+eb[15&ei[en]];ea.push(en+"=Uint8Array(0x"+eo+")")}else ea.push(en+"="+JSON.stringify(ei))}catch(ei){ea.push(en+"="+JSON.stringify(eo[en].toString()))}}),ea.push(`code=${ei}`),ea.push(`version=${this.version}`);let ed=en,eu="";switch(ei){case es.NUMERIC_FAULT:{eu="NUMERIC_FAULT";let ei=en;switch(ei){case"overflow":case"underflow":case"division-by-zero":eu+="-"+ei;break;case"negative-power":case"negative-width":eu+="-unsupported";break;case"unbound-bitwise-result":eu+="-unbound-result"}break}case es.CALL_EXCEPTION:case es.INSUFFICIENT_FUNDS:case es.MISSING_NEW:case es.NONCE_EXPIRED:case es.REPLACEMENT_UNDERPRICED:case es.TRANSACTION_REPLACED:case es.UNPREDICTABLE_GAS_LIMIT:eu=ei}eu&&(en+=" [ See: https://links.ethers.org/v5-errors-"+eu+" ]"),ea.length&&(en+=" ("+ea.join(", ")+")");let ep=Error(en);return ep.reason=ed,ep.code=ei,Object.keys(eo).forEach(function(en){ep[en]=eo[en]}),ep}throwError(en,ei,eo){throw this.makeError(en,ei,eo)}throwArgumentError(en,ei,eo){return this.throwError(en,Logger.errors.INVALID_ARGUMENT,{argument:ei,value:eo})}assert(en,ei,eo,ea){en||this.throwError(ei,eo,ea)}assertArgument(en,ei,eo,ea){en||this.throwArgumentError(ei,eo,ea)}checkNormalize(en){null==en&&(en="platform missing String.prototype.normalize"),ey&&this.throwError("platform missing String.prototype.normalize",Logger.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:ey})}checkSafeUint53(en,ei){"number"==typeof en&&(null==ei&&(ei="value not safe"),(en<0||en>=9007199254740991)&&this.throwError(ei,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:en}),en%1&&this.throwError(ei,Logger.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:en}))}checkArgumentCount(en,ei,eo){eo=eo?": "+eo:"",en<ei&&this.throwError("missing argument"+eo,Logger.errors.MISSING_ARGUMENT,{count:en,expectedCount:ei}),en>ei&&this.throwError("too many arguments"+eo,Logger.errors.UNEXPECTED_ARGUMENT,{count:en,expectedCount:ei})}checkNew(en,ei){(en===Object||null==en)&&this.throwError("missing new",Logger.errors.MISSING_NEW,{name:ei.name})}checkAbstract(en,ei){en===ei?this.throwError("cannot instantiate abstract class "+JSON.stringify(ei.name)+" directly; use a sub-class",Logger.errors.UNSUPPORTED_OPERATION,{name:en.name,operation:"new"}):(en===Object||null==en)&&this.throwError("missing new",Logger.errors.MISSING_NEW,{name:ei.name})}static globalLogger(){return eg||(eg=new Logger(ed)),eg}static setCensorship(en,ei){if(!en&&ei&&this.globalLogger().throwError("cannot permanently disable censorship",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),eu){if(!en)return;this.globalLogger().throwError("error censorship permanent",Logger.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}ef=!!en,eu=!!ei}static setLogLevel(en){let ei=ep[en.toLowerCase()];if(null==ei){Logger.globalLogger().warn("invalid log level - "+en);return}em=ei}static from(en){return new Logger(en)}};Logger.errors=es,Logger.levels=ea},85306:function(en,ei,eo){"use strict";eo.d(ei,{n:function(){return pbkdf2}});var ea=eo(16441),es=eo(2006);function pbkdf2(en,ei,eo,ed,eu){let ef,ep,em;en=(0,ea.arrayify)(en),ei=(0,ea.arrayify)(ei);let eg=1,ey=new Uint8Array(ed),eb=new Uint8Array(ei.length+4);eb.set(ei);for(let eS=1;eS<=eg;eS++){eb[ei.length]=eS>>24&255,eb[ei.length+1]=eS>>16&255,eb[ei.length+2]=eS>>8&255,eb[ei.length+3]=255&eS;let e_=(0,ea.arrayify)((0,es.Gy)(eu,en,eb));ef||(ef=e_.length,em=new Uint8Array(ef),eg=Math.ceil(ed/ef),ep=ed-(eg-1)*ef),em.set(e_);for(let ei=1;ei<eo;ei++){e_=(0,ea.arrayify)((0,es.Gy)(eu,en,e_));for(let en=0;en<ef;en++)em[en]^=e_[en]}let eR=(eS-1)*ef,eA=eS===eg?ep:ef;ey.set((0,ea.arrayify)(em).slice(0,eA),eR)}return(0,ea.hexlify)(ey)}},6881:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{Description:function(){return Description},checkProperties:function(){return checkProperties},deepCopy:function(){return deepCopy},defineReadOnly:function(){return defineReadOnly},getStatic:function(){return getStatic},resolveProperties:function(){return resolveProperties},shallowCopy:function(){return shallowCopy}});var ea=eo(1581);let es="properties/5.7.0";var __awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let ed=new ea.Logger(es);function defineReadOnly(en,ei,eo){Object.defineProperty(en,ei,{enumerable:!0,value:eo,writable:!1})}function getStatic(en,ei){for(let eo=0;eo<32;eo++){if(en[ei])return en[ei];if(!en.prototype||"object"!=typeof en.prototype)break;en=Object.getPrototypeOf(en.prototype).constructor}return null}function resolveProperties(en){return __awaiter(this,void 0,void 0,function*(){let ei=Object.keys(en).map(ei=>{let eo=en[ei];return Promise.resolve(eo).then(en=>({key:ei,value:en}))}),eo=yield Promise.all(ei);return eo.reduce((en,ei)=>(en[ei.key]=ei.value,en),{})})}function checkProperties(en,ei){en&&"object"==typeof en||ed.throwArgumentError("invalid object","object",en),Object.keys(en).forEac
4h(eo=>{ei[eo]||ed.throwArgumentError("invalid object key - "+eo,"transaction:"+eo,en)})}function shallowCopy(en){let ei={};for(let eo in en)ei[eo]=en[eo];return ei}let eu={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function _isFrozen(en){if(null==en||eu[typeof en])return!0;if(Array.isArray(en)||"object"==typeof en){if(!Object.isFrozen(en))return!1;let ei=Object.keys(en);for(let eo=0;eo<ei.length;eo++){let ea=null;try{ea=en[ei[eo]]}catch(en){continue}if(!_isFrozen(ea))return!1}return!0}return ed.throwArgumentError(`Cannot deepCopy ${typeof en}`,"object",en)}function _deepCopy(en){if(_isFrozen(en))return en;if(Array.isArray(en))return Object.freeze(en.map(en=>deepCopy(en)));if("object"==typeof en){let ei={};for(let eo in en){let ea=en[eo];void 0!==ea&&defineReadOnly(ei,eo,deepCopy(ea))}return ei}return ed.throwArgumentError(`Cannot deepCopy ${typeof en}`,"object",en)}function deepCopy(en){return _deepCopy(en)}let Description=class Description{constructor(en){for(let ei in en)this[ei]=deepCopy(en[ei])}}},85751:function(en){"use strict";for(var ei="qpzry9x8gf2tvdw0s3jn54khce6mua7l",eo={},ea=0;ea<ei.length;ea++){var es=ei.charAt(ea);if(void 0!==eo[es])throw TypeError(es+" is ambiguous");eo[es]=ea}function polymodStep(en){var ei=en>>25;return(33554431&en)<<5^996825010&-(ei>>0&1)^642813549&-(ei>>1&1)^513874426&-(ei>>2&1)^1027748829&-(ei>>3&1)^705979059&-(ei>>4&1)}function prefixChk(en){for(var ei=1,eo=0;eo<en.length;++eo){var ea=en.charCodeAt(eo);if(ea<33||ea>126)return"Invalid prefix ("+en+")";ei=polymodStep(ei)^ea>>5}for(eo=0,ei=polymodStep(ei);eo<en.length;++eo){var es=en.charCodeAt(eo);ei=polymodStep(ei)^31&es}return ei}function encode(en,eo,ea){if(ea=ea||90,en.length+7+eo.length>ea)throw TypeError("Exceeds length limit");var es=prefixChk(en=en.toLowerCase());if("string"==typeof es)throw Error(es);for(var ed=en+"1",eu=0;eu<eo.length;++eu){var ef=eo[eu];if(ef>>5!=0)throw Error("Non 5-bit word");es=polymodStep(es)^ef,ed+=ei.charAt(ef)}for(eu=0;eu<6;++eu)es=polymodStep(es);for(es^=1,eu=0;eu<6;++eu){var ep=es>>(5-eu)*5&31;ed+=ei.charAt(ep)}return ed}function __decode(en,ei){if(ei=ei||90,en.length<8)return en+" too short";if(en.length>ei)return"Exceeds length limit";var ea=en.toLowerCase(),es=en.toUpperCase();if(en!==ea&&en!==es)return"Mixed-case string "+en;var ed=(en=ea).lastIndexOf("1");if(-1===ed)return"No separator character for "+en;if(0===ed)return"Missing prefix for "+en;var eu=en.slice(0,ed),ef=en.slice(ed+1);if(ef.length<6)return"Data too short";var ep=prefixChk(eu);if("string"==typeof ep)return ep;for(var em=[],eg=0;eg<ef.length;++eg){var ey=ef.charAt(eg),eb=eo[ey];if(void 0===eb)return"Unknown character "+ey;ep=polymodStep(ep)^eb,eg+6>=ef.length||em.push(eb)}return 1!==ep?"Invalid checksum for "+en:{prefix:eu,words:em}}function decodeUnsafe(){var en=__decode.apply(null,arguments);if("object"==typeof en)return en}function decode(en){var ei=__decode.apply(null,arguments);if("object"==typeof ei)return ei;throw Error(ei)}function convert(en,ei,eo,ea){for(var es=0,ed=0,eu=(1<<eo)-1,ef=[],ep=0;ep<en.length;++ep)for(es=es<<ei|en[ep],ed+=ei;ed>=eo;)ef.push(es>>(ed-=eo)&eu);if(ea)ed>0&&ef.push(es<<eo-ed&eu);else{if(ed>=ei)return"Excess padding";if(es<<eo-ed&eu)return"Non-zero padding"}return ef}function toWordsUnsafe(en){var ei=convert(en,8,5,!0);if(Array.isArray(ei))return ei}function toWords(en){var ei=convert(en,8,5,!0);if(Array.isArray(ei))return ei;throw Error(ei)}function fromWordsUnsafe(en){var ei=convert(en,5,8,!1);if(Array.isArray(ei))return ei}function fromWords(en){var ei=convert(en,5,8,!1);if(Array.isArray(ei))return ei;throw Error(ei)}en.exports={decodeUnsafe:decodeUnsafe,decode:decode,encode:encode,toWordsUnsafe:toWordsUnsafe,toWords:toWords,fromWordsUnsafe:fromWordsUnsafe,fromWords:fromWords}},22118:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{randomBytes:function(){return ea.O},shuffled:function(){return es.y}});var ea=eo(5634),es=eo(52472)},5634:function(en,ei,eo){"use strict";eo.d(ei,{O:function(){return randomBytes}});var ea=eo(16441),es=eo(1581);let ed="random/5.7.0",eu=new es.Logger(ed);function getGlobal(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw Error("unable to locate global object")}let ef=getGlobal(),ep=ef.crypto||ef.msCrypto;function randomBytes(en){(en<=0||en>
41024||en%1||en!=en)&&eu.throwArgumentError("invalid length","length",en);let ei=new Uint8Array(en);return ep.getRandomValues(ei),(0,ea.arrayify)(ei)}ep&&ep.getRandomValues||(eu.warn("WARNING: Missing strong random number source"),ep={getRandomValues:function(en){return eu.throwError("no secure random source avaialble",es.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},52472:function(en,ei,eo){"use strict";function shuffled(en){en=en.slice();for(let ei=en.length-1;ei>0;ei--){let eo=Math.floor(Math.random()*(ei+1)),ea=en[ei];en[ei]=en[eo],en[eo]=ea}return en}eo.d(ei,{y:function(){return shuffled}})},59052:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{decode:function(){return decode},encode:function(){return encode}});var ea=eo(16441),es=eo(1581);let ed="rlp/5.7.0",eu=new es.Logger(ed);function arrayifyInteger(en){let ei=[];for(;en;)ei.unshift(255&en),en>>=8;return ei}function unarrayifyInteger(en,ei,eo){let ea=0;for(let es=0;es<eo;es++)ea=256*ea+en[ei+es];return ea}function _encode(en){if(Array.isArray(en)){let ei=[];if(en.forEach(function(en){ei=ei.concat(_encode(en))}),ei.length<=55)return ei.unshift(192+ei.length),ei;let eo=arrayifyInteger(ei.length);return eo.unshift(247+eo.length),eo.concat(ei)}(0,ea.isBytesLike)(en)||eu.throwArgumentError("RLP object must be BytesLike","object",en);let ei=Array.prototype.slice.call((0,ea.arrayify)(en));if(1===ei.length&&ei[0]<=127)return ei;if(ei.length<=55)return ei.unshift(128+ei.length),ei;let eo=arrayifyInteger(ei.length);return eo.unshift(183+eo.length),eo.concat(ei)}function encode(en){return(0,ea.hexlify)(_encode(en))}function _decodeChildren(en,ei,eo,ea){let ed=[];for(;eo<ei+1+ea;){let ef=_decode(en,eo);ed.push(ef.result),(eo+=ef.consumed)>ei+1+ea&&eu.throwError("child data too short",es.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+ea,result:ed}}function _decode(en,ei){if(0===en.length&&eu.throwError("data too short",es.Logger.errors.BUFFER_OVERRUN,{}),en[ei]>=248){let eo=en[ei]-247;ei+1+eo>en.length&&eu.throwError("data short segment too short",es.Logger.errors.BUFFER_OVERRUN,{});let ea=unarrayifyInteger(en,ei+1,eo);return ei+1+eo+ea>en.length&&eu.throwError("data long segment too short",es.Logger.errors.BUFFER_OVERRUN,{}),_decodeChildren(en,ei,ei+1+eo,eo+ea)}if(en[ei]>=192){let eo=en[ei]-192;return ei+1+eo>en.length&&eu.throwError("data array too short",es.Logger.errors.BUFFER_OVERRUN,{}),_decodeChildren(en,ei,ei+1,eo)}if(en[ei]>=184){let eo=en[ei]-183;ei+1+eo>en.length&&eu.throwError("data array too short",es.Logger.errors.BUFFER_OVERRUN,{});let ed=unarrayifyInteger(en,ei+1,eo);ei+1+eo+ed>en.length&&eu.throwError("data array too short",es.Logger.errors.BUFFER_OVERRUN,{});let ef=(0,ea.hexlify)(en.slice(ei+1+eo,ei+1+eo+ed));return{consumed:1+eo+ed,result:ef}}if(en[ei]>=128){let eo=en[ei]-128;ei+1+eo>en.length&&eu.throwError("data too short",es.Logger.errors.BUFFER_OVERRUN,{});let ed=(0,ea.hexlify)(en.slice(ei+1,ei+1+eo));return{consumed:1+eo,result:ed}}return{consumed:1,result:(0,ea.hexlify)(en[ei])}}function decode(en){let ei=(0,ea.arrayify)(en),eo=_decode(ei,0);return eo.consumed!==ei.length&&eu.throwArgumentError("invalid rlp data","data",en),eo.result}},91278:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{SupportedAlgorithm:function(){return es.p},computeHmac:function(){return ea.Gy},ripemd160:function(){return ea.bP},sha256:function(){return ea.JQ},sha512:function(){return ea.o}});var ea=eo(2006),es=eo(21261)},2006:function(en,ei,eo){"use strict";eo.d(ei,{Gy:function(){return computeHmac},bP:function(){return ripemd160},JQ:function(){return sha256},o:function(){return sha512}});var ea=eo(33715),es=eo.n(ea),ed=eo(16441),eu=eo(21261),ef=eo(1581);let ep="sha2/5.7.0",em=new ef.Logger(ep);function ripemd160(en){return"0x"+es().ripemd160().update((0,ed.arrayify)(en)).digest("hex")}function sha256(en){return"0x"+es().sha256().update((0,ed.arrayify)(en)).digest("hex")}function sha512(en){return"0x"+es().sha512().update((0,ed.arrayify)(en)).digest("hex")}function computeHmac(en,ei,eo){return eu.p[en]||em.throwError("unsupported algorithm "+en,ef.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:en}),"0x"+es().hmac(es()[en],(0,ed.arrayify)(ei)).update((0,ed.arrayify)(eo)).digest("hex")}},21261:function(en,ei,eo){"use strict";var ea;eo.d(ei,{p:function(){return ea}}),function(en){en.sha256="sha256",en.sha512="sha512"}(ea||(ea={}))},67669:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{SigningKey:function(){return SigningKey},computePublicKey:function(){return computePublicKey},recoverPublicKey:function(){return recoverPublicKey}});var ea=eo(13550),es=eo.n(ea),ed=eo(33715),eu=eo.n(ed);function createCommonjsModule(en,ei,eo){return en(eo={path:ei,exports:{}
4,require:function(en,ei){return commonjsRequire(en,null==ei?eo.path:ei)}},eo.exports),eo.exports}function commonjsRequire(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==eo.g?eo.g:"undefined"!=typeof self&&self;var ef=assert;function assert(en,ei){if(!en)throw Error(ei||"Assertion failed")}assert.equal=function(en,ei,eo){if(en!=ei)throw Error(eo||"Assertion failed: "+en+" != "+ei)};var ep=createCommonjsModule(function(en,ei){var eo=ei;function toArray(en,ei){if(Array.isArray(en))return en.slice();if(!en)return[];var eo=[];if("string"!=typeof en){for(var ea=0;ea<en.length;ea++)eo[ea]=0|en[ea];return eo}if("hex"===ei){(en=en.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(en="0"+en);for(var ea=0;ea<en.length;ea+=2)eo.push(parseInt(en[ea]+en[ea+1],16))}else for(var ea=0;ea<en.length;ea++){var es=en.charCodeAt(ea),ed=es>>8,eu=255&es;ed?eo.push(ed,eu):eo.push(eu)}return eo}function zero2(en){return 1===en.length?"0"+en:en}function toHex(en){for(var ei="",eo=0;eo<en.length;eo++)ei+=zero2(en[eo].toString(16));return ei}eo.toArray=toArray,eo.zero2=zero2,eo.toHex=toHex,eo.encode=function(en,ei){return"hex"===ei?toHex(en):en}}),em=createCommonjsModule(function(en,ei){var eo=ei;function getNAF(en,ei,eo){var ea=Array(Math.max(en.bitLength(),eo)+1);ea.fill(0);for(var es=1<<ei+1,ed=en.clone(),eu=0;eu<ea.length;eu++){var ef,ep=ed.andln(es-1);ed.isOdd()?(ef=ep>(es>>1)-1?(es>>1)-ep:ep,ed.isubn(ef)):ef=0,ea[eu]=ef,ed.iushrn(1)}return ea}function getJSF(en,ei){var eo=[[],[]];en=en.clone(),ei=ei.clone();for(var ea=0,es=0;en.cmpn(-ea)>0||ei.cmpn(-es)>0;){var ed,eu,ef,ep=en.andln(3)+ea&3,em=ei.andln(3)+es&3;3===ep&&(ep=-1),3===em&&(em=-1),eu=(1&ep)==0?0:(3==(ed=en.andln(7)+ea&7)||5===ed)&&2===em?-ep:ep,eo[0].push(eu),ef=(1&em)==0?0:(3==(ed=ei.andln(7)+es&7)||5===ed)&&2===ep?-em:em,eo[1].push(ef),2*ea===eu+1&&(ea=1-ea),2*es===ef+1&&(es=1-es),en.iushrn(1),ei.iushrn(1)}return eo}function cachedProperty(en,ei,eo){var ea="_"+ei;en.prototype[ei]=function(){return void 0!==this[ea]?this[ea]:this[ea]=eo.call(this)}}function parseBytes(en){return"string"==typeof en?eo.toArray(en,"hex"):en}function intFromLE(en){return new(es())(en,"hex","le")}eo.assert=ef,eo.toArray=ep.toArray,eo.zero2=ep.zero2,eo.toHex=ep.toHex,eo.encode=ep.encode,eo.getNAF=getNAF,eo.getJSF=getJSF,eo.cachedProperty=cachedProperty,eo.parseBytes=parseBytes,eo.intFromLE=intFromLE}),eg=em.getNAF,ey=em.getJSF,eb=em.assert;function BaseCurve(en,ei){this.type=en,this.p=new(es())(ei.p,16),this.red=ei.prime?es().red(ei.prime):es().mont(this.p),this.zero=new(es())(0).toRed(this.red),this.one=new(es())(1).toRed(this.red),this.two=new(es())(2).toRed(this.red),this.n=ei.n&&new(es())(ei.n,16),this.g=ei.g&&this.pointFromJSON(ei.g,ei.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var eo=this.n&&this.p.div(this.n);!eo||eo.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var eS=BaseCurve;
vendor: 4,225 bytes, line 4
4function BasePoint(en,ei){this.curve=en,this.type=ei,this.precomputed=null}BaseCurve.prototype.point=function(){throw Error("Not implemented")},BaseCurve.prototype.validate=function(){throw Error("Not implemented")},BaseCurve.prototype._fixedNafMul=function(en,ei){eb(en.precomputed);var eo,ea,es=en._getDoubles(),ed=eg(ei,1,this._bitLength),eu=(1<<es.step+1)-(es.step%2==0?2:1);eu/=3;var ef=[];for(eo=0;eo<ed.length;eo+=es.step){ea=0;for(var ep=eo+es.step-1;ep>=eo;ep--)ea=(ea<<1)+ed[ep];ef.push(ea)}for(var em=this.jpoint(null,null,null),ey=this.jpoint(null,null,null),eS=eu;eS>0;eS--){for(eo=0;eo<ef.length;eo++)(ea=ef[eo])===eS?ey=ey.mixedAdd(es.points[eo]):ea===-eS&&(ey=ey.mixedAdd(es.points[eo].neg()));em=em.add(ey)}return em.toP()},BaseCurve.prototype._wnafMul=function(en,ei){var eo=4,ea=en._getNAFPoints(eo);eo=ea.wnd;for(var es=ea.points,ed=eg(ei,eo,this._bitLength),eu=this.jpoint(null,null,null),ef=ed.length-1;ef>=0;ef--){for(var ep=0;ef>=0&&0===ed[ef];ef--)ep++;if(ef>=0&&ep++,eu=eu.dblp(ep),ef<0)break;var em=ed[ef];eb(0!==em),eu="affine"===en.type?em>0?eu.mixedAdd(es[em-1>>1]):eu.mixedAdd(es[-em-1>>1].neg()):em>0?eu.add(es[em-1>>1]):eu.add(es[-em-1>>1].neg())}return"affine"===en.type?eu.toP():eu},BaseCurve.prototype._wnafMulAdd=function(en,ei,eo,ea,es){var ed,eu,ef,ep=this._wnafT1,em=this._wnafT2,eb=this._wnafT3,eS=0;for(ed=0;ed<ea;ed++){var e_=(ef=ei[ed])._getNAFPoints(en);ep[ed]=e_.wnd,em[ed]=e_.points}for(ed=ea-1;ed>=1;ed-=2){var eR=ed-1,eA=ed;if(1!==ep[eR]||1!==ep[eA]){eb[eR]=eg(eo[eR],ep[eR],this._bitLength),eb[eA]=eg(eo[eA],ep[eA],this._bitLength),eS=Math.max(eb[eR].length,eS),eS=Math.max(eb[eA].length,eS);continue}var ew=[ei[eR],null,null,ei[eA]];0===ei[eR].y.cmp(ei[eA].y)?(ew[1]=ei[eR].add(ei[eA]),ew[2]=ei[eR].toJ().mixedAdd(ei[eA].neg())):0===ei[eR].y.cmp(ei[eA].y.redNeg())?(ew[1]=ei[eR].toJ().mixedAdd(ei[eA]),ew[2]=ei[eR].add(ei[eA].neg())):(ew[1]=ei[eR].toJ().mixedAdd(ei[eA]),ew[2]=ei[eR].toJ().mixedAdd(ei[eA].neg()));var eO=[-3,-1,-5,-7,0,7,5,1,3],eE=ey(eo[eR],eo[eA]);for(eu=0,eS=Math.max(eE[0].length,eS),eb[eR]=Array(eS),eb[eA]=Array(eS);eu<eS;eu++){var eP=0|eE[0][eu],eC=0|eE[1][eu];eb[eR][eu]=eO[(eP+1)*3+(eC+1)],eb[eA][eu]=0,em[eR]=ew}}var eT=this.jpoint(null,null,null),eB=this._wnafT4;for(ed=eS;ed>=0;ed--){for(var eN=0;ed>=0;){var eI=!0;for(eu=0;eu<ea;eu++)eB[eu]=0|eb[eu][ed],0!==eB[eu]&&(eI=!1);if(!eI)break;eN++,ed--}if(ed>=0&&eN++,eT=eT.dblp(eN),ed<0)break;for(eu=0;eu<ea;eu++){var ex=eB[eu];0!==ex&&(ex>0?ef=em[eu][ex-1>>1]:ex<0&&(ef=em[eu][-ex-1>>1].neg()),eT="affine"===ef.type?eT.mixedAdd(ef):eT.add(ef))}}for(ed=0;ed<ea;ed++)em[ed]=null;return es?eT:eT.toP()},BaseCurve.BasePoint=BasePoint,BasePoint.prototype.eq=function(){throw Error("Not implemented")},BasePoint.prototype.validate=function(){return this.curve.validate(this)},BaseCurve.prototype.decodePoint=function(en,ei){en=em.toArray(en,ei);var eo=this.p.byteLength();if((4===en[0]||6===en[0]||7===en[0])&&en.length-1==2*eo)return 6===en[0]?eb(en[en.length-1]%2==0):7===en[0]&&eb(en[en.length-1]%2==1),this.point(en.slice(1,1+eo),en.slice(1+eo,1+2*eo));if((2===en[0]||3===en[0])&&en.length-1===eo)return this.pointFromX(en.slice(1,1+eo),3===en[0]);throw Error("Unknown point format")},BasePoint.prototype.encodeCompressed=function(en){return this.encode(en,!0)},BasePoint.prototype._encode=function(en){var ei=this.curve.p.byteLength(),eo=this.getX().toArray("be",ei);return en?[this.getY().isEven()?2:3].concat(eo):[4].concat(eo,this.getY().toArray("be",ei))},BasePoint.prototype.encode=function(en,ei){return em.encode(this._encode(ei),en)},BasePoint.prototype.precompute=function(en){if(this.precomputed)return this;var ei={doubles:null,naf:null,beta:null};return ei.naf=this._getNAFPoints(8),ei.doubles=this._getDoubles(4,en),ei.beta=this._getBeta(),this.precomputed=ei,this},BasePoint.prototype._hasDoubles=function(en){if(!this.precomputed)return!1;var ei=this.precomputed.doubles;return!!ei&&ei.points.length>=Math.ceil((en.bitLength()+1)/ei.step)},BasePoint.prototype._getDoubles=function(en,ei){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var eo=[this],ea=this,es=0;es<ei;es+=en){for(var ed=0;ed<en;ed++)ea=ea.dbl();eo.push(ea)}return{step:en,points:eo}}
4,BasePoint.prototype._getNAFPoints=function(en){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var ei=[this],eo=(1<<en)-1,ea=1===eo?null:this.dbl(),es=1;es<eo;es++)ei[es]=ei[es-1].add(ea);return{wnd:en,points:ei}},BasePoint.prototype._getBeta=function(){return null},BasePoint.prototype.dblp=function(en){for(var ei=this,eo=0;eo<en;eo++)ei=ei.dbl();return ei};var e_=createCommonjsModule(function(en){"function"==typeof Object.create?en.exports=function(en,ei){ei&&(en.super_=ei,en.prototype=Object.create(ei.prototype,{constructor:{value:en,enumerable:!1,writable:!0,configurable:!0}}))}:en.exports=function(en,ei){if(ei){en.super_=ei;var TempCtor=function(){};TempCtor.prototype=ei.prototype,en.prototype=new TempCtor,en.prototype.constructor=en}}}),eR=em.assert;function ShortCurve(en){eS.call(this,"short",en),this.a=new(es())(en.a,16).toRed(this.red),this.b=new(es())(en.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(en),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}e_(ShortCurve,eS);var eA=ShortCurve;function Point(en,ei,eo,ea){eS.BasePoint.call(this,en,"affine"),null===ei&&null===eo?(this.x=null,this.y=null,this.inf=!0):(this.x=new(es())(ei,16),this.y=new(es())(eo,16),ea&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function JPoint(en,ei,eo,ea){eS.BasePoint.call(this,en,"jacobian"),null===ei&&null===eo&&null===ea?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(es())(0)):(this.x=new(es())(ei,16),this.y=new(es())(eo,16),this.z=new(es())(ea,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}ShortCurve.prototype._getEndomorphism=function(en){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(en.beta)ei=new(es())(en.beta,16).toRed(this.red);else{var ei,eo,ea,ed=this._getEndoRoots(this.p);ei=(ei=0>ed[0].cmp(ed[1])?ed[0]:ed[1]).toRed(this.red)}if(en.lambda)eo=new(es())(en.lambda,16);else{var eu=this._getEndoRoots(this.n);0===this.g.mul(eu[0]).x.cmp(this.g.x.redMul(ei))?eo=eu[0]:(eo=eu[1],eR(0===this.g.mul(eo).x.cmp(this.g.x.redMul(ei))))}return ea=en.basis?en.basis.map(function(en){return{a:new(es())(en.a,16),b:new(es())(en.b,16)}}):this._getEndoBasis(eo),{beta:ei,lambda:eo,basis:ea}}},ShortCurve.prototype._getEndoRoots=function(en){var ei=en===this.p?this.red:es().mont(en),eo=new(es())(2).toRed(ei).redInvm(),ea=eo.redNeg(),ed=new(es())(3).toRed(ei).redNeg().redSqrt().redMul(eo);return[ea.redAdd(ed).fromRed(),ea.redSub(ed).fromRed()]},ShortCurve.prototype._getEndoBasis=function(en){for(var ei,eo,ea,ed,eu,ef,ep,em,eg,ey=this.n.ushrn(Math.floor(this.n.bitLength()/2)),eb=en,eS=this.n.clone(),e_=new(es())(1),eR=new(es())(0),eA=new(es())(0),ew=new(es())(1),eO=0;0!==eb.cmpn(0);){var eE=eS.div(eb);em=eS.sub(eE.mul(eb)),eg=eA.sub(eE.mul(e_));var eP=ew.sub(eE.mul(eR));if(!ea&&0>em.cmp(ey))ei=ep.neg(),eo=e_,ea=em.neg(),ed=eg;else if(ea&&2==++eO)break;ep=em,eS=eb,eb=em,eA=e_,e_=eg,ew=eR,eR=eP}eu=em.neg(),ef=eg;var eC=ea.sqr().add(ed.sqr());return eu.sqr().add(ef.sqr()).cmp(eC)>=0&&(eu=ei,ef=eo),ea.negative&&(ea=ea.neg(),ed=ed.neg()),eu.negative&&(eu=eu.neg(),ef=ef.neg()),[{a:ea,b:ed},{a:eu,b:ef}]},ShortCurve.prototype._endoSplit=function(en){var ei=this.endo.basis,eo=ei[0],ea=ei[1],es=ea.b.mul(en).divRound(this.n),ed=eo.b.neg().mul(en).divRound(this.n),eu=es.mul(eo.a),ef=ed.mul(ea.a),ep=es.mul(eo.b),em=ed.mul(ea.b);return{k1:en.sub(eu).sub(ef),k2:ep.add(em).neg()}},ShortCurve.prototype.pointFromX=function(en,ei){(en=new(es())(en,16)).red||(en=en.toRed(this.red));var eo=en.redSqr().redMul(en).redIAdd(en.redMul(this.a)).redIAdd(this.b),ea=eo.redSqrt();if(0!==ea.redSqr().redSub(eo).cmp(this.zero))throw Error("invalid point");var ed=ea.fromRed().isOdd();return(ei&&!ed||!ei&&ed)&&(ea=ea.redNeg()),this.point(en,ea)},ShortCurve.prototype.validate=function(en){if(en.inf)return!0;var ei=en.x,eo=en.y,ea=this.a.redMul(ei),es=ei.redSqr().redMul(ei).redIAdd(ea).redIAdd(this.b);return 0===eo.redSqr().redISub(es).cmpn(0)},ShortCurve.prototype._endoWnafMulAdd=function(en,ei,eo){for(var ea=this._endoWnafT1,es=this._endoWnafT2,ed=0;ed<en.length;ed++){var eu=this._endoSplit(ei[ed]),ef=en[ed],ep=ef._getBeta();eu.k1.negative&&(eu.k1.ineg(),ef=ef.neg(!0)),eu.k2.negative&&(eu.k2.ineg(),ep=ep.neg(!0)),ea[2*ed]=ef,ea[2*ed+1]=ep,es[2*ed]=eu.k1,es[2*ed+1]=eu.k2}for(var em=this._wnafMulAdd(1,ea,es,2*ed,eo),eg=0;eg<2*ed;eg++)ea[eg]=null,es[eg]=null;return em},e_(Point,eS.BasePoint),ShortCurve.prototype.point=function(en,ei,eo){return new Point(this,en,ei,eo)},ShortCurve.prototype.pointFromJSON=function(en,ei){return Point.fromJSON(this,en,ei)},Point.prototype._getBeta=function(){if(this.curve.endo){var en=this.prec
vendor: 8,323 bytes, line 4
4omputed;if(en&&en.beta)return en.beta;var ei=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(en){var eo=this.curve,endoMul=function(en){return eo.point(en.x.redMul(eo.endo.beta),en.y)};en.beta=ei,ei.precomputed={beta:null,naf:en.naf&&{wnd:en.naf.wnd,points:en.naf.points.map(endoMul)},doubles:en.doubles&&{step:en.doubles.step,points:en.doubles.points.map(endoMul)}}}return ei}},Point.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point.fromJSON=function(en,ei,eo){"string"==typeof ei&&(ei=JSON.parse(ei));var ea=en.point(ei[0],ei[1],eo);if(!ei[2])return ea;function obj2point(ei){return en.point(ei[0],ei[1],eo)}var es=ei[2];return ea.precomputed={beta:null,doubles:es.doubles&&{step:es.doubles.step,points:[ea].concat(es.doubles.points.map(obj2point))},naf:es.naf&&{wnd:es.naf.wnd,points:[ea].concat(es.naf.points.map(obj2point))}},ea},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return this.inf},Point.prototype.add=function(en){if(this.inf)return en;if(en.inf)return this;if(this.eq(en))return this.dbl();if(this.neg().eq(en)||0===this.x.cmp(en.x))return this.curve.point(null,null);var ei=this.y.redSub(en.y);0!==ei.cmpn(0)&&(ei=ei.redMul(this.x.redSub(en.x).redInvm()));var eo=ei.redSqr().redISub(this.x).redISub(en.x),ea=ei.redMul(this.x.redSub(eo)).redISub(this.y);return this.curve.point(eo,ea)},Point.prototype.dbl=function(){if(this.inf)return this;var en=this.y.redAdd(this.y);if(0===en.cmpn(0))return this.curve.point(null,null);var ei=this.curve.a,eo=this.x.redSqr(),ea=en.redInvm(),es=eo.redAdd(eo).redIAdd(eo).redIAdd(ei).redMul(ea),ed=es.redSqr().redISub(this.x.redAdd(this.x)),eu=es.redMul(this.x.redSub(ed)).redISub(this.y);return this.curve.point(ed,eu)},Point.prototype.getX=function(){return this.x.fromRed()},Point.prototype.getY=function(){return this.y.fromRed()},Point.prototype.mul=function(en){return(en=new(es())(en,16),this.isInfinity())?this:this._hasDoubles(en)?this.curve._fixedNafMul(this,en):this.curve.endo?this.curve._endoWnafMulAdd([this],[en]):this.curve._wnafMul(this,en)},Point.prototype.mulAdd=function(en,ei,eo){var ea=[this,ei],es=[en,eo];return this.curve.endo?this.curve._endoWnafMulAdd(ea,es):this.curve._wnafMulAdd(1,ea,es,2)},Point.prototype.jmulAdd=function(en,ei,eo){var ea=[this,ei],es=[en,eo];return this.curve.endo?this.curve._endoWnafMulAdd(ea,es,!0):this.curve._wnafMulAdd(1,ea,es,2,!0)},Point.prototype.eq=function(en){return this===en||this.inf===en.inf&&(this.inf||0===this.x.cmp(en.x)&&0===this.y.cmp(en.y))},Point.prototype.neg=function(en){if(this.inf)return this;var ei=this.curve.point(this.x,this.y.redNeg());if(en&&this.precomputed){var eo=this.precomputed,negate=function(en){return en.neg()};ei.precomputed={naf:eo.naf&&{wnd:eo.naf.wnd,points:eo.naf.points.map(negate)},doubles:eo.doubles&&{step:eo.doubles.step,points:eo.doubles.points.map(negate)}}}return ei},Point.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},e_(JPoint,eS.BasePoint),ShortCurve.prototype.jpoint=function(en,ei,eo){return new JPoint(this,en,ei,eo)},JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var en=this.z.redInvm(),ei=en.redSqr(),eo=this.x.redMul(ei),ea=this.y.redMul(ei).redMul(en);return this.curve.point(eo,ea)},JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JPoint.prototype.add=function(en){if(this.isInfinity())return en;if(en.isInfinity())return this;var ei=en.z.redSqr(),eo=this.z.redSqr(),ea=this.x.redMul(ei),es=en.x.redMul(eo),ed=this.y.redMul(ei.redMul(en.z)),eu=en.y.redMul(eo.redMul(this.z)),ef=ea.redSub(es),ep=ed.redSub(eu);if(0===ef.cmpn(0))return 0!==ep.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var em=ef.redSqr(),eg=em.redMul(ef),ey=ea.redMul(em),eb=ep.redSqr().redIAdd(eg).redISub(ey).redISub(ey),eS=ep.redMul(ey.redISub(eb)).redISub(ed.redMul(eg)),e_=this.z.redMul(en.z).redMul(ef);return this.curve.jpoint(eb,eS,e_)},JPoint.prototype.mixedAdd=function(en){if(this.isInfinity())return en.toJ();if(en.isInfinity())return this;var ei=this.z.redSqr(),eo=this.x,ea=en.x.redMul(ei),es=this.y,ed=en.y.redMul(ei).redMul(this.z),eu=eo.redSub(ea),ef=es.redSub(ed);if(0===eu.cmpn(0))return 0!==ef.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ep=eu.redSqr(),em=ep.redMul(eu),eg=eo.redMul(ep),ey=ef.redSqr().redIAdd(em).redISub(eg).redISub(eg),eb=ef.redMul(eg.redISub(ey)).redISub(es.redMul(em)),eS=this.z.redMul(eu);return this.curve.jpoint(ey,eb,eS)},JPoint.prototype.dblp=function(en){if(0===en||this.isInfinity())return this;if(!en)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var ei,eo=this;for(ei=0;ei<en;ei++)eo=eo.dbl();return eo}var ea=this.curve.a,es=this.curve.tinv,ed=this.x,eu=this.y,ef=this.z,ep=ef.redSqr().redSqr(),em=eu.redAdd(eu);for(ei=0;ei<en;ei++){var eg=ed.redSqr(),ey=em.redSqr(),eb=ey.redSqr(),eS=eg.redAdd(eg).redIAdd(eg).redIAdd(ea.redMul(ep)),e_=ed.redMul(ey),eR=eS.redSqr().redISub(e_.redAdd(e_)),eA=e_.redISub(eR),ew=eS.redMul(eA);ew=ew.redIAdd(ew).redISub(eb);var eO=em.redMul(ef);ei+1<en&&(ep=ep.redMul(eb)),ed=eR,ef=eO,em=ew}return this.curve.jpoint(ed,em.redMul(es),ef)},JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},JPoint.prototype._zeroDbl=function(){if(this.zOne){var en,ei,eo,ea=this.x.redSqr(),es=this.y.redSqr(),ed=es.redSqr(),eu=this.x.redAdd(es).redSqr().redISub(ea).redISub(ed);eu=eu.redIAdd(eu);var ef=ea.redAdd(ea).redIAdd(ea),ep=ef.redSqr().redISub(eu).redISub(eu),em=ed.redIAdd(ed);em=(em=em.redIAdd(em)).redIAdd(em),en=ep,ei=ef.redMul(eu.redISub(ep)).redISub(em),eo=this.y.redAdd(this.y)}else{var eg=this.x.redSqr(),ey=this.y.redSqr(),eb=ey.redSqr(),eS=this.x.redAdd(ey).redSqr().redISub(eg).redISub(eb);eS=eS.redIAdd(eS);var e_=eg.redAdd(eg).redIAdd(eg),eR=e_.redSqr(),eA=eb.redIAdd(eb);eA=(eA=eA.redIAdd(eA)).redIAdd(eA),en=eR.redISub(eS).redISub(eS),ei=e_.redMul(eS.redISub(en)).redISub(eA),eo=(eo=this.y.redMul(this.z)).redIAdd(eo)}return this.curve.jpoint(en,ei,eo)},JPoint.prototype._threeDbl=function(){if(this.zOne){var en,ei,eo,ea=this.x.redSqr(),es=this.y.redSqr(),ed=es.redSqr(),eu=this.x.redAdd(es).redSqr().redISub(ea).redISub(ed);eu=eu.redIAdd(eu);var ef=ea.redAdd(ea).redIAdd(ea).redIAdd(this.curve.a),ep=ef.redSqr().redISub(eu).redISub(eu);en=ep;var em=ed.redIAdd(ed);em=(em=em.redIAdd(em)).redIAdd(em),ei=ef.redMul(eu.redISub(ep)).redISub(em),eo=this.y.redAdd(this.y)}else{var eg=this.z.redSqr(),ey=this.y.redSqr(),eb=this.x.redMul(ey),eS=this.x.redSub(eg).redMul(this.x.redAdd(eg));eS=eS.redAdd(eS).redIAdd(eS);var e_=eb.redIAdd(eb),eR=(e_=e_.redIAdd(e_)).redAdd(e_);en=eS.redSqr().redISub(eR),eo=this.y.redAdd(this.z).redSqr().redISub(ey).redISub(eg);var eA=ey.redSqr();eA=(eA=(eA=eA.redIAdd(eA)).redIAdd(eA)).redIAdd(eA),ei=eS.redMul(e_.redISub(en)).redISub(eA)}return this.curve.jpoint(en,ei,eo)},JPoint.prototype._dbl=function(){var en=this.curve.a,ei=this.x,eo=this.y,ea=this.z,es=ea.redSqr().redSqr(),ed=ei.redSqr(),eu=eo.redSqr(),ef=ed.redAdd(ed).redIAdd(ed).redIAdd(en.redMul(es)),ep=ei.redAdd(ei),em=(ep=ep.redIAdd(ep)).redMul(eu),eg=ef.redSqr().redISub(em.redAdd(em)),ey=em.redISub(eg),eb=eu.redSqr();eb=(eb=(eb=eb.redIAdd(eb)).redIAdd(eb)).redIAdd(eb);var eS=ef.redMul(ey).redISub(eb),e_=eo.redAdd(eo).redMul(ea);return this.curve.jpoint(eg,eS,e_)},JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var en=this.x.redSqr(),ei=this.y.redSqr(),eo=this.z.redSqr(),ea=ei.redSqr(),es=en.redAdd(en).redIAdd(en),ed=es.redSqr(),eu=this.x.redAdd(ei).redSqr().redISub(en).redISub(ea),ef=(eu=(eu=(eu=eu.redIAdd(eu)).redAdd(eu).redIAdd(eu)).redISub(ed)).redSqr(),ep=ea.redIAdd(ea);ep=(ep=(ep=ep.redIAdd(ep)).redIAdd(ep)).redIAdd(ep);var em=es.redIAdd(eu).redSqr().redISub(ed).redISub(ef).redISub(ep),eg=ei.redMul(em);
vendor: 11,066 bytes, line 4
4eg=(eg=eg.redIAdd(eg)).redIAdd(eg);var ey=this.x.redMul(ef).redISub(eg);ey=(ey=ey.redIAdd(ey)).redIAdd(ey);var eb=this.y.redMul(em.redMul(ep.redISub(em)).redISub(eu.redMul(ef)));eb=(eb=(eb=eb.redIAdd(eb)).redIAdd(eb)).redIAdd(eb);var eS=this.z.redAdd(eu).redSqr().redISub(eo).redISub(ef);return this.curve.jpoint(ey,eb,eS)},JPoint.prototype.mul=function(en,ei){return en=new(es())(en,ei),this.curve._wnafMul(this,en)},JPoint.prototype.eq=function(en){if("affine"===en.type)return this.eq(en.toJ());if(this===en)return!0;var ei=this.z.redSqr(),eo=en.z.redSqr();if(0!==this.x.redMul(eo).redISub(en.x.redMul(ei)).cmpn(0))return!1;var ea=ei.redMul(this.z),es=eo.redMul(en.z);return 0===this.y.redMul(es).redISub(en.y.redMul(ea)).cmpn(0)},JPoint.prototype.eqXToP=function(en){var ei=this.z.redSqr(),eo=en.toRed(this.curve.red).redMul(ei);if(0===this.x.cmp(eo))return!0;for(var ea=en.clone(),es=this.curve.redN.redMul(ei);;){if(ea.iadd(this.curve.n),ea.cmp(this.curve.p)>=0)return!1;if(eo.redIAdd(es),0===this.x.cmp(eo))return!0}},JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},JPoint.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var ew=createCommonjsModule(function(en,ei){var eo=ei;eo.base=eS,eo.short=eA,eo.mont=null,eo.edwards=null}),eO=createCommonjsModule(function(en,ei){var eo,ea=ei,es=em.assert;function PresetCurve(en){"short"===en.type?this.curve=new ew.short(en):"edwards"===en.type?this.curve=new ew.edwards(en):this.curve=new ew.mont(en),this.g=this.curve.g,this.n=this.curve.n,this.hash=en.hash,es(this.g.validate(),"Invalid curve"),es(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function defineCurve(en,ei){Object.defineProperty(ea,en,{configurable:!0,enumerable:!0,get:function(){var eo=new PresetCurve(ei);return Object.defineProperty(ea,en,{configurable:!0,enumerable:!0,value:eo}),eo}})}ea.PresetCurve=PresetCurve,defineCurve("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:eu().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),defineCurve("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:eu().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),defineCurve("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:eu().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),defineCurve("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:eu().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),defineCurve("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:eu().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:eu().sha256,gRed:!1,g:["9"]}),defineCurve("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:eu().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{eo=null.crash()}catch(en){eo=void 0}defineCurve("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:eu().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",eo]})});function HmacDRBG(en){if(!(this instanceof HmacDRBG))return new HmacDRBG(en);this.hash=en.hash,this.predResist=!!en.predResist,this.outLen=this.hash.outSize,this.minEntropy=en.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var ei=ep.toArray(en.entropy,en.entropyEnc||"hex"),eo=ep.toArray(en.nonce,en.nonceEnc||"hex"),ea=ep.toArray(en.pers,en.persEnc||"hex");ef(ei.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(ei,eo,ea)}var eE=HmacDRBG;HmacDRBG.prototype._init=function(en,ei,eo){var ea=en.concat(ei).concat(eo);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var es=0;es<this.V.length;es++)this.K[es]=0,this.V[es]=1;this._update(ea),this._reseed=1,this.reseedInterval=281474976710656},HmacDRBG.prototype._hmac=function(){return new(eu()).hmac(this.hash,this.K)},HmacDRBG.prototype._update=function(en){var ei=this._hmac().update(this.V).update([0]);en&&(ei=ei.update(en)),this.K=ei.digest(),this.V=this._hmac().update(this.V).digest(),en&&(this.K=this._hmac().update(this.V).update([1]).update(en).digest(),this.V=this._hmac().update(this.V).digest())},HmacDRBG.prototype.reseed=function(en,ei,eo,ea){"string"!=typeof ei&&(ea=eo,eo=ei,ei=null),en=ep.toArray(en,ei),eo=ep.toArray(eo,ea),ef(en.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(en.concat(eo||[])),this._reseed=1},HmacDRBG.prototype.generate=function(en,ei,eo,ea){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof ei&&(ea=eo,eo=ei,ei=null),eo&&(eo=ep.toArray(eo,ea||"hex"),this._update(eo));for(var es=[];es.length<en;)this.V=this._hmac().update(this.V).digest(),es=es.concat(this.V);var ed=es.slice(0,en);return this._update(eo),this._reseed++,ep.encode(ed,ei)};var eP=em.assert;function KeyPair(en,ei){this.ec=en,this.priv=null,this.pub=null,ei.priv&&this._importPrivate(ei.priv,ei.privEnc),ei.pub&&this._importPublic(ei.pub,ei.pubEnc)}var eC=KeyPair;KeyPair.fromPublic=function(en,ei,eo){return ei instanceof KeyPair?ei:new KeyPair(en,{pub:ei,pubEnc:eo})},KeyPair.fromPrivate=function(en,ei,eo){return ei instanceof KeyPair?ei:new KeyPair(en,{priv:ei,privEnc:eo})},KeyPair.prototype.validate=function(){var en=this.getPublic();return en.isInfinity()?{result:!1,reason:"Invalid public key"}:en.validate()?en.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},KeyPair.prototype.getPublic=function(en,ei){return("string"==typeof en&&(ei=en,en=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),ei)?this.pub.encode(ei,en):this.pub},KeyPair.prototype.getPrivate=function(en){return"hex"===en?this.priv.toString(16,2):this.priv},KeyPair.prototype._importPrivate=function(en,ei){this.priv=new(es())(en,ei||16),this.priv=this.priv.umod(this.ec.curve.n)},KeyPair.prototype._importPublic=function(en,ei){if(en.x||en.y){"mont"===this.ec.curve.type?eP(en.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&eP(en.x&&en.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(en.x,en.y);return}this.pub=this.ec.curve.decodePoint(en,ei)},KeyPair.prototype.derive=function(en){return en.validate()||eP(en.validate(),"public point not validated"),en.mul(this.priv).getX()},KeyPair.prototype.sign=function(en,ei,eo){return this.ec.sign(en,this,ei,eo)},KeyPair.prototype.verify=function(en,ei){return this.ec.verify(en,ei,this)},KeyPair.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var eT=em.assert;function Signature(en,ei){if(en instanceof Signature)return en;this._importDER(en,ei)||(eT(en.r&&en.s,"Signature without r or s"),this.r=new(es())(en.r,16),this.s=new(es())(en.s,16),void 0===en.recoveryParam?this.recoveryParam=null:this.recoveryParam=en.recoveryParam)}var eB=Signature;function Position(){this.place=0}function getLength(en,ei){var eo=en[ei.place++];if(!(128&eo))return eo;var ea=15&eo;if(0===ea||ea>4)return!1;for(var es=0,ed=0,eu=ei.place;ed<ea;ed++,eu++)es<<=8,es|=en[eu],es>>>=0;return!(es<=127)&&(ei.place=eu,es)}function rmPadding(en){for(var ei=0,eo=en.length-1;!en[ei]&&!(128&en[ei+1])&&ei<eo;)ei++;return 0===ei?en:en.slice(ei)}function constructLength(en,ei){if(ei<128){en.push(ei);return}var eo=1+(Math.log(ei)/Math.LN2>>>3);for(en.push(128|eo);--eo;
4)en.push(ei>>>(eo<<3)&255);en.push(ei)}Signature.prototype._importDER=function(en,ei){en=em.toArray(en,ei);var eo=new Position;if(48!==en[eo.place++])return!1;var ea=getLength(en,eo);if(!1===ea||ea+eo.place!==en.length||2!==en[eo.place++])return!1;var ed=getLength(en,eo);if(!1===ed)return!1;var eu=en.slice(eo.place,ed+eo.place);if(eo.place+=ed,2!==en[eo.place++])return!1;var ef=getLength(en,eo);if(!1===ef||en.length!==ef+eo.place)return!1;var ep=en.slice(eo.place,ef+eo.place);if(0===eu[0]){if(!(128&eu[1]))return!1;eu=eu.slice(1)}if(0===ep[0]){if(!(128&ep[1]))return!1;ep=ep.slice(1)}return this.r=new(es())(eu),this.s=new(es())(ep),this.recoveryParam=null,!0},Signature.prototype.toDER=function(en){var ei=this.r.toArray(),eo=this.s.toArray();for(128&ei[0]&&(ei=[0].concat(ei)),128&eo[0]&&(eo=[0].concat(eo)),ei=rmPadding(ei),eo=rmPadding(eo);!eo[0]&&!(128&eo[1]);)eo=eo.slice(1);var ea=[2];constructLength(ea,ei.length),(ea=ea.concat(ei)).push(2),constructLength(ea,eo.length);var es=ea.concat(eo),ed=[48];return constructLength(ed,es.length),ed=ed.concat(es),em.encode(ed,en)};var rand=function(){throw Error("unsupported")},eN=em.assert;function EC(en){if(!(this instanceof EC))return new EC(en);"string"==typeof en&&(eN(Object.prototype.hasOwnProperty.call(eO,en),"Unknown curve "+en),en=eO[en]),en instanceof eO.PresetCurve&&(en={curve:en}),this.curve=en.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=en.curve.g,this.g.precompute(en.curve.n.bitLength()+1),this.hash=en.hash||en.curve.hash}var eI=EC;EC.prototype.keyPair=function(en){return new eC(this,en)},EC.prototype.keyFromPrivate=function(en,ei){return eC.fromPrivate(this,en,ei)},EC.prototype.keyFromPublic=function(en,ei){return eC.fromPublic(this,en,ei)},EC.prototype.genKeyPair=function(en){en||(en={});for(var ei=new eE({hash:this.hash,pers:en.pers,persEnc:en.persEnc||"utf8",entropy:en.entropy||rand(this.hash.hmacStrength),entropyEnc:en.entropy&&en.entropyEnc||"utf8",nonce:this.n.toArray()}),eo=this.n.byteLength(),ea=this.n.sub(new(es())(2));;){var ed=new(es())(ei.generate(eo));if(!(ed.cmp(ea)>0))return ed.iaddn(1),this.keyFromPrivate(ed)}},EC.prototype._truncateToN=function(en,ei){var eo=8*en.byteLength()-this.n.bitLength();return(eo>0&&(en=en.ushrn(eo)),!ei&&en.cmp(this.n)>=0)?en.sub(this.n):en},EC.prototype.sign=function(en,ei,eo,ea){"object"==typeof eo&&(ea=eo,eo=null),ea||(ea={}),ei=this.keyFromPrivate(ei,eo),en=this._truncateToN(new(es())(en,16));for(var ed=this.n.byteLength(),eu=ei.getPrivate().toArray("be",ed),ef=en.toArray("be",ed),ep=new eE({hash:this.hash,entropy:eu,nonce:ef,pers:ea.pers,persEnc:ea.persEnc||"utf8"}),em=this.n.sub(new(es())(1)),eg=0;;eg++){var ey=ea.k?ea.k(eg):new(es())(ep.generate(this.n.byteLength()));if(!(0>=(ey=this._truncateToN(ey,!0)).cmpn(1)||ey.cmp(em)>=0)){var eb=this.g.mul(ey);if(!eb.isInfinity()){var eS=eb.getX(),e_=eS.umod(this.n);if(0!==e_.cmpn(0)){var eR=ey.invm(this.n).mul(e_.mul(ei.getPrivate()).iadd(en));if(0!==(eR=eR.umod(this.n)).cmpn(0)){var eA=(eb.getY().isOdd()?1:0)|(0!==eS.cmp(e_)?2:0);return ea.canonical&&eR.cmp(this.nh)>0&&(eR=this.n.sub(eR),eA^=1),new eB({r:e_,s:eR,recoveryParam:eA})}}}}}},EC.prototype.verify=function(en,ei,eo,ea){en=this._truncateToN(new(es())(en,16)),eo=this.keyFromPublic(eo,ea);var ed,eu=(ei=new eB(ei,"hex")).r,ef=ei.s;if(0>eu.cmpn(1)||eu.cmp(this.n)>=0||0>ef.cmpn(1)||ef.cmp(this.n)>=0)return!1;var ep=ef.invm(this.n),em=ep.mul(en).umod(this.n),eg=ep.mul(eu).umod(this.n);return this.curve._maxwellTrick?!(ed=this.g.jmulAdd(em,eo.getPublic(),eg)).isInfinity()&&ed.eqXToP(eu):!(ed=this.g.mulAdd(em,eo.getPublic(),eg)).isInfinity()&&0===ed.getX().umod(this.n).cmp(eu)},EC.prototype.recoverPubKey=function(en,ei,eo,ea){eN((3&eo)===eo,"The recovery param is more than two bits"),ei=new eB(ei,ea);var ed=this.n,eu=new(es())(en),ef=ei.r,ep=ei.s,em=1&eo,eg=eo>>1;if(ef.cmp(this.curve.p.umod(this.curve.n))>=0&&eg)throw Error("Unable to find sencond key candinate");ef=eg?this.curve.pointFromX(ef.add(this.curve.n),em):this.curve.pointFromX(ef,em);var ey=ei.r.invm(ed),eb=ed.sub(eu).mul(ey).umod(ed),eS=ep.mul(ey).umod(ed);return this.g.mulAdd(eb,ef,eS)},EC.prototype.getKeyRecoveryParam=function(en,ei,eo,ea){if(null!==(ei=new eB(ei,ea)).recoveryParam)return ei.recoveryParam;for(var es,ed=0;ed<4;ed++){try{es=this.recoverPubKey(en,ei,ed)}catch(en){continue}if(es.eq(eo))return ed}throw Error("Unable to find valid recovery factor")};var ex=createCommonjsModule(function(en,ei){var eo=ei;eo.version="6.5.4",eo.utils=em,eo.rand=function(){throw Error("unsupported")},eo.curve=ew,eo.curves=eO,eo.ec=eI,eo.eddsa=null}).ec,eM=eo(16441),eD=eo(6881),eU=eo(1581);let eL="signing-key/5.7.0",eJ=new eU.Logger(eL),eF=null;
4function getCurve(){return eF||(eF=new ex("secp256k1")),eF}let SigningKey=class SigningKey{constructor(en){(0,eD.defineReadOnly)(this,"curve","secp256k1"),(0,eD.defineReadOnly)(this,"privateKey",(0,eM.hexlify)(en)),32!==(0,eM.hexDataLength)(this.privateKey)&&eJ.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let ei=getCurve().keyFromPrivate((0,eM.arrayify)(this.privateKey));(0,eD.defineReadOnly)(this,"publicKey","0x"+ei.getPublic(!1,"hex")),(0,eD.defineReadOnly)(this,"compressedPublicKey","0x"+ei.getPublic(!0,"hex")),(0,eD.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(en){let ei=getCurve().keyFromPublic((0,eM.arrayify)(this.publicKey)),eo=getCurve().keyFromPublic((0,eM.arrayify)(en));return"0x"+ei.pub.add(eo.pub).encodeCompressed("hex")}signDigest(en){let ei=getCurve().keyFromPrivate((0,eM.arrayify)(this.privateKey)),eo=(0,eM.arrayify)(en);32!==eo.length&&eJ.throwArgumentError("bad digest length","digest",en);let ea=ei.sign(eo,{canonical:!0});return(0,eM.splitSignature)({recoveryParam:ea.recoveryParam,r:(0,eM.hexZeroPad)("0x"+ea.r.toString(16),32),s:(0,eM.hexZeroPad)("0x"+ea.s.toString(16),32)})}computeSharedSecret(en){let ei=getCurve().keyFromPrivate((0,eM.arrayify)(this.privateKey)),eo=getCurve().keyFromPublic((0,eM.arrayify)(computePublicKey(en)));return(0,eM.hexZeroPad)("0x"+ei.derive(eo.getPublic()).toString(16),32)}static isSigningKey(en){return!!(en&&en._isSigningKey)}};function recoverPublicKey(en,ei){let eo=(0,eM.splitSignature)(ei),ea={r:(0,eM.arrayify)(eo.r),s:(0,eM.arrayify)(eo.s)};return"0x"+getCurve().recoverPubKey((0,eM.arrayify)(en),ea,eo.recoveryParam).encode("hex",!1)}function computePublicKey(en,ei){let eo=(0,eM.arrayify)(en);if(32===eo.length){let en=new SigningKey(eo);return ei?"0x"+getCurve().keyFromPrivate(eo).getPublic(!0,"hex"):en.publicKey}return 33===eo.length?ei?(0,eM.hexlify)(eo):"0x"+getCurve().keyFromPublic(eo).getPublic(!1,"hex"):65===eo.length?ei?"0x"+getCurve().keyFromPublic(eo).getPublic(!0,"hex"):(0,eM.hexlify)(eo):eJ.throwArgumentError("invalid public or private key","key","[REDACTED]")}},31886:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{keccak256:function(){return keccak256},pack:function(){return pack},sha256:function(){return sha256}});var ea=eo(2593),es=eo(16441),ed=eo(38197),eu=eo(2006),ef=eo(29251),ep=eo(1581);let em="solidity/5.7.0",eg=RegExp("^bytes([0-9]+)$"),ey=RegExp("^(u?int)([0-9]*)$"),eb=RegExp("^(.*)\\[([0-9]*)\\]$"),eS="0000000000000000000000000000000000000000000000000000000000000000",e_=new ep.Logger(em);function _pack(en,ei,eo){switch(en){case"address":if(eo)return(0,es.zeroPad)(ei,32);return(0,es.arrayify)(ei);case"string":return(0,ef.Y0)(ei);case"bytes":return(0,es.arrayify)(ei);case"bool":if(ei=ei?"0x01":"0x00",eo)return(0,es.zeroPad)(ei,32);return(0,es.arrayify)(ei)}let ed=en.match(ey);if(ed){let eu=parseInt(ed[2]||"256");return(ed[2]&&String(eu)!==ed[2]||eu%8!=0||0===eu||eu>256)&&e_.throwArgumentError("invalid number type","type",en),eo&&(eu=256),ei=ea.O$.from(ei).toTwos(eu),(0,es.zeroPad)(ei,eu/8)}if(ed=en.match(eg)){let ea=parseInt(ed[1]);return((String(ea)!==ed[1]||0===ea||ea>32)&&e_.throwArgumentError("invalid bytes type","type",en),(0,es.arrayify)(ei).byteLength!==ea&&e_.throwArgumentError(`invalid value for ${en}`,"value",ei),eo)?(0,es.arrayify)((ei+eS).substring(0,66)):ei}if((ed=en.match(eb))&&Array.isArray(ei)){let eo=ed[1],ea=parseInt(ed[2]||String(ei.length));ea!=ei.length&&e_.throwArgumentError(`invalid array length for ${en}`,"value",ei);let eu=[];return ei.forEach(function(en){eu.push(_pack(eo,en,!0))}),(0,es.concat)(eu)}return e_.throwArgumentError("invalid type","type",en)}function pack(en,ei){en.length!=ei.length&&e_.throwArgumentError("wrong number of values; expected ${ types.length }","values",ei);let eo=[];return en.forEach(function(en,ea){eo.push(_pack(en,ei[ea]))}),(0,es.hexlify)((0,es.concat)(eo))}function keccak256(en,ei){return(0,ed.keccak256)(pack(en,ei))}function sha256(en,ei){return(0,eu.JQ)(pack(en,ei))}},86237:function(en,ei,eo){"use strict";eo.d(ei,{F:function(){return parseBytes32String},s:function(){return formatBytes32String}});var ea=eo(57218),es=eo(16441),ed=eo(29251);function formatBytes32String(en){let ei=(0,ed.Y0)(en);if(ei.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,es.hexlify)((0,es.concat)([ei,ea.R]).slice(0,32))}function parseBytes32String(en){let ei=(0,es.arrayify)(en);if(32!==ei.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==ei[31])throw Error("invalid bytes32 string - no null terminator");let eo=31;for(;0===ei[eo-1];)eo--;return(0,ed.ZN)(ei.slice(0,eo))}},35637:function(en,ei,eo){"use strict";eo.d(ei,{Ll:function(){return nameprep}});var ea=eo(29251);function bytes2(en){if(en.length%4!=0)throw Error("bad data");let ei=[];for(let eo=0;eo<en.length;eo+=4)ei.push(parseInt(en.substring(eo,eo+4),16));return ei}function createTable(en,ei){ei||(ei=function(en){return[parseInt(en,16)]});let eo=0,ea={};return en.split(",").forEach(en=>{let es=en.split(":");ea[eo+=parseInt(es[0],16)]=ei(es[1])}),ea}function createRangeTable(en){let ei=0;return en.split(",").map(en=>{let eo=en.split("-");return 1===eo.length?eo[1]="0":""===eo[1]&&(eo[1]="1"),{l:ei+parseInt(eo[0],16),h:ei=parseInt(eo[1],16)}})}function matchMap(en,ei){let eo=0;for(let ea=0;ea<ei.length;ea++){let es=ei[ea];if(en>=(eo+=es.l)&&en<=eo+es.h&&(en-eo)%(es.d||1)==0){if(es.e&&-1!==es.e.indexOf(en-eo))continue;return es}}return null}let es=createRangeTable("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,
4115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),ed="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(en=>parseInt(en,16)),eu=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],ef=createTable("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),ep=createTable("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),em=createTable("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",bytes2),eg=createRangeTable("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function flatten(en){return en.reduce((en,ei)=>
4(ei.forEach(ei=>{en.push(ei)}),en),[])}function _nameprepTableA1(en){return!!matchMap(en,es)}function _nameprepTableB2(en){let ei=matchMap(en,eu);if(ei)return[en+ei.s];let eo=ef[en];if(eo)return eo;let ea=ep[en];return ea?[en+ea[0]]:em[en]||null}function _nameprepTableC(en){return!!matchMap(en,eg)}function nameprep(en){if(en.match(/^[a-z0-9-]*$/i)&&en.length<=59)return en.toLowerCase();let ei=(0,ea.XL)(en);ei=flatten(ei.map(en=>ed.indexOf(en)>=0||en>=65024&&en<=65039?[]:_nameprepTableB2(en)||[en])),(ei=(0,ea.XL)((0,ea.uu)(ei),ea.Uj.NFKC)).forEach(en=>{if(_nameprepTableC(en))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),ei.forEach(en=>{if(_nameprepTableA1(en))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let eo=(0,ea.uu)(ei);if("-"===eo.substring(0,1)||"--"===eo.substring(2,4)||"-"===eo.substring(eo.length-1))throw Error("invalid hyphen");return eo}},62741:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{UnicodeNormalizationForm:function(){return ed.Uj},Utf8ErrorFuncs:function(){return ed.te},Utf8ErrorReason:function(){return ed.Uw},_toEscapedUtf8String:function(){return ed.U$},formatBytes32String:function(){return ea.s},nameprep:function(){return es.Ll},parseBytes32String:function(){return ea.F},toUtf8Bytes:function(){return ed.Y0},toUtf8CodePoints:function(){return ed.XL},toUtf8String:function(){return ed.ZN}});var ea=eo(86237),es=eo(35637),ed=eo(29251)},29251:function(en,ei,eo){"use strict";eo.d(ei,{Uj:function(){return ea},te:function(){return em},Uw:function(){return es},U$:function(){return _toEscapedUtf8String},uu:function(){return _toUtf8String},Y0:function(){return toUtf8Bytes},XL:function(){return toUtf8CodePoints},ZN:function(){return toUtf8String}});var ea,es,ed=eo(16441),eu=eo(1581);let ef="strings/5.7.0",ep=new eu.Logger(ef);function errorFunc(en,ei,eo,ea,es){return ep.throwArgumentError(`invalid codepoint at offset ${ei}; ${en}`,"bytes",eo)}function ignoreFunc(en,ei,eo,ea,ed){if(en===es.BAD_PREFIX||en===es.UNEXPECTED_CONTINUE){let en=0;for(let ea=ei+1;ea<eo.length&&eo[ea]>>6==2;ea++)en++;return en}return en===es.OVERRUN?eo.length-ei-1:0}function replaceFunc(en,ei,eo,ea,ed){return en===es.OVERLONG?(ea.push(ed),0):(ea.push(65533),ignoreFunc(en,ei,eo,ea,ed))}!function(en){en.current="",en.NFC="NFC",en.NFD="NFD",en.NFKC="NFKC",en.NFKD="NFKD"}(ea||(ea={})),function(en){en.UNEXPECTED_CONTINUE="unexpected continuation byte",en.BAD_PREFIX="bad codepoint prefix",en.OVERRUN="string overrun",en.MISSING_CONTINUE="missing continuation byte",en.OUT_OF_RANGE="out of UTF-8 range",en.UTF16_SURROGATE="UTF-16 surrogate",en.OVERLONG="overlong representation"}(es||(es={}));let em=Object.freeze({error:errorFunc,ignore:ignoreFunc,replace:replaceFunc});function getUtf8CodePoints(en,ei){null==ei&&(ei=em.error),en=(0,ed.arrayify)(en);let eo=[],ea=0;for(;ea<en.length;){let ed=en[ea++];if(ed>>7==0){eo.push(ed);continue}let eu=null,ef=null;if((224&ed)==192)eu=1,ef=127;else if((240&ed)==224)eu=2,ef=2047;else if((248&ed)==240)eu=3,ef=65535;else{(192&ed)==128?ea+=ei(es.UNEXPECTED_CONTINUE,ea-1,en,eo):ea+=ei(es.BAD_PREFIX,ea-1,en,eo);continue}if(ea-1+eu>=en.length){ea+=ei(es.OVERRUN,ea-1,en,eo);continue}let ep=ed&(1<<8-eu-1)-1;for(let ed=0;ed<eu;ed++){let ed=en[ea];if((192&ed)!=128){ea+=ei(es.MISSING_CONTINUE,ea,en,eo),ep=null;break}ep=ep<<6|63&ed,ea++}if(null!==ep){if(ep>1114111){ea+=ei(es.OUT_OF_RANGE,ea-1-eu,en,eo,ep);continue}if(ep>=55296&&ep<=57343){ea+=ei(es.UTF16_SURROGATE,ea-1-eu,en,eo,ep);continue}if(ep<=ef){ea+=ei(es.OVERLONG,ea-1-eu,en,eo,ep);continue}eo.push(ep)}}return eo}function toUtf8Bytes(en,ei=ea.current){ei!=ea.current&&(ep.checkNormalize(),en=en.normalize(ei));let eo=[];for(let ei=0;ei<en.length;ei++){let ea=en.charCodeAt(ei);if(ea<128)eo.push(ea);else if(ea<2048)eo.push(ea>>6|192),eo.push(63&ea|128);else if((64512&ea)==55296){ei++;let es=en.charCodeAt(ei);if(ei>=en.length||(64512&es)!=56320)throw Error("invalid utf-8 string");let ed=65536+((1023&ea)<<10)+(1023&es);eo.push(ed>>18|240),eo.push(ed>>12&63|128),eo.push(ed>>6&63|128),eo.push(63&ed|128)}else eo.push(ea>>12|224),eo.push(ea>>6&63|128),eo.push(63&ea|128)}return(0,ed.arrayify)(eo)}function escapeChar(en){let ei="0000"+en.toString(16);return"\\u"+ei.substring(ei.length-4)}function _toEscapedUtf8String(en,ei){return'"'+getUtf8CodePoints(en,ei).map(en=>{if(en<256){switch(en){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(en>=32&&en<127)return String.fromCharCode(en)}return en<=65535?escapeChar(en):escapeChar(((en-=65536)>>10&1023)+55296)+escapeChar((1023&en)+56320)}).join("")+'"'}
4function _toUtf8String(en){return en.map(en=>en<=65535?String.fromCharCode(en):String.fromCharCode(((en-=65536)>>10&1023)+55296,(1023&en)+56320)).join("")}function toUtf8String(en,ei){return _toUtf8String(getUtf8CodePoints(en,ei))}function toUtf8CodePoints(en,ei=ea.current){return getUtf8CodePoints(toUtf8Bytes(en,ei))}},83875:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{TransactionTypes:function(){return ea},accessListify:function(){return accessListify},computeAddress:function(){return computeAddress},parse:function(){return parse},recoverAddress:function(){return recoverAddress},serialize:function(){return serialize}});var ea,es=eo(52004),ed=eo(2593),eu=eo(16441),ef=eo(21046),ep=eo(38197),em=eo(6881),eg=eo(59052),ey=eo(67669),eb=eo(1581);let eS="transactions/5.7.0",e_=new eb.Logger(eS);function handleAddress(en){return"0x"===en?null:(0,es.getAddress)(en)}function handleNumber(en){return"0x"===en?ef._Y:ed.O$.from(en)}!function(en){en[en.legacy=0]="legacy",en[en.eip2930=1]="eip2930",en[en.eip1559=2]="eip1559"}(ea||(ea={}));let eR=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],eA={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function computeAddress(en){let ei=(0,ey.computePublicKey)(en);return(0,es.getAddress)((0,eu.hexDataSlice)((0,ep.keccak256)((0,eu.hexDataSlice)(ei,1)),12))}function recoverAddress(en,ei){return computeAddress((0,ey.recoverPublicKey)((0,eu.arrayify)(en),ei))}function formatNumber(en,ei){let eo=(0,eu.stripZeros)(ed.O$.from(en).toHexString());return eo.length>32&&e_.throwArgumentError("invalid length for "+ei,"transaction:"+ei,en),eo}function accessSetify(en,ei){return{address:(0,es.getAddress)(en),storageKeys:(ei||[]).map((ei,eo)=>(32!==(0,eu.hexDataLength)(ei)&&e_.throwArgumentError("invalid access list storageKey",`accessList[${en}:${eo}]`,ei),ei.toLowerCase()))}}function accessListify(en){if(Array.isArray(en))return en.map((en,ei)=>Array.isArray(en)?(en.length>2&&e_.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${ei}]`,en),accessSetify(en[0],en[1])):accessSetify(en.address,en.storageKeys));let ei=Object.keys(en).map(ei=>{let eo=en[ei].reduce((en,ei)=>(en[ei]=!0,en),{});return accessSetify(ei,Object.keys(eo).sort())});return ei.sort((en,ei)=>en.address.localeCompare(ei.address)),ei}function formatAccessList(en){return accessListify(en).map(en=>[en.address,en.storageKeys])}function _serializeEip1559(en,ei){if(null!=en.gasPrice){let ei=ed.O$.from(en.gasPrice),eo=ed.O$.from(en.maxFeePerGas||0);ei.eq(eo)||e_.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:ei,maxFeePerGas:eo})}let eo=[formatNumber(en.chainId||0,"chainId"),formatNumber(en.nonce||0,"nonce"),formatNumber(en.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),formatNumber(en.maxFeePerGas||0,"maxFeePerGas"),formatNumber(en.gasLimit||0,"gasLimit"),null!=en.to?(0,es.getAddress)(en.to):"0x",formatNumber(en.value||0,"value"),en.data||"0x",formatAccessList(en.accessList||[])];if(ei){let en=(0,eu.splitSignature)(ei);eo.push(formatNumber(en.recoveryParam,"recoveryParam")),eo.push((0,eu.stripZeros)(en.r)),eo.push((0,eu.stripZeros)(en.s))}return(0,eu.hexConcat)(["0x02",eg.encode(eo)])}function _serializeEip2930(en,ei){let eo=[formatNumber(en.chainId||0,"chainId"),formatNumber(en.nonce||0,"nonce"),formatNumber(en.gasPrice||0,"gasPrice"),formatNumber(en.gasLimit||0,"gasLimit"),null!=en.to?(0,es.getAddress)(en.to):"0x",formatNumber(en.value||0,"value"),en.data||"0x",formatAccessList(en.accessList||[])];if(ei){let en=(0,eu.splitSignature)(ei);eo.push(formatNumber(en.recoveryParam,"recoveryParam")),eo.push((0,eu.stripZeros)(en.r)),eo.push((0,eu.stripZeros)(en.s))}return(0,eu.hexConcat)(["0x01",eg.encode(eo)])}function _serialize(en,ei){(0,em.checkProperties)(en,eA);let eo=[];eR.forEach(function(ei){let ea=en[ei.name]||[],es={};ei.numeric&&(es.hexPad="left"),ea=(0,eu.arrayify)((0,eu.hexlify)(ea,es)),ei.length&&ea.length!==ei.length&&ea.length>0&&e_.throwArgumentError("invalid length for "+ei.name,"transaction:"+ei.name,ea),ei.maxLength&&(ea=(0,eu.stripZeros)(ea)).length>ei.maxLength&&e_.throwArgumentError("invalid length for "+ei.name,"transaction:"+ei.name,ea),eo.push((0,eu.hexlify)(ea))});let ea=0;if(null!=en.chainId?"number"!=typeof(ea=en.chainId)&&e_.throwArgumentError("invalid transaction.chainId","transaction",en):ei&&!(0,eu.isBytesLike)(ei)&&ei.v>28&&(ea=Math.floor((ei.v-35)/2)),0!==ea&&(eo.push((0,eu.hexlify)(ea)),eo.push("0x"),eo.push("0x")),!ei)return eg.encode(eo);let es=(0,eu.splitSignature)(ei),ed=27+es.recoveryParam;return 0!==ea?(eo.pop(),eo.pop(),eo.pop(),ed+=2*ea+8,es.v>28&&es.v!==ed&&e_.throwArgumentError("transaction.chainId/signature.v mismatch","signature",ei)):es.v!==ed&&e_.throwArgumentError("transaction.chainId/signature.v mismatch","signature",ei),eo.push((0,eu.hexlify)(ed)),eo.push((0,eu.stripZeros)((0,eu.arrayify)(es.r))),eo.push((0,eu.stripZeros)((0,eu.arrayify)(es.s))),eg.encode(eo)}function serialize(en,ei){if(null==en.type||0===en.type)return null!=en.accessList&&e_.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",en),_serialize(en,ei);switch(en.type){case 1:return _serializeEip2930(en,ei);case 2:return _serializeEip1559(en,ei)}return e_.throwError(`unsupported transaction type: ${en.type}`,eb.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:en.type})}function _parseEipSignature(en,ei,eo){try{let eo=handleNumber(ei[0]).toNumber();if(0!==eo&&1!==eo)throw Error("bad recid");en.v=eo}catch(en){e_.throwArgumentError("invalid v for transaction type: 1","v",ei[0])}en.r=(0,eu.hexZeroPad)(ei[1],32),en.s=(0,eu.hexZeroPad)(ei[2],32);try{let ei=(0,ep.keccak256)(eo(en));en.from=recoverAddress(ei,{r:en.r,s:en.s,recoveryParam:en.v})}catch(en){}}function _parseEip1559(en){let ei=eg.decode(en.slice(1));9!==ei.length&&12!==ei.length&&e_.throwArgumentError("invalid component count for transaction type: 2","payload",(0,eu.hexlify)(en));let eo=handleNumber(ei[2]),ea=handleNumber(ei[3]),es={type:2,chainId:handleNumber(ei[0]).toNumber(),nonce:handleNumber(ei[1]).toNumber(),maxPriorityFeePerGas:eo,maxFeePerGas:ea,gasPrice:null,gasLimit:handleNumber(ei[4]),to:handleAddress(ei[5]),value:handleNumber(ei[6]),data:ei[7],accessList:accessListify(ei[8])};return 9===ei.length||(es.hash=(0,ep.keccak256)(en),_parseEipSignature(es,ei.slice(9),_serializeEip1559)),es}function _parseEip2930(en){let ei=eg.decode(en.slice(1));8!==ei.length&&11!==ei.length&&e_.throwArgumentError("invalid component count for transaction type: 1","payload",(0,eu.hexlify)(en));let eo={type:1,chainId:handleNumber(ei[0]).toNumber(),nonce:handleNumber(ei[1]).toNumber(),gasPrice:handleNumber(ei[2]),gasLimit:handleNumber(ei[3]),to:handleAddress(ei[4]),value:handleNumber(ei[5]),data:ei[6],accessList:accessListify(ei[7
4])};return 8===ei.length||(eo.hash=(0,ep.keccak256)(en),_parseEipSignature(eo,ei.slice(8),_serializeEip2930)),eo}function _parse(en){let ei=eg.decode(en);9!==ei.length&&6!==ei.length&&e_.throwArgumentError("invalid raw transaction","rawTransaction",en);let eo={nonce:handleNumber(ei[0]).toNumber(),gasPrice:handleNumber(ei[1]),gasLimit:handleNumber(ei[2]),to:handleAddress(ei[3]),value:handleNumber(ei[4]),data:ei[5],chainId:0};if(6===ei.length)return eo;try{eo.v=ed.O$.from(ei[6]).toNumber()}catch(en){return eo}if(eo.r=(0,eu.hexZeroPad)(ei[7],32),eo.s=(0,eu.hexZeroPad)(ei[8],32),ed.O$.from(eo.r).isZero()&&ed.O$.from(eo.s).isZero())eo.chainId=eo.v,eo.v=0;else{eo.chainId=Math.floor((eo.v-35)/2),eo.chainId<0&&(eo.chainId=0);let ea=eo.v-27,es=ei.slice(0,6);0!==eo.chainId&&(es.push((0,eu.hexlify)(eo.chainId)),es.push("0x"),es.push("0x"),ea-=2*eo.chainId+8);let ed=(0,ep.keccak256)(eg.encode(es));try{eo.from=recoverAddress(ed,{r:(0,eu.hexlify)(eo.r),s:(0,eu.hexlify)(eo.s),recoveryParam:ea})}catch(en){}eo.hash=(0,ep.keccak256)(en)}return eo.type=null,eo}function parse(en){let ei=(0,eu.arrayify)(en);if(ei[0]>127)return _parse(ei);switch(ei[0]){case 1:return _parseEip2930(ei);case 2:return _parseEip1559(ei)}return e_.throwError(`unsupported transaction type: ${ei[0]}`,eb.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:ei[0]})}},61744:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{commify:function(){return commify},formatEther:function(){return formatEther},formatUnits:function(){return formatUnits},parseEther:function(){return parseEther},parseUnits:function(){return parseUnits}});var ea=eo(20335),es=eo(1581);let ed="units/5.7.0",eu=new es.Logger(ed),ef=["wei","kwei","mwei","gwei","szabo","finney","ether"];function commify(en){let ei=String(en).split(".");(ei.length>2||!ei[0].match(/^-?[0-9]*$/)||ei[1]&&!ei[1].match(/^[0-9]*$/)||"."===en||"-."===en)&&eu.throwArgumentError("invalid value","value",en);let eo=ei[0],ea="";for("-"===eo.substring(0,1)&&(ea="-",eo=eo.substring(1));"0"===eo.substring(0,1);)eo=eo.substring(1);""===eo&&(eo="0");let es="";for(2===ei.length&&(es="."+(ei[1]||"0"));es.length>2&&"0"===es[es.length-1];)es=es.substring(0,es.length-1);let ed=[];for(;eo.length;){if(eo.length<=3){ed.unshift(eo);break}{let en=eo.length-3;ed.unshift(eo.substring(en)),eo=eo.substring(0,en)}}return ea+ed.join(",")+es}function formatUnits(en,ei){if("string"==typeof ei){let en=ef.indexOf(ei);-1!==en&&(ei=3*en)}return(0,ea.S5)(en,null!=ei?ei:18)}function parseUnits(en,ei){if("string"!=typeof en&&eu.throwArgumentError("value must be a string","value",en),"string"==typeof ei){let en=ef.indexOf(ei);-1!==en&&(ei=3*en)}return(0,ea.Ox)(en,null!=ei?ei:18)}function formatEther(en){return formatUnits(en,18)}function parseEther(en){return parseUnits(en,18)}},79911:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{Wallet:function(){return Wallet},verifyMessage:function(){return verifyMessage},verifyTypedData:function(){return verifyTypedData}});var ea=eo(52004),es=eo(81556),ed=eo(48088),eu=eo(16441),ef=eo(93684),ep=eo(67827),em=eo(84178),eg=eo(38197),ey=eo(6881),eb=eo(5634),eS=eo(67669),e_=eo(81964),eR=eo(64341),eA=eo(83875),ew=eo(1581);let eO="wallet/5.7.0";var __awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let eE=new ew.Logger(eO);function isAccount(en){return null!=en&&(0,eu.isHexString)(en.privateKey,32)&&null!=en.address}function hasMnemonic(en){let ei=en.mnemonic;return ei&&ei.phrase}let Wallet=class Wallet extends ed.E{constructor(en,ei){if(super(),isAccount(en)){let ei=new eS.SigningKey(en.privateKey);if((0,ey.defineReadOnly)(this,"_signingKey",()=>ei),(0,ey.defineReadOnly)(this,"address",(0,eA.computeAddress)(this.publicKey)),this.address!==(0,ea.getAddress)(en.address)&&eE.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),hasMnemonic(en)){let ei=en.mnemonic;(0,ey.defineReadOnly)(this,"_mnemonic",()=>({phrase:ei.phrase,path:ei.path||em.defaultPath,locale:ei.locale||"en"}));let eo=this.mnemonic,ea=em.HDNode.fromMnemonic(eo.phrase,null,eo.locale).derivePath(eo.path);(0,eA.computeAddress)(ea.privateKey)!==this.address&&eE.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,ey.defineReadOnly)(this,"_mnemonic",()=>null)}else{if(eS.SigningKey.isSigningKey(en))"secp256k1"!==en.curve&&eE.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,ey.defineReadOnly)(this,"_signingKey",()=>
4en);else{"string"==typeof en&&en.match(/^[0-9a-f]*$/i)&&64===en.length&&(en="0x"+en);let ei=new eS.SigningKey(en);(0,ey.defineReadOnly)(this,"_signingKey",()=>ei)}(0,ey.defineReadOnly)(this,"_mnemonic",()=>null),(0,ey.defineReadOnly)(this,"address",(0,eA.computeAddress)(this.publicKey))}ei&&!es.zt.isProvider(ei)&&eE.throwArgumentError("invalid provider","provider",ei),(0,ey.defineReadOnly)(this,"provider",ei||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(en){return new Wallet(this,en)}signTransaction(en){return(0,ey.resolveProperties)(en).then(ei=>{null!=ei.from&&((0,ea.getAddress)(ei.from)!==this.address&&eE.throwArgumentError("transaction from address mismatch","transaction.from",en.from),delete ei.from);let eo=this._signingKey().signDigest((0,eg.keccak256)((0,eA.serialize)(ei)));return(0,eA.serialize)(ei,eo)})}signMessage(en){return __awaiter(this,void 0,void 0,function*(){return(0,eu.joinSignature)(this._signingKey().signDigest((0,ef.r)(en)))})}_signTypedData(en,ei,eo){return __awaiter(this,void 0,void 0,function*(){let ea=yield ep.E.resolveNames(en,ei,eo,en=>(null==this.provider&&eE.throwError("cannot resolve ENS names without a provider",ew.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:en}),this.provider.resolveName(en)));return(0,eu.joinSignature)(this._signingKey().signDigest(ep.E.hash(ea.domain,ei,ea.value)))})}encrypt(en,ei,eo){if("function"!=typeof ei||eo||(eo=ei,ei={}),eo&&"function"!=typeof eo)throw Error("invalid callback");return ei||(ei={}),(0,e_.HI)(this,en,ei,eo)}static createRandom(en){let ei=(0,eb.O)(16);en||(en={}),en.extraEntropy&&(ei=(0,eu.arrayify)((0,eu.hexDataSlice)((0,eg.keccak256)((0,eu.concat)([ei,en.extraEntropy])),0,16)));let eo=(0,em.entropyToMnemonic)(ei,en.locale);return Wallet.fromMnemonic(eo,en.path,en.locale)}static fromEncryptedJson(en,ei,eo){return(0,eR.decryptJsonWallet)(en,ei,eo).then(en=>new Wallet(en))}static fromEncryptedJsonSync(en,ei){return new Wallet((0,eR.decryptJsonWalletSync)(en,ei))}static fromMnemonic(en,ei,eo){return ei||(ei=em.defaultPath),new Wallet(em.HDNode.fromMnemonic(en,null,eo).derivePath(ei))}};function verifyMessage(en,ei){return(0,eA.recoverAddress)((0,ef.r)(en),ei)}function verifyTypedData(en,ei,eo,ea){return(0,eA.recoverAddress)(ep.E.hash(en,ei,eo),ea)}},37707:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{_fetchData:function(){return _fetchData},fetchJson:function(){return fetchJson},poll:function(){return poll}});var ea=eo(59567),es=eo(16441),ed=eo(6881),eu=eo(29251),ef=eo(1581);let ep="web/5.7.1";var __awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};function getUrl(en,ei){return __awaiter(this,void 0,void 0,function*(){null==ei&&(ei={});let eo={method:ei.method||"GET",headers:ei.headers||{},body:ei.body||void 0};if(!0!==ei.skipFetchSetup&&(eo.mode="cors",eo.cache="no-cache",eo.credentials="same-origin",eo.redirect="follow",eo.referrer="client"),null!=ei.fetchOptions){let en=ei.fetchOptions;en.mode&&(eo.mode=en.mode),en.cache&&(eo.cache=en.cache),en.credentials&&(eo.credentials=en.credentials),en.redirect&&(eo.redirect=en.redirect),en.referrer&&(eo.referrer=en.referrer)}let ea=yield fetch(en,eo),ed=yield ea.arrayBuffer(),eu={};return ea.headers.forEach?ea.headers.forEach((en,ei)=>{eu[ei.toLowerCase()]=en}):ea.headers.keys().forEach(en=>{eu[en.toLowerCase()]=ea.headers.get(en)}),{headers:eu,statusCode:ea.status,statusMessage:ea.statusText,body:(0,es.arrayify)(new Uint8Array(ed))}})}var lib_esm_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let em=new ef.Logger(ep);function staller(en){return new Promise(ei=>{setTimeout(ei,en)})}function bodyify(en,ei){if(null==en)return null;if("string"==typeof en)return en;if((0,es.isBytesLike)(en)){if(ei&&("text"===ei.split("/")[0]||"application/json"===ei.split(";")[0].trim()))try{return(0,eu.ZN)(en)}catch(en){}return(0,es.hexlify)(en)}return en}function unpercent(en){return(0,eu.Y0)(en.replace(/%([0-9a-f][0-9a-f])/gi,(en,ei)=>String.fromCharCode(parseInt(ei,16))))}function _fetchData(en,ei,eo){let es="object"==typeof en&&null!=en.throttleLimit?en.throttleLimit:12;em.assertArgument(es>0&&es%1==0,"invalid connection throttle limit","connection.throttleLimit",es);let ep="object"==typeof en?en.throttleCallback:null,eg="object"==typeof en&&"number"==typeof en.throttleSlotInterval?en.throttleSlotInterval:100;em.assertArgument(eg>0&&eg%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",eg);let ey="object"==typeof en&&!!en.errorPassThrough,eb={},eS=null,e_={method:"GET"},eR=!1,eA=12e4;if("string"==typeof en)eS=en;else if("object"==typeof en){if((null==en||null==en.url)&&em.throwArgumentError("missing URL","connection.url",en),eS=en.url,"number"==typeof en.timeout&&en.timeout>0&&(eA=en.timeout),en.headers)for(let ei in en.headers)eb[ei.toLowerCase()]={key:ei,value:String(en.headers[ei])},["if-none-match","if-modified-since"].indexOf(ei.toLowerCase())>=0&&(eR=!0);if(e_.allowGzip=!!en.allowGzip,null!=en.user&&null!=en.password){"https:"!==eS.substring(0,6)&&!0!==en.allowInsecureAuthentication&&em.throwError("basic authentication requires a secure https url",ef.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:eS,user:en.user,password:"[REDACTED]"});let ei=en.user+":"+en.password;eb.authorization={key:"Authorization",value:"Basic "+(0,ea.c)((0,eu.Y0)(ei))}}null!=en.skipFetchSetup&&(e_.skipFetchSetup=!!en.skipFetchSetup),null!=en.fetchOptions&&(e_.fetchOptions=(0,ed.shallowCopy)(en.fetchOptions))}let ew=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),eO=eS?eS.match(ew):null;if(eO)try{let en={statusCode:200,statusMessage:"OK",headers:{"content-type":eO[1]||"text/plain"},body:eO[2]?(0,ea.J)(eO[3]):unpercent(eO[3])},ei=en.body;return eo&&(ei=eo(en.body,en)),Promise.resolve(ei)}catch(en){em.throwError("processing response error",ef.Logger.errors.SERVER_ERROR,{body:bodyify(eO[1],eO[2]),error:en,requestBody:null,requestMethod:"GET",url:eS})}ei&&(e_.method="POST",e_.body=ei,null==eb["content-type"]&&(eb["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==eb["content-length"]&&(eb["content-length"]={key:"Content-Length",value:String(ei.length)}));let eE={};Object.keys(eb).forEach(en=>{let ei=eb[en];eE[ei.key]=ei.value}),e_.headers=eE;let eP=function(){let en=null,ei=new Promise(function(ei,eo){eA&&(en=setTimeout(()=>{null!=en&&(en=null,eo(em.makeError("timeout",ef.Logger.errors.TIMEOUT,{requestBody:bodyify(e_.body,eE["content-type"]),requestMethod:e_.method,timeout:eA,url:eS})))},eA))}),cancel=function(){null!=en&&(clearTimeout(en),en=null)};return{promise:ei,cancel}}(),eC=function(){return lib_esm_awaiter(this,void 0,void 0,function*(){for(let en=0;en<es;en++){let ei=null;try{if(ei=yield getUrl(eS,e_),en<es){if(301===ei.statusCode||302===ei.statusCode){let en=e
4i.headers.location||"";if("GET"===e_.method&&en.match(/^https:/)){eS=ei.headers.location;continue}}else if(429===ei.statusCode){let eo=!0;if(ep&&(eo=yield ep(en,eS)),eo){let eo=0,ea=ei.headers["retry-after"];eo="string"==typeof ea&&ea.match(/^[1-9][0-9]*$/)?1e3*parseInt(ea):eg*parseInt(String(Math.random()*Math.pow(2,en))),yield staller(eo);continue}}}}catch(en){null==(ei=en.response)&&(eP.cancel(),em.throwError("missing response",ef.Logger.errors.SERVER_ERROR,{requestBody:bodyify(e_.body,eE["content-type"]),requestMethod:e_.method,serverError:en,url:eS}))}let ea=ei.body;if(eR&&304===ei.statusCode?ea=null:!ey&&(ei.statusCode<200||ei.statusCode>=300)&&(eP.cancel(),em.throwError("bad response",ef.Logger.errors.SERVER_ERROR,{status:ei.statusCode,headers:ei.headers,body:bodyify(ea,ei.headers?ei.headers["content-type"]:null),requestBody:bodyify(e_.body,eE["content-type"]),requestMethod:e_.method,url:eS})),eo)try{let en=yield eo(ea,ei);return eP.cancel(),en}catch(eo){if(eo.throttleRetry&&en<es){let ei=!0;if(ep&&(ei=yield ep(en,eS)),ei){let ei=eg*parseInt(String(Math.random()*Math.pow(2,en)));yield staller(ei);continue}}eP.cancel(),em.throwError("processing response error",ef.Logger.errors.SERVER_ERROR,{body:bodyify(ea,ei.headers?ei.headers["content-type"]:null),error:eo,requestBody:bodyify(e_.body,eE["content-type"]),requestMethod:e_.method,url:eS})}return eP.cancel(),ea}return em.throwError("failed response",ef.Logger.errors.SERVER_ERROR,{requestBody:bodyify(e_.body,eE["content-type"]),requestMethod:e_.method,url:eS})})}();return Promise.race([eP.promise,eC])}function fetchJson(en,ei,eo){let processJsonFunc=(en,ei)=>{let ea=null;if(null!=en)try{ea=JSON.parse((0,eu.ZN)(en))}catch(ei){em.throwError("invalid JSON",ef.Logger.errors.SERVER_ERROR,{body:en,error:ei})}return eo&&(ea=eo(ea,ei)),ea},ea=null;if(null!=ei){ea=(0,eu.Y0)(ei);let eo="string"==typeof en?{url:en}:(0,ed.shallowCopy)(en);if(eo.headers){let en=0!==Object.keys(eo.headers).filter(en=>"content-type"===en.toLowerCase()).length;en||(eo.headers=(0,ed.shallowCopy)(eo.headers),eo.headers["content-type"]="application/json")}else eo.headers={"content-type":"application/json"};en=eo}return _fetchData(en,ea,processJsonFunc)}function poll(en,ei){return ei||(ei={}),null==(ei=(0,ed.shallowCopy)(ei)).floor&&(ei.floor=0),null==ei.ceiling&&(ei.ceiling=1e4),null==ei.interval&&(ei.interval=250),new Promise(function(eo,ea){let es=null,ed=!1,cancel=()=>!ed&&(ed=!0,es&&clearTimeout(es),!0);ei.timeout&&(es=setTimeout(()=>{cancel()&&ea(Error("timeout"))},ei.timeout));let eu=ei.retryLimit,ef=0;function check(){return en().then(function(en){if(void 0!==en)cancel()&&eo(en);else if(ei.oncePoll)ei.oncePoll.once("poll",check);else if(ei.onceBlock)ei.onceBlock.once("block",check);else if(!ed){if(++ef>eu){cancel()&&ea(Error("retry limit reached"));return}let en=ei.interval*parseInt(String(Math.random()*Math.pow(2,ef)));en<ei.floor&&(en=ei.floor),en>ei.ceiling&&(en=ei.ceiling),setTimeout(check,en)}return null},function(en){cancel()&&ea(en)})}check()})}},48812:function(en,ei,eo){"use strict";eo.d(ei,{D:function(){return Wordlist}});var ea=eo(32046),es=eo(6881),ed=eo(1581);let eu="wordlists/5.7.0",ef=!1,ep=new ed.Logger(eu);let Wordlist=class Wordlist{constructor(en){ep.checkAbstract(new.target,Wordlist),(0,es.defineReadOnly)(this,"locale",en)}split(en){return en.toLowerCase().split(/ +/g)}join(en){return en.join(" ")}static check(en){let ei=[];for(let eo=0;eo<2048;eo++){let ea=en.getWord(eo);if(eo!==en.getWordIndex(ea))return"0x";ei.push(ea)}return(0,ea.id)(ei.join("\n")+"\n")}static register(en,ei){if(ei||(ei=en.locale),ef)try{let eo=window;eo._ethers&&eo._ethers.wordlists&&!eo._ethers.wordlists[ei]&&(0,es.defineReadOnly)(eo._ethers.wordlists,ei,en)}catch(en){}}}},10234:function(en,ei,eo){"use strict";eo.d(ei,{E:function(){return ef}});var ea=eo(48812);let es="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCat
4chCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobster
4LocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThe
4nTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",ed=null;function loadWords(en){if(null==ed&&(ed=es.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==ea.D.check(en)))throw ed=null,Error("BIP39 Wordlist for en (English) FAILED")}let LangEn=class LangEn extends ea.D{constructor(){super("en")}getWord(en){return loadWords(this),ed[en]}getWordIndex(en){return loadWords(this),ed.indexOf(en)}};let eu=new LangEn;ea.D.register(eu);let ef={en:eu}},27320:function(en,ei){"use strict";function number(en){if(!Number.isSafeInteger(en)||en<0)throw Error(`positive integer expected, not ${en}`)}function bool(en){if("boolean"!=typeof en)throw Error(`boolean expected, not ${en}`)}function isBytes(en){return en instanceof Uint8Array||null!=en&&"object"==typeof en&&"Uint8Array"===en.constructor.name}function bytes(en,...ei){if(!isBytes(en))throw Error("Uint8Array expected");if(ei.length>0&&!ei.includes(en.length))throw Error(`Uint8Array expected of length ${ei}, not of length=${en.length}`)}function hash(en){if("function"!=typeof en||"function"!=typeof en.create)throw Error("Hash should be wrapped by utils.wrapConstructor");number(en.outputLen),number(en.blockLen)}function exists(en,ei=!0){if(en.destroyed)throw Error("Hash instance has been destroyed");if(ei&&en.finished)throw Error("Hash#digest() has already been called")}function output(en,ei){bytes(en);let eo=ei.outputLen;if(en.length<eo)throw Error(`digestInto() expects output buffer of length at least ${eo}`)}Object.defineProperty(ei,"__esModule",{value:!0}),ei.output=ei.exists=ei.hash=ei.bytes=ei.bool=ei.number=ei.isBytes=void 0,ei.number=number,ei.bool=bool,ei.isBytes=isBytes,ei.bytes=bytes,ei.hash=hash,ei.exists=exists,ei.output=output;let eo={number,bool,bytes,hash,exists,output};ei.default=eo},75457:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.HashMD=ei.Maj=ei.Chi=void 0;let ea=eo(27320),es=eo(98089);function setBigUint64(en,ei,eo,ea){if("function"==typeof en.setBigUint64)return en.setBigUint64(ei,eo,ea);let es=BigInt(32),ed=BigInt(4294967295),eu=Number(eo>>es&ed),ef=Number(eo&ed),ep=ea?4:0,em=ea?0:4;en.setUint32(ei+ep,eu,ea),en.setUint32(ei+em,ef,ea)}let Chi=(en,ei,eo)=>en&ei^~en&eo;ei.Chi=Chi;let Maj=(en,ei,eo)=>en&ei^en&eo^ei&eo;ei.Maj=Maj;let HashMD=class HashMD extends es.Hash{constructor(en,ei,eo,ea){super(),this.blockLen=en,this.outputLen=ei,this.padOffset=eo,this.isLE=ea,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(en),this.view=(0,es.createView)(this.buffer)}update(en){(0,ea.exists)(this);let{view:ei,buffer:eo,blockLen:ed}=this;en=(0,es.toBytes)(en);let eu=en.length;for(let ea=0;ea<eu;){let ef=Math.min(ed-this.pos,eu-ea);if(ef===ed){let ei=(0,es.createView)(en);for(;ed<=eu-ea;ea+=ed)this.process(ei,ea);continue}eo.set(en.subarray(ea,ea+ef),this.pos),this.pos+=ef,ea+=ef,this.pos===ed&&(this.process(ei,0),this.pos=0)}return this.length+=en.length,this.roundClean(),this}digestInto(en){(0,ea.exists)(this),(0,ea.output)(en,this),this.finished=!0;let{buffer:ei,view:eo,blockLen:ed,isLE:eu}=this,{pos:ef}=this;ei[ef++]=128,this.buffer.subarray(ef).fill(0),this.padOffset>ed-ef&&(this.process(eo,0),ef=0);for(let en=ef;en<ed;en++)ei[en]=0;setBigUint64(eo,ed-8,BigInt(8*this.length),eu),this.process(eo,0);let ep=(0,es.createView)(en),em=this.outputLen;if(em%4)throw Error("_sha2: outputLen should be aligned to 32bit");let eg=em/4,ey=this.get();if(eg>ey.length)throw Error("_sha2: outputLen bigger than state");for(let en=0;en<eg;en++)ep.setUint32(4*en,ey[en],eu)}
4digest(){let{buffer:en,outputLen:ei}=this;this.digestInto(en);let eo=en.slice(0,ei);return this.destroy(),eo}_cloneInto(en){en||(en=new this.constructor),en.set(...this.get());let{blockLen:ei,buffer:eo,length:ea,finished:es,destroyed:ed,pos:eu}=this;return en.length=ea,en.pos=eu,en.finished=es,en.destroyed=ed,ea%ei&&en.buffer.set(eo),en}};ei.HashMD=HashMD},6873:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.add5L=ei.add5H=ei.add4H=ei.add4L=ei.add3H=ei.add3L=ei.add=ei.rotlBL=ei.rotlBH=ei.rotlSL=ei.rotlSH=ei.rotr32L=ei.rotr32H=ei.rotrBL=ei.rotrBH=ei.rotrSL=ei.rotrSH=ei.shrSL=ei.shrSH=ei.toBig=ei.split=ei.fromBig=void 0;let eo=BigInt(4294967296-1),ea=BigInt(32);function fromBig(en,ei=!1){return ei?{h:Number(en&eo),l:Number(en>>ea&eo)}:{h:0|Number(en>>ea&eo),l:0|Number(en&eo)}}function split(en,ei=!1){let eo=new Uint32Array(en.length),ea=new Uint32Array(en.length);for(let es=0;es<en.length;es++){let{h:ed,l:eu}=fromBig(en[es],ei);[eo[es],ea[es]]=[ed,eu]}return[eo,ea]}ei.fromBig=fromBig,ei.split=split;let toBig=(en,ei)=>BigInt(en>>>0)<<ea|BigInt(ei>>>0);ei.toBig=toBig;let shrSH=(en,ei,eo)=>en>>>eo;ei.shrSH=shrSH;let shrSL=(en,ei,eo)=>en<<32-eo|ei>>>eo;ei.shrSL=shrSL;let rotrSH=(en,ei,eo)=>en>>>eo|ei<<32-eo;ei.rotrSH=rotrSH;let rotrSL=(en,ei,eo)=>en<<32-eo|ei>>>eo;ei.rotrSL=rotrSL;let rotrBH=(en,ei,eo)=>en<<64-eo|ei>>>eo-32;ei.rotrBH=rotrBH;let rotrBL=(en,ei,eo)=>en>>>eo-32|ei<<64-eo;ei.rotrBL=rotrBL;let rotr32H=(en,ei)=>ei;ei.rotr32H=rotr32H;let rotr32L=(en,ei)=>en;ei.rotr32L=rotr32L;let rotlSH=(en,ei,eo)=>en<<eo|ei>>>32-eo;ei.rotlSH=rotlSH;let rotlSL=(en,ei,eo)=>ei<<eo|en>>>32-eo;ei.rotlSL=rotlSL;let rotlBH=(en,ei,eo)=>ei<<eo-32|en>>>64-eo;ei.rotlBH=rotlBH;let rotlBL=(en,ei,eo)=>en<<eo-32|ei>>>64-eo;function add(en,ei,eo,ea){let es=(ei>>>0)+(ea>>>0);return{h:en+eo+(es/4294967296|0)|0,l:0|es}}ei.rotlBL=rotlBL,ei.add=add;let add3L=(en,ei,eo)=>(en>>>0)+(ei>>>0)+(eo>>>0);ei.add3L=add3L;let add3H=(en,ei,eo,ea)=>ei+eo+ea+(en/4294967296|0)|0;ei.add3H=add3H;let add4L=(en,ei,eo,ea)=>(en>>>0)+(ei>>>0)+(eo>>>0)+(ea>>>0);ei.add4L=add4L;let add4H=(en,ei,eo,ea,es)=>ei+eo+ea+es+(en/4294967296|0)|0;ei.add4H=add4H;let add5L=(en,ei,eo,ea,es)=>(en>>>0)+(ei>>>0)+(eo>>>0)+(ea>>>0)+(es>>>0);ei.add5L=add5L;let add5H=(en,ei,eo,ea,es,ed)=>ei+eo+ea+es+ed+(en/4294967296|0)|0;ei.add5H=add5H;let es={fromBig,split,toBig,shrSH,shrSL,rotrSH,rotrSL,rotrBH,rotrBL,rotr32H,rotr32L,rotlSH,rotlSL,rotlBH,rotlBL,add,add3L,add3H,add4L,add4H,add5H,add5L};ei.default=es},31945:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.crypto=void 0,ei.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},79569:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.hmac=ei.HMAC=void 0;let ea=eo(27320),es=eo(98089);let HMAC=class HMAC extends es.Hash{constructor(en,ei){super(),this.finished=!1,this.destroyed=!1,(0,ea.hash)(en);let eo=(0,es.toBytes)(ei);if(this.iHash=en.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let ed=this.blockLen,eu=new Uint8Array(ed);eu.set(eo.length>ed?en.create().update(eo).digest():eo);for(let en=0;en<eu.length;en++)eu[en]^=54;this.iHash.update(eu),this.oHash=en.create();for(let en=0;en<eu.length;en++)eu[en]^=106;this.oHash.update(eu),eu.fill(0)}update(en){return(0,ea.exists)(this),this.iHash.update(en),this}digestInto(en){(0,ea.exists)(this),(0,ea.bytes)(en,this.outputLen),this.finished=!0,this.iHash.digestInto(en),this.oHash.update(en),this.oHash.digestInto(en),this.destroy()}digest(){let en=new Uint8Array(this.oHash.outputLen);return this.digestInto(en),en}_cloneInto(en){en||(en=Object.create(Object.getPrototypeOf(this),{}));let{oHash:ei,iHash:eo,finished:ea,destroyed:es,blockLen:ed,outputLen:eu}=this;return en.finished=ea,en.destroyed=es,en.blockLen=ed,en.outputLen=eu,en.oHash=ei._cloneInto(en.oHash),en.iHash=eo._cloneInto(en.iHash),en}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}};ei.HMAC=HMAC;let hmac=(en,ei,eo)=>new HMAC(en,ei).update(eo).digest();ei.hmac=hmac,ei.hmac.create=(en,ei)=>new HMAC(en,ei)},29023:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.pbkdf2Async=ei.pbkdf2=void 0;let ea=eo(27320),es=eo(79569),ed=eo(98089);function pbkdf2Init(en,ei,eo,eu){(0,ea.hash)(en);let ef=(0,ed.checkOpts)({dkLen:32,asyncTick:10},eu),{c:ep,dkLen:em,asyncTick:eg}=ef;if((0,ea.number)(ep),(0,ea.number)(em),(0,ea.number)(eg),ep<1)throw Error("PBKDF2: iterations (c) should be >= 1");let ey=(0,ed.toBytes)(ei),eb=(0,ed.toBytes)(eo),eS=new Uint8Array(em),e_=es.hmac.create(en,ey),eR=e_._cloneInto().update(eb);return{c:ep,dkLen:em,asyncTick:eg,DK:eS,PRF:e_,PRFSalt:eR}}function pbkdf2Output(en,ei,eo,ea,es){return en.destroy(),ei.destroy(),ea&&ea.destroy(),es.fill(0),eo}function pbkdf2(en,ei,eo,ea){let es;let{c:eu,dkLen:ef,DK:ep,PRF:em,PRFSalt:eg}=pbkdf2Init(en,ei,eo,ea),ey=new Uint8Array(4),eb=(0,ed.createView)(ey),eS=new Uint8Array(em.outputLen);for(let en=1,ei=0;ei<ef;en++,ei+=em.outputLen){let eo=ep.subarray(ei,ei+em.outputLen);eb.setInt32(0,en,!1),(es=eg._cloneInto(es)).update(ey).digestInto(eS),eo.set(eS.subarray(0,eo.length));for(let en=1;en<eu;en++){em._cloneInto(es).update(eS).digestInto(eS);for(let en=0;en<eo.length;en++)eo[en]^=eS[en]}}
4return pbkdf2Output(em,eg,ep,es,eS)}async function pbkdf2Async(en,ei,eo,ea){let es;let{c:eu,dkLen:ef,asyncTick:ep,DK:em,PRF:eg,PRFSalt:ey}=pbkdf2Init(en,ei,eo,ea),eb=new Uint8Array(4),eS=(0,ed.createView)(eb),e_=new Uint8Array(eg.outputLen);for(let en=1,ei=0;ei<ef;en++,ei+=eg.outputLen){let eo=em.subarray(ei,ei+eg.outputLen);eS.setInt32(0,en,!1),(es=ey._cloneInto(es)).update(eb).digestInto(e_),eo.set(e_.subarray(0,eo.length)),await (0,ed.asyncLoop)(eu-1,ep,()=>{eg._cloneInto(es).update(e_).digestInto(e_);for(let en=0;en<eo.length;en++)eo[en]^=e_[en]})}return pbkdf2Output(eg,ey,em,es,e_)}ei.pbkdf2=pbkdf2,ei.pbkdf2Async=pbkdf2Async},70830:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ripemd160=ei.RIPEMD160=void 0;let ea=eo(75457),es=eo(98089),ed=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),eu=new Uint8Array(Array(16).fill(0).map((en,ei)=>ei)),ef=eu.map(en=>(9*en+5)%16),ep=[eu],em=[ef];for(let en=0;en<4;en++)for(let ei of[ep,em])ei.push(ei[en].map(en=>ed[en]));let eg=[[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(en=>new Uint8Array(en)),ey=ep.map((en,ei)=>en.map(en=>eg[ei][en])),eb=em.map((en,ei)=>en.map(en=>eg[ei][en])),eS=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),e_=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]);function f(en,ei,eo,ea){return 0===en?ei^eo^ea:1===en?ei&eo|~ei&ea:2===en?(ei|~eo)^ea:3===en?ei&ea|eo&~ea:ei^(eo|~ea)}let eR=new Uint32Array(16);let RIPEMD160=class RIPEMD160 extends ea.HashMD{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){let{h0:en,h1:ei,h2:eo,h3:ea,h4:es}=this;return[en,ei,eo,ea,es]}set(en,ei,eo,ea,es){this.h0=0|en,this.h1=0|ei,this.h2=0|eo,this.h3=0|ea,this.h4=0|es}process(en,ei){for(let eo=0;eo<16;eo++,ei+=4)eR[eo]=en.getUint32(ei,!0);let eo=0|this.h0,ea=eo,ed=0|this.h1,eu=ed,ef=0|this.h2,eg=ef,eA=0|this.h3,ew=eA,eO=0|this.h4,eE=eO;for(let en=0;en<5;en++){let ei=4-en,eP=eS[en],eC=e_[en],eT=ep[en],eB=em[en],eN=ey[en],eI=eb[en];for(let ei=0;ei<16;ei++){let ea=(0,es.rotl)(eo+f(en,ed,ef,eA)+eR[eT[ei]]+eP,eN[ei])+eO|0;eo=eO,eO=eA,eA=0|(0,es.rotl)(ef,10),ef=ed,ed=ea}for(let en=0;en<16;en++){let eo=(0,es.rotl)(ea+f(ei,eu,eg,ew)+eR[eB[en]]+eC,eI[en])+eE|0;ea=eE,eE=ew,ew=0|(0,es.rotl)(eg,10),eg=eu,eu=eo}}this.set(this.h1+ef+ew|0,this.h2+eA+eE|0,this.h3+eO+ea|0,this.h4+eo+eu|0,this.h0+ed+eg|0)}roundClean(){eR.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};ei.RIPEMD160=RIPEMD160,ei.ripemd160=(0,es.wrapConstructor)(()=>new RIPEMD160)},23061:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.sha224=ei.sha256=void 0;let ea=eo(75457),es=eo(98089),ed=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]),eu=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ef=new Uint32Array(64);let SHA256=class SHA256 extends ea.HashMD{constructor(){super(64,32,8,!1),this.A=0|eu[0],this.B=0|eu[1],this.C=0|eu[2],this.D=0|eu[3],this.E=0|eu[4],this.F=0|eu[5],this.G=0|eu[6],this.H=0|eu[7]}get(){let{A:en,B:ei,C:eo,D:ea,E:es,F:ed,G:eu,H:ef}=this;return[en,ei,eo,ea,es,ed,eu,ef]}set(en,ei,eo,ea,es,ed,eu,ef){this.A=0|en,this.B=0|ei,this.C=0|eo,this.D=0|ea,this.E=0|es,this.F=0|ed,this.G=0|eu,this.H=0|ef}process(en,ei){for(let eo=0;eo<16;eo++,ei+=4)ef[eo]=en.getUint32(ei,!1);for(let en=16;en<64;
4en++){let ei=ef[en-15],eo=ef[en-2],ea=(0,es.rotr)(ei,7)^(0,es.rotr)(ei,18)^ei>>>3,ed=(0,es.rotr)(eo,17)^(0,es.rotr)(eo,19)^eo>>>10;ef[en]=ed+ef[en-7]+ea+ef[en-16]|0}let{A:eo,B:eu,C:ep,D:em,E:eg,F:ey,G:eb,H:eS}=this;for(let en=0;en<64;en++){let ei=(0,es.rotr)(eg,6)^(0,es.rotr)(eg,11)^(0,es.rotr)(eg,25),e_=eS+ei+(0,ea.Chi)(eg,ey,eb)+ed[en]+ef[en]|0,eR=(0,es.rotr)(eo,2)^(0,es.rotr)(eo,13)^(0,es.rotr)(eo,22),eA=eR+(0,ea.Maj)(eo,eu,ep)|0;eS=eb,eb=ey,ey=eg,eg=em+e_|0,em=ep,ep=eu,eu=eo,eo=e_+eA|0}eo=eo+this.A|0,eu=eu+this.B|0,ep=ep+this.C|0,em=em+this.D|0,eg=eg+this.E|0,ey=ey+this.F|0,eb=eb+this.G|0,eS=eS+this.H|0,this.set(eo,eu,ep,em,eg,ey,eb,eS)}roundClean(){ef.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};let SHA224=class SHA224 extends SHA256{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}};ei.sha256=(0,es.wrapConstructor)(()=>new SHA256),ei.sha224=(0,es.wrapConstructor)(()=>new SHA224)},85426:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.shake256=ei.shake128=ei.keccak_512=ei.keccak_384=ei.keccak_256=ei.keccak_224=ei.sha3_512=ei.sha3_384=ei.sha3_256=ei.sha3_224=ei.Keccak=ei.keccakP=void 0;let ea=eo(27320),es=eo(6873),ed=eo(98089),eu=[],ef=[],ep=[],em=BigInt(0),eg=BigInt(1),ey=BigInt(2),eb=BigInt(7),eS=BigInt(256),e_=BigInt(113);for(let en=0,ei=eg,eo=1,ea=0;en<24;en++){[eo,ea]=[ea,(2*eo+3*ea)%5],eu.push(2*(5*ea+eo)),ef.push((en+1)*(en+2)/2%64);let es=em;for(let en=0;en<7;en++)(ei=(ei<<eg^(ei>>eb)*e_)%eS)&ey&&(es^=eg<<(eg<<BigInt(en))-eg);ep.push(es)}let[eR,eA]=(0,es.split)(ep,!0),rotlH=(en,ei,eo)=>eo>32?(0,es.rotlBH)(en,ei,eo):(0,es.rotlSH)(en,ei,eo),rotlL=(en,ei,eo)=>eo>32?(0,es.rotlBL)(en,ei,eo):(0,es.rotlSL)(en,ei,eo);function keccakP(en,ei=24){let eo=new Uint32Array(10);for(let ea=24-ei;ea<24;ea++){for(let ei=0;ei<10;ei++)eo[ei]=en[ei]^en[ei+10]^en[ei+20]^en[ei+30]^en[ei+40];for(let ei=0;ei<10;ei+=2){let ea=(ei+8)%10,es=(ei+2)%10,ed=eo[es],eu=eo[es+1],ef=rotlH(ed,eu,1)^eo[ea],ep=rotlL(ed,eu,1)^eo[ea+1];for(let eo=0;eo<50;eo+=10)en[ei+eo]^=ef,en[ei+eo+1]^=ep}let ei=en[2],es=en[3];for(let eo=0;eo<24;eo++){let ea=ef[eo],ed=rotlH(ei,es,ea),ep=rotlL(ei,es,ea),em=eu[eo];ei=en[em],es=en[em+1],en[em]=ed,en[em+1]=ep}for(let ei=0;ei<50;ei+=10){for(let ea=0;ea<10;ea++)eo[ea]=en[ei+ea];for(let ea=0;ea<10;ea++)en[ei+ea]^=~eo[(ea+2)%10]&eo[(ea+4)%10]}en[0]^=eR[ea],en[1]^=eA[ea]}eo.fill(0)}ei.keccakP=keccakP;let Keccak=class Keccak extends ed.Hash{constructor(en,ei,eo,es=!1,eu=24){if(super(),this.blockLen=en,this.suffix=ei,this.outputLen=eo,this.enableXOF=es,this.rounds=eu,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,ea.number)(eo),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,ed.u32)(this.state)}keccak(){ed.isLE||(0,ed.byteSwap32)(this.state32),keccakP(this.state32,this.rounds),ed.isLE||(0,ed.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(en){(0,ea.exists)(this);let{blockLen:ei,state:eo}=this;en=(0,ed.toBytes)(en);let es=en.length;for(let ea=0;ea<es;){let ed=Math.min(ei-this.pos,es-ea);for(let ei=0;ei<ed;ei++)eo[this.pos++]^=en[ea++];this.pos===ei&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:en,suffix:ei,pos:eo,blockLen:ea}=this;en[eo]^=ei,(128&ei)!=0&&eo===ea-1&&this.keccak(),en[ea-1]^=128,this.keccak()}writeInto(en){(0,ea.exists)(this,!1),(0,ea.bytes)(en),this.finish();let ei=this.state,{blockLen:eo}=this;for(let ea=0,es=en.length;ea<es;){this.posOut>=eo&&this.keccak();let ed=Math.min(eo-this.posOut,es-ea);en.set(ei.subarray(this.posOut,this.posOut+ed),ea),this.posOut+=ed,ea+=ed}return en}xofInto(en){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(en)}xof(en){return(0,ea.number)(en),this.xofInto(new Uint8Array(en))}digestInto(en){if((0,ea.output)(en,this),this.finished)throw Error("digest() was already called");return this.writeInto(en),this.destroy(),en}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(en){let{blockLen:ei,suffix:eo,outputLen:ea,rounds:es,enableXOF:ed}=this;return en||(en=new Keccak(ei,eo,ea,ed,es)),en.state32.set(this.state32),en.pos=this.pos,en.posOut=this.posOut,en.finished=this.finished,en.rounds=es,en.suffix=eo,en.outputLen=ea,en.enableXOF=ed,en.destroyed=this.destroyed,en}};ei.Keccak=Keccak;let gen=(en,ei,eo)=>(0,ed.wrapConstructor)(()=>new Keccak(ei,en,eo));ei.sha3_224=gen(6,144,28),ei.sha3_256=gen(6,136,32),ei.sha3_384=gen(6,104,48),ei.sha3_512=gen(6,72,64),ei.keccak_224=gen(1,144,28),ei.keccak_256=gen(1,136,32),ei.keccak_384=gen(1,104,48),ei.keccak_512=gen(1,72,64);let genShake=(en,ei,eo)=>(0,ed.wrapXOFConstructorWithOpts)((ea={})=>new Keccak(ei,en,void 0===ea.dkLen?eo:ea.dkLen,!0));ei.shake128=genShake(31,168,16),ei.shake256=genShake(31,136,32)},86262:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.sha384=ei.sha512_256=ei.sha512_224=ei.sha512=ei.SHA512=void 0;let ea=eo(75457),es=eo(6873),ed=eo(98089),[eu,ef]=es.default.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b89
46f","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(en=>BigInt(en))),ep=new Uint32Array(80),em=new Uint32Array(80);let SHA512=class SHA512 extends ea.HashMD{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(){let{Ah:en,Al:ei,Bh:eo,Bl:ea,Ch:es,Cl:ed,Dh:eu,Dl:ef,Eh:ep,El:em,Fh:eg,Fl:ey,Gh:eb,Gl:eS,Hh:e_,Hl:eR}=this;return[en,ei,eo,ea,es,ed,eu,ef,ep,em,eg,ey,eb,eS,e_,eR]}set(en,ei,eo,ea,es,ed,eu,ef,ep,em,eg,ey,eb,eS,e_,eR){this.Ah=0|en,this.Al=0|ei,this.Bh=0|eo,this.Bl=0|ea,this.Ch=0|es,this.Cl=0|ed,this.Dh=0|eu,this.Dl=0|ef,this.Eh=0|ep,this.El=0|em,this.Fh=0|eg,this.Fl=0|ey,this.Gh=0|eb,this.Gl=0|eS,this.Hh=0|e_,this.Hl=0|eR}process(en,ei){for(let eo=0;eo<16;eo++,ei+=4)ep[eo]=en.getUint32(ei),em[eo]=en.getUint32(ei+=4);for(let en=16;en<80;en++){let ei=0|ep[en-15],eo=0|em[en-15],ea=es.default.rotrSH(ei,eo,1)^es.default.rotrSH(ei,eo,8)^es.default.shrSH(ei,eo,7),ed=es.default.rotrSL(ei,eo,1)^es.default.rotrSL(ei,eo,8)^es.default.shrSL(ei,eo,7),eu=0|ep[en-2],ef=0|em[en-2],eg=es.default.rotrSH(eu,ef,19)^es.default.rotrBH(eu,ef,61)^es.default.shrSH(eu,ef,6),ey=es.default.rotrSL(eu,ef,19)^es.default.rotrBL(eu,ef,61)^es.default.shrSL(eu,ef,6),eb=es.default.add4L(ed,ey,em[en-7],em[en-16]),eS=es.default.add4H(eb,ea,eg,ep[en-7],ep[en-16]);ep[en]=0|eS,em[en]=0|eb}let{Ah:eo,Al:ea,Bh:ed,Bl:eg,Ch:ey,Cl:eb,Dh:eS,Dl:e_,Eh:eR,El:eA,Fh:ew,Fl:eO,Gh:eE,Gl:eP,Hh:eC,Hl:eT}=this;for(let en=0;en<80;en++){let ei=es.default.rotrSH(eR,eA,14)^es.default.rotrSH(eR,eA,18)^es.default.rotrBH(eR,eA,41),eB=es.default.rotrSL(eR,eA,14)^es.default.rotrSL(eR,eA,18)^es.default.rotrBL(eR,eA,41),eN=eR&ew^~eR&eE,eI=eA&eO^~eA&eP,ex=es.default.add5L(eT,eB,eI,ef[en],em[en]),eM=es.default.add5H(ex,eC,ei,eN,eu[en],ep[en]),eD=0|ex,eU=es.default.rotrSH(eo,ea,28)^es.default.rotrBH(eo,ea,34)^es.default.rotrBH(eo,ea,39),eL=es.default.rotrSL(eo,ea,28)^es.default.rotrBL(eo,ea,34)^es.default.rotrBL(eo,ea,39),eJ=eo&ed^eo&ey^ed&ey,eF=ea&eg^ea&eb^eg&eb;eC=0|eE,eT=0|eP,eE=0|ew,eP=0|eO,ew=0|eR,eO=0|eA,({h:eR,l:eA}=es.default.add(0|eS,0|e_,0|eM,0|eD)),eS=0|ey,e_=0|eb,ey=0|ed,eb=0|eg,ed=0|eo,eg=0|ea;let eH=es.default.add3L(eD,eL,eF);eo=es.default.add3H(eH,eM,eU,eJ),ea=0|eH}({h:eo,l:ea}=es.default.add(0|this.Ah,0|this.Al,0|eo,0|ea)),({h:ed,l:eg}=es.default.add(0|this.Bh,0|this.Bl,0|ed,0|eg)),({h:ey,l:eb}=es.default.add(0|this.Ch,0|this.Cl,0|ey,0|eb)),({h:eS,l:e_}=es.default.add(0|this.Dh,0|this.Dl,0|eS,0|e_)),({h:eR,l:eA}=es.default.add(0|this.Eh,0|this.El,0|eR,0|eA)),({h:ew,l:eO}=es.default.add(0|this.Fh,0|this.Fl,0|ew,0|eO)),({h:eE,l:eP}=es.default.add(0|this.Gh,0|this.Gl,0|eE,0|eP)),({h:eC,l:eT}
4=es.default.add(0|this.Hh,0|this.Hl,0|eC,0|eT)),this.set(eo,ea,ed,eg,ey,eb,eS,e_,eR,eA,ew,eO,eE,eP,eC,eT)}roundClean(){ep.fill(0),em.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)}};ei.SHA512=SHA512;let SHA512_224=class SHA512_224 extends SHA512{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}};let SHA512_256=class SHA512_256 extends SHA512{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}};let SHA384=class SHA384 extends SHA512{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}};ei.sha512=(0,ed.wrapConstructor)(()=>new SHA512),ei.sha512_224=(0,ed.wrapConstructor)(()=>new SHA512_224),ei.sha512_256=(0,ed.wrapConstructor)(()=>new SHA512_256),ei.sha384=(0,ed.wrapConstructor)(()=>new SHA384)},98089:function(en,ei,eo){"use strict";/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(ei,"__esModule",{value:!0}),ei.randomBytes=ei.wrapXOFConstructorWithOpts=ei.wrapConstructorWithOpts=ei.wrapConstructor=ei.checkOpts=ei.Hash=ei.concatBytes=ei.toBytes=ei.utf8ToBytes=ei.asyncLoop=ei.nextTick=ei.hexToBytes=ei.bytesToHex=ei.byteSwap32=ei.byteSwapIfBE=ei.byteSwap=ei.isLE=ei.rotl=ei.rotr=ei.createView=ei.u32=ei.u8=ei.isBytes=void 0;let ea=eo(31945),es=eo(27320);function isBytes(en){return en instanceof Uint8Array||null!=en&&"object"==typeof en&&"Uint8Array"===en.constructor.name}ei.isBytes=isBytes;let u8=en=>new Uint8Array(en.buffer,en.byteOffset,en.byteLength);ei.u8=u8;let u32=en=>new Uint32Array(en.buffer,en.byteOffset,Math.floor(en.byteLength/4));ei.u32=u32;let createView=en=>new DataView(en.buffer,en.byteOffset,en.byteLength);ei.createView=createView;let rotr=(en,ei)=>en<<32-ei|en>>>ei;ei.rotr=rotr;let rotl=(en,ei)=>en<<ei|en>>>32-ei>>>0;ei.rotl=rotl,ei.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];let byteSwap=en=>en<<24&4278190080|en<<8&16711680|en>>>8&65280|en>>>24&255;function byteSwap32(en){for(let eo=0;eo<en.length;eo++)en[eo]=(0,ei.byteSwap)(en[eo])}ei.byteSwap=byteSwap,ei.byteSwapIfBE=ei.isLE?en=>en:en=>(0,ei.byteSwap)(en),ei.byteSwap32=byteSwap32;let ed=Array.from({length:256},(en,ei)=>ei.toString(16).padStart(2,"0"));function bytesToHex(en){(0,es.bytes)(en);let ei="";for(let eo=0;eo<en.length;eo++)ei+=ed[en[eo]];return ei}ei.bytesToHex=bytesToHex;let eu={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function asciiToBase16(en){return en>=eu._0&&en<=eu._9?en-eu._0:en>=eu._A&&en<=eu._F?en-(eu._A-10):en>=eu._a&&en<=eu._f?en-(eu._a-10):void 0}function hexToBytes(en){if("string"!=typeof en)throw Error("hex string expected, got "+typeof en);let ei=en.length,eo=ei/2;if(ei%2)throw Error("padded hex string expected, got unpadded hex of length "+ei);let ea=new Uint8Array(eo);for(let ei=0,es=0;ei<eo;ei++,es+=2){let eo=asciiToBase16(en.charCodeAt(es)),ed=asciiToBase16(en.charCodeAt(es+1));if(void 0===eo||void 0===ed){let ei=en[es]+en[es+1];throw Error('hex string expected, got non-hex character "'+ei+'" at index '+es)}ea[ei]=16*eo+ed}return ea}ei.hexToBytes=hexToBytes;let nextTick=async()=>{};async function asyncLoop(en,eo,ea){let es=Date.now();for(let ed=0;ed<en;ed++){ea(ed);let en=Date.now()-es;en>=0&&en<eo||(await (0,ei.nextTick)(),es+=en)}}function utf8ToBytes(en){if("string"!=typeof en)throw Error(`utf8ToBytes expected string, got ${typeof en}`);return new Uint8Array(new TextEncoder().encode(en))}function toBytes(en){return"string"==typeof en&&(en=utf8ToBytes(en)),(0,es.bytes)(en),en}function concatBytes(...en){let ei=0;for(let eo=0;eo<en.length;eo++){let ea=en[eo];(0,es.bytes)(ea),ei+=ea.length}let eo=new Uint8Array(ei);for(let ei=0,ea=0;ei<en.length;ei++){let es=en[ei];eo.set(es,ea),ea+=es.length}return eo}ei.nextTick=nextTick,ei.asyncLoop=asyncLoop,ei.utf8ToBytes=utf8ToBytes,ei.toBytes=toBytes,ei.concatBytes=concatBytes;let Hash=class Hash{clone(){return this._cloneInto()}};ei.Hash=Hash;let ef={}.toString;function checkOpts(en,ei){if(void 0!==ei&&"[object Object]"!==ef.call(ei))throw Error("Options should be object or undefined");let eo=Object.assign(en,ei);return eo}function wrapConstructor(en){let hashC=ei=>en().update(toBytes(ei)).digest(),ei=en();return hashC.outputLen=ei.outputLen,hashC.blockLen=ei.blockLen,hashC.create=()=>en(),hashC}function wrapConstructorWithOpts(en){let hashC=(ei,eo)=>en(eo).update(toBytes(ei)).digest(),ei=en({});return hashC.outputLen=ei.outputLen,hashC.blockLen=ei.blockLen,hashC.create=ei=>en(ei),hashC}function wrapXOFConstructorWithOpts(en){let hashC=(ei,eo)=>en(eo).update(toBytes(ei)).digest(),ei=en({});return hashC.outputLen=ei.outputLen,hashC.blockLen=ei.blockLen,hashC.create=ei=>en(ei),hashC}function randomBytes(en=32){if(ea.crypto&&"function"==typeof ea.crypto.getRandomValues)return ea.crypto.getRandomValues(new Uint8Array(en));throw Error("crypto.getRandomValues must be defined")}ei.checkOpts=checkOpts,ei.wrapConstructor=wrapConstructor,ei.wrapConstructorWithOpts=wrapConstructorWithOpts,ei.wrapXOFConstructorWithOpts=wrapXOFConstructorWithOpts,ei.randomBytes=randomBytes},34537:function(en){"use strict";function asPromise(en,ei){for(var eo=Array(arguments.length-1),ea=0,es=2,ed=!0;es<arguments.length;)eo[ea++]=arguments[es++];return new Promise(function(es,eu){eo[ea]=function(en){if(ed){if(ed=!1,en)eu(en);else{for(var ei=Array(arguments.length-1),eo=0;eo<ei.length;)ei[eo++]=arguments[eo];es.apply(null,ei)}}};try{en.apply(ei||null,eo)}catch(en){ed&&(ed=!1,eu(en))}})}en.exports=asPromise},97419:function(en,ei){"use strict";var eo=ei;eo.length=function(en){var ei=en.length;if(!ei)return 0;for(var eo=0;--ei%4>1&&"="===en.charAt(ei);)++eo;return Math.ceil(3*en.length)/4-eo};for(var ea=Array(64),es=Array(123),ed=0;ed<64;)es[ea[ed]=ed<26?ed+65:ed<52?ed+71:ed<62?ed-4:ed-59|43]=ed++;eo.encode=function(en,ei,eo){for(var es,ed=null,eu=[],ef=0,ep=0;ei<eo;){var em=en[ei++];switch(ep){case 0:eu[ef++]=ea[em>>2],es=(3&em)<<4,ep=1;break;case 1:eu[ef++]=ea[es|em>>
vendor: 7,120 bytes, line 4
44],es=(15&em)<<2,ep=2;break;case 2:eu[ef++]=ea[es|em>>6],eu[ef++]=ea[63&em],ep=0}ef>8191&&((ed||(ed=[])).push(String.fromCharCode.apply(String,eu)),ef=0)}return(ep&&(eu[ef++]=ea[es],eu[ef++]=61,1===ep&&(eu[ef++]=61)),ed)?(ef&&ed.push(String.fromCharCode.apply(String,eu.slice(0,ef))),ed.join("")):String.fromCharCode.apply(String,eu.slice(0,ef))};var eu="invalid encoding";eo.decode=function(en,ei,eo){for(var ea,ed=eo,ef=0,ep=0;ep<en.length;){var em=en.charCodeAt(ep++);if(61===em&&ef>1)break;if(void 0===(em=es[em]))throw Error(eu);switch(ef){case 0:ea=em,ef=1;break;case 1:ei[eo++]=ea<<2|(48&em)>>4,ea=em,ef=2;break;case 2:ei[eo++]=(15&ea)<<4|(60&em)>>2,ea=em,ef=3;break;case 3:ei[eo++]=(3&ea)<<6|em,ef=0}}if(1===ef)throw Error(eu);return eo-ed},eo.test=function(en){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(en)}},19211:function(en){"use strict";function EventEmitter(){this._listeners={}}en.exports=EventEmitter,EventEmitter.prototype.on=function(en,ei,eo){return(this._listeners[en]||(this._listeners[en]=[])).push({fn:ei,ctx:eo||this}),this},EventEmitter.prototype.off=function(en,ei){if(void 0===en)this._listeners={};else if(void 0===ei)this._listeners[en]=[];else for(var eo=this._listeners[en],ea=0;ea<eo.length;)eo[ea].fn===ei?eo.splice(ea,1):++ea;return this},EventEmitter.prototype.emit=function(en){var ei=this._listeners[en];if(ei){for(var eo=[],ea=1;ea<arguments.length;)eo.push(arguments[ea++]);for(ea=0;ea<ei.length;)ei[ea].fn.apply(ei[ea++].ctx,eo)}return this}},10945:function(en){"use strict";function factory(en){return"undefined"!=typeof Float32Array?function(){var ei=new Float32Array([-0]),eo=new Uint8Array(ei.buffer),ea=128===eo[3];function writeFloat_f32_cpy(en,ea,es){ei[0]=en,ea[es]=eo[0],ea[es+1]=eo[1],ea[es+2]=eo[2],ea[es+3]=eo[3]}function writeFloat_f32_rev(en,ea,es){ei[0]=en,ea[es]=eo[3],ea[es+1]=eo[2],ea[es+2]=eo[1],ea[es+3]=eo[0]}function readFloat_f32_cpy(en,ea){return eo[0]=en[ea],eo[1]=en[ea+1],eo[2]=en[ea+2],eo[3]=en[ea+3],ei[0]}function readFloat_f32_rev(en,ea){return eo[3]=en[ea],eo[2]=en[ea+1],eo[1]=en[ea+2],eo[0]=en[ea+3],ei[0]}en.writeFloatLE=ea?writeFloat_f32_cpy:writeFloat_f32_rev,en.writeFloatBE=ea?writeFloat_f32_rev:writeFloat_f32_cpy,en.readFloatLE=ea?readFloat_f32_cpy:readFloat_f32_rev,en.readFloatBE=ea?readFloat_f32_rev:readFloat_f32_cpy}():function(){function writeFloat_ieee754(en,ei,eo,ea){var es=ei<0?1:0;if(es&&(ei=-ei),0===ei)en(1/ei>0?0:2147483648,eo,ea);else if(isNaN(ei))en(2143289344,eo,ea);else if(ei>34028234663852886e22)en((es<<31|2139095040)>>>0,eo,ea);else if(ei<11754943508222875e-54)en((es<<31|Math.round(ei/1401298464324817e-60))>>>0,eo,ea);else{var ed=Math.floor(Math.log(ei)/Math.LN2),eu=8388607&Math.round(ei*Math.pow(2,-ed)*8388608);en((es<<31|ed+127<<23|eu)>>>0,eo,ea)}}function readFloat_ieee754(en,ei,eo){var ea=en(ei,eo),es=(ea>>31)*2+1,ed=ea>>>23&255,eu=8388607&ea;return 255===ed?eu?NaN:es*(1/0):0===ed?1401298464324817e-60*es*eu:es*Math.pow(2,ed-150)*(eu+8388608)}en.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),en.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),en.readFloatLE=readFloat_ieee754.bind(null,readUintLE),en.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}(),"undefined"!=typeof Float64Array?function(){var ei=new Float64Array([-0]),eo=new Uint8Array(ei.buffer),ea=128===eo[7];function writeDouble_f64_cpy(en,ea,es){ei[0]=en,ea[es]=eo[0],ea[es+1]=eo[1],ea[es+2]=eo[2],ea[es+3]=eo[3],ea[es+4]=eo[4],ea[es+5]=eo[5],ea[es+6]=eo[6],ea[es+7]=eo[7]}function writeDouble_f64_rev(en,ea,es){ei[0]=en,ea[es]=eo[7],ea[es+1]=eo[6],ea[es+2]=eo[5],ea[es+3]=eo[4],ea[es+4]=eo[3],ea[es+5]=eo[2],ea[es+6]=eo[1],ea[es+7]=eo[0]}function readDouble_f64_cpy(en,ea){return eo[0]=en[ea],eo[1]=en[ea+1],eo[2]=en[ea+2],eo[3]=en[ea+3],eo[4]=en[ea+4],eo[5]=en[ea+5],eo[6]=en[ea+6],eo[7]=en[ea+7],ei[0]}function readDouble_f64_rev(en,ea){return eo[7]=en[ea],eo[6]=en[ea+1],eo[5]=en[ea+2],eo[4]=en[ea+3],eo[3]=en[ea+4],eo[2]=en[ea+5],eo[1]=en[ea+6],eo[0]=en[ea+7],ei[0]}en.writeDoubleLE=ea?writeDouble_f64_cpy:writeDouble_f64_rev,en.writeDoubleBE=ea?writeDouble_f64_rev:writeDouble_f64_cpy,en.readDoubleLE=ea?readDouble_f64_cpy:readDouble_f64_rev,en.readDoubleBE=ea?readDouble_f64_rev:readDouble_f64_cpy}():function(){function writeDouble_ieee754(en,ei,eo,ea,es,ed){var eu,ef=ea<0?1:0;if(ef&&(ea=-ea),0===ea)en(0,es,ed+ei),en(1/ea>0?0:2147483648,es,ed+eo);else if(isNaN(ea))en(0,es,ed+ei),en(2146959360,es,ed+eo);else if(ea>17976931348623157e292)en(0,es,ed+ei),en((ef<<31|2146435072)>>>0,es,ed+eo);else if(ea<22250738585072014e-324)en((eu=ea/5e-324)>>>0,es,ed+ei),en((ef<<31|eu/4294967296)>>>0,es,ed+eo);else{var ep=Math.floor(Math.log(ea)/Math.LN2);1024===ep&&(ep=1023),en(4503599627370496*(eu=ea*Math.pow(2,-ep))>>>0,es,ed+ei),en((ef<<31|ep+1023<<20|1048576*eu&1048575)>>>0,es,ed+eo)}}function readDouble_ieee754(en,ei,eo,ea,es){var ed=en(ea,es+ei),eu=en(ea,es+eo),ef=(eu>>31)*2+1,ep=eu>>>20&2047,em=4294967296*(1048575&eu)+ed;return 2047===ep?em?NaN:ef*(1/0):0===ep?5e-324*ef*em:ef*Math.pow(2,ep-1075)*(em+4503599627370496)}en.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),en.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),en.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),en.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}(),en}function writeUintLE(en,ei,eo){ei[eo]=255&en,ei[eo+1]=en>>>8&255,ei[eo+2]=en>>>16&255,ei[eo+3]=en>>>24}function writeUintBE(en,ei,eo){ei[eo]=en>>>24,ei[eo+1]=en>>>16&255,ei[eo+2]=en>>>8&255,ei[eo+3]=255&en}function readUintLE(en,ei){return(en[ei]|en[ei+1]<<8|en[ei+2]<<16|en[ei+3]<<24)>>>0}function readUintBE(en,ei){return(en[ei]<<24|en[ei+1]<<16|en[ei+2]<<8|en[ei+3])>>>0}en.exports=factory(factory)},67199:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},76662:function(en){"use strict";function pool(en,ei,eo){var ea=eo||8192,es=ea>>>1,ed=null,eu=ea;return function(eo){if(eo<1||eo>es)return en(eo);eu+eo>ea&&(ed=en(ea),eu=0);var ef=ei.call(ed,eu,eu+=eo);return 7&eu&&(eu=(7|eu)+1),ef}}en.exports=pool},94997:function(en,ei){"use strict";var eo=ei;eo.length=function(en){for(var ei=0,eo=0,ea=0;ea<en.length;++ea)(eo=en.charCodeAt(ea))<128?ei+=1:eo<2048?ei+=2:(64512&eo)==55296&&(64512&en.charCodeAt(ea+1))==56320?(++ea,ei+=4):ei+=3;return ei},eo.read=function(en,ei,eo){if(eo-ei<1)return"";for(var ea,es=null,ed=[],eu=0;ei<eo;)(ea=en[ei++])<128?ed[eu++]=ea:ea>191&&ea<224?ed[eu++]=(31&ea)<<6|63&en[ei++]:ea>239&&ea<365?(ea=((7&ea)<<18|(63&en[ei++])<<12|(63&en[ei++])<<6|63&en[ei++])-65536,ed[eu++]=55296+(ea>>10),ed[eu++]=56320+(1023&ea)):ed[eu++]=(15&ea)<<12|(63&en[ei++])<<6|63&en[ei++],eu>8191&&((es||(es=[])).push(String.fromCharCode.apply(String,ed)),eu=0);return es?(eu&&es.push(String.fromCharCode.apply(String,ed.slice(0,eu))),es.join("")):String.fromCharCode.apply(String,ed.slice(0,eu))},eo.write=function(en,ei,eo){for(var ea,es,ed=eo,eu=0;eu<en.length;++eu)(ea=en.charCodeAt(eu))<128?ei[eo++]=ea:(ea<2048?ei[eo++]=ea>>
46|192:((64512&ea)==55296&&(64512&(es=en.charCodeAt(eu+1)))==56320?(ea=65536+((1023&ea)<<10)+(1023&es),++eu,ei[eo++]=ea>>18|240,ei[eo++]=ea>>12&63|128):ei[eo++]=ea>>12|224,ei[eo++]=ea>>6&63|128),ei[eo++]=63&ea|128);return eo-ed}},78826:function(en){"use strict";!function(ei){function checkInt(en){return parseInt(en)===en}function checkInts(en){if(!checkInt(en.length))return!1;for(var ei=0;ei<en.length;ei++)if(!checkInt(en[ei])||en[ei]<0||en[ei]>255)return!1;return!0}function coerceArray(en,ei){if(en.buffer&&ArrayBuffer.isView(en)&&"Uint8Array"===en.name)return ei&&(en=en.slice?en.slice():Array.prototype.slice.call(en)),en;if(Array.isArray(en)){if(!checkInts(en))throw Error("Array contains invalid value: "+en);return new Uint8Array(en)}if(checkInt(en.length)&&checkInts(en))return new Uint8Array(en);throw Error("unsupported array-like object")}function createArray(en){return new Uint8Array(en)}function copyArray(en,ei,eo,ea,es){(null!=ea||null!=es)&&(en=en.slice?en.slice(ea,es):Array.prototype.slice.call(en,ea,es)),ei.set(en,eo)}var eo=function(){return{toBytes:function(en){var ei=[],eo=0;for(en=encodeURI(en);eo<en.length;){var ea=en.charCodeAt(eo++);37===ea?(ei.push(parseInt(en.substr(eo,2),16)),eo+=2):ei.push(ea)}return coerceArray(ei)},fromBytes:function(en){for(var ei=[],eo=0;eo<en.length;){var ea=en[eo];ea<128?(ei.push(String.fromCharCode(ea)),eo++):ea>191&&ea<224?(ei.push(String.fromCharCode((31&ea)<<6|63&en[eo+1])),eo+=2):(ei.push(String.fromCharCode((15&ea)<<12|(63&en[eo+1])<<6|63&en[eo+2])),eo+=3)}return ei.join("")}}}(),ea=function(){var en="0123456789abcdef";return{toBytes:function(en){for(var ei=[],eo=0;eo<en.length;eo+=2)ei.push(parseInt(en.substr(eo,2),16));return ei},fromBytes:function(ei){for(var eo=[],ea=0;ea<ei.length;ea++){var es=ei[ea];eo.push(en[(240&es)>>4]+en[15&es])}return eo.join("")}}}(),es={16:10,24:12,32:14},ed=[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],eu=[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],ef=[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],ep=[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,3
4025820398,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],em=[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,111
45438654,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],eg=[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],ey=[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,4025428
4677,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],eb=[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],eS=[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,18625348
468,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],e_=[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],eR=[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,6454
401037,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],eA=[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],ew=[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,12
401765386,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],eO=[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],eE=[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,4002861
4748,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 convertToInt32(en){for(var ei=[],eo=0;eo<en.length;eo+=4)ei.push(en[eo]<<24|en[eo+1]<<16|en[eo+2]<<8|en[eo+3]);return ei}var AES=function(en){if(!(this instanceof AES))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:coerceArray(en,!0)}),this._prepare()};AES.prototype._prepare=function(){var en=es[this.key.length];if(null==en)throw Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var ei=0;ei<=en;ei++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var eo=(en+1)*4,ea=this.key.length/4,ef=convertToInt32(this.key),ei=0;ei<ea;ei++)ep=ei>>2,this._Ke[ep][ei%4]=ef[ei],this._Kd[en-ep][ei%4]=ef[ei];for(var ep,em,eg=0,ey=ea;ey<eo;){if(em=ef[ea-1],ef[0]^=eu[em>>16&255]<<24^eu[em>>8&255]<<16^eu[255&em]<<8^eu[em>>24&255]^ed[eg]<<24,eg+=1,8!=ea)for(var ei=1;ei<ea;ei++)ef[ei]^=ef[ei-1];else{for(var ei=1;ei<ea/2;ei++)ef[ei]^=ef[ei-1];em=ef[ea/2-1],ef[ea/2]^=eu[255&em]^eu[em>>8&255]<<8^eu[em>>16&255]<<16^eu[em>>24&255]<<24;for(var ei=ea/2+1;ei<ea;ei++)ef[ei]^=ef[ei-1]}for(var eb,eS,ei=0;ei<ea&&ey<eo;)eb=ey>>2,eS=ey%4,this._Ke[eb][eS]=ef[ei],this._Kd[en-eb][eS]=ef[ei++],ey++}for(var eb=1;eb<en;eb++)for(var eS=0;eS<4;eS++)em=this._Kd[eb][eS],this._Kd[eb][eS]=eA[em>>24&255]^ew[em>>16&255]^eO[em>>8&255]^eE[255&em]},AES.prototype.encrypt=function(en){if(16!=en.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var ei=this._Ke.length-1,eo=[0,0,0,0],ea=convertToInt32(en),es=0;es<4;es++)ea[es]^=this._Ke[0][es];for(var ed=1;ed<ei;ed++){for(var es=0;es<4;es++)eo[es]=ep[ea[es]>>24&255]^em[ea[(es+1)%4]>>16&255]^eg[ea[(es+2)%4]>>8&255]^ey[255&ea[(es+3)%4]]^this._Ke[ed][es];ea=eo.slice()}for(var ef,eb=createArray(16),es=0;es<4;es++)ef=this._Ke[ei][es],eb[4*es]=(eu[ea[es]>>24&255]^ef>>24)&255,eb[4*es+1]=(eu[ea[(es+1)%4]>>16&255]^ef>>16)&255,eb[4*es+2]=(eu[ea[(es+2)%4]>>8&255]^ef>>8)&255,eb[4*es+3]=(eu[255&ea[(es+3)%4]]^ef)&255;return eb},AES.prototype.decrypt=function(en){if(16!=en.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var ei=this._Kd.length-1,eo=[0,0,0,0],ea=convertToInt32(en),es=0;es<4;es++)ea[es]^=this._Kd[0][es];for(var ed=1;ed<ei;ed++){for(var es=0;es<4;es++)eo[es]=eb[ea[es]>>24&255]^eS[ea[(es+3)%4]>>16&255]^e_[ea[(es+2)%4]>>8&255]^eR[255&ea[(es+1)%4]]^this._Kd[ed][es];ea=eo.slice()}for(var eu,ep=createArray(16),es=0;es<4;es++)eu=this._Kd[ei][es],ep[4*es]=(ef[ea[es]>>24&255]^eu>>24)&255,ep[4*es+1]=(ef[ea[(es+3)%4]>>16&255]^eu>>16)&255,ep[4*es+2]=(ef[ea[(es+2)%4]>>8&255]^eu>>8)&255,ep[4*es+3]=(ef[255&ea[(es+1)%4]]^eu)&255;return ep};var ModeOfOperationECB=function(en){if(!(this instanceof ModeOfOperationECB))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new AES(en)};ModeOfOperationECB.prototype.encrypt=function(en){if((en=coerceArray(en)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var ei=createArray(en.length),eo=createArray(16),ea=0;ea<en.length;ea+=16)copyArray(en,eo,0,ea,ea+16),copyArray(eo=this._aes.encrypt
4(eo),ei,ea);return ei},ModeOfOperationECB.prototype.decrypt=function(en){if((en=coerceArray(en)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var ei=createArray(en.length),eo=createArray(16),ea=0;ea<en.length;ea+=16)copyArray(en,eo,0,ea,ea+16),copyArray(eo=this._aes.decrypt(eo),ei,ea);return ei};var ModeOfOperationCBC=function(en,ei){if(!(this instanceof ModeOfOperationCBC))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",ei){if(16!=ei.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else ei=createArray(16);this._lastCipherblock=coerceArray(ei,!0),this._aes=new AES(en)};ModeOfOperationCBC.prototype.encrypt=function(en){if((en=coerceArray(en)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var ei=createArray(en.length),eo=createArray(16),ea=0;ea<en.length;ea+=16){copyArray(en,eo,0,ea,ea+16);for(var es=0;es<16;es++)eo[es]^=this._lastCipherblock[es];this._lastCipherblock=this._aes.encrypt(eo),copyArray(this._lastCipherblock,ei,ea)}return ei},ModeOfOperationCBC.prototype.decrypt=function(en){if((en=coerceArray(en)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var ei=createArray(en.length),eo=createArray(16),ea=0;ea<en.length;ea+=16){copyArray(en,eo,0,ea,ea+16),eo=this._aes.decrypt(eo);for(var es=0;es<16;es++)ei[ea+es]=eo[es]^this._lastCipherblock[es];copyArray(en,this._lastCipherblock,0,ea,ea+16)}return ei};var ModeOfOperationCFB=function(en,ei,eo){if(!(this instanceof ModeOfOperationCFB))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",ei){if(16!=ei.length)throw Error("invalid initialation vector size (must be 16 size)")}else ei=createArray(16);eo||(eo=1),this.segmentSize=eo,this._shiftRegister=coerceArray(ei,!0),this._aes=new AES(en)};ModeOfOperationCFB.prototype.encrypt=function(en){if(en.length%this.segmentSize!=0)throw Error("invalid plaintext size (must be segmentSize bytes)");for(var ei,eo=coerceArray(en,!0),ea=0;ea<eo.length;ea+=this.segmentSize){ei=this._aes.encrypt(this._shiftRegister);for(var es=0;es<this.segmentSize;es++)eo[ea+es]^=ei[es];copyArray(this._shiftRegister,this._shiftRegister,0,this.segmentSize),copyArray(eo,this._shiftRegister,16-this.segmentSize,ea,ea+this.segmentSize)}return eo},ModeOfOperationCFB.prototype.decrypt=function(en){if(en.length%this.segmentSize!=0)throw Error("invalid ciphertext size (must be segmentSize bytes)");for(var ei,eo=coerceArray(en,!0),ea=0;ea<eo.length;ea+=this.segmentSize){ei=this._aes.encrypt(this._shiftRegister);for(var es=0;es<this.segmentSize;es++)eo[ea+es]^=ei[es];copyArray(this._shiftRegister,this._shiftRegister,0,this.segmentSize),copyArray(en,this._shiftRegister,16-this.segmentSize,ea,ea+this.segmentSize)}return eo};var ModeOfOperationOFB=function(en,ei){if(!(this instanceof ModeOfOperationOFB))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",ei){if(16!=ei.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else ei=createArray(16);this._lastPrecipher=coerceArray(ei,!0),this._lastPrecipherIndex=16,this._aes=new AES(en)};ModeOfOperationOFB.prototype.encrypt=function(en){for(var ei=coerceArray(en,!0),eo=0;eo<ei.length;eo++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),ei[eo]^=this._lastPrecipher[this._lastPrecipherIndex++];return ei},ModeOfOperationOFB.prototype.decrypt=ModeOfOperationOFB.prototype.encrypt;var Counter=function(en){if(!(this instanceof Counter))throw Error("Counter must be instanitated with `new`");0===en||en||(en=1),"number"==typeof en?(this._counter=createArray(16),this.setValue(en)):this.setBytes(en)};Counter.prototype.setValue=function(en){if("number"!=typeof en||parseInt(en)!=en)throw Error("invalid counter value (must be an integer)");for(var ei=15;ei>=0;--ei)this._counter[ei]=en%256,en>>=8},Counter.prototype.setBytes=function(en){if(16!=(en=coerceArray(en,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=en},Counter.prototype.increment=function(){for(var en=15;en>=0;en--)if(255===this._counter[en])this._counter[en]=0;else{this._counter[en]++;break}};var ModeOfOperationCTR=function(en,ei){if(!(this instanceof ModeOfOperationCTR))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",ei instanceof Counter||(ei=new Counter(ei)),this._counter=ei,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new AES(en)};ModeOfOperationCTR.prototype.encrypt=function(en){for(var ei=coerceArray(en,!0),eo=0;eo<ei.length;eo++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt
4(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),ei[eo]^=this._remainingCounter[this._remainingCounterIndex++];return ei},ModeOfOperationCTR.prototype.decrypt=ModeOfOperationCTR.prototype.encrypt;var eP={AES:AES,Counter:Counter,ModeOfOperation:{ecb:ModeOfOperationECB,cbc:ModeOfOperationCBC,cfb:ModeOfOperationCFB,ofb:ModeOfOperationOFB,ctr:ModeOfOperationCTR},utils:{hex:ea,utf8:eo},padding:{pkcs7:{pad:function(en){var ei=16-(en=coerceArray(en,!0)).length%16,eo=createArray(en.length+ei);copyArray(en,eo);for(var ea=en.length;ea<eo.length;ea++)eo[ea]=ei;return eo},strip:function(en){if((en=coerceArray(en,!0)).length<16)throw Error("PKCS#7 invalid length");var ei=en[en.length-1];if(ei>16)throw Error("PKCS#7 padding byte out of range");for(var eo=en.length-ei,ea=0;ea<ei;ea++)if(en[eo+ea]!==ei)throw Error("PKCS#7 invalid padding byte");var es=createArray(eo);return copyArray(en,es,0,0,eo),es}}},_arrayTest:{coerceArray:coerceArray,createArray:createArray,copyArray:copyArray}};en.exports=eP}(0)},23541:function(en,ei,eo){"use strict";eo.d(ei,{Ry:function(){return hideOthers}});var getDefaultParent=function(en){return"undefined"==typeof document?null:(Array.isArray(en)?en[0]:en).ownerDocument.body},ea=new WeakMap,es=new WeakMap,ed={},eu=0,unwrapHost=function(en){return en&&(en.host||unwrapHost(en.parentNode))},correctTargets=function(en,ei){return ei.map(function(ei){if(en.contains(ei))return ei;var eo=unwrapHost(ei);return eo&&en.contains(eo)?eo:(console.error("aria-hidden",ei,"in not contained inside",en,". Doing nothing"),null)}).filter(function(en){return!!en})},applyAttributeToOthers=function(en,ei,eo,ef){var ep=correctTargets(ei,Array.isArray(en)?en:[en]);ed[eo]||(ed[eo]=new WeakMap);var em=ed[eo],eg=[],ey=new Set,eb=new Set(ep),keep=function(en){!en||ey.has(en)||(ey.add(en),keep(en.parentNode))};ep.forEach(keep);var deep=function(en){!en||eb.has(en)||Array.prototype.forEach.call(en.children,function(en){if(ey.has(en))deep(en);else try{var ei=en.getAttribute(ef),ed=null!==ei&&"false"!==ei,eu=(ea.get(en)||0)+1,ep=(em.get(en)||0)+1;ea.set(en,eu),em.set(en,ep),eg.push(en),1===eu&&ed&&es.set(en,!0),1===ep&&en.setAttribute(eo,"true"),ed||en.setAttribute(ef,"true")}catch(ei){console.error("aria-hidden: cannot operate on ",en,ei)}})};return deep(ei),ey.clear(),eu++,function(){eg.forEach(function(en){var ei=ea.get(en)-1,ed=em.get(en)-1;ea.set(en,ei),em.set(en,ed),ei||(es.has(en)||en.removeAttribute(ef),es.delete(en)),ed||en.removeAttribute(eo)}),--eu||(ea=new WeakMap,ea=new WeakMap,es=new WeakMap,ed={})}},hideOthers=function(en,ei,eo){void 0===eo&&(eo="data-aria-hidden");var ea=Array.from(Array.isArray(en)?en:[en]),es=ei||getDefaultParent(en);return es?(ea.push.apply(ea,Array.from(es.querySelectorAll("[aria-live]"))),applyAttributeToOthers(ea,es,eo,"aria-hidden")):function(){return null}}},9669:function(en,ei,eo){en.exports=eo(51609)},55448:function(en,ei,eo){"use strict";var ea=eo(64867),es=eo(36026),ed=eo(4372),eu=eo(15327),ef=eo(94097),ep=eo(84109),em=eo(67985),eg=eo(85061);en.exports=function(en){return new Promise(function(ei,eo){var ey=en.data,eb=en.headers,eS=en.responseType;ea.isFormData(ey)&&delete eb["Content-Type"];var e_=new XMLHttpRequest;if(en.auth){var eR=en.auth.username||"",eA=en.auth.password?unescape(encodeURIComponent(en.auth.password)):"";eb.Authorization="Basic "+btoa(eR+":"+eA)}var ew=ef(en.baseURL,en.url);function onloadend(){if(e_){var ea="getAllResponseHeaders"in e_?ep(e_.getAllResponseHeaders()):null;es(ei,eo,{data:eS&&"text"!==eS&&"json"!==eS?e_.response:e_.responseText,status:e_.status,statusText:e_.statusText,headers:ea,config:en,request:e_}),e_=null}}if(e_.open(en.method.toUpperCase(),eu(ew,en.params,en.paramsSerializer),!0),e_.timeout=en.timeout,"onloadend"in e_?e_.onloadend=onloadend:e_.onreadystatechange=function(){e_&&4===e_.readyState&&(0!==e_.status||e_.responseURL&&0===e_.responseURL.indexOf("file:"))&&setTimeout(onloadend)},e_.onabort=function(){e_&&(eo(eg("Request aborted",en,"ECONNABORTED",e_)),e_=null)},e_.onerror=function(){eo(eg("Network Error",en,null,e_)),e_=null},e_.ontimeout=function(){var ei="timeout of "+en.timeout+"ms exceeded";en.timeoutErrorMessage&&(ei=en.timeoutErrorMessage),eo(eg(ei,en,en.transitional&&en.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",e_)),e_=null},ea.isStandardBrowserEnv()){var eO=(en.withCredentials||em(ew))&&en.xsrfCookieName?ed.read(en.xsrfCookieName):void 0;eO&&(eb[en.xsrfHeaderName]=eO)}"setRequestHeader"in e_&&ea.forEach(eb,function(en,ei){void 0===ey&&"content-type"===ei.toLowerCase()?delete eb[ei]:e_.
4setRequestHeader(ei,en)}),ea.isUndefined(en.withCredentials)||(e_.withCredentials=!!en.withCredentials),eS&&"json"!==eS&&(e_.responseType=en.responseType),"function"==typeof en.onDownloadProgress&&e_.addEventListener("progress",en.onDownloadProgress),"function"==typeof en.onUploadProgress&&e_.upload&&e_.upload.addEventListener("progress",en.onUploadProgress),en.cancelToken&&en.cancelToken.promise.then(function(en){e_&&(e_.abort(),eo(en),e_=null)}),ey||(ey=null),e_.send(ey)})}},51609:function(en,ei,eo){"use strict";var ea=eo(64867),es=eo(91849),ed=eo(30321),eu=eo(47185);function createInstance(en){var ei=new ed(en),eo=es(ed.prototype.request,ei);return ea.extend(eo,ed.prototype,ei),ea.extend(eo,ei),eo}var ef=createInstance(eo(45655));ef.Axios=ed,ef.create=function(en){return createInstance(eu(ef.defaults,en))},ef.Cancel=eo(65263),ef.CancelToken=eo(14972),ef.isCancel=eo(26502),ef.all=function(en){return Promise.all(en)},ef.spread=eo(8713),ef.isAxiosError=eo(16268),en.exports=ef,en.exports.default=ef},65263:function(en){"use strict";function Cancel(en){this.message=en}Cancel.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,en.exports=Cancel},14972:function(en,ei,eo){"use strict";var ea=eo(65263);function CancelToken(en){if("function"!=typeof en)throw TypeError("executor must be a function.");this.promise=new Promise(function(en){ei=en});var ei,eo=this;en(function(en){eo.reason||(eo.reason=new ea(en),ei(eo.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.source=function(){var en;return{token:new CancelToken(function(ei){en=ei}),cancel:en}},en.exports=CancelToken},26502:function(en){"use strict";en.exports=function(en){return!!(en&&en.__CANCEL__)}},30321:function(en,ei,eo){"use strict";var ea=eo(64867),es=eo(15327),ed=eo(80782),eu=eo(13572),ef=eo(47185),ep=eo(54875),em=ep.validators;function Axios(en){this.defaults=en,this.interceptors={request:new ed,response:new ed}}Axios.prototype.request=function(en){"string"==typeof en?(en=arguments[1]||{},en.url=arguments[0]):en=en||{}
4,(en=ef(this.defaults,en)).method?en.method=en.method.toLowerCase():this.defaults.method?en.method=this.defaults.method.toLowerCase():en.method="get";var ei,eo=en.transitional;void 0!==eo&&ep.assertOptions(eo,{silentJSONParsing:em.transitional(em.boolean,"1.0.0"),forcedJSONParsing:em.transitional(em.boolean,"1.0.0"),clarifyTimeoutError:em.transitional(em.boolean,"1.0.0")},!1);var ea=[],es=!0;this.interceptors.request.forEach(function(ei){("function"!=typeof ei.runWhen||!1!==ei.runWhen(en))&&(es=es&&ei.synchronous,ea.unshift(ei.fulfilled,ei.rejected))});var ed=[];if(this.interceptors.response.forEach(function(en){ed.push(en.fulfilled,en.rejected)}),!es){var eg=[eu,void 0];for(Array.prototype.unshift.apply(eg,ea),eg=eg.concat(ed),ei=Promise.resolve(en);eg.length;)ei=ei.then(eg.shift(),eg.shift());return ei}for(var ey=en;ea.length;){var eb=ea.shift(),eS=ea.shift();try{ey=eb(ey)}catch(en){eS(en);break}}try{ei=eu(ey)}catch(en){return Promise.reject(en)}for(;ed.length;)ei=ei.then(ed.shift(),ed.shift());return ei},Axios.prototype.getUri=function(en){return es((en=ef(this.defaults,en)
4).url,en.params,en.paramsSerializer).replace(/^\?/,"")},ea.forEach(["delete","get","head","options"],function(en){Axios.prototype[en]=function(ei,eo){return this.request(ef(eo||{},{method:en,url:ei,data:(eo||{}).data}))}}),ea.forEach(["post","put","patch"],function(en){Axios.prototype[en]=function(ei,eo,ea){return this.request(ef(ea||{},{method:en,url:ei,data:eo}))}}),en.exports=Axios},80782:function(en,ei,eo){"use strict";var ea=eo(64867);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function(en,ei,eo){return this.handlers.push({fulfilled:en,rejected:ei,synchronous:!!eo&&eo.synchronous,runWhen:eo?eo.runWhen:null}),this.handlers.length-1},InterceptorManager.prototype.eject=function(en){this.handlers[en]&&(this.handlers[en]=null)},InterceptorManager.prototype.forEach=function(en){ea.forEach(this.handlers,function(ei){null!==ei&&en(ei)})},en.exports=InterceptorManager},94097:function(en,ei,eo){"use strict";var ea=eo(91793),es=eo(7303);en.exports=function(en,ei){return en&&!ea(ei)?es(en,ei):ei}},85061:function(en,ei,eo){"use strict";var ea=eo(80481);en.exports=function(en,ei,eo,es,ed){return ea(Error(en),ei,eo,es,ed)}},13572:function(en,ei,eo){"use strict";var ea=eo(64867),es=eo(18527),ed=eo(26502),eu=eo(45655);function throwIfCancellationRequested(en){en.cancelToken&&en.cancelToken.throwIfRequested()}en.exports=function(en){return throwIfCancellationRequested(en),en.headers=en.headers||{},en.data=es.call(en,en.data,en.headers,en.transformRequest),en.headers=ea.merge(en.headers.common||{},en.headers[en.method]||{},en.headers),ea.forEach(["delete","get","head","post","put","patch","common"],function(ei){delete en.headers[ei]}),(en.adapter||eu.adapter)(en).then(function(ei){return throwIfCancellationRequested(en),ei.data=es.call(en,ei.data,ei.headers,en.transformResponse),ei},function(ei){return!ed(ei)&&(throwIfCancellationRequested(en),ei&&ei.response&&(ei.response.data=es.call(en,ei.response.data,ei.response.headers,en.transformResponse))),Promise.reject(ei)})}},80481:function(en){"use strict";en.exports=function(en,ei,eo,ea,es){return en.config=ei,eo&&(en.code=eo),en.request=ea,en.response=es,en.isAxiosError=!0,en.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}},en}},47185:function(en,ei,eo){"use strict";var ea=eo(64867);en.exports=function(en,ei){ei=ei||{};var eo={},es=["url","method","data"],ed=["headers","auth","proxy","params"],eu=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],ef=["validateStatus"];function getMergedValue(en,ei){return ea.isPlainObject(en)&&ea.isPlainObject(ei)?ea.merge(en,ei):ea.isPlainObject(ei)?ea.merge({},ei):ea.isArray(ei)?ei.slice():ei}function mergeDeepProperties(es){ea.isUndefined(ei[es])?ea.isUndefined(en[es])||(eo[es]=getMergedValue(void 0,en[es])):eo[es]=getMergedValue(en[es],ei[es])}ea.forEach(es,function(en){ea.isUndefined(ei[en])||(eo[en]=getMergedValue(void 0,ei[en]))}),ea.forEach(ed,mergeDeepProperties),ea.forEach(eu,function(es){ea.isUndefined(ei[es])?ea.isUndefined(en[es])||(eo[es]=getMergedValue(void 0,en[es])):eo[es]=getMergedValue(void 0,ei[es])}),ea.forEach(ef,function(ea){ea in ei?eo[ea]=getMergedValue(en[ea],ei[ea]):ea in en&&(eo[ea]=getMergedValue(void 0,en[ea]))});var ep=es.concat(ed).concat(eu).concat(ef),em=Object.keys(en).concat(Object.keys(ei)).filter(function(en){return -1===ep.indexOf(en)});return ea.forEach(em,mergeDeepProperties),eo}},36026:function(en,ei,eo){"use strict";var ea=eo(85061);en.exports=function(en,ei,eo){var es=eo.config.validateStatus;!eo.status||!es||es(eo.status)?en(eo):ei(ea("Request failed with status code "+eo.status,eo.config,null,eo.request,eo))}},18527:function(en,ei,eo){"use strict";var ea=eo(64867),es=eo(45655);en.exports=function(en,ei,eo){var ed=this||es;return ea.forEach(eo,function(eo){en=eo.call(ed,en,ei)}),en}},45655:function(en,ei,eo){"use strict";var ea=eo(83454),es=eo(64867),ed=eo(16016),eu=eo(80481),ef={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(en,ei){!es.isUndefined(en)&&es.isUndefined(en["Content-Type"])&&(en["Content-Type"]=ei)}function stringifySafely(en,ei,eo){if(es.isString(en))try{return(ei||JSON.parse)(en),es.trim(en)}catch(en){if("SyntaxError"!==en.name)throw en}return(eo||JSON.stringify)(en)}var ep={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:function(){var en;return"undefined"!=typeof XMLHttpRequest?en=eo(55448):void 0!==ea&&"[object process]"===Object.prototype.toString.call(ea)&&(en=eo(55448)),en}(),transformRequest:[function(en,ei){return(ed(ei,"Accept"),ed(ei,"Content-Type"),es.isFormData(en)||es.isArrayBuffer(en)||es.isBuffer(en)||es.isStream(en)||es.isFile(en)||es.isBlob(en))?en:es.isArrayBufferView(en)?en.buffer:es.isURLSearchParams(en)?(setContentTypeIfUnset(ei,"application/x-www-form-urlencoded;charset=utf-8"),en.toString()):es.isObject(en)||ei&&"application/json"===ei["Content-Type"]?(setContentTypeIfUnset(ei,"application/json"),stringifySafely(en)):en}],transformResponse:[function(en){var ei=this.transitional,eo=ei&&ei.silentJSONParsing,ea=ei&&ei.forcedJSONParsing,ed=!eo&&"json"===this.responseType;if(ed||ea&&es.isString(en)&&en.length)try{return JSON.parse(en)}catch(en){if(ed){if("SyntaxError"===en.name)throw eu(en,this,"E_JSON_PARSE");throw en}}return en}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(en){return en>=200&&en<300}};ep.headers={common:{Accept:"application/json, text/plain, */*"}}
4,es.forEach(["delete","get","head"],function(en){ep.headers[en]={}}),es.forEach(["post","put","patch"],function(en){ep.headers[en]=es.merge(ef)}),en.exports=ep},91849:function(en){"use strict";en.exports=function(en,ei){return function(){for(var eo=Array(arguments.length),ea=0;ea<eo.length;ea++)eo[ea]=arguments[ea];return en.apply(ei,eo)}}},15327:function(en,ei,eo){"use strict";var ea=eo(64867);function encode(en){return encodeURIComponent(en).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}en.exports=function(en,ei,eo){if(!ei)return en;if(eo)es=eo(ei);else if(ea.isURLSearchParams(ei))es=ei.toString();else{var es,ed=[];ea.forEach(ei,function(en,ei){null!=en&&(ea.isArray(en)?ei+="[]":en=[en],ea.forEach(en,function(en){ea.isDate(en)?en=en.toISOString():ea.isObject(en)&&(en=JSON.stringify(en)),ed.push(encode(ei)+"="+encode(en))}))}),es=ed.join("&")}if(es){var eu=en.indexOf("#");-1!==eu&&(en=en.slice(0,eu)),en+=(-1===en.indexOf("?")?"?":"&")+es}return en}},7303:function(en){"use strict";en.exports=function(en,ei){return ei?en.replace(/\/+$/,"")+"/"+ei.replace(/^\/+/,""):en}},4372:function(en,ei,eo){"use strict";var ea=eo(64867);en.exports=ea.isStandardBrowserEnv()?function(){return{write:function(en,ei,eo,es,ed,eu){var ef=[];ef.push(en+"="+encodeURIComponent(ei)),ea.isNumber(eo)&&ef.push("expires="+new Date(eo).toGMTString()),ea.isString(es)&&ef.push("path="+es),ea.isString(ed)&&ef.push("domain="+ed),!0===eu&&ef.push("secure"),document.cookie=ef.join("; ")},read:function(en){var ei=document.cookie.match(RegExp("(^|;\\s*)("+en+")=([^;]*)"));return ei?decodeURIComponent(ei[3]):null},remove:function(en){this.write(en,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},91793:function(en){"use strict";en.exports=function(en){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(en)}},16268:function(en){"use strict";en.exports=function(en){return"object"==typeof en&&!0===en.isAxiosError}},67985:function(en,ei,eo){"use strict";var ea=eo(64867);en.exports=ea.isStandardBrowserEnv()?function(){var en,ei=/(msie|trident)/i.test(navigator.userAgent),eo=document.createElement("a");function resolveURL(en){var ea=en;return ei&&(eo.setAttribute("href",ea),ea=eo.href),eo.setAttribute("href",ea),{href:eo.href,protocol:eo.protocol?eo.protocol.replace(/:$/,""):"",host:eo.host,search:eo.search?eo.search.replace(/^\?/,""):"",hash:eo.hash?eo.hash.replace(/^#/,""):"",hostname:eo.hostname,port:eo.port,pathname:"/"===eo.pathname.charAt(0)?eo.pathname:"/"+eo.pathname}}return en=resolveURL(window.location.href),function(ei){var eo=ea.isString(ei)?resolveURL(ei):ei;return eo.protocol===en.protocol&&eo.host===en.host}}():function(){return function(){return!0}}()},16016:function(en,ei,eo){"use strict";var ea=eo(64867);en.exports=function(en,ei){ea.forEach(en,function(eo,ea){ea!==ei&&ea.toUpperCase()===ei.toUpperCase()&&(en[ei]=eo,delete en[ea])})}},84109:function(en,ei,eo){"use strict";var ea=eo(64867),es=["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"];en.exports=function(en){var ei,eo,ed,eu={};return en&&ea.forEach(en.split("\n"),function(en){ed=en.indexOf(":"),ei=ea.trim(en.substr(0,ed)).toLowerCase(),eo=ea.trim(en.substr(ed+1)),ei&&!(eu[ei]&&es.indexOf(ei)>=0)&&("set-cookie"===ei?eu[ei]=(eu[ei]?eu[ei]:[]).concat([eo]):eu[ei]=eu[ei]?eu[ei]+", "+eo:eo)}),eu}},8713:function(en){"use strict";en.exports=function(en){return function(ei){return en.apply(null,ei)}}},54875:function(en,ei,eo){"use strict";var ea=eo(88593),es={};["object","boolean","number","function","string","symbol"].forEach(function(en,ei){es[en]=function(eo){return typeof eo===en||"a"+(ei<1?"n ":" ")+en}});var ed={},eu=ea.version.split(".");function isOlderVersion(en,ei){for(var eo=ei?ei.split("."):eu,ea=en.split("."),es=0;es<3;es++){if(eo[es]>ea[es])return!0;if(eo[es]<ea[es])break}return!1}function assertOptions(en,ei,eo){if("object"!=typeof en)throw TypeError("options must be an object");for(var ea=Object.keys(en),es=ea.length;es-- >0;){var ed=ea[es],eu=ei[ed];if(eu){var ef=en[ed],ep=void 0===ef||eu(ef,ed,en);if(!0!==ep)throw TypeError("option "+ed+" must be "+ep);continue}if(!0!==eo)throw Error("Unknown option "+ed)}}es.transitional=function(en,ei,eo){var es=ei&&isOlderVersion(ei);function formatMessage(en,ei){return"[Axios v"+ea.version+"] Transitional option '"+en+"'"+ei+(eo?". "+eo:"")}return function(eo,ea,eu){if(!1===en)throw Error(formatMessage(ea," has been removed in "+ei));return es&&!ed[ea]&&(ed[ea]=!0,console.warn(formatMessage(ea," has been deprecated since v"+ei+" and will be removed in the near future"))),!en||en(eo,ea,eu)}},en.exports={isOlderVersion:isOlderVersion,assertOptions:assertOptions,validators:es}},64867:function(en,ei,eo){"use strict";var ea=eo(91849),es=Object.prototype.toString;function isArray(en){return"[object Array]"===es.call(en)}function isUndefined(en){return void 0===en}function isBuffer(en){return null!==en&&!isUndefined(en)&&null!==en.constructor&&!isUndefined(en.constructor)&&"function"==typeof en.constructor.isBuffer&&en.constructor.isBuffer(en)}function isArrayBuffer(en){return"[object ArrayBuffer]"===es.call(en)}function isFormData(en){return"undefined"!=typeof FormData&&en instanceof FormData}function isArrayBufferView(en){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(en):en&&en.buffer&&en.buffer instanceof ArrayBuffer}function isString(en){return"string"==typeof en}function isNumber(en){return"number"==typeof en}function isObject(en){return null!==en&&"object"==typeof en}function isPlainObject(en){if("[object Object]"!==es.call(en))return!1;var ei=Object.getPrototypeOf(en);return null===ei||ei===Object.prototype}
4function isDate(en){return"[object Date]"===es.call(en)}function isFile(en){return"[object File]"===es.call(en)}function isBlob(en){return"[object Blob]"===es.call(en)}function isFunction(en){return"[object Function]"===es.call(en)}function isStream(en){return isObject(en)&&isFunction(en.pipe)}function isURLSearchParams(en){return"undefined"!=typeof URLSearchParams&&en instanceof URLSearchParams}function trim(en){return en.trim?en.trim():en.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function forEach(en,ei){if(null!=en){if("object"!=typeof en&&(en=[en]),isArray(en))for(var eo=0,ea=en.length;eo<ea;eo++)ei.call(null,en[eo],eo,en);else for(var es in en)Object.prototype.hasOwnProperty.call(en,es)&&ei.call(null,en[es],es,en)}}function merge(){var en={};function assignValue(ei,eo){isPlainObject(en[eo])&&isPlainObject(ei)?en[eo]=merge(en[eo],ei):isPlainObject(ei)?en[eo]=merge({},ei):isArray(ei)?en[eo]=ei.slice():en[eo]=ei}for(var ei=0,eo=arguments.length;ei<eo;ei++)forEach(arguments[ei],assignValue);return en}function extend(en,ei,eo){return forEach(ei,function(ei,es){eo&&"function"==typeof ei?en[es]=ea(ei,eo):en[es]=ei}),en}function stripBOM(en){return 65279===en.charCodeAt(0)&&(en=en.slice(1)),en}en.exports={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM}},27715:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.bech32m=ei.bech32=void 0;let eo="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ea={};for(let en=0;en<eo.length;en++){let ei=eo.charAt(en);ea[ei]=en}function polymodStep(en){let ei=en>>25;return(33554431&en)<<5^996825010&-(ei>>0&1)^642813549&-(ei>>1&1)^513874426&-(ei>>2&1)^1027748829&-(ei>>3&1)^705979059&-(ei>>4&1)}function prefixChk(en){let ei=1;for(let eo=0;eo<en.length;++eo){let ea=en.charCodeAt(eo);if(ea<33||ea>126)return"Invalid prefix ("+en+")";ei=polymodStep(ei)^ea>>5}ei=polymodStep(ei);for(let eo=0;eo<en.length;++eo){let ea=en.charCodeAt(eo);ei=polymodStep(ei)^31&ea}return ei}function convert(en,ei,eo,ea){let es=0,ed=0,eu=(1<<eo)-1,ef=[];for(let ea=0;ea<en.length;++ea)for(es=es<<ei|en[ea],ed+=ei;ed>=eo;)ef.push(es>>(ed-=eo)&eu);if(ea)ed>0&&ef.push(es<<eo-ed&eu);else{if(ed>=ei)return"Excess padding";if(es<<eo-ed&eu)return"Non-zero padding"}return ef}function toWords(en){return convert(en,8,5,!0)}function fromWordsUnsafe(en){let ei=convert(en,5,8,!1);if(Array.isArray(ei))return ei}function fromWords(en){let ei=convert(en,5,8,!1);if(Array.isArray(ei))return ei;throw Error(ei)}function getLibraryFromEncoding(en){let ei;function __decode(en,eo){if(eo=eo||90,en.length<8)return en+" too short";if(en.length>eo)return"Exceeds length limit";let es=en.toLowerCase(),ed=en.toUpperCase();if(en!==es&&en!==ed)return"Mixed-case string "+en;en=es;let eu=en.lastIndexOf("1");if(-1===eu)return"No separator character for "+en;if(0===eu)return"Missing prefix for "+en;let ef=en.slice(0,eu),ep=en.slice(eu+1);if(ep.length<6)return"Data too short";let em=prefixChk(ef);if("string"==typeof em)return em;let eg=[];for(let en=0;en<ep.length;++en){let ei=ep.charAt(en),eo=ea[ei];if(void 0===eo)return"Unknown character "+ei;em=polymodStep(em)^eo,en+6>=ep.length||eg.push(eo)}return em!==ei?"Invalid checksum for "+en:{prefix:ef,words:eg}}return ei="bech32"===en?1:734539939,{decodeUnsafe:function(en,ei){let eo=__decode(en,ei);if("object"==typeof eo)return eo},decode:function(en,ei){let eo=__decode(en,ei);if("object"==typeof eo)return eo;throw Error(eo)},encode:function(en,ea,es){if(es=es||90,en.length+7+ea.length>es)throw TypeError("Exceeds length limit");let ed=prefixChk(en=en.toLowerCase());if("string"==typeof ed)throw Error(ed);let eu=en+"1";for(let en=0;en<ea.length;++en){let ei=ea[en];if(ei>>5!=0)throw Error("Non 5-bit word");ed=polymodStep(ed)^ei,eu+=eo.charAt(ei)}for(let en=0;en<6;++en)ed=polymodStep(ed);ed^=ei;for(let en=0;en<6;++en){let ei=ed>>(5-en)*5&31;eu+=eo.charAt(ei)}return eu},toWords,fromWordsUnsafe,fromWords}}ei.bech32=getLibraryFromEncoding("bech32"),ei.bech32m=getLibraryFromEncoding("bech32m")},29931:function(en,ei,eo){var ea;function Rand(en){this.rand=en}if(en.exports=function(en){return ea||(ea=new Rand(null)),ea.generate(en)},en.exports.Rand=Rand,Rand.prototype.generate=function(en){return this._rand(en)},Rand.prototype._rand=function(en){if(this.rand.getBytes)return this.rand.getBytes(en);for(var ei=new Uint8Array(en),eo=0;eo<ei.length;eo++)ei[eo]=this.rand.getByte();return ei},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?Rand.prototype._rand=function(en){var ei=new Uint8Array(en);return self.crypto.getRandomValues(ei),ei}:self.msCrypto&&self.msCrypto.getRandomValues?Rand.prototype._rand=function(en){var ei=new Uint8Array(en);return self.msCrypto.getRandomValues(ei),ei}:"object"==typeof window&&(Rand.prototype._rand=function(){throw Error("Not implemented yet")});else try{var es=eo(89214);if("function"!=typeof es.randomBytes)throw Error("Not supported");Rand.prototype._rand=function(en){return es.randomBytes(en)}}catch(en){}},30738:function(en,ei,eo){"use strict";let ea=eo(63341),es=eo(26401),ed=eo(55299);function cloneDeep(en,ei){switch(es(en)){case"object":return cloneObjectDeep(en,ei);case"array":return cloneArrayDeep(en,ei);default:return ea(en)}}function cloneObjectDeep(en,ei){if("function"==typeof ei)return ei(en);
4if(ei||ed(en)){let eo=new en.constructor;for(let ea in en)eo[ea]=cloneDeep(en[ea],ei);return eo}return en}function cloneArrayDeep(en,ei){let eo=new en.constructor(en.length);for(let ea=0;ea<en.length;ea++)eo[ea]=cloneDeep(en[ea],ei);return eo}en.exports=cloneDeep},83487:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=ei.ModuleCredential=ei.ModuleAccount=ei.BaseAccount=ei.protobufPackage=void 0;let eu=eo(53862),ef=eo(81457),ep=ed(eo(83789));function createBaseBaseAccount(){return{address:"",pubKey:void 0,accountNumber:ef.Long.UZERO,sequence:ef.Long.UZERO}}function createBaseModuleAccount(){return{baseAccount:void 0,name:"",permissions:[]}}function createBaseModuleCredential(){return{moduleName:"",derivationKeys:[]}}function createBaseParams(){return{maxMemoCharacters:ef.Long.UZERO,txSigLimit:ef.Long.UZERO,txSizeCostPerByte:ef.Long.UZERO,sigVerifyCostEd25519:ef.Long.UZERO,sigVerifyCostSecp256k1:ef.Long.UZERO}}ei.protobufPackage="cosmos.auth.v1beta1",ei.BaseAccount={encode:(en,ei=ep.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),void 0!==en.pubKey&&eu.Any.encode(en.pubKey,ei.uint32(18).fork()).ldelim(),en.accountNumber.isZero()||ei.uint32(24).uint64(en.accountNumber),en.sequence.isZero()||ei.uint32(32).uint64(en.sequence),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBaseAccount();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.pubKey=eu.Any.decode(eo,eo.uint32());break;case 3:es.accountNumber=eo.uint64();break;case 4:es.sequence=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,ef.isSet)(en.address)?String(en.address):"",pubKey:(0,ef.isSet)(en.pubKey)?eu.Any.fromJSON(en.pubKey):void 0,accountNumber:(0,ef.isSet)(en.accountNumber)?ef.Long.fromValue(en.accountNumber):ef.Long.UZERO,sequence:(0,ef.isSet)(en.sequence)?ef.Long.fromValue(en.sequence):ef.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.pubKey&&(ei.pubKey=en.pubKey?eu.Any.toJSON(en.pubKey):void 0),void 0!==en.accountNumber&&(ei.accountNumber=(en.accountNumber||ef.Long.UZERO).toString()),void 0!==en.sequence&&(ei.sequence=(en.sequence||ef.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseBaseAccount();return ei.address=en.address??"",ei.pubKey=void 0!==en.pubKey&&null!==en.pubKey?eu.Any.fromPartial(en.pubKey):void 0,ei.accountNumber=void 0!==en.accountNumber&&null!==en.accountNumber?ef.Long.fromValue(en.accountNumber):ef.Long.UZERO,ei.sequence=void 0!==en.sequence&&null!==en.sequence?ef.Long.fromValue(en.sequence):ef.Long.UZERO,ei}},ei.ModuleAccount={encode(en,eo=ep.Writer.create()){for(let ea of(void 0!==en.baseAccount&&ei.BaseAccount.encode(en.baseAccount,eo.uint32(10).fork()).ldelim(),""!==en.name&&eo.uint32(18).string(en.name),en.permissions))eo.uint32(26).string(ea);return eo},decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseModuleAccount();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.baseAccount=ei.BaseAccount.decode(ea,ea.uint32());break;case 2:ed.name=ea.string();break;case 3:ed.permissions.push(ea.string());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({baseAccount:(0,ef.isSet)(en.baseAccount)?ei.BaseAccount.fromJSON(en.baseAccount):void 0,name:(0,ef.isSet)(en.name)?String(en.name):"",permissions:Array.isArray(en?.permissions)?en.permissions.map(en=>String(en)):[]}),toJSON(en){let eo={};return void 0!==en.baseAccount&&(eo.baseAccount=en.baseAccount?ei.BaseAccount.toJSON(en.baseAccount):void 0),void 0!==en.name&&(eo.name=en.name),en.permissions?eo.permissions=e
4n.permissions.map(en=>en):eo.permissions=[],eo},fromPartial(en){let eo=createBaseModuleAccount();return eo.baseAccount=void 0!==en.baseAccount&&null!==en.baseAccount?ei.BaseAccount.fromPartial(en.baseAccount):void 0,eo.name=en.name??"",eo.permissions=en.permissions?.map(en=>en)||[],eo}},ei.ModuleCredential={encode(en,ei=ep.Writer.create()){for(let eo of(""!==en.moduleName&&ei.uint32(10).string(en.moduleName),en.derivationKeys))ei.uint32(18).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseModuleCredential();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.moduleName=eo.string();break;case 2:es.derivationKeys.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({moduleName:(0,ef.isSet)(en.moduleName)?String(en.moduleName):"",derivationKeys:Array.isArray(en?.derivationKeys)?en.derivationKeys.map(en=>(0,ef.bytesFromBase64)(en)):[]}),toJSON(en){let ei={};return void 0!==en.moduleName&&(ei.moduleName=en.moduleName),en.derivationKeys?ei.derivationKeys=en.derivationKeys.map(en=>(0,ef.base64FromBytes)(void 0!==en?en:new Uint8Array)):ei.derivationKeys=[],ei},fromPartial(en){let ei=createBaseModuleCredential();return ei.moduleName=en.moduleName??"",ei.derivationKeys=en.derivationKeys?.map(en=>en)||[],ei}},ei.Params={encode:(en,ei=ep.Writer.create())=>(en.maxMemoCharacters.isZero()||ei.uint32(8).uint64(en.maxMemoCharacters),en.txSigLimit.isZero()||ei.uint32(16).uint64(en.txSigLimit),en.txSizeCostPerByte.isZero()||ei.uint32(24).uint64(en.txSizeCostPerByte),en.sigVerifyCostEd25519.isZero()||ei.uint32(32).uint64(en.sigVerifyCostEd25519),en.sigVerifyCostSecp256k1.isZero()||ei.uint32(40).uint64(en.sigVerifyCostSecp256k1),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.maxMemoCharacters=eo.uint64();break;case 2:es.txSigLimit=eo.uint64();break;case 3:es.txSizeCostPerByte=eo.uint64();break;case 4:es.sigVerifyCostEd25519=eo.uint64();break;case 5:es.sigVerifyCostSecp256k1=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({maxMemoCharacters:(0,ef.isSet)(en.maxMemoCharacters)?ef.Long.fromValue(en.maxMemoCharacters):ef.Long.UZERO,txSigLimit:(0,ef.isSet)(en.txSigLimit)?ef.Long.fromValue(en.txSigLimit):ef.Long.UZERO,txSizeCostPerByte:(0,ef.isSet)(en.txSizeCostPerByte)?ef.Long.fromValue(en.txSizeCostPerByte):ef.Long.UZERO,sigVerifyCostEd25519:(0,ef.isSet)(en.sigVerifyCostEd25519)?ef.Long.fromValue(en.sigVerifyCostEd25519):ef.Long.UZERO,sigVerifyCostSecp256k1:(0,ef.isSet)(en.sigVerifyCostSecp256k1)?ef.Long.fromValue(en.sigVerifyCostSecp256k1):ef.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.maxMemoCharacters&&(ei.maxMemoCharacters=(en.maxMemoCharacters||ef.Long.UZERO).toString()),void 0!==en.txSigLimit&&(ei.txSigLimit=(en.txSigLimit||ef.Long.UZERO).toString()),void 0!==en.txSizeCostPerByte&&(ei.txSizeCostPerByte=(en.txSizeCostPerByte||ef.Long.UZERO).toString()),void 0!==en.sigVerifyCostEd25519&&(ei.sigVerifyCostEd25519=(en.sigVerifyCostEd25519||ef.Long.UZERO).toString()),void 0!==en.sigVerifyCostSecp256k1&&(ei.sigVerifyCostSecp256k1=(en.sigVerifyCostSecp256k1||ef.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseParams();return ei.maxMemoCharacters=void 0!==en.maxMemoCharacters&&null!==en.maxMemoCharacters?ef.Long.fromValue(en.maxMemoCharacters):ef.Long.UZERO,ei.txSigLimit=void 0!==en.txSigLimit&&null!==en.txSigLimit?ef.Long.fromValue(en.txSigLimit):ef.Long.UZERO,ei.txSizeCostPerByte=void 0!==en.txSizeCostPerByte&&null!==en.txSizeCostPerByte?ef.Long.fromValue(en.txSizeCostPerByte):ef.Long.UZERO,ei.sigVerifyCostEd25519=void 0!==en.sigVerifyCostEd25519&&null!==en.sigVerifyCostEd25519?ef.Long.fromValue(en.sigVerifyCostEd25519):ef.Long.UZERO,ei.sigVerifyCostSecp256k1=void 0!==en.sigVerifyCostSecp256k1&&null!==en.sigVerifyCostSecp256k1?ef.Long.fromValue(en.sigVerifyCostSecp256k1):ef.Long.UZERO,ei}}},54443:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryAccountInfoResponse=ei.QueryAccountInfoRequest=ei.QueryAccountAddressByIDResponse=ei.QueryAccountAddressByIDRequest=ei.AddressStringToBytesResponse=ei.AddressStringToBytesRequest=ei.AddressBytesToStringResponse=ei.AddressBytesToStringRequest=ei.Bech32PrefixResponse=ei.Bech32PrefixRequest=ei.QueryModuleAccountByNameResponse=ei.QueryModuleAccountByNameRequest=ei.QueryModuleAccountsResponse=ei.QueryModuleAccountsRequest=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.QueryAccountResponse=ei.QueryAccountRequest=ei.QueryAccountsResponse=ei.QueryAccountsRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(53862),ep=eo(83487),em=eo(81457),eg=ed(eo(83789));function createBaseQueryAccountsRequest(){return{pagination:void 0}}function createBaseQueryAccountsResponse(){return{accounts:[],pagination:void 0}}function createBaseQueryAccountRequest(){return{address:""}}function createBaseQueryAccountResponse(){return{account:void 0}}function createBaseQueryParamsRequest(){return{}}function createBaseQueryParamsResponse(){return{params:void 0}}function createBaseQueryModuleAccountsRequest(){return{}}function createBaseQueryModuleAccountsResponse(){return{accounts:[]}}function createBaseQueryModuleAccountByNameRequest(){return{name:""}}function createBaseQueryModuleAccountByNameResponse(){return{account:void 0}}function createBaseBech32PrefixRequest(){return{}}function createBaseBech32PrefixResponse(){return{bech32Prefix:""}}function createBaseAddressBytesToStringRequest(){return{addressBytes:new Uint8Array}}function createBaseAddressBytesToStringResponse(){return{addressString:""}}function createBaseAddressStringToBytesRequest(){return{addressString:""}}function createBaseAddressStringToBytesResponse(){return{addressBytes:new Uint8Array}}function createBaseQueryAccountAddressByIDRequest(){return{id:em.Long.ZERO,accountId:em.Long.UZERO}}function createBaseQueryAccountAddressByIDResponse(){return{accountAddress:""}}function createBaseQueryAccountInfoRequest(){return{address:""}}function createBaseQueryAccountInfoResponse(){return{info:void 0}}ei.protobufPackage="cosmos.auth.v1beta1",ei.QueryAccountsRequest={encode:(en,ei=eg.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAccountsRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryAccountsResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.accounts)ef.Any.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.accounts.push(ef.Any.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>
4({accounts:Array.isArray(en?.accounts)?en.accounts.map(en=>ef.Any.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.accounts?ei.accounts=en.accounts.map(en=>en?ef.Any.toJSON(en):void 0):ei.accounts=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAccountsResponse();return ei.accounts=en.accounts?.map(en=>ef.Any.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryAccountRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.address=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({address:(0,em.isSet)(en.address)?String(en.address):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),ei},fromPartial(en){let ei=createBaseQueryAccountRequest();return ei.address=en.address??"",ei}},ei.QueryAccountResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.account&&ef.Any.encode(en.account,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.account=ef.Any.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({account:(0,em.isSet)(en.account)?ef.Any.fromJSON(en.account):void 0}),toJSON(en){let ei={};return void 0!==en.account&&(ei.account=en.account?ef.Any.toJSON(en.account):void 0),ei},fromPartial(en){let ei=createBaseQueryAccountResponse();return ei.account=void 0!==en.account&&null!==en.account?ef.Any.fromPartial(en.account):void 0,ei}},ei.QueryParamsRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei}},ei.QueryParamsResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.params&&ep.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.params=ep.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,em.isSet)(en.params)?ep.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ep.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ep.Params.fromPartial(en.params):void 0,ei}},ei.QueryModuleAccountsRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryModuleAccountsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryModuleAccountsRequest();return ei}},ei.QueryModuleAccountsResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.accounts)ef.Any.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryModuleAccountsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.accounts.push(ef.Any.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({accounts:Array.isArray(en?.accounts)?en.accounts.map(en=>ef.Any.fromJSON(en)):[]}),toJSON(en){let ei={};return en.accounts?ei.accounts=en.accounts.map(en=>en?ef.Any.toJSON(en):void 0):ei.accounts=[],ei},fromPartial(en){let ei=createBaseQueryModuleAccountsResponse();return ei.accounts=en.accounts?.map(en=>ef.Any.fromPartial(en))||[],ei}},ei.QueryModuleAccountByNameRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.name&&ei.uint32(10).string(en.name),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryModuleAccountByNameRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.name=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({name:(0,em.isSet)(en.name)?String(en.name):""}),toJSON(en){let ei={};return void 0!==en.name&&(ei.name=en.name),ei},fromPartial(en){let ei=createBaseQueryModuleAccountByNameRequest();return ei.name=en.name??"",ei}},ei.QueryModuleAccountByNameResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.account&&ef.Any.encode(en.account,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryModuleAccountByNameResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.account=ef.Any.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({account:(0,em.isSet)(en.account)?ef.Any.fromJSON(en.account):void 0}),toJSON(en){let ei={};return void 0!==en.account&&(ei.account=en.account?ef.Any.toJSON(en.account):void 0),ei},fromPartial(en){let ei=createBaseQueryModuleAccountByNameResponse();return ei.account=void 0!==en.account&&null!==en.account?ef.Any.fromPartial(en.account):void 0,ei}},ei.Bech32PrefixRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBech32PrefixRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseBech32PrefixRequest();return ei}},ei.Bech32PrefixResponse={encode:(en,ei=eg.Writer.create())=>(""!==en.bech32Prefix&&ei.uint32(10).string(en.bech32Prefix),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBech32PrefixResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.bech32Prefix=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({bech32Prefix:(0,em.isSet)(en.bech32Prefix)?String(en.bech32Prefix):""}),toJSON(en){let ei={};return void 0!==en.bech32Prefix&&(ei.bech32Prefix=en.bech32Prefix),ei},fromPartial(en){let ei=createBaseBech32PrefixResponse();return ei.bech32Prefix=en.bech32Prefix??"",ei}},ei.AddressBytesToStringRequest={encode:(en,ei=eg.Writer.create())=>(0!==en.addressBytes.length&&ei.uint32(10).bytes(en.addressBytes),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddressBytesToStringRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.addressBytes=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({addressBytes:(0,em.isSet)(en.addressBytes)?(0,em.bytesFromBase64)(en.addressBytes):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.addressBytes&&(ei.addressBytes=(0,em.base64FromBytes)(void 0!==en.addressBytes?en.addressBytes:new Uint8Array)),ei},fromPartial(en){let ei=createBaseAddressBytesToStringRequest();return ei.addressBytes=en.addressBytes??new Uint8Array,ei}},ei.AddressBytesToStringResponse={encode:(en,ei=eg.Writer.create())=>(""!==en.addressString&&ei.uint32(10).string(en.addressString),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddressBytesToStringResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.addressString=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({addressString:(0,em.isSet)(en.addressString)?String(en.addressString):""}),toJSON(en){let ei={};return void 0!==en.addressString&&(ei.addressString=en.addressString),ei},fromPartial(en){let ei=createBaseAddressBytesToStringResponse();return ei.addressString=en.addressString??"",ei}},ei.AddressStringToBytesRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.addressString&&ei.uint32(10).string(en.addressString),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddressStringToBytesRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.addressString=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({addressString:(0,em.isSet)(en.addressString)?String(en.addressString):""}),toJSON(en){let ei={};return void 0!==en.addressString&&(ei.addressString=en.addressString),ei},fromPartial(en){let ei=createBaseAddressStringToBytesRequest();return ei.addressString=en.addressString??"",ei}},ei.AddressStringToBytesResponse={encode:(en,ei=eg.Writer.create())=>(0!==en.addressBytes.length&&ei.uint32(10).bytes(en.addressBytes),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAddressStringToBytesResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.addressBytes=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({addressBytes:(0,em.isSet)(en.addressBytes)?(0,em.bytesFromBase64)(en.addressBytes):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.addressBytes&&(ei.addressBytes=(0,em.base64FromBytes)(void 0!==en.addressBytes?en.addressBytes:new Uint8Array)),ei},fromPartial(en){let ei=createBaseAddressStringToBytesResponse();return ei.addressBytes=en.addressBytes??new Uint8Array,ei}},ei.QueryAccountAddressByIDRequest={encode:(en,ei=eg.Writer.create())=>(en.id.isZero()||ei.uint32(8).int64(en.id),en.accountId.isZero()||ei.uint32(16).uint64(en.accountId),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountAddressByIDRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.id=eo.int64();break;case 2:es.accountId=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({id:(0,em.isSet)(en.id)?em.Long.fromValue(en.id):em.Long.ZERO,accountId:(0,em.isSet)(en.accountId)?em.Long.fromValue(en.accountId):em.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.id&&(ei.id=(en.id||em.Long.ZERO).toString()),void 0!==en.accountId&&(ei.accountId=(en.accountId||em.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryAccountAddressByIDRequest();return ei.id=void 0!==en.id&&null!==en.id?em.Long.fromValue(en.id):em.Long.ZERO,ei.accountId=void 0!==en.accountId&&null!==en.accountId?em.Long.fromValue(en.accountId):em.Long.UZERO,ei}},ei.QueryAccountAddressByIDResponse={encode:(en,ei=eg.Writer.create())=>(""!==en.accountAddress&&ei.uint32(10).string(en.accountAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountAddressByIDResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.accountAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({accountAddress:(0,em.isSet)(en.accountAddress)?String(en.accountAddress):""}),toJSON(en){let ei={};return void 0!==en.accountAddress&&(ei.accountAddress=en.accountAddress),ei},fromPartial(en){let ei=createBaseQueryAccountAddressByIDResponse();return ei.accountAddress=en.accountAddress??"",ei}},ei.QueryAccountInfoRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountInfoRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.address=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({address:(0,em.isSet)(en.address)?String(en.address):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),ei},fromPartial(en){let ei=createBaseQueryAccountInfoRequest();return ei.address=en.address??"",ei}},ei.QueryAccountInfoResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.info&&ep.BaseAccount.encode(en.info,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAccountInfoResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.info=ep.BaseAccount.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({info:(0,em.isSet)(en.info)?ep.BaseAccount.fromJSON(en.info):void 0}),toJSON(en){let ei={};return void 0!==en.info&&(ei.info=en.info?ep.BaseAccount.toJSON(en.info):void 0),ei},fromPartial(en){let ei=createBaseQueryAccountInfoResponse();return ei.info=void 0!==en.info&&null!==en.info?ep.BaseAccount.fromPartial(en.info):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Accounts=this.Accounts.bind(this),this.Account=this.Account.bind(this),this.AccountAddressByID=this.AccountAddressByID.bind(this),this.Params=this.Params.bind(this),this.ModuleAccounts=this.ModuleAccounts.bind(this),this.ModuleAccountByName=this.ModuleAccountByName.bind(this),this.Bech32Prefix=this.Bech32Prefix.bind(this),this.AddressBytesToString=this.AddressBytesToString.bind(this),this.AddressStringToBytes=this.AddressStringToBytes.bind(this),this.AccountInfo=this.AccountInfo.bind(this)}Accounts(en={pagination:void 0}){let eo=ei.QueryAccountsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","Accounts",eo);return ea.then(en=>ei.QueryAccountsResponse.decode(new eg.Reader(en)))}Account(en){let eo=ei.QueryAccountRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","Account",eo);return ea.then(en=>ei.QueryAccountResponse.decode(new eg.Reader(en)))}AccountAddressByID(en){let eo=ei.QueryAccountAddressByIDRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","AccountAddressByID",eo);return ea.then(en=>ei.QueryAccountAddressByIDResponse.decode(new eg.Reader(en)))}Params(en={}){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new eg.Reader(en)))}ModuleAccounts(en={}){let eo=ei.QueryModuleAccountsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccounts",eo);return ea.then(en=>ei.QueryModuleAccountsResponse.decode(new eg.Reader(en)))}ModuleAccountByName(en){let eo=ei.QueryModuleAccountByNameRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","ModuleAccountByName",eo);return ea.then(en=>ei.QueryModuleAccountByNameResponse.decode(new eg.Reader(en)))}
4Bech32Prefix(en={}){let eo=ei.Bech32PrefixRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","Bech32Prefix",eo);return ea.then(en=>ei.Bech32PrefixResponse.decode(new eg.Reader(en)))}AddressBytesToString(en){let eo=ei.AddressBytesToStringRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","AddressBytesToString",eo);return ea.then(en=>ei.AddressBytesToStringResponse.decode(new eg.Reader(en)))}AddressStringToBytes(en){let eo=ei.AddressStringToBytesRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","AddressStringToBytes",eo);return ea.then(en=>ei.AddressStringToBytesResponse.decode(new eg.Reader(en)))}AccountInfo(en){let eo=ei.QueryAccountInfoRequest.encode(en).finish(),ea=this.rpc.request("cosmos.auth.v1beta1.Query","AccountInfo",eo);return ea.then(en=>ei.QueryAccountInfoResponse.decode(new eg.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},18436:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.GrantQueueItem=ei.GrantAuthorization=ei.Grant=ei.GenericAuthorization=ei.protobufPackage=void 0;let eu=eo(53862),ef=eo(85522),ep=ed(eo(83789)),em=eo(81457);function createBaseGenericAuthorization(){return{msg:""}}function createBaseGrant(){return{authorization:void 0,expiration:void 0}}function createBaseGrantAuthorization(){return{granter:"",grantee:"",authorization:void 0,expiration:void 0}}function createBaseGrantQueueItem(){return{msgTypeUrls:[]}}ei.protobufPackage="cosmos.authz.v1beta1",ei.GenericAuthorization={encode:(en,ei=ep.Writer.create())=>(""!==en.msg&&ei.uint32(10).string(en.msg),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGenericAuthorization();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.msg=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({msg:(0,em.isSet)(en.msg)?String(en.msg):""}),toJSON(en){let ei={};return void 0!==en.msg&&(ei.msg=en.msg),ei},fromPartial(en){let ei=createBaseGenericAuthorization();return ei.msg=en.msg??"",ei}},ei.Grant={encode:(en,ei=ep.Writer.create())=>(void 0!==en.authorization&&eu.Any.encode(en.authorization,ei.uint32(10).fork()).ldelim(),void 0!==en.expiration&&ef.Timestamp.encode(en.expiration,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGrant();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.authorization=eu.Any.decode(eo,eo.uint32());break;case 2:es.expiration=ef.Timestamp.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({authorization:(0,em.isSet)(en.authorization)?eu.Any.fromJSON(en.authorization):void 0,expiration:(0,em.isSet)(en.expiration)?(0,em.fromJsonTimestamp)(en.expiration):void 0}),toJSON(en){let ei={};return void 0!==en.authorization&&(ei.authorization=en.authorization?eu.Any.toJSON(en.authorization):void 0),void 0!==en.expiration&&(ei.expiration=(0,em.fromTimestamp)(en.expiration).toISOString()),ei},fromPartial(en){let ei=createBaseGrant();return ei.authorization=void 0!==en.authorization&&null!==en.authorization?eu.Any.fromPartial(en.authorization):void 0,ei.expiration=void 0!==en.expiration&&null!==en.expiration?ef.Timestamp.fromPartial(en.expiration):void 0,ei}},ei.GrantAuthorization={encode:(en,ei=ep.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),void 0!==en.authorization&&eu.Any.encode(en.authorization,ei.uint32(26).fork()).ldelim(),void 0!==en.expiration&&ef.Timestamp.encode(en.expiration,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGrantAuthorization();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;case 3:es.authorization=eu.Any.decode(eo,eo.uint32());break;case 4:es.expiration=ef.Timestamp.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,em.isSet)(en.granter)?String(en.granter):"",grantee:(0,em.isSet)(en.grantee)?String(en.grantee):"",authorization:(0,em.isSet)(en.authorization)?eu.Any.fromJSON(en.authorization):void 0,expiration:(0,em.isSet)(en.expiration)?(0,em.fromJsonTimestamp)(en.expiration):void 0}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.authorization&&(ei.authorization=en.authorization?eu.Any.toJSON(en.authorization):void 0),void 0!==en.expiration&&(ei.expiration=(0,em.fromTimestamp)(en.expiration).toISOString()),ei},fromPartial(en){let ei=createBaseGrantAuthorization();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei.authorization=void 0!==en.authorization&&null!==en.authorization?eu.Any.fromPartial(en.authorization):void 0,ei.expiration=void 0!==en.expiration&&null!==en.expiration?ef.Timestamp.fromPartial(en.expiration):void 0,ei}},ei.GrantQueueItem={encode(en,ei=ep.Writer.create()){for(let eo of en.msgTypeUrls)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGrantQueueItem();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.msgTypeUrls.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({msgTypeUrls:Array.isArray(en?.msgTypeUrls)?en.msgTypeUrls.map(e
4n=>String(en)):[]}),toJSON(en){let ei={};return en.msgTypeUrls?ei.msgTypeUrls=en.msgTypeUrls.map(en=>en):ei.msgTypeUrls=[],ei},fromPartial(en){let ei=createBaseGrantQueueItem();return ei.msgTypeUrls=en.msgTypeUrls?.map(en=>en)||[],ei}}},95413:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryGranteeGrantsResponse=ei.QueryGranteeGrantsRequest=ei.QueryGranterGrantsResponse=ei.QueryGranterGrantsRequest=ei.QueryGrantsResponse=ei.QueryGrantsRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(18436),ep=ed(eo(83789)),em=eo(81457);function createBaseQueryGrantsRequest(){return{granter:"",grantee:"",msgTypeUrl:"",pagination:void 0}}function createBaseQueryGrantsResponse(){return{grants:[],pagination:void 0}}function createBaseQueryGranterGrantsRequest(){return{granter:"",pagination:void 0}}function createBaseQueryGranterGrantsResponse(){return{grants:[],pagination:void 0}}function createBaseQueryGranteeGrantsRequest(){return{grantee:"",pagination:void 0}}function createBaseQueryGranteeGrantsResponse(){return{grants:[],pagination:void 0}}ei.protobufPackage="cosmos.authz.v1beta1",ei.QueryGrantsRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),""!==en.msgTypeUrl&&ei.uint32(26).string(en.msgTypeUrl),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryGrantsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;case 3:es.msgTypeUrl=eo.string();break;case 4:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,em.isSet)(en.granter)?String(en.granter):"",grantee:(0,em.isSet)(en.grantee)?String(en.grantee):"",msgTypeUrl:(0,em.isSet)(en.msgTypeUrl)?String(en.msgTypeUrl):"",pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.msgTypeUrl&&(ei.msgTypeUrl=en.msgTypeUrl),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryGrantsRequest();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei.msgTypeUrl=en.msgTypeUrl??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryGrantsResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.grants)ef.Grant.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryGrantsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.grants.push(ef.Grant.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({grants:Array.isArray(en?.grants)?en.grants.map(en=>ef.Grant.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};
4return en.grants?ei.grants=en.grants.map(en=>en?ef.Grant.toJSON(en):void 0):ei.grants=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryGrantsResponse();return ei.grants=en.grants?.map(en=>ef.Grant.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryGranterGrantsRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryGranterGrantsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,em.isSet)(en.granter)?String(en.granter):"",pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryGranterGrantsRequest();return ei.granter=en.granter??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryGranterGrantsResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.grants)ef.GrantAuthorization.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryGranterGrantsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.grants.push(ef.GrantAuthorization.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({grants:Array.isArray(en?.grants)?en.grants.map(en=>ef.GrantAuthorization.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.grants?ei.grants=en.grants.map(en=>en?ef.GrantAuthorization.toJSON(en):void 0):ei.grants=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryGranterGrantsResponse();return ei.grants=en.grants?.map(en=>ef.GrantAuthorization.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryGranteeGrantsRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.grantee&&ei.uint32(10).string(en.grantee),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryGranteeGrantsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.grantee=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({grantee:(0,em.isSet)(en.grantee)?String(en.grantee):"",pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryGranteeGrantsRequest();return ei.grantee=en.grantee??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryGranteeGrantsResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.grants)ef.GrantAuthorization.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryGranteeGrantsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.grants.push(ef.GrantAuthorization.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>
4({grants:Array.isArray(en?.grants)?en.grants.map(en=>ef.GrantAuthorization.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.grants?ei.grants=en.grants.map(en=>en?ef.GrantAuthorization.toJSON(en):void 0):ei.grants=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryGranteeGrantsResponse();return ei.grants=en.grants?.map(en=>ef.GrantAuthorization.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Grants=this.Grants.bind(this),this.GranterGrants=this.GranterGrants.bind(this),this.GranteeGrants=this.GranteeGrants.bind(this)}Grants(en){let eo=ei.QueryGrantsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.authz.v1beta1.Query","Grants",eo);return ea.then(en=>ei.QueryGrantsResponse.decode(new ep.Reader(en)))}GranterGrants(en){let eo=ei.QueryGranterGrantsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.authz.v1beta1.Query","GranterGrants",eo);return ea.then(en=>ei.QueryGranterGrantsResponse.decode(new ep.Reader(en)))}GranteeGrants(en){let eo=ei.QueryGranteeGrantsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.authz.v1beta1.Query","GranteeGrants",eo);return ea.then(en=>ei.QueryGranteeGrantsResponse.decode(new ep.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},70895:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgRevokeResponse=ei.MsgRevoke=ei.MsgGrantResponse=ei.MsgExec=ei.MsgExecResponse=ei.MsgGrant=ei.protobufPackage=void 0;let eu=eo(18436),ef=eo(53862),ep=ed(eo(83789)),em=eo(81457);function createBaseMsgGrant(){return{granter:"",grantee:"",grant:void 0}}function createBaseMsgExecResponse(){return{results:[]}}function createBaseMsgExec(){return{grantee:"",msgs:[]}}function createBaseMsgGrantResponse(){return{}}function createBaseMsgRevoke(){return{granter:"",grantee:"",msgTypeUrl:""}}function createBaseMsgRevokeResponse(){return{}}ei.protobufPackage="cosmos.authz.v1beta1",ei.MsgGrant={encode:(en,ei=ep.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),void 0!==en.grant&&eu.Grant.encode(en.grant,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgGrant();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;case 3:es.grant=eu.Grant.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,em.isSet)(en.granter)?String(en.granter):"",grantee:(0,em.isSet)(en.grantee)?String(en.grantee):"",grant:(0,em.isSet)(en.grant)?eu.Grant.fromJSON(en.grant):void 0}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.grant&&(ei.grant=en.grant?eu.Grant.toJSON(en.grant):void 0),ei},fromPartial(en){let ei=createBaseMsgGrant();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei.grant=void 0!==en.grant&&null!==en.grant?eu.Grant.fromPartial(en.grant):void 0,ei}},ei.MsgExecResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.results)ei.uint32(10).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgExecResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.results.push(eo.bytes()):eo.skipType(7&en)}return es},fromJSON:en=>({results:Array.isArray(en?.results)?en.results.map(en=>(0,em.bytesFromBase64)(en)):[]}),toJSON(en){let ei={};return en.results?ei.results=en.results.map(en=>(0,em.base64FromBytes)(void 0!==en?en:new Uint8Array)):ei.results=[],ei},fromPartial(en){let ei=createBaseMsgExecResponse();return ei.results=en.results?.map(en=>en)||[],ei}},ei.MsgExec={encode(en,ei=ep.Writer.create()){for(let eo of(""!==en.grantee&&ei.uint32(10).string(en.grantee),en.msgs))ef.Any.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgExec();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.grantee=eo.string();break;case 2:es.msgs.push(ef.Any.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({grantee:(0,em.isSet)(en.grantee)?String(en.grantee):"",msgs:Array.isArray(en?.msgs)?en.msgs.map(e
4n=>ef.Any.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.grantee&&(ei.grantee=en.grantee),en.msgs?ei.msgs=en.msgs.map(en=>en?ef.Any.toJSON(en):void 0):ei.msgs=[],ei},fromPartial(en){let ei=createBaseMsgExec();return ei.grantee=en.grantee??"",ei.msgs=en.msgs?.map(en=>ef.Any.fromPartial(en))||[],ei}},ei.MsgGrantResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgGrantResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgGrantResponse();return ei}},ei.MsgRevoke={encode:(en,ei=ep.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),""!==en.msgTypeUrl&&ei.uint32(26).string(en.msgTypeUrl),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgRevoke();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;case 3:es.msgTypeUrl=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,em.isSet)(en.granter)?String(en.granter):"",grantee:(0,em.isSet)(en.grantee)?String(en.grantee):"",msgTypeUrl:(0,em.isSet)(en.msgTypeUrl)?String(en.msgTypeUrl):""}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.msgTypeUrl&&(ei.msgTypeUrl=en.msgTypeUrl),ei},fromPartial(en){let ei=createBaseMsgRevoke();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei.msgTypeUrl=en.msgTypeUrl??"",ei}},ei.MsgRevokeResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgRevokeResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgRevokeResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(en){let eo=ei.MsgGrant.encode(en).finish(),ea=this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",eo);return ea.then(en=>ei.MsgGrantResponse.decode(new ep.Reader(en)))}Exec(en){let eo=ei.MsgExec.encode(en).finish(),ea=this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",eo);return ea.then(en=>ei.MsgExecResponse.decode(new ep.Reader(en)))}Revoke(en){let eo=ei.MsgRevoke.encode(en).finish(),ea=this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",eo);return ea.then(en=>ei.MsgRevokeResponse.decode(new ep.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},74343:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Metadata=ei.DenomUnit=ei.Supply=ei.Output=ei.Input=ei.SendEnabled=ei.Params=ei.protobufPackage=void 0;let eu=eo(10891),ef=ed(eo(83789)),ep=eo(81457);function createBaseParams(){return{sendEnabled:[],defaultSendEnabled:!1}}function createBaseSendEnabled(){return{denom:"",enabled:!1}}function createBaseInput(){return{address:"",coins:[]}}function createBaseOutput(){return{address:"",coins:[]}}function createBaseSupply(){return{total:[]}}function createBaseDenomUnit(){return{denom:"",exponent:0,aliases:[]}}function createBaseMetadata(){return{description:"",denomUnits:[],base:"",display:"",name:"",symbol
4:"",uri:"",uriHash:""}}ei.protobufPackage="cosmos.bank.v1beta1",ei.Params={encode(en,eo=ef.Writer.create()){for(let ea of en.sendEnabled)ei.SendEnabled.encode(ea,eo.uint32(10).fork()).ldelim();return!0===en.defaultSendEnabled&&eo.uint32(16).bool(en.defaultSendEnabled),eo},decode(en,eo){let ea=en instanceof ef.Reader?en:new ef.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseParams();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.sendEnabled.push(ei.SendEnabled.decode(ea,ea.uint32()));break;case 2:ed.defaultSendEnabled=ea.bool();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({sendEnabled:Array.isArray(en?.sendEnabled)?en.sendEnabled.map(en=>ei.SendEnabled.fromJSON(en)):[],defaultSendEnabled:!!(0,ep.isSet)(en.defaultSendEnabled)&&!!en.defaultSendEnabled}),toJSON(en){let eo={};return en.sendEnabled?eo.sendEnabled=en.sendEnabled.map(en=>en?ei.SendEnabled.toJSON(en):void 0):eo.sendEnabled=[],void 0!==en.defaultSendEnabled&&(eo.defaultSendEnabled=en.defaultSendEnabled),eo},fromPartial(en){let eo=createBaseParams();return eo.sendEnabled=en.sendEnabled?.map(en=>ei.SendEnabled.fromPartial(en))||[],eo.defaultSendEnabled=en.defaultSendEnabled??!1,eo}},ei.SendEnabled={encode:(en,ei=ef.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),!0===en.enabled&&ei.uint32(16).bool(en.enabled),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSendEnabled();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.enabled=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:(0,ep.isSet)(en.denom)?String(en.denom):"",enabled:!!(0,ep.isSet)(en.enabled)&&!!en.enabled}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.enabled&&(ei.enabled=en.enabled),ei},fromPartial(en){let ei=createBaseSendEnabled();return ei.denom=en.denom??"",ei.enabled=en.enabled??!1,ei}},ei.Input={encode(en,ei=ef.Writer.create()){for(let eo of(""!==en.address&&ei.uint32(10).string(en.address),en.coins))eu.Coin.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseInput();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.coins.push(eu.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,ep.isSet)(en.address)?String(en.address):"",coins:Array.isArray(en?.coins)?en.coins.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),en.coins?ei.coins=en.coins.map(en=>en?eu.Coin.toJSON(en):void 0):ei.coins=[],ei},fromPartial(en){let ei=createBaseInput();return ei.address=en.address??"",ei.coins=en.coins?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.Output={encode(en,ei=ef.Writer.create()){for(let eo of(""!==en.address&&ei.uint32(10).string(en.address),en.coins))eu.Coin.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseOutput();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.coins.push(eu.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,ep.isSet)(en.address)?String(en.address):"",coins:Array.isArray(en?.coins)?en.coins.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),en.coins?ei.coins=en.coins.map(en=>en?eu.Coin.toJSON(en):void 0):ei.coins=[],ei},fromPartial(en){let ei=createBaseOutput();return ei.address=en.address??"",ei.coins=en.coins?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.Supply={encode(en,ei=ef.Writer.create()){for(let eo of en.total)eu.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSupply();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.total.push(eu.Coin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({total:Array.isArray(en?.total)?en.total.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.total?ei.total=en.total.map(en=>en?eu.Coin.toJSON(en):void 0):ei.total=[],ei},fromPartial(en){let ei=createBaseSupply();return ei.total=en.total?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.DenomUnit={encode(en,ei=ef.Writer.create()){for(let eo of(""!==en.denom&&ei.uint32(10).string(en.denom),0!==en.exponent&&ei.uint32(16).uint32(en.exponent),en.aliases))ei.uint32(26).string(eo);return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDenomUnit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.exponent=eo.uint32();break;
4case 3:es.aliases.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:(0,ep.isSet)(en.denom)?String(en.denom):"",exponent:(0,ep.isSet)(en.exponent)?Number(en.exponent):0,aliases:Array.isArray(en?.aliases)?en.aliases.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.exponent&&(ei.exponent=Math.round(en.exponent)),en.aliases?ei.aliases=en.aliases.map(en=>en):ei.aliases=[],ei},fromPartial(en){let ei=createBaseDenomUnit();return ei.denom=en.denom??"",ei.exponent=en.exponent??0,ei.aliases=en.aliases?.map(en=>en)||[],ei}},ei.Metadata={encode(en,eo=ef.Writer.create()){for(let ea of(""!==en.description&&eo.uint32(10).string(en.description),en.denomUnits))ei.DenomUnit.encode(ea,eo.uint32(18).fork()).ldelim();return""!==en.base&&eo.uint32(26).string(en.base),""!==en.display&&eo.uint32(34).string(en.display),""!==en.name&&eo.uint32(42).string(en.name),""!==en.symbol&&eo.uint32(50).string(en.symbol),""!==en.uri&&eo.uint32(58).string(en.uri),""!==en.uriHash&&eo.uint32(66).string(en.uriHash),eo},decode(en,eo){let ea=en instanceof ef.Reader?en:new ef.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseMetadata();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.description=ea.string();break;case 2:ed.denomUnits.push(ei.DenomUnit.decode(ea,ea.uint32()));break;case 3:ed.base=ea.string();break;case 4:ed.display=ea.string();break;case 5:ed.name=ea.string();break;case 6:ed.symbol=ea.string();break;case 7:ed.uri=ea.string();break;case 8:ed.uriHash=ea.string();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({description:(0,ep.isSet)(en.description)?String(en.description):"",denomUnits:Array.isArray(en?.denomUnits)?en.denomUnits.map(en=>ei.DenomUnit.fromJSON(en)):[],base:(0,ep.isSet)(en.base)?String(en.base):"",display:(0,ep.isSet)(en.display)?String(en.display):"",name:(0,ep.isSet)(en.name)?String(en.name):"",symbol:(0,ep.isSet)(en.symbol)?String(en.symbol):"",uri:(0,ep.isSet)(en.uri)?String(en.uri):"",uriHash:(0,ep.isSet)(en.uriHash)?String(en.uriHash):""}),toJSON(en){let eo={};return void 0!==en.description&&(eo.description=en.description),en.denomUnits?eo.denomUnits=en.denomUnits.map(en=>en?ei.DenomUnit.toJSON(en):void 0):eo.denomUnits=[],void 0!==en.base&&(eo.base=en.base),void 0!==en.display&&(eo.display=en.display),void 0!==en.name&&(eo.name=en.name),void 0!==en.symbol&&(eo.symbol=en.symbol),void 0!==en.uri&&(eo.uri=en.uri),void 0!==en.uriHash&&(eo.uriHash=en.uriHash),eo},fromPartial(en){let eo=createBaseMetadata();return eo.description=en.description??"",eo.denomUnits=en.denomUnits?.map(en=>ei.DenomUnit.fromPartial(en))||[],eo.base=en.base??"",eo.display=en.display??"",eo.name=en.name??"",eo.symbol=en.symbol??"",eo.uri=en.uri??"",eo.uriHash=en.uriHash??"",eo}}},62916:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QuerySendEnabledResponse=ei.QuerySendEnabledRequest=ei.QueryDenomOwnersResponse=ei.DenomOwner=ei.QueryDenomOwnersRequest=ei.QueryDenomMetadataResponse=ei.QueryDenomMetadataRequest=ei.QueryDenomsMetadataResponse=ei.QueryDenomsMetadataRequest=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.QuerySupplyOfResponse=ei.QuerySupplyOfRequest=ei.QueryTotalSupplyResponse=ei.QueryTotalSupplyRequest=ei.QuerySpendableBalanceByDenomResponse=ei.QuerySpendableBalanceByDenomRequest=ei.QuerySpendableBalancesResponse=ei.QuerySpendableBalancesRequest=ei.QueryAllBalancesResponse=ei.QueryAllBalancesRequest=ei.QueryBalanceResponse=ei.QueryBalanceRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(10891),ep=eo(74343),em=ed(eo(83789)),eg=eo(81457);
4function createBaseQueryBalanceRequest(){return{address:"",denom:""}}function createBaseQueryBalanceResponse(){return{balance:void 0}}function createBaseQueryAllBalancesRequest(){return{address:"",pagination:void 0}}function createBaseQueryAllBalancesResponse(){return{balances:[],pagination:void 0}}function createBaseQuerySpendableBalancesRequest(){return{address:"",pagination:void 0}}function createBaseQuerySpendableBalancesResponse(){return{balances:[],pagination:void 0}}function createBaseQuerySpendableBalanceByDenomRequest(){return{address:"",denom:""}}function createBaseQuerySpendableBalanceByDenomResponse(){return{balance:void 0}}function createBaseQueryTotalSupplyRequest(){return{pagination:void 0}}function createBaseQueryTotalSupplyResponse(){return{supply:[],pagination:void 0}}function createBaseQuerySupplyOfRequest(){return{denom:""}}function createBaseQuerySupplyOfResponse(){return{amount:void 0}}function createBaseQueryParamsRequest(){return{}}function createBaseQueryParamsResponse(){return{params:void 0}}function createBaseQueryDenomsMetadataRequest(){return{pagination:void 0}}function createBaseQueryDenomsMetadataResponse(){return{metadatas:[],pagination:void 0}}function createBaseQueryDenomMetadataRequest(){return{denom:""}}function createBaseQueryDenomMetadataResponse(){return{metadata:void 0}}function createBaseQueryDenomOwnersRequest(){return{denom:"",pagination:void 0}}function createBaseDenomOwner(){return{address:"",balance:void 0}}function createBaseQueryDenomOwnersResponse(){return{denomOwners:[],pagination:void 0}}function createBaseQuerySendEnabledRequest(){return{denoms:[],pagination:void 0}}function createBaseQuerySendEnabledResponse(){return{sendEnabled:[],pagination:void 0}}ei.protobufPackage="cosmos.bank.v1beta1",ei.QueryBalanceRequest={encode:(en,ei=em.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),""!==en.denom&&ei.uint32(18).string(en.denom),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryBalanceRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.denom=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,eg.isSet)(en.address)?String(en.address):"",denom:(0,eg.isSet)(en.denom)?String(en.denom):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.denom&&(ei.denom=en.denom),ei},fromPartial(en){let ei=createBaseQueryBalanceRequest();return ei.address=en.address??"",ei.denom=en.denom??"",ei}},ei.QueryBalanceResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.balance&&ef.Coin.encode(en.balance,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryBalanceResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.balance=ef.Coin.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({balance:(0,eg.isSet)(en.balance)?ef.Coin.fromJSON(en.balance):void 0}),toJSON(en){let ei={};return void 0!==en.balance&&(ei.balance=en.balance?ef.Coin.toJSON(en.balance):void 0),ei},fromPartial(en){let ei=createBaseQueryBalanceResponse();return ei.balance=void 0!==en.balance&&null!==en.balance?ef.Coin.fromPartial(en.balance):void 0,ei}},ei.QueryAllBalancesRequest={encode:(en,ei=em.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllBalancesRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,eg.isSet)(en.address)?String(en.address):"",pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAllBalancesRequest();return ei.address=en.address??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryAllBalancesResponse={encode(en,ei=em.Writer.create()){for(let eo of en.balances)ef.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllBalancesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.balances.push(ef.Coin.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({balances:Array.isArray(en?.balances)?en.balances.map(en=>ef.Coin.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.balances?ei.balances=en.balances.map(en=>en?ef.Coin.toJSON(en):void 0):ei.balances=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAllBalancesResponse();return ei.balances=en.balances?.map(en=>ef.Coin.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QuerySpendableBalancesRequest={encode:(en,ei=em.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySpendableBalancesRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,eg.isSet)(en.address)?String(en.address):"",pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQuerySpendableBalancesRequest();return ei.address=en.address??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QuerySpendableBalancesResponse={encode(en,ei=em.Writer.create()){for(let eo of en.balances)ef.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySpendableBalancesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.balances.push(ef.Coin.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({balances:Array.isArray(en?.balances)?en.balances.map(en=>ef.Coin.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.balances?ei.balances=en.balances.map(en=>en?ef.Coin.toJSON(en):void 0):ei.balances=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQuerySpendableBalancesResponse();return ei.balances=en.balances?.map(en=>ef.Coin.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QuerySpendableBalanceByDenomRequest={encode:(en,ei=em.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),""!==en.denom&&ei.uint32(18).string(en.denom),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySpendableBalanceByDenomRequest
4();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.denom=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,eg.isSet)(en.address)?String(en.address):"",denom:(0,eg.isSet)(en.denom)?String(en.denom):""}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.denom&&(ei.denom=en.denom),ei},fromPartial(en){let ei=createBaseQuerySpendableBalanceByDenomRequest();return ei.address=en.address??"",ei.denom=en.denom??"",ei}},ei.QuerySpendableBalanceByDenomResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.balance&&ef.Coin.encode(en.balance,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySpendableBalanceByDenomResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.balance=ef.Coin.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({balance:(0,eg.isSet)(en.balance)?ef.Coin.fromJSON(en.balance):void 0}),toJSON(en){let ei={};return void 0!==en.balance&&(ei.balance=en.balance?ef.Coin.toJSON(en.balance):void 0),ei},fromPartial(en){let ei=createBaseQuerySpendableBalanceByDenomResponse();return ei.balance=void 0!==en.balance&&null!==en.balance?ef.Coin.fromPartial(en.balance):void 0,ei}},ei.QueryTotalSupplyRequest={encode:(en,ei=em.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryTotalSupplyRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryTotalSupplyRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryTotalSupplyResponse={encode(en,ei=em.Writer.create()){for(let eo of en.supply)ef.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryTotalSupplyResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.supply.push(ef.Coin.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({supply:Array.isArray(en?.supply)?en.supply.map(en=>ef.Coin.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.supply?ei.supply=en.supply.map(en=>en?ef.Coin.toJSON(en):void 0):ei.supply=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryTotalSupplyResponse();return ei.supply=en.supply?.map(en=>ef.Coin.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QuerySupplyOfRequest={encode:(en,ei=em.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySupplyOfRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.denom=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({denom:(0,eg.isSet)(en.denom)?String(en.denom):""}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),ei},fromPartial(en){let ei=createBaseQuerySupplyOfRequest();return ei.denom=en.denom??"",ei}},ei.QuerySupplyOfResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.amount&&ef.Coin.encode(en.amount,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySupplyOfResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.amount=ef.Coin.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({amount:(0,eg.isSet)(en.amount)?ef.Coin.fromJSON(en.amount):void 0}),toJSON(en){let ei={};return void 0!==en.amount&&(ei.amount=en.amount?ef.Coin.toJSON(en.amount):void 0),ei},fromPartial(en){let ei=createBaseQuerySupplyOfResponse();return ei.amount=void 0!==en.amount&&null!==en.amount?ef.Coin.fromPartial(en.amount):void 0,ei}},ei.QueryParamsRequest={encode:(en,ei=em.Writer.create())=>ei,decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei}},ei.QueryParamsResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.params&&ep.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>
43==1?es.params=ep.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,eg.isSet)(en.params)?ep.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ep.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ep.Params.fromPartial(en.params):void 0,ei}},ei.QueryDenomsMetadataRequest={encode:(en,ei=em.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomsMetadataRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDenomsMetadataRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryDenomsMetadataResponse={encode(en,ei=em.Writer.create()){for(let eo of en.metadatas)ep.Metadata.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomsMetadataResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.metadatas.push(ep.Metadata.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({metadatas:Array.isArray(en?.metadatas)?en.metadatas.map(en=>ep.Metadata.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.metadatas?ei.metadatas=en.metadatas.map(en=>en?ep.Metadata.toJSON(en):void 0):ei.metadatas=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDenomsMetadataResponse();return ei.metadatas=en.metadatas?.map(en=>ep.Metadata.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryDenomMetadataRequest={encode:(en,ei=em.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomMetadataRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.denom=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({denom:(0,eg.isSet)(en.denom)?String(en.denom):""}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),ei},fromPartial(en){let ei=createBaseQueryDenomMetadataRequest();return ei.denom=en.denom??"",ei}},ei.QueryDenomMetadataResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.metadata&&ep.Metadata.encode(en.metadata,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomMetadataResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.metadata=ep.Metadata.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({metadata:(0,eg.isSet)(en.metadata)?ep.Metadata.fromJSON(en.metadata):void 0}),toJSON(en){let ei={};return void 0!==en.metadata&&(ei.metadata=en.metadata?ep.Metadata.toJSON(en.metadata):void 0),ei},fromPartial(en){let ei=createBaseQueryDenomMetadataResponse();return ei.metadata=void 0!==en.metadata&&null!==en.metadata?ep.Metadata.fromPartial(en.metadata):void 0,ei}},ei.QueryDenomOwnersRequest={encode:(en,ei=em.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomOwnersRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:(0,eg.isSet)(en.denom)?String(en.denom):"",pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDenomOwnersRequest();return ei.denom=en.denom??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.DenomOwner={encode:(en,ei=em.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),void 0!==en.balance&&ef.Coin.encode(en.balance,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDenomOwner();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.balance=ef.Coin.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,eg.isSet)(en.address)?String(en.address):"",balance:(0,eg.isSet)(en.balance)?ef.Coin.fromJSON(en.balance):void 0}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.balance&&(ei.balance=en.balance?ef.Coin.toJSON(en.balance):void 0),ei},fromPartial(en){let ei=createBaseDenomOwner();return ei.address=en.address??"",ei.balance=void 0!==en.balance&&null!==en.balance?ef.Coin.fromPartial(en.balance):void 0,ei}},ei.QueryDenomOwnersResponse={encode(en,eo=em.Writer.create()){for(let ea of en.denomOwners)ei.DenomOwner.encode(ea,eo.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,eo.uint32(18).fork()).ldelim(),eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseQueryDenomOwnersResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.denomOwners.push(ei.DenomOwner.decode(ea,ea.uint32()));break;case 2:ed.pagination=eu.PageResponse.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({denomOwners:Array.isArray(en?.denomOwners)?en.denomOwners.map(en=>ei.DenomOwner.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let eo={};return en.denomOwners?eo.denomOwners=en.denomOwners.map(en=>en?ei.DenomOwner.toJSON(en):void 0):eo.denomOwners=[],void 0!==en.pagination&&(eo.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),eo},fromPartial(en){let eo=createBaseQueryDenomOwnersResponse();return eo.denomOwners=en.denomOwners?.map(en=>ei.DenomOwner.fromPartial(en))||[],eo.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,eo}},ei.QuerySendEnabledRequest={encode(en,ei=em.Writer.create()){for(let eo of en.denoms)ei.uint32(10).string(eo);return void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(794).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySendEnabledRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denoms.push(eo.string());break;case 99:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denoms:Array.isArray(en?.denoms)?en.denoms.map(en=>String(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.denoms?ei.denoms=en.denoms.map(en=>en):ei.denoms=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQuerySendEnabledRequest();return ei.denoms=en.denoms?.map(en=>en)||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QuerySendEnabledResponse={encode(en,ei=em.Writer.create()){for(let eo of en.sendEnabled)ep.SendEnabled.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(794).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySendEnabledResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sendEnabled.push(ep.SendEnabled.decode(eo,eo.uint32()));break;case 99:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sendEnabled:Array.isArray(en?.sendEnabled)?en.sendEnabled.map(en=>ep.SendEnabled.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.sendEnabled?ei.sendEnabled=en.sendEnabled.map(en=>en?ep.SendEnabled.toJSON(en):void 0):ei.sendEnabled=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQuerySendEnabledResponse();return ei.sendEnabled=en.sendEnabled?.map(en=>ep.SendEnabled.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Balance=this.Balance.b
4ind(this),this.AllBalances=this.AllBalances.bind(this),this.SpendableBalances=this.SpendableBalances.bind(this),this.SpendableBalanceByDenom=this.SpendableBalanceByDenom.bind(this),this.TotalSupply=this.TotalSupply.bind(this),this.SupplyOf=this.SupplyOf.bind(this),this.Params=this.Params.bind(this),this.DenomMetadata=this.DenomMetadata.bind(this),this.DenomsMetadata=this.DenomsMetadata.bind(this),this.DenomOwners=this.DenomOwners.bind(this),this.SendEnabled=this.SendEnabled.bind(this)}Balance(en){let eo=ei.QueryBalanceRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","Balance",eo);return ea.then(en=>ei.QueryBalanceResponse.decode(new em.Reader(en)))}AllBalances(en){let eo=ei.QueryAllBalancesRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","AllBalances",eo);return ea.then(en=>ei.QueryAllBalancesResponse.decode(new em.Reader(en)))}SpendableBalances(en){let eo=ei.QuerySpendableBalancesRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalances",eo);return ea.then(en=>ei.QuerySpendableBalancesResponse.decode(new em.Reader(en)))}SpendableBalanceByDenom(en){let eo=ei.QuerySpendableBalanceByDenomRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","SpendableBalanceByDenom",eo);return ea.then(en=>ei.QuerySpendableBalanceByDenomResponse.decode(new em.Reader(en)))}TotalSupply(en={pagination:void 0}){let eo=ei.QueryTotalSupplyRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","TotalSupply",eo);return ea.then(en=>ei.QueryTotalSupplyResponse.decode(new em.Reader(en)))}SupplyOf(en){let eo=ei.QuerySupplyOfRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","SupplyOf",eo);return ea.then(en=>ei.QuerySupplyOfResponse.decode(new em.Reader(en)))}Params(en={}){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new em.Reader(en)))}DenomMetadata(en){let eo=ei.QueryDenomMetadataRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","DenomMetadata",eo);return ea.then(en=>ei.QueryDenomMetadataResponse.decode(new em.Reader(en)))}DenomsMetadata(en={pagination:void 0}){let eo=ei.QueryDenomsMetadataRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","DenomsMetadata",eo);return ea.then(en=>ei.QueryDenomsMetadataResponse.decode(new em.Reader(en)))}DenomOwners(en){let eo=ei.QueryDenomOwnersRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","DenomOwners",eo);return ea.then(en=>ei.QueryDenomOwnersResponse.decode(new em.Reader(en)))}SendEnabled(en){let eo=ei.QuerySendEnabledRequest.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Query","SendEnabled",eo);return ea.then(en=>ei.QuerySendEnabledResponse.decode(new em.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},98994:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgSetSendEnabledResponse=ei.MsgSetSendEnabled=ei.MsgUpdateParamsResponse=ei.MsgUpdateParams=ei.MsgMultiSendResponse=ei.MsgMultiSend=ei.MsgSendResponse=ei.MsgSend=ei.protobufPackage=void 0;let eu=eo(10891),ef=eo(74343),ep=ed(eo(83789)),em=eo(81457);function createBaseMsgSend(){return{fromAddress:"",toAddress:"",amount:[]}}
4function createBaseMsgSendResponse(){return{}}function createBaseMsgMultiSend(){return{inputs:[],outputs:[]}}function createBaseMsgMultiSendResponse(){return{}}function createBaseMsgUpdateParams(){return{authority:"",params:void 0}}function createBaseMsgUpdateParamsResponse(){return{}}function createBaseMsgSetSendEnabled(){return{authority:"",sendEnabled:[],useDefaultFor:[]}}function createBaseMsgSetSendEnabledResponse(){return{}}ei.protobufPackage="cosmos.bank.v1beta1",ei.MsgSend={encode(en,ei=ep.Writer.create()){for(let eo of(""!==en.fromAddress&&ei.uint32(10).string(en.fromAddress),""!==en.toAddress&&ei.uint32(18).string(en.toAddress),en.amount))eu.Coin.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSend();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.fromAddress=eo.string();break;case 2:es.toAddress=eo.string();break;case 3:es.amount.push(eu.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({fromAddress:(0,em.isSet)(en.fromAddress)?String(en.fromAddress):"",toAddress:(0,em.isSet)(en.toAddress)?String(en.toAddress):"",amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.fromAddress&&(ei.fromAddress=en.fromAddress),void 0!==en.toAddress&&(ei.toAddress=en.toAddress),en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseMsgSend();return ei.fromAddress=en.fromAddress??"",ei.toAddress=en.toAddress??"",ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.MsgSendResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSend
4Response();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgSendResponse();return ei}},ei.MsgMultiSend={encode(en,ei=ep.Writer.create()){for(let eo of en.inputs)ef.Input.encode(eo,ei.uint32(10).fork()).ldelim();for(let eo of en.outputs)ef.Output.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgMultiSend();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.inputs.push(ef.Input.decode(eo,eo.uint32()));break;case 2:es.outputs.push(ef.Output.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({inputs:Array.isArray(en?.inputs)?en.inputs.map(en=>ef.Input.fromJSON(en)):[],outputs:Array.isArray(en?.outputs)?en.outputs.map(en=>ef.Output.fromJSON(en)):[]}),toJSON(en){let ei={};return en.inputs?ei.inputs=en.inputs.map(en=>en?ef.Input.toJSON(en):void 0):ei.inputs=[],en.outputs?ei.outputs=en.outputs.map(en=>en?ef.Output.toJSON(en):void 0):ei.outputs=[],ei},fromPartial(en){let ei=createBaseMsgMultiSend();return ei.inputs=en.inputs?.map(en=>ef.Input.fromPartial(en))||[],ei.outputs=en.outputs?.map(en=>ef.Output.fromPartial(en))||[],ei}},ei.MsgMultiSendResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgMultiSendResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgMultiSendResponse();return ei}},ei.MsgUpdateParams={encode:(en,ei=ep.Writer.create())=>(""!==en.authority&&ei.uint32(10).string(en.authority),void 0!==en.params&&ef.Params.encode(en.params,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.authority=eo.string();break;case 2:es.params=ef.Params.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({authority:(0,em.isSet)(en.authority)?String(en.authority):"",params:(0,em.isSet)(en.params)?ef.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.authority&&(ei.authority=en.authority),void 0!==en.params&&(ei.params=en.params?ef.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseMsgUpdateParams();return ei.authority=en.authority??"",ei.params=void 0!==en.params&&null!==en.params?ef.Params.fromPartial(en.params):void 0,ei}},ei.MsgUpdateParamsResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgUpdateParamsResponse();return ei}},ei.MsgSetSendEnabled={encode(en,ei=ep.Writer.create()){for(let eo of(""!==en.authority&&ei.uint32(10).string(en.authority),en.sendEnabled))ef.SendEnabled.encode(eo,ei.uint32(18).fork()).ldelim();for(let eo of en.useDefaultFor)ei.uint32(26).string(eo);return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSetSendEnabled();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.authority=eo.string();break;case 2:es.sendEnabled.push(ef.SendEnabled.decode(eo,eo.uint32()));break;case 3:es.useDefaultFor.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({authority:(0,em.isSet)(en.authority)?String(en.authority):"",sendEnabled:Array.isArray(en?.sendEnabled)?en.sendEnabled.map(en=>ef.SendEnabled.fromJSON(en)):[],useDefaultFor:Array.isArray(en?.useDefaultFor)?en.useDefaultFor.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.authority&&(ei.authority=en.authority),en.sendEnabled?ei.sendEnabled=en.sendEnabled.map(en=>en?ef.SendEnabled.toJSON(en):void 0):ei.sendEnabled=[],en.useDefaultFor?ei.useDefaultFor=en.useDefaultFor.map(en=>en):ei.useDefaultFor=[],ei},fromPartial(en){let ei=createBaseMsgSetSendEnabled();return ei.authority=en.authority??"",ei.sendEnabled=en.sendEnabled?.map(en=>ef.SendEnabled.fromPartial(en))||[],ei.useDefaultFor=en.useDefaultFor?.map(en=>en)||[],ei}},ei.MsgSetSendEnabledResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSetSendEnabledResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgSetSendEnabledResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.SetSendEnabled=this.SetSendEnabled.bind(this)}Send(en){let eo=ei.MsgSend.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Msg","Send",eo);return ea.then(en=>ei.MsgSendResponse.decode(new ep.Reader(en)))}MultiSend(en){let eo=ei.MsgMultiSend.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",eo);return ea.then(en=>ei.MsgMultiSendResponse.decode(new ep.Reader(en)))}UpdateParams(en){let eo=ei.MsgUpdateParams.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Msg","UpdateParams",eo);return ea.then(en=>ei.MsgUpdateParamsResponse.decode(new ep.Reader(en)))}SetSendEnabled(en){let eo=ei.MsgSetSendEnabled.encode(en).finish(),ea=this.rpc.request("cosmos.bank.v1beta1.Msg","SetSendEnabled",eo);return ea.then(en=>ei.MsgSetSendEnabledResponse.decode(new ep.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},84194:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SearchTxsResult=ei.TxMsgData=ei.MsgData=ei.SimulationResponse=ei.Result=ei.GasInfo=ei.Attribute=ei.StringEvent=ei.ABCIMessageLog=ei.TxResponse=ei.protobufPackage=void 0;let eu=eo(53862),ef=eo(9492),ep=eo(81457),em=ed(eo(83789));function createBaseTxResponse(){return{height:ep.Long.ZERO,txhash:"",codespace:"",code:0,data:"",rawLog:"",logs:[],info:"",gasWanted:ep.Long.ZERO,gasUsed:ep.Long.ZERO,tx:void 0,timestamp:"",events:[]}}function createBaseABCIMessageLog(){return{msgIndex:0,log:"",events:[]}}function createBaseStringEvent(){return{type:"",attributes:[]}}function createBaseAttribute(){return{key:"",value:""}}function createBaseGasInfo(){return{gasWanted:ep.Long.UZERO,gasUsed:ep.Long.UZERO}}function createBaseResult(){return{data:new Uint8Array,log:"",events:[],msgResponses:[]}}function createBaseSimulationResponse(){return{gasInfo:void 0,result:void 0}}function createBaseMsgData(){return{msgType:"",data:new Uint8Array}}function createBaseTxMsgData(){return{data:[],msgResponses:[]}}function createBaseSearchTxsResult(){return{totalCount:ep.Long.UZERO,count:ep.Long.UZERO,pageNumber:ep.Long.UZERO,pageTotal:ep.Long.UZERO,limit:ep.Long.UZERO,txs:[]}}ei.protobufPackage="cosmos.base.abci.v1beta1",ei.TxResponse={encode(en,eo=em.Writer.create()){for(let ea of(en.height.isZero()||eo.uint32(8).int64(en.height),""!==en.txhash&&eo.uint32(18).string(en.txhash),""!==en.codespace&&eo.uint32(26).string(en.codespace),0!==en.code&&eo.uint32(32).uint32(en.code),""!==en.data&&eo.uint32(42).string(en.data),""!==en.rawLog&&eo.uint32(50).string(en.rawLog),en.logs))ei.ABCIMessageLog.encode(ea,eo.uint32(58).fork()).ldelim();for(let ei of(""!==en.info&&eo.uint32(66).string(en.info),en.gasWanted.isZero()||eo.uint32(72).int64(en.gasWanted),en.gasUsed.isZero()||eo.uint32(80).int64(en.gasUsed),void 0!==en.tx&&eu.Any.encode(en.tx,eo.uint32(90).fork()).ldelim(),""!==en.timestamp&&eo.uint32(98).string(en.timestamp),en.events))ef.Event.encode(ei,eo.uint32(106).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseTxResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.height=ea.int64();break;case 2:ed.txhash=ea.string();break;case 3:ed.codespace=ea.string();break;case 4:ed.code=ea.uint32();break;case 5:ed.data=ea.string();break;case 6:ed.rawLog=ea.string();break;case 7:ed.logs.push(ei.ABCIMessageLog.decode(ea,ea.uint32()));break;case 8:ed.info=ea.string();break;case 9:ed.gasWanted=ea.int64();break;case 10:ed.gasUsed=ea.int64();break;case 11:ed.tx=eu.Any.decode(ea,ea.uint32());break;case 12:ed.timestamp=ea.string();break;case 13:ed.events.push(ef.Event.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({height:(0,ep.isSet)(en.height)?ep.Long.fromValue(en.height):ep.Long.ZERO,txhash:(0,ep.isSet)(en.txhash)?String(en.txhash):"",codespace:(0,ep.isSet)(en.codespace)?String(en.codespace):"",code:(0,ep.isSet)(en.code)?Number(en.code):0,data:(0,ep.isSet)(en.data)?String(en.data):"",rawLog:(0,ep.isSet)(en.rawLog)?String(en.rawLog):"",logs:Array.isArray(en?.logs)?en.logs.map(e
4n=>ei.ABCIMessageLog.fromJSON(en)):[],info:(0,ep.isSet)(en.info)?String(en.info):"",gasWanted:(0,ep.isSet)(en.gasWanted)?ep.Long.fromValue(en.gasWanted):ep.Long.ZERO,gasUsed:(0,ep.isSet)(en.gasUsed)?ep.Long.fromValue(en.gasUsed):ep.Long.ZERO,tx:(0,ep.isSet)(en.tx)?eu.Any.fromJSON(en.tx):void 0,timestamp:(0,ep.isSet)(en.timestamp)?String(en.timestamp):"",events:Array.isArray(en?.events)?en.events.map(en=>ef.Event.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.height&&(eo.height=(en.height||ep.Long.ZERO).toString()),void 0!==en.txhash&&(eo.txhash=en.txhash),void 0!==en.codespace&&(eo.codespace=en.codespace),void 0!==en.code&&(eo.code=Math.round(en.code)),void 0!==en.data&&(eo.data=en.data),void 0!==en.rawLog&&(eo.rawLog=en.rawLog),en.logs?eo.logs=en.logs.map(en=>en?ei.ABCIMessageLog.toJSON(en):void 0):eo.logs=[],void 0!==en.info&&(eo.info=en.info),void 0!==en.gasWanted&&(eo.gasWanted=(en.gasWanted||ep.Long.ZERO).toString()),void 0!==en.gasUsed&&(eo.gasUsed=(en.gasUsed||ep.Long.ZERO).toString()),void 0!==en.tx&&(eo.tx=en.tx?eu.Any.toJSON(en.tx):void 0),void 0!==en.timestamp&&(eo.timestamp=en.timestamp),en.events?eo.events=en.events.map(en=>en?ef.Event.toJSON(en):void 0):eo.events=[],eo},fromPartial(en){let eo=createBaseTxResponse();return eo.height=void 0!==en.height&&null!==en.height?ep.Long.fromValue(en.height):ep.Long.ZERO,eo.txhash=en.txhash??"",eo.codespace=en.codespace??"",eo.code=en.code??0,eo.data=en.data??"",eo.rawLog=en.rawLog??"",eo.logs=en.logs?.map(en=>ei.ABCIMessageLog.fromPartial(en))||[],eo.info=en.info??"",eo.gasWanted=void 0!==en.gasWanted&&null!==en.gasWanted?ep.Long.fromValue(en.gasWanted):ep.Long.ZERO,eo.gasUsed=void 0!==en.gasUsed&&null!==en.gasUsed?ep.Long.fromValue(en.gasUsed):ep.Long.ZERO,eo.tx=void 0!==en.tx&&null!==en.tx?eu.Any.fromPartial(en.tx):void 0,eo.timestamp=en.timestamp??"",eo.events=en.events?.map(en=>ef.Event.fromPartial(en))||[],eo}},ei.ABCIMessageLog={encode(en,eo=em.Writer.create()){for(let ea of(0!==en.msgIndex&&eo.uint32(8).uint32(en.msgIndex),""!==en.log&&eo.uint32(18).string(en.log),en.events))ei.StringEvent.encode(ea,eo.uint32(26).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseABCIMessageLog();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.msgIndex=ea.uint32();break;case 2:ed.log=ea.string();break;case 3:ed.events.push(ei.StringEvent.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({msgIndex:(0,ep.isSet)(en.msgIndex)?Number(en.msgIndex):0,log:(0,ep.isSet)(en.log)?String(en.log):"",events:Array.isArray(en?.events)?en.events.map(en=>ei.StringEvent.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.msgIndex&&(eo.msgIndex=Math.round(en.msgIndex)),void 0!==en.log&&(eo.log=en.log),en.events?eo.events=en.events.map(en=>en?ei.StringEvent.toJSON(en):void 0):eo.events=[],eo},fromPartial(en){let eo=createBaseABCIMessageLog();return eo.msgIndex=en.msgIndex??0,eo.log=en.log??"",eo.events=en.events?.map(en=>ei.StringEvent.fromPartial(en))||[],eo}},ei.StringEvent={encode(en,eo=em.Writer.create()){for(let ea of(""!==en.type&&eo.uint32(10).string(en.type),en.attributes))ei.Attribute.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseStringEvent();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.type=ea.string();break;case 2:ed.attributes.push(ei.Attribute.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({type:(0,ep.isSet)(en.type)?String(en.type):"",attributes:Array.isArray(en?.attributes)?en.attributes.map(en=>ei.Attribute.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.type&&(eo.type=en.type),en.attributes?eo.attributes=en.attributes.map(en=>en?ei.Attribute.toJSON(en):void 0):eo.attributes=[],eo},fromPartial(en){let eo=createBaseStringEvent();return eo.type=en.type??"",eo.attributes=en.attributes?.map(en=>ei.Attribute.fromPartial(en))||[],eo}},ei.Attribute={encode:(en,ei=em.Writer.create())=>(""!==en.key&&ei.uint32(10).string(en.key),""!==en.value&&ei.uint32(18).string(en.value),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAttribute();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.string();break;case 2:es.value=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:(0,ep.isSet)(en.key)?String(en.key):"",value:(0,ep.isSet)(en.value)?String(en.value):""}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=en.key),void 0!==en.value&&(ei.value=en.value),ei},fromPartial(en){let ei=createBaseAttribute();return ei.key=en.key??"",ei.value=en.value??"",ei}},ei.GasInfo={encode:(en,ei=em.Writer.create())=>(en.gasWanted.isZero()||ei.uint32(8).uint64(en.gasWanted),en.gasUsed.isZero()||ei.uint32(16).uint64(en.gasUsed),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGasInfo();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.gasWanted=eo.uint64();break;case 2:es.gasUsed=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({gasWanted:(0,ep.isSet)(en.gasWanted)?ep.Long.fromValue(en.gasWanted):ep.Long.UZERO,gasUsed:(0,ep.isSet)(en.gasUsed)?ep.Long.fromValue(en.gasUsed):ep.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.gasWanted&&(ei.gasWanted=(en.gasWanted||ep.Long.UZERO).toString()),void 0!==en.gasUsed&&(ei.gasUsed=(en.gasUsed||ep.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseGasInfo();return ei.gasWanted=void 0!==en.gasWanted&&null!==en.gasWanted?ep.Long.fromValue(en.gasWanted):ep.Long.UZERO,ei.gasUsed=void 0!==en.gasUsed&&null!==en.gasUsed?ep.Long.fromValue(en.gasUsed):ep.Long.UZERO,ei}},ei.Result={encode(en,ei=em.Writer.create()){for(let eo of(0!==e
4n.data.length&&ei.uint32(10).bytes(en.data),""!==en.log&&ei.uint32(18).string(en.log),en.events))ef.Event.encode(eo,ei.uint32(26).fork()).ldelim();for(let eo of en.msgResponses)eu.Any.encode(eo,ei.uint32(34).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseResult();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.data=eo.bytes();break;case 2:es.log=eo.string();break;case 3:es.events.push(ef.Event.decode(eo,eo.uint32()));break;case 4:es.msgResponses.push(eu.Any.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({data:(0,ep.isSet)(en.data)?(0,ep.bytesFromBase64)(en.data):new Uint8Array,log:(0,ep.isSet)(en.log)?String(en.log):"",events:Array.isArray(en?.events)?en.events.map(en=>ef.Event.fromJSON(en)):[],msgResponses:Array.isArray(en?.msgResponses)?en.msgResponses.map(en=>eu.Any.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.data&&(ei.data=(0,ep.base64FromBytes)(void 0!==en.data?en.data:new Uint8Array)),void 0!==en.log&&(ei.log=en.log),en.events?ei.events=en.events.map(en=>en?ef.Event.toJSON(en):void 0):ei.events=[],en.msgResponses?ei.msgResponses=en.msgResponses.map(en=>en?eu.Any.toJSON(en):void 0):ei.msgResponses=[],ei},fromPartial(en){let ei=createBaseResult();return ei.data=en.data??new Uint8Array,ei.log=en.log??"",ei.events=en.events?.map(en=>ef.Event.fromPartial(en))||[],ei.msgResponses=en.msgResponses?.map(en=>eu.Any.fromPartial(en))||[],ei}},ei.SimulationResponse={encode:(en,eo=em.Writer.create())=>(void 0!==en.gasInfo&&ei.GasInfo.encode(en.gasInfo,eo.uint32(10).fork()).ldelim(),void 0!==en.result&&ei.Result.encode(en.result,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSimulationResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.gasInfo=ei.GasInfo.decode(ea,ea.uint32());break;case 2:ed.result=ei.Result.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({gasInfo:(0,ep.isSet)(en.gasInfo)?ei.GasInfo.fromJSON(en.gasInfo):void 0,result:(0,ep.isSet)(en.result)?ei.Result.fromJSON(en.result):void 0}),toJSON(en){let eo={};return void 0!==en.gasInfo&&(eo.gasInfo=en.gasInfo?ei.GasInfo.toJSON(en.gasInfo):void 0),void 0!==en.result&&(eo.result=en.result?ei.Result.toJSON(en.result):void 0),eo},fromPartial(en){let eo=createBaseSimulationResponse();return eo.gasInfo=void 0!==en.gasInfo&&null!==en.gasInfo?ei.GasInfo.fromPartial(en.gasInfo):void 0,eo.result=void 0!==en.result&&null!==en.result?ei.Result.fromPartial(en.result):void 0,eo}},ei.MsgData={encode:(en,ei=em.Writer.create())=>(""!==en.msgType&&ei.uint32(10).string(en.msgType),0!==en.data.length&&ei.uint32(18).bytes(en.data),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgData();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.msgType=eo.string();break;case 2:es.data=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({msgType:(0,ep.isSet)(en.msgType)?String(en.msgType):"",data:(0,ep.isSet)(en.data)?(0,ep.bytesFromBase64)(en.data):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.msgType&&(ei.msgType=en.msgType),void 0!==en.data&&(ei.data=(0,ep.base64FromBytes)(void 0!==en.data?en.data:new Uint8Array)),ei},fromPartial(en){let ei=createBaseMsgData();return ei.msgType=en.msgType??"",ei.data=en.data??new Uint8Array,ei}},ei.TxMsgData={encode(en,eo=em.Writer.create()){for(let ea of en.data)ei.MsgData.encode(ea,eo.uint32(10).fork()).ldelim();for(let ei of en.msgResponses)eu.Any.encode(ei,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseTxMsgData();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.data.push(ei.MsgData.decode(ea,ea.uint32()));break;case 2:ed.msgResponses.push(eu.Any.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({data:Array.isArray(en?.data)?en.data.map(en=>ei.MsgData.fromJSON(en)):[],msgResponses:Array.isArray(en?.msgResponses)?en.msgResponses.map(en=>eu.Any.fromJSON(en)):[]}),toJSON(en){let eo={};return en.data?eo.data=en.data.map(en=>en?ei.MsgData.toJSON(en):void 0):eo.data=[],en.msgResponses?eo.msgResponses=en.msgResponses.map(en=>en?eu.Any.toJSON(en):void 0):eo.msgResponses=[],eo},fromPartial(en){let eo=createBaseTxMsgData();return eo.data=en.data?.map(en=>ei.MsgData.fromPartial(en))||[],eo.msgResponses=en.msgResponses?.map(en=>eu.Any.fromPartial(en))||[],eo}},ei.SearchTxsResult={encode(en,eo=em.Writer.create()){for(let ea of(en.totalCount.isZero()||eo.uint32(8).uint64(en.totalCount),en.count.isZero()||eo.uint32(16).uint64(en.count),en.pageNumber.isZero()||eo.uint32(24).uint64(en.pageNumber),en.pageTotal.isZero()||eo.uint32(32).uint64(en.pageTotal),en.limit.isZero()||eo.uint32(40).uint64(en.limit),en.txs))ei.TxResponse.encode(ea,eo.uint32(50).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSearchTxsResult();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.totalCount=ea.uint64();break;case 2:ed.count=ea.uint64();break;case 3:ed.pageNumber=ea.uint64();break;case 4:ed.pageTotal=ea.uint64();break;case 5:ed.limit=ea.uint64();break;case 6:ed.txs.push(ei.TxResponse.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({totalCount:(0,ep.isSet)(en.totalCount)?ep.Long.fromValue(en.totalCount):ep.Long.UZERO,count:(0,ep.isSet)(en.count)?ep.Long.fromValue(en.count):ep.Long.UZERO,pageNumber:(0,ep.isSet)(en.pageNumber)?ep.Long.fromValue(en.pageNumber):ep.Long.UZERO,pageTotal:(0,ep.isSet)(en.pageTotal)?ep.Long.fromValue(en.pageTotal):ep.Long.UZERO,limit:(0,ep.isSet)(en.limit)?ep.Long.fromValue(en.limit):ep.Long.UZERO,txs:Array.isArray(en?.txs)?en.txs.map(en=>ei.TxResponse.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.totalCount&&(eo.totalCount=(en.totalCount||ep.Long.UZERO).toString()),void 0!==en.count&&(eo.count=(en.count||ep.Long.UZERO).toString()),void 0!==en.pageNumber&&(eo.pageNumber=(en.pageNumber||ep.Long.UZERO).toString()),void 0!==en.pageTotal&&(eo.pageTotal=(en.pageTotal||ep.Long.UZERO).toString()),void 0!==en.limit&&(eo.limit=(en.limit||ep.Long.UZERO).toString()),en.txs?eo.txs=en.txs.map(en=>en?ei.TxResponse.toJSON(en):void 0):eo.txs=[],eo},fromPartial(en){let eo=createBaseSearchTxsResult();return eo.totalCount=void 0!==en.totalCount&&null!==en.totalCount?ep.Long.fromValue(en.totalCount):ep.Long.UZERO,eo.count=void 0!==en.count&&null!==en.count?ep.Long.fromValue(en.count):ep.Long.UZERO,eo.pageNumber=void 0!==en.pageNumber&&null!==en.pageNumber?ep.Long.fromValue(en.pageNumber):ep.Long.UZERO,eo.pageTotal=void 0!==en.pageTotal&&null!==en.pageTotal?ep.Long.fromValue(en.pageTotal):ep.Long.UZERO,eo.limit=void 0!==en.limit&&null!==en.limit?ep.Long.fromValue(en.limit):ep.Long.UZERO,eo.txs=en.txs?.map(en=>ei.TxResponse.fromPartial(en))||[],eo}}},79551:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.PageResponse=ei.PageRequest=ei.protobufPackage=void 0;let eu=eo(81457),ef=ed(eo(83789));function createBasePageRequest(){return{key:new Uint8Array,offset:eu.Long.UZERO,limit:eu.Long.UZERO,countTotal:!1,reverse:!1}}function createBasePageResponse(){return{nextKey:new Uint8Array,total:eu.
4Long.UZERO}}ei.protobufPackage="cosmos.base.query.v1beta1",ei.PageRequest={encode:(en,ei=ef.Writer.create())=>(0!==en.key.length&&ei.uint32(10).bytes(en.key),en.offset.isZero()||ei.uint32(16).uint64(en.offset),en.limit.isZero()||ei.uint32(24).uint64(en.limit),!0===en.countTotal&&ei.uint32(32).bool(en.countTotal),!0===en.reverse&&ei.uint32(40).bool(en.reverse),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePageRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.bytes();break;case 2:es.offset=eo.uint64();break;case 3:es.limit=eo.uint64();break;case 4:es.countTotal=eo.bool();break;case 5:es.reverse=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:(0,eu.isSet)(en.key)?(0,eu.bytesFromBase64)(en.key):new Uint8Array,offset:(0,eu.isSet)(en.offset)?eu.Long.fromValue(en.offset):eu.Long.UZERO,limit:(0,eu.isSet)(en.limit)?eu.Long.fromValue(en.limit):eu.Long.UZERO,countTotal:!!(0,eu.isSet)(en.countTotal)&&!!en.countTotal,reverse:!!(0,eu.isSet)(en.reverse)&&!!en.reverse}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=(0,eu.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.offset&&(ei.offset=(en.offset||eu.Long.UZERO).toString()),void 0!==en.limit&&(ei.limit=(en.limit||eu.Long.UZERO).toString()),void 0!==en.countTotal&&(ei.countTotal=en.countTotal),void 0!==en.reverse&&(ei.reverse=en.reverse),ei},fromPartial(en){let ei=createBasePageRequest();return ei.key=en.key??new Uint8Array,ei.offset=void 0!==en.offset&&null!==en.offset?eu.Long.fromValue(en.offset):eu.Long.UZERO,ei.limit=void 0!==en.limit&&null!==en.limit?eu.Long.fromValue(en.limit):eu.Long.UZERO,ei.countTotal=en.countTotal??!1,ei.reverse=en.reverse??!1,ei}},ei.PageResponse={encode:(en,ei=ef.Writer.create())=>(0!==en.nextKey.length&&ei.uint32(10).bytes(en.nextKey),en.total.isZero()||ei.uint32(16).uint64(en.total),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePageResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.nextKey=eo.bytes();break;case 2:es.total=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({nextKey:(0,eu.isSet)(en.nextKey)?(0,eu.bytesFromBase64)(en.nextKey):new Uint8Array,total:(0,eu.isSet)(en.total)?eu.Long.fromValue(en.total):eu.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.nextKey&&(ei.nextKey=(0,eu.base64FromBytes)(void 0!==en.nextKey?en.nextKey:new Uint8Array)),void 0!==en.total&&(ei.total=(en.total||eu.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBasePageResponse();return ei.nextKey=en.nextKey??new Uint8Array,ei.total=void 0!==en.total&&null!==en.total?eu.Long.fromValue(en.total):eu.Long.UZERO,ei}}},10891:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.DecProto=ei.IntProto=ei.DecCoin=ei.Coin=ei.protobufPackage=void 0;let eu=ed(eo(83789)),ef=eo(81457);function createBaseCoin(){return{denom:"",amount:""}}function createBaseDecCoin(){return{denom:"",amount:""}}function createBaseIntProto(){return{int:""}}function createBaseDecProto(){return{dec:""}}ei.protobufPackage="cosmos.base.v1beta1",ei.Coin={encode:(en,ei=eu.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),""!==en.amount&&ei.uint32(18).string(en.amount),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCoin();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.amount=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:(0,ef.isSet)(en.denom)?String(en.denom):"",amount:(0,ef.isSet)(en.amount)?String(en.amount):""}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.amount&&(ei.amount=en.amount),ei},fromPartial(en){let ei=createBaseCoin();return ei.denom=en.denom??"",ei.amount=en.amount??"",ei}},ei.DecCoin={encode:(en,ei=eu.Writer.create())=>(""!==en.denom&&ei.uint32(10).string(en.denom),""!==en.amount&&ei.uint32(18).string(en.amount),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDecCoin();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denom=eo.string();break;case 2:es.amount=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denom:(0,ef.isSet)(en.denom)?String(en.denom):"",amount:(0,ef.isSet)(en.amount)?String(en.amount):""}),toJSON(en){let ei={};return void 0!==en.denom&&(ei.denom=en.denom),void 0!==en.amount&&(ei.amount=en.amount),ei},fromPartial(en){let ei=createBaseDecCoin();return ei.denom=en.denom??"",ei.amount=en.amount??"",ei}},ei.IntProto={encode:(en,ei=eu.Writer.create())=>(""!==en.int&&ei.uint32(10).string(en.int),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseIntProto();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.int=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({int:(0,ef.isSet)(en.int)?String(en.int):""}),toJSON(en){let ei={};return void 0!==en.int&&(ei.int=en.int),ei},fromPartial(en){let ei=createBaseIntProto();return ei.int=en.int??"",ei}},ei.DecProto={encode:(en,ei=eu.Writer.create())=>(""!==en.dec&&ei.uint32(10).string(en.dec),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDecProto();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.dec=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({dec:(0,ef.isSet)(en.dec)?String(en.dec):""}),toJSON(en){let ei={};return void 0!==en.dec&&(ei.dec=en.dec),ei},fromPartial(en){let ei=createBaseDecProto();return ei.dec=en.dec??"",ei}}},48973:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.PrivKey=ei.PubKey=ei.protobufPackage=void 0;let eu=ed(eo(83789)),ef=eo(81457);function createBasePubKey(){return{key:new Uint8Array}}function createBasePrivKey(){return{key:new Uint8Array}}ei.protobufPackage="cosmos.crypto.ed25519",ei.PubKey={encode:(en,ei=eu.Writer.create())=>(0!==en.key.length&&ei.uint32(10).bytes(en.key),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePubKey();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.key=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({key:(0,ef.isSet)(en.key)?(0,ef.bytesFromBase64)(en.key):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=(0,ef.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),ei},fromPartial(en){let ei=createBasePubKey();return ei.key=en.key??new Uint8Array,ei}},ei.PrivKey={encode:(en,ei=eu.Writer.create())=>(0!==en.key.length&&ei.uint32(10).bytes(en.key),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePrivKey();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.key=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({key:(0,ef.isSet)(en.key)?(0,ef.bytesFromBase64)(en.key):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=(0,ef.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),ei},fromPartial(en){let ei=createBasePrivKey();return ei.key=en.key??new Uint8Array,ei}}},40479:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.LegacyAminoPubKey=ei.protobufPackage=void 0;let eu=eo(53862),ef=ed(eo(83789)),ep=eo(81457);function createBaseLegacyAminoPubKey(){return{threshold:0,publicKeys:[]}}ei.protobufPackage="cosmos.crypto.multisig",ei.LegacyAminoPubKey={encode(en,ei=ef.Writer.create()){for(let eo of(0!==e
4n.threshold&&ei.uint32(8).uint32(en.threshold),en.publicKeys))eu.Any.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLegacyAminoPubKey();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.threshold=eo.uint32();break;case 2:es.publicKeys.push(eu.Any.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({threshold:(0,ep.isSet)(en.threshold)?Number(en.threshold):0,publicKeys:Array.isArray(en?.publicKeys)?en.publicKeys.map(en=>eu.Any.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.threshold&&(ei.threshold=Math.round(en.threshold)),en.publicKeys?ei.publicKeys=en.publicKeys.map(en=>en?eu.Any.toJSON(en):void 0):ei.publicKeys=[],ei},fromPartial(en){let ei=createBaseLegacyAminoPubKey();return ei.threshold=en.threshold??0,ei.publicKeys=en.publicKeys?.map(en=>eu.Any.fromPartial(en))||[],ei}}},77381:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.CompactBitArray=ei.MultiSignature=ei.protobufPackage=void 0;let eu=ed(eo(83789)),ef=eo(81457);function createBaseMultiSignature(){return{signatures:[]}}function createBaseCompactBitArray(){return{extraBitsStored:0,elems:new Uint8Array}}ei.protobufPackage="cosmos.crypto.multisig.v1beta1",ei.MultiSignature={encode(en,ei=eu.Writer.create()){for(let eo of en.signatures)ei.uint32(10).bytes(eo);return ei},decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMultiSignature();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.signatures.push(eo.bytes()):eo.skipType(7&en)}return es},fromJSON:en=>({signatures:Array.isArray(en?.signatures)?en.signatures.map(en=>(0,ef.bytesFromBase64)(en)):[]}),toJSON(en){let ei={};return en.signatures?ei.signatures=en.signatures.map(en=>(0,ef.base64FromBytes)(void 0!==en?en:new Uint8Array)):ei.signatures=[],ei},fromPartial(en){let ei=createBaseMultiSignature();return ei.signatures=en.signatures?.map(en=>en)||[],ei}},ei.CompactBitArray={encode:(en,ei=eu.Writer.create())=>(0!==en.extraBitsStored&&ei.uint32(8).uint32(en.extraBitsStored),0!==en.elems.length&&ei.uint32(18).bytes(en.elems),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCompactBitArray();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.extraBitsStored=eo.uint32();break;case 2:es.elems=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({extraBitsStored:(0,ef.isSet)(en.extraBitsStored)?Number(en.extraBitsStored):0,elems:(0,ef.isSet)(en.elems)?(0,ef.bytesFromBase64)(en.elems):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.extraBitsStored&&(ei.extraBitsStored=Math.round(en.extraBitsStored)),void 0!==en.elems&&(ei.elems=(0,ef.base64FromBytes)(void 0!==en.elems?en.elems:new Uint8Array)),ei},fromPartial(en){let ei=createBaseCompactBitArray();return ei.extraBitsStored=en.extraBitsStored??0,ei.elems=en.elems??new Uint8Array,ei}}},47228:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.PrivKey=ei.PubKey=ei.protobufPackage=void 0;let eu=ed(eo(83789)),ef=eo(81457);function createBasePubKey(){return{key:new Uint8Array}}function createBasePrivKey(){return{key:new Uint8Array}}ei.protobufPackage="cosmos.crypto.secp256k1",ei.PubKey={encode:(en,ei=eu.Writer.create())=>(0!==en.key.length&&ei.uint32(10).bytes(en.key),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePubKey();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.key=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({key:(0,ef.isSet)(en.key)?(0,ef.bytesFromBase64)(en.key):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=(0,ef.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),ei},fromPartial(en){let ei=createBasePubKey();return ei.key=en.key??new Uint8Array,ei}},ei.PrivKey={encode:(en,ei=eu.Writer.create())=>(0!==en.key.length&&ei.uint32(10).bytes(en.key),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePrivKey();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.key=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({key:(0,ef.isSet)(en.key)?(0,ef.bytesFromBase64)(en.key):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=(0,ef.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),ei},fromPartial(en){let ei=createBasePrivKey();return ei.key=en.key??new Uint8Array,ei}}},51790:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.CommunityPoolSpendProposalWithDeposit=ei.DelegationDelegatorReward=ei.DelegatorStartingInfo=ei.CommunityPoolSpendProposal=ei.FeePool=ei.ValidatorSlashEvents=ei.ValidatorSlashEvent=ei.ValidatorOutstandingRewards=ei.ValidatorAccumulatedCommission=ei.ValidatorCurrentRewards=ei.ValidatorHistoricalRewards=ei.Params=ei.protobufPackage=void 0;let eu=eo(10891),ef=eo(81457),ep=ed(eo(83789));function createBaseParams(){return{communityTax:"",baseProposerReward:"",bonusProposerReward:"",withdrawAddrEnabled:!1}}function createBaseValidatorHistoricalRewards(){return{cumulativeRewardRatio:[],referenceCount:0}}function createBaseValidatorCurrentRewards(){return{rewards:[],peri
4od:ef.Long.UZERO}}function createBaseValidatorAccumulatedCommission(){return{commission:[]}}function createBaseValidatorOutstandingRewards(){return{rewards:[]}}function createBaseValidatorSlashEvent(){return{validatorPeriod:ef.Long.UZERO,fraction:""}}function createBaseValidatorSlashEvents(){return{validatorSlashEvents:[]}}function createBaseFeePool(){return{communityPool:[]}}function createBaseCommunityPoolSpendProposal(){return{title:"",description:"",recipient:"",amount:[]}}function createBaseDelegatorStartingInfo(){return{previousPeriod:ef.Long.UZERO,stake:"",height:ef.Long.UZERO}}function createBaseDelegationDelegatorReward(){return{validatorAddress:"",reward:[]}}function createBaseCommunityPoolSpendProposalWithDeposit(){return{title:"",description:"",recipient:"",amount:"",deposit:""}}ei.protobufPackage="cosmos.distribution.v1beta1",ei.Params={encode:(en,ei=ep.Writer.create())=>(""!==en.communityTax&&ei.uint32(10).string(en.communityTax),""!==en.baseProposerReward&&ei.uint32(18).string(en.baseProposerReward),""!==en.bonusProposerReward&&ei.uint32(26).string(en.bonusProposerReward),!0===en.withdrawAddrEnabled&&ei.uint32(32).bool(en.withdrawAddrEnabled),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.communityTax=eo.string();break;case 2:es.baseProposerReward=eo.string();break;case 3:es.bonusProposerReward=eo.string();break;case 4:es.withdrawAddrEnabled=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({communityTax:(0,ef.isSet)(en.communityTax)?String(en.communityTax):"",baseProposerReward:(0,ef.isSet)(en.baseProposerReward)?String(en.baseProposerReward):"",bonusProposerReward:(0,ef.isSet)(en.bonusProposerReward)?String(en.bonusProposerReward):"",withdrawAddrEnabled:!!(0,ef.isSet)(en.withdrawAddrEnabled)&&!!en.withdrawAddrEnabled}),toJSON(en){let ei={};return void 0!==en.communityTax&&(ei.communityTax=en.communityTax),void 0!==en.baseProposerReward&&(ei.baseProposerReward=en.baseProposerReward),void 0!==en.bonusProposerReward&&(ei.bonusProposerReward=en.bonusProposerReward),void 0!==en.withdrawAddrEnabled&&(ei.withdrawAddrEnabled=en.withdrawAddrEnabled),ei},fromPartial(en){let ei=createBaseParams();return ei.communityTax=en.communityTax??"",ei.baseProposerReward=en.baseProposerReward??"",ei.bonusProposerReward=en.bonusProposerReward??"",ei.withdrawAddrEnabled=en.withdrawAddrEnabled??!1,ei}},ei.ValidatorHistoricalRewards={encode(en,ei=ep.Writer.create()){for(let eo of en.cumulativeRewardRatio)eu.DecCoin.encode(eo,ei.uint32(10).fork()).ldelim();return 0!==en.referenceCount&&ei.uint32(16).uint32(en.referenceCount),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorHistoricalRewards();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.cumulativeRewardRatio.push(eu.DecCoin.decode(eo,eo.uint32()));break;case 2:es.referenceCount=eo.uint32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({cumulativeRewardRatio:Array.isArray(en?.cumulativeRewardRatio)?en.cumulativeRewardRatio.map(en=>eu.DecCoin.fromJSON(en)):[],referenceCount:(0,ef.isSet)(en.referenceCount)?Number(en.referenceCount):0}),toJSON(en){let ei={};return en.cumulativeRewardRatio?ei.cumulativeRewardRatio=en.cumulativeRewardRatio.map(en=>en?eu.DecCoin.toJSON(en):void 0):ei.cumulativeRewardRatio=[],void 0!==en.referenceCount&&(ei.referenceCount=Math.round(en.referenceCount)),ei},fromPartial(en){let ei=createBaseValidatorHistoricalRewards();return ei.cumulativeRewardRatio=en.cumulativeRewardRatio?.map(en=>eu.DecCoin.fromPartial(en))||[],ei.referenceCount=en.referenceCount??0,ei}},ei.ValidatorCurrentRewards={encode(en,ei=ep.Writer.create()){for(let eo of en.rewards)eu.DecCoin.encode(eo,ei.uint32(10).fork()).ldelim();return en.period.isZero()||ei.uint32(16).uint64(en.period),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorCurrentRewards();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.rewards.push(eu.DecCoin.decode(eo,eo.uint32()));break;case 2:es.period=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({rewards:Array.isArray(en?.rewards)?en.rewards.map(en=>
4eu.DecCoin.fromJSON(en)):[],period:(0,ef.isSet)(en.period)?ef.Long.fromValue(en.period):ef.Long.UZERO}),toJSON(en){let ei={};return en.rewards?ei.rewards=en.rewards.map(en=>en?eu.DecCoin.toJSON(en):void 0):ei.rewards=[],void 0!==en.period&&(ei.period=(en.period||ef.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseValidatorCurrentRewards();return ei.rewards=en.rewards?.map(en=>eu.DecCoin.fromPartial(en))||[],ei.period=void 0!==en.period&&null!==en.period?ef.Long.fromValue(en.period):ef.Long.UZERO,ei}},ei.ValidatorAccumulatedCommission={encode(en,ei=ep.Writer.create()){for(let eo of en.commission)eu.DecCoin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorAccumulatedCommission();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.commission.push(eu.DecCoin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({commission:Array.isArray(en?.commission)?en.commission.map(en=>eu.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.commission?ei.commission=en.commission.map(en=>en?eu.DecCoin.toJSON(en):void 0):ei.commission=[],ei},fromPartial(en){let ei=createBaseValidatorAccumulatedCommission();return ei.commission=en.commission?.map(en=>eu.DecCoin.fromPartial(en))||[],ei}},ei.ValidatorOutstandingRewards={encode(en,ei=ep.Writer.create()){for(let eo of en.rewards)eu.DecCoin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorOutstandingRewards();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.rewards.push(eu.DecCoin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({rewards:Array.isArray(en?.rewards)?en.rewards.map(en=>eu.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.rewards?ei.rewards=en.rewards.map(en=>en?eu.DecCoin.toJSON(en):void 0):ei.rewards=[],ei},fromPartial(en){let ei=createBaseValidatorOutstandingRewards();return ei.rewards=en.rewards?.map(en=>eu.DecCoin.fromPartial(en))||[],ei}},ei.ValidatorSlashEvent={encode:(en,ei=ep.Writer.create())=>(en.validatorPeriod.isZero()||ei.uint32(8).uint64(en.validatorPeriod),""!==en.fraction&&ei.uint32(18).string(en.fraction),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorSlashEvent();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validatorPeriod=eo.uint64();break;case 2:es.fraction=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({validatorPeriod:(0,ef.isSet)(en.validatorPeriod)?ef.Long.fromValue(en.validatorPeriod):ef.Long.UZERO,fraction:(0,ef.isSet)(en.fraction)?String(en.fraction):""}),toJSON(en){let ei={};return void 0!==en.validatorPeriod&&(ei.validatorPeriod=(en.validatorPeriod||ef.Long.UZERO).toString()),void 0!==en.fraction&&(ei.fraction=en.fraction),ei},fromPartial(en){let ei=createBaseValidatorSlashEvent();return ei.validatorPeriod=void 0!==en.validatorPeriod&&null!==en.validatorPeriod?ef.Long.fromValue(en.validatorPeriod):ef.Long.UZERO,ei.fraction=en.fraction??"",ei}},ei.ValidatorSlashEvents={encode(en,eo=ep.Writer.create()){for(let ea of en.validatorSlashEvents)ei.ValidatorSlashEvent.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseValidatorSlashEvents();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.validatorSlashEvents.push(ei.ValidatorSlashEvent.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({validatorSlashEvents:Array.isArray(en?.validatorSlashEvents)?en.validatorSlashEvents.map(en=>ei.ValidatorSlashEvent.fromJSON(en)):[]}),toJSON(en){let eo={};return en.validatorSlashEvents?eo.validatorSlashEvents=en.validatorSlashEvents.map(en=>en?ei.ValidatorSlashEvent.toJSON(en):void 0):eo.validatorSlashEvents=[],eo},fromPartial(en){let eo=createBaseValidatorSlashEvents();return eo.validatorSlashEvents=en.validatorSlashEvents?.map(en=>ei.ValidatorSlashEvent.fromPartial(en))||[],eo}},ei.FeePool={encode(en,ei=ep.Writer.create()){for(let eo of en.communityPool)eu.DecCoin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseFeePool();for(;eo.pos<ea;){let en=eo.uint32();en>>>
43==1?es.communityPool.push(eu.DecCoin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({communityPool:Array.isArray(en?.communityPool)?en.communityPool.map(en=>eu.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.communityPool?ei.communityPool=en.communityPool.map(en=>en?eu.DecCoin.toJSON(en):void 0):ei.communityPool=[],ei},fromPartial(en){let ei=createBaseFeePool();return ei.communityPool=en.communityPool?.map(en=>eu.DecCoin.fromPartial(en))||[],ei}},ei.CommunityPoolSpendProposal={encode(en,ei=ep.Writer.create()){for(let eo of(""!==en.title&&ei.uint32(10).string(en.title),""!==en.description&&ei.uint32(18).string(en.description),""!==en.recipient&&ei.uint32(26).string(en.recipient),en.amount))eu.Coin.encode(eo,ei.uint32(34).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommunityPoolSpendProposal();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.title=eo.string();break;case 2:es.description=eo.string();break;case 3:es.recipient=eo.string();break;case 4:es.amount.push(eu.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({title:(0,ef.isSet)(en.title)?String(en.title):"",description:(0,ef.isSet)(en.description)?String(en.description):"",recipient:(0,ef.isSet)(en.recipient)?String(en.recipient):"",amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.title&&(ei.title=en.title),void 0!==en.description&&(ei.description=en.description),void 0!==en.recipient&&(ei.recipient=en.recipient),en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseCommunityPoolSpendProposal();return ei.title=en.title??"",ei.description=en.description??"",ei.recipient=en.recipient??"",ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.DelegatorStartingInfo={encode:(en,ei=ep.Writer.create())=>(en.previousPeriod.isZero()||ei.uint32(8).uint64(en.previousPeriod),""!==en.stake&&ei.uint32(18).string(en.stake),en.height.isZero()||ei.uint32(24).uint64(en.height),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDelegatorStartingInfo();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.previousPeriod=eo.uint64();break;case 2:es.stake=eo.string();break;case 3:es.height=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({previousPeriod:(0,ef.isSet)(en.previousPeriod)?ef.Long.fromValue(en.previousPeriod):ef.Long.UZERO,stake:(0,ef.isSet)(en.stake)?String(en.stake):"",height:(0,ef.isSet)(en.height)?ef.Long.fromValue(en.height):ef.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.previousPeriod&&(ei.previousPeriod=(en.previousPeriod||ef.Long.UZERO).toString()),void 0!==en.stake&&(ei.stake=en.stake),void 0!==en.height&&(ei.height=(en.height||ef.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseDelegatorStartingInfo();return ei.previousPeriod=void 0!==en.previousPeriod&&null!==en.previousPeriod?ef.Long.fromValue(en.previousPeriod):ef.Long.UZERO,ei.stake=en.stake??"",ei.height=void 0!==en.height&&null!==en.height?ef.Long.fromValue(en.height):ef.Long.UZERO,ei}},ei.DelegationDelegatorReward={encode(en,ei=ep.Writer.create()){for(let eo of(""!==en.validatorAddress&&ei.uint32(10).string(en.validatorAddress),en.reward))eu.DecCoin.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDelegationDelegatorReward();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validatorAddress=eo.string();break;case 2:es.reward.push(eu.DecCoin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({validatorAddress:(0,ef.isSet)(en.validatorAddress)?String(en.validatorAddress):"",reward:Array.isArray(en?.reward)?en.reward.map(en=>eu.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),en.reward?ei.reward=en.reward.map(en=>en?eu.DecCoin.toJSON(en):void 0):ei.reward=[],ei},fromPartial(en){let ei=createBaseDelegationDelegatorReward();return ei.validatorAddress=en.validatorAddress??"",ei.reward=en.reward?.map(en=>eu.DecCoin.fromPartial(en))||[],ei}},ei.CommunityPoolSpendProposalWithDeposit={encode:(en,ei=ep.Writer.create())=>(""!==en.title&&ei.uint32(10).string(en.title),""!==en.description&&ei.uint32(18).string(en.description),""!==en.recipient&&ei.uint32(26).string(en.recipient),""!==en.amount&&ei.uint32(34).string(en.amount),""!==en.deposit&&ei.uint32(42).string(en.deposit),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommunityPoolSpendProposalWithDeposit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.title=eo.string();break;case 2:es.description=eo.string();break;case 3:es.recipient=eo.string();break;case 4:es.amount=eo.string();break;case 5:es.deposit=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({title:(0,ef.isSet)(en.title)?String(en.title):"",description:(0,ef.isSet)(en.description)?String(en.description):"",recipient:(0,ef.isSet)(en.recipient)?String(en.recipient):"",amount:(0,ef.isSet)(en.amount)?String(en.amount):"",deposit:(0,ef.isSet)(en.deposit)?String(en.deposit):""}),toJSON(en){let ei={};return void 0!==en.title&&(ei.title=en.title),void 0!==en.description&&(ei.description=en.description),void 0!==en.recipient&&(ei.recipient=en.recipient),void 0!==en.amount&&(ei.amount=en.amount),void 0!==en.deposit&&(ei.deposit=en.deposit),ei},fromPartial(en){let ei=createBaseCommunityPoolSpendProposalWithDeposit();return ei.title=en.title??"",ei.description=en.description??"",ei.recipient=en.recipient??"",ei.amount=en.amount??"",ei.deposit=en.deposit??"",ei}}},76208:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryCommunityPoolResponse=ei.QueryCommunityPoolRequest=ei.QueryDelegatorWithdrawAddressResponse=ei.QueryDelegatorWithdrawAddressRequest=ei.QueryDelegatorValidatorsResponse=ei.QueryDelegatorValidatorsRequest=ei.QueryDelegationTotalRewardsResponse=ei.QueryDelegationTotalRewardsRequest=ei.QueryDelegationRewardsResponse=ei.QueryDelegationRewardsRequest=ei.QueryValidatorSlashesResponse=ei.QueryValidatorSlashesRequest=ei.QueryValidatorCommissionResponse=ei.QueryValidatorCommissionRequest=ei.QueryValidatorOutstandingRewardsResponse=ei.QueryValidatorOutstandingRewardsRequest=ei.QueryValidatorDistributionInfoResponse=ei.QueryValidatorDistributionInfoRequest=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(51790),ep=eo(10891),em=eo(81457),eg=ed(eo(83789));function createBaseQueryParamsRequest(){return{}}function createBaseQueryParamsResponse(){return{params:void 0}}function createBaseQueryValidatorDistributionInfoRequest(){return{validatorAddress:""}}function createBaseQueryValidatorDistributionInfoResponse(){return{operatorAddress:"",selfBondRewards:[],commission:[]}}function createBaseQueryValidatorOutstandingRewardsRequest(){return{validatorAddress:""}}function createBaseQueryValidatorOutstandingRewardsResponse(){return{rewards:void 0}}function createBaseQueryValidatorCommissionRequest(){return{validatorAddress:""}}function createBaseQueryValidatorCommissionResponse(){return{commission:void 0}}function createBaseQueryValidatorSlashesRequest(){return{validatorAddress:"",startingHeight:em.Long.UZERO,endingHeight:em.Long.UZERO,pagination:void 0}}function createBaseQueryValidatorSlashesResponse(){return{slashes:[],pagination:void 0}}function createBaseQueryDelegationRewardsRequest(){return{delegatorAddress:"",validatorAddress:""}}function createBaseQueryDelegationRewardsResponse(){return{rewards:[]}}function createBaseQueryDelegationTotalRewardsRequest(){return{delegatorAddress:""}}function createBaseQueryDelegationTotalRewardsResponse(){return{rewards:[],total:[]}}function createBaseQueryDelegatorValidatorsRequest(){return{delegatorAddress:""}}function createBaseQueryDelegatorValidatorsResponse(){return{validators:[]}}function createBaseQueryDelegatorWithdrawAddressRequest(){return{delegatorAddress:""}}function createBaseQueryDelegatorWithdrawAddressResponse(){return{withdrawAddress:""}}
4function createBaseQueryCommunityPoolRequest(){return{}}function createBaseQueryCommunityPoolResponse(){return{pool:[]}}ei.protobufPackage="cosmos.distribution.v1beta1",ei.QueryParamsRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei}},ei.QueryParamsResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.params&&ef.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.params=ef.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,em.isSet)(en.params)?ef.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ef.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ef.Params.fromPartial(en.params):void 0,ei}},ei.QueryValidatorDistributionInfoRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.validatorAddress&&ei.uint32(10).string(en.validatorAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorDistributionInfoRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validatorAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({validatorAddress:(0,em.isSet)(en.validatorAddress)?String(en.validatorAddress):""}),toJSON(en){let ei={};return void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),ei},fromPartial(en){let ei=createBaseQueryValidatorDistributionInfoRequest();return ei.validatorAddress=en.validatorAddress??"",ei}},ei.QueryValidatorDistributionInfoResponse={encode(en,ei=eg.Writer.create()){for(let eo of(""!==en.operatorAddress&&ei.uint32(10).string(en.operatorAddress),en.selfBondRewards))ep.DecCoin.encode(eo,ei.uint32(18).fork()).ldelim();for(let eo of en.commission)ep.DecCoin.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorDistributionInfoResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.operatorAddress=eo.string();break;case 2:es.selfBondRewards.push(ep.DecCoin.decode(eo,eo.uint32()));break;case 3:es.commission.push(ep.DecCoin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({operatorAddress:(0,em.isSet)(en.operatorAddress)?String(en.operatorAddress):"",selfBondRewards:Array.isArray(en?.selfBondRewards)?en.selfBondRewards.map(en=>ep.DecCoin.fromJSON(en)):[],commission:Array.isArray(en?.commission)?en.commission.map(en=>ep.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.operatorAddress&&(ei.operatorAddress=en.operatorAddress),en.selfBondRewards?ei.selfBondRewards=en.selfBondRewards.map(en=>en?ep.DecCoin.toJSON(en):void 0):ei.selfBondRewards=[],en.commission?ei.commission=en.commission.map(en=>en?ep.DecCoin.toJSON(en):void 0):ei.commission=[],ei},fromPartial(en){let ei=createBaseQueryValidatorDistributionInfoResponse();return ei.operatorAddress=en.operatorAddress??"",ei.selfBondRewards=en.selfBondRewards?.map(en=>ep.DecCoin.fromPartial(en))||[],ei.commission=en.commission?.map(en=>ep.DecCoin.fromPartial(en))||[],ei}},ei.QueryValidatorOutstandingRewardsRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.validatorAddress&&ei.uint32(10).string(en.validatorAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorOutstandingRewardsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validatorAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({validatorAddress:(0,em.isSet)(en.validatorAddress)?String(en.validatorAddress):""}),toJSON(en){let ei={};return void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),ei},fromPartial(en){let ei=createBaseQueryValidatorOutstandingRewardsRequest();return ei.validatorAddress=en.validatorAddress??"",ei}},ei.QueryValidatorOutstandingRewardsResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.rewards&&ef.ValidatorOutstandingRewards.encode(en.rewards,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorOutstandingRewardsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.rewards=ef.ValidatorOutstandingRewards.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({rewards:(0,em.isSet)(en.rewards)?ef.ValidatorOutstandingRewards.fromJSON(en.rewards):void 0}),toJSON(en){let ei={};return void 0!==en.rewards&&(ei.rewards=en.rewards?ef.ValidatorOutstandingRewards.toJSON(en.rewards):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorOutstandingRewardsResponse();return ei.rewards=void 0!==en.rewards&&null!==en.rewards?ef.ValidatorOutstandingRewards.fromPartial(en.rewards):void 0,ei}},ei.QueryValidatorCommissionRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.validatorAddress&&ei.uint32(10).string(en.validatorAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorCommissionRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validatorAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({validatorAddress:(0,em.isSet)(en.validatorAddress)?String(en.validatorAddress):""}),toJSON(en){let ei={};return void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),ei},fromPartial(en){let ei=createBaseQueryValidatorCommissionRequest();return ei.validatorAddress=en.validatorAddress??"",ei}},ei.QueryValidatorCommissionResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.commission&&ef.ValidatorAccumulatedCommission.encode(en.commission,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorCommissionResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.commission=ef.ValidatorAccumulatedCommission.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({commission:(0,em.isSet)(en.commission)?ef.ValidatorAccumulatedCommission.fromJSON(en.commission):void 0}),toJSON(en){let ei={};return void 0!==en.commission&&(ei.commission=en.commission?ef.ValidatorAccumulatedCommission.toJSON(en.commission):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorCommissionResponse();return ei.commission=void 0!==en.commission&&null!==en.commission?ef.ValidatorAccumulatedCommission.fromPartial(en.commission):void 0,ei}},ei.QueryValidatorSlashesRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.validatorAddress&&ei.uint32(10).string(en.validatorAddress),en.startingHeight.isZero()||ei.uint32(16).uint64(en.startingHeight),en.endingHeight.isZero()||ei.uint32(24).uint64(en.endingHeight),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorSlashesRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validatorAddress=eo.string();break;case 2:es.startingHeight=eo.uint64();break;case 3:es.endingHeight=eo.uint64();break;case 4:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({validatorAddress:(0,em.isSet)(en.validatorAddress)?String(en.validatorAddress):"",startingHeight:(0,em.isSet)(en.startingHeight)?em.Long.fromValue(en.startingHeight):em.Long.UZERO,endingHeight:(0,em.isSet)(en.endingHeight)?em.Long.fromValue(en.endingHeight):em.Long.UZERO,pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),void 0!==en.startingHeight&&(ei.startingHeight=(en.startingHeight||em.Long.UZERO).toString()),void 0!==en.endingHeight&&(ei.endingHeight=(en.endingHeight||em.Long.UZERO).toString()),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorSlashesRequest();return ei.validatorAddress=en.validatorAddress??"",ei.startingHeight=void 0!==en.startingHeight&&null!==en.startingHeight?em.Long.fromValue(en.startingHeight):em.Long.UZERO,ei.endingHeight=void 0!==en.endingHeight&&null!==en.endingHeight?em.Long.fromValue(en.endingHeight):em.Long.UZERO,ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryValidatorSlashesResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.slashes)ef.ValidatorSlashEvent.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorSlashesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.slashes.push(ef.ValidatorSlashEvent.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({slashes:Array.isArray(en?.slashes)?en.slashes.map(en=>ef.ValidatorSlashEvent.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.slashes?ei.slashes=en.slashes.map(en=>en?ef.ValidatorSlashEvent.toJSON(en):void 0):ei.slashes=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorSlashesResponse();return ei.slashes=en.slashes?.map(en=>ef.ValidatorSlashEvent.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegationRewardsRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegationRewardsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorAddress=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,em.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,em.isSet)(en.validatorAddress)?String(en.validatorAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),ei},fromPartial(en){let ei=createBaseQueryDelegationRewardsRequest();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei}},ei.QueryDelegationRewardsResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.rewards)ep.DecCoin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegationRewardsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.rewards.push(ep.DecCoin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({rewards:Array.isArray(en?.rewards)?en.rewards.map(en=>ep.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.rewards?ei.rewards=en.rewards.map(en=>en?ep.DecCoin.toJSON(en):void 0):ei.rewards=[],ei},fromPartial(en){let ei=createBaseQueryDelegationRewardsResponse();return ei.rewards=en.rewards?.map(en=>ep.DecCoin.fromPartial(en))||[],ei}},ei.QueryDelegationTotalRewardsRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegationTotalRewardsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.delegatorAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({delegatorAddress:(0,em.isSet)(en.delegatorAddress)?String(en.delegatorAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),ei},fromPartial(en){let ei=createBaseQueryDelegationTotalRewardsRequest();return ei.delegatorAddress=en.delegatorAddress??"",ei}},ei.QueryDelegationTotalRewardsResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.rewards)ef.DelegationDelegatorReward.encode(eo,ei.uint32(10).fork()).ldelim();for(let eo of en.total)ep.DecCoin.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegationTotalRewardsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.rewards.push(ef.DelegationDelegatorReward.decode(eo,eo.uint32()));break;case 2:es.total.push(ep.DecCoin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({rewards:Array.isArray(en?.rewards)?en.rewards.map(en=>ef.DelegationDelegatorReward.fromJSON(en)):[],total:Array.isArray(en?.total)?en.total.map(en=>ep.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.rewards?ei.rewards=en.rewards.map(en=>en?ef.DelegationDelegatorReward.toJSON(en):void 0):ei.rewards=[],en.total?ei.total=en.total.map(en=>en?ep.DecCoin.toJSON(en):void 0):ei.total=[],ei},fromPartial(en){let ei=createBaseQueryDelegationTotalRewardsResponse();return ei.rewards=en.rewards?.map(en=>ef.DelegationDelegatorReward.fromPartial(en))||[],ei.total=en.total?.map(en=>ep.DecCoin.fromPartial(en))||[],ei}},ei.QueryDelegatorValidatorsRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorValidatorsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.delegatorAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({delegatorAddress:(0,em.isSet)(en.delegatorAddress)?String(en.delegatorAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),ei},fromPartial(en){let ei=createBaseQueryDelegatorValidatorsRequest();return ei.delegatorAddress=en.delegatorAddress??"",ei}},ei.QueryDelegatorValidatorsResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.validators)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorValidatorsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validators.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>
4({validators:Array.isArray(en?.validators)?en.validators.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.validators?ei.validators=en.validators.map(en=>en):ei.validators=[],ei},fromPartial(en){let ei=createBaseQueryDelegatorValidatorsResponse();return ei.validators=en.validators?.map(en=>en)||[],ei}},ei.QueryDelegatorWithdrawAddressRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorWithdrawAddressRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.delegatorAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({delegatorAddress:(0,em.isSet)(en.delegatorAddress)?String(en.delegatorAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),ei},fromPartial(en){let ei=createBaseQueryDelegatorWithdrawAddressRequest();return ei.delegatorAddress=en.delegatorAddress??"",ei}},ei.QueryDelegatorWithdrawAddressResponse={encode:(en,ei=eg.Writer.create())=>(""!==en.withdrawAddress&&ei.uint32(10).string(en.withdrawAddress),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorWithdrawAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.withdrawAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({withdrawAddress:(0,em.isSet)(en.withdrawAddress)?String(en.withdrawAddress):""}),toJSON(en){let ei={};return void 0!==en.withdrawAddress&&(ei.withdrawAddress=en.withdrawAddress),ei},fromPartial(en){let ei=createBaseQueryDelegatorWithdrawAddressResponse();return ei.withdrawAddress=en.withdrawAddress??"",ei}},ei.QueryCommunityPoolRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryCommunityPoolRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryCommunityPoolRequest();return ei}},ei.QueryCommunityPoolResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.pool)ep.DecCoin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryCommunityPoolResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pool.push(ep.DecCoin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({pool:Array.isArray(en?.pool)?en.pool.map(en=>ep.DecCoin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.pool?ei.pool=en.pool.map(en=>en?ep.DecCoin.toJSON(en):void 0):ei.pool=[],ei},fromPartial(en){let ei=createBaseQueryCommunityPoolResponse();return ei.pool=en.pool?.map(en=>ep.DecCoin.fromPartial(en))||[],ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Params=this.Params.bind(this),this.ValidatorDistributionInfo=this.ValidatorDistributionInfo.bind(this),this.ValidatorOutstandingRewards=this.ValidatorOutstandingRewards.bind(this),this.ValidatorCommission=this.ValidatorCommission.bind(this),this.ValidatorSlashes=this.ValidatorSlashes.bind(this),this.DelegationRewards=this.DelegationRewards.bind(this),this.DelegationTotalRewards=this.DelegationTotalRewards.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorWithdrawAddress=this.DelegatorWithdrawAddress.bind(this),this.CommunityPool=this.CommunityPool.bind(this)}Params(en={}){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new eg.Reader(en)))}ValidatorDistributionInfo(en){let eo=ei.QueryValidatorDistributionInfoRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorDistributionInfo",eo);return ea.then(en=>ei.QueryValidatorDistributionInfoResponse.decode(new eg.Reader(en)))}ValidatorOutstandingRewards(en){let eo=ei.QueryValidatorOutstandingRewardsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorOutstandingRewards",eo);return ea.then(en=>ei.QueryValidatorOutstandingRewardsResponse.decode(new eg.Reader(en)))}ValidatorCommission(en){let eo=ei.QueryValidatorCommissionRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorCommission",eo);return ea.then(en=>ei.QueryValidatorCommissionResponse.decode(new eg.Reader(en)))}ValidatorSlashes(en){let eo=ei.QueryValidatorSlashesRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","ValidatorSlashes",eo);return ea.then(en=>ei.QueryValidatorSlashesResponse.decode(new eg.Reader(en)))}DelegationRewards(en){let eo=ei.QueryDelegationRewardsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationRewards",eo);return ea.then(en=>ei.QueryDelegationRewardsResponse.decode(new eg.Reader(en)))}DelegationTotalRewards(en){let eo=ei.QueryDelegationTotalRewardsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","DelegationTotalRewards",eo);return ea.then(en=>ei.QueryDelegationTotalRewardsResponse.decode(new eg.Reader(en)))}DelegatorValidators(en){let eo=ei.QueryDelegatorValidatorsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorValidators",eo);return ea.then(en=>ei.QueryDelegatorValidatorsResponse.decode(new eg.Reader(en)))}DelegatorWithdrawAddress(en){let eo=ei.QueryDelegatorWithdrawAddressRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","DelegatorWithdrawAddress",eo);return ea.then(en=>ei.QueryDelegatorWithdrawAddressResponse.decode(new eg.Reader(en)))}CommunityPool(en={}){let eo=ei.QueryCommunityPoolRequest.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Query","CommunityPool",eo);return ea.then(en=>ei.QueryCommunityPoolResponse.decode(new eg.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},73773:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}
4),ei.MsgClientImpl=ei.MsgCommunityPoolSpendResponse=ei.MsgCommunityPoolSpend=ei.MsgUpdateParamsResponse=ei.MsgUpdateParams=ei.MsgFundCommunityPoolResponse=ei.MsgFundCommunityPool=ei.MsgWithdrawValidatorCommissionResponse=ei.MsgWithdrawValidatorCommission=ei.MsgWithdrawDelegatorRewardResponse=ei.MsgWithdrawDelegatorReward=ei.MsgSetWithdrawAddressResponse=ei.MsgSetWithdrawAddress=ei.protobufPackage=void 0;let eu=eo(10891),ef=eo(51790),ep=ed(eo(83789)),em=eo(81457);function createBaseMsgSetWithdrawAddress(){return{delegatorAddress:"",withdrawAddress:""}}function createBaseMsgSetWithdrawAddressResponse(){return{}}function createBaseMsgWithdrawDelegatorReward(){return{delegatorAddress:"",validatorAddress:""}}function createBaseMsgWithdrawDelegatorRewardResponse(){return{amount:[]}}function createBaseMsgWithdrawValidatorCommission(){return{validatorAddress:""}}function createBaseMsgWithdrawValidatorCommissionResponse(){return{amount:[]}}function createBaseMsgFundCommunityPool(){return{amount:[],depositor:""}}function createBaseMsgFundCommunityPoolResponse(){return{}}function createBaseMsgUpdateParams(){return{authority:"",params:void 0}}function createBaseMsgUpdateParamsResponse(){return{}}function createBaseMsgCommunityPoolSpend(){return{authority:"",recipient:"",amount:[]}}function createBaseMsgCommunityPoolSpendResponse(){return{}}ei.protobufPackage="cosmos.distribution.v1beta1",ei.MsgSetWithdrawAddress={encode:(en,ei=ep.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.withdrawAddress&&ei.uint32(18).string(en.withdrawAddress),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSetWithdrawAddress();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.withdrawAddress=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,em.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",withdrawAddress:(0,em.isSet)(en.withdrawAddress)?String(en.withdrawAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.withdrawAddress&&(ei.withdrawAddress=en.withdrawAddress),ei},fromPartial(en){let ei=createBaseMsgSetWithdrawAddress();return ei.delegatorAddress=en.delegatorAddress??"",ei.withdrawAddress=en.withdrawAddress??"",ei}},ei.MsgSetWithdrawAddressResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSetWithdrawAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgSetWithdrawAddressResponse();return ei}},ei.MsgWithdrawDelegatorReward={encode:(en,ei=ep.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgWithdrawDelegatorReward();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorAddress=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,em.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,em.isSet)(en.validatorAddress)?String(en.validatorAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),ei},fromPartial(en){let ei=createBaseMsgWithdrawDelegatorReward();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei}},ei.MsgWithdrawDelegatorRewardResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.amount)eu.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgWithdrawDelegatorRewardResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.amount.push(eu.Coin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseMsgWithdrawDelegatorRewardResponse();return ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.MsgWithdrawValidatorCommission={encode:(en,ei=ep.Writer.create())=>(""!==en.validatorAddress&&ei.uint32(10).string(en.validatorAddress),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgWithdrawValidatorCommission();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validatorAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({validatorAddress:(0,em.isSet)(en.validatorAddress)?String(en.validatorAddress):""}),toJSON(en){let ei={};return void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),ei},fromPartial(en){let ei=createBaseMsgWithdrawValidatorCommission();return ei.validatorAddress=en.validatorAddress??"",ei}},ei.MsgWithdrawValidatorCommissionResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.amount)eu.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgWithdrawValidatorCommissionResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.amount.push(eu.Coin.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseMsgWithdrawValidatorCommissionResponse();return ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.MsgFundCommunityPool={encode(en,ei=ep.Writer.create()){for(let eo of en.amount)eu.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return""!==en.depositor&&ei.uint32(18).string(en.depositor),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgFundCommunityPool();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.amount.push(eu.Coin.decode(eo,eo.uint32()));break;case 2:es.depositor=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[],depositor:(0,em.isSet)(en.depositor)?String(en.depositor):""}),toJSON(en){let ei={};return en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],void 0!==en.depositor&&(ei.depositor=en.depositor),ei},fromPartial(en){let ei=createBaseMsgFundCommunityPool();return ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei.depositor=en.depositor??"",ei}},ei.MsgFundCommunityPoolResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgFundCommunityPoolResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgFundCommunityPoolResponse();return ei}},ei.MsgUpdateParams={encode:(en,ei=ep.Writer.create())=>(""!==en.authority&&ei.uint32(10).string(en.authority),void 0!==en.params&&ef.Params.encode(en.params,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.authority=eo.string();break;case 2:es.params=ef.Params.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({authority:(0,em.isSet)(en.authority)?String(en.authority):"",params:(0,em.isSet)(en.params)?ef.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.authority&&(ei.authority=en.authority),void 0!==en.params&&(ei.params=en.params?ef.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseMsgUpdateParams();return ei.authority=en.authority??"",ei.params=void 0!==en.params&&null!==en.params?ef.Params.fromPartial(en.params):void 0,ei}},ei.MsgUpdateParamsResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgUpdateParamsResponse();return ei}},ei.MsgCommunityPoolSpend={encode(en,ei=ep.Writer.create()){for(let eo of(""!==en.authority&&ei.uint32(10).string(en.authority),""!==en.recipient&&ei.uint32(18).string(en.recipient),en.amount))eu.Coin.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCommunityPoolSpend();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.authority=eo.string();break;case 2:es.recipient=eo.string();break;case 3:es.amount.push(eu.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({authority:(0,em.isSet)(en.authority)?String(en.authority):"",recipient:(0,em.isSet)(en.recipient)?String(en.recipient):"",amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.authority&&(ei.authority=en.authority),void 0!==en.recipient&&(ei.recipient=en.recipient),en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseMsgCommunityPoolSpend();return ei.authority=en.authority??"",ei.recipient=en.recipient??"",ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei}}
4,ei.MsgCommunityPoolSpendResponse={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCommunityPoolSpendResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgCommunityPoolSpendResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.SetWithdrawAddress=this.SetWithdrawAddress.bind(this),this.WithdrawDelegatorReward=this.WithdrawDelegatorReward.bind(this),this.WithdrawValidatorCommission=this.WithdrawValidatorCommission.bind(this),this.FundCommunityPool=this.FundCommunityPool.bind(this),this.UpdateParams=this.UpdateParams.bind(this),this.CommunityPoolSpend=this.CommunityPoolSpend.bind(this)}SetWithdrawAddress(en){let eo=ei.MsgSetWithdrawAddress.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",eo);return ea.then(en=>ei.MsgSetWithdrawAddressResponse.decode(new ep.Reader(en)))}WithdrawDelegatorReward(en){let eo=ei.MsgWithdrawDelegatorReward.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",eo);return ea.then(en=>ei.MsgWithdrawDelegatorRewardResponse.decode(new ep.Reader(en)))}WithdrawValidatorCommission(en){let eo=ei.MsgWithdrawValidatorCommission.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",eo);return ea.then(en=>ei.MsgWithdrawValidatorCommissionResponse.decode(new ep.Reader(en)))}FundCommunityPool(en){let eo=ei.MsgFundCommunityPool.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",eo);return ea.then(en=>ei.MsgFundCommunityPoolResponse.decode(new ep.Reader(en)))}UpdateParams(en){let eo=ei.MsgUpdateParams.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Msg","UpdateParams",eo);return ea.then(en=>ei.MsgUpdateParamsResponse.decode(new ep.Reader(en)))}CommunityPoolSpend(en){let eo=ei.MsgCommunityPoolSpend.encode(en).finish(),ea=this.rpc.request("cosmos.distribution.v1beta1.Msg","CommunityPoolSpend",eo);return ea.then(en=>ei.MsgCommunityPoolSpendResponse.decode(new ep.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},33211:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Grant=ei.AllowedMsgAllowance=ei.PeriodicAllowance=ei.BasicAllowance=ei.protobufPackage=void 0;let eu=eo(10891),ef=eo(85522),ep=eo(70281),em=eo(53862),eg=ed(eo(83789)),ey=eo(81457);function createBaseBasicAllowance(){return{spendLimit:[],expiration:void 0}}function createBasePeriodicAllowance(){return{basic:void 0,period:void 0,periodSpendLimit:[],periodCanSpend:[],periodReset:void 0}}function createBaseAllowedMsgAllowance(){return{allowance:void 0,allowedMessages:[]}}function createBaseGrant(){return{granter:"",grantee:"",allowance:void 0}}ei.protobufPackage="cosmos.feegrant.v1beta1",ei.BasicAllowance={encode(en,ei=eg.Writer.create()){for(let eo of en.spendLimit)eu.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.expiration&&ef.Timestamp.encode(en.expiration,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBasicAllowance();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.spendLimit.push(eu.Coin.decode(eo,eo.uint32()));break;case 2:es.expiration=ef.Timestamp.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({spendLimit:Array.isArray(en?.spendLimit)?en.spendLimit.map(en=>eu.Coin.fromJSON(en)):[],expiration:(0,ey.isSet)(en.expiration)?(0,ey.fromJsonTimestamp)(en.expiration):void 0}),toJSON(en){let ei={};return en.spendLimit?ei.spendLimit=en.spendLimit.map(en=>en?eu.Coin.toJSON(en):void 0):ei.spendLimit=[],void 0!==en.expiration&&(ei.expiration=(0,ey.fromTimestamp)(en.expiration).toISOString()),ei},fromPartial(en){let ei=createBaseBasicAllowance();return ei.spendLimit=en.spendLimit?.map(en=>eu.Coin.fromPartial(en))||[],ei.expiration=void 0!==en.expiration&&null!==en.expiration?ef.Timestamp.fromPartial(en.expiration):void 0,ei}},ei.PeriodicAllowance={encode(en,eo=eg.Writer.create()){for(let ea of(void 0!==en.basic&&ei.BasicAllowance.encode(en.basic,eo.uint32(10).fork()).ldelim(),void 0!==en.period&&ep.Duration.encode(en.period,eo.uint32(18).fork()).ldelim(),en.periodSpendLimit))eu.Coin.encode(ea,eo.uint32(26).fork()).ldelim();for(let ei of en.periodCanSpend)eu.Coin.encode(ei,eo.uint32(34).fork()).ldelim();return void 0!==en.periodReset&&ef.Timestamp.encode(en.periodReset,eo.uint32(42).fork()).ldelim(),eo},decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBasePeriodicAllowance();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.basic=ei.BasicAllowance.decode(ea,ea.uint32());break;case 2:ed.period=ep.Duration.decode(ea,ea.uint32());break;case 3:ed.periodSpendLimit.push(eu.Coin.decode(ea,ea.uint32()));break;case 4:ed.periodCanSpend.push(eu.Coin.decode(ea,ea.uint32()));break;case 5:ed.periodReset=ef.Timestamp.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({basic:(0,ey.isSet)(en.basic)?ei.BasicAllowance.fromJSON(en.basic):void 0,period:(0,ey.isSet)(en.period)?ep.Duration.fromJSON(en.period):void 0,periodSpendLimit:Array.isArray(en?.periodSpendLimit)?en.periodSpendLimit.map(en=>
4eu.Coin.fromJSON(en)):[],periodCanSpend:Array.isArray(en?.periodCanSpend)?en.periodCanSpend.map(en=>eu.Coin.fromJSON(en)):[],periodReset:(0,ey.isSet)(en.periodReset)?(0,ey.fromJsonTimestamp)(en.periodReset):void 0}),toJSON(en){let eo={};return void 0!==en.basic&&(eo.basic=en.basic?ei.BasicAllowance.toJSON(en.basic):void 0),void 0!==en.period&&(eo.period=en.period?ep.Duration.toJSON(en.period):void 0),en.periodSpendLimit?eo.periodSpendLimit=en.periodSpendLimit.map(en=>en?eu.Coin.toJSON(en):void 0):eo.periodSpendLimit=[],en.periodCanSpend?eo.periodCanSpend=en.periodCanSpend.map(en=>en?eu.Coin.toJSON(en):void 0):eo.periodCanSpend=[],void 0!==en.periodReset&&(eo.periodReset=(0,ey.fromTimestamp)(en.periodReset).toISOString()),eo},fromPartial(en){let eo=createBasePeriodicAllowance();return eo.basic=void 0!==en.basic&&null!==en.basic?ei.BasicAllowance.fromPartial(en.basic):void 0,eo.period=void 0!==en.period&&null!==en.period?ep.Duration.fromPartial(en.period):void 0,eo.periodSpendLimit=en.periodSpendLimit?.map(en=>eu.Coin.fromPartial(en))||[],eo.periodCanSpend=en.periodCanSpend?.map(en=>eu.Coin.fromPartial(en))||[],eo.periodReset=void 0!==en.periodReset&&null!==en.periodReset?ef.Timestamp.fromPartial(en.periodReset):void 0,eo}},ei.AllowedMsgAllowance={encode(en,ei=eg.Writer.create()){for(let eo of(void 0!==en.allowance&&em.Any.encode(en.allowance,ei.uint32(10).fork()).ldelim(),en.allowedMessages))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAllowedMsgAllowance();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.allowance=em.Any.decode(eo,eo.uint32());break;case 2:es.allowedMessages.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({allowance:(0,ey.isSet)(en.allowance)?em.Any.fromJSON(en.allowance):void 0,allowedMessages:Array.isArray(en?.allowedMessages)?en.allowedMessages.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.allowance&&(ei.allowance=en.allowance?em.Any.toJSON(en.allowance):void 0),en.allowedMessages?ei.allowedMessages=en.allowedMessages.map(en=>en):ei.allowedMessages=[],ei},fromPartial(en){let ei=createBaseAllowedMsgAllowance();return ei.allowance=void 0!==en.allowance&&null!==en.allowance?em.Any.fromPartial(en.allowance):void 0,ei.allowedMessages=en.allowedMessages?.map(en=>en)||[],ei}},ei.Grant={encode:(en,ei=eg.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),void 0!==en.allowance&&em.Any.encode(en.allowance,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGrant();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;case 3:es.allowance=em.Any.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,ey.isSet)(en.granter)?String(en.granter):"",grantee:(0,ey.isSet)(en.grantee)?String(en.grantee):"",allowance:(0,ey.isSet)(en.allowance)?em.Any.fromJSON(en.allowance):void 0}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.allowance&&(ei.allowance=en.allowance?em.Any.toJSON(en.allowance):void 0),ei},fromPartial(en){let ei=createBaseGrant();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei.allowance=void 0!==en.allowance&&null!==en.allowance?em.Any.fromPartial(en.allowance):void 0,ei}}},6343:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryAllowancesByGranterResponse=ei.QueryAllowancesByGranterRequest=ei.QueryAllowancesResponse=ei.QueryAllowancesRequest=ei.QueryAllowanceResponse=ei.QueryAllowanceRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(33211),ep=ed(eo(83789)),em=eo(81457);
4function createBaseQueryAllowanceRequest(){return{granter:"",grantee:""}}function createBaseQueryAllowanceResponse(){return{allowance:void 0}}function createBaseQueryAllowancesRequest(){return{grantee:"",pagination:void 0}}function createBaseQueryAllowancesResponse(){return{allowances:[],pagination:void 0}}function createBaseQueryAllowancesByGranterRequest(){return{granter:"",pagination:void 0}}function createBaseQueryAllowancesByGranterResponse(){return{allowances:[],pagination:void 0}}ei.protobufPackage="cosmos.feegrant.v1beta1",ei.QueryAllowanceRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllowanceRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,em.isSet)(en.granter)?String(en.granter):"",grantee:(0,em.isSet)(en.grantee)?String(en.grantee):""}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),ei}
4,fromPartial(en){let ei=createBaseQueryAllowanceRequest();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei}},ei.QueryAllowanceResponse={encode:(en,ei=ep.Writer.create())=>(void 0!==en.allowance&&ef.Grant.encode(en.allowance,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllowanceResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.allowance=ef.Grant.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({allowance:(0,em.isSet)(en.allowance)?ef.Grant.fromJSON(en.allowance):void 0}),toJSON(en){let ei={};return void 0!==en.allowance&&(ei.allowance=en.allowance?ef.Grant.toJSON(en.allowance):void 0),ei},fromPartial(en){let ei=createBaseQueryAllowanceResponse();return ei.allowance=void 0!==en.allowance&&null!==en.allowance?ef.Grant.fromPartial(en.allowance):void 0,ei}},ei.QueryAllowancesRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.grantee&&ei.uint32(10).string(en.grantee),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllowancesRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.grantee=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({grantee:(0,em.isSet)(en.grantee)?String(en.grantee):"",pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAllowancesRequest();return ei.grantee=en.grantee??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryAllowancesResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.allowances)ef.Grant.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllowancesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.allowances.push(ef.Grant.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({allowances:Array.isArray(en?.allowances)?en.allowances.map(en=>ef.Grant.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.allowances?ei.allowances=en.allowances.map(en=>en?ef.Grant.toJSON(en):void 0):ei.allowances=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAllowancesResponse();return ei.allowances=en.allowances?.map(en=>ef.Grant.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryAllowancesByGranterRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllowancesByGranterRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,em.isSet)(en.granter)?String(en.granter):"",pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAllowancesByGranterRequest
4();return ei.granter=en.granter??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryAllowancesByGranterResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.allowances)ef.Grant.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAllowancesByGranterResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.allowances.push(ef.Grant.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({allowances:Array.isArray(en?.allowances)?en.allowances.map(en=>ef.Grant.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.allowances?ei.allowances=en.allowances.map(en=>en?ef.Grant.toJSON(en):void 0):ei.allowances=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryAllowancesByGranterResponse();return ei.allowances=en.allowances?.map(en=>ef.Grant.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Allowance=this.Allowance.bind(this),this.Allowances=this.Allowances.bind(this),this.AllowancesByGranter=this.AllowancesByGranter.bind(this)}Allowance(en){let eo=ei.QueryAllowanceRequest.encode(en).finish(),ea=this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowance",eo);return ea.then(en=>ei.QueryAllowanceResponse.decode(new ep.Reader(en)))}Allowances(en){let eo=ei.QueryAllowancesRequest.encode(en).finish(),ea=this.rpc.request("cosmos.feegrant.v1beta1.Query","Allowances",eo);return ea.then(en=>ei.QueryAllowancesResponse.decode(new ep.Reader(en)))}AllowancesByGranter(en){let eo=ei.QueryAllowancesByGranterRequest.encode(en).finish(),ea=this.rpc.request("cosmos.feegrant.v1beta1.Query","AllowancesByGranter",eo);return ea.then(en=>ei.QueryAllowancesByGranterResponse.decode(new ep.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},65192:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgRevokeAllowanceResponse=ei.MsgRevokeAllowance=ei.MsgGrantAllowanceResponse=ei.MsgGrantAllowance=ei.protobufPackage=void 0;let eu=eo(53862),ef=ed(eo(83789)),ep=eo(81457);function createBaseMsgGrantAllowance(){return{granter:"",grantee:"",allowance:void 0}}function createBaseMsgGrantAllowanceResponse(){return{}}function createBaseMsgRevokeAllowance(){return{granter:"",grantee:""}}function createBaseMsgRevokeAllowanceResponse(){return{}}ei.protobufPackage="cosmos.feegrant.v1beta1",ei.MsgGrantAllowance={encode:(en,ei=ef.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),void 0!==en.allowance&&eu.Any.encode(en.allowance,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgGrantAllowance();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;case 3:es.allowance=eu.Any.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,ep.isSet)(en.granter)?String(en.granter):"",grantee:(0,ep.isSet)(en.grantee)?String(en.grantee):"",allowance:(0,ep.isSet)(en.allowance)?eu.Any.fromJSON(en.allowance):void 0}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),void 0!==en.allowance&&(ei.allowance=en.allowance?eu.Any.toJSON(en.allowance):void 0),ei},fromPartial(en){let ei=createBaseMsgGrantAllowance();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei.allowance=void 0!==en.allowance&&null!==en.allowance?eu.Any.fromPartial(en.allowance):void 0,ei}},ei.MsgGrantAllowanceResponse={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgGrantAllowanceResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgGrantAllowanceResponse();return ei}},ei.MsgRevokeAllowance={encode:(en,ei=ef.Writer.create())=>(""!==en.granter&&ei.uint32(10).string(en.granter),""!==en.grantee&&ei.uint32(18).string(en.grantee),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgRevokeAllowance();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.granter=eo.string();break;case 2:es.grantee=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({granter:(0,ep.isSet)(en.granter)?String(en.granter):"",grantee:(0,ep.isSet)(en.grantee)?String(en.grantee):""}),toJSON(en){let ei={};return void 0!==en.granter&&(ei.granter=en.granter),void 0!==en.grantee&&(ei.grantee=en.grantee),ei},fromPartial(en){let ei=createBaseMsgRevokeAllowance();return ei.granter=en.granter??"",ei.grantee=en.grantee??"",ei}},ei.MsgRevokeAllowanceResponse={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgRevokeAllowanceResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgRevokeAllowanceResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(en){let eo=ei.MsgGrantAllowance.encode(en).finish(),ea=this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",eo);return ea.then(en=>ei.MsgGrantAllowanceResponse.decode(new ef.Reader(en)))}RevokeAllowance(en){let eo=ei.MsgRevokeAllowance.encode(en).finish(),ea=this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",eo);return ea.then(en=>ei.MsgRevokeAllowanceResponse.decode(new ef.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},99876:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),eu=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ef=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ed(ei,en,eo);return eu(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.TallyParams=ei.VotingParams=ei.DepositParams=ei.Vote=ei.TallyResult=ei.Proposal=ei.Deposit=ei.TextProposal=ei.WeightedVoteOption=ei.proposalStatusToJSON=ei.proposalStatusFromJSON=ei.ProposalStatus=ei.voteOptionToJSON=ei.voteOptionFromJSON=ei.VoteOption=ei.protobufPackage=void 0;let ep=eo(10891),em=eo(53862),eg=eo(85522),ey=eo(70281),eb=eo(81457),eS=ef(eo(83789));function voteOptionFromJSON(en){switch(en){case 0:case"VOTE_OPTION_UNSPECIFIED":return ea.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return ea.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return ea.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return ea.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return ea.VOTE_OPTION_NO_WITH_VETO;default:return ea.UNRECOGNIZED}}function voteOptionToJSON(en){switch(en){case ea.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case ea.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case ea.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case ea.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case ea.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function proposalStatusFromJSON(en){switch(en){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return es.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return es.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return es.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return es.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return es.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return es.PROPOSAL_STATUS_FAILED;default:return es.UNRECOGNIZED}}function proposalStatusToJSON(en){switch(en){case es.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case es.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case es.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case es.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case es.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case es.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseWeightedVoteOption(){return{option:0,weight:""}}function createBaseTextProposal(){return{title:"",description:""}}function createBaseDeposit(){return{proposalId:eb.Long.UZERO,depositor:"",amount:[]}}function createBaseProposal(){return{proposalId:eb.Long.UZERO,content:void 0,status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0}}function createBaseTallyResult(){return{yes:"",abstain:"",no:"",noWithVeto:""}}function createBaseVote(){return{proposalId:eb.Long.UZERO,voter:"",option:0,options:[]}}function createBaseDepositParams(){return{minDeposit:[],maxDepositPeriod:void 0}}function createBaseVotingParams(){return{votingPeriod:void 0}}function createBaseTallyParams(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}ei.protobufPackage="cosmos.gov.v1beta1",function(en){en[en.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",en[en.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",en[en.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",en[en.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",en[en.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.VoteOption||(ei.VoteOption={})),ei.voteOptionFromJSON=voteOptionFromJSON,ei.voteOptionToJSON=voteOptionToJSON,function(en){en[en.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",en[en.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",en[en.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",en[en.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",en[en.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",en[en.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.ProposalStatus||(ei.ProposalStatus={}
4)),ei.proposalStatusFromJSON=proposalStatusFromJSON,ei.proposalStatusToJSON=proposalStatusToJSON,ei.WeightedVoteOption={encode:(en,ei=eS.Writer.create())=>(0!==en.option&&ei.uint32(8).int32(en.option),""!==en.weight&&ei.uint32(18).string(en.weight),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseWeightedVoteOption();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.option=eo.int32();break;case 2:es.weight=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({option:(0,eb.isSet)(en.option)?voteOptionFromJSON(en.option):0,weight:(0,eb.isSet)(en.weight)?String(en.weight):""}),toJSON(en){let ei={};return void 0!==en.option&&(ei.option=voteOptionToJSON(en.option)),void 0!==en.weight&&(ei.weight=en.weight),ei},fromPartial(en){let ei=createBaseWeightedVoteOption();return ei.option=en.option??0,ei.weight=en.weight??"",ei}},ei.TextProposal={encode:(en,ei=eS.Writer.create())=>(""!==en.title&&ei.uint32(10).string(en.title),""!==en.description&&ei.uint32(18).string(en.description),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTextProposal();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.title=eo.string();break;case 2:es.description=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({title:(0,eb.isSet)(en.title)?String(en.title):"",description:(0,eb.isSet)(en.description)?String(en.description):""}),toJSON(en){let ei={};return void 0!==en.title&&(ei.title=en.title),void 0!==en.description&&(ei.description=en.description),ei},fromPartial(en){let ei=createBaseTextProposal();return ei.title=en.title??"",ei.description=en.description??"",ei}},ei.Deposit={encode(en,ei=eS.Writer.create()){for(let eo of(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),""!==en.depositor&&ei.uint32(18).string(en.depositor),en.amount))ep.Coin.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDeposit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.depositor=eo.string();break;case 3:es.amount.push(ep.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,eb.isSet)(en.proposalId)?eb.Long.fromValue(en.proposalId):eb.Long.UZERO,depositor:(0,eb.isSet)(en.depositor)?String(en.depositor):"",amount:Array.isArray(en?.amount)?en.amount.map(en=>ep.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||eb.Long.UZERO).toString()),void 0!==en.depositor&&(ei.depositor=en.depositor),en.amount?ei.amount=en.amount.map(en=>en?ep.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseDeposit();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?eb.Long.fromValue(en.proposalId):eb.Long.UZERO,ei.depositor=en.depositor??"",ei.amount=en.amount?.map(en=>ep.Coin.fromPartial(en))||[],ei}},ei.Proposal={encode(en,eo=eS.Writer.create()){for(let ea of(en.proposalId.isZero()||eo.uint32(8).uint64(en.proposalId),void 0!==en.content&&em.Any.encode(en.content,eo.uint32(18).fork()).ldelim(),0!==en.status&&eo.uint32(24).int32(en.status),void 0!==en.finalTallyResult&&ei.TallyResult.encode(en.finalTallyResult,eo.uint32(34).fork()).ldelim(),void 0!==en.submitTime&&eg.Timestamp.encode(en.submitTime,eo.uint32(42).fork()).ldelim(),void 0!==en.depositEndTime&&eg.Timestamp.encode(en.depositEndTime,eo.uint32(50).fork()).ldelim(),en.totalDeposit))ep.Coin.encode(ea,eo.uint32(58).fork()).ldelim();return void 0!==en.votingStartTime&&eg.Timestamp.encode(en.votingStartTime,eo.uint32(66).fork()).ldelim(),void 0!==en.votingEndTime&&eg.Timestamp.encode(en.votingEndTime,eo.uint32(74).fork()).ldelim(),eo},decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseProposal();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.proposalId=ea.uint64();break;case 2:ed.content=em.Any.decode(ea,ea.uint32());break;case 3:ed.status=ea.int32();break;case 4:ed.finalTallyResult=ei.TallyResult.decode(ea,ea.uint32());break;case 5:ed.submitTime=eg.Timestamp.decode(ea,ea.uint32());break;case 6:ed.depositEndTime=eg.Timestamp.decode(ea,ea.uint32());break;case 7:ed.totalDeposit.push(ep.Coin.decode(ea,ea.uint32()));break;case 8:ed.votingStartTime=eg.Timestamp.decode(ea,ea.uint32());break;case 9:ed.votingEndTime=eg.Timestamp.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({proposalId:(0,eb.isSet)(en.proposalId)?eb.Long.fromValue(en.proposalId):eb.Long.UZERO,content:(0,eb.isSet)(en.content)?em.Any.fromJSON(en.content):void 0,status:(0,eb.isSet)(en.status)?proposalStatusFromJSON(en.status):0,finalTallyResult:(0,eb.isSet)(en.finalTallyResult)?ei.TallyResult.fromJSON(en.finalTallyResult):void 0,submitTime:(0,eb.isSet)(en.submitTime)?(0,eb.fromJsonTimestamp)(en.submitTime):void 0,depositEndTime:(0,eb.isSet)(en.depositEndTime)?(0,eb.fromJsonTimestamp)(en.depositEndTime):void 0,totalDeposit:Array.isArray(en?.totalDeposit)?en.totalDeposit.map(en=>ep.Coin.fromJSON(en)):[],votingStartTime:(0,eb.isSet)(en.votingStartTime)?(0,eb.fromJsonTimestamp)(en.votingStartTime):void 0,votingEndTime:(0,eb.isSet)(en.votingEndTime)?(0,eb.fromJsonTimestamp)(en.votingEndTime):void 0}),toJSON(en){let eo={};return void 0!==en.proposalId&&(eo.proposalId=(en.proposalId||eb.Long.UZERO).toString()),void 0!==en.content&&(eo.content=en.content?em.Any.toJSON(en.content):void 0),void 0!==en.status&&(eo.status=proposalStatusToJSON(en.status)),void 0!==en.finalTallyResult&&(eo.finalTallyResult=en.finalTallyResult?ei.TallyResult.toJSON(en.finalTallyResult):void 0),void 0!==en.submitTime&&(eo.submitTime=(0,eb.fromTimestamp)(en.submitTime).toISOString()),void 0!==en.depositEndTime&&(eo.depositEndTime=(0,eb.fromTimestamp)(en.depositEndTime).toISOString()),en.totalDeposit?eo.totalDeposit=en.totalDeposit.map(en=>en?ep.Coin.toJSON(en):void 0):eo.totalDeposit=[],void 0!==en.votingStartTime&&(eo.votingStartTime=(0,eb.fromTimestamp)(en.votingStartTime).toISOString()),void 0!==en.votingEndTime&&(eo.votingEndTime=(0,eb.fromTimestamp)(en.votingEndTime).toISOString()),eo},fromPartial(en){let eo=createBaseProposal();return eo.proposalId=void 0!==en.proposalId&&null!==en.proposalId?eb.Long.fromValue(en.proposalId):eb.Long.UZERO,eo.content=void 0!==en.content&&null!==en.content?em.Any.fromPartial(en.content):void 0,eo.status=en.status??0,eo.finalTallyResult=void 0!==en.finalTallyResult&&null!==en.finalTallyResult?ei.TallyResult.fromPartial(en.finalTallyResult):void 0,eo.submitTime=void 0!==en.submitTime&&null!==en.submitTime?eg.Timestamp.fromPartial(en.submitTime):void 0,eo.depositEndTime=void 0!==en.depositEndTime&&null!==en.depositEndTime?eg.Timestamp.fromPartial(en.depositEndTime):void 0,eo.totalDeposit=en.totalDeposit?.map(en=>ep.Coin.fromPartial(en))||[],eo.votingStartTime=void 0!==en.votingStartTime&&null!==en.votingStartTime?eg.Timestamp.fromPartial(en.votingStartTime):void 0,eo.votingEndTime=void 0!==en.votingEndTime&&null!==en.votingEndTime?eg.Timestamp.fromPartial(en.votingEndTime):void 0,eo}},ei.TallyResult={encode:(en,ei=eS.Writer.create())=>(""!==en.yes&&ei.uint32(10).string(en.yes),""!==en.abstain&&ei.uint32(18).string(en.abstain),""!==en.no&&ei.uint32(26).string(en.no),""!==en.noWithVeto&&ei.uint32(34).string(en.noWithVeto),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTallyResult();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.yes=eo.string();break;case 2:es.abstain=eo.string();break;case 3:es.no=eo.string();break;case 4:es.noWithVeto=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({yes:(0,eb.isSet)(en.yes)?String(en.yes):"",abstain:(0,eb.isSet)(en.abstain)?String(en.abstain):"",no:(0,eb.isSet)(en.no)?String(en.no):"",noWithVeto:(0,eb.isSet)(en.noWithVeto)?String(en.noWithVeto):""}),toJSON(en){let ei={};return void 0!==en.yes&&(ei.yes=en.yes),void 0!==en.abstain&&(ei.abstain=en.abstain),void 0!==en.no&&(ei.no=en.no),void 0!==en.noWithVeto&&(ei.noWithVeto=en.noWithVeto),ei},fromPartial(en){let ei=createBaseTallyResult();return ei.yes=en.yes??"",ei.abstain=en.abstain??"",ei.no=en.no??"",ei.noWithVeto=en.noWithVeto??"",ei}},ei.Vote={encode(en,eo=eS.Writer.create()){for(let ea of(en.proposalId.isZero()||eo.uint32(8).uint64(en.proposalId),""!==en.voter&&eo.uint32(18).string(en.voter),0!==en.option&&eo.uint32(24).int32(en.option),en.options))ei.WeightedVoteOption.encode(ea,eo.uint32(34).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseVote();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.proposalId=ea.uint64();break;case 2:ed.voter=ea.string();break;case 3:ed.option=ea.int32();break;case 4:ed.options.push(ei.WeightedVoteOption.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({proposalId:(0,eb.isSet)(en.proposalId)?eb.Long.fromValue(en.proposalId):eb.Long.UZERO,voter:(0,eb.isSet)(en.voter)?String(en.voter):"",option:(0,eb.isSet)(en.option)?voteOptionFromJSON(en.option):0,options:Array.isArray(en?.options)?en.options.map(en=>ei.WeightedVoteOption.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.proposalId&&(eo.proposalId=(en.proposalId||eb.Long.UZERO).toString()),void 0!==en.voter&&(eo.voter=en.voter),void 0!==en.option&&(eo.option=voteOptionToJSON(en.option)),en.options?eo.options=en.options.map(en=>en?ei.WeightedVoteOption.toJSON(en):void 0):eo.options=[],eo},fromPartial(en){let eo=createBaseVote();return eo.proposalId=void 0!==en.proposalId&&null!==en.proposalId?eb.Long.fromValue(en.proposalId):eb.Long.UZERO,eo.voter=en.voter??"",eo.option=en.option??0,eo.options=en.options?.map(en=>ei.WeightedVoteOption.fromPartial(en))||[],eo}},ei.DepositParams={encode(en,ei=eS.Writer.create()){for(let eo of en.minDeposit)ep.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.maxDepositPeriod&&ey.Duration.encode(en.maxDepositPeriod,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDepositParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.minDeposit.push(ep.Coin.decode(eo,eo.uint32()));break;case 2:es.maxDepositPeriod=ey.Duration.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({minDeposit:Array.isArray(en?.minDeposit)?en.minDeposit.map(en=>ep.Coin.fromJSON(en)):[],maxDepositPeriod:(0,eb.isSet)(en.maxDepositPeriod)?ey.Duration.fromJSON(en.maxDepositPeriod):void 0}),toJSON(en){let ei={};return en.minDeposit?ei.minDeposit=en.minDeposit.map(en=>en?ep.Coin.toJSON(en):void 0):ei.minDeposit=[],void 0!==en.maxDepositPeriod&&(ei.maxDepositPeriod=en.maxDepositPeriod?ey.Duration.toJSON(en.maxDepositPeriod):void 0),ei},fromPartial(en){let ei=createBaseDepositParams();return ei.minDeposit=en.minDeposit?.map(en=>ep.Coin.fromPartial(en))||[],ei.maxDepositPeriod=void 0!==en.maxDepositPeriod&&null!==en.maxDepositPeriod?ey.Duration.fromPartial(en.maxDepositPeriod):void 0,ei}},ei.VotingParams={encode:(en,ei=eS.Writer.create())=>(void 0!==en.votingPeriod&&ey.Duration.encode(en.votingPeriod,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseVotingParams();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.votingPeriod=ey.Duration.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({votingPeriod:(0,eb.isSet)(en.votingPeriod)?ey.Duration.fromJSON(en.votingPeriod):void 0}),toJSON(en){let ei={};return void 0!==en.votingPeriod&&(ei.votingPeriod=en.votingPeriod?ey.Duration.toJSON(en.votingPeriod):void 0),ei},fromPartial(en){let ei=createBaseVotingParams();return ei.votingPeriod=void 0!==en.votingPeriod&&null!==en.votingPeriod?ey.Duration.fromPartial(en.votingPeriod):void 0,ei}},ei.TallyParams={encode:(en,ei=eS.Writer.create())=>(0!==en.quorum.length&&ei.uint32(10).bytes(en.quorum),0!==en.threshold.length&&ei.uint32(18).bytes(en.threshold),0!==en.vetoThreshold.length&&ei.uint32(26).bytes(en.vetoThreshold),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTallyParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.quorum=eo.bytes();break;case 2:es.threshold=eo.bytes();break;case 3:es.vetoThreshold=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({quorum:(0,eb.isSet)(en.quorum)?(0,eb.bytesFromBase64)(en.quorum):new Uint8Array,threshold:(0,eb.isSet)(en.threshold)?(0,eb.bytesFromBase64)(en.threshold):new Uint8Array,vetoThreshold:(0,eb.isSet)(en.vetoThreshold)?(0,eb.bytesFromBase64)(en.vetoThreshold):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.quorum&&(ei.quorum=(0,eb.base64FromBytes)(void 0!==en.quorum?en.quorum:new Uint8Array)),void 0!==en.threshold&&(ei.threshold=(0,eb.base64FromBytes)(void 0!==en.threshold?en.threshold:new Uint8Array)),void 0!==en.vetoThreshold&&(ei.vetoThreshold=(0,eb.base64FromBytes)(void 0!==en.vetoThreshold?en.vetoThreshold:new Uint8Array)),ei},fromPartial(en){let ei=createBaseTallyParams();return ei.quorum=en.quorum??new Uint8Array,ei.threshold=en.threshold??new Uint8Array,ei.vetoThreshold=en.vetoThreshold??new Uint8Array,ei}}},89207:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryTallyResultResponse=ei.QueryTallyResultRequest=ei.QueryDepositsResponse=ei.QueryDepositsRequest=ei.QueryDepositResponse=ei.QueryDepositRequest=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.QueryVotesResponse=ei.QueryVotesRequest=ei.QueryVoteResponse=ei.QueryVoteRequest=ei.QueryProposalsResponse=ei.QueryProposalsRequest=ei.QueryProposalResponse=ei.QueryProposalRequest=ei.protobufPackage=void 0;
4let eu=eo(99876),ef=eo(79551),ep=eo(81457),em=ed(eo(83789));function createBaseQueryProposalRequest(){return{proposalId:ep.Long.UZERO}}function createBaseQueryProposalResponse(){return{proposal:void 0}}function createBaseQueryProposalsRequest(){return{proposalStatus:0,voter:"",depositor:"",pagination:void 0}}function createBaseQueryProposalsResponse(){return{proposals:[],pagination:void 0}}function createBaseQueryVoteRequest(){return{proposalId:ep.Long.UZERO,voter:""}}function createBaseQueryVoteResponse(){return{vote:void 0}}function createBaseQueryVotesRequest(){return{proposalId:ep.Long.UZERO,pagination:void 0}}function createBaseQueryVotesResponse(){return{votes:[],pagination:void 0}}function createBaseQueryParamsRequest(){return{paramsType:""}}function createBaseQueryParamsResponse(){return{votingParams:void 0,depositParams:void 0,tallyParams:void 0}}function createBaseQueryDepositRequest(){return{proposalId:ep.Long.UZERO,depositor:""}}function createBaseQueryDepositResponse(){return{deposit:void 0}}function createBaseQueryDepositsRequest(){return{proposalId:ep.Long.UZERO,pagination:void 0}}function createBaseQueryDepositsResponse(){return{deposits:[],pagination:void 0}}function createBaseQueryTallyResultRequest(){return{proposalId:ep.Long.UZERO}}function createBaseQueryTallyResultResponse(){return{tally:void 0}}ei.protobufPackage="cosmos.gov.v1beta1",ei.QueryProposalRequest={encode:(en,ei=em.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryProposalRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.proposalId=eo.uint64():eo.skipType(7&en)}return es},fromJSON:en=>({proposalId:(0,ep.isSet)(en.proposalId)?ep.Long.fromValue(en.proposalId):ep.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||ep.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryProposalRequest();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,ei}},ei.QueryProposalResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.proposal&&eu.Proposal.encode(en.proposal,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryProposalResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.proposal=eu.Proposal.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({proposal:(0,ep.isSet)(en.proposal)?eu.Proposal.fromJSON(en.proposal):void 0}),toJSON(en){let ei={};return void 0!==en.proposal&&(ei.proposal=en.proposal?eu.Proposal.toJSON(en.proposal):void 0),ei},fromPartial(en){let ei=createBaseQueryProposalResponse();return ei.proposal=void 0!==en.proposal&&null!==en.proposal?eu.Proposal.fromPartial(en.proposal):void 0,ei}},ei.QueryProposalsRequest={encode:(en,ei=em.Writer.create())=>(0!==en.proposalStatus&&ei.uint32(8).int32(en.proposalStatus),""!==en.voter&&ei.uint32(18).string(en.voter),""!==en.depositor&&ei.uint32(26).string(en.depositor),void 0!==en.pagination&&ef.PageRequest.encode(en.pagination,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryProposalsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalStatus=eo.int32();break;case 2:es.voter=eo.string();break;case 3:es.depositor=eo.string();break;case 4:es.pagination=ef.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalStatus:(0,ep.isSet)(en.proposalStatus)?(0,eu.proposalStatusFromJSON)(en.proposalStatus):0,voter:(0,ep.isSet)(en.voter)?String(en.voter):"",depositor:(0,ep.isSet)(en.depositor)?String(en.depositor):"",pagination:(0,ep.isSet)(en.pagination)?ef.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.proposalStatus&&(ei.proposalStatus=(0,eu.proposalStatusToJSON)(en.proposalStatus)),void 0!==en.voter&&(ei.voter=en.voter),void 0!==en.depositor&&(ei.depositor=en.depositor),void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryProposalsRequest();return ei.proposalStatus=en.proposalStatus??0,ei.voter=en.voter??"",ei.depositor=en.depositor??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryProposalsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.proposals)eu.Proposal.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&ef.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryProposalsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposals.push(eu.Proposal.decode(eo,eo.uint32()));break;case 2:es.pagination=ef.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposals:Array.isArray(en?.proposals)?en.proposals.map(en=>eu.Proposal.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?ef.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.proposals?ei.proposals=en.proposals.map(en=>en?eu.Proposal.toJSON(en):void 0):ei.proposals=[],void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryProposalsResponse();return ei.proposals=en.proposals?.map(en=>eu.Proposal.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryVoteRequest={encode:(en,ei=em.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),""!==en.voter&&ei.uint32(18).string(en.voter),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryVoteRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.voter=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,ep.isSet)(en.proposalId)?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,voter:(0,ep.isSet)(en.voter)?String(en.voter):""}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||ep.Long.UZERO).toString()),void 0!==en.voter&&(ei.voter=en.voter),ei},fromPartial(en){let ei=createBaseQueryVoteRequest();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,ei.voter=en.voter??"",ei}},ei.QueryVoteResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.vote&&eu.Vote.encode(en.vote,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryVoteResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.vote=eu.Vote.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({vote:(0,ep.isSet)(en.vote)?eu.Vote.fromJSON(en.vote):void 0}),toJSON(en){let ei={};return void 0!==en.vote&&(ei.vote=en.vote?eu.Vote.toJSON(en.vote):void 0),ei},fromPartial(en){let ei=createBaseQueryVoteResponse();return ei.vote=void 0!==en.vote&&null!==en.vote?eu.Vote.fromPartial(en.vote):void 0,ei}},ei.QueryVotesRequest={encode:(en,ei=em.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),void 0!==en.pagination&&ef.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryVotesRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.pagination=ef.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,ep.isSet)(en.proposalId)?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,pagination:(0,ep.isSet)(en.pagination)?ef.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||ep.Long.UZERO).toString()),void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryVotesRequest();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryVotesResponse={encode(en,ei=em.Writer.create()){for(let eo of en.votes)eu.Vote.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&ef.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryVotesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.votes.push(eu.Vote.decode(eo,eo.uint32()));break;case 2:es.pagination=ef.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>
4({votes:Array.isArray(en?.votes)?en.votes.map(en=>eu.Vote.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?ef.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.votes?ei.votes=en.votes.map(en=>en?eu.Vote.toJSON(en):void 0):ei.votes=[],void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryVotesResponse();return ei.votes=en.votes?.map(en=>eu.Vote.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryParamsRequest={encode:(en,ei=em.Writer.create())=>(""!==en.paramsType&&ei.uint32(10).string(en.paramsType),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.paramsType=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({paramsType:(0,ep.isSet)(en.paramsType)?String(en.paramsType):""}),toJSON(en){let ei={};return void 0!==en.paramsType&&(ei.paramsType=en.paramsType),ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei.paramsType=en.paramsType??"",ei}},ei.QueryParamsResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.votingParams&&eu.VotingParams.encode(en.votingParams,ei.uint32(10).fork()).ldelim(),void 0!==en.depositParams&&eu.DepositParams.encode(en.depositParams,ei.uint32(18).fork()).ldelim(),void 0!==en.tallyParams&&eu.TallyParams.encode(en.tallyParams,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.votingParams=eu.VotingParams.decode(eo,eo.uint32());break;case 2:es.depositParams=eu.DepositParams.decode(eo,eo.uint32());break;case 3:es.tallyParams=eu.TallyParams.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({votingParams:(0,ep.isSet)(en.votingParams)?eu.VotingParams.fromJSON(en.votingParams):void 0,depositParams:(0,ep.isSet)(en.depositParams)?eu.DepositParams.fromJSON(en.depositParams):void 0,tallyParams:(0,ep.isSet)(en.tallyParams)?eu.TallyParams.fromJSON(en.tallyParams):void 0}),toJSON(en){let ei={};return void 0!==en.votingParams&&(ei.votingParams=en.votingParams?eu.VotingParams.toJSON(en.votingParams):void 0),void 0!==en.depositParams&&(ei.depositParams=en.depositParams?eu.DepositParams.toJSON(en.depositParams):void 0),void 0!==en.tallyParams&&(ei.tallyParams=en.tallyParams?eu.TallyParams.toJSON(en.tallyParams):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.votingParams=void 0!==en.votingParams&&null!==en.votingParams?eu.VotingParams.fromPartial(en.votingParams):void 0,ei.depositParams=void 0!==en.depositParams&&null!==en.depositParams?eu.DepositParams.fromPartial(en.depositParams):void 0,ei.tallyParams=void 0!==en.tallyParams&&null!==en.tallyParams?eu.TallyParams.fromPartial(en.tallyParams):void 0,ei}},ei.QueryDepositRequest={encode:(en,ei=em.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),""!==en.depositor&&ei.uint32(18).string(en.depositor),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDepositRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.depositor=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,ep.isSet)(en.proposalId)?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,depositor:(0,ep.isSet)(en.depositor)?String(en.depositor):""}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||ep.Long.UZERO).toString()),void 0!==en.depositor&&(ei.depositor=en.depositor),ei},fromPartial(en){let ei=createBaseQueryDepositRequest();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,ei.depositor=en.depositor??"",ei}},ei.QueryDepositResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.deposit&&eu.Deposit.encode(en.deposit,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDepositResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.deposit=eu.Deposit.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({deposit:(0,ep.isSet)(en.deposit)?eu.Deposit.fromJSON(en.deposit):void 0}),toJSON(en){let ei={};return void 0!==en.deposit&&(ei.deposit=en.deposit?eu.Deposit.toJSON(en.deposit):void 0),ei},fromPartial(en){let ei=createBaseQueryDepositResponse();return ei.deposit=void 0!==en.deposit&&null!==en.deposit?eu.Deposit.fromPartial(en.deposit):void 0,ei}},ei.QueryDepositsRequest={encode:(en,ei=em.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),void 0!==en.pagination&&ef.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDepositsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.pagination=ef.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,ep.isSet)(en.proposalId)?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,pagination:(0,ep.isSet)(en.pagination)?ef.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||ep.Long.UZERO).toString()),void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDepositsRequest();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryDepositsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.deposits)eu.Deposit.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&ef.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDepositsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.deposits.push(eu.Deposit.decode(eo,eo.uint32()));break;case 2:es.pagination=ef.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>
4({deposits:Array.isArray(en?.deposits)?en.deposits.map(en=>eu.Deposit.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?ef.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.deposits?ei.deposits=en.deposits.map(en=>en?eu.Deposit.toJSON(en):void 0):ei.deposits=[],void 0!==en.pagination&&(ei.pagination=en.pagination?ef.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDepositsResponse();return ei.deposits=en.deposits?.map(en=>eu.Deposit.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?ef.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryTallyResultRequest={encode:(en,ei=em.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryTallyResultRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.proposalId=eo.uint64():eo.skipType(7&en)}return es},fromJSON:en=>({proposalId:(0,ep.isSet)(en.proposalId)?ep.Long.fromValue(en.proposalId):ep.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||ep.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryTallyResultRequest();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?ep.Long.fromValue(en.proposalId):ep.Long.UZERO,ei}},ei.QueryTallyResultResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.tally&&eu.TallyResult.encode(en.tally,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryTallyResultResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.tally=eu.TallyResult.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({tally:(0,ep.isSet)(en.tally)?eu.TallyResult.fromJSON(en.tally):void 0}),toJSON(en){let ei={};return void 0!==en.tally&&(ei.tally=en.tally?eu.TallyResult.toJSON(en.tally):void 0),ei},fromPartial(en){let ei=createBaseQueryTallyResultResponse();return ei.tally=void 0!==en.tally&&null!==en.tally?eu.TallyResult.fromPartial(en.tally):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Proposal=this.Proposal.bind(this),this.Proposals=this.Proposals.bind(this),this.Vote=this.Vote.bind(this),this.Votes=this.Votes.bind(this),this.Params=this.Params.bind(this),this.Deposit=this.Deposit.bind(this),this.Deposits=this.Deposits.bind(this),this.TallyResult=this.TallyResult.bind(this)}Proposal(en){let eo=ei.QueryProposalRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","Proposal",eo);return ea.then(en=>ei.QueryProposalResponse.decode(new em.Reader(en)))}Proposals(en){let eo=ei.QueryProposalsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","Proposals",eo);return ea.then(en=>ei.QueryProposalsResponse.decode(new em.Reader(en)))}Vote(en){let eo=ei.QueryVoteRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","Vote",eo);return ea.then(en=>ei.QueryVoteResponse.decode(new em.Reader(en)))}Votes(en){let eo=ei.QueryVotesRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","Votes",eo);return ea.then(en=>ei.QueryVotesResponse.decode(new em.Reader(en)))}Params(en){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new em.Reader(en)))}Deposit(en){let eo=ei.QueryDepositRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","Deposit",eo);return ea.then(en=>ei.QueryDepositResponse.decode(new em.Reader(en)))}Deposits(en){let eo=ei.QueryDepositsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","Deposits",eo);return ea.then(en=>ei.QueryDepositsResponse.decode(new em.Reader(en)))}TallyResult(en){let eo=ei.QueryTallyResultRequest.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Query","TallyResult",eo);return ea.then(en=>ei.QueryTallyResultResponse.decode(new em.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},20750:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgDepositResponse=ei.MsgDeposit=ei.MsgVoteWeightedResponse=ei.MsgVoteWeighted=ei.MsgVoteResponse=ei.MsgVote=ei.MsgSubmitProposalResponse=ei.MsgSubmitProposal=ei.protobufPackage=void 0;let eu=eo(53862),ef=eo(10891),ep=eo(99876),em=eo(81457),eg=ed(eo(83789));function createBaseMsgSubmitProposal(){return{content:void 0,initialDeposit:[],proposer:""}}function createBaseMsgSubmitProposalResponse(){return{proposalId:em.Long.UZERO}}function createBaseMsgVote(){return{proposalId:em.Long.UZERO,voter:"",option:0}}function createBaseMsgVoteResponse(){return{}}function createBaseMsgVoteWeighted(){return{proposalId:em.Long.UZERO,voter:"",options:[]}}function createBaseMsgVoteWeightedResponse(){return{}}function createBaseMsgDeposit(){return{proposalId:em.Long.UZERO,depositor:"",amount:[]}}function createBaseMsgDepositResponse(){return{}}ei.protobufPackage="cosmos.gov.v1beta1",ei.MsgSubmitProposal={encode(en,ei=eg.Writer.create()){for(let eo of(void 0!==en.content&&eu.Any.encode(en.content,ei.uint32(10).fork()).ldelim(),en.initialDeposit))ef.Coin.encode(eo,ei.uint32(18).fork()).ldelim();return""!==en.proposer&&ei.uint32(26).string(en.proposer),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSubmitProposal();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.content=eu.Any.decode(eo,eo.uint32());break;case 2:es.initialDeposit.push(ef.Coin.decode(eo,eo.uint32()));break;case 3:es.proposer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({content:(0,em.isSet)(en.content)?eu.Any.fromJSON(en.content):void 0,initialDeposit:Array.isArray(en?.initialDeposit)?en.initialDeposit.map(en=>ef.Coin.fromJSON(en)):[],proposer:(0,em.isSet)(en.proposer)?String(en.proposer):""}),toJSON(en){let ei={};return void 0!==en.content&&(ei.content=en.content?eu.Any.toJSON(en.content):void 0),en.initialDeposit?ei.initialDeposit=en.initialDeposit.map(en=>en?ef.Coin.toJSON(en):void 0):ei.initialDeposit=[],void 0!==en.proposer&&(ei.proposer=en.proposer),ei},fromPartial(en){let ei=createBaseMsgSubmitProposal();return ei.content=void 0!==en.content&&null!==en.content?eu.Any.fromPartial(en.content):void 0,ei.initialDeposit=en.initialDeposit?.map(en=>ef.Coin.fromPartial(en))||[],ei.proposer=en.proposer??"",ei}},ei.MsgSubmitProposalResponse={encode:(en,ei=eg.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSubmitProposalResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.proposalId=eo.uint64():eo.skipType(7&en)}return es},fromJSON:en=>({proposalId:(0,em.isSet)(en.proposalId)?em.Long.fromValue(en.proposalId):em.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||em.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseMsgSubmitProposalResponse();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?em.Long.fromValue(en.proposalId):em.Long.UZERO,ei}},ei.MsgVote={encode:(en,ei=eg.Writer.create())=>(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),""!==en.voter&&ei.uint32(18).string(en.voter),0!==en.option&&ei.uint32(24).int32(en.option),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgVote();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.voter=eo.string();break;case 3:es.option=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,em.isSet)(en.proposalId)?em.Long.fromValue(en.proposalId):em.Long.UZERO,voter:(0,em.isSet)(en.voter)?String(en.voter):"",option:(0,em.isSet)(en.option)?(0,ep.voteOptionFromJSON)(en.option):0}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||em.Long.UZERO).toString()),void 0!==en.voter&&(ei.voter=en.voter),void 0!==en.option&&(ei.option=(0,ep.voteOptionToJSON)(en.option)),ei},fromPartial(en){let ei=createBaseMsgVote();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?em.Long.fromValue(en.proposalId):em.Long.UZERO,ei.voter=en.voter??"",ei.option=en.option??0,ei}},ei.MsgVoteResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgVoteResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgVoteResponse();return ei}},ei.MsgVoteWeighted={encode(en,ei=eg.Writer.create()){for(let eo of(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),""!==en.voter&&ei.uint32(18).string(en.voter),en.options))ep.WeightedVoteOption.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgVoteWeighted();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.voter=eo.string();break;case 3:es.options.push(ep.WeightedVoteOption.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,em.isSet)(en.proposalId)?em.Long.fromValue(en.proposalId):em.Long.UZERO,voter:(0,em.isSet)(en.voter)?String(en.voter):"",options:Array.isArray(en?.options)?en.options.map(en=>ep.WeightedVoteOption.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||em.Long.UZERO).toString()),void 0!==en.voter&&(ei.voter=en.voter),en.options?ei.options=en.options.map(en=>en?ep.WeightedVoteOption.toJSON(en):void 0):ei.options=[],ei},fromPartial(en){let ei=createBaseMsgVoteWeighted();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?em.Long.fromValue(en.proposalId):em.Long.UZERO,ei.voter=en.voter??"",ei.options=en.options?.map(en=>ep.WeightedVoteOption.fromPartial(en))||[],ei}},ei.MsgVoteWeightedResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgVoteWeightedResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgVoteWeightedResponse();return ei}},ei.MsgDeposit={encode(en,ei=eg.Writer.create()){for(let eo of(en.proposalId.isZero()||ei.uint32(8).uint64(en.proposalId),""!==en.depositor&&ei.uint32(18).string(en.depositor),en.amount))ef.Coin.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgDeposit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.proposalId=eo.uint64();break;case 2:es.depositor=eo.string();break;case 3:es.amount.push(ef.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({proposalId:(0,em.isSet)(en.proposalId)?em.Long.fromValue(en.proposalId):em.Long.UZERO,depositor:(0,em.isSet)(en.depositor)?String(en.depositor):"",amount:Array.isArray(en?.amount)?en.amount.map(en=>ef.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.proposalId&&(ei.proposalId=(en.proposalId||em.Long.UZERO).toString()),void 0!==en.depositor&&(ei.depositor=en.depositor),en.amount?ei.amount=en.amount.map(en=>en?ef.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseMsgDeposit();return ei.proposalId=void 0!==en.proposalId&&null!==en.proposalId?em.Long.fromValue(en.proposalId):em.Long.UZERO,ei.depositor=en.depositor??"",ei.amount=en.amount?.map(en=>ef.Coin.fromPartial(en))||[],ei}},ei.MsgDepositResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgDepositResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgDepositResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.SubmitProposal=this.SubmitProposal.bind(this),this.Vote=this.Vote.bind(this),this.VoteWeighted=this.VoteWeighted.bind(this),this.Deposit=this.Deposit.bind(this)}SubmitProposal(en){let eo=ei.MsgSubmitProposal.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",eo);return ea.then(en=>ei.MsgSubmitProposalResponse.decode(new eg.Reader(en)))}Vote(en){let eo=ei.MsgVote.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",eo);return ea.then(en=>ei.MsgVoteResponse.decode(new eg.Reader(en)))}VoteWeighted(en){let eo=ei.MsgVoteWeighted.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",eo);return ea.then(en=>ei.MsgVoteWeightedResponse.decode(new eg.Reader(en)))}Deposit(en){let eo=ei.MsgDeposit.encode(en).finish(),ea=this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",eo);return ea.then(en=>ei.MsgDepositResponse.decode(new eg.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},88590:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),eu=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ef=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ed(ei,en,eo);return eu(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.CompressedNonExistenceProof=ei.CompressedExistenceProof=ei.CompressedBatchEntry=ei.CompressedBatchProof=ei.BatchEntry=ei.BatchProof=ei.InnerSpec=ei.ProofSpec=ei.InnerOp=ei.LeafOp=ei.CommitmentProof=ei.NonExistenceProof=ei.ExistenceProof=ei.lengthOpToJSON=ei.lengthOpFromJSON=ei.LengthOp=ei.hashOpToJSON=ei.hashOpFromJSON=ei.HashOp=ei.protobufPackage=void 0;let ep=ef(eo(83789)),em=eo(81457);function hashOpFromJSON(en){switch(en){case 0:case"NO_HASH":return ea.NO_HASH;case 1:case"SHA256":return ea.SHA256;case 2:case"SHA512":return ea.SHA512;case 3:case"KECCAK":return ea.KECCAK;case 4:case"RIPEMD160":return ea.RIPEMD160;case 5:case"BITCOIN":return ea.BITCOIN;case 6:case"SHA512_256":return ea.SHA512_256;default:return ea.UNRECOGNIZED}}function hashOpToJSON(en){switch(en){case ea.NO_HASH:return"NO_HASH";case ea.SHA256:return"SHA256";case ea.SHA512:return"SHA512";case ea.KECCAK:return"KECCAK";case ea.RIPEMD160:return"RIPEMD160";case ea.BITCOIN:return"BITCOIN";case ea.SHA512_256:return"SHA512_256";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function lengthOpFromJSON(en){switch(en){case 0:case"NO_PREFIX":return es.NO_PREFIX;case 1:case"VAR_PROTO":return es.VAR_PROTO;case 2:case"VAR_RLP":return es.VAR_RLP;case 3:case"FIXED32_BIG":return es.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return es.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return es.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return es.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return es.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return es.REQUIR
4E_64_BYTES;default:return es.UNRECOGNIZED}}function lengthOpToJSON(en){switch(en){case es.NO_PREFIX:return"NO_PREFIX";case es.VAR_PROTO:return"VAR_PROTO";case es.VAR_RLP:return"VAR_RLP";case es.FIXED32_BIG:return"FIXED32_BIG";case es.FIXED32_LITTLE:return"FIXED32_LITTLE";case es.FIXED64_BIG:return"FIXED64_BIG";case es.FIXED64_LITTLE:return"FIXED64_LITTLE";case es.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case es.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseExistenceProof(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function createBaseNonExistenceProof(){return{key:new Uint8Array,left:void 0,right:void 0}}function createBaseCommitmentProof(){return{exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0}}function createBaseLeafOp(){return{hash:0,prehashKey:0,prehashValue:0,length:0,prefix:new Uint8Array}}function createBaseInnerOp(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}function createBaseProofSpec(){return{leafSpec:void 0,innerSpec:void 0,maxDepth:0,minDepth:0}}function createBaseInnerSpec(){return{childOrder:[],childSize:0,minPrefixLength:0,maxPrefixLength:0,emptyChild:new Uint8Array,hash:0}}function createBaseBatchProof(){return{entries:[]}}function createBaseBatchEntry(){return{exist:void 0,nonexist:void 0}}function createBaseCompressedBatchProof(){return{entries:[],lookupInners:[]}}function createBaseCompressedBatchEntry(){return{exist:void 0,nonexist:void 0}}function createBaseCompressedExistenceProof(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function createBaseCompressedNonExistenceProof(){return{key:new Uint8Array,left:void 0,right:void 0}}ei.protobufPackage="cosmos.ics23.v1",function(en){en[en.NO_HASH=0]="NO_HASH",en[en.SHA256=1]="SHA256",en[en.SHA512=2]="SHA512",en[en.KECCAK=3]="KECCAK",en[en.RIPEMD160=4]="RIPEMD160",en[en.BITCOIN=5]="BITCOIN",en[en.SHA512_256=6]="SHA512_256",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.HashOp||(ei.HashOp={})),ei.hashOpFromJSON=hashOpFromJSON,ei.hashOpToJSON=hashOpToJSON,function(en){en[en.NO_PREFIX=0]="NO_PREFIX",en[en.VAR_PROTO=1]="VAR_PROTO",en[en.VAR_RLP=2]="VAR_RLP",en[en.FIXED32_BIG=3]="FIXED32_BIG",en[en.FIXED32_LITTLE=4]="FIXED32_LITTLE",en[en.FIXED64_BIG=5]="FIXED64_BIG",en[en.FIXED64_LITTLE=6]="FIXED64_LITTLE",en[en.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",en[en.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.LengthOp||(ei.LengthOp={})),ei.lengthOpFromJSON=lengthOpFromJSON,ei.lengthOpToJSON=lengthOpToJSON,ei.ExistenceProof={encode(en,eo=ep.Writer.create()){for(let ea of(0!==en.key.length&&eo.uint32(10).bytes(en.key),0!==en.value.length&&eo.uint32(18).bytes(en.value),void 0!==en.leaf&&ei.LeafOp.encode(en.leaf,eo.uint32(26).fork()).ldelim(),en.path))ei.InnerOp.encode(ea,eo.uint32(34).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseExistenceProof();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.key=ea.bytes();break;case 2:ed.value=ea.bytes();break;case 3:ed.leaf=ei.LeafOp.decode(ea,ea.uint32());break;case 4:ed.path.push(ei.InnerOp.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({key:(0,em.isSet)(en.key)?(0,em.bytesFromBase64)(en.key):new Uint8Array,value:(0,em.isSet)(en.value)?(0,em.bytesFromBase64)(en.value):new Uint8Array,leaf:(0,em.isSet)(en.leaf)?ei.LeafOp.fromJSON(en.leaf):void 0,path:Array.isArray(en?.path)?en.path.map(en=>ei.InnerOp.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.key&&(eo.key=(0,em.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.value&&(eo.value=(0,em.base64FromBytes)(void 0!==en.value?en.value:new Uint8Array)),void 0!==en.leaf&&(eo.leaf=en.leaf?ei.LeafOp.toJSON(en.leaf):void 0),en.path?eo.path=en.path.map(en=>en?ei.InnerOp.toJSON(en):void 0):eo.path=[],eo},fromPartial(en){let eo=createBaseExistenceProof();return eo.key=en.key??new Uint8Array,eo.value=en.value??new Uint8Array,eo.leaf=void 0!==en.leaf&&null!==en.leaf?ei.LeafOp.fromPartial(en.leaf):void 0,eo.path=en.path?.map(en=>ei.InnerOp.fromPartial(en))||[],eo}},ei.NonExistenceProof={encode:(en,eo=ep.Writer.create())=>(0!==en.key.length&&eo.uint32(10).bytes(en.key),void 0!==en.left&&ei.ExistenceProof.encode(en.left,eo.uint32(18).fork()).ldelim(),void 0!==en.right&&ei.ExistenceProof.encode(en.right,eo.uint32(26).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseNonExistenceProof();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.key=ea.bytes();break;case 2:ed.left=ei.ExistenceProof.decode(ea,ea.uint32());break;case 3:ed.right=ei.ExistenceProof.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({key:(0,em.isSet)(en.key)?(0,em.bytesFromBase64)(en.key):new Uint8Array,left:(0,em.isSet)(en.left)?ei.ExistenceProof.fromJSON(en.left):void 0,right:(0,em.isSet)(en.right)?ei.ExistenceProof.fromJSON(en.right):void 0}),toJSON(en){let eo={};return void 0!==en.key&&(eo.key=(0,em.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.left&&(eo.left=en.left?ei.ExistenceProof.toJSON(en.left):void 0),void 0!==en.right&&(eo.right=en.right?ei.ExistenceProof.toJSON(en.right):void 0),eo},fromPartial(en){let eo=createBaseNonExistenceProof();return eo.key=en.key??new Uint8Array,eo.left=void 0!==en.left&&null!==en.left?ei.ExistenceProof.fromPartial(en.left):void 0,eo.right=void 0!==en.right&&null!==en.right?ei.ExistenceProof.fromPartial(en.right):void 0,eo}},ei.CommitmentProof={encode:(en,eo=ep.Writer.create())=>(void 0!==en.exist&&ei.ExistenceProof.encode(en.exist,eo.uint32(10).fork()).ldelim(),void 0!==en.nonexist&&ei.NonExistenceProof.encode(en.nonexist,eo.uint32(18).fork()).ldelim(),void 0!==en.batch&&ei.BatchProof.encode(en.batch,eo.uint32(26).fork()).ldelim(),void 0!==en.compressed&&ei.
4CompressedBatchProof.encode(en.compressed,eo.uint32(34).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCommitmentProof();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.exist=ei.ExistenceProof.decode(ea,ea.uint32());break;case 2:ed.nonexist=ei.NonExistenceProof.decode(ea,ea.uint32());break;case 3:ed.batch=ei.BatchProof.decode(ea,ea.uint32());break;case 4:ed.compressed=ei.CompressedBatchProof.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({exist:(0,em.isSet)(en.exist)?ei.ExistenceProof.fromJSON(en.exist):void 0,nonexist:(0,em.isSet)(en.nonexist)?ei.NonExistenceProof.fromJSON(en.nonexist):void 0,batch:(0,em.isSet)(en.batch)?ei.BatchProof.fromJSON(en.batch):void 0,compressed:(0,em.isSet)(en.compressed)?ei.CompressedBatchProof.fromJSON(en.compressed):void 0}),toJSON(en){let eo={};return void 0!==en.exist&&(eo.exist=en.exist?ei.ExistenceProof.toJSON(en.exist):void 0),void 0!==en.nonexist&&(eo.nonexist=en.nonexist?ei.NonExistenceProof.toJSON(en.nonexist):void 0),void 0!==en.batch&&(eo.batch=en.batch?ei.BatchProof.toJSON(en.batch):void 0),void 0!==en.compressed&&(eo.compressed=en.compressed?ei.CompressedBatchProof.toJSON(en.compressed):void 0),eo},fromPartial(en){let eo=createBaseCommitmentProof();return eo.exist=void 0!==en.exist&&null!==en.exist?ei.ExistenceProof.fromPartial(en.exist):void 0,eo.nonexist=void 0!==en.nonexist&&null!==en.nonexist?ei.NonExistenceProof.fromPartial(en.nonexist):void 0,eo.batch=void 0!==en.batch&&null!==en.batch?ei.BatchProof.fromPartial(en.batch):void 0,eo.compressed=void 0!==en.compressed&&null!==en.compressed?ei.CompressedBatchProof.fromPartial(en.compressed):void 0,eo}},ei.LeafOp={encode:(en,ei=ep.Writer.create())=>(0!==en.hash&&ei.uint32(8).int32(en.hash),0!==en.prehashKey&&ei.uint32(16).int32(en.prehashKey),0!==en.prehashValue&&ei.uint32(24).int32(en.prehashValue),0!==en.length&&ei.uint32(32).int32(en.length),0!==en.prefix.length&&ei.uint32(42).bytes(en.prefix),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLeafOp();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.hash=eo.int32();break;case 2:es.prehashKey=eo.int32();break;case 3:es.prehashValue=eo.int32();break;case 4:es.length=eo.int32();break;case 5:es.prefix=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({hash:(0,em.isSet)(en.hash)?hashOpFromJSON(en.hash):0,prehashKey:(0,em.isSet)(en.prehashKey)?hashOpFromJSON(en.prehashKey):0,prehashValue:(0,em.isSet)(en.prehashValue)?hashOpFromJSON(en.prehashValue):0,length:(0,em.isSet)(en.length)?lengthOpFromJSON(en.length):0,prefix:(0,em.isSet)(en.prefix)?(0,em.bytesFromBase64)(en.prefix):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.hash&&(ei.hash=hashOpToJSON(en.hash)),void 0!==en.prehashKey&&(ei.prehashKey=hashOpToJSON(en.prehashKey)),void 0!==en.prehashValue&&(ei.prehashValue=hashOpToJSON(en.prehashValue)),void 0!==en.length&&(ei.length=lengthOpToJSON(en.length)),void 0!==en.prefix&&(ei.prefix=(0,em.base64FromBytes)(void 0!==en.prefix?en.prefix:new Uint8Array)),ei},fromPartial(en){let ei=createBaseLeafOp();return ei.hash=en.hash??0,ei.prehashKey=en.prehashKey??0,ei.prehashValue=en.prehashValue??0,ei.length=en.length??0,ei.prefix=en.prefix??new Uint8Array,ei}},ei.InnerOp={encode:(en,ei=ep.Writer.create())=>(0!==en.hash&&ei.uint32(8).int32(en.hash),0!==en.prefix.length&&ei.uint32(18).bytes(en.prefix),0!==en.suffix.length&&ei.uint32(26).bytes(en.suffix),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseInnerOp();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.hash=eo.int32();break;case 2:es.prefix=eo.bytes();break;case 3:es.suffix=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({hash:(0,em.isSet)(en.hash)?hashOpFromJSON(en.hash):0,prefix:(0,em.isSet)(en.prefix)?(0,em.bytesFromBase64)(en.prefix):new Uint8Array,suffix:(0,em.isSet)(en.suffix)?(0,em.bytesFromBase64)(en.suffix):new Uint8Array}),toJSON(en){let ei={};
4return void 0!==en.hash&&(ei.hash=hashOpToJSON(en.hash)),void 0!==en.prefix&&(ei.prefix=(0,em.base64FromBytes)(void 0!==en.prefix?en.prefix:new Uint8Array)),void 0!==en.suffix&&(ei.suffix=(0,em.base64FromBytes)(void 0!==en.suffix?en.suffix:new Uint8Array)),ei},fromPartial(en){let ei=createBaseInnerOp();return ei.hash=en.hash??0,ei.prefix=en.prefix??new Uint8Array,ei.suffix=en.suffix??new Uint8Array,ei}},ei.ProofSpec={encode:(en,eo=ep.Writer.create())=>(void 0!==en.leafSpec&&ei.LeafOp.encode(en.leafSpec,eo.uint32(10).fork()).ldelim(),void 0!==en.innerSpec&&ei.InnerSpec.encode(en.innerSpec,eo.uint32(18).fork()).ldelim(),0!==en.maxDepth&&eo.uint32(24).int32(en.maxDepth),0!==en.minDepth&&eo.uint32(32).int32(en.minDepth),eo),decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseProofSpec();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.leafSpec=ei.LeafOp.decode(ea,ea.uint32());break;case 2:ed.innerSpec=ei.InnerSpec.decode(ea,ea.uint32());break;case 3:ed.maxDepth=ea.int32();break;case 4:ed.minDepth=ea.int32();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({leafSpec:(0,em.isSet)(en.leafSpec)?ei.LeafOp.fromJSON(en.leafSpec):void 0,innerSpec:(0,em.isSet)(en.innerSpec)?ei.InnerSpec.fromJSON(en.innerSpec):void 0,maxDepth:(0,em.isSet)(en.maxDepth)?Number(en.maxDepth):0,minDepth:(0,em.isSet)(en.minDepth)?Number(en.minDepth):0}),toJSON(en){let eo={};return void 0!==en.leafSpec&&(eo.leafSpec=en.leafSpec?ei.LeafOp.toJSON(en.leafSpec):void 0),void 0!==en.innerSpec&&(eo.innerSpec=en.innerSpec?ei.InnerSpec.toJSON(en.innerSpec):void 0),void 0!==en.maxDepth&&(eo.maxDepth=Math.round(en.maxDepth)),void 0!==en.minDepth&&(eo.minDepth=Math.round(en.minDepth)),eo},fromPartial(en){let eo=createBaseProofSpec();return eo.leafSpec=void 0!==en.leafSpec&&null!==en.leafSpec?ei.LeafOp.fromPartial(en.leafSpec):void 0,eo.innerSpec=void 0!==en.innerSpec&&null!==en.innerSpec?ei.InnerSpec.fromPartial(en.innerSpec):void 0,eo.maxDepth=en.maxDepth??0,eo.minDepth=en.minDepth??0,eo}},ei.InnerSpec={encode(en,ei=ep.Writer.create()){for(let eo of(ei.uint32(10).fork(),en.childOrder))ei.int32(eo);return ei.ldelim(),0!==en.childSize&&ei.uint32(16).int32(en.childSize),0!==en.minPrefixLength&&ei.uint32(24).int32(en.minPrefixLength),0!==en.maxPrefixLength&&ei.uint32(32).int32(en.maxPrefixLength),0!==en.emptyChild.length&&ei.uint32(42).bytes(en.emptyChild),0!==en.hash&&ei.uint32(48).int32(en.hash),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseInnerSpec();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.childOrder.push(eo.int32())}else es.childOrder.push(eo.int32());break;case 2:es.childSize=eo.int32();break;case 3:es.minPrefixLength=eo.int32();break;case 4:es.maxPrefixLength=eo.int32();break;case 5:es.emptyChild=eo.bytes();break;case 6:es.hash=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({childOrder:Array.isArray(en?.childOrder)?en.childOrder.map(en=>Number(en)):[],childSize:(0,em.isSet)(en.childSize)?Number(en.childSize):0,minPrefixLength:(0,em.isSet)(en.minPrefixLength)?Number(en.minPrefixLength):0,maxPrefixLength:(0,em.isSet)(en.maxPrefixLength)?Number(en.maxPrefixLength):0,emptyChild:(0,em.isSet)(en.emptyChild)?(0,em.bytesFromBase64)(en.emptyChild):new Uint8Array,hash:(0,em.isSet)(en.hash)?hashOpFromJSON(en.hash):0}),toJSON(en){let ei={};return en.childOrder?ei.childOrder=en.childOrder.map(en=>Math.round(en)):ei.childOrder=[],void 0!==en.childSize&&(ei.childSize=Math.round(en.childSize)),void 0!==en.minPrefixLength&&(ei.minPrefixLength=Math.round(en.minPrefixLength)),void 0!==en.maxPrefixLength&&(ei.maxPrefixLength=Math.round(en.maxPrefixLength)),void 0!==en.emptyChild&&(ei.emptyChild=(0,em.base64FromBytes)(void 0!==en.emptyChild?en.emptyChild:new Uint8Array)),void 0!==en.hash&&(ei.hash=hashOpToJSON(en.hash)),ei},fromPartial(en){let ei=createBaseInnerSpec();return ei.childOrder=en.childOrder?.map(en=>en)||[],ei.childSize=en.childSize??0,ei.minPrefixLength=en.minPrefixLength??0,ei.maxPrefixLength=en.maxPrefixLength??0,ei.emptyChild=en.emptyChild??new Uint8Array,ei.hash=en.hash??0,ei}},ei.BatchProof={encode(en,eo=ep.Writer.create()){for(let ea of en.entries)ei.BatchEntry.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseBatchProof();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.entries.push(ei.BatchEntry.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({entries:Array.isArray(en?.entries)?en.entries.map(en=>ei.BatchEntry.fromJSON(en)):[]}),toJSON(en){let eo={};
4return en.entries?eo.entries=en.entries.map(en=>en?ei.BatchEntry.toJSON(en):void 0):eo.entries=[],eo},fromPartial(en){let eo=createBaseBatchProof();return eo.entries=en.entries?.map(en=>ei.BatchEntry.fromPartial(en))||[],eo}},ei.BatchEntry={encode:(en,eo=ep.Writer.create())=>(void 0!==en.exist&&ei.ExistenceProof.encode(en.exist,eo.uint32(10).fork()).ldelim(),void 0!==en.nonexist&&ei.NonExistenceProof.encode(en.nonexist,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseBatchEntry();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.exist=ei.ExistenceProof.decode(ea,ea.uint32());break;case 2:ed.nonexist=ei.NonExistenceProof.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({exist:(0,em.isSet)(en.exist)?ei.ExistenceProof.fromJSON(en.exist):void 0,nonexist:(0,em.isSet)(en.nonexist)?ei.NonExistenceProof.fromJSON(en.nonexist):void 0}),toJSON(en){let eo={};return void 0!==en.exist&&(eo.exist=en.exist?ei.ExistenceProof.toJSON(en.exist):void 0),void 0!==en.nonexist&&(eo.nonexist=en.nonexist?ei.NonExistenceProof.toJSON(en.nonexist):void 0),eo},fromPartial(en){let eo=createBaseBatchEntry();return eo.exist=void 0!==en.exist&&null!==en.exist?ei.ExistenceProof.fromPartial(en.exist):void 0,eo.nonexist=void 0!==en.nonexist&&null!==en.nonexist?ei.NonExistenceProof.fromPartial(en.nonexist):void 0,eo}},ei.CompressedBatchProof={encode(en,eo=ep.Writer.create()){for(let ea of en.entries)ei.CompressedBatchEntry.encode(ea,eo.uint32(10).fork()).ldelim();for(let ea of en.lookupInners)ei.InnerOp.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCompressedBatchProof();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.entries.push(ei.CompressedBatchEntry.decode(ea,ea.uint32()));break;case 2:ed.lookupInners.push(ei.InnerOp.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({entries:Array.isArray(en?.entries)?en.entries.map(en=>ei.CompressedBatchEntry.fromJSON(en)):[],lookupInners:Array.isArray(en?.lookupInners)?en.lookupInners.map(en=>ei.InnerOp.fromJSON(en)):[]}),toJSON(en){let eo={};
4return en.entries?eo.entries=en.entries.map(en=>en?ei.CompressedBatchEntry.toJSON(en):void 0):eo.entries=[],en.lookupInners?eo.lookupInners=en.lookupInners.map(en=>en?ei.InnerOp.toJSON(en):void 0):eo.lookupInners=[],eo},fromPartial(en){let eo=createBaseCompressedBatchProof();return eo.entries=en.entries?.map(en=>ei.CompressedBatchEntry.fromPartial(en))||[],eo.lookupInners=en.lookupInners?.map(en=>ei.InnerOp.fromPartial(en))||[],eo}},ei.CompressedBatchEntry={encode:(en,eo=ep.Writer.create())=>(void 0!==en.exist&&ei.CompressedExistenceProof.encode(en.exist,eo.uint32(10).fork()).ldelim(),void 0!==en.nonexist&&ei.CompressedNonExistenceProof.encode(en.nonexist,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCompressedBatchEntry();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.exist=ei.CompressedExistenceProof.decode(ea,ea.uint32());break;case 2:ed.nonexist=ei.CompressedNonExistenceProof.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({exist:(0,em.isSet)(en.exist)?ei.CompressedExistenceProof.fromJSON(en.exist):void 0,nonexist:(0,em.isSet)(en.nonexist)?ei.CompressedNonExistenceProof.fromJSON(en.nonexist):void 0}),toJSON(en){let eo={};return void 0!==en.exist&&(eo.exist=en.exist?ei.CompressedExistenceProof.toJSON(en.exist):void 0),void 0!==en.nonexist&&(eo.nonexist=en.nonexist?ei.CompressedNonExistenceProof.toJSON(en.nonexist):void 0),eo},fromPartial(en){let eo=createBaseCompressedBatchEntry();return eo.exist=void 0!==en.exist&&null!==en.exist?ei.CompressedExistenceProof.fromPartial(en.exist):void 0,eo.nonexist=void 0!==en.nonexist&&null!==en.nonexist?ei.CompressedNonExistenceProof.fromPartial(en.nonexist):void 0,eo}},ei.CompressedExistenceProof={encode(en,eo=ep.Writer.create()){for(let ea of(0!==en.key.length&&eo.uint32(10).bytes(en.key),0!==en.value.length&&eo.uint32(18).bytes(en.value),void 0!==en.leaf&&ei.LeafOp.encode(en.leaf,eo.uint32(26).fork()).ldelim(),eo.uint32(34).fork(),en.path))eo.int32(ea);return eo.ldelim(),eo},decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCompressedExistenceProof();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.key=ea.bytes();break;case 2:ed.value=ea.bytes();break;case 3:ed.leaf=ei.LeafOp.decode(ea,ea.uint32());break;case 4:if((7&en)==2){let en=ea.uint32()+ea.pos;for(;ea.pos<en;)ed.path.push(ea.int32())}else ed.path.push(ea.int32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({key:(0,em.isSet)(en.key)?(0,em.bytesFromBase64)(en.key):new Uint8Array,value:(0,em.isSet)(en.value)?(0,em.bytesFromBase64)(en.value):new Uint8Array,leaf:(0,em.isSet)(en.leaf)?ei.LeafOp.fromJSON(en.leaf):void 0,path:Array.isArray(en?.path)?en.path.map(en=>Number(en)):[]}),toJSON(en){let eo={};return void 0!==en.key&&(eo.key=(0,em.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.value&&(eo.value=(0,em.base64FromBytes)(void 0!==en.value?en.value:new Uint8Array)),void 0!==en.leaf&&(eo.leaf=en.leaf?ei.LeafOp.toJSON(en.leaf):void 0),en.path?eo.path=en.path.map(en=>Math.round(en)):eo.path=[],eo},fromPartial(en){let eo=createBaseCompressedExistenceProof();return eo.key=en.key??new Uint8Array,eo.value=en.value??new Uint8Array,eo.leaf=void 0!==en.leaf&&null!==en.leaf?ei.LeafOp.fromPartial(en.leaf):void 0,eo.path=en.path?.map(en=>en)||[],eo}},ei.CompressedNonExistenceProof={encode:(en,eo=ep.Writer.create())=>(0!==en.key.length&&eo.uint32(10).bytes(en.key),void 0!==en.left&&ei.CompressedExistenceProof.encode(en.left,eo.uint32(18).fork()).ldelim(),void 0!==en.right&&ei.CompressedExistenceProof.encode(en.right,eo.uint32(26).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCompressedNonExistenceProof();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.key=ea.bytes();break;case 2:ed.left=ei.CompressedExistenceProof.decode(ea,ea.uint32());break;case 3:ed.right=ei.CompressedExistenceProof.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({key:(0,em.isSet)(en.key)?(0,em.bytesFromBase64)(en.key):new Uint8Array,left:(0,em.isSet)(en.left)?ei.CompressedExistenceProof.fromJSON(en.left):void 0,right:(0,em.isSet)(en.right)?ei.CompressedExistenceProof.fromJSON(en.right):void 0}),toJSON(en){let eo={};return void 0!==en.key&&(eo.key=(0,em.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.left&&(eo.left=en.left?ei.CompressedExistenceProof.toJSON(en.left):void 0),void 0!==en.right&&(eo.right=en.right?ei.CompressedExistenceProof.toJSON(en.right):void 0),eo},fromPartial(en){let eo=createBaseCompressedNonExistenceProof();return eo.key=en.key??new Uint8Array,eo.left=void 0!==en.left&&null!==en.left?ei.CompressedExistenceProof.fromPartial(en.left):void 0,eo.right=void 0!==en.right&&null!==en.right?ei.CompressedExistenceProof.fromPartial(en.right):void 0,eo}}},44638:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=ei.Minter=ei.protobufPackage=void 0;let eu=eo(81457),ef=ed(eo(83789));function createBaseMinter(){return{inflation:"",annualProvisions:""}}function createBaseParams(){return{mintDenom:"",inflationRateChange:"",inflationMax:"",inflationMin:"",goalBonded:"",blocksPerYear:eu.Long.UZERO}}ei.protobufPackage="cosmos.mint.v1beta1",ei.Minter={encode:(en,ei=ef.Writer.create())=>(""!==en.inflation&&ei.uint32(10).string(en.inflation),""!==en.annualProvisions&&ei.uint32(18).string(en.annualProvisions),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMinter();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.inflation=eo.string();break;case 2:es.annualProvisions=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({inflation:(0,eu.isSet)(en.inflation)?String(en.inflation):"",annualProvisions:(0,eu.isSet)(en.annualProvisions)?String(en.annualProvisions):""}),toJSON(en){let ei={};return void 0!==en.inflation&&(ei.inflation=en.inflation),void 0!==en.annualProvisions&&(ei.annualProvisions=en.annualProvisions),ei},fromPartial(en){let ei=createBaseMinter();return ei.inflation=en.inflation??"",ei.annualProvisions=en.annualProvisions??"",ei}},ei.Params={encode:(en,ei=ef.Writer.create())=>(""!==en.mintDenom&&ei.uint32(10).string(en.mintDenom),""!==en.inflationRateChange&&ei.uint32(18).string(en.inflationRateChange),""!==en.inflationMax&&ei.uint32(26).string(en.inflationMax),""!==en.inflationMin&&ei.uint32(34).string(en.inflationMin),""!==en.goalBonded&&ei.uint32(42).string(en.goalBonded),en.blocksPerYear.isZero()||ei.uint32(48).uint64(en.blocksPerYear),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.mintDenom=eo.string();break;case 2:es.inflationRateChange=eo.string();break;case 3:es.inflationMax=eo.string();break;case 4:es.inflationMin=eo.string();break;case 5:es.goalBonded=eo.string();break;case 6:es.blocksPerYear=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({mintDenom:(0,eu.isSet)(en.mintDenom)?String(en.mintDenom):"",inflationRateChange:(0,eu.isSet)(en.inflationRateChange)?String(en.inflationRateChange):"",inflationMax:(0,eu.isSet)(en.inflationMax)?String(en.inflationMax):"",inflationMin:(0,eu.isSet)(en.inflationMin)?String(en.inflationMin):"",goalBonded:(0,eu.isSet)(en.goalBonded)?String(en.goalBonded):"",blocksPerYear:(0,eu.isSet)(en.blocksPerYear)?eu.Long.fromValue(en.blocksPerYear):eu.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.mintDenom&&(ei.mintDenom=en.mintDenom),void 0!==en.inflationRateChange&&(ei.inflationRateChange=en.inflationRateChange),void 0!==en.inflationMax&&(ei.inflationMax=en.inflationMax),void 0!==en.inflationMin&&(ei.inflationMin=en.inflationMin),void 0!==en.goalBonded&&(ei.goalBonded=e
4n.goalBonded),void 0!==en.blocksPerYear&&(ei.blocksPerYear=(en.blocksPerYear||eu.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseParams();return ei.mintDenom=en.mintDenom??"",ei.inflationRateChange=en.inflationRateChange??"",ei.inflationMax=en.inflationMax??"",ei.inflationMin=en.inflationMin??"",ei.goalBonded=en.goalBonded??"",ei.blocksPerYear=void 0!==en.blocksPerYear&&null!==en.blocksPerYear?eu.Long.fromValue(en.blocksPerYear):eu.Long.UZERO,ei}}},82879:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryAnnualProvisionsResponse=ei.QueryAnnualProvisionsRequest=ei.QueryInflationResponse=ei.QueryInflationRequest=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.protobufPackage=void 0;let eu=eo(44638),ef=ed(eo(83789)),ep=eo(81457);function createBaseQueryParamsRequest(){return{}}function createBaseQueryParamsResponse(){return{params:void 0}}function createBaseQueryInflationRequest(){return{}}function createBaseQueryInflationResponse(){return{inflation:new Uint8Array}}function createBaseQueryAnnualProvisionsRequest(){return{}}function createBaseQueryAnnualProvisionsResponse(){return{annualProvisions:new Uint8Array}}ei.protobufPackage="cosmos.mint.v1beta1",ei.QueryParamsRequest={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei}},ei.QueryParamsResponse={encode:(en,ei=ef.Writer.create())=>(void 0!==en.params&&eu.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.params=eu.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,ep.isSet)(en.params)?eu.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?eu.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?eu.Params.fromPartial(en.params):void 0,ei}},ei.QueryInflationRequest={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryInflationRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryInflationRequest();return ei}},ei.QueryInflationResponse={encode:(en,ei=ef.Writer.create())=>(0!==en.inflation.length&&ei.uint32(10).bytes(en.inflation),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryInflationResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.inflation=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({inflation:(0,ep.isSet)(en.inflation)?(0,ep.bytesFromBase64)(en.inflation):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.inflation&&(ei.inflation=(0,ep.base64FromBytes)(void 0!==en.inflation?en.inflation:new Uint8Array)),ei},fromPartial(en){let ei=createBaseQueryInflationResponse();return ei.inflation=en.inflation??new Uint8Array,ei}},ei.QueryAnnualProvisionsRequest={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAnnualProvisionsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryAnnualProvisionsRequest();return ei}},ei.QueryAnnualProvisionsResponse={encode:(en,ei=ef.Writer.create())=>(0!==en.annualProvisions.length&&ei.uint32(10).bytes(en.annualProvisions),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryAnnualProvisionsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.annualProvisions=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({annualProvisions:(0,ep.isSet)(en.annualProvisions)?(0,ep.bytesFromBase64)(en.annualProvisions):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.annualProvisions&&(ei.annualProvisions=(0,ep.base64FromBytes)(void 0!==en.annualProvisions?en.annualProvisions:new Uint8Array)),ei},fromPartial(en){let ei=createBaseQueryAnnualProvisionsResponse();return ei.annualProvisions=en.annualProvisions??new Uint8Array,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Params=this.Params.bind(this),this.Inflation=this.Inflation.bind(this),this.AnnualProvisions=this.AnnualProvisions.bind(this)}Params(en={}){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.mint.v1beta1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new ef.Reader(en)))}Inflation(en={}){let eo=ei.QueryInflationRequest.encode(en).finish(),ea=this.rpc.request("cosmos.mint.v1beta1.Query","Inflation",eo);return ea.then(en=>ei.QueryInflationResponse.decode(new ef.Reader(en)))}AnnualProvisions(en={}){let eo=ei.QueryAnnualProvisionsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.mint.v1beta1.Query","AnnualProvisions",eo);return ea.then(en=>ei.QueryAnnualProvisionsResponse.decode(new ef.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},26701:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QuerySigningInfosResponse=ei.QuerySigningInfosRequest=ei.QuerySigningInfoResponse=ei.QuerySigningInfoRequest=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(9726),ep=ed(eo(83789)),em=eo(81457);function createBaseQueryParamsRequest(){return{}}function createBaseQueryParamsResponse(){return{params:void 0}}function createBaseQuerySigningInfoRequest(){return{consAddress:""}}function createBaseQuerySigningInfoResponse(){return{valSigningInfo:void 0}}function createBaseQuerySigningInfosRequest(){return{pagination:void 0}}function createBaseQuerySigningInfosResponse(){return{info:[],pagination:void 0}}ei.protobufPackage="cosmos.slashing.v1beta1",ei.QueryParamsRequest={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei}},ei.QueryParamsResponse={encode:(en,ei=ep.Writer.create())=>(void 0!==en.params&&ef.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.params=ef.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,em.isSet)(en.params)?ef.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ef.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ef.Params.fromPartial(en.params):void 0,ei}},ei.QuerySigningInfoRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.consAddress&&ei.uint32(10).string(en.consAddress),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySigningInfoRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.consAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({consAddress:(0,em.isSet)(en.consAddress)?String(en.consAddress):""}),toJSON(en){let ei={};return void 0!==en.consAddress&&(ei.consAddress=en.consAddress),ei},fromPartial(en){let ei=createBaseQuerySigningInfoRequest();return ei.consAddress=en.consAddress??"",ei}},ei.QuerySigningInfoResponse={encode:(en,ei=ep.Writer.create())=>(void 0!==en.valSigningInfo&&ef.ValidatorSigningInfo.encode(en.valSigningInfo,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySigningInfoResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.valSigningInfo=ef.ValidatorSigningInfo.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({valSigningInfo:(0,em.isSet)(en.valSigningInfo)?ef.ValidatorSigningInfo.fromJSON(en.valSigningInfo):void 0}),toJSON(en){let ei={};return void 0!==en.valSigningInfo&&(ei.valSigningInfo=en.valSigningInfo?ef.ValidatorSigningInfo.toJSON(en.valSigningInfo):void 0),ei},fromPartial(en){let ei=createBaseQuerySigningInfoResponse();return ei.valSigningInfo=void 0!==en.valSigningInfo&&null!==en.valSigningInfo?ef.ValidatorSigningInfo.fromPartial(en.valSigningInfo):void 0,ei}},ei.QuerySigningInfosRequest={encode:(en,ei=ep.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySigningInfosRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQuerySigningInfosRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QuerySigningInfosResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.info)ef.ValidatorSigningInfo.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQuerySigningInfosResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.info.push(ef.ValidatorSigningInfo.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({info:Array.isArray(en?.info)?en.info.map(en=>ef.ValidatorSigningInfo.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.info?ei.info=en.info.map(en=>en?ef.ValidatorSigningInfo.toJSON(en):void 0):ei.info=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQuerySigningInfosResponse();return ei.info=en.info?.map(en=>ef.ValidatorSigningInfo.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Params=this.Params.bind(this),this.SigningInfo=this.SigningInfo.bind(this),this.SigningInfos=this.SigningInfos.bind(this)}Params(en={}){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.slashing.v1beta1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new ep.Reader(en)))}SigningInfo(en){let eo=ei.QuerySigningInfoRequest.encode(en).finish(),ea=this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfo",eo);return ea.then(en=>ei.QuerySigningInfoResponse.decode(new ep.Reader(en)))}SigningInfos(en={pagination:void 0}){let eo=ei.QuerySigningInfosRequest.encode(en).finish(),ea=this.rpc.request("cosmos.slashing.v1beta1.Query","SigningInfos",eo);return ea.then(en=>ei.QuerySigningInfosResponse.decode(new ep.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},9726:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=ei.ValidatorSigningInfo=ei.protobufPackage=void 0;let eu=eo(85522),ef=eo(70281),ep=eo(81457),em=ed(eo(83789));function createBaseValidatorSigningInfo(){return{address:"",startHeight:ep.Long.ZERO,indexOffset:ep.Long.ZERO,jailedUntil:void 0,tombstoned:!1,missedBlocksCounter:ep.Long.ZERO}}function createBaseParams(){return{signedBlocksWindow:ep.Long.ZERO,minSignedPerWindow:new Uint8Array,downtimeJailDuration:void 0,slashFractionDoubleSign:new Uint8Array,slashFractionDowntime:new Uint8Array}}ei.protobufPackage="cosmos.slashing.v1beta1",ei.ValidatorSigningInfo={encode:(en,ei=em.Writer.create())=>(""!==en.address&&ei.uint32(10).string(en.address),en.startHeight.isZero()||ei.uint32(16).int64(en.startHeight),en.indexOffset.isZero()||ei.uint32(24).int64(en.indexOffset),void 0!==en.jailedUntil&&eu.Timestamp.encode(en.jailedUntil,ei.uint32(34).fork()).ldelim(),!0===en.tombstoned&&ei.uint32(40).bool(en.tombstoned),en.missedBlocksCounter.isZero()||ei.uint32(48).int64(en.missedBlocksCounter),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorSigningInfo();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.string();break;case 2:es.startHeight=eo.int64();break;case 3:es.indexOffset=eo.int64();break;case 4:es.jailedUntil=eu.Timestamp.decode(eo,eo.uint32());break;case 5:es.tombstoned=eo.bool();break;case 6:es.missedBlocksCounter=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,ep.isSet)(en.address)?String(en.address):"",startHeight:(0,ep.isSet)(en.startHeight)?ep.Long.fromValue(en.startHeight):ep.Long.ZERO,indexOffset:(0,ep.isSet)(en.indexOffset)?ep.Long.fromValue(en.indexOffset):ep.Long.ZERO,jailedUntil:(0,ep.isSet)(en.jailedUntil)?(0,ep.fromJsonTimestamp)(en.jailedUntil):void 0,tombstoned:!!(0,ep.isSet)(en.tombstoned)&&!!en.tombstoned,missedBlocksCounter:(0,ep.isSet)(en.missedBlocksCounter)?ep.Long.fromValue(en.missedBlocksCounter):ep.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=en.address),void 0!==en.startHeight&&
4(ei.startHeight=(en.startHeight||ep.Long.ZERO).toString()),void 0!==en.indexOffset&&(ei.indexOffset=(en.indexOffset||ep.Long.ZERO).toString()),void 0!==en.jailedUntil&&(ei.jailedUntil=(0,ep.fromTimestamp)(en.jailedUntil).toISOString()),void 0!==en.tombstoned&&(ei.tombstoned=en.tombstoned),void 0!==en.missedBlocksCounter&&(ei.missedBlocksCounter=(en.missedBlocksCounter||ep.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseValidatorSigningInfo();return ei.address=en.address??"",ei.startHeight=void 0!==en.startHeight&&null!==en.startHeight?ep.Long.fromValue(en.startHeight):ep.Long.ZERO,ei.indexOffset=void 0!==en.indexOffset&&null!==en.indexOffset?ep.Long.fromValue(en.indexOffset):ep.Long.ZERO,ei.jailedUntil=void 0!==en.jailedUntil&&null!==en.jailedUntil?eu.Timestamp.fromPartial(en.jailedUntil):void 0,ei.tombstoned=en.tombstoned??!1,ei.missedBlocksCounter=void 0!==en.missedBlocksCounter&&null!==en.missedBlocksCounter?ep.Long.fromValue(en.missedBlocksCounter):ep.Long.ZERO,ei}},ei.Params={encode:(en,ei=em.Writer.create())=>(en.signedBlocksWindow.isZero()||ei.uint32(8).int64(en.signedBlocksWindow),0!==en.minSignedPerWindow.length&&ei.uint32(18).bytes(en.minSignedPerWindow),void 0!==en.downtimeJailDuration&&ef.Duration.encode(en.downtimeJailDuration,ei.uint32(26).fork()).ldelim(),0!==en.slashFractionDoubleSign.length&&ei.uint32(34).bytes(en.slashFractionDoubleSign),0!==en.slashFractionDowntime.length&&ei.uint32(42).bytes(en.slashFractionDowntime),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.signedBlocksWindow=eo.int64();break;case 2:es.minSignedPerWindow=eo.bytes();break;case 3:es.downtimeJailDuration=ef.Duration.decode(eo,eo.uint32());break;case 4:es.slashFractionDoubleSign=eo.bytes();break;case 5:es.slashFractionDowntime=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({signedBlocksWindow:(0,ep.isSet)(en.signedBlocksWindow)?ep.Long.fromValue(en.signedBlocksWindow):ep.Long.ZERO,minSignedPerWindow:(0,ep.isSet)(en.minSignedPerWindow)?(0,ep.bytesFromBase64)(en.minSignedPerWindow):new Uint8Array,downtimeJailDuration:(0,ep.isSet)(en.downtimeJailDuration)?ef.Duration.fromJSON(en.downtimeJailDuration):void 0,slashFractionDoubleSign:(0,ep.isSet)(en.slashFractionDoubleSign)?(0,ep.bytesFromBase64)(en.slashFractionDoubleSign):new Uint8Array,slashFractionDowntime:(0,ep.isSet)(en.slashFractionDowntime)?(0,ep.bytesFromBase64)(en.slashFractionDowntime):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.signedBlocksWindow&&(ei.signedBlocksWindow=(en.signedBlocksWindow||ep.Long.ZERO).toString()),void 0!==en.minSignedPerWindow&&(ei.minSignedPerWindow=(0,ep.base64FromBytes)(void 0!==en.minSignedPerWindow?en.minSignedPerWindow:new Uint8Array)),void 0!==en.downtimeJailDuration&&(ei.downtimeJailDuration=en.downtimeJailDuration?ef.Duration.toJSON(en.downtimeJailDuration):void 0),void 0!==en.slashFractionDoubleSign&&(ei.slashFractionDoubleSign=(0,ep.base64FromBytes)(void 0!==en.slashFractionDoubleSign?en.slashFractionDoubleSign:new Uint8Array)),void 0!==en.slashFractionDowntime&&(ei.slashFractionDowntime=(0,ep.base64FromBytes)(void 0!==en.slashFractionDowntime?en.slashFractionDowntime:new Uint8Array)),ei},fromPartial(en){let ei=createBaseParams();return ei.signedBlocksWindow=void 0!==en.signedBlocksWindow&&null!==en.signedBlocksWindow?ep.Long.fromValue(en.signedBlocksWindow):ep.Long.ZERO,ei.minSignedPerWindow=en.minSignedPerWindow??new Uint8Array,ei.downtimeJailDuration=void 0!==en.downtimeJailDuration&&null!==en.downtimeJailDuration?ef.Duration.fromPartial(en.downtimeJailDuration):void 0,ei.slashFractionDoubleSign=en.slashFractionDoubleSign??new Uint8Array,ei.slashFractionDowntime=en.slashFractionDowntime??new Uint8Array,ei}}},84438:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.QueryPoolResponse=ei.QueryPoolRequest=ei.QueryHistoricalInfoResponse=ei.QueryHistoricalInfoRequest=ei.QueryDelegatorValidatorResponse=ei.QueryDelegatorValidatorRequest=ei.QueryDelegatorValidatorsResponse=ei.QueryDelegatorValidatorsRequest=ei.QueryRedelegationsResponse=ei.QueryRedelegationsRequest=ei.QueryDelegatorUnbondingDelegationsResponse=ei.QueryDelegatorUnbondingDelegationsRequest=ei.QueryDelegatorDelegationsResponse=ei.QueryDelegatorDelegationsRequest=ei.QueryUnbondingDelegationResponse=ei.QueryUnbondingDelegationRequest=ei.QueryDelegationResponse=ei.QueryDelegationRequest=ei.QueryValidatorUnbondingDelegationsResponse=ei.QueryValidatorUnbondingDelegationsRequest=ei.QueryValidatorDelegationsResponse=ei.QueryValidatorDelegationsRequest=ei.QueryValidatorResponse=ei.QueryValidatorRequest=ei.QueryValidatorsResponse=ei.QueryValidatorsRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(19355),ep=eo(81457),em=ed(eo(83789));function createBaseQueryValidatorsRequest(){return{status:"",pagination:void 0}}function createBaseQueryValidatorsResponse(){return{validators:[],pagination:void 0}}function createBaseQueryValidatorRequest(){return{validatorAddr:""}}
4function createBaseQueryValidatorResponse(){return{validator:void 0}}function createBaseQueryValidatorDelegationsRequest(){return{validatorAddr:"",pagination:void 0}}function createBaseQueryValidatorDelegationsResponse(){return{delegationResponses:[],pagination:void 0}}function createBaseQueryValidatorUnbondingDelegationsRequest(){return{validatorAddr:"",pagination:void 0}}function createBaseQueryValidatorUnbondingDelegationsResponse(){return{unbondingResponses:[],pagination:void 0}}function createBaseQueryDelegationRequest(){return{delegatorAddr:"",validatorAddr:""}}function createBaseQueryDelegationResponse(){return{delegationResponse:void 0}}function createBaseQueryUnbondingDelegationRequest(){return{delegatorAddr:"",validatorAddr:""}}function createBaseQueryUnbondingDelegationResponse(){return{unbond:void 0}}function createBaseQueryDelegatorDelegationsRequest(){return{delegatorAddr:"",pagination:void 0}}function createBaseQueryDelegatorDelegationsResponse(){return{delegationResponses:[],pagination:void 0}}function createBaseQueryDelegatorUnbondingDelegationsRequest(){return{delegatorAddr:"",pagination:void 0}}function createBaseQueryDelegatorUnbondingDelegationsResponse(){return{unbondingResponses:[],pagination:void 0}}function createBaseQueryRedelegationsRequest(){return{delegatorAddr:"",srcValidatorAddr:"",dstValidatorAddr:"",pagination:void 0}}function createBaseQueryRedelegationsResponse(){return{redelegationResponses:[],pagination:void 0}}function createBaseQueryDelegatorValidatorsRequest(){return{delegatorAddr:"",pagination:void 0}}function createBaseQueryDelegatorValidatorsResponse(){return{validators:[],pagination:void 0}}function createBaseQueryDelegatorValidatorRequest(){return{delegatorAddr:"",validatorAddr:""}}function createBaseQueryDelegatorValidatorResponse(){return{validator:void 0}}function createBaseQueryHistoricalInfoRequest(){return{height:ep.Long.ZERO}}function createBaseQueryHistoricalInfoResponse(){return{hist:void 0}}function createBaseQueryPoolRequest(){return{}}function createBaseQueryPoolResponse(){return{pool:void 0}}function createBaseQueryParamsRequest(){return{}}function createBaseQueryParamsResponse(){return{params:void 0}}ei.protobufPackage="cosmos.staking.v1beta1",ei.QueryValidatorsRequest={encode:(en,ei=em.Writer.create())=>(""!==en.status&&ei.uint32(10).string(en.status),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.status=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({status:(0,ep.isSet)(en.status)?String(en.status):"",pagination:(0,ep.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.status&&(ei.status=en.status),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorsRequest();return ei.status=en.status??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryValidatorsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.validators)ef.Validator.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validators.push(ef.Validator.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({validators:Array.isArray(en?.validators)?en.validators.map(en=>ef.Validator.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};
4return en.validators?ei.validators=en.validators.map(en=>en?ef.Validator.toJSON(en):void 0):ei.validators=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorsResponse();return ei.validators=en.validators?.map(en=>ef.Validator.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryValidatorRequest={encode:(en,ei=em.Writer.create())=>(""!==en.validatorAddr&&ei.uint32(10).string(en.validatorAddr),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validatorAddr=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({validatorAddr:(0,ep.isSet)(en.validatorAddr)?String(en.validatorAddr):""}),toJSON(en){let ei={};return void 0!==en.validatorAddr&&(ei.validatorAddr=en.validatorAddr),ei},fromPartial(en){let ei=createBaseQueryValidatorRequest();return ei.validatorAddr=en.validatorAddr??"",ei}},ei.QueryValidatorResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.validator&&ef.Validator.encode(en.validator,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validator=ef.Validator.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({validator:(0,ep.isSet)(en.validator)?ef.Validator.fromJSON(en.validator):void 0}),toJSON(en){let ei={};return void 0!==en.validator&&(ei.validator=en.validator?ef.Validator.toJSON(en.validator):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorResponse();return ei.validator=void 0!==en.validator&&null!==en.validator?ef.Validator.fromPartial(en.validator):void 0,ei}},ei.QueryValidatorDelegationsRequest={encode:(en,ei=em.Writer.create())=>(""!==en.validatorAddr&&ei.uint32(10).string(en.validatorAddr),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorDelegationsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validatorAddr=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({validatorAddr:(0,ep.isSet)(en.validatorAddr)?String(en.validatorAddr):"",pagination:(0,ep.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.validatorAddr&&(ei.validatorAddr=en.validatorAddr),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorDelegationsRequest();return ei.validatorAddr=en.validatorAddr??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryValidatorDelegationsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.delegationResponses)ef.DelegationResponse.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorDelegationsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegationResponses.push(ef.DelegationResponse.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegationResponses:Array.isArray(en?.delegationResponses)?en.delegationResponses.map(en=>ef.DelegationResponse.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.delegationResponses?ei.delegationResponses=en.delegationResponses.map(en=>en?ef.DelegationResponse.toJSON(en):void 0):ei.delegationResponses=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorDelegationsResponse();return ei.delegationResponses=en.delegationResponses?.map(en=>ef.DelegationResponse.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryValidatorUnbondingDelegationsRequest={encode:(en,ei=em.Writer.create())=>(""!==en.validatorAddr&&ei.uint32(10).string(en.validatorAddr),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorUnbondingDelegationsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validatorAddr=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({validatorAddr:(0,ep.isSet)(en.validatorAddr)?String(en.validatorAddr):"",pagination:(0,ep.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.validatorAddr&&(ei.validatorAddr=en.validatorAddr),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorUnbondingDelegationsRequest();return ei.validatorAddr=en.validatorAddr??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryValidatorUnbondingDelegationsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.unbondingResponses)ef.UnbondingDelegation.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryValidatorUnbondingDelegationsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.unbondingResponses.push(ef.UnbondingDelegation.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({unbondingResponses:Array.isArray(en?.unbondingResponses)?en.unbondingResponses.map(en=>ef.UnbondingDelegation.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.unbondingResponses?ei.unbondingResponses=en.unbondingResponses.map(en=>en?ef.UnbondingDelegation.toJSON(en):void 0):ei.unbondingResponses=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryValidatorUnbondingDelegationsResponse();return ei.unbondingResponses=en.unbondingResponses?.map(en=>ef.UnbondingDelegation.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegationRequest={encode:(en,ei=em.Writer.create())=>(""!==en.delegatorAddr&&ei.uint32(10).string(en.delegatorAddr),""!==en.validatorAddr&&ei.uint32(18).string(en.validatorAddr),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegationRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddr=eo.string();break;case 2:es.validatorAddr=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddr:(0,ep.isSet)(en.delegatorAddr)?String(en.delegatorAddr):"",validatorAddr:(0,ep.isSet)(en.validatorAddr)?String(en.validatorAddr):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddr&&(ei.delegatorAddr=en.delegatorAddr),void 0!==en.validatorAddr&&(ei.validatorAddr=en.validatorAddr),ei},fromPartial(en){let ei=createBaseQueryDelegationRequest();return ei.delegatorAddr=en.delegatorAddr??"",ei.validatorAddr=en.validatorAddr??"",ei}},ei.QueryDelegationResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.delegationResponse&&ef.DelegationResponse.encode(en.delegationResponse,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegationResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.delegationResponse=ef.DelegationResponse.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({delegationResponse:(0,ep.isSet)(en.delegationResponse)?ef.DelegationResponse.fromJSON(en.delegationResponse):void 0}),toJSON(en){let ei={};return void 0!==en.delegationResponse&&(ei.delegationResponse=en.delegationResponse?ef.DelegationResponse.toJSON(en.delegationResponse):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegationResponse();return ei.delegationResponse=void 0!==en.delegationResponse&&null!==en.delegationResponse?ef.DelegationResponse.fromPartial(en.delegationResponse):void 0,ei}},ei.QueryUnbondingDelegationRequest={encode:(en,ei=em.Writer.create())=>(""!==en.delegatorAddr&&ei.uint32(10).string(en.delegatorAddr),""!==en.validatorAddr&&ei.uint32(18).string(en.validatorAddr),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUnbondingDelegationRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddr=eo.string();break;case 2:es.validatorAddr=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddr:(0,ep.isSet)(en.delegatorAddr)?String(en.delegatorAddr):"",validatorAddr:(0,ep.isSet)(en.validatorAddr)?String(en.validatorAddr):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddr&&(ei.delegatorAddr=en.delegatorAddr),void 0!==en.validatorAddr&&(ei.validatorAddr=en.validatorAddr),ei},fromPartial(en){let ei=createBaseQueryUnbondingDelegationRequest();return ei.delegatorAddr=en.delegatorAddr??"",ei.validatorAddr=en.validatorAddr??"",ei}},ei.QueryUnbondingDelegationResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.unbond&&ef.UnbondingDelegation.encode(en.unbond,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUnbondingDelegationResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.unbond=ef.UnbondingDelegation.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({unbond:(0,ep.isSet)(en.unbond)?ef.UnbondingDelegation.fromJSON(en.unbond):void 0}),toJSON(en){let ei={};return void 0!==en.unbond&&(ei.unbond=en.unbond?ef.UnbondingDelegation.toJSON(en.unbond):void 0),ei},fromPartial(en){let ei=createBaseQueryUnbondingDelegationResponse();return ei.unbond=void 0!==en.unbond&&null!==en.unbond?ef.UnbondingDelegation.fromPartial(en.unbond):void 0,ei}},ei.QueryDelegatorDelegationsRequest={encode:(en,ei=em.Writer.create())=>(""!==en.delegatorAddr&&ei.uint32(10).string(en.delegatorAddr),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorDelegationsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddr=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddr:(0,ep.isSet)(en.delegatorAddr)?String(en.delegatorAddr):"",pagination:(0,ep.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.delegatorAddr&&(ei.delegatorAddr=en.delegatorAddr),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegatorDelegationsRequest();return ei.delegatorAddr=en.delegatorAddr??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegatorDelegationsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.delegationResponses)ef.DelegationResponse.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorDelegationsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegationResponses.push(ef.DelegationResponse.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegationResponses:Array.isArray(en?.delegationResponses)?en.delegationResponses.map(en=>ef.DelegationResponse.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.delegationResponses?ei.delegationResponses=en.delegationResponses.map(en=>en?ef.DelegationResponse.toJSON(en):void 0):ei.delegationResponses=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegatorDelegationsResponse();return ei.delegationResponses=en.delegationResponses?.map(en=>ef.DelegationResponse.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegatorUnbondingDelegationsRequest={encode:(en,ei=em.Writer.create())=>(""!==en.delegatorAddr&&ei.uint32(10).string(en.delegatorAddr),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorUnbondingDelegationsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddr=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddr:(0,ep.isSet)(en.delegatorAddr)?String(en.delegatorAddr):"",pagination:(0,ep.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.delegatorAddr&&(ei.delegatorAddr=en.delegatorAddr),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegatorUnbondingDelegationsRequest();return ei.delegatorAddr=en.delegatorAddr??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegatorUnbondingDelegationsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.unbondingResponses)ef.UnbondingDelegation.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorUnbondingDelegationsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.unbondingResponses.push(ef.UnbondingDelegation.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({unbondingResponses:Array.isArray(en?.unbondingResponses)?en.unbondingResponses.map(en=>ef.UnbondingDelegation.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.unbondingResponses?ei.unbondingResponses=en.unbondingResponses.map(en=>en?ef.UnbondingDelegation.toJSON(en):void 0):ei.unbondingResponses=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegatorUnbondingDelegationsResponse();return ei.unbondingResponses=en.unbondingResponses?.map(en=>ef.UnbondingDelegation.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryRedelegationsRequest={encode:(en,ei=em.Writer.create())=
4>(""!==en.delegatorAddr&&ei.uint32(10).string(en.delegatorAddr),""!==en.srcValidatorAddr&&ei.uint32(18).string(en.srcValidatorAddr),""!==en.dstValidatorAddr&&ei.uint32(26).string(en.dstValidatorAddr),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryRedelegationsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddr=eo.string();break;case 2:es.srcValidatorAddr=eo.string();break;case 3:es.dstValidatorAddr=eo.string();break;case 4:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddr:(0,ep.isSet)(en.delegatorAddr)?String(en.delegatorAddr):"",srcValidatorAddr:(0,ep.isSet)(en.srcValidatorAddr)?String(en.srcValidatorAddr):"",dstValidatorAddr:(0,ep.isSet)(en.dstValidatorAddr)?String(en.dstValidatorAddr):"",pagination:(0,ep.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.delegatorAddr&&(ei.delegatorAddr=en.delegatorAddr),void 0!==en.srcValidatorAddr&&(ei.srcValidatorAddr=en.srcValidatorAddr),void 0!==en.dstValidatorAddr&&(ei.dstValidatorAddr=en.dstValidatorAddr),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryRedelegationsRequest();return ei.delegatorAddr=en.delegatorAddr??"",ei.srcValidatorAddr=en.srcValidatorAddr??"",ei.dstValidatorAddr=en.dstValidatorAddr??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryRedelegationsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.redelegationResponses)ef.RedelegationResponse.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryRedelegationsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.redelegationResponses.push(ef.RedelegationResponse.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({redelegationResponses:Array.isArray(en?.redelegationResponses)?en.redelegationResponses.map(en=>ef.RedelegationResponse.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.redelegationResponses?ei.redelegationResponses=en.redelegationResponses.map(en=>en?ef.RedelegationResponse.toJSON(en):void 0):ei.redelegationResponses=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryRedelegationsResponse();return ei.redelegationResponses=en.redelegationResponses?.map(en=>ef.RedelegationResponse.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegatorValidatorsRequest={encode:(en,ei=em.Writer.create())=>(""!==en.delegatorAddr&&ei.uint32(10).string(en.delegatorAddr),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorValidatorsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddr=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddr:(0,ep.isSet)(en.delegatorAddr)?String(en.delegatorAddr):"",pagination:(0,ep.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.delegatorAddr&&(ei.delegatorAddr=en.delegatorAddr),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegatorValidatorsRequest();return ei.delegatorAddr=en.delegatorAddr??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegatorValidatorsResponse={encode(en,ei=em.Writer.create()){for(let eo of en.validators)ef.Validator.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorValidatorsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.validators.push(ef.Validator.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>
4({validators:Array.isArray(en?.validators)?en.validators.map(en=>ef.Validator.fromJSON(en)):[],pagination:(0,ep.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.validators?ei.validators=en.validators.map(en=>en?ef.Validator.toJSON(en):void 0):ei.validators=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegatorValidatorsResponse();return ei.validators=en.validators?.map(en=>ef.Validator.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryDelegatorValidatorRequest={encode:(en,ei=em.Writer.create())=>(""!==en.delegatorAddr&&ei.uint32(10).string(en.delegatorAddr),""!==en.validatorAddr&&ei.uint32(18).string(en.validatorAddr),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorValidatorRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddr=eo.string();break;case 2:es.validatorAddr=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddr:(0,ep.isSet)(en.delegatorAddr)?String(en.delegatorAddr):"",validatorAddr:(0,ep.isSet)(en.validatorAddr)?String(en.validatorAddr):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddr&&(ei.delegatorAddr=en.delegatorAddr),void 0!==en.validatorAddr&&(ei.validatorAddr=en.validatorAddr),ei},fromPartial(en){let ei=createBaseQueryDelegatorValidatorRequest();return ei.delegatorAddr=en.delegatorAddr??"",ei.validatorAddr=en.validatorAddr??"",ei}},ei.QueryDelegatorValidatorResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.validator&&ef.Validator.encode(en.validator,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDelegatorValidatorResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.validator=ef.Validator.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({validator:(0,ep.isSet)(en.validator)?ef.Validator.fromJSON(en.validator):void 0}),toJSON(en){let ei={};return void 0!==en.validator&&(ei.validator=en.validator?ef.Validator.toJSON(en.validator):void 0),ei},fromPartial(en){let ei=createBaseQueryDelegatorValidatorResponse();return ei.validator=void 0!==en.validator&&null!==en.validator?ef.Validator.fromPartial(en.validator):void 0,ei}},ei.QueryHistoricalInfoRequest={encode:(en,ei=em.Writer.create())=>(en.height.isZero()||ei.uint32(8).int64(en.height),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryHistoricalInfoRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.height=eo.int64():eo.skipType(7&en)}return es},fromJSON:en=>({height:(0,ep.isSet)(en.height)?ep.Long.fromValue(en.height):ep.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.height&&(ei.height=(en.height||ep.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryHistoricalInfoRequest();return ei.height=void 0!==en.height&&null!==en.height?ep.Long.fromValue(en.height):ep.Long.ZERO,ei}},ei.QueryHistoricalInfoResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.hist&&ef.HistoricalInfo.encode(en.hist,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryHistoricalInfoResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.hist=ef.HistoricalInfo.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({hist:(0,ep.isSet)(en.hist)?ef.HistoricalInfo.fromJSON(en.hist):void 0}),toJSON(en){let ei={};return void 0!==en.hist&&(ei.hist=en.hist?ef.HistoricalInfo.toJSON(en.hist):void 0),ei},fromPartial(en){let ei=createBaseQueryHistoricalInfoResponse();return ei.hist=void 0!==en.hist&&null!==en.hist?ef.HistoricalInfo.fromPartial(en.hist):void 0,ei}},ei.QueryPoolRequest={encode:(en,ei=em.Writer.create())=>ei,decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPoolRequest
4();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryPoolRequest();return ei}},ei.QueryPoolResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.pool&&ef.Pool.encode(en.pool,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPoolResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pool=ef.Pool.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pool:(0,ep.isSet)(en.pool)?ef.Pool.fromJSON(en.pool):void 0}),toJSON(en){let ei={};return void 0!==en.pool&&(ei.pool=en.pool?ef.Pool.toJSON(en.pool):void 0),ei},fromPartial(en){let ei=createBaseQueryPoolResponse();return ei.pool=void 0!==en.pool&&null!==en.pool?ef.Pool.fromPartial(en.pool):void 0,ei}},ei.QueryParamsRequest={encode:(en,ei=em.Writer.create())=>ei,decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei}},ei.QueryParamsResponse={encode:(en,ei=em.Writer.create())=>(void 0!==en.params&&ef.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.params=ef.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,ep.isSet)(en.params)?ef.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ef.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ef.Params.fromPartial(en.params):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Validators=this.Validators.bind(this),this.Validator=this.Validator.bind(this),this.ValidatorDelegations=this.ValidatorDelegations.bind(this),this.ValidatorUnbondingDelegations=this.ValidatorUnbondingDelegations.bind(this),this.Delegation=this.Delegation.bind(this),this.UnbondingDelegation=this.UnbondingDelegation.bind(this),this.DelegatorDelegations=this.DelegatorDelegations.bind(this),this.DelegatorUnbondingDelegations=this.DelegatorUnbondingDelegations.bind(this),this.Redelegations=this.Redelegations.bind(this),this.DelegatorValidators=this.DelegatorValidators.bind(this),this.DelegatorValidator=this.DelegatorValidator.bind(this),this.HistoricalInfo=this.HistoricalInfo.bind(this),this.Pool=this.Pool.bind(this),this.Params=this.Params.bind(this)}Validators(en){let eo=ei.QueryValidatorsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","Validators",eo);return ea.then(en=>ei.QueryValidatorsResponse.decode(new em.Reader(en)))}Validator(en){let eo=ei.QueryValidatorRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","Validator",eo);return ea.then(en=>ei.QueryValidatorResponse.decode(new em.Reader(en)))}ValidatorDelegations(en){let eo=ei.QueryValidatorDelegationsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorDelegations",eo);return ea.then(en=>ei.QueryValidatorDelegationsResponse.decode(new em.Reader(en)))}ValidatorUnbondingDelegations(en){let eo=ei.QueryValidatorUnbondingDelegationsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","ValidatorUnbondingDelegations",eo);return ea.then(en=>ei.QueryValidatorUnbondingDelegationsResponse.decode(new em.Reader(en)))}Delegation(en){let eo=ei.QueryDelegationRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","Delegation",eo);return ea.then(en=>ei.QueryDelegationResponse.decode(new em.Reader(en)))}UnbondingDelegation(en){let eo=ei.QueryUnbondingDelegationRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","UnbondingDelegation",eo);return ea.then(en=>ei.QueryUnbondingDelegationResponse.decode(new em.Reader(en)))}DelegatorDelegations(en){let eo=ei.QueryDelegatorDelegationsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorDelegations",eo);return ea.then(en=>ei.QueryDelegatorDelegationsResponse.decode(new em.Reader(en)))}DelegatorUnbondingDelegations(en){let eo=ei.QueryDelegatorUnbondingDelegationsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorUnbondingDelegations",eo);return ea.then(en=>ei.QueryDelegatorUnbondingDelegationsResponse.decode(new em.Reader(en)))}Redelegations(en){let eo=ei.QueryRedelegationsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","Redelegations",eo);return ea.then(en=>ei.QueryRedelegationsResponse.decode(new em.Reader(en)))}DelegatorValidators(en){let eo=ei.QueryDelegatorValidatorsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidators",eo);return ea.then(en=>ei.QueryDelegatorValidatorsResponse.decode(new em.Reader(en)))}DelegatorValidator(en){let eo=ei.QueryDelegatorValidatorRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","DelegatorValidator",eo);return ea.then(en=>ei.QueryDelegatorValidatorResponse.decode(new em.Reader(en)))}HistoricalInfo(en){let eo=ei.QueryHistoricalInfoRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","HistoricalInfo",eo);return ea.then(en=>ei.QueryHistoricalInfoResponse.decode(new em.Reader(en)))}Pool(en={}){let eo=ei.QueryPoolRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","Pool",eo);return ea.then(en=>ei.QueryPoolResponse.decode(new em.Reader(en)))}Params(en={}){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new em.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},19355:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),eu=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ef=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ed(ei,en,eo);return eu(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ValidatorUpdates=ei.Pool=ei.RedelegationResponse=ei.RedelegationEntryResponse=ei.DelegationResponse=ei.Params=ei.Redelegation=ei.RedelegationEntry=ei.UnbondingDelegationEntry=ei.UnbondingDelegation=ei.Delegation=ei.DVVTriplets=ei.DVVTriplet=ei.DVPairs=ei.DVPair=ei.ValAddresses=ei.Validator=ei.Description=ei.Commission=ei.CommissionRates=e
4i.HistoricalInfo=ei.infractionToJSON=ei.infractionFromJSON=ei.Infraction=ei.bondStatusToJSON=ei.bondStatusFromJSON=ei.BondStatus=ei.protobufPackage=void 0;let ep=eo(31258),em=eo(85522),eg=eo(53862),ey=eo(70281),eb=eo(10891),eS=eo(9492),e_=eo(81457),eR=ef(eo(83789));function bondStatusFromJSON(en){switch(en){case 0:case"BOND_STATUS_UNSPECIFIED":return ea.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return ea.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return ea.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return ea.BOND_STATUS_BONDED;default:return ea.UNRECOGNIZED}}function bondStatusToJSON(en){switch(en){case ea.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case ea.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case ea.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case ea.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function infractionFromJSON(en){switch(en){case 0:case"INFRACTION_UNSPECIFIED":return es.INFRACTION_UNSPECIFIED;case 1:case"INFRACTION_DOUBLE_SIGN":return es.INFRACTION_DOUBLE_SIGN;case 2:case"INFRACTION_DOWNTIME":return es.INFRACTION_DOWNTIME;default:return es.UNRECOGNIZED}}function infractionToJSON(en){switch(en){case es.INFRACTION_UNSPECIFIED:return"INFRACTION_UNSPECIFIED";case es.INFRACTION_DOUBLE_SIGN:return"INFRACTION_DOUBLE_SIGN";case es.INFRACTION_DOWNTIME:return"INFRACTION_DOWNTIME";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseHistoricalInfo(){return{header:void 0,valset:[]}}function createBaseCommissionRates(){return{rate:"",maxRate:"",maxChangeRate:""}}function createBaseCommission(){return{commissionRates:void 0,updateTime:void 0}}function createBaseDescription(){return{moniker:"",identity:"",website:"",securityContact:"",details:""}}function createBaseValidator(){return{operatorAddress:"",consensusPubkey:void 0,jailed:!1,status:0,tokens:"",delegatorShares:"",description:void 0,unbondingHeight:e_.Long.ZERO,unbondingTime:void 0,commission:void 0,minSelfDelegation:"",unbondingOnHoldRefCount:e_.Long.ZERO,unbondingIds:[]}}function createBaseValAddresses(){return{addresses:[]}}function createBaseDVPair(){return{delegatorAddress:"",validatorAddress:""}}function createBaseDVPairs(){return{pairs:[]}}function createBaseDVVTriplet(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""}}function createBaseDVVTriplets(){return{triplets:[]}}function createBaseDelegation(){return{delegatorAddress:"",validatorAddress:"",shares:""}}function createBaseUnbondingDelegation(){return{delegatorAddress:"",validatorAddress:"",entries:[]}}function createBaseUnbondingDelegationEntry(){return{creationHeight:e_.Long.ZERO,completionTime:void 0,initialBalance:"",balance:"",unbondingId:e_.Long.UZERO,unbondingOnHoldRefCount:e_.Long.ZERO}}function createBaseRedelegationEntry(){return{creationHeight:e_.Long.ZERO,completionTime:void 0,initialBalance:"",sharesDst:"",unbondingId:e_.Long.UZERO,unbondingOnHoldRefCount:e_.Long.ZERO}}function createBaseRedelegation(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",entries:[]}}function createBaseParams(){return{unbondingTime:void 0,maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:"",minCommissionRate:""}}function createBaseDelegationResponse(){return{delegation:void 0,balance:void 0}}function createBaseRedelegationEntryResponse(){return{redelegationEntry:void 0,balance:""}}function createBaseRedelegationResponse(){return{redelegation:void 0,entries:[]}}function createBasePool(){return{notBondedTokens:"",bondedTokens:""}}function createBaseValidatorUpdates(){return{updates:[]}}ei.protobufPackage="cosmos.staking.v1beta1",function(en){en[en.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",en[en.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",en[en.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",en[en.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.BondStatus||(ei.BondStatus={})),ei.bondStatusFromJSON=bondStatusFromJSON,ei.bondStatusToJSON=bondStatusToJSON,function(en){en[en.INFRACTION_UNSPECIFIED=0]="INFRACTION_UNSPECIFIED",en[en.INFRACTION_DOUBLE_SIGN=1]="INFRACTION_DOUBLE_SIGN",en[en.INFRACTION_DOWNTIME=2]="INFRACTION_DOWNTIME",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.Infraction||(ei.Infraction={})),ei.infractionFromJSON=infractionFromJSON,ei.infractionToJSON=infractionToJSON,ei.HistoricalInfo={encode(en,eo=eR.Writer.create()){for(let ea of(void 0!==en.header&&ep.Header.encode(en.header,eo.uint32(10).fork()).ldelim(),en.valset))ei.Validator.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseHistoricalInfo();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.header=ep.Header.decode(ea,ea.uint32());break;case 2:ed.valset.push(ei.Validator.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({header:(0,e_.isSet)(en.header)?ep.Header.fromJSON(en.header):void 0,valset:Array.isArray(en?.valset)?en.valset.map(en=>ei.Validator.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.header&&(eo.header=en.header?ep.Header.toJSON(en.header):void 0),en.valset?eo.valset=en.valset.map(en=>en?ei.Validator.toJSON(en):void 0):eo.valset=[],eo},fromPartial(en){let eo=createBaseHistoricalInfo();return eo.header=void 0!==en.header&&null!==en.header?ep.Header.fromPartial(en.header):void 0,eo.valset=en.valset?.map(en=>ei.Validator.fromPartial(en))||[],eo}},ei.CommissionRates={encode:(en,ei=eR.Writer.create())=>(""!==en.rate&&ei.uint32(10).string(en.rate),""!==en.maxRate&&ei.uint32(18).string(en.maxRate),""!==en.maxChangeRate&&ei.uint32(26).string(en.maxChangeRate),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommissionRates();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.rate=eo.string();break;case 2:es.maxRate=eo.string();break;case 3:es.maxChangeRate=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({rate:(0,e_.isSet)(en.rate)?String(en.rate):"",maxRate:(0,e_.isSet)(en.maxRate)?String(en.maxRate):"",maxChangeRate:(0,e_.isSet)(en.maxChangeRate)?String(en.maxChangeRate):""}),toJSON(en){let ei={};return void 0!==en.rate&&(ei.rate=en.rate),void 0!==en.maxRate&&(ei.maxRate=en.maxRate),void 0!==en.maxChangeRate&&(ei.maxChangeRate=en.maxChangeRate),ei},fromPartial(en){let ei=createBaseCommissionRates();return ei.rate=en.rate??"",ei.maxRate=en.maxRate??"",ei.maxChangeRate=en.maxChangeRate??"",ei}},ei.Commission={encode:(en,eo=eR.Writer.create())=>(void 0!==en.commissionRates&&ei.CommissionRates.encode(en.commissionRates,eo.uint32(10).fork()).ldelim(),void 0!==en.updateTime&&em.Timestamp.encode(en.updateTime,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCommission();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>
43){case 1:ed.commissionRates=ei.CommissionRates.decode(ea,ea.uint32());break;case 2:ed.updateTime=em.Timestamp.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({commissionRates:(0,e_.isSet)(en.commissionRates)?ei.CommissionRates.fromJSON(en.commissionRates):void 0,updateTime:(0,e_.isSet)(en.updateTime)?(0,e_.fromJsonTimestamp)(en.updateTime):void 0}),toJSON(en){let eo={};return void 0!==en.commissionRates&&(eo.commissionRates=en.commissionRates?ei.CommissionRates.toJSON(en.commissionRates):void 0),void 0!==en.updateTime&&(eo.updateTime=(0,e_.fromTimestamp)(en.updateTime).toISOString()),eo},fromPartial(en){let eo=createBaseCommission();return eo.commissionRates=void 0!==en.commissionRates&&null!==en.commissionRates?ei.CommissionRates.fromPartial(en.commissionRates):void 0,eo.updateTime=void 0!==en.updateTime&&null!==en.updateTime?em.Timestamp.fromPartial(en.updateTime):void 0,eo}},ei.Description={encode:(en,ei=eR.Writer.create())=>(""!==en.moniker&&ei.uint32(10).string(en.moniker),""!==en.identity&&ei.uint32(18).string(en.identity),""!==en.website&&ei.uint32(26).string(en.website),""!==en.securityContact&&ei.uint32(34).string(en.securityContact),""!==en.details&&ei.uint32(42).string(en.details),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDescription();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.moniker=eo.string();break;case 2:es.identity=eo.string();break;case 3:es.website=eo.string();break;case 4:es.securityContact=eo.string();break;case 5:es.details=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({moniker:(0,e_.isSet)(en.moniker)?String(en.moniker):"",identity:(0,e_.isSet)(en.identity)?String(en.identity):"",website:(0,e_.isSet)(en.website)?String(en.website):"",securityContact:(0,e_.isSet)(en.securityContact)?String(en.securityContact):"",details:(0,e_.isSet)(en.details)?String(en.details):""}),toJSON(en){let ei={};return void 0!==en.moniker&&(ei.moniker=en.moniker),void 0!==en.identity&&(ei.identity=en.identity),void 0!==en.website&&(ei.website=en.website),void 0!==en.securityContact&&(ei.securityContact=en.securityContact),void 0!==en.details&&(ei.details=en.details),ei},fromPartial(en){let ei=createBaseDescription();return ei.moniker=en.moniker??"",ei.identity=en.identity??"",ei.website=en.website??"",ei.securityContact=en.securityContact??"",ei.details=en.details??"",ei}},ei.Validator={encode(en,eo=eR.Writer.create()){for(let ea of(""!==en.operatorAddress&&eo.uint32(10).string(en.operatorAddress),void 0!==en.consensusPubkey&&eg.Any.encode(en.consensusPubkey,eo.uint32(18).fork()).ldelim(),!0===en.jailed&&eo.uint32(24).bool(en.jailed),0!==en.status&&eo.uint32(32).int32(en.status),""!==en.tokens&&eo.uint32(42).string(en.tokens),""!==en.delegatorShares&&eo.uint32(50).string(en.delegatorShares),void 0!==en.description&&ei.Description.encode(en.description,eo.uint32(58).fork()).ldelim(),en.unbondingHeight.isZero()||eo.uint32(64).int64(en.unbondingHeight),void 0!==en.unbondingTime&&em.Timestamp.encode(en.unbondingTime,eo.uint32(74).fork()).ldelim(),void 0!==en.commission&&ei.Commission.encode(en.commission,eo.uint32(82).fork()).ldelim(),""!==en.minSelfDelegation&&eo.uint32(90).string(en.minSelfDelegation),en.unbondingOnHoldRefCount.isZero()||eo.uint32(96).int64(en.unbondingOnHoldRefCount),eo.uint32(106).fork(),en.unbondingIds))eo.uint64(ea);return eo.ldelim(),eo},decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseValidator();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.operatorAddress=ea.string();break;case 2:ed.consensusPubkey=eg.Any.decode(ea,ea.uint32());break;case 3:ed.jailed=ea.bool();break;case 4:ed.status=ea.int32();break;case 5:ed.tokens=ea.string();break;case 6:ed.delegatorShares=ea.string();break;case 7:ed.description=ei.Description.decode(ea,ea.uint32());break;case 8:ed.unbondingHeight=ea.int64();break;case 9:ed.unbondingTime=em.Timestamp.decode(ea,ea.uint32());break;case 10:ed.commission=ei.Commission.decode(ea,ea.uint32());break;case 11:ed.minSelfDelegation=ea.string();break;case 12:ed.unbondingOnHoldRefCount=ea.int64();break;case 13:if((7&en)==2){let en=ea.uint32()+ea.pos;for(;ea.pos<en;)ed.unbondingIds.push(ea.uint64())}else ed.unbondingIds.push(ea.uint64());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({operatorAddress:(0,e_.isSet)(en.operatorAddress)?String(en.operatorAddress):"",consensusPubkey:(0,e_.isSet)(en.consensusPubkey)?eg.Any.fromJSON(en.consensusPubkey):void 0,jailed:!!(0,e_.isSet)(en.jailed)&&!!en.jailed,status:(0,e_.isSet)(en.status)?bondStatusFromJSON(en.status):0,tokens:(0,e_.isSet)(en.tokens)?String(en.tokens):"",delegatorShares:(0,e_.isSet)(en.delegatorShares)?String(en.delegatorShares):"",description:(0,e_.isSet)(en.description)?ei.Description.fromJSON(en.description):void 0,unbondingHeight:(0,e_.isSet)(en.unbondingHeight)?e_.Long.fromValue(en.unbondingHeight):e_.Long.ZERO,unbondingTime:(0,e_.isSet)(en.unbondingTime)?(0,e_.fromJsonTimestamp)(en.unbondingTime):void 0,commission:(0,e_.isSet)(en.commission)?ei.Commission.fromJSON(en.commission):void 0,minSelfDelegation:(0,e_.isSet)(en.minSelfDelegation)?String(en.minSelfDelegation):"",unbondingOnHoldRefCount:(0,e_.isSet)(en.unbondingOnHoldRefCount)?e_.Long.fromValue(en.unbondingOnHoldRefCount):e_.Long.ZERO,unbondingIds:Array.isArray(en?.unbondingIds)?en.unbondingIds.map(en=>e_.Long.fromValue(en)):[]}),toJSON(en){let eo={};return void 0!==en.operatorAddress&&(eo.operatorAddress=en.operatorAddress),void 0!==en.consensusPubkey&&(eo.consensusPubkey=en.consensusPubkey?eg.Any.toJSON(en.consensusPubkey):void 0),void 0!==en.jailed&&(eo.jailed=en.jailed),void 0!==en.status&&(eo.status=bondStatusToJSON(en.status)),void 0!==en.tokens&&(eo.tokens=en.tokens),void 0!==en.delegatorShares&&(eo.delegatorShares=en.delegatorShares),void 0!==en.description&&(eo.description=en.description?ei.Description.toJSON(en.description):void 0),void 0!==en.unbondingHeight&&(eo.unbondingHeight=(en.unbondingHeight||e_.Long.ZERO).toString()),void 0!==en.unbondingTime&&(eo.unbondingTime=(0,e_.fromTimestamp)(en.unbondingTime).toISOString()),void 0!==en.commission&&(eo.commission=en.commission?ei.Commission.toJSON(en.commission):void 0),void 0!==en.minSelfDelegation&&(eo.minSelfDelegation=en.minSelfDelegation),void 0!==en.unbondingOnHoldRefCount&&(eo.unbondingOnHoldRefCount=(en.unbondingOnHoldRefCount||e_.Long.ZERO).toString()),en.unbondingIds?eo.unbondingIds=en.unbondingIds.map(en=>(en||e_.Long.UZERO).toString()):eo.unbondingIds=[],eo},fromPartial(en){let eo=createBaseValidator();return eo.operatorAddress=en.operatorAddress??"",eo.consensusPubkey=void 0!==en.consensusPubkey&&null!==en.consensusPubkey?eg.Any.fromPartial(en.consensusPubkey):void 0,eo.jailed=en.jailed??!1,eo.status=en.status??0,eo.tokens=en.tokens??"",eo.delegatorShares=en.delegatorShares??"",eo.description=void 0!==en.description&&null!==en.description?ei.Description.fromPartial(en.description):void 0,eo.unbondingHeight=void 0!==en.unbondingHeight&&null!==en.unbondingHeight?e_.Long.fromValue(en.unbondingHeight):e_.Long.ZERO,eo.unbondingTime=void 0!==en.unbondingTime&&null!==en.unbondingTime?em.Timestamp.fromPartial(en.unbondingTime):void 0,eo.commission=void 0!==en.commission&&null!==en.commission?ei.Commission.fromPartial(en.commission):void 0,eo.minSelfDelegation=en.minSelfDelegation??"",eo.unbondingOnHoldRefCount=void 0!==en.unbondingOnHoldRefCount&&null!==en.unbondingOnHoldRefCount?e_.Long.fromValue(en.unbondingOnHoldRefCount):e_.Long.ZERO,eo.unbondingIds=en.unbondingIds?.map(en=>e_.Long.fromValue(en))||[],eo}},ei.ValAddresses={encode(en,ei=eR.Writer.create()){for(let eo of en.addresses)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValAddresses();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.addresses.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({addresses:Array.isArray(en?.addresses)?en.addresses.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.addresses?ei.addresses=en.addresses.map(en=>en):ei.addresses=[],ei},fromPartial(en){let ei=createBaseValAddresses();return ei.addresses=en.addresses?.map(en=>en)||[],ei}},ei.DVPair={encode:(en,ei=eR.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDVPair();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorAddress=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,e_.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,e_.isSet)(en.validatorAddress)?String(en.validatorAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),ei},fromPartial(en){let ei=createBaseDVPair();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei}},ei.DVPairs={encode(en,eo=eR.Writer.create()){for(let ea of en.pairs)ei.DVPair.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseDVPairs();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.pairs.push(ei.DVPair.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>
4({pairs:Array.isArray(en?.pairs)?en.pairs.map(en=>ei.DVPair.fromJSON(en)):[]}),toJSON(en){let eo={};return en.pairs?eo.pairs=en.pairs.map(en=>en?ei.DVPair.toJSON(en):void 0):eo.pairs=[],eo},fromPartial(en){let eo=createBaseDVPairs();return eo.pairs=en.pairs?.map(en=>ei.DVPair.fromPartial(en))||[],eo}},ei.DVVTriplet={encode:(en,ei=eR.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorSrcAddress&&ei.uint32(18).string(en.validatorSrcAddress),""!==en.validatorDstAddress&&ei.uint32(26).string(en.validatorDstAddress),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDVVTriplet();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorSrcAddress=eo.string();break;case 3:es.validatorDstAddress=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,e_.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorSrcAddress:(0,e_.isSet)(en.validatorSrcAddress)?String(en.validatorSrcAddress):"",validatorDstAddress:(0,e_.isSet)(en.validatorDstAddress)?String(en.validatorDstAddress):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorSrcAddress&&(ei.validatorSrcAddress=en.validatorSrcAddress),void 0!==en.validatorDstAddress&&(ei.validatorDstAddress=en.validatorDstAddress),ei},fromPartial(en){let ei=createBaseDVVTriplet();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorSrcAddress=en.validatorSrcAddress??"",ei.validatorDstAddress=en.validatorDstAddress??"",ei}},ei.DVVTriplets={encode(en,eo=eR.Writer.create()){for(let ea of en.triplets)ei.DVVTriplet.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseDVVTriplets();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.triplets.push(ei.DVVTriplet.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({triplets:Array.isArray(en?.triplets)?en.triplets.map(en=>ei.DVVTriplet.fromJSON(en)):[]}),toJSON(en){let eo={};return en.triplets?eo.triplets=en.triplets.map(en=>en?ei.DVVTriplet.toJSON(en):void 0):eo.triplets=[],eo},fromPartial(en){let eo=createBaseDVVTriplets();return eo.triplets=en.triplets?.map(en=>ei.DVVTriplet.fromPartial(en))||[],eo}},ei.Delegation={encode:(en,ei=eR.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),""!==en.shares&&ei.uint32(26).string(en.shares),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDelegation();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorAddress=eo.string();break;case 3:es.shares=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,e_.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,e_.isSet)(en.validatorAddress)?String(en.validatorAddress):"",shares:(0,e_.isSet)(en.shares)?String(en.shares):""}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),void 0!==en.shares&&(ei.shares=en.shares),ei},fromPartial(en){let ei=createBaseDelegation();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei.shares=en.shares??"",ei}},ei.UnbondingDelegation={encode(en,eo=eR.Writer.create()){for(let ea of(""!==en.delegatorAddress&&eo.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&eo.uint32(18).string(en.validatorAddress),en.entries))ei.UnbondingDelegationEntry.encode(ea,eo.uint32(26).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseUnbondingDelegation();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.delegatorAddress=ea.string();break;case 2:ed.validatorAddress=ea.string();break;case 3:ed.entries.push(ei.UnbondingDelegationEntry.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({delegatorAddress:(0,e_.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,e_.isSet)(en.validatorAddress)?String(en.validatorAddress):"",entries:Array.isArray(en?.entries)?en.entries.map(en=>ei.UnbondingDelegationEntry.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.delegatorAddress&&(eo.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(eo.validatorAddress=en.validatorAddress),en.entries?eo.entries=en.entr
4ies.map(en=>en?ei.UnbondingDelegationEntry.toJSON(en):void 0):eo.entries=[],eo},fromPartial(en){let eo=createBaseUnbondingDelegation();return eo.delegatorAddress=en.delegatorAddress??"",eo.validatorAddress=en.validatorAddress??"",eo.entries=en.entries?.map(en=>ei.UnbondingDelegationEntry.fromPartial(en))||[],eo}},ei.UnbondingDelegationEntry={encode:(en,ei=eR.Writer.create())=>(en.creationHeight.isZero()||ei.uint32(8).int64(en.creationHeight),void 0!==en.completionTime&&em.Timestamp.encode(en.completionTime,ei.uint32(18).fork()).ldelim(),""!==en.initialBalance&&ei.uint32(26).string(en.initialBalance),""!==en.balance&&ei.uint32(34).string(en.balance),en.unbondingId.isZero()||ei.uint32(40).uint64(en.unbondingId),en.unbondingOnHoldRefCount.isZero()||ei.uint32(48).int64(en.unbondingOnHoldRefCount),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseUnbondingDelegationEntry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.creationHeight=eo.int64();break;case 2:es.completionTime=em.Timestamp.decode(eo,eo.uint32());break;case 3:es.initialBalance=eo.string();break;case 4:es.balance=eo.string();break;case 5:es.unbondingId=eo.uint64();break;case 6:es.unbondingOnHoldRefCount=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({creationHeight:(0,e_.isSet)(en.creationHeight)?e_.Long.fromValue(en.creationHeight):e_.Long.ZERO,completionTime:(0,e_.isSet)(en.completionTime)?(0,e_.fromJsonTimestamp)(en.completionTime):void 0,initialBalance:(0,e_.isSet)(en.initialBalance)?String(en.initialBalance):"",balance:(0,e_.isSet)(en.balance)?String(en.balance):"",unbondingId:(0,e_.isSet)(en.unbondingId)?e_.Long.fromValue(en.unbondingId):e_.Long.UZERO,unbondingOnHoldRefCount:(0,e_.isSet)(en.unbondingOnHoldRefCount)?e_.Long.fromValue(en.unbondingOnHoldRefCount):e_.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.creationHeight&&(ei.creationHeight=(en.creationHeight||e_.Long.ZERO).toString()),void 0!==en.completionTime&&(ei.completionTime=(0,e_.fromTimestamp)(en.completionTime).toISOString()),void 0!==en.initialBalance&&(ei.initialBalance=en.initialBalance),void 0!==en.balance&&(ei.balance=en.balance),void 0!==en.unbondingId&&(ei.unbondingId=(en.unbondingId||e_.Long.UZERO).toString()),void 0!==en.unbondingOnHoldRefCount&&(ei.unbondingOnHoldRefCount=(en.unbondingOnHoldRefCount||e_.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseUnbondingDelegationEntry();return ei.creationHeight=void 0!==en.creationHeight&&null!==en.creationHeight?e_.Long.fromValue(en.creationHeight):e_.Long.ZERO,ei.completionTime=void 0!==en.completionTime&&null!==en.completionTime?em.Timestamp.fromPartial(en.completionTime):void 0,ei.initialBalance=en.initialBalance??"",ei.balance=en.balance??"",ei.unbondingId=void 0!==en.unbondingId&&null!==en.unbondingId?e_.Long.fromValue(en.unbondingId):e_.Long.UZERO,ei.unbondingOnHoldRefCount=void 0!==en.unbondingOnHoldRefCount&&null!==en.unbondingOnHoldRefCount?e_.Long.fromValue(en.unbondingOnHoldRefCount):e_.Long.ZERO,ei}},ei.RedelegationEntry={encode:(en,ei=eR.Writer.create())=>(en.creationHeight.isZero()||ei.uint32(8).int64(en.creationHeight),void 0!==en.completionTime&&em.Timestamp.encode(en.completionTime,ei.uint32(18).fork()).ldelim(),""!==en.initialBalance&&ei.uint32(26).string(en.initialBalance),""!==en.sharesDst&&ei.uint32(34).string(en.sharesDst),en.unbondingId.isZero()||ei.uint32(40).uint64(en.unbondingId),en.unbondingOnHoldRefCount.isZero()||ei.uint32(48).int64(en.unbondingOnHoldRefCount),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseRedelegationEntry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.creationHeight=eo.int64();break;case 2:es.completionTime=em.Timestamp.decode(eo,eo.uint32());break;case 3:es.initialBalance=eo.string();break;case 4:es.sharesDst=eo.string();break;case 5:es.unbondingId=eo.uint64();break;case 6:es.unbondingOnHoldRefCount=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({creationHeight:(0,e_.isSet)(en.creationHeight)?e_.Long.fromValue(en.creationHeight):e_.Long.ZERO,completionTime:(0,e_.isSet)(en.completionTime)?(0,e_.fromJsonTimestamp)(en.completionTime):void 0,initialBalance:(0,e_.isSet)(en.initialBalance)?String(en.initialBalance):"",sharesDst:(0,e_.isSet)(en.sharesDst)?String(en.sharesDst):"",unbondingId:(0,e_.isSet)(en.unbondingId)?e_.Long.fromValue(en.unbondingId):e_.Long.UZERO,unbondingOnHoldRefCount:(0,e_.isSet)(en.unbondingOnHoldRefCount)?e_.Long.fromValue(en.unbondingOnHoldRefCount):e_.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.creationHeight&&(ei.creationHeight=(en.creationHeight||e_.Long.ZERO).toString()),void 0!==en.completionTime&&(ei.completionTime=(0,e_.fromTimestamp)(en.completionTime).toISOString()),void 0!==en.initialBalance&&(ei.initialBalance=en.initialBalance),void 0!==en.sharesDst&&(ei.sharesDst=en.sharesDst),void 0!==en.unbondingId&&(ei.unbondingId=(en.unbondingId||e_.Long.UZERO).toString()),void 0!==en.unbondingOnHoldRefCount&&(ei.unbondingOnHoldRefCount=(en.unbondingOnHoldRefCount||e_.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseRedelegationEntry();return ei.creationHeight=void 0!==en.creationHeight&&null!==en.creationHeight?e_.Long.fromValue(en.creationHeight):e_.Long.ZERO,ei.c
4ompletionTime=void 0!==en.completionTime&&null!==en.completionTime?em.Timestamp.fromPartial(en.completionTime):void 0,ei.initialBalance=en.initialBalance??"",ei.sharesDst=en.sharesDst??"",ei.unbondingId=void 0!==en.unbondingId&&null!==en.unbondingId?e_.Long.fromValue(en.unbondingId):e_.Long.UZERO,ei.unbondingOnHoldRefCount=void 0!==en.unbondingOnHoldRefCount&&null!==en.unbondingOnHoldRefCount?e_.Long.fromValue(en.unbondingOnHoldRefCount):e_.Long.ZERO,ei}},ei.Redelegation={encode(en,eo=eR.Writer.create()){for(let ea of(""!==en.delegatorAddress&&eo.uint32(10).string(en.delegatorAddress),""!==en.validatorSrcAddress&&eo.uint32(18).string(en.validatorSrcAddress),""!==en.validatorDstAddress&&eo.uint32(26).string(en.validatorDstAddress),en.entries))ei.RedelegationEntry.encode(ea,eo.uint32(34).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseRedelegation();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.delegatorAddress=ea.string();break;case 2:ed.validatorSrcAddress=ea.string();break;case 3:ed.validatorDstAddress=ea.string();break;case 4:ed.entries.push(ei.RedelegationEntry.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({delegatorAddress:(0,e_.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorSrcAddress:(0,e_.isSet)(en.validatorSrcAddress)?String(en.validatorSrcAddress):"",validatorDstAddress:(0,e_.isSet)(en.validatorDstAddress)?String(en.validatorDstAddress):"",entries:Array.isArray(en?.entries)?en.entries.map(en=>ei.RedelegationEntry.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.delegatorAddress&&(eo.delegatorAddress=en.delegatorAddress),void 0!==en.validatorSrcAddress&&(eo.validatorSrcAddress=en.validatorSrcAddress),void 0!==en.validatorDstAddress&&(eo.validatorDstAddress=en.validatorDstAddress),en.entries?eo.entries=en.entr
4ies.map(en=>en?ei.RedelegationEntry.toJSON(en):void 0):eo.entries=[],eo},fromPartial(en){let eo=createBaseRedelegation();return eo.delegatorAddress=en.delegatorAddress??"",eo.validatorSrcAddress=en.validatorSrcAddress??"",eo.validatorDstAddress=en.validatorDstAddress??"",eo.entries=en.entries?.map(en=>ei.RedelegationEntry.fromPartial(en))||[],eo}},ei.Params={encode:(en,ei=eR.Writer.create())=>(void 0!==en.unbondingTime&&ey.Duration.encode(en.unbondingTime,ei.uint32(10).fork()).ldelim(),0!==en.maxValidators&&ei.uint32(16).uint32(en.maxValidators),0!==en.maxEntries&&ei.uint32(24).uint32(en.maxEntries),0!==en.historicalEntries&&ei.uint32(32).uint32(en.historicalEntries),""!==en.bondDenom&&ei.uint32(42).string(en.bondDenom),""!==en.minCommissionRate&&ei.uint32(50).string(en.minCommissionRate),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.unbondingTime=ey.Duration.decode(eo,eo.uint32());break;case 2:es.maxValidators=eo.uint32();break;case 3:es.maxEntries=eo.uint32();break;case 4:es.historicalEntries=eo.uint32();break;case 5:es.bondDenom=eo.string();break;case 6:es.minCommissionRate=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({unbondingTime:(0,e_.isSet)(en.unbondingTime)?ey.Duration.fromJSON(en.unbondingTime):void 0,maxValidators:(0,e_.isSet)(en.maxValidators)?Number(en.maxValidators):0,maxEntries:(0,e_.isSet)(en.maxEntries)?Number(en.maxEntries):0,historicalEntries:(0,e_.isSet)(en.historicalEntries)?Number(en.historicalEntries):0,bondDenom:(0,e_.isSet)(en.bondDenom)?String(en.bondDenom):"",minCommissionRate:(0,e_.isSet)(en.minCommissionRate)?String(en.minCommissionRate):""}),toJSON(en){let ei={};return void 0!==en.unbondingTime&&(ei.unbondingTime=en.unbondingTime?ey.Duration.toJSON(en.unbondingTime):void 0),void 0!==en.maxValidators&&(ei.maxValidators=Math.round(en.maxValidators)),void 0!==en.maxEntries&&(ei.maxEntries=Math.round(en.maxEntries)),void 0!==en.historicalEntries&&(ei.historicalEntries=Math.round(en.historicalEntries)),void 0!==en.bondDenom&&(ei.bondDenom=en.bondDenom),void 0!==en.minCommissionRate&&(ei.minCommissionRate=en.minCommissionRate),ei},fromPartial(en){let ei=createBaseParams();return ei.unbondingTime=void 0!==en.unbondingTime&&null!==en.unbondingTime?ey.Duration.fromPartial(en.unbondingTime):void 0,ei.maxValidators=en.maxValidators??0,ei.maxEntries=en.maxEntries??0,ei.historicalEntries=en.historicalEntries??0,ei.bondDenom=en.bondDenom??"",ei.minCommissionRate=en.minCommissionRate??"",ei}},ei.DelegationResponse={encode:(en,eo=eR.Writer.create())=>(void 0!==en.delegation&&ei.Delegation.encode(en.delegation,eo.uint32(10).fork()).ldelim(),void 0!==en.balance&&eb.Coin.encode(en.balance,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseDelegationResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.delegation=ei.Delegation.decode(ea,ea.uint32());break;case 2:ed.balance=eb.Coin.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({delegation:(0,e_.isSet)(en.delegation)?ei.Delegation.fromJSON(en.delegation):void 0,balance:(0,e_.isSet)(en.balance)?eb.Coin.fromJSON(en.balance):void 0}),toJSON(en){let eo={};return void 0!==en.delegation&&(eo.delegation=en.delegation?ei.Delegation.toJSON(en.delegation):void 0),void 0!==en.balance&&(eo.balance=en.balance?eb.Coin.toJSON(en.balance):void 0),eo},fromPartial(en){let eo=createBaseDelegationResponse();return eo.delegation=void 0!==en.delegation&&null!==en.delegation?ei.Delegation.fromPartial(en.delegation):void 0,eo.balance=void 0!==en.balance&&null!==en.balance?eb.Coin.fromPartial(en.balance):void 0,eo}},ei.RedelegationEntryResponse={encode:(en,eo=eR.Writer.create())=>(void 0!==en.redelegationEntry&&ei.RedelegationEntry.encode(en.redelegationEntry,eo.uint32(10).fork()).ldelim(),""!==en.balance&&eo.uint32(34).string(en.balance),eo),decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseRedelegationEntryResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.redelegationEntry=ei.RedelegationEntry.decode(ea,ea.uint32());break;case 4:ed.balance=ea.string();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({redelegationEntry:(0,e_.isSet)(en.redelegationEntry)?ei.RedelegationEntry.fromJSON(en.redelegationEntry):void 0,balance:(0,e_.isSet)(en.balance)?String(en.balance):""}),toJSON(en){let eo={};return void 0!==en.redelegationEntry&&(eo.redelegationEntry=en.redelegationEntry?ei.RedelegationEntry.toJSON(en.redelegationEntry):void 0),void 0!==en.balance&&(eo.balance=en.balance),eo},fromPartial(en){let eo=createBaseRedelegationEntryResponse();return eo.redelegationEntry=void 0!==en.redelegationEntry&&null!==en.redelegationEntry?ei.RedelegationEntry.fromPartial(en.redelegationEntry):void 0,eo.balance=en.balance??"",eo}},ei.RedelegationResponse={encode(en,eo=eR.Writer.create()){for(let ea of(void 0!==en.redelegation&&ei.Redelegation.encode(en.redelegation,eo.uint32(10).fork()).ldelim(),en.entries))ei.RedelegationEntryResponse.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eR.Reader?en:new eR.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseRedelegationResponse();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.redelegation=ei.Redelegation.decode(ea,ea.uint32());break;case 2:ed.entries.push(ei.RedelegationEntryResponse.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({redelegation:(0,e_.isSet)(en.redelegation)?ei.Redelegation.fromJSON(en.redelegation):void 0,entr
4ies:Array.isArray(en?.entries)?en.entries.map(en=>ei.RedelegationEntryResponse.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.redelegation&&(eo.redelegation=en.redelegation?ei.Redelegation.toJSON(en.redelegation):void 0),en.entries?eo.entries=en.entries.map(en=>en?ei.RedelegationEntryResponse.toJSON(en):void 0):eo.entries=[],eo},fromPartial(en){let eo=createBaseRedelegationResponse();return eo.redelegation=void 0!==en.redelegation&&null!==en.redelegation?ei.Redelegation.fromPartial(en.redelegation):void 0,eo.entries=en.entries?.map(en=>ei.RedelegationEntryResponse.fromPartial(en))||[],eo}},ei.Pool={encode:(en,ei=eR.Writer.create())=>(""!==en.notBondedTokens&&ei.uint32(10).string(en.notBondedTokens),""!==en.bondedTokens&&ei.uint32(18).string(en.bondedTokens),ei),decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePool();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.notBondedTokens=eo.string();break;case 2:es.bondedTokens=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({notBondedTokens:(0,e_.isSet)(en.notBondedTokens)?String(en.notBondedTokens):"",bondedTokens:(0,e_.isSet)(en.bondedTokens)?String(en.bondedTokens):""}),toJSON(en){let ei={};return void 0!==en.notBondedTokens&&(ei.notBondedTokens=en.notBondedTokens),void 0!==en.bondedTokens&&(ei.bondedTokens=en.bondedTokens),ei},fromPartial(en){let ei=createBasePool();return ei.notBondedTokens=en.notBondedTokens??"",ei.bondedTokens=en.bondedTokens??"",ei}},ei.ValidatorUpdates={encode(en,ei=eR.Writer.create()){for(let eo of en.updates)eS.ValidatorUpdate.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof eR.Reader?en:new eR.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorUpdates();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.updates.push(eS.ValidatorUpdate.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>({updates:Array.isArray(en?.updates)?en.updates.map(en=>eS.ValidatorUpdate.fromJSON(en)):[]}),toJSON(en){let ei={};return en.updates?ei.updates=en.updates.map(en=>en?eS.ValidatorUpdate.toJSON(en):void 0):ei.updates=[],ei},fromPartial(en){let ei=createBaseValidatorUpdates();return ei.updates=en.updates?.map(en=>eS.ValidatorUpdate.fromPartial(en))||[],ei}}},80422:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgUpdateParamsResponse=ei.MsgUpdateParams=ei.MsgCancelUnbondingDelegationResponse=ei.MsgCancelUnbondingDelegation=ei.MsgUndelegateResponse=ei.MsgUndelegate=ei.MsgBeginRedelegateResponse=ei.MsgBeginRedelegate=ei.MsgDelegateResponse=ei.MsgDelegate=ei.MsgEditValidatorResponse=ei.MsgEditValidator=ei.MsgCreateValidatorResponse=ei.MsgCreateValidator=ei.protobufPackage=void 0;let eu=eo(19355),ef=eo(53862),ep=eo(10891),em=eo(85522),eg=eo(81457),ey=ed(eo(83789));function createBaseMsgCreateValidator(){return{description:void 0,commission:void 0,minSelfDelegation:"",delegatorAddress:"",validatorAddress:"",pubkey:void 0,value:void 0}}function createBaseMsgCreateValidatorResponse(){return{}}function createBaseMsgEditValidator(){return{description:void 0,validatorAddress:"",commissionRate:"",minSelfDelegation:""}}function createBaseMsgEditValidatorResponse(){return{}}function createBaseMsgDelegate(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}function createBaseMsgDelegateResponse(){return{}}function createBaseMsgBeginRedelegate(){return{delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:"",amount:void 0}}function createBaseMsgBeginRedelegateResponse(){return{completionTime:void 0}}function createBaseMsgUndelegate(){return{delegatorAddress:"",validatorAddress:"",amount:void 0}}function createBaseMsgUndelegateResponse(){return{completionTime:void 0}}function createBaseMsgCancelUnbondingDelegation(){return{delegatorAddress:"",validatorAddress:"",amount:void 0,creationHeight:eg.Long.ZERO}}function createBaseMsgCancelUnbondingDelegationResponse(){return{}}function createBaseMsgUpdateParams(){return{authority:"",params:void 0}}function createBaseMsgUpdateParamsResponse(){return{}}ei.protobufPackage="cosmos.staking.v1beta1",ei.MsgCreateValidator={encode:(en,ei=ey.Writer.create())=>(void 0!==en.description&&eu.Description.encode(en.description,ei.uint32(10).fork()).ldelim(),void 0!==en.commission&&eu.CommissionRates.encode(en.commission,ei.uint32(18).fork()).ldelim(),""!==en.minSelfDelegation&&ei.uint32(26).string(en.minSelfDelegation),""!==en.delegatorAddress&&ei.uint32(34).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(42).string(en.validatorAddress),void 0!==en.pubkey&&ef.Any.encode(en.pubkey,ei.uint32(50).fork()).ldelim(),void 0!==en.value&&ep.Coin.encode(en.value,ei.uint32(58).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreateValidator();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.description=eu.Description.decode(eo,eo.uint32());break;case 2:es.commission=eu.CommissionRates.decode(eo,eo.uint32());break;case 3:es.minSelfDelegation=eo.string();break;case 4:es.delegatorAddress=eo.string();break;case 5:es.validatorAddress=eo.string();break;case 6:es.pubkey=ef.Any.decode(eo,eo.uint32());break;case 7:es.value=ep.Coin.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({description:(0,eg.isSet)(en.description)?eu.Description.fromJSON(en.description):void 0,commission:(0,eg.isSet)(en.commission)?eu.CommissionRates.fromJSON(en.commission):void 0,minSelfDelegation:(0,eg.isSet)(en.minSelfDelegation)?String(en.minSelfDelegation):"",delegatorAddress:(0,eg.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,eg.isSet)(en.validatorAddress)?String(en.validatorAddress):"",pubkey:(0,eg.isSet)(en.pubkey)?ef.Any.fromJSON(en.pubkey):void 0,value:(0,eg.isSet)(en.value)?ep.Coin.fromJSON(en.value):void 0}),toJSON(en){let ei={};return void 0!==en.description&&(ei.description=en.description?eu.Description.toJSON(en.description):void 0),void 0!==en.commission&&(ei.commission=en.commission?eu.CommissionRates.toJSON(en.commission):void 0),void 0!==en.minSelfDelegation&&(ei.minSelfDelegation=en.minSelfDelegation),void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),void 0!==en.pubkey&&(ei.pubkey=en.pubkey?ef.Any.toJSON(en.pubkey):void 0),void 0!==en.value&&(ei.value=en.value?ep.Coin.toJSON(en.value):void 0),ei},fromPartial(en){let ei=createBaseMsgCreateValidator();return ei.description=void 0!==en.description&&null!==en.description?eu.Description.fromPartial(en.description):void 0,ei.commission=void 0!==en.commission&&null!==en.commission?eu.CommissionRates.fromPartial(en.commission):void 0,ei.minSelfDelegation=en.minSelfDelegation??"",ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei.pubkey=void 0!==en.pubkey&&null!==en.pubkey?ef.Any.fromPartial(en.pubkey):void 0,ei.value=void 0!==en.value&&null!==en.value?ep.Coin.fromPartial(en.value):void 0,ei}},ei.MsgCreateValidatorResponse={encode:(en,ei=ey.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreateValidatorResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgCreateValidatorResponse();return ei}},ei.MsgEditValidator={encode:(en,ei=ey.Writer.create())=>(void 0!==en.description&&eu.Description.encode(en.description,ei.uint32(10).fork()).ldelim(),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),""!==en.commissionRate&&ei.uint32(26).string(en.commissionRate),""!==en.minSelfDelegation&&ei.uint32(34).string(en.minSelfDelegation),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgEditValidator();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.description=eu.Description.decode(eo,eo.uint32());break;case 2:es.validatorAddress=eo.string();break;case 3:es.commissionRate=eo.string();break;case 4:es.minSelfDelegation=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({description:(0,eg.isSet)(en.description)?eu.Description.fromJSON(en.description):void 0,validatorAddress:(0,eg.isSet)(en.validatorAddress)?String(en.validatorAddress):"",commissionRate:(0,eg.isSet)(en.commissionRate)?String(en.commissionRate):"",minSelfDelegation:(0,eg.isSet)(en.minSelfDelegation)?String(en.minSelfDelegation):""}),toJSON(en){let ei={};return void 0!==en.description&&(ei.description=en.description?eu.Description.toJSON(en.description):void 0),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),void 0!==en.commissionRate&&(ei.commissionRate=en.commissionRate),void 0!==en.minSelfDelegation&&(ei.minSelfDelegation=en.minSelfDelegation),ei},fromPartial(en){let ei=createBaseMsgEditValidator();return ei.description=void 0!==en.description&&null!==en.description?eu.Description.fromPartial(en.description):void 0,ei.val
4idatorAddress=en.validatorAddress??"",ei.commissionRate=en.commissionRate??"",ei.minSelfDelegation=en.minSelfDelegation??"",ei}},ei.MsgEditValidatorResponse={encode:(en,ei=ey.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgEditValidatorResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgEditValidatorResponse();return ei}},ei.MsgDelegate={encode:(en,ei=ey.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),void 0!==en.amount&&ep.Coin.encode(en.amount,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgDelegate();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorAddress=eo.string();break;case 3:es.amount=ep.Coin.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,eg.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,eg.isSet)(en.validatorAddress)?String(en.validatorAddress):"",amount:(0,eg.isSet)(en.amount)?ep.Coin.fromJSON(en.amount):void 0}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),void 0!==en.amount&&(ei.amount=en.amount?ep.Coin.toJSON(en.amount):void 0),ei},fromPartial(en){let ei=createBaseMsgDelegate();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei.amount=void 0!==en.amount&&null!==en.amount?ep.Coin.fromPartial(en.amount):void 0,ei}},ei.MsgDelegateResponse={encode:(en,ei=ey.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgDelegateResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgDelegateResponse();return ei}},ei.MsgBeginRedelegate={encode:(en,ei=ey.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorSrcAddress&&ei.uint32(18).string(en.validatorSrcAddress),""!==en.validatorDstAddress&&ei.uint32(26).string(en.validatorDstAddress),void 0!==en.amount&&ep.Coin.encode(en.amount,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgBeginRedelegate();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorSrcAddress=eo.string();break;case 3:es.validatorDstAddress=eo.string();break;case 4:es.amount=ep.Coin.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,eg.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorSrcAddress:(0,eg.isSet)(en.validatorSrcAddress)?String(en.validatorSrcAddress):"",validatorDstAddress:(0,eg.isSet)(en.validatorDstAddress)?String(en.validatorDstAddress):"",amount:(0,eg.isSet)(en.amount)?ep.Coin.fromJSON(en.amount):void 0}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorSrcAddress&&(ei.validatorSrcAddress=en.validatorSrcAddress),void 0!==en.validatorDstAddress&&(ei.validatorDstAddress=en.validatorDstAddress),void 0!==en.amount&&(ei.amount=en.amount?ep.Coin.toJSON(en.amount):void 0),ei},fromPartial(en){let ei=createBaseMsgBeginRedelegate();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorSrcAddress=en.validatorSrcAddress??"",ei.validatorDstAddress=en.validatorDstAddress??"",ei.amount=void 0!==en.amount&&null!==en.amount?ep.Coin.fromPartial(en.amount):void 0,ei}},ei.MsgBeginRedelegateResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.completionTime&&em.Timestamp.encode(en.completionTime,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgBeginRedelegateResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.completionTime=em.Timestamp.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({completionTime:(0,eg.isSet)(en.completionTime)?(0,eg.fromJsonTimestamp)(en.completionTime):void 0}),toJSON(en){let ei={};return void 0!==en.completionTime&&(ei.completionTime=(0,eg.fromTimestamp)(en.completionTime).toISOString()),ei},fromPartial(en){let ei=createBaseMsgBeginRedelegateResponse();return ei.completionTime=void 0!==en.completionTime&&null!==en.completionTime?em.Timestamp.fromPartial(en.completionTime):void 0,ei}},ei.MsgUndelegate={encode:(en,ei=ey.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),void 0!==en.amount&&ep.Coin.encode(en.amount,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUndelegate();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorAddress=eo.string();break;case 3:es.amount=ep.Coin.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,eg.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,eg.isSet)(en.validatorAddress)?String(en.validatorAddress):"",amount:(0,eg.isSet)(en.amount)?ep.Coin.fromJSON(en.amount):void 0}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),void 0!==en.amount&&(ei.amount=en.amount?ep.Coin.toJSON(en.amount):void 0),ei},fromPartial(en){let ei=createBaseMsgUndelegate();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei.amount=void 0!==en.amount&&null!==en.amount?ep.Coin.fromPartial(en.amount):void 0,ei}},ei.MsgUndelegateResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.completionTime&&em.Timestamp.encode(en.completionTime,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUndelegateResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.completionTime=em.Timestamp.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({completionTime:(0,eg.isSet)(en.completionTime)?(0,eg.fromJsonTimestamp)(en.completionTime):void 0}),toJSON(en){let ei={};return void 0!==en.completionTime&&(ei.completionTime=(0,eg.fromTimestamp)(en.completionTime).toISOString()),ei},fromPartial(en){let ei=createBaseMsgUndelegateResponse();return ei.completionTime=void 0!==en.completionTime&&null!==en.completionTime?em.Timestamp.fromPartial(en.completionTime):void 0,ei}},ei.MsgCancelUnbondingDelegation={encode:(en,ei=ey.Writer.create())=>(""!==en.delegatorAddress&&ei.uint32(10).string(en.delegatorAddress),""!==en.validatorAddress&&ei.uint32(18).string(en.validatorAddress),void 0!==en.amount&&ep.Coin.encode(en.amount,ei.uint32(26).fork()).ldelim(),en.creationHeight.isZero()||ei.uint32(32).int64(en.creationHeight),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCancelUnbondingDelegation();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.delegatorAddress=eo.string();break;case 2:es.validatorAddress=eo.string();break;case 3:es.amount=ep.Coin.decode(eo,eo.uint32());break;case 4:es.creationHeight=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({delegatorAddress:(0,eg.isSet)(en.delegatorAddress)?String(en.delegatorAddress):"",validatorAddress:(0,eg.isSet)(en.validatorAddress)?String(en.validatorAddress):"",amount:(0,eg.isSet)(en.amount)?ep.Coin.fromJSON(en.amount):void 0,creationHeight:(0,eg.isSet)(en.creationHeight)?eg.Long.fromValue(en.creationHeight):eg.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.delegatorAddress&&(ei.delegatorAddress=en.delegatorAddress),void 0!==en.validatorAddress&&(ei.validatorAddress=en.validatorAddress),void 0!==en.amount&&(ei.amount=en.amount?ep.Coin.toJSON(en.amount):void 0),void 0!==en.creationHeight&&(ei.creationHeight=(en.creationHeight||eg.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseMsgCancelUnbondingDelegation();return ei.delegatorAddress=en.delegatorAddress??"",ei.validatorAddress=en.validatorAddress??"",ei.amount=void 0!==en.amount&&null!==en.amount?ep.Coin.fromPartial(en.amount):void 0,ei.creationHeight=void 0!==en.creationHeight&&null!==en.creationHeight?eg.Long.fromValue(en.creationHeight):eg.Long.ZERO,ei}},ei.MsgCancelUnbondingDelegationResponse={encode:(en,ei=ey.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCancelUnbondingDelegationResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgCancelUnbondingDelegationResponse();return ei}},ei.MsgUpdateParams={encode:(en,ei=ey.Writer.create())=>(""!==en.authority&&ei.uint32(10).string(en.authority),void 0!==en.params&&eu.Params.encode(en.params,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.authority=eo.string();break;case 2:es.params=eu.Params.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({authority:(0,eg.isSet)(en.authority)?String(en.authority):"",params:(0,eg.isSet)(en.params)?eu.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.authority&&(ei.authority=en.authority),void 0!==en.params&&(ei.params=en.params?eu.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseMsgUpdateParams();return ei.authority=en.authority??"",ei.params=void 0!==en.params&&null!==en.params?eu.Params.fromPartial(en.params):void 0,ei}},ei.MsgUpdateParamsResponse={encode:(en,ei=ey.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgUpdateParamsResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this),this.CancelUnbondingDelegation=this.CancelUnbondingDelegation.bind(this),this.UpdateParams=this.UpdateParams.bind(this)}CreateValidator(en){let eo=ei.MsgCreateValidator.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",eo);return ea.then(en=>ei.MsgCreateValidatorResponse.decode(new ey.Reader(en)))}EditValidator(en){let eo=ei.MsgEditValidator.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",eo);return ea.then(en=>ei.MsgEditValidatorResponse.decode(new ey.Reader(en)))}Delegate(en){let eo=ei.MsgDelegate.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",eo);return ea.then(en=>ei.MsgDelegateResponse.decode(new ey.Reader(en)))}BeginRedelegate(en){let eo=ei.MsgBeginRedelegate.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",eo);return ea.then(en=>ei.MsgBeginRedelegateResponse.decode(new ey.Reader(en)))}Undelegate(en){let eo=ei.MsgUndelegate.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",eo);return ea.then(en=>ei.MsgUndelegateResponse.decode(new ey.Reader(en)))}CancelUnbondingDelegation(en){let eo=ei.MsgCancelUnbondingDelegation.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Msg","CancelUnbondingDelegation",eo);return ea.then(en=>ei.MsgCancelUnbondingDelegationResponse.decode(new ey.Reader(en)))}UpdateParams(en){let eo=ei.MsgUpdateParams.encode(en).finish(),ea=this.rpc.request("cosmos.staking.v1beta1.Msg","UpdateParams",eo);return ea.then(en=>ei.MsgUpdateParamsResponse.decode(new ey.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},72574:function(en,ei,eo){"use strict";var ea,es=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),ed=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),eu=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&es(ei,en,eo);return ed(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.SignatureDescriptor_Data_Multi=ei.SignatureDescriptor_Data_Single=ei.SignatureDescriptor_Data=ei.SignatureDescriptor=ei.SignatureDescriptors=ei.signModeToJSON=ei.signModeFromJSON=ei.SignMode=ei.protobufPackage=void 0;let ef=eo(77381),ep=eo(53862),em=eo(81457),eg=eu(eo(83789));function signModeFromJSON(en){switch(en){case 0:case"SIGN_MODE_UNSPECIFIED":return ea.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return ea.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return ea.SIGN_MODE_TEXTUAL;case 3:case"SIGN_MODE_DIRECT_AUX":return ea.SIGN_MODE_DIRECT_AUX;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return ea.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return ea.SIGN_MODE_EIP_191;default:return ea.UNRECOGNIZED}}function signModeToJSON(en){switch(en){case ea.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case ea.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case ea.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case ea.SIGN_MODE_DIRECT_AUX:return"SIGN_MODE_DIRECT_AUX";case ea.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case ea.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseSignatureDescriptors(){return{signatures:[]}}function createBaseSignatureDescriptor(){return{publicKey:void 0,data:void 0,sequence:em.Long.UZERO}}function createBaseSignatureDescriptor_Data(){return{single:void 0,multi:void 0}}function createBaseSignatureDescriptor_Data_Single(){return{mode:0,signature:new Uint8Array}}function createBaseSignatureDescriptor_Data_Multi(){return{bitarray:void 0,signatures:[]}}ei.protobufPackage="cosmos.tx.signing.v1beta1",function(en){en[en.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",en[en.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",en[en.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",en[en.SIGN_MODE_DIRECT_AUX=3]="SIGN_MODE_DIRECT_AUX",en[en.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",en[en.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.SignMode||(ei.SignMode={})),ei.signModeFromJSON=signModeFromJSON,ei.signModeToJSON=signModeToJSON,ei.SignatureDescriptors={encode(en,eo=eg.Writer.create()){for(let ea of en.signatures)ei.SignatureDescriptor.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSignatureDescriptors();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.signatures.push(ei.SignatureDescriptor.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>
4({signatures:Array.isArray(en?.signatures)?en.signatures.map(en=>ei.SignatureDescriptor.fromJSON(en)):[]}),toJSON(en){let eo={};return en.signatures?eo.signatures=en.signatures.map(en=>en?ei.SignatureDescriptor.toJSON(en):void 0):eo.signatures=[],eo},fromPartial(en){let eo=createBaseSignatureDescriptors();return eo.signatures=en.signatures?.map(en=>ei.SignatureDescriptor.fromPartial(en))||[],eo}},ei.SignatureDescriptor={encode:(en,eo=eg.Writer.create())=>(void 0!==en.publicKey&&ep.Any.encode(en.publicKey,eo.uint32(10).fork()).ldelim(),void 0!==en.data&&ei.SignatureDescriptor_Data.encode(en.data,eo.uint32(18).fork()).ldelim(),en.sequence.isZero()||eo.uint32(24).uint64(en.sequence),eo),decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSignatureDescriptor();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.publicKey=ep.Any.decode(ea,ea.uint32());break;case 2:ed.data=ei.SignatureDescriptor_Data.decode(ea,ea.uint32());break;case 3:ed.sequence=ea.uint64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({publicKey:(0,em.isSet)(en.publicKey)?ep.Any.fromJSON(en.publicKey):void 0,data:(0,em.isSet)(en.data)?ei.SignatureDescriptor_Data.fromJSON(en.data):void 0,sequence:(0,em.isSet)(en.sequence)?em.Long.fromValue(en.sequence):em.Long.UZERO}),toJSON(en){let eo={};return void 0!==en.publicKey&&(eo.publicKey=en.publicKey?ep.Any.toJSON(en.publicKey):void 0),void 0!==en.data&&(eo.data=en.data?ei.SignatureDescriptor_Data.toJSON(en.data):void 0),void 0!==en.sequence&&(eo.sequence=(en.sequence||em.Long.UZERO).toString()),eo},fromPartial(en){let eo=createBaseSignatureDescriptor();return eo.publicKey=void 0!==en.publicKey&&null!==en.publicKey?ep.Any.fromPartial(en.publicKey):void 0,eo.data=void 0!==en.data&&null!==en.data?ei.SignatureDescriptor_Data.fromPartial(en.data):void 0,eo.sequence=void 0!==en.sequence&&null!==en.sequence?em.Long.fromValue(en.sequence):em.Long.UZERO,eo}},ei.SignatureDescriptor_Data={encode:(en,eo=eg.Writer.create())=>(void 0!==en.single&&ei.SignatureDescriptor_Data_Single.encode(en.single,eo.uint32(10).fork()).ldelim(),void 0!==en.multi&&ei.SignatureDescriptor_Data_Multi.encode(en.multi,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSignatureDescriptor_Data();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.single=ei.SignatureDescriptor_Data_Single.decode(ea,ea.uint32());break;case 2:ed.multi=ei.SignatureDescriptor_Data_Multi.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({single:(0,em.isSet)(en.single)?ei.SignatureDescriptor_Data_Single.fromJSON(en.single):void 0,multi:(0,em.isSet)(en.multi)?ei.SignatureDescriptor_Data_Multi.fromJSON(en.multi):void 0}),toJSON(en){let eo={};return void 0!==en.single&&(eo.single=en.single?ei.SignatureDescriptor_Data_Single.toJSON(en.single):void 0),void 0!==en.multi&&(eo.multi=en.multi?ei.SignatureDescriptor_Data_Multi.toJSON(en.multi):void 0),eo},fromPartial(en){let eo=createBaseSignatureDescriptor_Data();return eo.single=void 0!==en.single&&null!==en.single?ei.SignatureDescriptor_Data_Single.fromPartial(en.single):void 0,eo.multi=void 0!==en.multi&&null!==en.multi?ei.SignatureDescriptor_Data_Multi.fromPartial(en.multi):void 0,eo}},ei.SignatureDescriptor_Data_Single={encode:(en,ei=eg.Writer.create())=>(0!==en.mode&&ei.uint32(8).int32(en.mode),0!==en.signature.length&&ei.uint32(18).bytes(en.signature),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSignatureDescriptor_Data_Single();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.mode=eo.int32();break;case 2:es.signature=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({mode:(0,em.isSet)(en.mode)?signModeFromJSON(en.mode):0,signature:(0,em.isSet)(en.signature)?(0,em.bytesFromBase64)(en.signature):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.mode&&(ei.mode=signModeToJSON(en.mode)),void 0!==en.signature&&(ei.signature=(0,em.base64FromBytes)(void 0!==en.signature?en.signature:new Uint8Array)),ei},fromPartial(en){let ei=createBaseSignatureDescriptor_Data_Single();return ei.mode=en.mode??0,ei.signature=en.signature??new Uint8Array,ei}},ei.SignatureDescriptor_Data_Multi={encode(en,eo=eg.Writer.create()){for(let ea of(void 0!==en.bitarray&&ef.CompactBitArray.encode(en.bitarray,eo.uint32(10).fork()).ldelim(),en.signatures))ei.SignatureDescriptor_Data.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSignatureDescriptor_Data_Multi();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.bitarray=ef.CompactBitArray.decode(ea,ea.uint32());break;case 2:ed.signatures.push(ei.SignatureDescriptor_Data.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({bitarray:(0,em.isSet)(en.bitarray)?ef.CompactBitArray.fromJSON(en.bitarray):void 0,signatures:Array.isArray(en?.signatures)?en.signatures.map(e
4n=>ei.SignatureDescriptor_Data.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.bitarray&&(eo.bitarray=en.bitarray?ef.CompactBitArray.toJSON(en.bitarray):void 0),en.signatures?eo.signatures=en.signatures.map(en=>en?ei.SignatureDescriptor_Data.toJSON(en):void 0):eo.signatures=[],eo},fromPartial(en){let eo=createBaseSignatureDescriptor_Data_Multi();return eo.bitarray=void 0!==en.bitarray&&null!==en.bitarray?ef.CompactBitArray.fromPartial(en.bitarray):void 0,eo.signatures=en.signatures?.map(en=>ei.SignatureDescriptor_Data.fromPartial(en))||[],eo}}},74616:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),eu=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ef=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ed(ei,en,eo);return eu(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ServiceClientImpl=ei.TxDecodeAminoResponse=ei.TxDecodeAminoRequest=ei.TxEncodeAminoResponse=ei.TxEncodeAminoRequest=ei.TxEncodeResponse=ei.TxEncodeRequest=ei.TxDecodeResponse=ei.TxDecodeRequest=ei.GetBlockWithTxsResponse=ei.GetBlockWithTxsRequest=ei.GetTxResponse=ei.GetTxRequest=ei.SimulateResponse=ei.SimulateRequest=ei.BroadcastTxResponse=ei.BroadcastTxRequest=ei.GetTxsEventResponse=ei.GetTxsEventRequest=ei.broadcastModeToJSON=ei.broadcastModeFromJSON=ei.BroadcastMode=ei.orderByToJSON=ei.orderByFromJSON=ei.OrderBy=ei.protobufPackage=void 0;let ep=eo(29639),em=eo(79551),eg=eo(84194),ey=eo(31258),eb=eo(17246),eS=eo(81457),e_=ef(eo(83789));function orderByFromJSON(en){switch(en){case 0:case"ORDER_BY_UNSPECIFIED":return ea.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return ea.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return ea.ORDER_BY_DESC;default:return ea.UNRECOGNIZED}}function orderByToJSON(en){switch(en){case ea.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case ea.ORDER_BY_ASC:return"ORDER_BY_ASC";case ea.ORDER_BY_DESC:return"ORDER_BY_DESC";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function broadcastModeFromJSON(en){switch(en){case 0:case"BROADCAST_MODE_UNSPECIFIED":return es.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return es.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return es.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return es.BROADCAST_MODE_ASYNC;default:return es.UNRECOGNIZED}}function broadcastModeToJSON(en){switch(en){case es.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case es.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case es.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case es.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseGetTxsEventRequest(){return{events:[],pagination:void 0,orderBy:0,page:eS.Long.UZERO,limit:eS.Long.UZERO}}function createBaseGetTxsEventResponse(){return{txs:[],txResponses:[],pagination:void 0,total:eS.Long.UZERO}}function createBaseBroadcastTxRequest(){return{txBytes:new Uint8Array,mode:0}}function createBaseBroadcastTxResponse(){return{txResponse:void 0}}function createBaseSimulateRequest(){return{tx:void 0,txBytes:new Uint8Array}}function createBaseSimulateResponse(){return{gasInfo:void 0,result:void 0}}function createBaseGetTxRequest(){return{hash:""}}function createBaseGetTxResponse(){return{tx:void 0,txResponse:void 0}}function createBaseGetBlockWithTxsRequest(){return{height:eS.Long.ZERO,pagination:void 0}}function createBaseGetBlockWithTxsResponse(){return{txs:[],blockId:void 0,block:void 0,pagination:void 0}}function createBaseTxDecodeRequest(){return{txBytes:new Uint8Array}}function createBaseTxDecodeResponse(){return{tx:void 0}}
4function createBaseTxEncodeRequest(){return{tx:void 0}}function createBaseTxEncodeResponse(){return{txBytes:new Uint8Array}}function createBaseTxEncodeAminoRequest(){return{aminoJson:""}}function createBaseTxEncodeAminoResponse(){return{aminoBinary:new Uint8Array}}function createBaseTxDecodeAminoRequest(){return{aminoBinary:new Uint8Array}}function createBaseTxDecodeAminoResponse(){return{aminoJson:""}}ei.protobufPackage="cosmos.tx.v1beta1",function(en){en[en.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",en[en.ORDER_BY_ASC=1]="ORDER_BY_ASC",en[en.ORDER_BY_DESC=2]="ORDER_BY_DESC",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.OrderBy||(ei.OrderBy={})),ei.orderByFromJSON=orderByFromJSON,ei.orderByToJSON=orderByToJSON,function(en){en[en.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",en[en.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",en[en.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",en[en.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.BroadcastMode||(ei.BroadcastMode={})),ei.broadcastModeFromJSON=broadcastModeFromJSON,ei.broadcastModeToJSON=broadcastModeToJSON,ei.GetTxsEventRequest={encode(en,ei=e_.Writer.create()){for(let eo of en.events)ei.uint32(10).string(eo);return void 0!==en.pagination&&em.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),0!==en.orderBy&&ei.uint32(24).int32(en.orderBy),en.page.isZero()||ei.uint32(32).uint64(en.page),en.limit.isZero()||ei.uint32(40).uint64(en.limit),ei},decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGetTxsEventRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.events.push(eo.string());break;case 2:es.pagination=em.PageRequest.decode(eo,eo.uint32());break;case 3:es.orderBy=eo.int32();break;case 4:es.page=eo.uint64();break;case 5:es.limit=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({events:Array.isArray(en?.events)?en.events.map(en=>String(en)):[],pagination:(0,eS.isSet)(en.pagination)?em.PageRequest.fromJSON(en.pagination):void 0,orderBy:(0,eS.isSet)(en.orderBy)?orderByFromJSON(en.orderBy):0,page:(0,eS.isSet)(en.page)?eS.Long.fromValue(en.page):eS.Long.UZERO,limit:(0,eS.isSet)(en.limit)?eS.Long.fromValue(en.limit):eS.Long.UZERO}),toJSON(en){let ei={};return en.events?ei.events=en.events.map(en=>en):ei.events=[],void 0!==en.pagination&&(ei.pagination=en.pagination?em.PageRequest.toJSON(en.pagination):void 0),void 0!==en.orderBy&&(ei.orderBy=orderByToJSON(en.orderBy)),void 0!==en.page&&(ei.page=(en.page||eS.Long.UZERO).toString()),void 0!==en.limit&&(ei.limit=(en.limit||eS.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseGetTxsEventRequest();return ei.events=en.events?.map(en=>en)||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?em.PageRequest.fromPartial(en.pagination):void 0,ei.orderBy=en.orderBy??0,ei.page=void 0!==en.page&&null!==en.page?eS.Long.fromValue(en.page):eS.Long.UZERO,ei.limit=void 0!==en.limit&&null!==en.limit?eS.Long.fromValue(en.limit):eS.Long.UZERO,ei}},ei.GetTxsEventResponse={encode(en,ei=e_.Writer.create()){for(let eo of en.txs)ep.Tx.encode(eo,ei.uint32(10).fork()).ldelim();for(let eo of en.txResponses)eg.TxResponse.encode(eo,ei.uint32(18).fork()).ldelim();return void 0!==en.pagination&&em.PageResponse.encode(en.pagination,ei.uint32(26).fork()).ldelim(),en.total.isZero()||ei.uint32(32).uint64(en.total),ei},decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGetTxsEventResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.txs.push(ep.Tx.decode(eo,eo.uint32()));break;case 2:es.txResponses.push(eg.TxResponse.decode(eo,eo.uint32()));break;case 3:es.pagination=em.PageResponse.decode(eo,eo.uint32());break;case 4:es.total=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({txs:Array.isArray(en?.txs)?en.txs.map(en=>ep.Tx.fromJSON(en)):[],txResponses:Array.isArray(en?.txResponses)?en.txResponses.map(en=>eg.TxResponse.fromJSON(en)):[],pagination:(0,eS.isSet)(en.pagination)?em.PageResponse.fromJSON(en.pagination):void 0,total:(0,eS.isSet)(en.total)?eS.Long.fromValue(en.total):eS.Long.UZERO}),toJSON(en){let ei={};return en.txs?ei.txs=en.txs.map(en=>en?ep.Tx.toJSON(en):void 0):ei.txs=[],en.txResponses?ei.txResponses=en.txResponses.map(en=>en?eg.TxResponse.toJSON(en):void 0):ei.txResponses=[],void 0!==en.pagination&&(ei.pagination=en.pagination?em.PageResponse.toJSON(en.pagination):void 0),void 0!==en.total&&(ei.total=(en.total||eS.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseGetTxsEventResponse();return ei.txs=en.txs?.map(en=>ep.Tx.fromPartial(en))||[],ei.txResponses=en.txResponses?.map(en=>eg.TxResponse.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?em.PageResponse.fromPartial(en.pagination):void 0,ei.total=void 0!==en.total&&null!==en.total?eS.Long.fromValue(en.total):eS.Long.UZERO,ei}},ei.BroadcastTxRequest={encode:(en,ei=e_.Writer.create())=>(0!==en.txBytes.length&&ei.uint32(10).bytes(en.txBytes),0!==en.mode&&ei.uint32(16).int32(en.mode),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBroadcastTxRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.txBytes=eo.bytes();break;case 2:es.mode=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({txBytes:(0,eS.isSet)(en.txBytes)?(0,eS.bytesFromBase64)(en.txBytes):new Uint8Array,mode:(0,eS.isSet)(en.mode)?broadcastModeFromJSON(en.mode):0}),toJSON(en){let ei={};return void 0!==en.txBytes&&(ei.txBytes=(0,eS.base64FromBytes)(void 0!==en.txBytes?en.txBytes:new Uint8Array)),void 0!==en.mode&&(ei.mode=broadcastModeToJSON(en.mode)),ei},fromPartial(en){let ei=createBaseBroadcastTxRequest();return ei.txBytes=en.txBytes??new Uint8Array,ei.mode=en.mode??0,ei}},ei.BroadcastTxResponse={encode:(en,ei=e_.Writer.create())=>(void 0!==en.txResponse&&eg.TxResponse.encode(en.txResponse,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBroadcastTxResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.txResponse=eg.TxResponse.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({txResponse:(0,eS.isSet)(en.txResponse)?eg.TxResponse.fromJSON(en.txResponse):void 0}),toJSON(en){let ei={};return void 0!==en.txResponse&&(ei.txResponse=en.txResponse?eg.TxResponse.toJSON(en.txResponse):void 0),ei},fromPartial(en){let ei=createBaseBroadcastTxResponse();return ei.txResponse=void 0!==en.txResponse&&null!==en.txResponse?eg.TxResponse.fromPartial(en.txResponse):void 0,ei}},ei.SimulateRequest={encode:(en,ei=e_.Writer.create())=>(void 0!==en.tx&&ep.Tx.encode(en.tx,ei.uint32(10).fork()).ldelim(),0!==en.txBytes.length&&ei.uint32(18).bytes(en.txBytes),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSimulateRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.tx=ep.Tx.decode(eo,eo.uint32());break;case 2:es.txBytes=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({tx:(0,eS.isSet)(en.tx)?ep.Tx.fromJSON(en.tx):void 0,txBytes:(0,eS.isSet)(en.txBytes)?(0,eS.bytesFromBase64)(en.txBytes):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.tx&&(ei.tx=en.tx?ep.Tx.toJSON(en.tx):void 0),void 0!==en.txBytes&&(ei.txBytes=(0,eS.base64FromBytes)(void 0!==en.txBytes?en.txBytes:new Uint8Array)),ei},fromPartial(en){let ei=createBaseSimulateRequest();return ei.tx=void 0!==en.tx&&null!==en.tx?ep.Tx.fromPartial(en.tx):void 0,ei.txBytes=en.txBytes??new Uint8Array,ei}},ei.SimulateResponse={encode:(en,ei=e_.Writer.create())=>(void 0!==en.gasInfo&&eg.GasInfo.encode(en.gasInfo,ei.uint32(10).fork()).ldelim(),void 0!==en.result&&eg.Result.encode(en.result,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSimulateResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.gasInfo=eg.GasInfo.decode(eo,eo.uint32());break;case 2:es.result=eg.Result.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({gasInfo:(0,eS.isSet)(en.gasInfo)?eg.GasInfo.fromJSON(en.gasInfo):void 0,result:(0,eS.isSet)(en.result)?eg.Result.fromJSON(en.result):void 0}),toJSON(en){let ei={};return void 0!==en.gasInfo&&(ei.gasInfo=en.gasInfo?eg.GasInfo.toJSON(en.gasInfo):void 0),void 0!==en.result&&(ei.result=en.result?eg.Result.toJSON(en.result):void 0),ei},fromPartial(en){let ei=createBaseSimulateResponse();return ei.gasInfo=void 0!==en.gasInfo&&null!==en.gasInfo?eg.GasInfo.fromPartial(en.gasInfo):void 0,ei.result=void 0!==en.result&&null!==en.result?eg.Result.fromPartial(en.result):void 0,ei}},ei.GetTxRequest={encode:(en,ei=e_.Writer.create())=>(""!==en.hash&&ei.uint32(10).string(en.hash),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGetTxRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.hash=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({hash:(0,eS.isSet)(en.hash)?String(en.hash):""}),toJSON(en){let ei={};return void 0!==en.hash&&(ei.hash=en.hash),ei},fromPartial(en){let ei=createBaseGetTxRequest();return ei.hash=en.hash??"",ei}},ei.GetTxResponse={encode:(en,ei=e_.Writer.create())=>(void 0!==en.tx&&ep.Tx.encode(en.tx,ei.uint32(10).fork()).ldelim(),void 0!==en.txResponse&&eg.TxResponse.encode(en.txResponse,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGetTxResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.tx=ep.Tx.decode(eo,eo.uint32());break;case 2:es.txResponse=eg.TxResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({tx:(0,eS.isSet)(en.tx)?ep.Tx.fromJSON(en.tx):void 0,txResponse:(0,eS.isSet)(en.txResponse)?eg.TxResponse.fromJSON(en.txResponse):void 0}),toJSON(en){let ei={};return void 0!==en.tx&&(ei.tx=en.tx?ep.Tx.toJSON(en.tx):void 0),void 0!==en.txResponse&&(ei.txResponse=en.txResponse?eg.TxResponse.toJSON(en.txResponse):void 0),ei},fromPartial(en){let ei=createBaseGetTxResponse();return ei.tx=void 0!==en.tx&&null!==en.tx?ep.Tx.fromPartial(en.tx):void 0,ei.txResponse=void 0!==en.txResponse&&null!==en.txResponse?eg.TxResponse.fromPartial(en.txResponse):void 0,ei}},ei.GetBlockWithTxsRequest={encode:(en,ei=e_.Writer.create())=>(en.height.isZero()||ei.uint32(8).int64(en.height),void 0!==en.pagination&&em.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGetBlockWithTxsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.height=eo.int64();break;case 2:es.pagination=em.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({height:(0,eS.isSet)(en.height)?eS.Long.fromValue(en.height):eS.Long.ZERO,pagination:(0,eS.isSet)(en.pagination)?em.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.height&&(ei.height=(en.height||eS.Long.ZERO).toString()),void 0!==en.pagination&&(ei.pagination=en.pagination?em.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseGetBlockWithTxsRequest();return ei.height=void 0!==en.height&&null!==en.height?eS.Long.fromValue(en.height):eS.Long.ZERO,ei.pagination=void 0!==en.pagination&&null!==en.pagination?em.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.GetBlockWithTxsResponse={encode(en,ei=e_.Writer.create()){for(let eo of en.txs)ep.Tx.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.blockId&&ey.BlockID.encode(en.blockId,ei.uint32(18).fork()).ldelim(),void 0!==en.block&&eb.Block.encode(en.block,ei.uint32(26).fork()).ldelim(),void 0!==en.pagination&&em.PageResponse.encode(en.pagination,ei.uint32(34).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseGetBlockWithTxsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.txs.push(ep.Tx.decode(eo,eo.uint32()));break;case 2:es.blockId=ey.BlockID.decode(eo,eo.uint32());break;case 3:es.block=eb.Block.decode(eo,eo.uint32());break;case 4:es.pagination=em.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({txs:Array.isArray(en?.txs)?en.txs.map(en=>ep.Tx.fromJSON(en)):[],blockId:(0,eS.isSet)(en.blockId)?ey.BlockID.fromJSON(en.blockId):void 0,block:(0,eS.isSet)(en.block)?eb.Block.fromJSON(en.block):void 0,pagination:(0,eS.isSet)(en.pagination)?em.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.txs?ei.txs=en.txs.map(en=>en?ep.Tx.toJSON(en):void 0):ei.txs=[],void 0!==en.blockId&&(ei.blockId=en.blockId?ey.BlockID.toJSON(en.blockId):void 0),void 0!==en.block&&(ei.block=en.block?eb.Block.toJSON(en.block):void 0),void 0!==en.pagination&&(ei.pagination=en.pagination?em.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseGetBlockWithTxsResponse();return ei.txs=en.txs?.map(en=>ep.Tx.fromPartial(en))||[],ei.blockId=void 0!==en.blockId&&null!==en.blockId?ey.BlockID.fromPartial(en.blockId):void 0,ei.block=void 0!==en.block&&null!==en.block?eb.Block.fromPartial(en.block):void 0,ei.pagination=void 0!==en.pagination&&null!==en.pagination?em.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.TxDecodeRequest={encode:(en,ei=e_.Writer.create())=>(0!==en.txBytes.length&&ei.uint32(10).bytes(en.txBytes),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxDecodeRequest
4();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.txBytes=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({txBytes:(0,eS.isSet)(en.txBytes)?(0,eS.bytesFromBase64)(en.txBytes):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.txBytes&&(ei.txBytes=(0,eS.base64FromBytes)(void 0!==en.txBytes?en.txBytes:new Uint8Array)),ei},fromPartial(en){let ei=createBaseTxDecodeRequest();return ei.txBytes=en.txBytes??new Uint8Array,ei}},ei.TxDecodeResponse={encode:(en,ei=e_.Writer.create())=>(void 0!==en.tx&&ep.Tx.encode(en.tx,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxDecodeResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.tx=ep.Tx.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({tx:(0,eS.isSet)(en.tx)?ep.Tx.fromJSON(en.tx):void 0}),toJSON(en){let ei={};return void 0!==en.tx&&(ei.tx=en.tx?ep.Tx.toJSON(en.tx):void 0),ei},fromPartial(en){let ei=createBaseTxDecodeResponse();return ei.tx=void 0!==en.tx&&null!==en.tx?ep.Tx.fromPartial(en.tx):void 0,ei}},ei.TxEncodeRequest={encode:(en,ei=e_.Writer.create())=>(void 0!==en.tx&&ep.Tx.encode(en.tx,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxEncodeRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.tx=ep.Tx.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({tx:(0,eS.isSet)(en.tx)?ep.Tx.fromJSON(en.tx):void 0}),toJSON(en){let ei={};return void 0!==en.tx&&(ei.tx=en.tx?ep.Tx.toJSON(en.tx):void 0),ei},fromPartial(en){let ei=createBaseTxEncodeRequest();return ei.tx=void 0!==en.tx&&null!==en.tx?ep.Tx.fromPartial(en.tx):void 0,ei}},ei.TxEncodeResponse={encode:(en,ei=e_.Writer.create())=>(0!==en.txBytes.length&&ei.uint32(10).bytes(en.txBytes),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxEncodeResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.txBytes=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({txBytes:(0,eS.isSet)(en.txBytes)?(0,eS.bytesFromBase64)(en.txBytes):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.txBytes&&(ei.txBytes=(0,eS.base64FromBytes)(void 0!==en.txBytes?en.txBytes:new Uint8Array)),ei},fromPartial(en){let ei=createBaseTxEncodeResponse();return ei.txBytes=en.txBytes??new Uint8Array,ei}},ei.TxEncodeAminoRequest={encode:(en,ei=e_.Writer.create())=>(""!==en.aminoJson&&ei.uint32(10).string(en.aminoJson),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxEncodeAminoRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.aminoJson=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({aminoJson:(0,eS.isSet)(en.aminoJson)?String(en.aminoJson):""}),toJSON(en){let ei={};return void 0!==en.aminoJson&&(ei.aminoJson=en.aminoJson),ei},fromPartial(en){let ei=createBaseTxEncodeAminoRequest();return ei.aminoJson=en.aminoJson??"",ei}},ei.TxEncodeAminoResponse={encode:(en,ei=e_.Writer.create())=>(0!==en.aminoBinary.length&&ei.uint32(10).bytes(en.aminoBinary),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxEncodeAminoResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.aminoBinary=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({aminoBinary:(0,eS.isSet)(en.aminoBinary)?(0,eS.bytesFromBase64)(en.aminoBinary):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.aminoBinary&&(ei.aminoBinary=(0,eS.base64FromBytes)(void 0!==en.aminoBinary?en.aminoBinary:new Uint8Array)),ei},fromPartial(en){let ei=createBaseTxEncodeAminoResponse();return ei.aminoBinary=en.aminoBinary??new Uint8Array,ei}},ei.TxDecodeAminoRequest={encode:(en,ei=e_.Writer.create())=>(0!==en.aminoBinary.length&&ei.uint32(10).bytes(en.aminoBinary),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxDecodeAminoRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.aminoBinary=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({aminoBinary:(0,eS.isSet)(en.aminoBinary)?(0,eS.bytesFromBase64)(en.aminoBinary):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.aminoBinary&&(ei.aminoBinary=(0,eS.base64FromBytes)(void 0!==en.aminoBinary?en.aminoBinary:new Uint8Array)),ei},fromPartial(en){let ei=createBaseTxDecodeAminoRequest();return ei.aminoBinary=en.aminoBinary??new Uint8Array,ei}},ei.TxDecodeAminoResponse={encode:(en,ei=e_.Writer.create())=>(""!==en.aminoJson&&ei.uint32(10).string(en.aminoJson),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxDecodeAminoResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.aminoJson=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({aminoJson:(0,eS.isSet)(en.aminoJson)?String(en.aminoJson):""}),toJSON(en){let ei={};return void 0!==en.aminoJson&&(ei.aminoJson=en.aminoJson),ei},fromPartial(en){let ei=createBaseTxDecodeAminoResponse();return ei.aminoJson=en.aminoJson??"",ei}};let ServiceClientImpl=class ServiceClientImpl{constructor(en){this.rpc=en,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this),this.GetBlockWithTxs=this.GetBlockWithTxs.bind(this),this.TxDecode=this.TxDecode.bind(this),this.TxEncode=this.TxEncode.bind(this),this.TxEncodeAmino=this.TxEncodeAmino.bind(this),this.TxDecodeAmino=this.TxDecodeAmino.bind(this)}Simulate(en){let eo=ei.SimulateRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","Simulate",eo);return ea.then(en=>ei.SimulateResponse.decode(new e_.Reader(en)))}GetTx(en){let eo=ei.GetTxRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","GetTx",eo);return ea.then(en=>ei.GetTxResponse.decode(new e_.Reader(en)))}BroadcastTx(en){let eo=ei.BroadcastTxRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","BroadcastTx",eo);return ea.then(en=>ei.BroadcastTxResponse.decode(new e_.Reader(en)))}GetTxsEvent(en){let eo=ei.GetTxsEventRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","GetTxsEvent",eo);return ea.then(en=>ei.GetTxsEventResponse.decode(new e_.Reader(en)))}GetBlockWithTxs(en){let eo=ei.GetBlockWithTxsRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","GetBlockWithTxs",eo);return ea.then(en=>ei.GetBlockWithTxsResponse.decode(new e_.Reader(en)))}TxDecode(en){let eo=ei.TxDecodeRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","TxDecode",eo);return ea.then(en=>ei.TxDecodeResponse.decode(new e_.Reader(en)))}TxEncode(en){let eo=ei.TxEncodeRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","TxEncode",eo);return ea.then(en=>ei.TxEncodeResponse.decode(new e_.Reader(en)))}TxEncodeAmino(en){let eo=ei.TxEncodeAminoRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","TxEncodeAmino",eo);return ea.then(en=>ei.TxEncodeAminoResponse.decode(new e_.Reader(en)))}TxDecodeAmino(en){let eo=ei.TxDecodeAminoRequest.encode(en).finish(),ea=this.rpc.request("cosmos.tx.v1beta1.Service","TxDecodeAmino",eo);return ea.then(en=>ei.TxDecodeAminoResponse.decode(new e_.Reader(en)))}};ei.ServiceClientImpl=ServiceClientImpl},29639:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.AuxSignerData=ei.Tip=ei.Fee=ei.ModeInfo_Multi=ei.ModeInfo_Single=ei.ModeInfo=ei.SignerInfo=ei.AuthInfo=ei.TxBody=ei.SignDocDirectAux=ei.SignDoc=ei.TxRaw=ei.Tx=ei.protobufPackage=void 0;let eu=eo(53862),ef=eo(72574),ep=eo(77381),em=eo(10891),eg=eo(81457),ey=ed(eo(83789));function createBaseTx(){return{body:void 0,authInfo:void 0,signatures:[]}}function createBaseTxRaw(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}function createBaseSignDoc(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:eg.Long.UZERO}}function createBaseSignDocDirectAux(){return{bodyBytes:new Uint8Array,publicKey:void 0,chainId:"",accountNumber:eg.Long.UZERO,sequence:eg.Long.UZERO,tip:void 0}}function createBaseTxBody(){return{messages:[],memo:"",timeoutHeight:eg.Long.UZERO,extensionOptions:[],nonCriticalExtensionOptions:[]}}function createBaseAuthInfo(){return{signerInfos:[],fee:void 0,tip:void 0}}function createBaseSignerInfo(){return{publicKey:void 0,modeInfo:void 0,sequence:eg.Long.UZERO}}function createBaseModeInfo(){return{single:void 0,multi:void 0}}function createBaseModeInfo_Single(){return{mode:0}}function createBaseModeInfo_Multi(){return{bitarray:void 0,modeInfos:[]}}function createBaseFee(){return{amount:[],gasLimit:eg.Long.UZERO,payer:"",granter:""}}function createBaseTip(){return{amount:[],tipper:""}}function createBaseAuxSignerData(){return{address:"",signDoc:void 0,mode:0,sig:new Uint8Array}}ei.protobufPackage="cosmos.tx.v1beta1",ei.Tx={encode(en,eo=ey.Writer.create()){for(let ea of(void 0!==en.body&&ei.TxBody.encode(en.body,eo.uint32(10).fork()).ldelim(),void 0!==en.authInfo&&ei.AuthInfo.encode(en.authInfo,eo.uint32(18).fork()).ldelim(),en.signatures))eo.uint32(26).bytes(ea);return eo},decode(en,eo){let ea=en instanceof ey.Reader?en:new ey.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseTx();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.body=ei.TxBody.decode(ea,ea.uint32());break;case 2:ed.authInfo=ei.AuthInfo.decode(ea,ea.uint32());break;case 3:ed.signatures.push(ea.bytes());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({body:(0,eg.isSet)(en.body)?ei.TxBody.fromJSON(en.body):void 0,authInfo:(0,eg.isSet)(en.authInfo)?ei.AuthInfo.fromJSON(en.authInfo):void 0,signatures:Array.isArray(en?.signatures)?en.signatures.map(e
4n=>(0,eg.bytesFromBase64)(en)):[]}),toJSON(en){let eo={};return void 0!==en.body&&(eo.body=en.body?ei.TxBody.toJSON(en.body):void 0),void 0!==en.authInfo&&(eo.authInfo=en.authInfo?ei.AuthInfo.toJSON(en.authInfo):void 0),en.signatures?eo.signatures=en.signatures.map(en=>(0,eg.base64FromBytes)(void 0!==en?en:new Uint8Array)):eo.signatures=[],eo},fromPartial(en){let eo=createBaseTx();return eo.body=void 0!==en.body&&null!==en.body?ei.TxBody.fromPartial(en.body):void 0,eo.authInfo=void 0!==en.authInfo&&null!==en.authInfo?ei.AuthInfo.fromPartial(en.authInfo):void 0,eo.signatures=en.signatures?.map(en=>en)||[],eo}},ei.TxRaw={encode(en,ei=ey.Writer.create()){for(let eo of(0!==en.bodyBytes.length&&ei.uint32(10).bytes(en.bodyBytes),0!==en.authInfoBytes.length&&ei.uint32(18).bytes(en.authInfoBytes),en.signatures))ei.uint32(26).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxRaw();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.bodyBytes=eo.bytes();break;case 2:es.authInfoBytes=eo.bytes();break;case 3:es.signatures.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({bodyBytes:(0,eg.isSet)(en.bodyBytes)?(0,eg.bytesFromBase64)(en.bodyBytes):new Uint8Array,authInfoBytes:(0,eg.isSet)(en.authInfoBytes)?(0,eg.bytesFromBase64)(en.authInfoBytes):new Uint8Array,signatures:Array.isArray(en?.signatures)?en.signatures.map(en=>(0,eg.bytesFromBase64)(en)):[]}),toJSON(en){let ei={};return void 0!==en.bodyBytes&&(ei.bodyBytes=(0,eg.base64FromBytes)(void 0!==en.bodyBytes?en.bodyBytes:new Uint8Array)),void 0!==en.authInfoBytes&&(ei.authInfoBytes=(0,eg.base64FromBytes)(void 0!==en.authInfoBytes?en.authInfoBytes:new Uint8Array)),en.signatures?ei.signatures=en.signatures.map(en=>(0,eg.base64FromBytes)(void 0!==en?en:new Uint8Array)):ei.signatures=[],ei},fromPartial(en){let ei=createBaseTxRaw();return ei.bodyBytes=en.bodyBytes??new Uint8Array,ei.authInfoBytes=en.authInfoBytes??new Uint8Array,ei.signatures=en.signatures?.map(en=>en)||[],ei}},ei.SignDoc={encode:(en,ei=ey.Writer.create())=>(0!==en.bodyBytes.length&&ei.uint32(10).bytes(en.bodyBytes),0!==en.authInfoBytes.length&&ei.uint32(18).bytes(en.authInfoBytes),""!==en.chainId&&ei.uint32(26).string(en.chainId),en.accountNumber.isZero()||ei.uint32(32).uint64(en.accountNumber),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSignDoc();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.bodyBytes=eo.bytes();break;case 2:es.authInfoBytes=eo.bytes();break;case 3:es.chainId=eo.string();break;case 4:es.accountNumber=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({bodyBytes:(0,eg.isSet)(en.bodyBytes)?(0,eg.bytesFromBase64)(en.bodyBytes):new Uint8Array,authInfoBytes:(0,eg.isSet)(en.authInfoBytes)?(0,eg.bytesFromBase64)(en.authInfoBytes):new Uint8Array,chainId:(0,eg.isSet)(en.chainId)?String(en.chainId):"",accountNumber:(0,eg.isSet)(en.accountNumber)?eg.Long.fromValue(en.accountNumber):eg.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.bodyBytes&&(ei.bodyBytes=(0,eg.base64FromBytes)(void 0!==en.bodyBytes?en.bodyBytes:new Uint8Array)),void 0!==en.authInfoBytes&&(ei.authInfoBytes=(0,eg.base64FromBytes)(void 0!==en.authInfoBytes?en.authInfoBytes:new Uint8Array)),void 0!==en.chainId&&(ei.chainId=en.chainId),void 0!==en.accountNumber&&(ei.accountNumber=(en.accountNumber||eg.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseSignDoc();return ei.bodyBytes=en.bodyBytes??new Uint8Array,ei.authInfoBytes=en.authInfoBytes??new Uint8Array,ei.chainId=en.chainId??"",ei.accountNumber=void 0!==en.accountNumber&&null!==en.accountNumber?eg.Long.fromValue(en.accountNumber):eg.Long.UZERO,ei}},ei.SignDocDirectAux={encode:(en,eo=ey.Writer.create())=>(0!==en.bodyBytes.length&&eo.uint32(10).bytes(en.bodyBytes),void 0!==en.publicKey&&eu.Any.encode(en.publicKey,eo.uint32(18).fork()).ldelim(),""!==en.chainId&&eo.uint32(26).string(en.chainId),en.accountNumber.isZero()||eo.uint32(32).uint64(en.accountNumber),en.sequence.isZero()||eo.uint32(40).uint64(en.sequence),void 0!==en.tip&&ei.Tip.encode(en.tip,eo.uint32(50).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ey.Reader?en:new ey.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSignDocDirectAux();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.bodyBytes=ea.bytes();break;case 2:ed.publicKey=eu.Any.decode(ea,ea.uint32());break;case 3:ed.chainId=ea.string();break;case 4:ed.accountNumber=ea.uint64();break;case 5:ed.sequence=ea.uint64();break;case 6:ed.tip=ei.Tip.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({bodyBytes:(0,eg.isSet)(en.bodyBytes)?(0,eg.bytesFromBase64)(en.bodyBytes):new Uint8Array,publicKey:(0,eg.isSet)(en.publicKey)?eu.Any.fromJSON(en.publicKey):void 0,chainId:(0,eg.isSet)(en.chainId)?String(en.chainId):"",accountNumber:(0,eg.isSet)(en.accountNumber)?eg.Long.fromValue(en.accountNumber):eg.L
4ong.UZERO,sequence:(0,eg.isSet)(en.sequence)?eg.Long.fromValue(en.sequence):eg.Long.UZERO,tip:(0,eg.isSet)(en.tip)?ei.Tip.fromJSON(en.tip):void 0}),toJSON(en){let eo={};return void 0!==en.bodyBytes&&(eo.bodyBytes=(0,eg.base64FromBytes)(void 0!==en.bodyBytes?en.bodyBytes:new Uint8Array)),void 0!==en.publicKey&&(eo.publicKey=en.publicKey?eu.Any.toJSON(en.publicKey):void 0),void 0!==en.chainId&&(eo.chainId=en.chainId),void 0!==en.accountNumber&&(eo.accountNumber=(en.accountNumber||eg.Long.UZERO).toString()),void 0!==en.sequence&&(eo.sequence=(en.sequence||eg.Long.UZERO).toString()),void 0!==en.tip&&(eo.tip=en.tip?ei.Tip.toJSON(en.tip):void 0),eo},fromPartial(en){let eo=createBaseSignDocDirectAux();return eo.bodyBytes=en.bodyBytes??new Uint8Array,eo.publicKey=void 0!==en.publicKey&&null!==en.publicKey?eu.Any.fromPartial(en.publicKey):void 0,eo.chainId=en.chainId??"",eo.accountNumber=void 0!==en.accountNumber&&null!==en.accountNumber?eg.Long.fromValue(en.accountNumber):eg.Long.UZERO,eo.sequence=void 0!==en.sequence&&null!==en.sequence?eg.Long.fromValue(en.sequence):eg.Long.UZERO,eo.tip=void 0!==en.tip&&null!==en.tip?ei.Tip.fromPartial(en.tip):void 0,eo}},ei.TxBody={encode(en,ei=ey.Writer.create()){for(let eo of en.messages)eu.Any.encode(eo,ei.uint32(10).fork()).ldelim();for(let eo of(""!==en.memo&&ei.uint32(18).string(en.memo),en.timeoutHeight.isZero()||ei.uint32(24).uint64(en.timeoutHeight),en.extensionOptions))eu.Any.encode(eo,ei.uint32(8186).fork()).ldelim();for(let eo of en.nonCriticalExtensionOptions)eu.Any.encode(eo,ei.uint32(16378).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxBody();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.messages.push(eu.Any.decode(eo,eo.uint32()));break;case 2:es.memo=eo.string();break;case 3:es.timeoutHeight=eo.uint64();break;case 1023:es.extensionOptions.push(eu.Any.decode(eo,eo.uint32()));break;case 2047:es.nonCriticalExtensionOptions.push(eu.Any.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({messages:Array.isArray(en?.messages)?en.messages.map(en=>eu.Any.fromJSON(en)):[],memo:(0,eg.isSet)(en.memo)?String(en.memo):"",timeoutHeight:(0,eg.isSet)(en.timeoutHeight)?eg.Long.fromValue(en.timeoutHeight):eg.Long.UZERO,extensionOptions:Array.isArray(en?.extensionOptions)?en.extensionOptions.map(en=>eu.Any.fromJSON(en)):[],nonCriticalExtensionOptions:Array.isArray(en?.nonCriticalExtensionOptions)?en.nonCriticalExtensionOptions.map(en=>eu.Any.fromJSON(en)):[]}),toJSON(en){let ei={};return en.messages?ei.messages=en.messages.map(en=>en?eu.Any.toJSON(en):void 0):ei.messages=[],void 0!==en.memo&&(ei.memo=en.memo),void 0!==en.timeoutHeight&&(ei.timeoutHeight=(en.timeoutHeight||eg.Long.UZERO).toString()),en.extensionOptions?ei.extensionOptions=en.extensionOptions.map(en=>en?eu.Any.toJSON(en):void 0):ei.extensionOptions=[],en.nonCriticalExtensionOptions?ei.nonCriticalExtensionOptions=en.nonCriticalExtensionOptions.map(en=>en?eu.Any.toJSON(en):void 0):ei.nonCriticalExtensionOptions=[],ei},fromPartial(en){let ei=createBaseTxBody();return ei.messages=en.messages?.map(en=>eu.Any.fromPartial(en))||[],ei.memo=en.memo??"",ei.timeoutHeight=void 0!==en.timeoutHeight&&null!==en.timeoutHeight?eg.Long.fromValue(en.timeoutHeight):eg.Long.UZERO,ei.extensionOptions=en.extensionOptions?.map(en=>eu.Any.fromPartial(en))||[],ei.nonCriticalExtensionOptions=en.nonCriticalExtensionOptions?.map(en=>eu.Any.fromPartial(en))||[],ei}},ei.AuthInfo={encode(en,eo=ey.Writer.create()){for(let ea of en.signerInfos)ei.SignerInfo.encode(ea,eo.uint32(10).fork()).ldelim();return void 0!==en.fee&&ei.Fee.encode(en.fee,eo.uint32(18).fork()).ldelim(),void 0!==en.tip&&ei.Tip.encode(en.tip,eo.uint32(26).fork()).ldelim(),eo},decode(en,eo){let ea=en instanceof ey.Reader?en:new ey.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseAuthInfo();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.signerInfos.push(ei.SignerInfo.decode(ea,ea.uint32()));break;case 2:ed.fee=ei.Fee.decode(ea,ea.uint32());break;case 3:ed.tip=ei.Tip.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({signerInfos:Array.isArray(en?.signerInfos)?en.signerInfos.map(en=>ei.SignerInfo.fromJSON(en)):[],fee:(0,eg.isSet)(en.fee)?ei.Fee.fromJSON(en.fee):void 0,tip:(0,eg.isSet)(en.tip)?ei.Tip.fromJSON(en.tip):void 0}),toJSON(en){let eo={};return en.signerInfos?eo.signerInfos=en.signerInfos.map(en=>en?ei.SignerInfo.toJSON(en):void 0):eo.signerInfos=[],void 0!==en.fee&&(eo.fee=en.fee?ei.Fee.toJSON(en.fee):void 0),void 0!==en.tip&&(eo.tip=en.tip?ei.Tip.toJSON(en.tip):void 0),eo},fromPartial(en){let eo=createBaseAuthInfo();return eo.signerInfos=en.signerInfos?.map(en=>ei.SignerInfo.fromPartial(en))||[],eo.fee=void 0!==en.fee&&null!==en.fee?ei.Fee.fromPartial(en.fee):void 0,eo.tip=void 0!==en.tip&&null!==en.tip?ei.Tip.fromPartial(en.tip):void 0,eo}},ei.SignerInfo={encode:(en,eo=ey.Writer.create())=>(void 0!==en.publicKey&&eu.Any.encode(en.publicKey,eo.uint32(10).fork()).ldelim(),void 0!==en.modeInfo&&ei.ModeInfo.encode(en.modeInfo,eo.uint32(18).fork()).ldelim(),en.sequence.isZero()||eo.uint32(24).uint64(en.sequence),eo),decode(en,eo){let ea=en instanceof ey.Reader?en:new ey.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSignerInfo();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.publicKey=eu.Any.decode(ea,ea.uint32());break;case 2:ed.modeInfo=ei.ModeInfo.decode(ea,ea.uint32());break;case 3:ed.sequence=ea.uint64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({publicKey:(0,eg.isSet)(en.publicKey)?eu.Any.fromJSON(en.publicKey):void 0,modeInfo:(0,eg.isSet)(en.modeInfo)?ei.ModeInfo.fromJSON(en.modeInfo):void 0,sequence:(0,eg.isSet)(en.sequence)?eg.Long.fromValue(en.sequence):eg.L
4ong.UZERO}),toJSON(en){let eo={};return void 0!==en.publicKey&&(eo.publicKey=en.publicKey?eu.Any.toJSON(en.publicKey):void 0),void 0!==en.modeInfo&&(eo.modeInfo=en.modeInfo?ei.ModeInfo.toJSON(en.modeInfo):void 0),void 0!==en.sequence&&(eo.sequence=(en.sequence||eg.Long.UZERO).toString()),eo},fromPartial(en){let eo=createBaseSignerInfo();return eo.publicKey=void 0!==en.publicKey&&null!==en.publicKey?eu.Any.fromPartial(en.publicKey):void 0,eo.modeInfo=void 0!==en.modeInfo&&null!==en.modeInfo?ei.ModeInfo.fromPartial(en.modeInfo):void 0,eo.sequence=void 0!==en.sequence&&null!==en.sequence?eg.Long.fromValue(en.sequence):eg.Long.UZERO,eo}},ei.ModeInfo={encode:(en,eo=ey.Writer.create())=>(void 0!==en.single&&ei.ModeInfo_Single.encode(en.single,eo.uint32(10).fork()).ldelim(),void 0!==en.multi&&ei.ModeInfo_Multi.encode(en.multi,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ey.Reader?en:new ey.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseModeInfo();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.single=ei.ModeInfo_Single.decode(ea,ea.uint32());break;case 2:ed.multi=ei.ModeInfo_Multi.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({single:(0,eg.isSet)(en.single)?ei.ModeInfo_Single.fromJSON(en.single):void 0,multi:(0,eg.isSet)(en.multi)?ei.ModeInfo_Multi.fromJSON(en.multi):void 0}),toJSON(en){let eo={};return void 0!==en.single&&(eo.single=en.single?ei.ModeInfo_Single.toJSON(en.single):void 0),void 0!==en.multi&&(eo.multi=en.multi?ei.ModeInfo_Multi.toJSON(en.multi):void 0),eo},fromPartial(en){let eo=createBaseModeInfo();return eo.single=void 0!==en.single&&null!==en.single?ei.ModeInfo_Single.fromPartial(en.single):void 0,eo.multi=void 0!==en.multi&&null!==en.multi?ei.ModeInfo_Multi.fromPartial(en.multi):void 0,eo}},ei.ModeInfo_Single={encode:(en,ei=ey.Writer.create())=>(0!==en.mode&&ei.uint32(8).int32(en.mode),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseModeInfo_Single();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.mode=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({mode:(0,eg.isSet)(en.mode)?(0,ef.signModeFromJSON)(en.mode):0}),toJSON(en){let ei={};return void 0!==en.mode&&(ei.mode=(0,ef.signModeToJSON)(en.mode)),ei},fromPartial(en){let ei=createBaseModeInfo_Single();return ei.mode=en.mode??0,ei}},ei.ModeInfo_Multi={encode(en,eo=ey.Writer.create()){for(let ea of(void 0!==en.bitarray&&ep.CompactBitArray.encode(en.bitarray,eo.uint32(10).fork()).ldelim(),en.modeInfos))ei.ModeInfo.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ey.Reader?en:new ey.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseModeInfo_Multi();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.bitarray=ep.CompactBitArray.decode(ea,ea.uint32());break;case 2:ed.modeInfos.push(ei.ModeInfo.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({bitarray:(0,eg.isSet)(en.bitarray)?ep.CompactBitArray.fromJSON(en.bitarray):void 0,modeInfos:Array.isArray(en?.modeInfos)?en.modeInfos.map(en=>ei.ModeInfo.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.bitarray&&(eo.bitarray=en.bitarray?ep.CompactBitArray.toJSON(en.bitarray):void 0),en.modeInfos?eo.modeInfos=en.modeInfos.map(en=>en?ei.ModeInfo.toJSON(en):void 0):eo.modeInfos=[],eo},fromPartial(en){let eo=createBaseModeInfo_Multi();return eo.bitarray=void 0!==en.bitarray&&null!==en.bitarray?ep.CompactBitArray.fromPartial(en.bitarray):void 0,eo.modeInfos=en.modeInfos?.map(en=>ei.ModeInfo.fromPartial(en))||[],eo}},ei.Fee={encode(en,ei=ey.Writer.create()){for(let eo of en.amount)em.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return en.gasLimit.isZero()||ei.uint32(16).uint64(en.gasLimit),""!==en.payer&&ei.uint32(26).string(en.payer),""!==en.granter&&ei.uint32(34).string(en.granter),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseFee();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.amount.push(em.Coin.decode(eo,eo.uint32()));break;case 2:es.gasLimit=eo.uint64();break;case 3:es.payer=eo.string();break;case 4:es.granter=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({amount:Array.isArray(en?.amount)?en.amount.map(en=>em.Coin.fromJSON(en)):[],gasLimit:(0,eg.isSet)(en.gasLimit)?eg.Long.fromValue(en.gasLimit):eg.Long.UZERO,payer:(0,eg.isSet)(en.payer)?String(en.payer):"",granter:(0,eg.isSet)(en.granter)?String(en.granter):""}),toJSON(en){let ei={};return en.amount?ei.amount=en.amount.map(en=>en?em.Coin.toJSON(en):void 0):ei.amount=[],void 0!==en.gasLimit&&(ei.gasLimit=(en.gasLimit||eg.Long.UZERO).toString()),void 0!==en.payer&&(ei.payer=en.payer),void 0!==en.granter&&(ei.granter=en.granter),ei},fromPartial(en){let ei=createBaseFee();return ei.amount=en.amount?.map(en=>em.Coin.fromPartial(en))||[],ei.gasLimit=void 0!==en.gasLimit&&null!==en.gasLimit?eg.Long.fromValue(en.gasLimit):eg.Long.UZERO,ei.payer=en.payer??"",ei.granter=en.granter??"",ei}},ei.Tip={encode(en,ei=ey.Writer.create()){for(let eo of en.amount)em.Coin.encode(eo,ei.uint32(10).fork()).ldelim();return""!==en.tipper&&ei.uint32(18).string(en.tipper),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTip();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.amount.push(em.Coin.decode(eo,eo.uint32()));break;case 2:es.tipper=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({amount:Array.isArray(en?.amount)?en.amount.map(en=>em.Coin.fromJSON(en)):[],tipper:(0,eg.isSet)(en.tipper)?String(en.tipper):""}),toJSON(en){let ei={};return en.amount?ei.amount=en.amount.map(en=>en?em.Coin.toJSON(en):void 0):ei.amount=[],void 0!==en.tipper&&(ei.tipper=en.tipper),ei},fromPartial(en){let ei=createBaseTip();return ei.amount=en.amount?.map(en=>em.Coin.fromPartial(en))||[],ei.tipper=en.tipper??"",ei}},ei.AuxSignerData={encode:(en,eo=ey.Writer.create())=>(""!==en.address&&eo.uint32(10).string(en.address),void 0!==en.signDoc&&ei.SignDocDirectAux.encode(en.signDoc,eo.uint32(18).fork()).ldelim(),0!==en.mode&&eo.uint32(24).int32(en.mode),0!==en.sig.length&&eo.uint32(34).bytes(en.sig),eo),decode(en,eo){let ea=en instanceof ey.Reader?en:new ey.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseAuxSignerData();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.address=ea.string();break;case 2:ed.signDoc=ei.SignDocDirectAux.decode(ea,ea.uint32());break;case 3:ed.mode=ea.int32();break;case 4:ed.sig=ea.bytes();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({address:(0,eg.isSet)(en.address)?String(en.address):"",signDoc:(0,eg.isSet)(en.signDoc)?ei.SignDocDirectAux.fromJSON(en.signDoc):void 0,mode:(0,eg.isSet)(en.mode)?(0,ef.sign
4ModeFromJSON)(en.mode):0,sig:(0,eg.isSet)(en.sig)?(0,eg.bytesFromBase64)(en.sig):new Uint8Array}),toJSON(en){let eo={};return void 0!==en.address&&(eo.address=en.address),void 0!==en.signDoc&&(eo.signDoc=en.signDoc?ei.SignDocDirectAux.toJSON(en.signDoc):void 0),void 0!==en.mode&&(eo.mode=(0,ef.signModeToJSON)(en.mode)),void 0!==en.sig&&(eo.sig=(0,eg.base64FromBytes)(void 0!==en.sig?en.sig:new Uint8Array)),eo},fromPartial(en){let eo=createBaseAuxSignerData();return eo.address=en.address??"",eo.signDoc=void 0!==en.signDoc&&null!==en.signDoc?ei.SignDocDirectAux.fromPartial(en.signDoc):void 0,eo.mode=en.mode??0,eo.sig=en.sig??new Uint8Array,eo}}},77317:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ModuleVersion=ei.CancelSoftwareUpgradeProposal=ei.SoftwareUpgradeProposal=ei.Plan=ei.protobufPackage=void 0;let eu=eo(85522),ef=eo(53862),ep=eo(81457),em=ed(eo(83789));function createBasePlan(){return{name:"",time:void 0,height:ep.Long.ZERO,info:"",upgradedClientState:void 0}}function createBaseSoftwareUpgradeProposal(){return{title:"",description:"",plan:void 0}}function createBaseCancelSoftwareUpgradeProposal(){return{title:"",description:""}}function createBaseModuleVersion(){return{name:"",version:ep.Long.UZERO}}ei.protobufPackage="cosmos.upgrade.v1beta1",ei.Plan={encode:(en,ei=em.Writer.create())=>(""!==en.name&&ei.uint32(10).string(en.name),void 0!==en.time&&eu.Timestamp.encode(en.time,ei.uint32(18).fork()).ldelim(),en.height.isZero()||ei.uint32(24).int64(en.height),""!==en.info&&ei.uint32(34).string(en.info),void 0!==en.upgradedClientState&&ef.Any.encode(en.upgradedClientState,ei.uint32(42).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePlan();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.name=eo.string();break;case 2:es.time=eu.Timestamp.decode(eo,eo.uint32());break;case 3:es.height=eo.int64();break;case 4:es.info=eo.string();break;case 5:es.upgradedClientState=ef.Any.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({name:(0,ep.isSet)(en.name)?String(en.name):"",time:(0,ep.isSet)(en.time)?(0,ep.fromJsonTimestamp)(en.time):void 0,height:(0,ep.isSet)(en.height)?ep.Long.fromValue(en.height):ep.Long.ZERO,info:(0,ep.isSet)(en.info)?String(en.info):"",upgradedClientState:(0,ep.isSet)(en.upgradedClientState)?ef.Any.fromJSON(en.upgradedClientState):void 0}),toJSON(en){let ei={};return void 0!==en.name&&(ei.name=en.name),void 0!==en.time&&(ei.time=(0,ep.fromTimestamp)(en.time).toISOString()),void 0!==en.height&&(ei.height=(en.height||ep.Long.ZERO).toString()),void 0!==en.info&&(ei.info=en.info),void 0!==en.upgradedClientState&&(ei.upgradedClientState=en.upgradedClientState?ef.Any.toJSON(en.upgradedClientState):void 0),ei},fromPartial(en){let ei=createBasePlan();return ei.name=en.name??"",ei.time=void 0!==en.time&&null!==en.time?eu.Timestamp.fromPartial(en.time):void 0,ei.height=void 0!==en.height&&null!==en.height?ep.Long.fromValue(en.height):ep.Long.ZERO,ei.info=en.info??"",ei.upgradedClientState=void 0!==en.upgradedClientState&&null!==en.upgradedClientState?ef.Any.fromPartial(en.upgradedClientState):void 0,ei}},ei.SoftwareUpgradeProposal={encode:(en,eo=em.Writer.create())=>(""!==en.title&&eo.uint32(10).string(en.title),""!==en.description&&eo.uint32(18).string(en.description),void 0!==en.plan&&ei.Plan.encode(en.plan,eo.uint32(26).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSoftwareUpgradeProposal();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.title=ea.string();break;case 2:ed.description=ea.string();break;case 3:ed.plan=ei.Plan.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({title:(0,ep.isSet)(en.title)?String(en.title):"",description:(0,ep.isSet)(en.description)?String(en.description):"",plan:(0,ep.isSet)(en.plan)?ei.Plan.fromJSON(en.plan):void 0}),toJSON(en){let eo={};return void 0!==en.title&&(eo.title=en.title),void 0!==en.description&&(eo.description=en.description),void 0!==en.plan&&(eo.plan=en.plan?ei.Plan.toJSON(en.plan):void 0),eo},fromPartial(en){let eo=createBaseSoftwareUpgradeProposal();return eo.title=en.title??"",eo.description=en.description??"",eo.plan=void 0!==en.plan&&null!==en.plan?ei.Plan.fromPartial(en.plan):void 0,eo}},ei.CancelSoftwareUpgradeProposal={encode:(en,ei=em.Writer.create())=>(""!==en.title&&ei.uint32(10).string(en.title),""!==en.description&&ei.uint32(18).string(en.description),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCancelSoftwareUpgradeProposal();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.title=eo.string();break;case 2:es.description=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({title:(0,ep.isSet)(en.title)?String(en.title):"",description:(0,ep.isSet)(en.description)?String(en.description):""}),toJSON(en){let ei={};return void 0!==en.title&&(ei.title=en.title),void 0!==en.description&&(ei.description=en.description),ei},fromPartial(en){let ei=createBaseCancelSoftwareUpgradeProposal();return ei.title=en.title??"",ei.description=en.description??"",ei}},ei.ModuleVersion={encode:(en,ei=em.Writer.create())=>(""!==en.name&&ei.uint32(10).string(en.name),en.version.isZero()||ei.uint32(16).uint64(en.version),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseModuleVersion();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.name=eo.string();break;case 2:es.version=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({name:(0,ep.isSet)(en.name)?String(en.name):"",version:(0,ep.isSet)(en.version)?ep.Long.fromValue(en.version):ep.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.name&&(ei.name=en.name),void 0!==en.version&&(ei.version=(en.version||ep.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseModuleVersion();return ei.name=en.name??"",ei.version=void 0!==en.version&&null!==en.version?ep.Long.fromValue(en.version):ep.Long.UZERO,ei}}},34287:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}
4),ei.MsgClientImpl=ei.MsgCreatePeriodicVestingAccountResponse=ei.MsgCreatePeriodicVestingAccount=ei.MsgCreatePermanentLockedAccountResponse=ei.MsgCreatePermanentLockedAccount=ei.MsgCreateVestingAccountResponse=ei.MsgCreateVestingAccount=ei.protobufPackage=void 0;let eu=eo(10891),ef=eo(5303),ep=eo(81457),em=ed(eo(83789));function createBaseMsgCreateVestingAccount(){return{fromAddress:"",toAddress:"",amount:[],endTime:ep.Long.ZERO,delayed:!1}}function createBaseMsgCreateVestingAccountResponse(){return{}}function createBaseMsgCreatePermanentLockedAccount(){return{fromAddress:"",toAddress:"",amount:[]}}function createBaseMsgCreatePermanentLockedAccountResponse(){return{}}function createBaseMsgCreatePeriodicVestingAccount(){return{fromAddress:"",toAddress:"",startTime:ep.Long.ZERO,vestingPeriods:[]}}function createBaseMsgCreatePeriodicVestingAccountResponse(){return{}}ei.protobufPackage="cosmos.vesting.v1beta1",ei.MsgCreateVestingAccount={encode(en,ei=em.Writer.create()){for(let eo of(""!==en.fromAddress&&ei.uint32(10).string(en.fromAddress),""!==en.toAddress&&ei.uint32(18).string(en.toAddress),en.amount))eu.Coin.encode(eo,ei.uint32(26).fork()).ldelim();return en.endTime.isZero()||ei.uint32(32).int64(en.endTime),!0===en.delayed&&ei.uint32(40).bool(en.delayed),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreateVestingAccount();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.fromAddress=eo.string();break;case 2:es.toAddress=eo.string();break;case 3:es.amount.push(eu.Coin.decode(eo,eo.uint32()));break;case 4:es.endTime=eo.int64();break;case 5:es.delayed=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({fromAddress:(0,ep.isSet)(en.fromAddress)?String(en.fromAddress):"",toAddress:(0,ep.isSet)(en.toAddress)?String(en.toAddress):"",amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[],endTime:(0,ep.isSet)(en.endTime)?ep.Long.fromValue(en.endTime):ep.Long.ZERO,delayed:!!(0,ep.isSet)(en.delayed)&&!!en.delayed}),toJSON(en){let ei={};return void 0!==en.fromAddress&&(ei.fromAddress=en.fromAddress),void 0!==en.toAddress&&(ei.toAddress=en.toAddress),en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],void 0!==en.endTime&&(ei.endTime=(en.endTime||ep.Long.ZERO).toString()),void 0!==en.delayed&&(ei.delayed=en.delayed),ei},fromPartial(en){let ei=createBaseMsgCreateVestingAccount();return ei.fromAddress=en.fromAddress??"",ei.toAddress=en.toAddress??"",ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei.endTime=void 0!==en.endTime&&null!==en.endTime?ep.Long.fromValue(en.endTime):ep.Long.ZERO,ei.delayed=en.delayed??!1,ei}},ei.MsgCreateVestingAccountResponse={encode:(en,ei=em.Writer.create())=>ei,decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreateVestingAccountResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgCreateVestingAccountResponse();return ei}},ei.MsgCreatePermanentLockedAccount={encode(en,ei=em.Writer.create()){for(let eo of(""!==en.fromAddress&&ei.uint32(10).string(en.fromAddress),""!==en.toAddress&&ei.uint32(18).string(en.toAddress),en.amount))eu.Coin.encode(eo,ei.uint32(26).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreatePermanentLockedAccount();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.fromAddress=eo.string();break;case 2:es.toAddress=eo.string();break;case 3:es.amount.push(eu.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({fromAddress:(0,ep.isSet)(en.fromAddress)?String(en.fromAddress):"",toAddress:(0,ep.isSet)(en.toAddress)?String(en.toAddress):"",amount:Array.isArray(en?.amount)?en.amount.map(en=>eu.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.fromAddress&&(ei.fromAddress=en.fromAddress),void 0!==en.toAddress&&(ei.toAddress=en.toAddress),en.amount?ei.amount=en.amount.map(en=>en?eu.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBaseMsgCreatePermanentLockedAccount();return ei.fromAddress=en.fromAddress??"",ei.toAddress=en.toAddress??"",ei.amount=en.amount?.map(en=>eu.Coin.fromPartial(en))||[],ei}},ei.MsgCreatePermanentLockedAccountResponse={encode:(en,ei=em.Writer.create())=>ei,decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreatePermanentLockedAccountResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgCreatePermanentLockedAccountResponse();return ei}}
4,ei.MsgCreatePeriodicVestingAccount={encode(en,ei=em.Writer.create()){for(let eo of(""!==en.fromAddress&&ei.uint32(10).string(en.fromAddress),""!==en.toAddress&&ei.uint32(18).string(en.toAddress),en.startTime.isZero()||ei.uint32(24).int64(en.startTime),en.vestingPeriods))ef.Period.encode(eo,ei.uint32(34).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreatePeriodicVestingAccount();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.fromAddress=eo.string();break;case 2:es.toAddress=eo.string();break;case 3:es.startTime=eo.int64();break;case 4:es.vestingPeriods.push(ef.Period.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({fromAddress:(0,ep.isSet)(en.fromAddress)?String(en.fromAddress):"",toAddress:(0,ep.isSet)(en.toAddress)?String(en.toAddress):"",startTime:(0,ep.isSet)(en.startTime)?ep.Long.fromValue(en.startTime):ep.Long.ZERO,vestingPeriods:Array.isArray(en?.vestingPeriods)?en.vestingPeriods.map(en=>ef.Period.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.fromAddress&&(ei.fromAddress=en.fromAddress),void 0!==en.toAddress&&(ei.toAddress=en.toAddress),void 0!==en.startTime&&(ei.startTime=(en.startTime||ep.Long.ZERO).toString()),en.vestingPeriods?ei.vestingPeriods=en.vestingPeriods.map(en=>en?ef.Period.toJSON(en):void 0):ei.vestingPeriods=[],ei},fromPartial(en){let ei=createBaseMsgCreatePeriodicVestingAccount();return ei.fromAddress=en.fromAddress??"",ei.toAddress=en.toAddress??"",ei.startTime=void 0!==en.startTime&&null!==en.startTime?ep.Long.fromValue(en.startTime):ep.Long.ZERO,ei.vestingPeriods=en.vestingPeriods?.map(en=>ef.Period.fromPartial(en))||[],ei}},ei.MsgCreatePeriodicVestingAccountResponse={encode:(en,ei=em.Writer.create())=>ei,decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreatePeriodicVestingAccountResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgCreatePeriodicVestingAccountResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.CreateVestingAccount=this.CreateVestingAccount.bind(this),this.CreatePermanentLockedAccount=this.CreatePermanentLockedAccount.bind(this),this.CreatePeriodicVestingAccount=this.CreatePeriodicVestingAccount.bind(this)}CreateVestingAccount(en){let eo=ei.MsgCreateVestingAccount.encode(en).finish(),ea=this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",eo);return ea.then(en=>ei.MsgCreateVestingAccountResponse.decode(new em.Reader(en)))}CreatePermanentLockedAccount(en){let eo=ei.MsgCreatePermanentLockedAccount.encode(en).finish(),ea=this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePermanentLockedAccount",eo);return ea.then(en=>ei.MsgCreatePermanentLockedAccountResponse.decode(new em.Reader(en)))}CreatePeriodicVestingAccount(en){let eo=ei.MsgCreatePeriodicVestingAccount.encode(en).finish(),ea=this.rpc.request("cosmos.vesting.v1beta1.Msg","CreatePeriodicVestingAccount",eo);return ea.then(en=>ei.MsgCreatePeriodicVestingAccountResponse.decode(new em.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},5303:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}
4),ei.PermanentLockedAccount=ei.PeriodicVestingAccount=ei.Period=ei.DelayedVestingAccount=ei.ContinuousVestingAccount=ei.BaseVestingAccount=ei.protobufPackage=void 0;let eu=eo(83487),ef=eo(10891),ep=eo(81457),em=ed(eo(83789));function createBaseBaseVestingAccount(){return{baseAccount:void 0,originalVesting:[],delegatedFree:[],delegatedVesting:[],endTime:ep.Long.ZERO}}function createBaseContinuousVestingAccount(){return{baseVestingAccount:void 0,startTime:ep.Long.ZERO}}function createBaseDelayedVestingAccount(){return{baseVestingAccount:void 0}}function createBasePeriod(){return{length:ep.Long.ZERO,amount:[]}}function createBasePeriodicVestingAccount(){return{baseVestingAccount:void 0,startTime:ep.Long.ZERO,vestingPeriods:[]}}function createBasePermanentLockedAccount(){return{baseVestingAccount:void 0}}ei.protobufPackage="cosmos.vesting.v1beta1",ei.BaseVestingAccount={encode(en,ei=em.Writer.create()){for(let eo of(void 0!==en.baseAccount&&eu.BaseAccount.encode(en.baseAccount,ei.uint32(10).fork()).ldelim(),en.originalVesting))ef.Coin.encode(eo,ei.uint32(18).fork()).ldelim();for(let eo of en.delegatedFree)ef.Coin.encode(eo,ei.uint32(26).fork()).ldelim();for(let eo of en.delegatedVesting)ef.Coin.encode(eo,ei.uint32(34).fork()).ldelim();return en.endTime.isZero()||ei.uint32(40).int64(en.endTime),ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBaseVestingAccount();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.baseAccount=eu.BaseAccount.decode(eo,eo.uint32());break;case 2:es.originalVesting.push(ef.Coin.decode(eo,eo.uint32()));break;case 3:es.delegatedFree.push(ef.Coin.decode(eo,eo.uint32()));break;case 4:es.delegatedVesting.push(ef.Coin.decode(eo,eo.uint32()));break;case 5:es.endTime=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({baseAccount:(0,ep.isSet)(en.baseAccount)?eu.BaseAccount.fromJSON(en.baseAccount):void 0,originalVesting:Array.isArray(en?.originalVesting)?en.originalVesting.map(en=>ef.Coin.fromJSON(en)):[],delegatedFree:Array.isArray(en?.delegatedFree)?en.delegatedFree.map(en=>ef.Coin.fromJSON(en)):[],delegatedVesting:Array.isArray(en?.delegatedVesting)?en.delegatedVesting.map(en=>ef.Coin.fromJSON(en)):[],endTime:(0,ep.isSet)(en.endTime)?ep.Long.fromValue(en.endTime):ep.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.baseAccount&&(ei.baseAccount=en.baseAccount?eu.BaseAccount.toJSON(en.baseAccount):void 0),en.originalVesting?ei.originalVesting=en.originalVesting.map(en=>en?ef.Coin.toJSON(en):void 0):ei.originalVesting=[],en.delegatedFree?ei.delegatedFree=en.delegatedFree.map(en=>en?ef.Coin.toJSON(en):void 0):ei.delegatedFree=[],en.delegatedVesting?ei.delegatedVesting=en.delegatedVesting.map(en=>en?ef.Coin.toJSON(en):void 0):ei.delegatedVesting=[],void 0!==en.endTime&&(ei.endTime=(en.endTime||ep.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseBaseVestingAccount();return ei.baseAccount=void 0!==en.baseAccount&&null!==en.baseAccount?eu.BaseAccount.fromPartial(en.baseAccount):void 0,ei.originalVesting=en.originalVesting?.map(en=>ef.Coin.fromPartial(en))||[],ei.delegatedFree=en.delegatedFree?.map(en=>ef.Coin.fromPartial(en))||[],ei.delegatedVesting=en.delegatedVesting?.map(en=>ef.Coin.fromPartial(en))||[],ei.endTime=void 0!==en.endTime&&null!==en.endTime?ep.Long.fromValue(en.endTime):ep.Long.ZERO,ei}},ei.ContinuousVestingAccount={encode:(en,eo=em.Writer.create())=>(void 0!==en.baseVestingAccount&&ei.BaseVestingAccount.encode(en.baseVestingAccount,eo.uint32(10).fork()).ldelim(),en.startTime.isZero()||eo.uint32(16).int64(en.startTime),eo),decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseContinuousVestingAccount();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.baseVestingAccount=ei.BaseVestingAccount.decode(ea,ea.uint32());break;case 2:ed.startTime=ea.int64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({baseVestingAccount:(0,ep.isSet)(en.baseVestingAccount)?ei.BaseVestingAccount.fromJSON(en.baseVestingAccount):void 0,startTime:(0,ep.isSet)(en.startTime)?ep.Long.fromValue(en.startTime):ep.Long.ZERO}),toJSON(en){let eo={};return void 0!==en.baseVestingAccount&&(eo.baseVestingAccount=en.baseVestingAccount?ei.BaseVestingAccount.toJSON(en.baseVestingAccount):void 0),void 0!==en.startTime&&(eo.startTime=(en.startTime||ep.Long.ZERO).toString()),eo},fromPartial(en){let eo=createBaseContinuousVestingAccount();return eo.baseVestingAccount=void 0!==en.baseVestingAccount&&null!==en.baseVestingAccount?ei.BaseVestingAccount.fromPartial(en.baseVestingAccount):void 0,eo.startTime=void 0!==en.startTime&&null!==en.startTime?ep.Long.fromValue(en.startTime):ep.Long.ZERO,eo}},ei.DelayedVestingAccount={encode:(en,eo=em.Writer.create())=>(void 0!==en.baseVestingAccount&&ei.BaseVestingAccount.encode(en.baseVestingAccount,eo.uint32(10).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseDelayedVestingAccount();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.baseVestingAccount=ei.BaseVestingAccount.decode(ea,ea.uint32()):ea.skipType(7&en)}return ed},fromJSON:en=>({baseVestingAccount:(0,ep.isSet)(en.baseVestingAccount)?ei.BaseVestingAccount.fromJSON(en.baseVestingAccount):void 0}),toJSON(en){let eo={};return void 0!==en.baseVestingAccount&&(eo.baseVestingAccount=en.baseVestingAccount?ei.BaseVestingAccount.toJSON(en.baseVestingAccount):void 0),eo},fromPartial(en){let eo=createBaseDelayedVestingAccount();return eo.baseVestingAccount=void 0!==en.baseVestingAccount&&null!==en.baseVestingAccount?ei.BaseVestingAccount.fromPartial(en.baseVestingAccount):void 0,eo}},ei.Period={encode(en,ei=em.Writer.create()){for(let eo of(en.length.isZero()||ei.uint32(8).int64(en.length),en.amount))ef.Coin.encode(eo,ei.uint32(18).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePeriod();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.length=eo.int64();break;case 2:es.amount.push(ef.Coin.decode(eo,eo.uint32()));break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({length:(0,ep.isSet)(en.length)?ep.Long.fromValue(en.length):ep.Long.ZERO,amount:Array.isArray(en?.amount)?en.amount.map(en=>ef.Coin.fromJSON(en)):[]}),toJSON(en){let ei={};return void 0!==en.length&&(ei.length=(en.length||ep.Long.ZERO).toString()),en.amount?ei.amount=en.amount.map(en=>en?ef.Coin.toJSON(en):void 0):ei.amount=[],ei},fromPartial(en){let ei=createBasePeriod();return ei.length=void 0!==en.length&&null!==en.length?ep.Long.fromValue(en.length):ep.Long.ZERO,ei.amount=en.amount?.map(en=>ef.Coin.fromPartial(en))||[],ei}},ei.PeriodicVestingAccount={encode(en,eo=em.Writer.create()){for(let ea of(void 0!==en.baseVestingAccount&&ei.BaseVestingAccount.encode(en.baseVestingAccount,eo.uint32(10).fork()).ldelim(),en.startTime.isZero()||eo.uint32(16).int64(en.startTime),en.vestingPeriods))ei.Perio
4d.encode(ea,eo.uint32(26).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBasePeriodicVestingAccount();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.baseVestingAccount=ei.BaseVestingAccount.decode(ea,ea.uint32());break;case 2:ed.startTime=ea.int64();break;case 3:ed.vestingPeriods.push(ei.Period.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({baseVestingAccount:(0,ep.isSet)(en.baseVestingAccount)?ei.BaseVestingAccount.fromJSON(en.baseVestingAccount):void 0,startTime:(0,ep.isSet)(en.startTime)?ep.Long.fromValue(en.startTime):ep.Long.ZERO,vestingPeriods:Array.isArray(en?.vestingPeriods)?en.vestingPeriods.map(en=>ei.Period.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.baseVestingAccount&&(eo.baseVestingAccount=en.baseVestingAccount?ei.BaseVestingAccount.toJSON(en.baseVestingAccount):void 0),void 0!==en.startTime&&(eo.startTime=(en.startTime||ep.Long.ZERO).toString()),en.vestingPeriods?eo.vestingPeriods=en.vestingPeriods.map(en=>en?ei.Period.toJSON(en):void 0):eo.vestingPeriods=[],eo},fromPartial(en){let eo=createBasePeriodicVestingAccount();return eo.baseVestingAccount=void 0!==en.baseVestingAccount&&null!==en.baseVestingAccount?ei.BaseVestingAccount.fromPartial(en.baseVestingAccount):void 0,eo.startTime=void 0!==en.startTime&&null!==en.startTime?ep.Long.fromValue(en.startTime):ep.Long.ZERO,eo.vestingPeriods=en.vestingPeriods?.map(en=>ei.Period.fromPartial(en))||[],eo}},ei.PermanentLockedAccount={encode:(en,eo=em.Writer.create())=>(void 0!==en.baseVestingAccount&&ei.BaseVestingAccount.encode(en.baseVestingAccount,eo.uint32(10).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBasePermanentLockedAccount();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.baseVestingAccount=ei.BaseVestingAccount.decode(ea,ea.uint32()):ea.skipType(7&en)}return ed},fromJSON:en=>({baseVestingAccount:(0,ep.isSet)(en.baseVestingAccount)?ei.BaseVestingAccount.fromJSON(en.baseVestingAccount):void 0}),toJSON(en){let eo={};return void 0!==en.baseVestingAccount&&(eo.baseVestingAccount=en.baseVestingAccount?ei.BaseVestingAccount.toJSON(en.baseVestingAccount):void 0),eo},fromPartial(en){let eo=createBasePermanentLockedAccount();return eo.baseVestingAccount=void 0!==en.baseVestingAccount&&null!==en.baseVestingAccount?ei.BaseVestingAccount.fromPartial(en.baseVestingAccount):void 0,eo}}},53862:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Any=ei.protobufPackage=void 0;let eu=ed(eo(83789)),ef=eo(81457);function createBaseAny(){return{typeUrl:"",value:new Uint8Array}}ei.protobufPackage="google.protobuf",ei.Any={encode:(en,ei=eu.Writer.create())=>(""!==en.typeUrl&&ei.uint32(10).string(en.typeUrl),0!==en.value.length&&ei.uint32(18).bytes(en.value),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAny();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.typeUrl=eo.string();break;case 2:es.value=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({typeUrl:(0,ef.isSet)(en.typeUrl)?String(en.typeUrl):"",value:(0,ef.isSet)(en.value)?(0,ef.bytesFromBase64)(en.value):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.typeUrl&&(ei.typeUrl=en.typeUrl),void 0!==en.value&&(ei.value=(0,ef.base64FromBytes)(void 0!==en.value?en.value:new Uint8Array)),ei},fromPartial(en){let ei=createBaseAny();return ei.typeUrl=en.typeUrl??"",ei.value=en.value??new Uint8Array,ei}}},70281:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Duration=ei.protobufPackage=void 0;let eu=eo(81457),ef=ed(eo(83789));function createBaseDuration(){return{seconds:eu.Long.ZERO,nanos:0}}ei.protobufPackage="google.protobuf",ei.Duration={encode:(en,ei=ef.Writer.create())=>(en.seconds.isZero()||ei.uint32(8).int64(en.seconds),0!==en.nanos&&ei.uint32(16).int32(en.nanos),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDuration();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.seconds=eo.int64();break;case 2:es.nanos=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({seconds:(0,eu.isSet)(en.seconds)?eu.Long.fromValue(en.seconds):eu.Long.ZERO,nanos:(0,eu.isSet)(en.nanos)?Number(en.nanos):0}),toJSON(en){let ei={};return void 0!==en.seconds&&(ei.seconds=(en.seconds||eu.Long.ZERO).toString()),void 0!==en.nanos&&(ei.nanos=Math.round(en.nanos)),ei},fromPartial(en){let ei=createBaseDuration();return ei.seconds=void 0!==en.seconds&&null!==en.seconds?eu.Long.fromValue(en.seconds):eu.Long.ZERO,ei.nanos=en.nanos??0,ei}}},85522:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Timestamp=ei.protobufPackage=void 0;let eu=eo(81457),ef=ed(eo(83789));function createBaseTimestamp(){return{seconds:eu.Long.ZERO,nanos:0}}ei.protobufPackage="google.protobuf",ei.Timestamp={encode:(en,ei=ef.Writer.create())=>(en.seconds.isZero()||ei.uint32(8).int64(en.seconds),0!==en.nanos&&ei.uint32(16).int32(en.nanos),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTimestamp();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.seconds=eo.int64();break;case 2:es.nanos=eo.int32();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({seconds:(0,eu.isSet)(en.seconds)?eu.Long.fromValue(en.seconds):eu.Long.ZERO,nanos:(0,eu.isSet)(en.nanos)?Number(en.nanos):0}),toJSON(en){let ei={};return void 0!==en.seconds&&(ei.seconds=(en.seconds||eu.Long.ZERO).toString()),void 0!==en.nanos&&(ei.nanos=Math.round(en.nanos)),ei},fromPartial(en){let ei=createBaseTimestamp();return ei.seconds=void 0!==en.seconds&&null!==en.seconds?eu.Long.fromValue(en.seconds):eu.Long.ZERO,ei.nanos=en.nanos??0,ei}}},81457:function(en,ei,eo){"use strict";var ea=eo(48764).Buffer,es=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),ed=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),eu=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&es(ei,en,eo);return ed(ei,en),ei},ef=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.fromJsonTimestamp=ei.fromTimestamp=ei.toTimestamp=ei.setPaginationParams=ei.isObject=ei.isSet=ei.fromDuration=ei.toDuration=ei.omitDefault=ei.base64FromBytes=ei.bytesFromBase64=ei.Long=void 0;let ep=eu(eo(83789)),em=ef(eo(90198));ei.Long=em.default,ep.util.Long!==em.default&&(ep.util.Long=em.default,ep.configure());var eg=(()=>
4{if(void 0!==eg)return eg;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==eo.g)return eo.g;throw"Unable to locate global object"})();let ey=eg.atob||(en=>eg.Buffer.from(en,"base64").toString("binary"));function bytesFromBase64(en){let ei=ey(en),eo=new Uint8Array(ei.length);for(let en=0;en<ei.length;++en)eo[en]=ei.charCodeAt(en);return eo}ei.bytesFromBase64=bytesFromBase64;let eb=eg.btoa||(en=>eg.Buffer.from(en,"binary").toString("base64"));function base64FromBytes(en){let ei=[];return en.forEach(en=>{ei.push(String.fromCharCode(en))}),eb(ei.join(""))}function omitDefault(en){if("string"==typeof en)return""===en?void 0:en;if("number"==typeof en)return 0===en?void 0:en;if(em.default.isLong(en))return en.isZero()?void 0:en;throw Error(`Got unsupported type ${typeof en}`)}function toDuration(en){return{seconds:em.default.fromNumber(Math.floor(parseInt(en)/1e9)),nanos:parseInt(en)%1e9}}function fromDuration(en){return(1e9*parseInt(en.seconds.toString())+en.nanos).toString()}function isSet(en){return null!=en}function isObject(en){return"object"==typeof en&&null!==en}ei.base64FromBytes=base64FromBytes,ei.omitDefault=omitDefault,ei.toDuration=toDuration,ei.fromDuration=fromDuration,ei.isSet=isSet,ei.isObject=isObject;let setPaginationParams=(en,ei)=>(ei&&(void 0!==ei?.countTotal&&(en.params["pagination.count_total"]=ei.countTotal),void 0!==ei?.key&&(en.params["pagination.key"]=ea.from(ei.key).toString("base64")),void 0!==ei?.limit&&(en.params["pagination.limit"]=ei.limit.toString()),void 0!==ei?.offset&&(en.params["pagination.offset"]=ei.offset.toString()),void 0!==ei?.reverse&&(en.params["pagination.reverse"]=ei.reverse)),en);function toTimestamp(en){let ei=numberToLong(en.getTime()/1e3),eo=en.getTime()%1e3*1e6;return{seconds:ei,nanos:eo}}function fromTimestamp(en){let ei=1e3*en.seconds.toNumber();return ei+=en.nanos/1e6,new Date(ei)}ei.setPaginationParams=setPaginationParams,ei.toTimestamp=toTimestamp,ei.fromTimestamp=fromTimestamp;let timestampFromJSON=en=>({seconds:isSet(en.seconds)?em.default.fromValue(en.seconds):em.default.ZERO,nanos:isSet(en.nanos)?Number(en.nanos):0});function fromJsonTimestamp(en){return en instanceof Date?toTimestamp(en):"string"==typeof en?toTimestamp(new Date(en)):timestampFromJSON(en)}function numberToLong(en){return em.default.fromNumber(en)}ei.fromJsonTimestamp=fromJsonTimestamp},75892:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryEscrowAddressResponse=ei.QueryEscrowAddressRequest=ei.QueryDenomHashResponse=ei.QueryDenomHashRequest=ei.QueryParamsResponse=ei.QueryParamsRequest=ei.QueryDenomTracesResponse=ei.QueryDenomTracesRequest=ei.QueryDenomTraceResponse=ei.QueryDenomTraceRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(1417),ep=ed(eo(83789)),em=eo(81457);function createBaseQueryDenomTraceRequest(){return{hash:""}}function createBaseQueryDenomTraceResponse(){return{denomTrace:void 0}}function createBaseQueryDenomTracesRequest(){return{pagination:void 0}}function createBaseQueryDenomTracesResponse(){return{denomTraces:[],pagination:void 0}}function createBaseQueryParamsRequest(){return{}}function createBaseQueryParamsResponse(){return{params:void 0}}function createBaseQueryDenomHashRequest(){return{trace:""}}function createBaseQueryDenomHashResponse(){return{hash:""}}function createBaseQueryEscrowAddressRequest(){return{portId:"",channelId:""}}function createBaseQueryEscrowAddressResponse(){return{escrowAddress:""}}
4ei.protobufPackage="ibc.applications.transfer.v1",ei.QueryDenomTraceRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.hash&&ei.uint32(10).string(en.hash),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomTraceRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.hash=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({hash:(0,em.isSet)(en.hash)?String(en.hash):""}),toJSON(en){let ei={};return void 0!==en.hash&&(ei.hash=en.hash),ei},fromPartial(en){let ei=createBaseQueryDenomTraceRequest();return ei.hash=en.hash??"",ei}},ei.QueryDenomTraceResponse={encode:(en,ei=ep.Writer.create())=>(void 0!==en.denomTrace&&ef.DenomTrace.encode(en.denomTrace,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomTraceResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.denomTrace=ef.DenomTrace.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({denomTrace:(0,em.isSet)(en.denomTrace)?ef.DenomTrace.fromJSON(en.denomTrace):void 0}),toJSON(en){let ei={};return void 0!==en.denomTrace&&(ei.denomTrace=en.denomTrace?ef.DenomTrace.toJSON(en.denomTrace):void 0),ei},fromPartial(en){let ei=createBaseQueryDenomTraceResponse();return ei.denomTrace=void 0!==en.denomTrace&&null!==en.denomTrace?ef.DenomTrace.fromPartial(en.denomTrace):void 0,ei}},ei.QueryDenomTracesRequest={encode:(en,ei=ep.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomTracesRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDenomTracesRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryDenomTracesResponse={encode(en,ei=ep.Writer.create()){for(let eo of en.denomTraces)ef.DenomTrace.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomTracesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.denomTraces.push(ef.DenomTrace.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({denomTraces:Array.isArray(en?.denomTraces)?en.denomTraces.map(en=>ef.DenomTrace.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.denomTraces?ei.denomTraces=en.denomTraces.map(en=>en?ef.DenomTrace.toJSON(en):void 0):ei.denomTraces=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryDenomTracesResponse();return ei.denomTraces=en.denomTraces?.map(en=>ef.DenomTrace.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryParamsRequest={encode:(en,ei=ep.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryParamsRequest();return ei}},ei.QueryParamsResponse={encode:(en,ei=ep.Writer.create())=>(void 0!==en.params&&ef.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.params=ef.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,em.isSet)(en.params)?ef.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ef.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ef.Params.fromPartial(en.params):void 0,ei}},ei.QueryDenomHashRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.trace&&ei.uint32(10).string(en.trace),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomHashRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.trace=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({trace:(0,em.isSet)(en.trace)?String(en.trace):""}),toJSON(en){let ei={};return void 0!==en.trace&&(ei.trace=en.trace),ei},fromPartial(en){let ei=createBaseQueryDenomHashRequest();return ei.trace=en.trace??"",ei}},ei.QueryDenomHashResponse={encode:(en,ei=ep.Writer.create())=>(""!==en.hash&&ei.uint32(10).string(en.hash),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryDenomHashResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.hash=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({hash:(0,em.isSet)(en.hash)?String(en.hash):""}),toJSON(en){let ei={};return void 0!==en.hash&&(ei.hash=en.hash),ei},fromPartial(en){let ei=createBaseQueryDenomHashResponse();return ei.hash=en.hash??"",ei}},ei.QueryEscrowAddressRequest={encode:(en,ei=ep.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryEscrowAddressRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),ei},fromPartial(en){let ei=createBaseQueryEscrowAddressRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei}},ei.QueryEscrowAddressResponse={encode:(en,ei=ep.Writer.create())=>(""!==en.escrowAddress&&ei.uint32(10).string(en.escrowAddress),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryEscrowAddressResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.escrowAddress=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({escrowAddress:(0,em.isSet)(en.escrowAddress)?String(en.escrowAddress):""}),toJSON(en){let ei={};return void 0!==en.escrowAddress&&(ei.escrowAddress=en.escrowAddress),ei},fromPartial(en){let ei=createBaseQueryEscrowAddressResponse();return ei.escrowAddress=en.escrowAddress??"",ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.DenomTrace=this.DenomTrace.bind(this),this.DenomTraces=this.DenomTraces.bind(this),this.Params=this.Params.bind(this),this.DenomHash=this.DenomHash.bind(this),this.EscrowAddress=this.EscrowAddress.bind(this)}DenomTrace(en){let eo=ei.QueryDenomTraceRequest.encode(en).finish(),ea=this.rpc.request("ibc.applications.transfer.v1.Query","DenomTrace",eo);return ea.then(en=>ei.QueryDenomTraceResponse.decode(new ep.Reader(en)))}DenomTraces(en={pagination:void 0}){let eo=ei.QueryDenomTracesRequest.encode(en).finish(),ea=this.rpc.request("ibc.applications.transfer.v1.Query","DenomTraces",eo);return ea.then(en=>ei.QueryDenomTracesResponse.decode(new ep.Reader(en)))}Params(en={}){let eo=ei.QueryParamsRequest.encode(en).finish(),ea=this.rpc.request("ibc.applications.transfer.v1.Query","Params",eo);return ea.then(en=>ei.QueryParamsResponse.decode(new ep.Reader(en)))}DenomHash(en){let eo=ei.QueryDenomHashRequest.encode(en).finish(),ea=this.rpc.request("ibc.applications.transfer.v1.Query","DenomHash",eo);return ea.then(en=>ei.QueryDenomHashResponse.decode(new ep.Reader(en)))}EscrowAddress(en){let eo=ei.QueryEscrowAddressRequest.encode(en).finish(),ea=this.rpc.request("ibc.applications.transfer.v1.Query","EscrowAddress",eo);return ea.then(en=>ei.QueryEscrowAddressResponse.decode(new ep.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},1417:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=ei.DenomTrace=ei.protobufPackage=void 0;let eu=ed(eo(83789)),ef=eo(81457);function createBaseDenomTrace(){return{path:"",baseDenom:""}}function createBaseParams(){return{sendEnabled:!1,receiveEnabled:!1}}
4ei.protobufPackage="ibc.applications.transfer.v1",ei.DenomTrace={encode:(en,ei=eu.Writer.create())=>(""!==en.path&&ei.uint32(10).string(en.path),""!==en.baseDenom&&ei.uint32(18).string(en.baseDenom),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDenomTrace();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.path=eo.string();break;case 2:es.baseDenom=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({path:(0,ef.isSet)(en.path)?String(en.path):"",baseDenom:(0,ef.isSet)(en.baseDenom)?String(en.baseDenom):""}),toJSON(en){let ei={};return void 0!==en.path&&(ei.path=en.path),void 0!==en.baseDenom&&(ei.baseDenom=en.baseDenom),ei},fromPartial(en){let ei=createBaseDenomTrace();return ei.path=en.path??"",ei.baseDenom=en.baseDenom??"",ei}},ei.Params={encode:(en,ei=eu.Writer.create())=>(!0===en.sendEnabled&&ei.uint32(8).bool(en.sendEnabled),!0===en.receiveEnabled&&ei.uint32(16).bool(en.receiveEnabled),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sendEnabled=eo.bool();break;case 2:es.receiveEnabled=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sendEnabled:!!(0,ef.isSet)(en.sendEnabled)&&!!en.sendEnabled,receiveEnabled:!!(0,ef.isSet)(en.receiveEnabled)&&!!en.receiveEnabled}),toJSON(en){let ei={};return void 0!==en.sendEnabled&&(ei.sendEnabled=en.sendEnabled),void 0!==en.receiveEnabled&&(ei.receiveEnabled=en.receiveEnabled),ei},fromPartial(en){let ei=createBaseParams();return ei.sendEnabled=en.sendEnabled??!1,ei.receiveEnabled=en.receiveEnabled??!1,ei}}},39385:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgTransferResponse=ei.MsgTransfer=ei.protobufPackage=void 0;let eu=eo(10891),ef=eo(75022),ep=eo(81457),em=ed(eo(83789));function createBaseMsgTransfer(){return{sourcePort:"",sourceChannel:"",token:void 0,sender:"",receiver:"",timeoutHeight:void 0,timeoutTimestamp:ep.Long.UZERO,memo:""}}function createBaseMsgTransferResponse(){return{sequence:ep.Long.UZERO}}ei.protobufPackage="ibc.applications.transfer.v1",ei.MsgTransfer={encode:(en,ei=em.Writer.create())=>(""!==en.sourcePort&&ei.uint32(10).string(en.sourcePort),""!==en.sourceChannel&&ei.uint32(18).string(en.sourceChannel),void 0!==en.token&&eu.Coin.encode(en.token,ei.uint32(26).fork()).ldelim(),""!==en.sender&&ei.uint32(34).string(en.sender),""!==en.receiver&&ei.uint32(42).string(en.receiver),void 0!==en.timeoutHeight&&ef.Height.encode(en.timeoutHeight,ei.uint32(50).fork()).ldelim(),en.timeoutTimestamp.isZero()||ei.uint32(56).uint64(en.timeoutTimestamp),""!==en.memo&&ei.uint32(66).string(en.memo),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgTransfer();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sourcePort=eo.string();break;case 2:es.sourceChannel=eo.string();break;case 3:es.token=eu.Coin.decode(eo,eo.uint32());break;case 4:es.sender=eo.string();break;case 5:es.receiver=eo.string();break;case 6:es.timeoutHeight=ef.Height.decode(eo,eo.uint32());break;case 7:es.timeoutTimestamp=eo.uint64();break;case 8:es.memo=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sourcePort:(0,ep.isSet)(en.sourcePort)?String(en.sourcePort):"",sourceChannel:(0,ep.isSet)(en.sourceChannel)?String(en.sourceChannel):"",token:(0,ep.isSet)(en.token)?eu.Coin.fromJSON(en.token):void 0,sender:(0,ep.isSet)(en.sender)?String(en.sender):"",receiver:(0,ep.isSet)(en.receiver)?String(en.receiver):"",timeoutHeight:(0,ep.isSet)(en.timeoutHeight)?ef.Height.fromJSON(en.timeoutHeight):void 0,timeoutTimestamp:(0,ep.isSet)(en.timeoutTimestamp)?ep.Long.fromValue(en.timeoutTimestamp):ep.Long.UZERO,memo:(0,ep.isSet)(en.memo)?String(en.memo):""}),toJSON(en){let ei={};return void 0!==en.sourcePort&&(ei.sourcePort=en.sourcePort),void 0!==en.sourceChannel&&(ei.sourceChannel=en.sourceChannel),void 0!==en.token&&(ei.token=en.token?eu.Coin.toJSON(en.token):void 0),void 0!==en.sender&&(ei.sender=en.sender),void 0!==en.receiver&&(ei.receiver=en.receiver),void 0!==en.timeoutHeight&&(ei.timeoutHeight=en.timeoutHeight?ef.He
4ight.toJSON(en.timeoutHeight):void 0),void 0!==en.timeoutTimestamp&&(ei.timeoutTimestamp=(en.timeoutTimestamp||ep.Long.UZERO).toString()),void 0!==en.memo&&(ei.memo=en.memo),ei},fromPartial(en){let ei=createBaseMsgTransfer();return ei.sourcePort=en.sourcePort??"",ei.sourceChannel=en.sourceChannel??"",ei.token=void 0!==en.token&&null!==en.token?eu.Coin.fromPartial(en.token):void 0,ei.sender=en.sender??"",ei.receiver=en.receiver??"",ei.timeoutHeight=void 0!==en.timeoutHeight&&null!==en.timeoutHeight?ef.Height.fromPartial(en.timeoutHeight):void 0,ei.timeoutTimestamp=void 0!==en.timeoutTimestamp&&null!==en.timeoutTimestamp?ep.Long.fromValue(en.timeoutTimestamp):ep.Long.UZERO,ei.memo=en.memo??"",ei}},ei.MsgTransferResponse={encode:(en,ei=em.Writer.create())=>(en.sequence.isZero()||ei.uint32(8).uint64(en.sequence),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgTransferResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.sequence=eo.uint64():eo.skipType(7&en)}return es},fromJSON:en=>({sequence:(0,ep.isSet)(en.sequence)?ep.Long.fromValue(en.sequence):ep.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.sequence&&(ei.sequence=(en.sequence||ep.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseMsgTransferResponse();return ei.sequence=void 0!==en.sequence&&null!==en.sequence?ep.Long.fromValue(en.sequence):ep.Long.UZERO,ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.Transfer=this.Transfer.bind(this)}Transfer(en){let eo=ei.MsgTransfer.encode(en).finish(),ea=this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",eo);return ea.then(en=>ei.MsgTransferResponse.decode(new em.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},71787:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),eu=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ef=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ed(ei,en,eo);return eu(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Acknowledgement=ei.PacketId=ei.PacketState=ei.Packet=ei.Counterparty=ei.IdentifiedChannel=ei.Channel=ei.orderToJSON=ei.orderFromJSON=ei.Order=ei.stateToJSON=ei.stateFromJSON=ei.State=ei.protobufPackage=void 0;let ep=eo(75022),em=eo(81457),eg=ef(eo(83789));function stateFromJSON(en){switch(en){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return ea.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return ea.STATE_INIT;case 2:case"STATE_TRYOPEN":return ea.STATE_TRYOPEN;case 3:case"STATE_OPEN":return ea.STATE_OPEN;case 4:case"STATE_CLOSED":return ea.STATE_CLOSED;default:return ea.UNRECOGNIZED}}function stateToJSON(en){switch(en){case ea.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case ea.STATE_INIT:return"STATE_INIT";case ea.STATE_TRYOPEN:return"STATE_TRYOPEN";case ea.STATE_OPEN:return"STATE_OPEN";case ea.STATE_CLOSED:return"STATE_CLOSED";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function orderFromJSON(en){switch(en){case 0:case"ORDER_NONE_UNSPECIFIED":return es.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return es.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return es.ORDER_ORDERED;default:return es.UNRECOGNIZED}}function orderToJSON(en){switch(en){case es.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case es.ORDER_UNORDERED:return"ORDER_UNORDERED";case es.ORDER_ORDERED:return"ORDER_ORDERED";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseChannel(){return{state:0,ordering:0,counterparty:void 0,connectionHops:[],version:""}}
4function createBaseIdentifiedChannel(){return{state:0,ordering:0,counterparty:void 0,connectionHops:[],version:"",portId:"",channelId:""}}function createBaseCounterparty(){return{portId:"",channelId:""}}function createBasePacket(){return{sequence:em.Long.UZERO,sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",data:new Uint8Array,timeoutHeight:void 0,timeoutTimestamp:em.Long.UZERO}}function createBasePacketState(){return{portId:"",channelId:"",sequence:em.Long.UZERO,data:new Uint8Array}}function createBasePacketId(){return{portId:"",channelId:"",sequence:em.Long.UZERO}}function createBaseAcknowledgement(){return{result:void 0,error:void 0}}ei.protobufPackage="ibc.core.channel.v1",function(en){en[en.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",en[en.STATE_INIT=1]="STATE_INIT",en[en.STATE_TRYOPEN=2]="STATE_TRYOPEN",en[en.STATE_OPEN=3]="STATE_OPEN",en[en.STATE_CLOSED=4]="STATE_CLOSED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.State||(ei.State={})),ei.stateFromJSON=stateFromJSON,ei.stateToJSON=stateToJSON,function(en){en[en.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",en[en.ORDER_UNORDERED=1]="ORDER_UNORDERED",en[en.ORDER_ORDERED=2]="ORDER_ORDERED",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.Order||(ei.Order={})),ei.orderFromJSON=orderFromJSON,ei.orderToJSON=orderToJSON,ei.Channel={encode(en,eo=eg.Writer.create()){for(let ea of(0!==en.state&&eo.uint32(8).int32(en.state),0!==en.ordering&&eo.uint32(16).int32(en.ordering),void 0!==en.counterparty&&ei.Counterparty.encode(en.counterparty,eo.uint32(26).fork()).ldelim(),en.connectionHops))eo.uint32(34).string(ea);return""!==en.version&&eo.uint32(42).string(en.version),eo},decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseChannel();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.state=ea.int32();break;case 2:ed.ordering=ea.int32();break;case 3:ed.counterparty=ei.Counterparty.decode(ea,ea.uint32());break;case 4:ed.connectionHops.push(ea.string());break;case 5:ed.version=ea.string();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({state:(0,em.isSet)(en.state)?stateFromJSON(en.state):0,ordering:(0,em.isSet)(en.ordering)?orderFromJSON(en.ordering):0,counterparty:(0,em.isSet)(en.counterparty)?ei.Counterparty.fromJSON(en.counterparty):void 0,connectionHops:Array.isArray(en?.connectionHops)?en.connectionHops.map(en=>String(en)):[],version:(0,em.isSet)(en.version)?String(en.version):""}),toJSON(en){let eo={};return void 0!==en.state&&(eo.state=stateToJSON(en.state)),void 0!==en.ordering&&(eo.ordering=orderToJSON(en.ordering)),void 0!==en.counterparty&&(eo.counterparty=en.counterparty?ei.Counterparty.toJSON(en.counterparty):void 0),en.connectionHops?eo.connectionHops=en.connectionHops.map(en=>en):eo.connectionHops=[],void 0!==en.version&&(eo.version=en.version),eo},fromPartial(en){let eo=createBaseChannel();return eo.state=en.state??0,eo.ordering=en.ordering??0,eo.counterparty=void 0!==en.counterparty&&null!==en.counterparty?ei.Counterparty.fromPartial(en.counterparty):void 0,eo.connectionHops=en.connectionHops?.map(en=>en)||[],eo.version=en.version??"",eo}},ei.IdentifiedChannel={encode(en,eo=eg.Writer.create()){for(let ea of(0!==en.state&&eo.uint32(8).int32(en.state),0!==en.ordering&&eo.uint32(16).int32(en.ordering),void 0!==en.counterparty&&ei.Counterparty.encode(en.counterparty,eo.uint32(26).fork()).ldelim(),en.connectionHops))eo.uint32(34).string(ea);return""!==en.version&&eo.uint32(42).string(en.version),""!==en.portId&&eo.uint32(50).string(en.portId),""!==en.channelId&&eo.uint32(58).string(en.channelId),eo},decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseIdentifiedChannel();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.state=ea.int32();break;case 2:ed.ordering=ea.int32();break;case 3:ed.counterparty=ei.Counterparty.decode(ea,ea.uint32());break;case 4:ed.connectionHops.push(ea.string());break;case 5:ed.version=ea.string();break;case 6:ed.portId=ea.string();break;case 7:ed.channelId=ea.string();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({state:(0,em.isSet)(en.state)?stateFromJSON(en.state):0,ordering:(0,em.isSet)(en.ordering)?orderFromJSON(en.ordering):0,counterparty:(0,em.isSet)(en.counterparty)?ei.Counterparty.fromJSON(en.counterparty):void 0,connectionHops:Array.isArray(en?.connectionHops)?en.connectionHops.map(en=>String(en)):[],version:(0,em.isSet)(en.version)?String(en.version):"",portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):""}),toJSON(en){let eo={};return void 0!==en.state&&(eo.state=stateToJSON(en.state)),void 0!==en.ordering&&(eo.ordering=orderToJSON(en.ordering)),void 0!==en.counterparty&&(eo.counterparty=en.counterparty?ei.Counterparty.toJSON(en.counterparty):void 0),en.connectionHops?eo.connectionHops=en.connectionHops.map(en=>en):eo.connectionHops=[],void 0!==en.version&&(eo.version=en.version),void 0!==en.portId&&(eo.portId=en.portId),void 0!==en.channelId&&(eo.channelId=en.channelId),eo}
4,fromPartial(en){let eo=createBaseIdentifiedChannel();return eo.state=en.state??0,eo.ordering=en.ordering??0,eo.counterparty=void 0!==en.counterparty&&null!==en.counterparty?ei.Counterparty.fromPartial(en.counterparty):void 0,eo.connectionHops=en.connectionHops?.map(en=>en)||[],eo.version=en.version??"",eo.portId=en.portId??"",eo.channelId=en.channelId??"",eo}},ei.Counterparty={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCounterparty();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),ei},fromPartial(en){let ei=createBaseCounterparty();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei}},ei.Packet={encode:(en,ei=eg.Writer.create())=>(en.sequence.isZero()||ei.uint32(8).uint64(en.sequence),""!==en.sourcePort&&ei.uint32(18).string(en.sourcePort),""!==en.sourceChannel&&ei.uint32(26).string(en.sourceChannel),""!==en.destinationPort&&ei.uint32(34).string(en.destinationPort),""!==en.destinationChannel&&ei.uint32(42).string(en.destinationChannel),0!==en.data.length&&ei.uint32(50).bytes(en.data),void 0!==en.timeoutHeight&&ep.Height.encode(en.timeoutHeight,ei.uint32(58).fork()).ldelim(),en.timeoutTimestamp.isZero()||ei.uint32(64).uint64(en.timeoutTimestamp),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePacket();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.sequence=eo.uint64();break;case 2:es.sourcePort=eo.string();break;case 3:es.sourceChannel=eo.string();break;case 4:es.destinationPort=eo.string();break;case 5:es.destinationChannel=eo.string();break;case 6:es.data=eo.bytes();break;case 7:es.timeoutHeight=ep.Height.decode(eo,eo.uint32());break;case 8:es.timeoutTimestamp=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sequence:(0,em.isSet)(en.sequence)?em.Long.fromValue(en.sequence):em.Long.UZERO,sourcePort:(0,em.isSet)(en.sourcePort)?String(en.sourcePort):"",sourceChannel:(0,em.isSet)(en.sourceChannel)?String(en.sourceChannel):"",destinationPort:(0,em.isSet)(en.destinationPort)?String(en.destinationPort):"",destinationChannel:(0,em.isSet)(en.destinationChannel)?String(en.destinationChannel):"",data:(0,em.isSet)(en.data)?(0,em.bytesFromBase64)(en.data):new Uint8Array,timeoutHeight:(0,em.isSet)(en.timeoutHeight)?ep.Height.fromJSON(en.timeoutHeight):void 0,timeoutTimestamp:(0,em.isSet)(en.timeoutTimestamp)?em.Long.fromValue(en.timeoutTimestamp):em.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.sequence&&(ei.sequence=(en.sequence||em.Long.UZERO).toString()),void 0!==en.sourcePort&&(ei.sourcePort=en.sourcePort),void 0!==en.sourceChannel&&(ei.sourceChannel=en.sourceChannel),void 0!==en.destinationPort&&(ei.destinationPort=en.destinationPort),void 0!==en.destinationChannel&&(ei.destinationChannel=en.destinationChannel),void 0!==en.data&&(ei.data=(0,em.base64FromBytes)(void 0!==en.data?en.data:new Uint8Array)),void 0!==en.timeoutHeight&&(ei.timeoutHeight=en.timeoutHeight?ep.Height.toJSON(en.timeoutHeight):void 0),void 0!==en.timeoutTimestamp&&(ei.timeoutTimestamp=(en.timeoutTimestamp||em.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBasePacket();return ei.sequence=void 0!==en.sequence&&null!==en.sequence?em.Long.fromValue(en.sequence):em.Long.UZERO,ei.sourcePort=en.sourcePort??"",ei.sourceChannel=en.sourceChannel??"",ei.destinationPort=en.destinationPort??"",ei.destinationChannel=en.destinationChannel??"",ei.data=en.data??new Uint8Array,ei.timeoutHeight=void 0!==en.timeoutHeight&&null!==en.timeoutHeight?ep.Height.fromPartial(en.timeoutHeight):void 0,ei.timeoutTimestamp=void 0!==en.timeoutTimestamp&&null!==en.timeoutTimestamp?em.Long.fromValue(en.timeoutTimestamp):em.Long.UZERO,ei}},ei.PacketState={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),en.sequence.isZero()||ei.uint32(24).uint64(en.sequence),0!==en.data.length&&ei.uint32(34).bytes(en.data),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePacketState();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.sequence=eo.uint64();break;case 4:es.data=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):"",sequence:(0,em.isSet)(en.sequence)?em.Long.fromValue(en.sequence):em.Long.UZERO,data:(0,em.isSet)(en.data)?(0,em.bytesFromBase64)(en.data):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.sequence&&(ei.sequence=(en.sequence||em.Long.UZERO).toString()),void 0!==en.data&&(ei.data=(0,em.base64FromBytes)(void 0!==en.data?en.data:new Uint8Array)),ei},fromPartial(en){let ei=createBasePacketState();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.sequence=void 0!==en.sequence&&null!==en.sequence?em.Long.fromValue(en.sequence):em.Long.UZERO,ei.data=en.data??new Uint8Array,ei}},ei.PacketId={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),en.sequence.isZero()||ei.uint32(24).uint64(en.sequence),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePacketId();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.sequence=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):"",sequence:(0,em.isSet)(en.sequence)?em.Long.fromValue(en.sequence):em.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.sequence&&(ei.sequence=(en.sequence||em.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBasePacketId();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.sequence=void 0!==en.sequence&&null!==en.sequence?em.Long.fromValue(en.sequence):em.Long.UZERO,ei}},ei.Acknowledgement={encode:(en,ei=eg.Writer.create())=>(void 0!==en.result&&ei.uint32(170).bytes(en.result),void 0!==en.error&&ei.uint32(178).string(en.error),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseAcknowledgement();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 21:es.result=eo.bytes();break;case 22:es.error=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({result:(0,em.isSet)(en.result)?(0,em.bytesFromBase64)(en.result):void 0,error:(0,em.isSet)(en.error)?String(en.error):void 0}),toJSON(en){let ei={};return void 0!==en.result&&(ei.result=void 0!==en.result?(0,em.base64FromBytes)(en.result):void 0),void 0!==en.error&&(ei.error=en.error),ei},fromPartial(en){let ei=createBaseAcknowledgement();return ei.result=en.result??void 0,ei.error=en.error??void 0,ei}}},6688:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryNextSequenceReceiveResponse=ei.QueryNextSequenceReceiveRequest=ei.QueryUnreceivedAcksResponse=ei.QueryUnreceivedAcksRequest=ei.QueryUnreceivedPacketsResponse=ei.QueryUnreceivedPacketsRequest=ei.QueryPacketAcknowledgementsResponse=ei.QueryPacketAcknowledgementsRequest=ei.QueryPacketAcknowledgementResponse=ei.QueryPacketAcknowledgementRequest=ei.QueryPacketReceiptResponse=ei.QueryPacketReceiptRequest=ei.QueryPacketCommitmentsResponse=ei.QueryPacketCommitmentsRequest=ei.QueryPacketCommitmentResponse=ei.QueryPacketCommitmentRequest=ei.QueryChannelConsensusStateResponse=ei.QueryChannelConsensusStateRequest=ei.QueryChannelClientStateResponse=ei.QueryChannelClientStateRequest=ei.QueryConnectionChannelsResponse=ei.QueryConnectionChannelsRequest=ei.QueryChannelsResponse=ei.QueryChannelsRequest=ei.QueryChannelResponse=ei.QueryChannelRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(71787),ep=eo(75022),em=eo(53862),eg=eo(81457),ey=ed(eo(83789));function createBaseQueryChannelRequest(){return{portId:"",channelId:""}}function createBaseQueryChannelResponse(){return{channel:void 0,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryChannelsRequest(){return{pagination:void 0}}function createBaseQueryChannelsResponse(){return{channels:[],pagination:void 0,height:void 0}}function createBaseQueryConnectionChannelsRequest(){return{connection:"",pagination:void 0}}function createBaseQueryConnectionChannelsResponse(){return{channels:[],pagination:void 0,height:void 0}}function createBaseQueryChannelClientStateRequest(){return{portId:"",channelId:""}}function createBaseQueryChannelClientStateResponse(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryChannelConsensusStateRequest(){return{portId:"",channelId:"",revisionNumber:eg.Long.UZERO,revisionHeight:eg.Long.UZERO}}function createBaseQueryChannelConsensusStateResponse(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryPacketCommitmentRequest(){return{portId:"",channelId:"",sequence:eg.Long.UZERO}}function createBaseQueryPacketCommitmentResponse(){return{commitment:new Uint8Array,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryPacketCommitmentsRequest(){return{portId:"",channelId:"",pagination:void 0}}function createBaseQueryPacketCommitmentsResponse(){return{commitments:[],pagination:void 0,height:void 0}}function createBaseQueryPacketReceiptRequest(){return{portId:"",channelId:"",sequence:eg.Long.UZERO}}function createBaseQueryPacketReceiptResponse(){return{received:!1,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryPacketAcknowledgementRequest(){return{portId:"",channelId:"",sequence:eg.Long.UZERO}}function createBaseQueryPacketAcknowledgementResponse(){return{acknowledgement:new Uint8Array,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryPacketAcknowledgementsRequest(){return{portId:"",channelId:"",pagination:void 0,packetCommitmentSequences:[]}}function createBaseQueryPacketAcknowledgementsResponse(){return{acknowledgements:[],pagination:void 0,height:void 0}}function createBaseQueryUnreceivedPacketsRequest(){return{portId:"",channelId:"",packetCommitmentSequences:[]}}function createBaseQueryUnreceivedPacketsResponse(){return{sequences:[],height:void 0}}function createBaseQueryUnreceivedAcksRequest(){return{portId:"",channelId:"",packetAckSequences:[]}}function createBaseQueryUnreceivedAcksResponse(){return{sequences:[],height:void 0}}function createBaseQueryNextSequenceReceiveRequest(){return{portId:"",channelId:""}}function createBaseQueryNextSequenceReceiveResponse(){return{nextSequenceReceive:eg.Long.UZERO,proof:new Uint8Array,proofHeight:void 0}}
4ei.protobufPackage="ibc.core.channel.v1",ei.QueryChannelRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),ei},fromPartial(en){let ei=createBaseQueryChannelRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei}},ei.QueryChannelResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.channel&&ef.Channel.encode(en.channel,ei.uint32(10).fork()).ldelim(),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.channel=ef.Channel.decode(eo,eo.uint32());break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({channel:(0,eg.isSet)(en.channel)?ef.Channel.fromJSON(en.channel):void 0,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.channel&&(ei.channel=en.channel?ef.Channel.toJSON(en.channel):void 0),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryChannelResponse();return ei.channel=void 0!==en.channel&&null!==en.channel?ef.Channel.fromPartial(en.channel):void 0,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryChannelsRequest={encode:(en,ei=ey.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryChannelsRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryChannelsResponse={encode(en,ei=ey.Writer.create()){for(let eo of en.channels)ef.IdentifiedChannel.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),void 0!==en.height&&ep.Height.encode(en.height,ei.uint32(26).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.channels.push(ef.IdentifiedChannel.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;case 3:es.height=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({channels:Array.isArray(en?.channels)?en.channels.map(en=>ef.IdentifiedChannel.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0,height:(0,eg.isSet)(en.height)?ep.Height.fromJSON(en.height):void 0}),toJSON(en){let ei={};
4return en.channels?ei.channels=en.channels.map(en=>en?ef.IdentifiedChannel.toJSON(en):void 0):ei.channels=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),void 0!==en.height&&(ei.height=en.height?ep.Height.toJSON(en.height):void 0),ei},fromPartial(en){let ei=createBaseQueryChannelsResponse();return ei.channels=en.channels?.map(en=>ef.IdentifiedChannel.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei.height=void 0!==en.height&&null!==en.height?ep.Height.fromPartial(en.height):void 0,ei}},ei.QueryConnectionChannelsRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.connection&&ei.uint32(10).string(en.connection),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionChannelsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.connection=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({connection:(0,eg.isSet)(en.connection)?String(en.connection):"",pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.connection&&(ei.connection=en.connection),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionChannelsRequest();return ei.connection=en.connection??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryConnectionChannelsResponse={encode(en,ei=ey.Writer.create()){for(let eo of en.channels)ef.IdentifiedChannel.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),void 0!==en.height&&ep.Height.encode(en.height,ei.uint32(26).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionChannelsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.channels.push(ef.IdentifiedChannel.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;case 3:es.height=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({channels:Array.isArray(en?.channels)?en.channels.map(en=>ef.IdentifiedChannel.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0,height:(0,eg.isSet)(en.height)?ep.Height.fromJSON(en.height):void 0}),toJSON(en){let ei={};return en.channels?ei.channels=en.channels.map(en=>en?ef.IdentifiedChannel.toJSON(en):void 0):ei.channels=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),void 0!==en.height&&(ei.height=en.height?ep.Height.toJSON(en.height):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionChannelsResponse();return ei.channels=en.channels?.map(en=>ef.IdentifiedChannel.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei.height=void 0!==en.height&&null!==en.height?ep.Height.fromPartial(en.height):void 0,ei}},ei.QueryChannelClientStateRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelClientStateRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),ei},fromPartial(en){let ei=createBaseQueryChannelClientStateRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei}},ei.QueryChannelClientStateResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.identifiedClientState&&ep.IdentifiedClientState.encode(en.identifiedClientState,ei.uint32(10).fork()).ldelim(),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelClientStateResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.identifiedClientState=ep.IdentifiedClientState.decode(eo,eo.uint32());break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({identifiedClientState:(0,eg.isSet)(en.identifiedClientState)?ep.IdentifiedClientState.fromJSON(en.identifiedClientState):void 0,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.identifiedClientState&&(ei.identifiedClientState=en.identifiedClientState?ep.IdentifiedClientState.toJSON(en.identifiedClientState):void 0),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryChannelClientStateResponse();return ei.identifiedClientState=void 0!==en.identifiedClientState&&null!==en.identifiedClientState?ep.IdentifiedClientState.fromPartial(en.identifiedClientState):void 0,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryChannelConsensusStateRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),en.revisionNumber.isZero()||ei.uint32(24).uint64(en.revisionNumber),en.revisionHeight.isZero()||ei.uint32(32).uint64(en.revisionHeight),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelConsensusStateRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.revisionNumber=eo.uint64();break;case 4:es.revisionHeight=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",revisionNumber:(0,eg.isSet)(en.revisionNumber)?eg.Long.fromValue(en.revisionNumber):eg.L
4ong.UZERO,revisionHeight:(0,eg.isSet)(en.revisionHeight)?eg.Long.fromValue(en.revisionHeight):eg.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.revisionNumber&&(ei.revisionNumber=(en.revisionNumber||eg.Long.UZERO).toString()),void 0!==en.revisionHeight&&(ei.revisionHeight=(en.revisionHeight||eg.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryChannelConsensusStateRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.revisionNumber=void 0!==en.revisionNumber&&null!==en.revisionNumber?eg.Long.fromValue(en.revisionNumber):eg.Long.UZERO,ei.revisionHeight=void 0!==en.revisionHeight&&null!==en.revisionHeight?eg.Long.fromValue(en.revisionHeight):eg.Long.UZERO,ei}},ei.QueryChannelConsensusStateResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.consensusState&&em.Any.encode(en.consensusState,ei.uint32(10).fork()).ldelim(),""!==en.clientId&&ei.uint32(18).string(en.clientId),0!==en.proof.length&&ei.uint32(26).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryChannelConsensusStateResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.consensusState=em.Any.decode(eo,eo.uint32());break;case 2:es.clientId=eo.string();break;case 3:es.proof=eo.bytes();break;case 4:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({consensusState:(0,eg.isSet)(en.consensusState)?em.Any.fromJSON(en.consensusState):void 0,clientId:(0,eg.isSet)(en.clientId)?String(en.clientId):"",proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.consensusState&&(ei.consensusState=en.consensusState?em.Any.toJSON(en.consensusState):void 0),void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryChannelConsensusStateResponse();return ei.consensusState=void 0!==en.consensusState&&null!==en.consensusState?em.Any.fromPartial(en.consensusState):void 0,ei.clientId=en.clientId??"",ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryPacketCommitmentRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),en.sequence.isZero()||ei.uint32(24).uint64(en.sequence),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketCommitmentRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.sequence=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",sequence:(0,eg.isSet)(en.sequence)?eg.Long.fromValue(en.sequence):eg.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.sequence&&(ei.sequence=(en.sequence||eg.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryPacketCommitmentRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.sequence=void 0!==en.sequence&&null!==en.sequence?eg.Long.fromValue(en.sequence):eg.Long.UZERO,ei}},ei.QueryPacketCommitmentResponse={encode:(en,ei=ey.Writer.create())=>(0!==en.commitment.length&&ei.uint32(10).bytes(en.commitment),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketCommitmentResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.commitment=eo.bytes();break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({commitment:(0,eg.isSet)(en.commitment)?(0,eg.bytesFromBase64)(en.commitment):new Uint8Array,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.commitment&&(ei.commitment=(0,eg.base64FromBytes)(void 0!==en.commitment?en.commitment:new Uint8Array)),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryPacketCommitmentResponse();return ei.commitment=en.commitment??new Uint8Array,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryPacketCommitmentsRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketCommitmentsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryPacketCommitmentsRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryPacketCommitmentsResponse={encode(en,ei=ey.Writer.create()){for(let eo of en.commitments)ef.PacketState.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),void 0!==en.height&&ep.Height.encode(en.height,ei.uint32(26).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketCommitmentsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.commitments.push(ef.PacketState.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;case 3:es.height=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({commitments:Array.isArray(en?.commitments)?en.commitments.map(e
4n=>ef.PacketState.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0,height:(0,eg.isSet)(en.height)?ep.Height.fromJSON(en.height):void 0}),toJSON(en){let ei={};return en.commitments?ei.commitments=en.commitments.map(en=>en?ef.PacketState.toJSON(en):void 0):ei.commitments=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),void 0!==en.height&&(ei.height=en.height?ep.Height.toJSON(en.height):void 0),ei},fromPartial(en){let ei=createBaseQueryPacketCommitmentsResponse();return ei.commitments=en.commitments?.map(en=>ef.PacketState.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei.height=void 0!==en.height&&null!==en.height?ep.Height.fromPartial(en.height):void 0,ei}},ei.QueryPacketReceiptRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),en.sequence.isZero()||ei.uint32(24).uint64(en.sequence),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketReceiptRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.sequence=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",sequence:(0,eg.isSet)(en.sequence)?eg.Long.fromValue(en.sequence):eg.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.sequence&&(ei.sequence=(en.sequence||eg.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryPacketReceiptRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.sequence=void 0!==en.sequence&&null!==en.sequence?eg.Long.fromValue(en.sequence):eg.Long.UZERO,ei}},ei.QueryPacketReceiptResponse={encode:(en,ei=ey.Writer.create())=>(!0===en.received&&ei.uint32(16).bool(en.received),0!==en.proof.length&&ei.uint32(26).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketReceiptResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 2:es.received=eo.bool();break;case 3:es.proof=eo.bytes();break;case 4:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({received:!!(0,eg.isSet)(en.received)&&!!en.received,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.received&&(ei.received=en.received),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryPacketReceiptResponse();return ei.received=en.received??!1,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryPacketAcknowledgementRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),en.sequence.isZero()||ei.uint32(24).uint64(en.sequence),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketAcknowledgementRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.sequence=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",sequence:(0,eg.isSet)(en.sequence)?eg.Long.fromValue(en.sequence):eg.L
4ong.UZERO}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.sequence&&(ei.sequence=(en.sequence||eg.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryPacketAcknowledgementRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.sequence=void 0!==en.sequence&&null!==en.sequence?eg.Long.fromValue(en.sequence):eg.Long.UZERO,ei}},ei.QueryPacketAcknowledgementResponse={encode:(en,ei=ey.Writer.create())=>(0!==en.acknowledgement.length&&ei.uint32(10).bytes(en.acknowledgement),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketAcknowledgementResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.acknowledgement=eo.bytes();break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({acknowledgement:(0,eg.isSet)(en.acknowledgement)?(0,eg.bytesFromBase64)(en.acknowledgement):new Uint8Array,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.acknowledgement&&(ei.acknowledgement=(0,eg.base64FromBytes)(void 0!==en.acknowledgement?en.acknowledgement:new Uint8Array)),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryPacketAcknowledgementResponse();return ei.acknowledgement=en.acknowledgement??new Uint8Array,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryPacketAcknowledgementsRequest={encode(en,ei=ey.Writer.create()){for(let eo of(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(26).fork()).ldelim(),ei.uint32(34).fork(),en.packetCommitmentSequences))ei.uint64(eo);return ei.ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketAcknowledgementsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;case 4:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.packetCommitmentSequences.push(eo.uint64())}else es.packetCommitmentSequences.push(eo.uint64());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0,packetCommitmentSequences:Array.isArray(en?.packetCommitmentSequences)?en.packetCommitmentSequences.map(en=>eg.Long.fromValue(en)):[]}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),en.packetCommitmentSequences?ei.packetCommitmentSequences=en.packetCommitmentSequences.map(en=>(en||eg.Long.UZERO).toString()):ei.packetCommitmentSequences=[],ei},fromPartial(en){let ei=createBaseQueryPacketAcknowledgementsRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei.packetCommitmentSequences=en.packetCommitmentSequences?.map(en=>eg.Long.fromValue(en))||[],ei}},ei.QueryPacketAcknowledgementsResponse={encode(en,ei=ey.Writer.create()){for(let eo of en.acknowledgements)ef.PacketState.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),void 0!==en.height&&ep.Height.encode(en.height,ei.uint32(26).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryPacketAcknowledgementsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.acknowledgements.push(ef.PacketState.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;case 3:es.height=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({acknowledgements:Array.isArray(en?.acknowledgements)?en.acknowledgements.map(e
4n=>ef.PacketState.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0,height:(0,eg.isSet)(en.height)?ep.Height.fromJSON(en.height):void 0}),toJSON(en){let ei={};return en.acknowledgements?ei.acknowledgements=en.acknowledgements.map(en=>en?ef.PacketState.toJSON(en):void 0):ei.acknowledgements=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),void 0!==en.height&&(ei.height=en.height?ep.Height.toJSON(en.height):void 0),ei},fromPartial(en){let ei=createBaseQueryPacketAcknowledgementsResponse();return ei.acknowledgements=en.acknowledgements?.map(en=>ef.PacketState.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei.height=void 0!==en.height&&null!==en.height?ep.Height.fromPartial(en.height):void 0,ei}},ei.QueryUnreceivedPacketsRequest={encode(en,ei=ey.Writer.create()){for(let eo of(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),ei.uint32(26).fork(),en.packetCommitmentSequences))ei.uint64(eo);return ei.ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUnreceivedPacketsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.packetCommitmentSequences.push(eo.uint64())}else es.packetCommitmentSequences.push(eo.uint64());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",packetCommitmentSequences:Array.isArray(en?.packetCommitmentSequences)?en.packetCommitmentSequences.map(en=>eg.Long.fromValue(en)):[]}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),en.packetCommitmentSequences?ei.packetCommitmentSequences=en.packetCommitmentSequences.map(en=>(en||eg.Long.UZERO).toString()):ei.packetCommitmentSequences=[],ei},fromPartial(en){let ei=createBaseQueryUnreceivedPacketsRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.packetCommitmentSequences=en.packetCommitmentSequences?.map(en=>eg.Long.fromValue(en))||[],ei}},ei.QueryUnreceivedPacketsResponse={encode(en,ei=ey.Writer.create()){for(let eo of(ei.uint32(10).fork(),en.sequences))ei.uint64(eo);return ei.ldelim(),void 0!==en.height&&ep.Height.encode(en.height,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUnreceivedPacketsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.sequences.push(eo.uint64())}else es.sequences.push(eo.uint64());break;case 2:es.height=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sequences:Array.isArray(en?.sequences)?en.sequences.map(en=>eg.Long.fromValue(en)):[],height:(0,eg.isSet)(en.height)?ep.Height.fromJSON(en.height):void 0}),toJSON(en){let ei={};return en.sequences?ei.sequences=en.sequences.map(en=>(en||eg.Long.UZERO).toString()):ei.sequences=[],void 0!==en.height&&(ei.height=en.height?ep.Height.toJSON(en.height):void 0),ei},fromPartial(en){let ei=createBaseQueryUnreceivedPacketsResponse();return ei.sequences=en.sequences?.map(en=>eg.Long.fromValue(en))||[],ei.height=void 0!==en.height&&null!==en.height?ep.Height.fromPartial(en.height):void 0,ei}},ei.QueryUnreceivedAcksRequest={encode(en,ei=ey.Writer.create()){for(let eo of(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),ei.uint32(26).fork(),en.packetAckSequences))ei.uint64(eo);return ei.ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUnreceivedAcksRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.packetAckSequences.push(eo.uint64())}else es.packetAckSequences.push(eo.uint64());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):"",packetAckSequences:Array.isArray(en?.packetAckSequences)?en.packetAckSequences.map(en=>eg.Long.fromValue(en)):[]}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),en.packetAckSequences?ei.packetAckSequences=en.packetAckSequences.map(en=>(en||eg.Long.UZERO).toString()):ei.packetAckSequences=[],ei},fromPartial(en){let ei=createBaseQueryUnreceivedAcksRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.packetAckSequences=en.packetAckSequences?.map(en=>eg.Long.fromValue(en))||[],ei}},ei.QueryUnreceivedAcksResponse={encode(en,ei=ey.Writer.create()){for(let eo of(ei.uint32(10).fork(),en.sequences))ei.uint64(eo);return ei.ldelim(),void 0!==en.height&&ep.Height.encode(en.height,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUnreceivedAcksResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:if((7&en)==2){let en=eo.uint32()+eo.pos;for(;eo.pos<en;)es.sequences.push(eo.uint64())}else es.sequences.push(eo.uint64());break;case 2:es.height=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({sequences:Array.isArray(en?.sequences)?en.sequences.map(en=>eg.Long.fromValue(en)):[],height:(0,eg.isSet)(en.height)?ep.Height.fromJSON(en.height):void 0}),toJSON(en){let ei={};return en.sequences?ei.sequences=en.sequences.map(en=>(en||eg.Long.UZERO).toString()):ei.sequences=[],void 0!==en.height&&(ei.height=en.height?ep.Height.toJSON(en.height):void 0),ei},fromPartial(en){let ei=createBaseQueryUnreceivedAcksResponse();return ei.sequences=en.sequences?.map(en=>eg.Long.fromValue(en))||[],ei.height=void 0!==en.height&&null!==en.height?ep.Height.fromPartial(en.height):void 0,ei}},ei.QueryNextSequenceReceiveRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryNextSequenceReceiveRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,eg.isSet)(en.portId)?String(en.portId):"",channelId:(0,eg.isSet)(en.channelId)?String(en.channelId):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),ei},fromPartial(en){let ei=createBaseQueryNextSequenceReceiveRequest();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei}},ei.QueryNextSequenceReceiveResponse={encode:(en,ei=ey.Writer.create())=>(en.nextSequenceReceive.isZero()||ei.uint32(8).uint64(en.nextSequenceReceive),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryNextSequenceReceiveResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.nextSequenceReceive=eo.uint64();break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({nextSequenceReceive:(0,eg.isSet)(en.nextSequenceReceive)?eg.Long.fromValue(en.nextSequenceReceive):eg.Long.UZERO,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.nextSequenceReceive&&(ei.nextSequenceReceive=(en.nextSequenceReceive||eg.Long.UZERO).toString()),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryNextSequenceReceiveResponse();return ei.nextSequenceReceive=void 0!==en.nextSequenceReceive&&null!==en.nextSequenceReceive?eg.Long.fromValue(en.nextSequenceReceive):eg.Long.UZERO,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Channel=this.Channel.bind(this),this.Channels=this.Channels.bind(this),this.ConnectionChannels=this.ConnectionChannels.bind(this),this.ChannelClientState=this.ChannelClientState.bind(this),this.ChannelConsensusState=this.ChannelConsensusState.bind(this),this.PacketCommitment=this.PacketCommitment.bind(this),this.PacketCommitments=this.PacketCommitments.bind(this),this.PacketReceipt=this.PacketReceipt.bind(this),this.PacketAcknowledgement=this.PacketAcknowledgement.bind(this),this.PacketAcknowledgements=this.PacketAcknowledgements.bind(this),this.UnreceivedPackets=this.UnreceivedPackets.bind(this),this.UnreceivedAcks=this.UnreceivedAcks.bind(this),this.NextSequenceReceive=this.NextSequenceReceive.bind(this)}Channel(en){let eo=ei.QueryChannelRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","Channel",eo);return ea.then(en=>ei.QueryChannelResponse.decode(new ey.Reader(en)))}Channels(en={pagination:void 0}){let eo=ei.QueryChannelsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","Channels",eo);return ea.then(en=>ei.QueryChannelsResponse.decode(new ey.Reader(en)))}ConnectionChannels(en){let eo=ei.QueryConnectionChannelsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","ConnectionChannels",eo);return ea.then(en=>ei.QueryConnectionChannelsResponse.decode(new ey.Reader(en)))}ChannelClientState(en){let eo=ei.QueryChannelClientStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","ChannelClientState",eo);return ea.then(en=>ei.QueryChannelClientStateResponse.decode(new ey.Reader(en)))}ChannelConsensusState(en){let eo=ei.QueryChannelConsensusStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","ChannelConsensusState",eo);return ea.then(en=>ei.QueryChannelConsensusStateResponse.decode(new ey.Reader(en)))}PacketCommitment(en){let eo=ei.QueryPacketCommitmentRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","PacketCommitment",eo);return ea.then(en=>ei.QueryPacketCommitmentResponse.decode(new ey.Reader(en)))}PacketCommitments(en){let eo=ei.QueryPacketCommitmentsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","PacketCommitments",eo);return ea.then(en=>ei.QueryPacketCommitmentsResponse.decode(new ey.Reader(en)))}PacketReceipt(en){let eo=ei.QueryPacketReceiptRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","PacketReceipt",eo);return ea.then(en=>ei.QueryPacketReceiptResponse.decode(new ey.Reader(en)))}PacketAcknowledgement(en){let eo=ei.QueryPacketAcknowledgementRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgement",eo);return ea.then(en=>ei.QueryPacketAcknowledgementResponse.decode(new ey.Reader(en)))}PacketAcknowledgements(en){let eo=ei.QueryPacketAcknowledgementsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","PacketAcknowledgements",eo);return ea.then(en=>ei.QueryPacketAcknowledgementsResponse.decode(new ey.Reader(en)))}UnreceivedPackets(en){let eo=ei.QueryUnreceivedPacketsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","UnreceivedPackets",eo);return ea.then(en=>ei.QueryUnreceivedPacketsResponse.decode(new ey.Reader(en)))}UnreceivedAcks(en){let eo=ei.QueryUnreceivedAcksRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","UnreceivedAcks",eo);return ea.then(en=>ei.QueryUnreceivedAcksResponse.decode(new ey.Reader(en)))}NextSequenceReceive(en){let eo=ei.QueryNextSequenceReceiveRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Query","NextSequenceReceive",eo);return ea.then(en=>ei.QueryNextSequenceReceiveResponse.decode(new ey.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},7375:function(en,ei,eo){"use strict";var ea,es=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),ed=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),eu=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&es(ei,en,eo);return ed(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgAcknowledgementResponse=ei.MsgAcknowledgement=ei.MsgTimeoutOnCloseResponse=ei.MsgTimeoutOnClose=ei.MsgTimeoutResponse=ei.MsgTimeout=ei.MsgRecvPacketResponse=ei.MsgRecvPacket=ei.MsgChannelCloseConfirmResponse=ei.MsgChannelCloseConfirm=ei.MsgChannelCloseInitResponse=ei.MsgChannelCloseInit=ei.MsgChannelOpenConfirmResponse=ei.MsgChannelOpenConfirm=ei.MsgChannelOpenAckResponse=ei.MsgChannelOpenAck=ei.MsgChannelOpenTryResponse=ei.MsgChannelOpenTry=ei.MsgChannelOpenInitResponse=ei.MsgChannelOpenInit=ei.responseResultTypeToJSON=ei.responseResultTypeFromJSON=ei.ResponseResultType=ei.protobufPackage=void 0;let ef=eo(71787),ep=eo(75022),em=eo(81457),eg=eu(eo(83789));function responseResultTypeFromJSON(en){switch(en){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return ea.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return ea.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return ea.RESPONSE_RESULT_TYPE_SUCCESS;default:return ea.UNRECOGNIZED}}function responseResultTypeToJSON(en){switch(en){case ea.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case ea.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case ea.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseMsgChannelOpenInit(){return{portId:"",channel:void 0,signer:""}}function createBaseMsgChannelOpenInitResponse(){return{channelId:"",version:""}}function createBaseMsgChannelOpenTry(){return{portId:"",previousChannelId:"",channel:void 0,counterpartyVersion:"",proofInit:new Uint8Array,proofHeight:void 0,signer:""}}function createBaseMsgChannelOpenTryResponse(){return{version:""}}function createBaseMsgChannelOpenAck(){return{portId:"",channelId:"",counterpartyChannelId:"",counterpartyVersion:"",proofTry:new Uint8Array,proofHeight:void 0,signer:""}}function createBaseMsgChannelOpenAckResponse(){return{}}function createBaseMsgChannelOpenConfirm(){return{portId:"",channelId:"",proofAck:new Uint8Array,proofHeight:void 0,signer:""}}function createBaseMsgChannelOpenConfirmResponse(){return{}}function createBaseMsgChannelCloseInit(){return{portId:"",channelId:"",signer:""}}function createBaseMsgChannelCloseInitResponse(){return{}}function createBaseMsgChannelCloseConfirm(){return{portId:"",channelId:"",proofInit:new Uint8Array,proofHeight:void 0,signer:""}}function createBaseMsgChannelCloseConfirmResponse(){return{}}function createBaseMsgRecvPacket(){return{packet:void 0,proofCommitment:new Uint8Array,proofHeight:void 0,signer:""}}function createBaseMsgRecvPacketResponse(){return{result:0}}function createBaseMsgTimeout(){return{packet:void 0,proofUnreceived:new Uint8Array,proofHeight:void 0,nextSequenceRecv:em.Long.UZERO,signer:""}}function createBaseMsgTimeoutResponse(){return{result:0}
4}function createBaseMsgTimeoutOnClose(){return{packet:void 0,proofUnreceived:new Uint8Array,proofClose:new Uint8Array,proofHeight:void 0,nextSequenceRecv:em.Long.UZERO,signer:""}}function createBaseMsgTimeoutOnCloseResponse(){return{result:0}}function createBaseMsgAcknowledgement(){return{packet:void 0,acknowledgement:new Uint8Array,proofAcked:new Uint8Array,proofHeight:void 0,signer:""}}function createBaseMsgAcknowledgementResponse(){return{result:0}}ei.protobufPackage="ibc.core.channel.v1",function(en){en[en.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",en[en.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",en[en.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.ResponseResultType||(ei.ResponseResultType={})),ei.responseResultTypeFromJSON=responseResultTypeFromJSON,ei.responseResultTypeToJSON=responseResultTypeToJSON,ei.MsgChannelOpenInit={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),void 0!==en.channel&&ef.Channel.encode(en.channel,ei.uint32(18).fork()).ldelim(),""!==en.signer&&ei.uint32(26).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenInit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channel=ef.Channel.decode(eo,eo.uint32());break;case 3:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channel:(0,em.isSet)(en.channel)?ef.Channel.fromJSON(en.channel):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channel&&(ei.channel=en.channel?ef.Channel.toJSON(en.channel):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgChannelOpenInit();return ei.portId=en.portId??"",ei.channel=void 0!==en.channel&&null!==en.channel?ef.Channel.fromPartial(en.channel):void 0,ei.signer=en.signer??"",ei}},ei.MsgChannelOpenInitResponse={encode:(en,ei=eg.Writer.create())=>(""!==en.channelId&&ei.uint32(10).string(en.channelId),""!==en.version&&ei.uint32(18).string(en.version),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenInitResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.channelId=eo.string();break;case 2:es.version=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({channelId:(0,em.isSet)(en.channelId)?String(en.channelId):"",version:(0,em.isSet)(en.version)?String(en.version):""}),toJSON(en){let ei={};return void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.version&&(ei.version=en.version),ei},fromPartial(en){let ei=createBaseMsgChannelOpenInitResponse();return ei.channelId=en.channelId??"",ei.version=en.version??"",ei}},ei.MsgChannelOpenTry={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.previousChannelId&&ei.uint32(18).string(en.previousChannelId),void 0!==en.channel&&ef.Channel.encode(en.channel,ei.uint32(26).fork()).ldelim(),""!==en.counterpartyVersion&&ei.uint32(34).string(en.counterpartyVersion),0!==en.proofInit.length&&ei.uint32(42).bytes(en.proofInit),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(50).fork()).ldelim(),""!==en.signer&&ei.uint32(58).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenTry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.previousChannelId=eo.string();break;case 3:es.channel=ef.Channel.decode(eo,eo.uint32());break;case 4:es.counterpartyVersion=eo.string();break;case 5:es.proofInit=eo.bytes();break;case 6:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 7:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",previousChannelId:(0,em.isSet)(en.previousChannelId)?String(en.previousChannelId):"",channel:(0,em.isSet)(en.channel)?ef.Channel.fromJSON(en.channel):void 0,counterpartyVersion:(0,em.isSet)(en.counterpartyVersion)?String(en.counterpartyVersion):"",proofInit:(0,em.isSet)(en.proofInit)?(0,em.bytesFromBase64)(en.proofInit):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.previousChannelId&&(ei.previousChannelId=en.previousChannelId),void 0!==en.channel&&(ei.channel=en.channel?ef.Channel.toJSON(en.channel):void 0),void 0!==en.counterpartyVersion&&(ei.counterpartyVersion=en.counterpartyVersion),void 0!==en.proofInit&&(ei.proofInit=(0,em.base64FromBytes)(void 0!==en.proofInit?en.proofInit:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgChannelOpenTry();return ei.portId=en.portId??"",ei.previousChannelId=en.previousChannelId??"",ei.channel=void 0!==en.channel&&null!==en.channel?ef.Channel.fromPartial(en.channel):void 0,ei.counterpartyVersion=en.counterpartyVersion??"",ei.proofInit=en.proofInit??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.signer=en.signer??"",ei}},ei.MsgChannelOpenTryResponse={encode:(en,ei=eg.Writer.create())=>(""!==en.version&&ei.uint32(10).string(en.version),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenTryResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.version=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({version:(0,em.isSet)(en.version)?String(en.version):""}),toJSON(en){let ei={};return void 0!==en.version&&(ei.version=en.version),ei},fromPartial(en){let ei=createBaseMsgChannelOpenTryResponse();return ei.version=en.version??"",ei}},ei.MsgChannelOpenAck={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),""!==en.counterpartyChannelId&&ei.uint32(26).string(en.counterpartyChannelId),""!==en.counterpartyVersion&&ei.uint32(34).string(en.counterpartyVersion),0!==en.proofTry.length&&ei.uint32(42).bytes(en.proofTry
4),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(50).fork()).ldelim(),""!==en.signer&&ei.uint32(58).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenAck();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.counterpartyChannelId=eo.string();break;case 4:es.counterpartyVersion=eo.string();break;case 5:es.proofTry=eo.bytes();break;case 6:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 7:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):"",counterpartyChannelId:(0,em.isSet)(en.counterpartyChannelId)?String(en.counterpartyChannelId):"",counterpartyVersion:(0,em.isSet)(en.counterpartyVersion)?String(en.counterpartyVersion):"",proofTry:(0,em.isSet)(en.proofTry)?(0,em.bytesFromBase64)(en.proofTry):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.counterpartyChannelId&&(ei.counterpartyChannelId=en.counterpartyChannelId),void 0!==en.counterpartyVersion&&(ei.counterpartyVersion=en.counterpartyVersion),void 0!==en.proofTry&&(ei.proofTry=(0,em.base64FromBytes)(void 0!==en.proofTry?en.proofTry:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgChannelOpenAck();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.counterpartyChannelId=en.counterpartyChannelId??"",ei.counterpartyVersion=en.counterpartyVersion??"",ei.proofTry=en.proofTry??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.signer=en.signer??"",ei}},ei.MsgChannelOpenAckResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenAckResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgChannelOpenAckResponse();return ei}},ei.MsgChannelOpenConfirm={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),0!==en.proofAck.length&&ei.uint32(26).bytes(en.proofAck),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(34).fork()).ldelim(),""!==en.signer&&ei.uint32(42).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenConfirm();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.proofAck=eo.bytes();break;case 4:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 5:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):"",proofAck:(0,em.isSet)(en.proofAck)?(0,em.bytesFromBase64)(en.proofAck):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.proofAck&&(ei.proofAck=(0,em.base64FromBytes)(void 0!==en.proofAck?en.proofAck:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgChannelOpenConfirm();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.proofAck=e
4n.proofAck??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.signer=en.signer??"",ei}},ei.MsgChannelOpenConfirmResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelOpenConfirmResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgChannelOpenConfirmResponse();return ei}},ei.MsgChannelCloseInit={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),""!==en.signer&&ei.uint32(26).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelCloseInit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):"",signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgChannelCloseInit();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.signer=en.signer??"",ei}},ei.MsgChannelCloseInitResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelCloseInitResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgChannelCloseInitResponse();return ei}},ei.MsgChannelCloseConfirm={encode:(en,ei=eg.Writer.create())=>(""!==en.portId&&ei.uint32(10).string(en.portId),""!==en.channelId&&ei.uint32(18).string(en.channelId),0!==en.proofInit.length&&ei.uint32(26).bytes(en.proofInit),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(34).fork()).ldelim(),""!==en.signer&&ei.uint32(42).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelCloseConfirm();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.portId=eo.string();break;case 2:es.channelId=eo.string();break;case 3:es.proofInit=eo.bytes();break;case 4:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 5:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({portId:(0,em.isSet)(en.portId)?String(en.portId):"",channelId:(0,em.isSet)(en.channelId)?String(en.channelId):"",proofInit:(0,em.isSet)(en.proofInit)?(0,em.bytesFromBase64)(en.proofInit):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.portId&&(ei.portId=en.portId),void 0!==en.channelId&&(ei.channelId=en.channelId),void 0!==en.proofInit&&(ei.proofInit=(0,em.base64FromBytes)(void 0!==en.proofInit?en.proofInit:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgChannelCloseConfirm();return ei.portId=en.portId??"",ei.channelId=en.channelId??"",ei.proofInit=en.proofInit??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.signer=en.signer??"",ei}},ei.MsgChannelCloseConfirmResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgChannelCloseConfirmResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgChannelCloseConfirmResponse();return ei}},ei.MsgRecvPacket={encode:(en,ei=eg.Writer.create())=>(void 0!==en.packet&&ef.Packet.encode(en.packet,ei.uint32(10).fork()).ldelim(),0!==en.proofCommitment.length&&ei.uint32(18).bytes(en.proofCommitment),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),""!==en.signer&&ei.uint32(34).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgRecvPacket();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.packet=ef.Packet.decode(eo,eo.uint32());break;case 2:es.proofCommitment=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 4:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({packet:(0,em.isSet)(en.packet)?ef.Packet.fromJSON(en.packet):void 0,proofCommitment:(0,em.isSet)(en.proofCommitment)?(0,em.bytesFromBase64)(en.proofCommitment):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.packet&&(ei.packet=en.packet?ef.Packet.toJSON(en.packet):void 0),void 0!==en.proofCommitment&&(ei.proofCommitment=(0,em.base64FromBytes)(void 0!==en.proofCommitment?en.proofCommitment:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgRecvPacket();return ei.packet=void 0!==en.packet&&null!==en.packet?ef.Packet.fromPartial(en.packet):void 0,ei.proofCommitment=en.proofCommitment??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.signer=en.signer??"",ei}},ei.MsgRecvPacketResponse={encode:(en,ei=eg.Writer.create())=>(0!==en.result&&ei.uint32(8).int32(en.result),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgRecvPacketResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.result=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({result:(0,em.isSet)(en.result)?responseResultTypeFromJSON(en.result):0}),toJSON(en){let ei={};return void 0!==en.result&&(ei.result=responseResultTypeToJSON(en.result)),ei},fromPartial(en){let ei=createBaseMsgRecvPacketResponse();return ei.result=en.result??0,ei}},ei.MsgTimeout={encode:(en,ei=eg.Writer.create())=>(void 0!==en.packet&&ef.Packet.encode(en.packet,ei.uint32(10).fork()).ldelim(),0!==en.proofUnreceived.length&&ei.uint32(18).bytes(en.proofUnreceived),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),en.nextSequenceRecv.isZero()||ei.uint32(32).uint64(en.nextSequenceRecv),""!==en.signer&&ei.uint32(42).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgTimeout();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.packet=ef.Packet.decode(eo,eo.uint32());break;case 2:es.proofUnreceived=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 4:es.nextSequenceRecv=eo.uint64();break;case 5:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({packet:(0,em.isSet)(en.packet)?ef.Packet.fromJSON(en.packet):void 0,proofUnreceived:(0,em.isSet)(en.proofUnreceived)?(0,em.bytesFromBase64)(en.proofUnreceived):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,nextSequenceRecv:(0,em.isSet)(en.nextSequenceRecv)?em.Long.fromValue(en.nextSequenceRecv):em.Long.UZERO,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.packet&&(ei.packet=en.packet?ef.Packet.toJSON(en.packet):void 0),void 0!==en.proofUnreceived&&(ei.proofUnreceived=(0,em.base64FromBytes)(void 0!==en.proofUnreceived?en.proofUnreceived:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.nextSequenceRecv&&(ei.nextSequenceRecv=(e
4n.nextSequenceRecv||em.Long.UZERO).toString()),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgTimeout();return ei.packet=void 0!==en.packet&&null!==en.packet?ef.Packet.fromPartial(en.packet):void 0,ei.proofUnreceived=en.proofUnreceived??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.nextSequenceRecv=void 0!==en.nextSequenceRecv&&null!==en.nextSequenceRecv?em.Long.fromValue(en.nextSequenceRecv):em.Long.UZERO,ei.signer=en.signer??"",ei}},ei.MsgTimeoutResponse={encode:(en,ei=eg.Writer.create())=>(0!==en.result&&ei.uint32(8).int32(en.result),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgTimeoutResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.result=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({result:(0,em.isSet)(en.result)?responseResultTypeFromJSON(en.result):0}),toJSON(en){let ei={};return void 0!==en.result&&(ei.result=responseResultTypeToJSON(en.result)),ei},fromPartial(en){let ei=createBaseMsgTimeoutResponse();return ei.result=en.result??0,ei}},ei.MsgTimeoutOnClose={encode:(en,ei=eg.Writer.create())=>(void 0!==en.packet&&ef.Packet.encode(en.packet,ei.uint32(10).fork()).ldelim(),0!==en.proofUnreceived.length&&ei.uint32(18).bytes(en.proofUnreceived),0!==en.proofClose.length&&ei.uint32(26).bytes(en.proofClose),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(34).fork()).ldelim(),en.nextSequenceRecv.isZero()||ei.uint32(40).uint64(en.nextSequenceRecv),""!==en.signer&&ei.uint32(50).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgTimeoutOnClose();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.packet=ef.Packet.decode(eo,eo.uint32());break;case 2:es.proofUnreceived=eo.bytes();break;case 3:es.proofClose=eo.bytes();break;case 4:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 5:es.nextSequenceRecv=eo.uint64();break;case 6:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({packet:(0,em.isSet)(en.packet)?ef.Packet.fromJSON(en.packet):void 0,proofUnreceived:(0,em.isSet)(en.proofUnreceived)?(0,em.bytesFromBase64)(en.proofUnreceived):new Uint8Array,proofClose:(0,em.isSet)(en.proofClose)?(0,em.bytesFromBase64)(en.proofClose):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,nextSequenceRecv:(0,em.isSet)(en.nextSequenceRecv)?em.Long.fromValue(en.nextSequenceRecv):em.Long.UZERO,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.packet&&(ei.packet=en.packet?ef.Packet.toJSON(en.packet):void 0),void 0!==en.proofUnreceived&&(ei.proofUnreceived=(0,em.base64FromBytes)(void 0!==en.proofUnreceived?en.proofUnreceived:new Uint8Array)),void 0!==en.proofClose&&(ei.proofClose=(0,em.base64FromBytes)(void 0!==en.proofClose?en.proofClose:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.nextSequenceRecv&&(ei.nextSequenceRecv=(en.nextSequenceRecv||em.Long.UZERO).toString()),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgTimeoutOnClose();return ei.packet=void 0!==en.packet&&null!==en.packet?ef.Packet.fromPartial(en.packet):void 0,ei.proofUnreceived=en.proofUnreceived??new Uint8Array,ei.proofClose=en.proofClose??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.nextSequenceRecv=void 0!==en.nextSequenceRecv&&null!==en.nextSequenceRecv?em.Long.fromValue(en.nextSequenceRecv):em.Long.UZERO,ei.signer=en.signer??"",ei}},ei.MsgTimeoutOnCloseResponse={encode:(en,ei=eg.Writer.create())=>(0!==en.result&&ei.uint32(8).int32(en.result),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgTimeoutOnCloseResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.result=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({result:(0,em.isSet)(en.result)?responseResultTypeFromJSON(en.result):0}),toJSON(en){let ei={};return void 0!==en.result&&(ei.result=responseResultTypeToJSON(en.result)),ei},fromPartial(en){let ei=createBaseMsgTimeoutOnCloseResponse();return ei.result=en.result??0,ei}},ei.MsgAcknowledgement={encode:(en,ei=eg.Writer.create())=>(void 0!==en.packet&&ef.Packet.encode(en.packet,ei.uint32(10).fork()).ldelim(),0!==en.acknowledgement.length&&ei.uint32(18).bytes(en.acknowledgement),
40!==en.proofAcked.length&&ei.uint32(26).bytes(en.proofAcked),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(34).fork()).ldelim(),""!==en.signer&&ei.uint32(42).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgAcknowledgement();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.packet=ef.Packet.decode(eo,eo.uint32());break;case 2:es.acknowledgement=eo.bytes();break;case 3:es.proofAcked=eo.bytes();break;case 4:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 5:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({packet:(0,em.isSet)(en.packet)?ef.Packet.fromJSON(en.packet):void 0,acknowledgement:(0,em.isSet)(en.acknowledgement)?(0,em.bytesFromBase64)(en.acknowledgement):new Uint8Array,proofAcked:(0,em.isSet)(en.proofAcked)?(0,em.bytesFromBase64)(en.proofAcked):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.packet&&(ei.packet=en.packet?ef.Packet.toJSON(en.packet):void 0),void 0!==en.acknowledgement&&(ei.acknowledgement=(0,em.base64FromBytes)(void 0!==en.acknowledgement?en.acknowledgement:new Uint8Array)),void 0!==en.proofAcked&&(ei.proofAcked=(0,em.base64FromBytes)(void 0!==en.proofAcked?en.proofAcked:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgAcknowledgement();return ei.packet=void 0!==en.packet&&null!==en.packet?ef.Packet.fromPartial(en.packet):void 0,ei.acknowledgement=en.acknowledgement??new Uint8Array,ei.proofAcked=en.proofAcked??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.signer=en.signer??"",ei}},ei.MsgAcknowledgementResponse={encode:(en,ei=eg.Writer.create())=>(0!==en.result&&ei.uint32(8).int32(en.result),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgAcknowledgementResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.result=eo.int32():eo.skipType(7&en)}return es},fromJSON:en=>({result:(0,em.isSet)(en.result)?responseResultTypeFromJSON(en.result):0}),toJSON(en){let ei={};return void 0!==en.result&&(ei.result=responseResultTypeToJSON(en.result)),ei},fromPartial(en){let ei=createBaseMsgAcknowledgementResponse();return ei.result=en.result??0,ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.ChannelOpenInit=this.ChannelOpenInit.bind(this),this.ChannelOpenTry=this.ChannelOpenTry.bind(this),this.ChannelOpenAck=this.ChannelOpenAck.bind(this),this.ChannelOpenConfirm=this.ChannelOpenConfirm.bind(this),this.ChannelCloseInit=this.ChannelCloseInit.bind(this),this.ChannelCloseConfirm=this.ChannelCloseConfirm.bind(this),this.RecvPacket=this.RecvPacket.bind(this),this.Timeout=this.Timeout.bind(this),this.TimeoutOnClose=this.TimeoutOnClose.bind(this),this.Acknowledgement=this.Acknowledgement.bind(this)}ChannelOpenInit(en){let eo=ei.MsgChannelOpenInit.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",eo);return ea.then(en=>ei.MsgChannelOpenInitResponse.decode(new eg.Reader(en)))}ChannelOpenTry(en){let eo=ei.MsgChannelOpenTry.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",eo);return ea.then(en=>ei.MsgChannelOpenTryResponse.decode(new eg.Reader(en)))}ChannelOpenAck(en){let eo=ei.MsgChannelOpenAck.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",eo);return ea.then(en=>ei.MsgChannelOpenAckResponse.decode(new eg.Reader(en)))}ChannelOpenConfirm(en){let eo=ei.MsgChannelOpenConfirm.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",eo);return ea.then(en=>ei.MsgChannelOpenConfirmResponse.decode(new eg.Reader(en)))}ChannelCloseInit(en){let eo=ei.MsgChannelCloseInit.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",eo);return ea.then(en=>ei.MsgChannelCloseInitResponse.decode(new eg.Reader(en)))}
4ChannelCloseConfirm(en){let eo=ei.MsgChannelCloseConfirm.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",eo);return ea.then(en=>ei.MsgChannelCloseConfirmResponse.decode(new eg.Reader(en)))}RecvPacket(en){let eo=ei.MsgRecvPacket.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",eo);return ea.then(en=>ei.MsgRecvPacketResponse.decode(new eg.Reader(en)))}Timeout(en){let eo=ei.MsgTimeout.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","Timeout",eo);return ea.then(en=>ei.MsgTimeoutResponse.decode(new eg.Reader(en)))}TimeoutOnClose(en){let eo=ei.MsgTimeoutOnClose.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",eo);return ea.then(en=>ei.MsgTimeoutOnCloseResponse.decode(new eg.Reader(en)))}Acknowledgement(en){let eo=ei.MsgAcknowledgement.encode(en).finish(),ea=this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",eo);return ea.then(en=>ei.MsgAcknowledgementResponse.decode(new eg.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},75022:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=ei.Height=ei.UpgradeProposal=ei.ClientUpdateProposal=ei.ClientConsensusStates=ei.ConsensusStateWithHeight=ei.IdentifiedClientState=ei.protobufPackage=void 0;let eu=eo(53862),ef=eo(77317),ep=eo(81457),em=ed(eo(83789));function createBaseIdentifiedClientState(){return{clientId:"",clientState:void 0}}function createBaseConsensusStateWithHeight(){return{height:void 0,consensusState:void 0}}function createBaseClientConsensusStates(){return{clientId:"",consensusStates:[]}}function createBaseClientUpdateProposal(){return{title:"",description:"",subjectClientId:"",substituteClientId:""}}function createBaseUpgradeProposal(){return{title:"",description:"",plan:void 0,upgradedClientState:void 0}}function createBaseHeight(){return{revisionNumber:ep.Long.UZERO,revisionHeight:ep.Long.UZERO}}function createBaseParams(){return{allowedClients:[]}}ei.protobufPackage="ibc.core.client.v1",ei.IdentifiedClientState={encode:(en,ei=em.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),void 0!==en.clientState&&eu.Any.encode(en.clientState,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseIdentifiedClientState();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.clientState=eu.Any.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",clientState:(0,ep.isSet)(en.clientState)?eu.Any.fromJSON(en.clientState):void 0}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.clientState&&(ei.clientState=en.clientState?eu.Any.toJSON(en.clientState):void 0),ei},fromPartial(en){let ei=createBaseIdentifiedClientState();return ei.clientId=en.clientId??"",ei.clientState=void 0!==en.clientState&&null!==en.clientState?eu.Any.fromPartial(en.clientState):void 0,ei}},ei.ConsensusStateWithHeight={encode:(en,eo=em.Writer.create())=>(void 0!==en.height&&ei.Height.encode(en.height,eo.uint32(10).fork()).ldelim(),void 0!==en.consensusState&&eu.Any.encode(en.consensusState,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseConsensusStateWithHeight();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.height=ei.Height.decode(ea,ea.uint32());break;case 2:ed.consensusState=eu.Any.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({height:(0,ep.isSet)(en.height)?ei.Height.fromJSON(en.height):void 0,consensusState:(0,ep.isSet)(en.consensusState)?eu.Any.fromJSON(en.consensusState):void 0}),toJSON(en){let eo={};return void 0!==en.height&&(eo.height=en.height?ei.Height.toJSON(en.height):void 0),void 0!==en.consensusState&&(eo.consensusState=en.consensusState?eu.Any.toJSON(en.consensusState):void 0),eo},fromPartial(en){let eo=createBaseConsensusStateWithHeight();return eo.height=void 0!==en.height&&null!==en.height?ei.Height.fromPartial(en.height):void 0,eo.consensusState=void 0!==en.consensusState&&null!==en.consensusState?eu.Any.fromPartial(en.consensusState):void 0,eo}},ei.ClientConsensusStates={encode(en,eo=em.Writer.create()){for(let ea of(""!==en.clientId&&eo.uint32(10).string(en.clientId),en.consensusStates))ei.ConsensusStateWithHeight.encode(ea,eo.uint32(18).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseClientConsensusStates();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.clientId=ea.string();break;case 2:ed.consensusStates.push(ei.ConsensusStateWithHeight.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",consensusStates:Array.isArray(en?.consensusStates)?en.consensusStates.map(e
4n=>ei.ConsensusStateWithHeight.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.clientId&&(eo.clientId=en.clientId),en.consensusStates?eo.consensusStates=en.consensusStates.map(en=>en?ei.ConsensusStateWithHeight.toJSON(en):void 0):eo.consensusStates=[],eo},fromPartial(en){let eo=createBaseClientConsensusStates();return eo.clientId=en.clientId??"",eo.consensusStates=en.consensusStates?.map(en=>ei.ConsensusStateWithHeight.fromPartial(en))||[],eo}},ei.ClientUpdateProposal={encode:(en,ei=em.Writer.create())=>(""!==en.title&&ei.uint32(10).string(en.title),""!==en.description&&ei.uint32(18).string(en.description),""!==en.subjectClientId&&ei.uint32(26).string(en.subjectClientId),""!==en.substituteClientId&&ei.uint32(34).string(en.substituteClientId),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseClientUpdateProposal();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.title=eo.string();break;case 2:es.description=eo.string();break;case 3:es.subjectClientId=eo.string();break;case 4:es.substituteClientId=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({title:(0,ep.isSet)(en.title)?String(en.title):"",description:(0,ep.isSet)(en.description)?String(en.description):"",subjectClientId:(0,ep.isSet)(en.subjectClientId)?String(en.subjectClientId):"",substituteClientId:(0,ep.isSet)(en.substituteClientId)?String(en.substituteClientId):""}),toJSON(en){let ei={};return void 0!==en.title&&(ei.title=en.title),void 0!==en.description&&(ei.description=en.description),void 0!==en.subjectClientId&&(ei.subjectClientId=en.subjectClientId),void 0!==en.substituteClientId&&(ei.substituteClientId=en.substituteClientId),ei},fromPartial(en){let ei=createBaseClientUpdateProposal();return ei.title=en.title??"",ei.description=en.description??"",ei.subjectClientId=en.subjectClientId??"",ei.substituteClientId=en.substituteClientId??"",ei}},ei.UpgradeProposal={encode:(en,ei=em.Writer.create())=>(""!==en.title&&ei.uint32(10).string(en.title),""!==en.description&&ei.uint32(18).string(en.description),void 0!==en.plan&&ef.Plan.encode(en.plan,ei.uint32(26).fork()).ldelim(),void 0!==en.upgradedClientState&&eu.Any.encode(en.upgradedClientState,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseUpgradeProposal();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.title=eo.string();break;case 2:es.description=eo.string();break;case 3:es.plan=ef.Plan.decode(eo,eo.uint32());break;case 4:es.upgradedClientState=eu.Any.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({title:(0,ep.isSet)(en.title)?String(en.title):"",description:(0,ep.isSet)(en.description)?String(en.description):"",plan:(0,ep.isSet)(en.plan)?ef.Plan.fromJSON(en.plan):void 0,upgradedClientState:(0,ep.isSet)(en.upgradedClientState)?eu.Any.fromJSON(en.upgradedClientState):void 0}),toJSON(en){let ei={};return void 0!==en.title&&(ei.title=en.title),void 0!==en.description&&(ei.description=en.description),void 0!==en.plan&&(ei.plan=en.plan?ef.Plan.toJSON(en.plan):void 0),void 0!==en.upgradedClientState&&(ei.upgradedClientState=en.upgradedClientState?eu.Any.toJSON(en.upgradedClientState):void 0),ei},fromPartial(en){let ei=createBaseUpgradeProposal();return ei.title=en.title??"",ei.description=en.description??"",ei.plan=void 0!==en.plan&&null!==en.plan?ef.Plan.fromPartial(en.plan):void 0,ei.upgradedClientState=void 0!==en.upgradedClientState&&null!==en.upgradedClientState?eu.Any.fromPartial(en.upgradedClientState):void 0,ei}},ei.Height={encode:(en,ei=em.Writer.create())=>(en.revisionNumber.isZero()||ei.uint32(8).uint64(en.revisionNumber),en.revisionHeight.isZero()||ei.uint32(16).uint64(en.revisionHeight),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseHeight();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.revisionNumber=eo.uint64();break;case 2:es.revisionHeight=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({revisionNumber:(0,ep.isSet)(en.revisionNumber)?ep.Long.fromValue(en.revisionNumber):ep.Long.UZERO,revisionHeight:(0,ep.isSet)(en.revisionHeight)?ep.Long.fromValue(en.revisionHeight):ep.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.revisionNumber&&(ei.revisionNumber=(en.revisionNumber||ep.Long.UZERO).toString()),void 0!==en.revisionHeight&&(ei.revisionHeight=(en.revisionHeight||ep.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseHeight();return ei.revisionNumber=void 0!==en.revisionNumber&&null!==en.revisionNumber?ep.Long.fromValue(en.revisionNumber):ep.Long.UZERO,ei.revisionHeight=void 0!==en.revisionHeight&&null!==en.revisionHeight?ep.Long.fromValue(en.revisionHeight):ep.Long.UZERO,ei}},ei.Params={encode(en,ei=em.Writer.create()){for(let eo of en.allowedClients)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.allowedClients.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({allowedClients:Array.isArray(en?.allowedClients)?en.allowedClients.map(e
4n=>String(en)):[]}),toJSON(en){let ei={};return en.allowedClients?ei.allowedClients=en.allowedClients.map(en=>en):ei.allowedClients=[],ei},fromPartial(en){let ei=createBaseParams();return ei.allowedClients=en.allowedClients?.map(en=>en)||[],ei}}},66448:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryUpgradedConsensusStateResponse=ei.QueryUpgradedConsensusStateRequest=ei.QueryUpgradedClientStateResponse=ei.QueryUpgradedClientStateRequest=ei.QueryClientParamsResponse=ei.QueryClientParamsRequest=ei.QueryClientStatusResponse=ei.QueryClientStatusRequest=ei.QueryConsensusStateHeightsResponse=ei.QueryConsensusStateHeightsRequest=ei.QueryConsensusStatesResponse=ei.QueryConsensusStatesRequest=ei.QueryConsensusStateResponse=ei.QueryConsensusStateRequest=ei.QueryClientStatesResponse=ei.QueryClientStatesRequest=ei.QueryClientStateResponse=ei.QueryClientStateRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(53862),ep=eo(75022),em=eo(81457),eg=ed(eo(83789));function createBaseQueryClientStateRequest(){return{clientId:""}}function createBaseQueryClientStateResponse(){return{clientState:void 0,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryClientStatesRequest(){return{pagination:void 0}}function createBaseQueryClientStatesResponse(){return{clientStates:[],pagination:void 0}}function createBaseQueryConsensusStateRequest(){return{clientId:"",revisionNumber:em.Long.UZERO,revisionHeight:em.Long.UZERO,latestHeight:!1}}function createBaseQueryConsensusStateResponse(){return{consensusState:void 0,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryConsensusStatesRequest(){return{clientId:"",pagination:void 0}}function createBaseQueryConsensusStatesResponse(){return{consensusStates:[],pagination:void 0}}function createBaseQueryConsensusStateHeightsRequest(){return{clientId:"",pagination:void 0}}function createBaseQueryConsensusStateHeightsResponse(){return{consensusStateHeights:[],pagination:void 0}}function createBaseQueryClientStatusRequest(){return{clientId:""}}function createBaseQueryClientStatusResponse(){return{status:""}}function createBaseQueryClientParamsRequest(){return{}}function createBaseQueryClientParamsResponse(){return{params:void 0}}function createBaseQueryUpgradedClientStateRequest(){return{}}function createBaseQueryUpgradedClientStateResponse(){return{upgradedClientState:void 0}}function createBaseQueryUpgradedConsensusStateRequest(){return{}}function createBaseQueryUpgradedConsensusStateResponse(){return{upgradedConsensusState:void 0}}ei.protobufPackage="ibc.core.client.v1",ei.QueryClientStateRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientStateRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.clientId=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({clientId:(0,em.isSet)(en.clientId)?String(en.clientId):""}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),ei},fromPartial(en){let ei=createBaseQueryClientStateRequest();return ei.clientId=en.clientId??"",ei}},ei.QueryClientStateResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.clientState&&ef.Any.encode(en.clientState,ei.uint32(10).fork()).ldelim(),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientStateResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientState=ef.Any.decode(eo,eo.uint32());break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientState:(0,em.isSet)(en.clientState)?ef.Any.fromJSON(en.clientState):void 0,proof:(0,em.isSet)(en.proof)?(0,em.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.clientState&&(ei.clientState=en.clientState?ef.Any.toJSON(en.clientState):void 0),void 0!==en.proof&&(ei.proof=(0,em.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryClientStateResponse();return ei.clientState=void 0!==en.clientState&&null!==en.clientState?ef.Any.fromPartial(en.clientState):void 0,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryClientStatesRequest={encode:(en,ei=eg.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientStatesRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryClientStatesRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryClientStatesResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.clientStates)ep.IdentifiedClientState.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientStatesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientStates.push(ep.IdentifiedClientState.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientStates:Array.isArray(en?.clientStates)?en.clientStates.map(e
4n=>ep.IdentifiedClientState.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.clientStates?ei.clientStates=en.clientStates.map(en=>en?ep.IdentifiedClientState.toJSON(en):void 0):ei.clientStates=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryClientStatesResponse();return ei.clientStates=en.clientStates?.map(en=>ep.IdentifiedClientState.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryConsensusStateRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),en.revisionNumber.isZero()||ei.uint32(16).uint64(en.revisionNumber),en.revisionHeight.isZero()||ei.uint32(24).uint64(en.revisionHeight),!0===en.latestHeight&&ei.uint32(32).bool(en.latestHeight),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConsensusStateRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.revisionNumber=eo.uint64();break;case 3:es.revisionHeight=eo.uint64();break;case 4:es.latestHeight=eo.bool();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,em.isSet)(en.clientId)?String(en.clientId):"",revisionNumber:(0,em.isSet)(en.revisionNumber)?em.Long.fromValue(en.revisionNumber):em.Long.UZERO,revisionHeight:(0,em.isSet)(en.revisionHeight)?em.Long.fromValue(en.revisionHeight):em.Long.UZERO,latestHeight:!!(0,em.isSet)(en.latestHeight)&&!!en.latestHeight}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.revisionNumber&&(ei.revisionNumber=(en.revisionNumber||em.Long.UZERO).toString()),void 0!==en.revisionHeight&&(ei.revisionHeight=(en.revisionHeight||em.Long.UZERO).toString()),void 0!==en.latestHeight&&(ei.latestHeight=en.latestHeight),ei},fromPartial(en){let ei=createBaseQueryConsensusStateRequest();return ei.clientId=en.clientId??"",ei.revisionNumber=void 0!==en.revisionNumber&&null!==en.revisionNumber?em.Long.fromValue(en.revisionNumber):em.Long.UZERO,ei.revisionHeight=void 0!==en.revisionHeight&&null!==en.revisionHeight?em.Long.fromValue(en.revisionHeight):em.Long.UZERO,ei.latestHeight=en.latestHeight??!1,ei}},ei.QueryConsensusStateResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.consensusState&&ef.Any.encode(en.consensusState,ei.uint32(10).fork()).ldelim(),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConsensusStateResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.consensusState=ef.Any.decode(eo,eo.uint32());break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({consensusState:(0,em.isSet)(en.consensusState)?ef.Any.fromJSON(en.consensusState):void 0,proof:(0,em.isSet)(en.proof)?(0,em.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.consensusState&&(ei.consensusState=en.consensusState?ef.Any.toJSON(en.consensusState):void 0),void 0!==en.proof&&(ei.proof=(0,em.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryConsensusStateResponse();return ei.consensusState=void 0!==en.consensusState&&null!==en.consensusState?ef.Any.fromPartial(en.consensusState):void 0,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryConsensusStatesRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConsensusStatesRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,em.isSet)(en.clientId)?String(en.clientId):"",pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryConsensusStatesRequest();return ei.clientId=en.clientId??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryConsensusStatesResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.consensusStates)ep.ConsensusStateWithHeight.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConsensusStatesResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.consensusStates.push(ep.ConsensusStateWithHeight.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({consensusStates:Array.isArray(en?.consensusStates)?en.consensusStates.map(e
4n=>ep.ConsensusStateWithHeight.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.consensusStates?ei.consensusStates=en.consensusStates.map(en=>en?ep.ConsensusStateWithHeight.toJSON(en):void 0):ei.consensusStates=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryConsensusStatesResponse();return ei.consensusStates=en.consensusStates?.map(en=>ep.ConsensusStateWithHeight.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryConsensusStateHeightsRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConsensusStateHeightsRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.pagination=eu.PageRequest.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,em.isSet)(en.clientId)?String(en.clientId):"",pagination:(0,em.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryConsensusStateHeightsRequest();return ei.clientId=en.clientId??"",ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryConsensusStateHeightsResponse={encode(en,ei=eg.Writer.create()){for(let eo of en.consensusStateHeights)ep.Height.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConsensusStateHeightsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.consensusStateHeights.push(ep.Height.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({consensusStateHeights:Array.isArray(en?.consensusStateHeights)?en.consensusStateHeights.map(en=>ep.Height.fromJSON(en)):[],pagination:(0,em.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return en.consensusStateHeights?ei.consensusStateHeights=en.consensusStateHeights.map(en=>en?ep.Height.toJSON(en):void 0):ei.consensusStateHeights=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryConsensusStateHeightsResponse();return ei.consensusStateHeights=en.consensusStateHeights?.map(en=>ep.Height.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei}},ei.QueryClientStatusRequest={encode:(en,ei=eg.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientStatusRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.clientId=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({clientId:(0,em.isSet)(en.clientId)?String(en.clientId):""}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),ei},fromPartial(en){let ei=createBaseQueryClientStatusRequest();return ei.clientId=en.clientId??"",ei}},ei.QueryClientStatusResponse={encode:(en,ei=eg.Writer.create())=>(""!==en.status&&ei.uint32(10).string(en.status),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientStatusResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.status=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({status:(0,em.isSet)(en.status)?String(en.status):""}),toJSON(en){let ei={};return void 0!==en.status&&(ei.status=en.status),ei},fromPartial(en){let ei=createBaseQueryClientStatusResponse();return ei.status=en.status??"",ei}},ei.QueryClientParamsRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryClientParamsRequest();return ei}},ei.QueryClientParamsResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.params&&ep.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>
43==1?es.params=ep.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,em.isSet)(en.params)?ep.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ep.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryClientParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ep.Params.fromPartial(en.params):void 0,ei}},ei.QueryUpgradedClientStateRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUpgradedClientStateRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryUpgradedClientStateRequest();return ei}},ei.QueryUpgradedClientStateResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.upgradedClientState&&ef.Any.encode(en.upgradedClientState,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUpgradedClientStateResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.upgradedClientState=ef.Any.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({upgradedClientState:(0,em.isSet)(en.upgradedClientState)?ef.Any.fromJSON(en.upgradedClientState):void 0}),toJSON(en){let ei={};return void 0!==en.upgradedClientState&&(ei.upgradedClientState=en.upgradedClientState?ef.Any.toJSON(en.upgradedClientState):void 0),ei},fromPartial(en){let ei=createBaseQueryUpgradedClientStateResponse();return ei.upgradedClientState=void 0!==en.upgradedClientState&&null!==en.upgradedClientState?ef.Any.fromPartial(en.upgradedClientState):void 0,ei}},ei.QueryUpgradedConsensusStateRequest={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUpgradedConsensusStateRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryUpgradedConsensusStateRequest();return ei}},ei.QueryUpgradedConsensusStateResponse={encode:(en,ei=eg.Writer.create())=>(void 0!==en.upgradedConsensusState&&ef.Any.encode(en.upgradedConsensusState,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryUpgradedConsensusStateResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.upgradedConsensusState=ef.Any.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({upgradedConsensusState:(0,em.isSet)(en.upgradedConsensusState)?ef.Any.fromJSON(en.upgradedConsensusState):void 0}),toJSON(en){let ei={};return void 0!==en.upgradedConsensusState&&(ei.upgradedConsensusState=en.upgradedConsensusState?ef.Any.toJSON(en.upgradedConsensusState):void 0),ei},fromPartial(en){let ei=createBaseQueryUpgradedConsensusStateResponse();return ei.upgradedConsensusState=void 0!==en.upgradedConsensusState&&null!==en.upgradedConsensusState?ef.Any.fromPartial(en.upgradedConsensusState):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.ClientState=this.ClientState.bind(this),this.ClientStates=this.ClientStates.bind(this),this.ConsensusState=this.ConsensusState.bind(this),this.ConsensusStates=this.ConsensusStates.bind(this),this.ConsensusStateHeights=this.ConsensusStateHeights.bind(this),this.ClientStatus=this.ClientStatus.bind(this),this.ClientParams=this.ClientParams.bind(this),this.UpgradedClientState=this.UpgradedClientState.bind(this),this.UpgradedConsensusState=this.UpgradedConsensusState.bind(this)}ClientState(en){let eo=ei.QueryClientStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","ClientState",eo);return ea.then(en=>ei.QueryClientStateResponse.decode(new eg.Reader(en)))}ClientStates(en={pagination:void 0}){let eo=ei.QueryClientStatesRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","ClientStates",eo);return ea.then(en=>ei.QueryClientStatesResponse.decode(new eg.Reader(en)))}ConsensusState(en){let eo=ei.QueryConsensusStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","ConsensusState",eo);return ea.then(en=>ei.QueryConsensusStateResponse.decode(new eg.Reader(en)))}ConsensusStates(en){let eo=ei.QueryConsensusStatesRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","ConsensusStates",eo);return ea.then(en=>ei.QueryConsensusStatesResponse.decode(new eg.Reader(en)))}ConsensusStateHeights(en){let eo=ei.QueryConsensusStateHeightsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","ConsensusStateHeights",eo);return ea.then(en=>ei.QueryConsensusStateHeightsResponse.decode(new eg.Reader(en)))}ClientStatus(en){let eo=ei.QueryClientStatusRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","ClientStatus",eo);return ea.then(en=>ei.QueryClientStatusResponse.decode(new eg.Reader(en)))}ClientParams(en={}){let eo=ei.QueryClientParamsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","ClientParams",eo);return ea.then(en=>ei.QueryClientParamsResponse.decode(new eg.Reader(en)))}UpgradedClientState(en={}){let eo=ei.QueryUpgradedClientStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","UpgradedClientState",eo);return ea.then(en=>ei.QueryUpgradedClientStateResponse.decode(new eg.Reader(en)))}UpgradedConsensusState(en={}){let eo=ei.QueryUpgradedConsensusStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Query","UpgradedConsensusState",eo);return ea.then(en=>ei.QueryUpgradedConsensusStateResponse.decode(new eg.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},62082:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgSubmitMisbehaviourResponse=ei.MsgSubmitMisbehaviour=ei.MsgUpgradeClientResponse=ei.MsgUpgradeClient=ei.MsgUpdateClientResponse=ei.MsgUpdateClient=ei.MsgCreateClientResponse=ei.MsgCreateClient=ei.protobufPackage=void 0;let eu=eo(53862),ef=ed(eo(83789)),ep=eo(81457);function createBaseMsgCreateClient(){return{clientState:void 0,consensusState:void 0,signer:""}}function createBaseMsgCreateClientResponse(){return{}}function createBaseMsgUpdateClient(){return{clientId:"",clientMessage:void 0,signer:""}}function createBaseMsgUpdateClientResponse(){return{}}function createBaseMsgUpgradeClient(){return{clientId:"",clientState:void 0,consensusState:void 0,proofUpgradeClient:new Uint8Array,proofUpgradeConsensusState:new Uint8Array,signer:""}}function createBaseMsgUpgradeClientResponse(){return{}}function createBaseMsgSubmitMisbehaviour(){return{clientId:"",misbehaviour:void 0,signer:""}}function createBaseMsgSubmitMisbehaviourResponse(){return{}}
4ei.protobufPackage="ibc.core.client.v1",ei.MsgCreateClient={encode:(en,ei=ef.Writer.create())=>(void 0!==en.clientState&&eu.Any.encode(en.clientState,ei.uint32(10).fork()).ldelim(),void 0!==en.consensusState&&eu.Any.encode(en.consensusState,ei.uint32(18).fork()).ldelim(),""!==en.signer&&ei.uint32(26).string(en.signer),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreateClient();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientState=eu.Any.decode(eo,eo.uint32());break;case 2:es.consensusState=eu.Any.decode(eo,eo.uint32());break;case 3:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientState:(0,ep.isSet)(en.clientState)?eu.Any.fromJSON(en.clientState):void 0,consensusState:(0,ep.isSet)(en.consensusState)?eu.Any.fromJSON(en.consensusState):void 0,signer:(0,ep.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.clientState&&(ei.clientState=en.clientState?eu.Any.toJSON(en.clientState):void 0),void 0!==en.consensusState&&(ei.consensusState=en.consensusState?eu.Any.toJSON(en.consensusState):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgCreateClient();return ei.clientState=void 0!==en.clientState&&null!==en.clientState?eu.Any.fromPartial(en.clientState):void 0,ei.consensusState=void 0!==en.consensusState&&null!==en.consensusState?eu.Any.fromPartial(en.consensusState):void 0,ei.signer=en.signer??"",ei}},ei.MsgCreateClientResponse={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgCreateClientResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgCreateClientResponse();return ei}},ei.MsgUpdateClient={encode:(en,ei=ef.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),void 0!==en.clientMessage&&eu.Any.encode(en.clientMessage,ei.uint32(18).fork()).ldelim(),""!==en.signer&&ei.uint32(26).string(en.signer),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateClient();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.clientMessage=eu.Any.decode(eo,eo.uint32());break;case 3:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",clientMessage:(0,ep.isSet)(en.clientMessage)?eu.Any.fromJSON(en.clientMessage):void 0,signer:(0,ep.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.clientMessage&&(ei.clientMessage=en.clientMessage?eu.Any.toJSON(en.clientMessage):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgUpdateClient();return ei.clientId=en.clientId??"",ei.clientMessage=void 0!==en.clientMessage&&null!==en.clientMessage?eu.Any.fromPartial(en.clientMessage):void 0,ei.signer=en.signer??"",ei}},ei.MsgUpdateClientResponse={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpdateClientResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgUpdateClientResponse();return ei}},ei.MsgUpgradeClient={encode:(en,ei=ef.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),void 0!==en.clientState&&eu.Any.encode(en.clientState,ei.uint32(18).fork()).ldelim(),void 0!==en.consensusState&&eu.Any.encode(en.consensusState,ei.uint32(26).fork()).ldelim(),0!==en.proofUpgradeClient.length&&ei.uint32(34).bytes(en.proofUpgradeClient),0!==en.proofUpgradeConsensusState.length&&ei.uint32(42).bytes(en.proofUpgradeConsensusState),""!==en.signer&&ei.uint32(50).string(en.signer),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpgradeClient();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.clientState=eu.Any.decode(eo,eo.uint32());break;case 3:es.consensusState=eu.Any.decode(eo,eo.uint32());break;case 4:es.proofUpgradeClient=eo.bytes();break;case 5:es.proofUpgradeConsensusState=eo.bytes();break;case 6:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",clientState:(0,ep.isSet)(en.clientState)?eu.Any.fromJSON(en.clientState):void 0,consensusState:(0,ep.isSet)(en.consensusState)?eu.Any.fromJSON(en.consensusState):void 0,proofUpgradeClient:(0,ep.isSet)(en.proofUpgradeClient)?(0,ep.bytesFromBase64)(en.proofUpgradeClient):new Uint8Array,proofUpgradeConsensusState:(0,ep.isSet)(en.proofUpgradeConsensusState)?(0,ep.bytesFromBase64)(en.proofUpgradeConsensusState):new Uint8Array,signer:(0,ep.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.clientState&&(ei.clientState=en.clientState?eu.Any.toJSON(en.clientState):void 0),void 0!==en.consensusState&&(ei.consensusState=en.consensusState?eu.Any.toJSON(en.consensusState):void 0),void 0!==en.proofUpgradeClient&&(ei.proofUpgradeClient=(0,ep.base64FromBytes)(void 0!==en.proofUpgradeClient?en.proofUpgradeClient:new Uint8Array)),void 0!==en.proofUpgradeConsensusState&&(ei.proofUpgradeConsensusState=(0,ep.base64FromBytes)(void 0!==en.proofUpgradeConsensusState?en.proofUpgradeConsensusState:new Uint8Array)),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgUpgradeClient();return ei.clientId=en.clientId??"",ei.clientState=void 0!==en.clientState&&null!==en.clientState?eu.Any.fromPartial(en.clientState):void 0,ei.consensusState=void 0!==en.consensusState&&null!==en.consensusState?eu.Any.fromPartial(en.consensusState):void 0,ei.proofUpgradeClient=en.proofUpgradeClient??new Uint8Array,ei.proofUpgradeConsensusState=en.proofUpgradeConsensusState??new Uint8Array,ei.signer=en.signer??"",ei}},ei.MsgUpgradeClientResponse={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgUpgradeClientResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgUpgradeClientResponse();return ei}},ei.MsgSubmitMisbehaviour={encode:(en,ei=ef.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),void 0!==en.misbehaviour&&eu.Any.encode(en.misbehaviour,ei.uint32(18).fork()).ldelim(),""!==en.signer&&ei.uint32(26).string(en.signer),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSubmitMisbehaviour();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.misbehaviour=eu.Any.decode(eo,eo.uint32());break;case 3:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",misbehaviour:(0,ep.isSet)(en.misbehaviour)?eu.Any.fromJSON(en.misbehaviour):void 0,signer:(0,ep.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.misbehaviour&&(ei.misbehaviour=en.misbehaviour?eu.Any.toJSON(en.misbehaviour):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgSubmitMisbehaviour();return ei.clientId=en.clientId??"",ei.misbehaviour=void 0!==en.misbehaviour&&null!==en.misbehaviour?eu.Any.fromPartial(en.misbehaviour):void 0,ei.signer=en.signer??"",ei}},ei.MsgSubmitMisbehaviourResponse={encode:(en,ei=ef.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgSubmitMisbehaviourResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgSubmitMisbehaviourResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.CreateClient=this.CreateClient.bind(this),this.Update
4Client=this.UpdateClient.bind(this),this.UpgradeClient=this.UpgradeClient.bind(this),this.SubmitMisbehaviour=this.SubmitMisbehaviour.bind(this)}CreateClient(en){let eo=ei.MsgCreateClient.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Msg","CreateClient",eo);return ea.then(en=>ei.MsgCreateClientResponse.decode(new ef.Reader(en)))}UpdateClient(en){let eo=ei.MsgUpdateClient.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",eo);return ea.then(en=>ei.MsgUpdateClientResponse.decode(new ef.Reader(en)))}UpgradeClient(en){let eo=ei.MsgUpgradeClient.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",eo);return ea.then(en=>ei.MsgUpgradeClientResponse.decode(new ef.Reader(en)))}SubmitMisbehaviour(en){let eo=ei.MsgSubmitMisbehaviour.encode(en).finish(),ea=this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",eo);return ea.then(en=>ei.MsgSubmitMisbehaviourResponse.decode(new ef.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},30228:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MerkleProof=ei.MerklePath=ei.MerklePrefix=ei.MerkleRoot=ei.protobufPackage=void 0;let eu=eo(88590),ef=ed(eo(83789)),ep=eo(81457);function createBaseMerkleRoot(){return{hash:new Uint8Array}}function createBaseMerklePrefix(){return{keyPrefix:new Uint8Array}}function createBaseMerklePath(){return{keyPath:[]}}function createBaseMerkleProof(){return{proofs:[]}}ei.protobufPackage="ibc.core.commitment.v1",ei.MerkleRoot={encode:(en,ei=ef.Writer.create())=>(0!==en.hash.length&&ei.uint32(10).bytes(en.hash),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMerkleRoot();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.hash=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({hash:(0,ep.isSet)(en.hash)?(0,ep.bytesFromBase64)(en.hash):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.hash&&(ei.hash=(0,ep.base64FromBytes)(void 0!==en.hash?en.hash:new Uint8Array)),ei},fromPartial(en){let ei=createBaseMerkleRoot();return ei.hash=en.hash??new Uint8Array,ei}},ei.MerklePrefix={encode:(en,ei=ef.Writer.create())=>(0!==en.keyPrefix.length&&ei.uint32(10).bytes(en.keyPrefix),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMerklePrefix();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.keyPrefix=eo.bytes():eo.skipType(7&en)}return es},fromJSON:en=>({keyPrefix:(0,ep.isSet)(en.keyPrefix)?(0,ep.bytesFromBase64)(en.keyPrefix):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.keyPrefix&&(ei.keyPrefix=(0,ep.base64FromBytes)(void 0!==en.keyPrefix?en.keyPrefix:new Uint8Array)),ei},fromPartial(en){let ei=createBaseMerklePrefix();return ei.keyPrefix=en.keyPrefix??new Uint8Array,ei}},ei.MerklePath={encode(en,ei=ef.Writer.create()){for(let eo of en.keyPath)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMerklePath();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.keyPath.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({keyPath:Array.isArray(en?.keyPath)?en.keyPath.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.keyPath?ei.keyPath=en.keyPath.map(en=>en):ei.keyPath=[],ei},fromPartial(en){let ei=createBaseMerklePath();return ei.keyPath=en.keyPath?.map(en=>en)||[],ei}},ei.MerkleProof={encode(en,ei=ef.Writer.create()){for(let eo of en.proofs)eu.CommitmentProof.encode(eo,ei.uint32(10).fork()).ldelim();return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMerkleProof();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.proofs.push(eu.CommitmentProof.decode(eo,eo.uint32())):eo.skipType(7&en)}return es},fromJSON:en=>
4({proofs:Array.isArray(en?.proofs)?en.proofs.map(en=>eu.CommitmentProof.fromJSON(en)):[]}),toJSON(en){let ei={};return en.proofs?ei.proofs=en.proofs.map(en=>en?eu.CommitmentProof.toJSON(en):void 0):ei.proofs=[],ei},fromPartial(en){let ei=createBaseMerkleProof();return ei.proofs=en.proofs?.map(en=>eu.CommitmentProof.fromPartial(en))||[],ei}}},65698:function(en,ei,eo){"use strict";var ea,es=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),ed=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),eu=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&es(ei,en,eo);return ed(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Params=ei.Version=ei.ConnectionPaths=ei.ClientPaths=ei.Counterparty=ei.IdentifiedConnection=ei.ConnectionEnd=ei.stateToJSON=ei.stateFromJSON=ei.State=ei.protobufPackage=void 0;let ef=eo(30228),ep=eo(81457),em=eu(eo(83789));function stateFromJSON(en){switch(en){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return ea.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return ea.STATE_INIT;case 2:case"STATE_TRYOPEN":return ea.STATE_TRYOPEN;case 3:case"STATE_OPEN":return ea.STATE_OPEN;default:return ea.UNRECOGNIZED}}function stateToJSON(en){switch(en){case ea.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case ea.STATE_INIT:return"STATE_INIT";case ea.STATE_TRYOPEN:return"STATE_TRYOPEN";case ea.STATE_OPEN:return"STATE_OPEN";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBaseConnectionEnd(){return{clientId:"",versions:[],state:0,counterparty:void 0,delayPeriod:ep.Long.UZERO}}function createBaseIdentifiedConnection(){return{id:"",clientId:"",versions:[],state:0,counterparty:void 0,delayPeriod:ep.Long.UZERO}}function createBaseCounterparty(){return{clientId:"",connectionId:"",prefix:void 0}}function createBaseClientPaths(){return{paths:[]}}function createBaseConnectionPaths(){return{clientId:"",paths:[]}}function createBaseVersion(){return{identifier:"",features:[]}}function createBaseParams(){return{maxExpectedTimePerBlock:ep.Long.UZERO}}ei.protobufPackage="ibc.core.connection.v1",function(en){en[en.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",en[en.STATE_INIT=1]="STATE_INIT",en[en.STATE_TRYOPEN=2]="STATE_TRYOPEN",en[en.STATE_OPEN=3]="STATE_OPEN",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.State||(ei.State={})),ei.stateFromJSON=stateFromJSON,ei.stateToJSON=stateToJSON,ei.ConnectionEnd={encode(en,eo=em.Writer.create()){for(let ea of(""!==en.clientId&&eo.uint32(10).string(en.clientId),en.versions))ei.Version.encode(ea,eo.uint32(18).fork()).ldelim();return 0!==en.state&&eo.uint32(24).int32(en.state),void 0!==en.counterparty&&ei.Counterparty.encode(en.counterparty,eo.uint32(34).fork()).ldelim(),en.delayPeriod.isZero()||eo.uint32(40).uint64(en.delayPeriod),eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseConnectionEnd();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.clientId=ea.string();break;case 2:ed.versions.push(ei.Version.decode(ea,ea.uint32()));break;case 3:ed.state=ea.int32();break;case 4:ed.counterparty=ei.Counterparty.decode(ea,ea.uint32());break;case 5:ed.delayPeriod=ea.uint64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",versions:Array.isArray(en?.versions)?en.versions.map(en=>ei.Version.fromJSON(en)):[],state:(0,ep.isSet)(en.state)?stateFromJSON(en.state):0,counterparty:(0,ep.isSet)(en.counterparty)?ei.Counterparty.fromJSON(en.counterparty):void 0,delayPeriod:(0,ep.isSet)(en.delayPeriod)?ep.Long.fromValue(en.delayPeriod):ep.Long.UZERO}),toJSON(en){let eo={};return void 0!==en.clientId&&(eo.clientId=en.clientId),en.versions?eo.versions=en.versions.map(en=>en?ei.Version.toJSON(en):void 0):eo.versions=[],void 0!==en.state&&(eo.state=stateToJSON(en.state)),void 0!==en.counterparty&&(eo.counterparty=en.counterparty?ei.Counterparty.toJSON(en.counterparty):void 0),void 0!==en.delayPeriod&&(eo.delayPeriod=(en.delayPeriod||ep.Long.UZERO).toString()),eo},fromPartial(en){let eo=createBaseConnectionEnd();return eo.clientId=en.clientId??"",eo.versions=en.versions?.map(en=>ei.Version.fromPartial(en))||[],eo.state=en.state??0,eo.counterparty=void 0!==en.counterparty&&null!==en.counterparty?ei.Counterparty.fromPartial(en.counterparty):void 0,eo.delayPeriod=void 0!==en.delayPeriod&&null!==en.delayPeriod?ep.Long.fromValue(en.delayPeriod):ep.Long.UZERO,eo}},ei.IdentifiedConnection={encode(en,eo=em.Writer.create()){for(let ea of(""!==en.id&&eo.uint32(10).string(en.id),""!==en.clientId&&eo.uint32(18).string(en.clientId),en.versions))ei.Version.encode(ea,eo.uint32(26).fork()).ldelim();return 0!==en.state&&eo.uint32(32).int32(en.state),void 0!==en.counterparty&&ei.Counterparty.encode(en.counterparty,eo.uint32(42).fork()).ldelim(),en.delayPeriod.isZero()||eo.uint32(48).uint64(en.delayPeriod),eo},decode(en,eo){let ea=en instanceof em.Reader?en:new em.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseIdentifiedConnection();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.id=ea.string();break;case 2:ed.clientId=ea.string();break;case 3:ed.versions.push(ei.Version.decode(ea,ea.uint32()));break;case 4:ed.state=ea.int32();break;case 5:ed.counterparty=ei.Counterparty.decode(ea,ea.uint32());break;case 6:ed.delayPeriod=ea.uint64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({id:(0,ep.isSet)(en.id)?String(en.id):"",clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",versions:Array.isArray(en?.versions)?en.versions.map(en=>ei.Version.fromJSON(en)):[],state:(0,ep.isSet)(en.state)?stateFromJSON(en.state):0,counterparty:(0,ep.isSet)(en.counterparty)?ei.Counterparty.fromJSON(en.counterparty):void 0,delayPeriod:(0,ep.isSet)(en.delayPeriod)?ep.Long.fromValue(en.delayPeriod):ep.Long.UZERO}),toJSON(en){let eo={};return void 0!==en.id&&(eo.id=en.id),void 0!==en.clientId&&(eo.clientId=en.clientId),en.versions?eo.versions=en.versions.map(en=>en?ei.Version.toJSON(en):void 0):eo.versions=[],void 0!==en.state&&(eo.state=stateToJSON(en.state)),void 0!==en.counterparty&&(eo.counterparty=en.counterparty?ei.Counterparty.toJSON(en.counterparty):void 0),void 0!==en.delayPeriod&&(eo.delayPeriod=(en.delayPeriod||ep.Long.UZERO).toString()),eo},fromPartial(en){let eo=createBaseIdentifiedConnection();return eo.id=en.id??"",eo.clientId=en.clientId??"",eo.versions=en.versions?.map(en=>ei.Version.fromPartial(en))||[],eo.state=en.state??0,eo.counterparty=void 0!==en.counterparty&&null!==en.counterparty?ei.Counterparty.fromPartial(en.counterparty):void 0,eo.delayPeriod=void 0!==en.delayPeriod&&null!==en.delayPeriod?ep.Long.fromValue(en.delayPeriod):ep.Long.UZERO,eo}},ei.Counterparty={encode:(en,ei=em.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),""!==en.connectionId&&ei.uint32(18).string(en.connectionId),void 0!==en.prefix&&ef.MerklePrefix.encode(en.prefix,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCounterparty();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.connectionId=eo.string();break;case 3:es.prefix=ef.MerklePrefix.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",connectionId:(0,ep.isSet)(en.connectionId)?String(en.connectionId):"",prefix:(0,ep.isSet)(en.prefix)?ef.MerklePrefix.fromJSON(en.prefix):void 0}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.connectionId&&(ei.connectionId=en.connectionId),void 0!==en.prefix&&(ei.prefix=en.prefix?ef.MerklePrefix.toJSON(en.prefix):void 0),ei},fromPartial(en){let ei=createBaseCounterparty();return ei.clientId=en.clientId??"",ei.connectionId=en.connectionId??"",ei.prefix=void 0!==en.prefix&&null!==en.prefix?ef.MerklePrefix.fromPartial(en.prefix):void 0,ei}},ei.ClientPaths={encode(en,ei=em.Writer.create()){for(let eo of en.paths)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseClientPaths();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.paths.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({paths:Array.isArray(en?.paths)?en.paths.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.paths?ei.paths=en.paths.map(en=>en):ei.paths=[],ei},fromPartial(en){let ei=createBaseClientPaths();return ei.paths=en.paths?.map(en=>en)||[],ei}},ei.ConnectionPaths={encode(en,ei=em.Writer.create()){for(let eo of(""!==en.clientId&&ei.uint32(10).string(en.clientId),en.paths))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConnectionPaths();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.paths.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,ep.isSet)(en.clientId)?String(en.clientId):"",paths:Array.isArray(en?.paths)?en.paths.map(en=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),en.paths?ei.paths=en.paths.map(en=>en):ei.paths=[],ei},fromPartial(en){let ei=createBaseConnectionPaths();return ei.clientId=en.clientId??"",ei.paths=en.paths?.map(en=>en)||[],ei}},ei.Version={encode(en,ei=em.Writer.create()){for(let eo of(""!==en.identifier&&ei.uint32(10).string(en.identifier),en.features))ei.uint32(18).string(eo);return ei},decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseVersion();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.identifier=eo.string();break;case 2:es.features.push(eo.string());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({identifier:(0,ep.isSet)(en.identifier)?String(en.identifier):"",features:Array.isArray(en?.features)?en.features.map(e
4n=>String(en)):[]}),toJSON(en){let ei={};return void 0!==en.identifier&&(ei.identifier=en.identifier),en.features?ei.features=en.features.map(en=>en):ei.features=[],ei},fromPartial(en){let ei=createBaseVersion();return ei.identifier=en.identifier??"",ei.features=en.features?.map(en=>en)||[],ei}},ei.Params={encode:(en,ei=em.Writer.create())=>(en.maxExpectedTimePerBlock.isZero()||ei.uint32(8).uint64(en.maxExpectedTimePerBlock),ei),decode(en,ei){let eo=en instanceof em.Reader?en:new em.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseParams();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.maxExpectedTimePerBlock=eo.uint64():eo.skipType(7&en)}return es},fromJSON:en=>({maxExpectedTimePerBlock:(0,ep.isSet)(en.maxExpectedTimePerBlock)?ep.Long.fromValue(en.maxExpectedTimePerBlock):ep.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.maxExpectedTimePerBlock&&(ei.maxExpectedTimePerBlock=(en.maxExpectedTimePerBlock||ep.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseParams();return ei.maxExpectedTimePerBlock=void 0!==en.maxExpectedTimePerBlock&&null!==en.maxExpectedTimePerBlock?ep.Long.fromValue(en.maxExpectedTimePerBlock):ep.Long.UZERO,ei}}},72329:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.QueryClientImpl=ei.QueryConnectionParamsResponse=ei.QueryConnectionParamsRequest=ei.QueryConnectionConsensusStateResponse=ei.QueryConnectionConsensusStateRequest=ei.QueryConnectionClientStateResponse=ei.QueryConnectionClientStateRequest=ei.QueryClientConnectionsResponse=ei.QueryClientConnectionsRequest=ei.QueryConnectionsResponse=ei.QueryConnectionsRequest=ei.QueryConnectionResponse=ei.QueryConnectionRequest=ei.protobufPackage=void 0;let eu=eo(79551),ef=eo(65698),ep=eo(75022),em=eo(53862),eg=eo(81457),ey=ed(eo(83789));function createBaseQueryConnectionRequest(){return{connectionId:""}}function createBaseQueryConnectionResponse(){return{connection:void 0,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryConnectionsRequest(){return{pagination:void 0}}function createBaseQueryConnectionsResponse(){return{connections:[],pagination:void 0,height:void 0}}function createBaseQueryClientConnectionsRequest(){return{clientId:""}}function createBaseQueryClientConnectionsResponse(){return{connectionPaths:[],proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryConnectionClientStateRequest(){return{connectionId:""}}function createBaseQueryConnectionClientStateResponse(){return{identifiedClientState:void 0,proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryConnectionConsensusStateRequest(){return{connectionId:"",revisionNumber:eg.Long.UZERO,revisionHeight:eg.Long.UZERO}}function createBaseQueryConnectionConsensusStateResponse(){return{consensusState:void 0,clientId:"",proof:new Uint8Array,proofHeight:void 0}}function createBaseQueryConnectionParamsRequest(){return{}}function createBaseQueryConnectionParamsResponse(){return{params:void 0}}ei.protobufPackage="ibc.core.connection.v1",ei.QueryConnectionRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.connectionId&&ei.uint32(10).string(en.connectionId),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.connectionId=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({connectionId:(0,eg.isSet)(en.connectionId)?String(en.connectionId):""}),toJSON(en){let ei={};return void 0!==en.connectionId&&(ei.connectionId=en.connectionId),ei},fromPartial(en){let ei=createBaseQueryConnectionRequest();return ei.connectionId=en.connectionId??"",ei}},ei.QueryConnectionResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.connection&&ef.ConnectionEnd.encode(en.connection,ei.uint32(10).fork()).ldelim(),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.connection=ef.ConnectionEnd.decode(eo,eo.uint32());break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({connection:(0,eg.isSet)(en.connection)?ef.ConnectionEnd.fromJSON(en.connection):void 0,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.connection&&(ei.connection=en.connection?ef.ConnectionEnd.toJSON(en.connection):void 0),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionResponse();return ei.connection=void 0!==en.connection&&null!==en.connection?ef.ConnectionEnd.fromPartial(en.connection):void 0,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryConnectionsRequest={encode:(en,ei=ey.Writer.create())=>(void 0!==en.pagination&&eu.PageRequest.encode(en.pagination,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pagination=eu.PageRequest.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({pagination:(0,eg.isSet)(en.pagination)?eu.PageRequest.fromJSON(en.pagination):void 0}),toJSON(en){let ei={};return void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageRequest.toJSON(en.pagination):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionsRequest();return ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageRequest.fromPartial(en.pagination):void 0,ei}},ei.QueryConnectionsResponse={encode(en,ei=ey.Writer.create()){for(let eo of en.connections)ef.IdentifiedConnection.encode(eo,ei.uint32(10).fork()).ldelim();return void 0!==en.pagination&&eu.PageResponse.encode(en.pagination,ei.uint32(18).fork()).ldelim(),void 0!==en.height&&ep.Height.encode(en.height,ei.uint32(26).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.connections.push(ef.IdentifiedConnection.decode(eo,eo.uint32()));break;case 2:es.pagination=eu.PageResponse.decode(eo,eo.uint32());break;case 3:es.height=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({connections:Array.isArray(en?.connections)?en.connections.map(en=>ef.IdentifiedConnection.fromJSON(en)):[],pagination:(0,eg.isSet)(en.pagination)?eu.PageResponse.fromJSON(en.pagination):void 0,height:(0,eg.isSet)(en.height)?ep.Height.fromJSON(en.height):void 0}),toJSON(en){let ei={};
4return en.connections?ei.connections=en.connections.map(en=>en?ef.IdentifiedConnection.toJSON(en):void 0):ei.connections=[],void 0!==en.pagination&&(ei.pagination=en.pagination?eu.PageResponse.toJSON(en.pagination):void 0),void 0!==en.height&&(ei.height=en.height?ep.Height.toJSON(en.height):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionsResponse();return ei.connections=en.connections?.map(en=>ef.IdentifiedConnection.fromPartial(en))||[],ei.pagination=void 0!==en.pagination&&null!==en.pagination?eu.PageResponse.fromPartial(en.pagination):void 0,ei.height=void 0!==en.height&&null!==en.height?ep.Height.fromPartial(en.height):void 0,ei}},ei.QueryClientConnectionsRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientConnectionsRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.clientId=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({clientId:(0,eg.isSet)(en.clientId)?String(en.clientId):""}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),ei},fromPartial(en){let ei=createBaseQueryClientConnectionsRequest();return ei.clientId=en.clientId??"",ei}},ei.QueryClientConnectionsResponse={encode(en,ei=ey.Writer.create()){for(let eo of en.connectionPaths)ei.uint32(10).string(eo);return 0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryClientConnectionsResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.connectionPaths.push(eo.string());break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({connectionPaths:Array.isArray(en?.connectionPaths)?en.connectionPaths.map(en=>String(en)):[],proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return en.connectionPaths?ei.connectionPaths=en.connectionPaths.map(en=>en):ei.connectionPaths=[],void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryClientConnectionsResponse();return ei.connectionPaths=en.connectionPaths?.map(en=>en)||[],ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryConnectionClientStateRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.connectionId&&ei.uint32(10).string(en.connectionId),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionClientStateRequest();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.connectionId=eo.string():eo.skipType(7&en)}return es},fromJSON:en=>({connectionId:(0,eg.isSet)(en.connectionId)?String(en.connectionId):""}),toJSON(en){let ei={};return void 0!==en.connectionId&&(ei.connectionId=en.connectionId),ei},fromPartial(en){let ei=createBaseQueryConnectionClientStateRequest();return ei.connectionId=en.connectionId??"",ei}},ei.QueryConnectionClientStateResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.identifiedClientState&&ep.IdentifiedClientState.encode(en.identifiedClientState,ei.uint32(10).fork()).ldelim(),0!==en.proof.length&&ei.uint32(18).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionClientStateResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.identifiedClientState=ep.IdentifiedClientState.decode(eo,eo.uint32());break;case 2:es.proof=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({identifiedClientState:(0,eg.isSet)(en.identifiedClientState)?ep.IdentifiedClientState.fromJSON(en.identifiedClientState):void 0,proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.identifiedClientState&&(ei.identifiedClientState=en.identifiedClientState?ep.IdentifiedClientState.toJSON(en.identifiedClientState):void 0),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionClientStateResponse();return ei.identifiedClientState=void 0!==en.identifiedClientState&&null!==en.identifiedClientState?ep.IdentifiedClientState.fromPartial(en.identifiedClientState):void 0,ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryConnectionConsensusStateRequest={encode:(en,ei=ey.Writer.create())=>(""!==en.connectionId&&ei.uint32(10).string(en.connectionId),en.revisionNumber.isZero()||ei.uint32(16).uint64(en.revisionNumber),en.revisionHeight.isZero()||ei.uint32(24).uint64(en.revisionHeight),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionConsensusStateRequest();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.connectionId=eo.string();break;case 2:es.revisionNumber=eo.uint64();break;case 3:es.revisionHeight=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({connectionId:(0,eg.isSet)(en.connectionId)?String(en.connectionId):"",revisionNumber:(0,eg.isSet)(en.revisionNumber)?eg.Long.fromValue(en.revisionNumber):eg.L
4ong.UZERO,revisionHeight:(0,eg.isSet)(en.revisionHeight)?eg.Long.fromValue(en.revisionHeight):eg.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.connectionId&&(ei.connectionId=en.connectionId),void 0!==en.revisionNumber&&(ei.revisionNumber=(en.revisionNumber||eg.Long.UZERO).toString()),void 0!==en.revisionHeight&&(ei.revisionHeight=(en.revisionHeight||eg.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseQueryConnectionConsensusStateRequest();return ei.connectionId=en.connectionId??"",ei.revisionNumber=void 0!==en.revisionNumber&&null!==en.revisionNumber?eg.Long.fromValue(en.revisionNumber):eg.Long.UZERO,ei.revisionHeight=void 0!==en.revisionHeight&&null!==en.revisionHeight?eg.Long.fromValue(en.revisionHeight):eg.Long.UZERO,ei}},ei.QueryConnectionConsensusStateResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.consensusState&&em.Any.encode(en.consensusState,ei.uint32(10).fork()).ldelim(),""!==en.clientId&&ei.uint32(18).string(en.clientId),0!==en.proof.length&&ei.uint32(26).bytes(en.proof),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionConsensusStateResponse();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.consensusState=em.Any.decode(eo,eo.uint32());break;case 2:es.clientId=eo.string();break;case 3:es.proof=eo.bytes();break;case 4:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({consensusState:(0,eg.isSet)(en.consensusState)?em.Any.fromJSON(en.consensusState):void 0,clientId:(0,eg.isSet)(en.clientId)?String(en.clientId):"",proof:(0,eg.isSet)(en.proof)?(0,eg.bytesFromBase64)(en.proof):new Uint8Array,proofHeight:(0,eg.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0}),toJSON(en){let ei={};return void 0!==en.consensusState&&(ei.consensusState=en.consensusState?em.Any.toJSON(en.consensusState):void 0),void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.proof&&(ei.proof=(0,eg.base64FromBytes)(void 0!==en.proof?en.proof:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionConsensusStateResponse();return ei.consensusState=void 0!==en.consensusState&&null!==en.consensusState?em.Any.fromPartial(en.consensusState):void 0,ei.clientId=en.clientId??"",ei.proof=en.proof??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei}},ei.QueryConnectionParamsRequest={encode:(en,ei=ey.Writer.create())=>ei,decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionParamsRequest();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseQueryConnectionParamsRequest();return ei}},ei.QueryConnectionParamsResponse={encode:(en,ei=ey.Writer.create())=>(void 0!==en.params&&ep.Params.encode(en.params,ei.uint32(10).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ey.Reader?en:new ey.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseQueryConnectionParamsResponse();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.params=ep.Params.decode(eo,eo.uint32()):eo.skipType(7&en)}return es},fromJSON:en=>({params:(0,eg.isSet)(en.params)?ep.Params.fromJSON(en.params):void 0}),toJSON(en){let ei={};return void 0!==en.params&&(ei.params=en.params?ep.Params.toJSON(en.params):void 0),ei},fromPartial(en){let ei=createBaseQueryConnectionParamsResponse();return ei.params=void 0!==en.params&&null!==en.params?ep.Params.fromPartial(en.params):void 0,ei}};let QueryClientImpl=class QueryClientImpl{constructor(en){this.rpc=en,this.Connection=this.Connection.bind(this),this.Connections=this.Connections.bind(this),this.ClientConnections=this.ClientConnections.bind(this),this.ConnectionClientState=this.ConnectionClientState.bind(this),this.ConnectionConsensusState=this.ConnectionConsensusState.bind(this),this.ConnectionParams=this.ConnectionParams.bind(this)}Connection(en){let eo=ei.QueryConnectionRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Query","Connection",eo);return ea.then(en=>ei.QueryConnectionResponse.decode(new ey.Reader(en)))}Connections(en={pagination:void 0}){let eo=ei.QueryConnectionsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Query","Connections",eo);return ea.then(en=>ei.QueryConnectionsResponse.decode(new ey.Reader(en)))}ClientConnections(en){let eo=ei.QueryClientConnectionsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Query","ClientConnections",eo);return ea.then(en=>ei.QueryClientConnectionsResponse.decode(new ey.Reader(en)))}ConnectionClientState(en){let eo=ei.QueryConnectionClientStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Query","ConnectionClientState",eo);return ea.then(en=>ei.QueryConnectionClientStateResponse.decode(new ey.Reader(en)))}ConnectionConsensusState(en){let eo=ei.QueryConnectionConsensusStateRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Query","ConnectionConsensusState",eo);return ea.then(en=>ei.QueryConnectionConsensusStateResponse.decode(new ey.Reader(en)))}ConnectionParams(en={}){let eo=ei.QueryConnectionParamsRequest.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Query","ConnectionParams",eo);return ea.then(en=>ei.QueryConnectionParamsResponse.decode(new ey.Reader(en)))}};ei.QueryClientImpl=QueryClientImpl},74848:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.MsgClientImpl=ei.MsgConnectionOpenConfirmResponse=ei.MsgConnectionOpenConfirm=ei.MsgConnectionOpenAckResponse=ei.MsgConnectionOpenAck=ei.MsgConnectionOpenTryResponse=ei.MsgConnectionOpenTry=ei.MsgConnectionOpenInitResponse=ei.MsgConnectionOpenInit=ei.protobufPackage=void 0;let eu=eo(65698),ef=eo(53862),ep=eo(75022),em=eo(81457),eg=ed(eo(83789));function createBaseMsgConnectionOpenInit(){return{clientId:"",counterparty:void 0,version:void 0,delayPeriod:em.Long.UZERO,signer:""}}function createBaseMsgConnectionOpenInitResponse(){return{}}function createBaseMsgConnectionOpenTry(){return{clientId:"",previousConnectionId:"",clientState:void 0,counterparty:void 0,delayPeriod:em.Long.UZERO,counterpartyVersions:[],proofHeight:void 0,proofInit:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:void 0,signer:"",hostConsensusStateProof:new Uint8Array}}function createBaseMsgConnectionOpenTryResponse(){return{}}function createBaseMsgConnectionOpenAck(){return{connectionId:"",counterpartyConnectionId:"",version:void 0,clientState:void 0,proofHeight:void 0,proofTry:new Uint8Array,proofClient:new Uint8Array,proofConsensus:new Uint8Array,consensusHeight:void 0,signer:"",hostConsensusStateProof:new Uint8Array}}function createBaseMsgConnectionOpenAckResponse(){return{}}function createBaseMsgConnectionOpenConfirm(){return{connectionId:"",proofAck:new Uint8Array,proofHeight:void 0,signer:""}}function createBaseMsgConnectionOpenConfirmResponse(){return{}}
4ei.protobufPackage="ibc.core.connection.v1",ei.MsgConnectionOpenInit={encode:(en,ei=eg.Writer.create())=>(""!==en.clientId&&ei.uint32(10).string(en.clientId),void 0!==en.counterparty&&eu.Counterparty.encode(en.counterparty,ei.uint32(18).fork()).ldelim(),void 0!==en.version&&eu.Version.encode(en.version,ei.uint32(26).fork()).ldelim(),en.delayPeriod.isZero()||ei.uint32(32).uint64(en.delayPeriod),""!==en.signer&&ei.uint32(42).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenInit();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.counterparty=eu.Counterparty.decode(eo,eo.uint32());break;case 3:es.version=eu.Version.decode(eo,eo.uint32());break;case 4:es.delayPeriod=eo.uint64();break;case 5:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,em.isSet)(en.clientId)?String(en.clientId):"",counterparty:(0,em.isSet)(en.counterparty)?eu.Counterparty.fromJSON(en.counterparty):void 0,version:(0,em.isSet)(en.version)?eu.Version.fromJSON(en.version):void 0,delayPeriod:(0,em.isSet)(en.delayPeriod)?em.Long.fromValue(en.delayPeriod):em.Long.UZERO,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.counterparty&&(ei.counterparty=en.counterparty?eu.Counterparty.toJSON(en.counterparty):void 0),void 0!==en.version&&(ei.version=en.version?eu.Version.toJSON(en.version):void 0),void 0!==en.delayPeriod&&(ei.delayPeriod=(en.delayPeriod||em.Long.UZERO).toString()),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgConnectionOpenInit();return ei.clientId=en.clientId??"",ei.counterparty=void 0!==en.counterparty&&null!==en.counterparty?eu.Counterparty.fromPartial(en.counterparty):void 0,ei.version=void 0!==en.version&&null!==en.version?eu.Version.fromPartial(en.version):void 0,ei.delayPeriod=void 0!==en.delayPeriod&&null!==en.delayPeriod?em.Long.fromValue(en.delayPeriod):em.Long.UZERO,ei.signer=en.signer??"",ei}},ei.MsgConnectionOpenInitResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenInitResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgConnectionOpenInitResponse();return ei}},ei.MsgConnectionOpenTry={encode(en,ei=eg.Writer.create()){for(let eo of(""!==en.clientId&&ei.uint32(10).string(en.clientId),""!==en.previousConnectionId&&ei.uint32(18).string(en.previousConnectionId),void 0!==en.clientState&&ef.Any.encode(en.clientState,ei.uint32(26).fork()).ldelim(),void 0!==en.counterparty&&eu.Counterparty.encode(en.counterparty,ei.uint32(34).fork()).ldelim(),en.delayPeriod.isZero()||ei.uint32(40).uint64(en.delayPeriod),en.counterpartyVersions))eu.Version.encode(eo,ei.uint32(50).fork()).ldelim();return void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(58).fork()).ldelim(),0!==en.proofInit.length&&ei.uint32(66).bytes(en.proofInit),0!==en.proofClient.length&&ei.uint32(74).bytes(en.proofClient),0!==en.proofConsensus.length&&ei.uint32(82).bytes(en.proofConsensus),void 0!==en.consensusHeight&&ep.Height.encode(en.consensusHeight,ei.uint32(90).fork()).ldelim(),""!==en.signer&&ei.uint32(98).string(en.signer),0!==en.hostConsensusStateProof.length&&ei.uint32(106).bytes(en.hostConsensusStateProof),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenTry();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.clientId=eo.string();break;case 2:es.previousConnectionId=eo.string();break;case 3:es.clientState=ef.Any.decode(eo,eo.uint32());break;case 4:es.counterparty=eu.Counterparty.decode(eo,eo.uint32());break;case 5:es.delayPeriod=eo.uint64();break;case 6:es.counterpartyVersions.push(eu.Version.decode(eo,eo.uint32()));break;case 7:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 8:es.proofInit=eo.bytes();break;case 9:es.proofClient=eo.bytes();break;case 10:es.proofConsensus=eo.bytes();break;case 11:es.consensusHeight=ep.Height.decode(eo,eo.uint32());break;case 12:es.signer=eo.string();break;case 13:es.hostConsensusStateProof=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({clientId:(0,em.isSet)(en.clientId)?String(en.clientId):"",previousConnectionId:(0,em.isSet)(en.previousConnectionId)?String(en.previousConnectionId):"",clientState:(0,em.isSet)(en.clientState)?ef.Any.fromJSON(en.clientState):void 0,counterparty:(0,em.isSet)(en.counterparty)?eu.Counterparty.fromJSON(en.counterparty):void 0,delayPeriod:(0,em.isSet)(en.delayPeriod)?em.Long.fromValue(en.delayPeriod):em.Long.UZERO,counterpartyVersions:Array.isArray(en?.counterpartyVersions)?en.counterpartyVersions.map(en=>eu.Version.fromJSON(en)):[],proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,proofInit:(0,em.isSet)(en.proofInit)?(0,em.bytesFromBase64)(en.proofInit):new Uint8Array,proofClient:(0,em.isSet)(en.proofClient)?(0,em.bytesFromBase64)(en.proofClient):new Uint8Array,proofConsensus:(0,em.isSet)(en.proofConsensus)?(0,em.bytesFromBase64)(en.proofConsensus):new Uint8Array,consensusHeight:(0,em.isSet)(en.consensusHeight)?ep.Height.fromJSON(en.consensusHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):"",hostConsensusStateProof:(0,em.isSet)(en.hostConsensusStateProof)?(0,em.bytesFromBase64)(en.hostConsensusStateProof):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.clientId&&(ei.clientId=en.clientId),void 0!==en.previousConnectionId&&(ei.previousConnectionId=en.previousConnectionId),void 0!==en.clientState&&(ei.clientState=en.clientState?ef.Any.toJSON(en.clientState):void 0),void 0!==en.counterparty&&(ei.counterparty=en.counterparty?eu.Counterparty.toJSON(en.counterparty):void 0),void 0!==en.delayPeriod&&(ei.delayPeriod=(en.delayPeriod||em.Long.UZERO).toString()),en.counterpartyVersions?ei.c
4ounterpartyVersions=en.counterpartyVersions.map(en=>en?eu.Version.toJSON(en):void 0):ei.counterpartyVersions=[],void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.proofInit&&(ei.proofInit=(0,em.base64FromBytes)(void 0!==en.proofInit?en.proofInit:new Uint8Array)),void 0!==en.proofClient&&(ei.proofClient=(0,em.base64FromBytes)(void 0!==en.proofClient?en.proofClient:new Uint8Array)),void 0!==en.proofConsensus&&(ei.proofConsensus=(0,em.base64FromBytes)(void 0!==en.proofConsensus?en.proofConsensus:new Uint8Array)),void 0!==en.consensusHeight&&(ei.consensusHeight=en.consensusHeight?ep.Height.toJSON(en.consensusHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),void 0!==en.hostConsensusStateProof&&(ei.hostConsensusStateProof=(0,em.base64FromBytes)(void 0!==en.hostConsensusStateProof?en.hostConsensusStateProof:new Uint8Array)),ei},fromPartial(en){let ei=createBaseMsgConnectionOpenTry();return ei.clientId=en.clientId??"",ei.previousConnectionId=en.previousConnectionId??"",ei.clientState=void 0!==en.clientState&&null!==en.clientState?ef.Any.fromPartial(en.clientState):void 0,ei.counterparty=void 0!==en.counterparty&&null!==en.counterparty?eu.Counterparty.fromPartial(en.counterparty):void 0,ei.delayPeriod=void 0!==en.delayPeriod&&null!==en.delayPeriod?em.Long.fromValue(en.delayPeriod):em.Long.UZERO,ei.counterpartyVersions=en.counterpartyVersions?.map(en=>eu.Version.fromPartial(en))||[],ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.proofInit=en.proofInit??new Uint8Array,ei.proofClient=en.proofClient??new Uint8Array,ei.proofConsensus=en.proofConsensus??new Uint8Array,ei.consensusHeight=void 0!==en.consensusHeight&&null!==en.consensusHeight?ep.Height.fromPartial(en.consensusHeight):void 0,ei.signer=en.signer??"",ei.hostConsensusStateProof=en.hostConsensusStateProof??new Uint8Array,ei}},ei.MsgConnectionOpenTryResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenTryResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgConnectionOpenTryResponse();return ei}},ei.MsgConnectionOpenAck={encode:(en,ei=eg.Writer.create())=>(""!==en.connectionId&&ei.uint32(10).string(en.connectionId),""!==en.counterpartyConnectionId&&ei.uint32(18).string(en.counterpartyConnectionId),void 0!==en.version&&eu.Version.encode(en.version,ei.uint32(26).fork()).ldelim(),void 0!==en.clientState&&ef.Any.encode(en.clientState,ei.uint32(34).fork()).ldelim(),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(42).fork()).ldelim(),0!==en.proofTry.length&&ei.uint32(50).bytes(en.proofTry),0!==en.proofClient.length&&ei.uint32(58).bytes(en.proofClient),0!==en.proofConsensus.length&&ei.uint32(66).bytes(en.proofConsensus),void 0!==en.consensusHeight&&ep.Height.encode(en.consensusHeight,ei.uint32(74).fork()).ldelim(),""!==en.signer&&ei.uint32(82).string(en.signer),0!==en.hostConsensusStateProof.length&&ei.uint32(90).bytes(en.hostConsensusStateProof),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenAck();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.connectionId=eo.string();break;case 2:es.counterpartyConnectionId=eo.string();break;case 3:es.version=eu.Version.decode(eo,eo.uint32());break;case 4:es.clientState=ef.Any.decode(eo,eo.uint32());break;case 5:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 6:es.proofTry=eo.bytes();break;case 7:es.proofClient=eo.bytes();break;case 8:es.proofConsensus=eo.bytes();break;case 9:es.consensusHeight=ep.Height.decode(eo,eo.uint32());break;case 10:es.signer=eo.string();break;case 11:es.hostConsensusStateProof=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({connectionId:(0,em.isSet)(en.connectionId)?String(en.connectionId):"",counterpartyConnectionId:(0,em.isSet)(en.counterpartyConnectionId)?String(en.counterpartyConnectionId):"",version:(0,em.isSet)(en.version)?eu.Version.fromJSON(en.version):void 0,clientState:(0,em.isSet)(en.clientState)?ef.Any.fromJSON(en.clientState):void 0,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,proofTry:(0,em.isSet)(en.proofTry
4)?(0,em.bytesFromBase64)(en.proofTry):new Uint8Array,proofClient:(0,em.isSet)(en.proofClient)?(0,em.bytesFromBase64)(en.proofClient):new Uint8Array,proofConsensus:(0,em.isSet)(en.proofConsensus)?(0,em.bytesFromBase64)(en.proofConsensus):new Uint8Array,consensusHeight:(0,em.isSet)(en.consensusHeight)?ep.Height.fromJSON(en.consensusHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):"",hostConsensusStateProof:(0,em.isSet)(en.hostConsensusStateProof)?(0,em.bytesFromBase64)(en.hostConsensusStateProof):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.connectionId&&(ei.connectionId=en.connectionId),void 0!==en.counterpartyConnectionId&&(ei.counterpartyConnectionId=en.counterpartyConnectionId),void 0!==en.version&&(ei.version=en.version?eu.Version.toJSON(en.version):void 0),void 0!==en.clientState&&(ei.clientState=en.clientState?ef.Any.toJSON(en.clientState):void 0),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.proofTry&&(ei.proofTry=(0,em.base64FromBytes)(void 0!==en.proofTry?en.proofTry:new Uint8Array)),void 0!==en.proofClient&&(ei.proofClient=(0,em.base64FromBytes)(void 0!==en.proofClient?en.proofClient:new Uint8Array)),void 0!==en.proofConsensus&&(ei.proofConsensus=(0,em.base64FromBytes)(void 0!==en.proofConsensus?en.proofConsensus:new Uint8Array)),void 0!==en.consensusHeight&&(ei.consensusHeight=en.consensusHeight?ep.Height.toJSON(en.consensusHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),void 0!==en.hostConsensusStateProof&&(ei.hostConsensusStateProof=(0,em.base64FromBytes)(void 0!==en.hostConsensusStateProof?en.hostConsensusStateProof:new Uint8Array)),ei},fromPartial(en){let ei=createBaseMsgConnectionOpenAck();return ei.connectionId=en.connectionId??"",ei.counterpartyConnectionId=en.counterpartyConnectionId??"",ei.version=void 0!==en.version&&null!==en.version?eu.Version.fromPartial(en.version):void 0,ei.clientState=void 0!==en.clientState&&null!==en.clientState?ef.Any.fromPartial(en.clientState):void 0,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.proofTry=en.proofTry??new Uint8Array,ei.proofClient=en.proofClient??new Uint8Array,ei.proofConsensus=en.proofConsensus??new Uint8Array,ei.consensusHeight=void 0!==en.consensusHeight&&null!==en.consensusHeight?ep.Height.fromPartial(en.consensusHeight):void 0,ei.signer=en.signer??"",ei.hostConsensusStateProof=en.hostConsensusStateProof??new Uint8Array,ei}},ei.MsgConnectionOpenAckResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenAckResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgConnectionOpenAckResponse();return ei}},ei.MsgConnectionOpenConfirm={encode:(en,ei=eg.Writer.create())=>(""!==en.connectionId&&ei.uint32(10).string(en.connectionId),0!==en.proofAck.length&&ei.uint32(18).bytes(en.proofAck),void 0!==en.proofHeight&&ep.Height.encode(en.proofHeight,ei.uint32(26).fork()).ldelim(),""!==en.signer&&ei.uint32(34).string(en.signer),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenConfirm();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.connectionId=eo.string();break;case 2:es.proofAck=eo.bytes();break;case 3:es.proofHeight=ep.Height.decode(eo,eo.uint32());break;case 4:es.signer=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({connectionId:(0,em.isSet)(en.connectionId)?String(en.connectionId):"",proofAck:(0,em.isSet)(en.proofAck)?(0,em.bytesFromBase64)(en.proofAck):new Uint8Array,proofHeight:(0,em.isSet)(en.proofHeight)?ep.Height.fromJSON(en.proofHeight):void 0,signer:(0,em.isSet)(en.signer)?String(en.signer):""}),toJSON(en){let ei={};return void 0!==en.connectionId&&(ei.connectionId=en.connectionId),void 0!==en.proofAck&&(ei.proofAck=(0,em.base64FromBytes)(void 0!==en.proofAck?en.proofAck:new Uint8Array)),void 0!==en.proofHeight&&(ei.proofHeight=en.proofHeight?ep.Height.toJSON(en.proofHeight):void 0),void 0!==en.signer&&(ei.signer=en.signer),ei},fromPartial(en){let ei=createBaseMsgConnectionOpenConfirm();
4return ei.connectionId=en.connectionId??"",ei.proofAck=en.proofAck??new Uint8Array,ei.proofHeight=void 0!==en.proofHeight&&null!==en.proofHeight?ep.Height.fromPartial(en.proofHeight):void 0,ei.signer=en.signer??"",ei}},ei.MsgConnectionOpenConfirmResponse={encode:(en,ei=eg.Writer.create())=>ei,decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseMsgConnectionOpenConfirmResponse();for(;eo.pos<ea;){let en=eo.uint32();eo.skipType(7&en)}return es},fromJSON:en=>({}),toJSON(en){let ei={};return ei},fromPartial(en){let ei=createBaseMsgConnectionOpenConfirmResponse();return ei}};let MsgClientImpl=class MsgClientImpl{constructor(en){this.rpc=en,this.ConnectionOpenInit=this.ConnectionOpenInit.bind(this),this.ConnectionOpenTry=this.ConnectionOpenTry.bind(this),this.ConnectionOpenAck=this.ConnectionOpenAck.bind(this),this.ConnectionOpenConfirm=this.ConnectionOpenConfirm.bind(this)}ConnectionOpenInit(en){let eo=ei.MsgConnectionOpenInit.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",eo);return ea.then(en=>ei.MsgConnectionOpenInitResponse.decode(new eg.Reader(en)))}ConnectionOpenTry(en){let eo=ei.MsgConnectionOpenTry.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",eo);return ea.then(en=>ei.MsgConnectionOpenTryResponse.decode(new eg.Reader(en)))}ConnectionOpenAck(en){let eo=ei.MsgConnectionOpenAck.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",eo);return ea.then(en=>ei.MsgConnectionOpenAckResponse.decode(new eg.Reader(en)))}ConnectionOpenConfirm(en){let eo=ei.MsgConnectionOpenConfirm.encode(en).finish(),ea=this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",eo);return ea.then(en=>ei.MsgConnectionOpenConfirmResponse.decode(new eg.Reader(en)))}};ei.MsgClientImpl=MsgClientImpl},11234:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Fraction=ei.Header=ei.Misbehaviour=ei.ConsensusState=ei.ClientState=ei.protobufPackage=void 0;let eu=eo(70281),ef=eo(75022),ep=eo(88590),em=eo(85522),eg=eo(30228),ey=eo(31258),eb=eo(23444),eS=eo(81457),e_=ed(eo(83789));function createBaseClientState(){return{chainId:"",trustLevel:void 0,trustingPeriod:void 0,unbondingPerio
4d:void 0,maxClockDrift:void 0,frozenHeight:void 0,latestHeight:void 0,proofSpecs:[],upgradePath:[],allowUpdateAfterExpiry:!1,allowUpdateAfterMisbehaviour:!1}}function createBaseConsensusState(){return{timestamp:void 0,root:void 0,nextValidatorsHash:new Uint8Array}}function createBaseMisbehaviour(){return{clientId:"",header1:void 0,header2:void 0}}function createBaseHeader(){return{signedHeader:void 0,validatorSet:void 0,trustedHeight:void 0,trustedValidators:void 0}}function createBaseFraction(){return{numerator:eS.Long.UZERO,denominator:eS.Long.UZERO}}ei.protobufPackage="ibc.lightclients.tendermint.v1",ei.ClientState={encode(en,eo=e_.Writer.create()){for(let ea of(""!==en.chainId&&eo.uint32(10).string(en.chainId),void 0!==en.trustLevel&&ei.Fraction.encode(en.trustLevel,eo.uint32(18).fork()).ldelim(),void 0!==en.trustingPeriod&&eu.Duration.encode(en.trustingPeriod,eo.uint32(26).fork()).ldelim(),void 0!==en.unbondingPeriod&&eu.Duration.encode(en.unbondingPeriod,eo.uint32(34).fork()).ldelim(),void 0!==en.maxClockDrift&&eu.Duration.encode(en.maxClockDrift,eo.uint32(42).fork()).ldelim(),void 0!==en.frozenHeight&&ef.Height.encode(en.frozenHeight,eo.uint32(50).fork()).ldelim(),void 0!==en.latestHeight&&ef.Height.encode(en.latestHeight,eo.uint32(58).fork()).ldelim(),en.proofSpecs))ep.ProofSpec.encode(ea,eo.uint32(66).fork()).ldelim();for(let ei of en.upgradePath)eo.uint32(74).string(ei);return!0===en.allowUpdateAfterExpiry&&eo.uint32(80).bool(en.allowUpdateAfterExpiry),!0===en.allowUpdateAfterMisbehaviour&&eo.uint32(88).bool(en.allowUpdateAfterMisbehaviour),eo},decode(en,eo){let ea=en instanceof e_.Reader?en:new e_.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseClientState();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.chainId=ea.string();break;case 2:ed.trustLevel=ei.Fraction.decode(ea,ea.uint32());break;case 3:ed.trustingPeriod=eu.Duration.decode(ea,ea.uint32());break;
4case 4:ed.unbondingPeriod=eu.Duration.decode(ea,ea.uint32());break;case 5:ed.maxClockDrift=eu.Duration.decode(ea,ea.uint32());break;case 6:ed.frozenHeight=ef.Height.decode(ea,ea.uint32());break;case 7:ed.latestHeight=ef.Height.decode(ea,ea.uint32());break;case 8:ed.proofSpecs.push(ep.ProofSpec.decode(ea,ea.uint32()));break;case 9:ed.upgradePath.push(ea.string());break;case 10:ed.allowUpdateAfterExpiry=ea.bool();break;case 11:ed.allowUpdateAfterMisbehaviour=ea.bool();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({chainId:(0,eS.isSet)(en.chainId)?String(en.chainId):"",trustLevel:(0,eS.isSet)(en.trustLevel)?ei.Fraction.fromJSON(en.trustLevel):void 0,trustingPeriod:(0,eS.isSet)(en.trustingPeriod)?eu.Duration.fromJSON(en.trustingPeriod):void 0,unbondingPeriod:(0,eS.isSet)(en.unbondingPeriod)?eu.Duration.fromJSON(en.unbondingPeriod):void 0,maxClockDrift:(0,eS.isSet)(en.maxClockDrift)?eu.Duration.fromJSON(en.maxClockDrift):void 0,frozenHeight:(0,eS.isSet)(en.frozenHeight)?ef.Height.fromJSON(en.frozenHeight):void 0,latestHeight:(0,eS.isSet)(en.latestHeight)?ef.Height.fromJSON(en.latestHeight):void 0,proofSpecs:Array.isArray(en?.proofSpecs)?en.proofSpecs.map(en=>ep.ProofSpec.fromJSON(en)):[],upgradePath:Array.isArray(en?.upgradePath)?en.upgradePath.map(en=>String(en)):[],allowUpdateAfterExpiry:!!(0,eS.isSet)(en.allowUpdateAfterExpiry)&&!!en.allowUpdateAfterExpiry,allowUpdateAfterMisbehaviour:!!(0,eS.isSet)(en.allowUpdateAfterMisbehaviour)&&!!en.allowUpdateAfterMisbehaviour}),toJSON(en){let eo={};return void 0!==en.chainId&&(eo.chainId=en.chainId),void 0!==en.trustLevel&&(eo.trustLevel=en.trustLevel?ei.Fraction.toJSON(en.trustLevel):void 0),void 0!==en.trustingPeriod&&(eo.trustingPeriod=en.trustingPeriod?eu.Duration.toJSON(en.trustingPeriod):void 0),void 0!==en.unbondingPerio
4d&&(eo.unbondingPeriod=en.unbondingPeriod?eu.Duration.toJSON(en.unbondingPeriod):void 0),void 0!==en.maxClockDrift&&(eo.maxClockDrift=en.maxClockDrift?eu.Duration.toJSON(en.maxClockDrift):void 0),void 0!==en.frozenHeight&&(eo.frozenHeight=en.frozenHeight?ef.Height.toJSON(en.frozenHeight):void 0),void 0!==en.latestHeight&&(eo.latestHeight=en.latestHeight?ef.Height.toJSON(en.latestHeight):void 0),en.proofSpecs?eo.proofSpecs=en.proofSpecs.map(en=>en?ep.ProofSpec.toJSON(en):void 0):eo.proofSpecs=[],en.upgradePath?eo.upgradePath=en.upgradePath.map(en=>en):eo.upgradePath=[],void 0!==en.allowUpdateAfterExpiry&&(eo.allowUpdateAfterExpiry=en.allowUpdateAfterExpiry),void 0!==en.allowUpdateAfterMisbehaviour&&(eo.allowUpdateAfterMisbehaviour=en.allowUpdateAfterMisbehaviour),eo},fromPartial(en){let eo=createBaseClientState();return eo.chainId=en.chainId??"",eo.trustLevel=void 0!==en.trustLevel&&null!==en.trustLevel?ei.Fraction.fromPartial(en.trustLevel):void 0,eo.trustingPeriod=void 0!==en.trustingPeriod&&null!==en.trustingPeriod?eu.Duration.fromPartial(en.trustingPeriod):void 0,eo.unbondingPerio
4d=void 0!==en.unbondingPeriod&&null!==en.unbondingPeriod?eu.Duration.fromPartial(en.unbondingPeriod):void 0,eo.maxClockDrift=void 0!==en.maxClockDrift&&null!==en.maxClockDrift?eu.Duration.fromPartial(en.maxClockDrift):void 0,eo.frozenHeight=void 0!==en.frozenHeight&&null!==en.frozenHeight?ef.Height.fromPartial(en.frozenHeight):void 0,eo.latestHeight=void 0!==en.latestHeight&&null!==en.latestHeight?ef.Height.fromPartial(en.latestHeight):void 0,eo.proofSpecs=en.proofSpecs?.map(en=>ep.ProofSpec.fromPartial(en))||[],eo.upgradePath=en.upgradePath?.map(en=>en)||[],eo.allowUpdateAfterExpiry=en.allowUpdateAfterExpiry??!1,eo.allowUpdateAfterMisbehaviour=en.allowUpdateAfterMisbehaviour??!1,eo}},ei.ConsensusState={encode:(en,ei=e_.Writer.create())=>(void 0!==en.timestamp&&em.Timestamp.encode(en.timestamp,ei.uint32(10).fork()).ldelim(),void 0!==en.root&&eg.MerkleRoot.encode(en.root,ei.uint32(18).fork()).ldelim(),0!==en.nextValidatorsHash.length&&ei.uint32(26).bytes(en.nextValidatorsHash),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConsensusState();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.timestamp=em.Timestamp.decode(eo,eo.uint32());break;case 2:es.root=eg.MerkleRoot.decode(eo,eo.uint32());break;case 3:es.nextValidatorsHash=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({timestamp:(0,eS.isSet)(en.timestamp)?(0,eS.fromJsonTimestamp)(en.timestamp):void 0,root:(0,eS.isSet)(en.root)?eg.MerkleRoot.fromJSON(en.root):void 0,nextValidatorsHash:(0,eS.isSet)(en.nextValidatorsHash)?(0,eS.bytesFromBase64)(en.nextValidatorsHash):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.timestamp&&(ei.timestamp=(0,eS.fromTimestamp)(en.timestamp).toISOString()),void 0!==en.root&&(ei.root=en.root?eg.MerkleRoot.toJSON(en.root):void 0),void 0!==en.nextValidatorsHash&&(ei.nextValidatorsHash=(0,eS.base64FromBytes)(void 0!==en.nextValidatorsHash?en.nextValidatorsHash:new Uint8Array)),ei},fromPartial(en){let ei=createBaseConsensusState();return ei.timestamp=void 0!==en.timestamp&&null!==en.timestamp?em.Timestamp.fromPartial(en.timestamp):void 0,ei.root=void 0!==en.root&&null!==en.root?eg.MerkleRoot.fromPartial(en.root):void 0,ei.nextValidatorsHash=en.nextValidatorsHash??new Uint8Array,ei}},ei.Misbehaviour={encode:(en,eo=e_.Writer.create())=>(""!==en.clientId&&eo.uint32(10).string(en.clientId),void 0!==en.header1&&ei.Header.encode(en.header1,eo.uint32(18).fork()).ldelim(),void 0!==en.header2&&ei.Header.encode(en.header2,eo.uint32(26).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof e_.Reader?en:new e_.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseMisbehaviour();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.clientId=ea.string();break;case 2:ed.header1=ei.Header.decode(ea,ea.uint32());break;case 3:ed.header2=ei.Header.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({clientId:(0,eS.isSet)(en.clientId)?String(en.clientId):"",header1:(0,eS.isSet)(en.header1)?ei.Header.fromJSON(en.header1):void 0,header2:(0,eS.isSet)(en.header2)?ei.Header.fromJSON(en.header2):void 0}),toJSON(en){let eo={};return void 0!==en.clientId&&(eo.clientId=en.clientId),void 0!==en.header1&&(eo.header1=en.header1?ei.Header.toJSON(en.header1):void 0),void 0!==en.header2&&(eo.header2=en.header2?ei.Header.toJSON(en.header2):void 0),eo},fromPartial(en){let eo=createBaseMisbehaviour();return eo.clientId=en.clientId??"",eo.header1=void 0!==en.header1&&null!==en.header1?ei.Header.fromPartial(en.header1):void 0,eo.header2=void 0!==en.header2&&null!==en.header2?ei.Header.fromPartial(en.header2):void 0,eo}},ei.Header={encode:(en,ei=e_.Writer.create())=>(void 0!==en.signedHeader&&ey.SignedHeader.encode(en.signedHeader,ei.uint32(10).fork()).ldelim(),void 0!==en.validatorSet&&eb.ValidatorSet.encode(en.validatorSet,ei.uint32(18).fork()).ldelim(),void 0!==en.trustedHeight&&ef.Height.encode(en.trustedHeight,ei.uint32(26).fork()).ldelim(),void 0!==en.trustedValidators&&eb.ValidatorSet.encode(en.trustedValidators,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseHeader();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.signedHeader=ey.SignedHeader.decode(eo,eo.uint32());break;
4case 2:es.validatorSet=eb.ValidatorSet.decode(eo,eo.uint32());break;case 3:es.trustedHeight=ef.Height.decode(eo,eo.uint32());break;case 4:es.trustedValidators=eb.ValidatorSet.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({signedHeader:(0,eS.isSet)(en.signedHeader)?ey.SignedHeader.fromJSON(en.signedHeader):void 0,validatorSet:(0,eS.isSet)(en.validatorSet)?eb.ValidatorSet.fromJSON(en.validatorSet):void 0,trustedHeight:(0,eS.isSet)(en.trustedHeight)?ef.Height.fromJSON(en.trustedHeight):void 0,trustedValidators:(0,eS.isSet)(en.trustedValidators)?eb.ValidatorSet.fromJSON(en.trustedValidators):void 0}),toJSON(en){let ei={};return void 0!==en.signedHeader&&(ei.signedHeader=en.signedHeader?ey.SignedHeader.toJSON(en.signedHeader):void 0),void 0!==en.validatorSet&&(ei.validatorSet=en.validatorSet?eb.ValidatorSet.toJSON(en.validatorSet):void 0),void 0!==en.trustedHeight&&(ei.trustedHeight=en.trustedHeight?ef.Height.toJSON(en.trustedHeight):void 0),void 0!==en.trustedValidators&&(ei.trustedValidators=en.trustedValidators?eb.ValidatorSet.toJSON(en.trustedValidators):void 0),ei},fromPartial(en){let ei=createBaseHeader();return ei.signedHeader=void 0!==en.signedHeader&&null!==en.signedHeader?ey.SignedHeader.fromPartial(en.signedHeader):void 0,ei.validatorSet=void 0!==en.validatorSet&&null!==en.validatorSet?eb.ValidatorSet.fromPartial(en.validatorSet):void 0,ei.trustedHeight=void 0!==en.trustedHeight&&null!==en.trustedHeight?ef.He
4ight.fromPartial(en.trustedHeight):void 0,ei.trustedValidators=void 0!==en.trustedValidators&&null!==en.trustedValidators?eb.ValidatorSet.fromPartial(en.trustedValidators):void 0,ei}},ei.Fraction={encode:(en,ei=e_.Writer.create())=>(en.numerator.isZero()||ei.uint32(8).uint64(en.numerator),en.denominator.isZero()||ei.uint32(16).uint64(en.denominator),ei),decode(en,ei){let eo=en instanceof e_.Reader?en:new e_.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseFraction();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.numerator=eo.uint64();break;case 2:es.denominator=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({numerator:(0,eS.isSet)(en.numerator)?eS.Long.fromValue(en.numerator):eS.Long.UZERO,denominator:(0,eS.isSet)(en.denominator)?eS.Long.fromValue(en.denominator):eS.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.numerator&&(ei.numerator=(en.numerator||eS.Long.UZERO).toString()),void 0!==en.denominator&&(ei.denominator=(en.denominator||eS.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseFraction();return ei.numerator=void 0!==en.numerator&&null!==en.numerator?eS.Long.fromValue(en.numerator):eS.Long.UZERO,ei.denominator=void 0!==en.denominator&&null!==en.denominator?eS.Long.fromValue(en.denominator):eS.Long.UZERO,ei}}},90198:function(en){en.exports=Long;var ei=null;try{ei=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(en){}function Long(en,ei,eo){this.low=0|en,this.high=0|ei,this.unsigned=!!eo}function isLong(en){return!0===(en&&en.__isLong__)}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0}),Long.isLong=isLong;var eo={},ea={};function fromInt(en,ei){var es,ed,eu;return ei?(en>>>=0,(eu=0<=en&&en<256)&&(ed=ea[en]))?ed:(es=fromBits(en,(0|en)<0?-1:0,!0),eu&&(ea[en]=es),es):(en|=0,(eu=-128<=en&&en<128)&&(ed=eo[en]))?ed:(es=fromBits(en,en<0?-1:0,!1),eu&&(eo[en]=es),es)}function fromNumber(en,ei){if(isNaN(en))return ei?eg:em;if(ei){if(en<0)return eg;if(en>=eu)return eR}else{if(en<=-ef)return eA;if(en+1>=ef)return e_}return en<0?fromNumber(-en,ei).neg():fromBits(en%ed|0,en/ed|0,ei)}function fromBits(en,ei,eo){return new Long(en,ei,eo)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var es=Math.pow;function fromString(en,ei,eo){if(0===en.length)throw Error("empty string");if("NaN"===en||"Infinity"===en||"+Infinity"===en||"-Infinity"===en)return em;if("number"==typeof ei?(eo=ei,ei=!1):ei=!!ei,(eo=eo||10)<2||36<eo)throw RangeError("radix");if((ea=en.indexOf("-"))>0)throw Error("interior hyphen");if(0===ea)return fromString(en.substring(1),ei,eo).neg();for(var ea,ed=fromNumber(es(eo,8)),eu=em,ef=0;ef<en.length;ef+=8){var ep=Math.min(8,en.length-ef),eg=parseInt(en.substring(ef,ef+ep),eo);if(ep<8){var ey=fromNumber(es(eo,ep));eu=eu.mul(ey).add(fromNumber(eg))}else eu=(eu=eu.mul(ed)).add(fromNumber(eg))}return eu.unsigned=ei,eu}function fromValue(en,ei){return"number"==typeof en?fromNumber(en,ei):"string"==typeof en?fromString(en,ei):fromBits(en.low,en.high,"boolean"==typeof ei?ei:en.unsigned)}Long.fromString=fromString,Long.fromValue=fromValue;var ed=4294967296,eu=18446744073709552e3,ef=0x7fffffffffffffff,ep=fromInt(16777216),em=fromInt(0);Long.ZERO=em;var eg=fromInt(0,!0);Long.UZERO=eg;var ey=fromInt(1);
vendor: 2,606 bytes, line 4
4Long.ONE=ey;var eb=fromInt(1,!0);Long.UONE=eb;var eS=fromInt(-1);Long.NEG_ONE=eS;var e_=fromBits(-1,2147483647,!1);Long.MAX_VALUE=e_;var eR=fromBits(-1,-1,!0);Long.MAX_UNSIGNED_VALUE=eR;var eA=fromBits(0,-2147483648,!1);Long.MIN_VALUE=eA;var ew=Long.prototype;ew.toInt=function(){return this.unsigned?this.low>>>0:this.low},ew.toNumber=function(){return this.unsigned?(this.high>>>0)*ed+(this.low>>>0):this.high*ed+(this.low>>>0)},ew.toString=function(en){if((en=en||10)<2||36<en)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(!this.eq(eA))return"-"+this.neg().toString(en);var ei=fromNumber(en),eo=this.div(ei),ea=eo.mul(ei).sub(this);return eo.toString(en)+ea.toInt().toString(en)}for(var ed=fromNumber(es(en,6),this.unsigned),eu=this,ef="";;){var ep=eu.div(ed),em=(eu.sub(ep.mul(ed)).toInt()>>>0).toString(en);if((eu=ep).isZero())return em+ef;for(;em.length<6;)em="0"+em;ef=""+em+ef}},ew.getHighBits=function(){return this.high},ew.getHighBitsUnsigned=function(){return this.high>>>0},ew.getLowBits=function(){return this.low},ew.getLowBitsUnsigned=function(){return this.low>>>0},ew.getNumBitsAbs=function(){if(this.isNegative())return this.eq(eA)?64:this.neg().getNumBitsAbs();for(var en=0!=this.high?this.high:this.low,ei=31;ei>0&&(en&1<<ei)==0;ei--);return 0!=this.high?ei+33:ei+1},ew.isZero=function(){return 0===this.high&&0===this.low},ew.eqz=ew.isZero,ew.isNegative=function(){return!this.unsigned&&this.high<0},ew.isPositive=function(){return this.unsigned||this.high>=0},ew.isOdd=function(){return(1&this.low)==1},ew.isEven=function(){return(1&this.low)==0},ew.equals=function(en){return isLong(en)||(en=fromValue(en)),(this.unsigned===en.unsigned||this.high>>>31!=1||en.high>>>31!=1)&&this.high===en.high&&this.low===en.low},ew.eq=ew.equals,ew.notEquals=function(en){return!this.eq(en)},ew.neq=ew.notEquals,ew.ne=ew.notEquals,ew.lessThan=function(en){return 0>this.comp(en)},ew.lt=ew.lessThan,ew.lessThanOrEqual=function(en){return 0>=this.comp(en)},ew.lte=ew.lessThanOrEqual,ew.le=ew.lessThanOrEqual,ew.greaterThan=function(en){return this.comp(en)>0},ew.gt=ew.greaterThan,ew.greaterThanOrEqual=function(en){return this.comp(en)>=0},ew.gte=ew.greaterThanOrEqual,ew.ge=ew.greaterThanOrEqual,ew.compare=function(en){if(isLong(en)||(en=fromValue(en)),this.eq(en))return 0;var ei=this.isNegative(),eo=en.isNegative();return ei&&!eo?-1:!ei&&eo?1:this.unsigned?en.high>>>0>this.high>>>0||en.high===this.high&&en.low>>>0>this.low>>>0?-1:1:this.sub(en).isNegative()?-1:1},ew.comp=ew.compare,ew.negate=function(){return!this.unsigned&&this.eq(eA)?eA:this.not().add(ey)}
4,ew.neg=ew.negate,ew.add=function(en){isLong(en)||(en=fromValue(en));var ei,eo,ea=this.high>>>16,es=65535&this.high,ed=this.low>>>16,eu=65535&this.low,ef=en.high>>>16,ep=65535&en.high,em=en.low>>>16,eg=65535&en.low,ey=0,eb=0;return ei=0+((eo=0+(eu+eg))>>>16),eo&=65535,ei+=ed+em,eb+=ei>>>16,ei&=65535,eb+=es+ep,ey+=eb>>>16,eb&=65535,ey+=ea+ef,fromBits(ei<<16|eo,(ey&=65535)<<16|eb,this.unsigned)},ew.subtract=function(en){return isLong(en)||(en=fromValue(en)),this.add(en.neg())},ew.sub=ew.subtract,ew.multiply=function(en){if(this.isZero())return em;if(isLong(en)||(en=fromValue(en)),ei)return fromBits(ei.mul(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned);if(en.isZero())return em;if(this.eq(eA))return en.isOdd()?eA:em;if(en.eq(eA))return this.isOdd()?eA:em;if(this.isNegative())return en.isNegative()?this.neg().mul(en.neg()):this.neg().mul(en).neg();if(en.isNegative())return this.mul(en.neg()).neg();if(this.lt(ep)&&en.lt(ep))return fromNumber(this.toNumber()*en.toNumber(),this.unsigned);var eo,ea,es=this.high>>>16,ed=65535&this.high,eu=this.low>>>16,ef=65535&this.low,eg=en.high>>>16,ey=65535&en.high,eb=en.low>>>16,eS=65535&en.low,e_=0,eR=0;return eo=0+((ea=0+ef*eS)>>>16),ea&=65535,eo+=eu*eS,eR+=eo>>>16,eo&=65535,eo+=ef*eb,eR+=eo>>>16,eo&=65535,eR+=ed*eS,e_+=eR>>>16,eR&=65535,eR+=eu*eb,e_+=eR>>>16,eR&=65535,eR+=ef*ey,e_+=eR>>>16,eR&=65535,e_+=es*eS+ed*eb+eu*ey+ef*eg,fromBits(eo<<16|ea,(e_&=65535)<<16|eR,this.unsigned)},ew.mul=ew.multiply,ew.divide=function(en){if(isLong(en)||(en=fromValue(en)),en.isZero())throw Error("division by zero");if(ei){var eo,ea,ed;return this.unsigned||-2147483648!==this.high||-1!==en.low||-1!==en.high?fromBits((this.unsigned?ei.div_u:ei.div_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?eg:em;if(this.unsigned){if(en.unsigned||(en=en.toUnsigned()),en.gt(this))return eg;if(en.gt(this.shru(1)))return eb;ed=eg}else{if(this.eq(eA))return en.eq(ey)||en.eq(eS)?eA:en.eq(eA)?ey:(eo=this.shr(1).div(en).shl(1)).eq(em)?en.isNegative()?ey:eS:(ea=this.sub(en.mul(eo)),ed=eo.add(ea.div(en)));if(en.eq(eA))return this.unsigned?eg:em;if(this.isNegative())return en.isNegative()?this.neg().div(en.neg()):this.neg().div(en).neg();if(en.isNegative())return this.div(en.neg()).neg();ed=em}for(ea=this;ea.gte(en);){for(var eu=Math.ceil(Math.log(eo=Math.max(1,Math.floor(ea.toNumber()/en.toNumber())))/Math.LN2),ef=eu<=48?1:es(2,eu-48),ep=fromNumber(eo),e_=ep.mul(en);e_.isNegative()||e_.gt(ea);)eo-=ef,e_=(ep=fromNumber(eo,this.unsigned)).mul(en);ep.isZero()&&(ep=ey),ed=ed.add(ep),ea=ea.sub(e_)}return ed},ew.div=ew.divide,ew.modulo=function(en){return(isLong(en)||(en=fromValue(en)),ei)?fromBits((this.unsigned?ei.rem_u:ei.rem_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this.sub(this.div(en).mul(en))},ew.mod=ew.modulo,ew.rem=ew.modulo,ew.not=function(){return fromBits(~this.low,~this.high,this.unsigned)},ew.and=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low&en.low,this.high&en.high,this.unsigned)},ew.or=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low|en.low,this.high|en.high,this.unsigned)},ew.xor=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low^en.low,this.high^en.high,this.unsigned)},ew.shiftLeft=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low<<en,this.high<<en|this.low>>>32-en,this.unsigned):fromBits(0,this.low<<en-32,this.unsigned)},ew.shl=ew.shiftLeft,ew.shiftRight=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low>>>en|this.high<<32-en,this.high>>en,this.unsigned):fromBits(this.high>>en-32,this.high>=0?0:-1,this.unsigned)},ew.shr=ew.shiftRight,ew.shiftRightUnsigned=function(en){if(isLong(en)&&(en=en.toInt()),0==(en&=63))return this;var ei=this.high;return en<32?fromBits(this.low>>>en|ei<<32-en,ei>>>en,this.unsigned):32===en?fromBits(ei,0,this.unsigned):fromBits(ei>>>en-32,0,this.unsigned)},ew.shru=ew.shiftRightUnsigned,ew.shr_u=ew.shiftRightUnsigned,ew.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this},ew.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)},ew.toBytes=function(en){return en?this.toBytesLE():this.toBytesBE()},ew.toBytesLE=function(){var en=this.high,ei=this.low;return[255&ei,ei>>>8&255,ei>>>16&255,ei>>>24,255&en,en>>>8&255,en>>>16&255,en>>>24]},ew.toBytesBE=function(){var en=this.high,ei=this.low;return[en>>>24,en>>>16&255,en>>>8&255,255&en,ei>>>24,ei>>>16&255,ei>>>8&255,255&ei]},Long.fromBytes=function(en,ei,eo){return eo?Long.fromBytesLE(en,ei):Long.fromBytesBE(en,ei)},Long.fromBytesLE=function(en,ei){return new Long(en[0]|en[1]<<8|en[2]<<16|en[3]<<24,en[4]|en[5]<<8|en[6]<<16|en[7]<<24,ei)},Long.fromBytesBE=function(en,ei){return new Long(en[4]<<24|en[5]<<16|en[6]<<8|en[7],en[0]<<24|en[1]<<16|en[2]<<8|en[3],ei)}},83789:function(en,ei,eo){"use strict";en.exports=eo(59570)},59570:function(en,ei,eo){"use strict";var ea=ei;function configure(){ea.util._configure(),ea.Writer._configure(ea.BufferWriter),ea.Reader._
vendor: 4,275 bytes, line 4
4configure(ea.BufferReader)}ea.build="minimal",ea.Writer=eo(45683),ea.BufferWriter=eo(68128),ea.Reader=eo(18489),ea.BufferReader=eo(11292),ea.util=eo(92554),ea.rpc=eo(87622),ea.roots=eo(66474),ea.configure=configure,configure()},18489:function(en,ei,eo){"use strict";en.exports=Reader;var ea,es=eo(92554),ed=es.LongBits,eu=es.utf8;function indexOutOfRange(en,ei){return RangeError("index out of range: "+en.pos+" + "+(ei||1)+" > "+en.len)}function Reader(en){this.buf=en,this.pos=0,this.len=en.length}var ef="undefined"!=typeof Uint8Array?function(en){if(en instanceof Uint8Array||Array.isArray(en))return new Reader(en);throw Error("illegal buffer")}:function(en){if(Array.isArray(en))return new Reader(en);throw Error("illegal buffer")},create=function(){return es.Buffer?function(en){return(Reader.create=function(en){return es.Buffer.isBuffer(en)?new ea(en):ef(en)})(en)}:ef};function readLongVarint(){var en=new ed(0,0),ei=0;if(this.len-this.pos>4){for(;ei<4;++ei)if(en.lo=(en.lo|(127&this.buf[this.pos])<<7*ei)>>>0,this.buf[this.pos++]<128)return en;if(en.lo=(en.lo|(127&this.buf[this.pos])<<28)>>>0,en.hi=(en.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return en;ei=0}else{for(;ei<3;++ei){if(this.pos>=this.len)throw indexOutOfRange(this);if(en.lo=(en.lo|(127&this.buf[this.pos])<<7*ei)>>>0,this.buf[this.pos++]<128)return en}return en.lo=(en.lo|(127&this.buf[this.pos++])<<7*ei)>>>0,en}if(this.len-this.pos>4){for(;ei<5;++ei)if(en.hi=(en.hi|(127&this.buf[this.pos])<<7*ei+3)>>>0,this.buf[this.pos++]<128)return en}else for(;ei<5;++ei){if(this.pos>=this.len)throw indexOutOfRange(this);if(en.hi=(en.hi|(127&this.buf[this.pos])<<7*ei+3)>>>0,this.buf[this.pos++]<128)return en}throw Error("invalid varint encoding")}function readFixed32_end(en,ei){return(en[ei-4]|en[ei-3]<<8|en[ei-2]<<16|en[ei-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new ed(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=es.Array.prototype.subarray||es.Array.prototype.slice,Reader.prototype.uint32=function(){var en=4294967295;return function(){if(en=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(en=(en|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(en=(en|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(en=(en|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(en=(en|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return en;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return en}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var en=this.uint32();return en>>>1^-(1&en)|0},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var en=es.float.readFloatLE(this.buf,this.pos);return this.pos+=4,en},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var en=es.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,en},Reader.prototype.bytes=function(){var en=this.uint32(),ei=this.pos,eo=this.pos+en;if(eo>this.len)throw indexOutOfRange(this,en);return(this.pos+=en,Array.isArray(this.buf))?this.buf.slice(ei,eo):ei===eo?new this.buf.constructor(0):this._slice.call(this.buf,ei,eo)},Reader.prototype.string=function(){var en=this.bytes();return eu.read(en,0,en.length)},Reader.prototype.skip=function(en){if("number"==typeof en){if(this.pos+en>this.len)throw indexOutOfRange(this,en);this.pos+=en}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.prototype.skipType=function(en){switch(en){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(en=7&this.uint32());)this.skipType(en);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+en+" at offset "+this.pos)}return this}
4,Reader._configure=function(en){ea=en,Reader.create=create(),ea._configure();var ei=es.Long?"toLong":"toNumber";es.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[ei](!1)},uint64:function(){return readLongVarint.call(this)[ei](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[ei](!1)},fixed64:function(){return readFixed64.call(this)[ei](!0)},sfixed64:function(){return readFixed64.call(this)[ei](!1)}})}},11292:function(en,ei,eo){"use strict";en.exports=BufferReader;var ea=eo(18489);(BufferReader.prototype=Object.create(ea.prototype)).constructor=BufferReader;var es=eo(92554);function BufferReader(en){ea.call(this,en)}BufferReader._configure=function(){es.Buffer&&(BufferReader.prototype._slice=es.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var en=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+en,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+en,this.len))},BufferReader._configure()},66474:function(en){"use strict";en.exports={}},87622:function(en,ei,eo){"use strict";ei.Service=eo(40336)},40336:function(en,ei,eo){"use strict";en.exports=Service;var ea=eo(92554);function Service(en,ei,eo){if("function"!=typeof en)throw TypeError("rpcImpl must be a function");ea.EventEmitter.call(this),this.rpcImpl=en,this.requestDelimited=!!ei,this.responseDelimited=!!eo}(Service.prototype=Object.create(ea.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(en,ei,eo,es,ed){if(!es)throw TypeError("request must be specified");var eu=this;if(!ed)return ea.asPromise(rpcCall,eu,en,ei,eo,es);if(!eu.rpcImpl){setTimeout(function(){ed(Error("already ended"))},0);return}try{return eu.rpcImpl(en,ei[eu.requestDelimited?"encodeDelimited":"encode"](es).finish(),function(ei,ea){if(ei)return eu.emit("error",ei,en),ed(ei);if(null===ea){eu.end(!0);return}if(!(ea instanceof eo))try{ea=eo[eu.responseDelimited?"decodeDelimited":"decode"](ea)}catch(ei){return eu.emit("error",ei,en),ed(ei)}return eu.emit("data",ea,en),ed(null,ea)})}catch(ei){eu.emit("error",ei,en),setTimeout(function(){ed(ei)},0);return}},Service.prototype.end=function(en){return this.rpcImpl&&(en||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},58227:function(en,ei,eo){"use strict";en.exports=LongBits;var ea=eo(92554);function LongBits(en,ei){this.lo=en>>>0,this.hi=ei>>>0}var es=LongBits.zero=new LongBits(0,0);es.toNumber=function(){return 0},es.zzEncode=es.zzDecode=function(){return this},es.length=function(){return 1};var ed=LongBits.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";LongBits.fromNumber=function(en){if(0===en)return es;var ei=en<0;ei&&(en=-en);var eo=en>>>0,ea=(en-eo)/4294967296>>>0;return ei&&(ea=~ea>>>0,eo=~eo>>>0,++eo>4294967295&&(eo=0,++ea>4294967295&&(ea=0))),new LongBits(eo,ea)},LongBits.from=function(en){if("number"==typeof en)return LongBits.fromNumber(en);if(ea.isString(en)){if(!ea.Long)return LongBits.fromNumber(parseInt(en,10));en=ea.Long.fromString(en)}return en.low||en.high?new LongBits(en.low>>>0,en.high>>>0):es},LongBits.prototype.toNumber=function(en){if(!en&&this.hi>>>31){var ei=~this.lo+1>>>0,eo=~this.hi>>>0;return ei||(eo=eo+1>>>0),-(ei+4294967296*eo)}return this.lo+4294967296*this.hi},LongBits.prototype.toLong=function(en){return ea.Long?new ea.Long(0|this.lo,0|this.hi,!!en):{low:0|this.lo,high:0|this.hi,unsigned:!!en}};var eu=String.prototype.charCodeAt;LongBits.fromHash=function(en){return en===ed?es:new LongBits((eu.call(en,0)|eu.call(en,1)<<8|eu.call(en,2)<<16|eu.call(en,3)<<24)>>>0,(eu.call(en,4)|eu.call(en,5)<<8|eu.call(en,6)<<16|eu.call(en,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var en=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^en)>>>0,this.lo=(this.lo<<1^en)>>>0,this},LongBits.prototype.zzDecode=function(){var en=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^en)>>>0,this.hi=(this.hi>>>1^en)>>>0,this},LongBits.prototype.length=function(){var en=this.lo,ei=(this.lo>>>28|this.hi<<4)>>>0,eo=this.hi>>>24;return 0===eo?0===ei?en<16384?en<128?1:2:en<2097152?3:4:ei<16384?ei<128?5:6:ei<2097152?7:8:eo<128?9:10}},92554:function(en,ei,eo){"use strict";var ea=ei;function merge(en,ei,eo){for(var ea=Object.keys(ei),es=0;es<ea.length;++es)void 0!==en[ea[es]]&&eo||(en[ea[es]]=ei[ea[es]]);return en}function newError(en){function CustomError(en,ei){if(!(this instanceof CustomError))return new CustomError(en,ei);Object.defineProperty(this,"message",{get:function(){return en}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),ei&&merge(this,ei)}return(CustomError.prototype=Object.create(Error.prototype)).constructor=CustomError,Object.defineProperty(CustomError.prototype,"name",{get:function(){return en}}),CustomError.prototype.toString=function(){return this.name+": "+this.message},CustomError}
vendor: 6,167 bytes, line 4
4ea.asPromise=eo(34537),ea.base64=eo(97419),ea.EventEmitter=eo(19211),ea.float=eo(10945),ea.inquire=eo(67199),ea.utf8=eo(94997),ea.pool=eo(76662),ea.LongBits=eo(58227),ea.isNode=!!(void 0!==eo.g&&eo.g&&eo.g.process&&eo.g.process.versions&&eo.g.process.versions.node),ea.global=ea.isNode&&eo.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,ea.emptyArray=Object.freeze?Object.freeze([]):[],ea.emptyObject=Object.freeze?Object.freeze({}):{},ea.isInteger=Number.isInteger||function(en){return"number"==typeof en&&isFinite(en)&&Math.floor(en)===en},ea.isString=function(en){return"string"==typeof en||en instanceof String},ea.isObject=function(en){return en&&"object"==typeof en},ea.isset=ea.isSet=function(en,ei){var eo=en[ei];return!!(null!=eo&&en.hasOwnProperty(ei))&&("object"!=typeof eo||(Array.isArray(eo)?eo.length:Object.keys(eo).length)>0)},ea.Buffer=function(){try{var en=ea.inquire("buffer").Buffer;return en.prototype.utf8Write?en:null}catch(en){return null}}(),ea._Buffer_from=null,ea._Buffer_allocUnsafe=null,ea.newBuffer=function(en){return"number"==typeof en?ea.Buffer?ea._Buffer_allocUnsafe(en):new ea.Array(en):ea.Buffer?ea._Buffer_from(en):"undefined"==typeof Uint8Array?en:new Uint8Array(en)},ea.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,ea.Long=ea.global.dcodeIO&&ea.global.dcodeIO.Long||ea.global.Long||ea.inquire("long"),ea.key2Re=/^true|false|0|1$/,ea.key32Re=/^-?(?:0|[1-9][0-9]*)$/,ea.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,ea.longToHash=function(en){return en?ea.LongBits.from(en).toHash():ea.LongBits.zeroHash},ea.longFromHash=function(en,ei){var eo=ea.LongBits.fromHash(en);return ea.Long?ea.Long.fromBits(eo.lo,eo.hi,ei):eo.toNumber(!!ei)},ea.merge=merge,ea.lcFirst=function(en){return en.charAt(0).toLowerCase()+en.substring(1)},ea.newError=newError,ea.ProtocolError=newError("ProtocolError"),ea.oneOfGetter=function(en){for(var ei={},eo=0;eo<en.length;++eo)ei[en[eo]]=1;return function(){for(var en=Object.keys(this),eo=en.length-1;eo>-1;--eo)if(1===ei[en[eo]]&&void 0!==this[en[eo]]&&null!==this[en[eo]])return en[eo]}},ea.oneOfSetter=function(en){return function(ei){for(var eo=0;eo<en.length;++eo)en[eo]!==ei&&delete this[en[eo]]}},ea.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},ea._configure=function(){var en=ea.Buffer;if(!en){ea._Buffer_from=ea._Buffer_allocUnsafe=null;return}ea._Buffer_from=en.from!==Uint8Array.from&&en.from||function(ei,eo){return new en(ei,eo)},ea._Buffer_allocUnsafe=en.allocUnsafe||function(ei){return new en(ei)}}},45683:function(en,ei,eo){"use strict";en.exports=Writer;var ea,es=eo(92554),ed=es.LongBits,eu=es.base64,ef=es.utf8;function Op(en,ei,eo){this.fn=en,this.len=ei,this.next=void 0,this.val=eo}function noop(){}function State(en){this.head=en.head,this.tail=en.tail,this.len=en.len,this.next=en.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return es.Buffer?function(){return(Writer.create=function(){return new ea})()}:function(){return new Writer}};function writeByte(en,ei,eo){ei[eo]=255&en}function writeVarint32(en,ei,eo){for(;en>127;)ei[eo++]=127&en|128,en>>>=7;ei[eo]=en}function VarintOp(en,ei){this.len=en,this.next=void 0,this.val=ei}function writeVarint64(en,ei,eo){for(;en.hi;)ei[eo++]=127&en.lo|128,en.lo=(en.lo>>>7|en.hi<<25)>>>0,en.hi>>>=7;for(;en.lo>127;)ei[eo++]=127&en.lo|128,en.lo=en.lo>>>7;ei[eo++]=en.lo}function writeFixed32(en,ei,eo){ei[eo]=255&en,ei[eo+1]=en>>>8&255,ei[eo+2]=en>>>16&255,ei[eo+3]=en>>>24}Writer.create=create(),Writer.alloc=function(en){return new es.Array(en)},es.Array!==Array&&(Writer.alloc=es.pool(Writer.alloc,es.Array.prototype.subarray)),Writer.prototype._push=function(en,ei,eo){return this.tail=this.tail.next=new Op(en,ei,eo),this.len+=ei,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(en){return this.len+=(this.tail=this.tail.next=new VarintOp((en>>>=0)<128?1:en<16384?2:en<2097152?3:en<268435456?4:5,en)).len,this},Writer.prototype.int32=function(en){return en<0?this._push(writeVarint64,10,ed.fromNumber(en)):this.uint32(en)},Writer.prototype.sint32=function(en){return this.uint32((en<<1^en>>31)>>>0)},Writer.prototype.uint64=function(en){var ei=ed.from(en);return this._push(writeVarint64,ei.length(),ei)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(en){var ei=ed.from(en).zzEncode();return this._push(writeVarint64,ei.length(),ei)},Writer.prototype.bool=function(en){return this._push(writeByte,1,en?1:0)},Writer.prototype.fixed32=function(en){return this._push(writeFixed32,4,en>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(en){var ei=ed.from(en);return this._push(writeFixed32,4,ei.lo)._push(writeFixed32,4,ei.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(en){return this._push(es.float.writeFloatLE,4,en)},Writer.prototype.double=function(en){return this._push(es.float.writeDoubleLE,8,en)};var ep=es.Array.prototype.set?function(en,ei,eo){ei.set(en,eo)}:function(en,ei,eo){for(var ea=0;ea<en.length;++ea)ei[eo+ea]=en[ea]};Writer.prototype.bytes=function(en){var ei=en.length>>>0;if(!ei)return this._push(writeByte,1,0);if(es.isString(en)){var eo=Writer.alloc(ei=eu.length(en));eu.decode(en,eo,0),en=eo}return this.uint32(ei)._push(ep,ei,en)},Writer.prototype.string=function(en){var ei=ef.length(en);return ei?this.uint32(ei)._push(ef.write,ei,en):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var en=this.head,ei=this.tail,eo=this.len;return this.reset().uint32(eo),eo&&(this.tail.next=en.next,this.tail=ei,this.len+=eo),this},Writer.prototype.finish=function(){for(var en=this.head.next,ei=this.constructor.alloc(this.len),eo=0;en;
4)en.fn(en.val,ei,eo),eo+=en.len,en=en.next;return ei},Writer._configure=function(en){ea=en,Writer.create=create(),ea._configure()}},68128:function(en,ei,eo){"use strict";en.exports=BufferWriter;var ea=eo(45683);(BufferWriter.prototype=Object.create(ea.prototype)).constructor=BufferWriter;var es=eo(92554);function BufferWriter(){ea.call(this)}function writeStringBuffer(en,ei,eo){en.length<40?es.utf8.write(en,ei,eo):ei.utf8Write?ei.utf8Write(en,eo):ei.write(en,eo)}BufferWriter._configure=function(){BufferWriter.alloc=es._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=es.Buffer&&es.Buffer.prototype instanceof Uint8Array&&"set"===es.Buffer.prototype.set.name?function(en,ei,eo){ei.set(en,eo)}:function(en,ei,eo){if(en.copy)en.copy(ei,eo,0,en.length);else for(var ea=0;ea<en.length;)ei[eo++]=en[ea++]}},BufferWriter.prototype.bytes=function(en){es.isString(en)&&(en=es._Buffer_from(en,"base64"));var ei=en.length>>>0;return this.uint32(ei),ei&&this._push(BufferWriter.writeBytesBuffer,ei,en),this},BufferWriter.prototype.string=function(en){var ei=es.Buffer.byteLength(en);return this.uint32(ei),ei&&this._push(writeStringBuffer,ei,en),this},BufferWriter._configure()},30984:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.PublicKey=ei.protobufPackage=void 0;let eu=ed(eo(83789)),ef=eo(81457);function createBasePublicKey(){return{ed25519:void 0,secp256k1:void 0}}ei.protobufPackage="tendermint.crypto",ei.PublicKey={encode:(en,ei=eu.Writer.create())=>(void 0!==en.ed25519&&ei.uint32(10).bytes(en.ed25519),void 0!==en.secp256k1&&ei.uint32(18).bytes(en.secp256k1),ei),decode(en,ei){let eo=en instanceof eu.Reader?en:new eu.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePublicKey();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.ed25519=eo.bytes();break;case 2:es.secp256k1=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({ed25519:(0,ef.isSet)(en.ed25519)?(0,ef.bytesFromBase64)(en.ed25519):void 0,secp256k1:(0,ef.isSet)(en.secp256k1)?(0,ef.bytesFromBase64)(en.secp256k1):void 0}),toJSON(en){let ei={};return void 0!==en.ed25519&&(ei.ed25519=void 0!==en.ed25519?(0,ef.base64FromBytes)(en.ed25519):void 0),void 0!==en.secp256k1&&(ei.secp256k1=void 0!==en.secp256k1?(0,ef.base64FromBytes)(en.secp256k1):void 0),ei},fromPartial(en){let ei=createBasePublicKey();return ei.ed25519=en.ed25519??void 0,ei.secp256k1=en.secp256k1??void 0,ei}}},31494:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.ProofOps=ei.ProofOp=ei.DominoOp=ei.ValueOp=ei.Proof=ei.protobufPackage=void 0;let eu=eo(81457),ef=ed(eo(83789));function createBaseProof(){return{total:eu.Long.ZERO,index:eu.Long.ZERO,leafHash:new Uint8Array,aunts:[]}}function createBaseValueOp(){return{key:new Uint8Array,proof:void 0}}function createBaseDominoOp(){return{key:"",input:"",output:""}}function createBaseProofOp(){return{type:"",key:new Uint8Array,data:new Uint8Array}}function createBaseProofOps(){return{ops:[]}}ei.protobufPackage="tendermint.crypto",ei.Proof={encode(en,ei=ef.Writer.create()){for(let eo of(en.total.isZero()||ei.uint32(8).int64(en.total),en.index.isZero()||ei.uint32(16).int64(en.index),0!==en.leafHash.length&&ei.uint32(26).bytes(en.leafHash),en.au
4nts))ei.uint32(34).bytes(eo);return ei},decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseProof();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.total=eo.int64();break;case 2:es.index=eo.int64();break;case 3:es.leafHash=eo.bytes();break;case 4:es.aunts.push(eo.bytes());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({total:(0,eu.isSet)(en.total)?eu.Long.fromValue(en.total):eu.Long.ZERO,index:(0,eu.isSet)(en.index)?eu.Long.fromValue(en.index):eu.Long.ZERO,leafHash:(0,eu.isSet)(en.leafHash)?(0,eu.bytesFromBase64)(en.leafHash):new Uint8Array,aunts:Array.isArray(en?.aunts)?en.aunts.map(en=>(0,eu.bytesFromBase64)(en)):[]}),toJSON(en){let ei={};return void 0!==en.total&&(ei.total=(en.total||eu.Long.ZERO).toString()),void 0!==en.index&&(ei.index=(en.index||eu.Long.ZERO).toString()),void 0!==en.leafHash&&(ei.leafHash=(0,eu.base64FromBytes)(void 0!==en.leafHash?en.leafHash:new Uint8Array)),en.aunts?ei.aunts=en.aunts.map(en=>(0,eu.base64FromBytes)(void 0!==en?en:new Uint8Array)):ei.aunts=[],ei},fromPartial(en){let ei=createBaseProof();return ei.total=void 0!==en.total&&null!==en.total?eu.Long.fromValue(en.total):eu.Long.ZERO,ei.index=void 0!==en.index&&null!==en.index?eu.Long.fromValue(en.index):eu.Long.ZERO,ei.leafHash=en.leafHash??new Uint8Array,ei.aunts=en.aunts?.map(en=>en)||[],ei}},ei.ValueOp={encode:(en,eo=ef.Writer.create())=>(0!==en.key.length&&eo.uint32(10).bytes(en.key),void 0!==en.proof&&ei.Proof.encode(en.proof,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ef.Reader?en:new ef.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseValueOp();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.key=ea.bytes();break;case 2:ed.proof=ei.Proof.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({key:(0,eu.isSet)(en.key)?(0,eu.bytesFromBase64)(en.key):new Uint8Array,proof:(0,eu.isSet)(en.proof)?ei.Proof.fromJSON(en.proof):void 0}),toJSON(en){let eo={};return void 0!==en.key&&(eo.key=(0,eu.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.proof&&(eo.proof=en.proof?ei.Proof.toJSON(en.proof):void 0),eo},fromPartial(en){let eo=createBaseValueOp();return eo.key=en.key??new Uint8Array,eo.proof=void 0!==en.proof&&null!==en.proof?ei.Proof.fromPartial(en.proof):void 0,eo}},ei.DominoOp={encode:(en,ei=ef.Writer.create())=>(""!==en.key&&ei.uint32(10).string(en.key),""!==en.input&&ei.uint32(18).string(en.input),""!==en.output&&ei.uint32(26).string(en.output),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDominoOp();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.key=eo.string();break;case 2:es.input=eo.string();break;case 3:es.output=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({key:(0,eu.isSet)(en.key)?String(en.key):"",input:(0,eu.isSet)(en.input)?String(en.input):"",output:(0,eu.isSet)(en.output)?String(en.output):""}),toJSON(en){let ei={};return void 0!==en.key&&(ei.key=en.key),void 0!==en.input&&(ei.input=en.input),void 0!==en.output&&(ei.output=en.output),ei},fromPartial(en){let ei=createBaseDominoOp();return ei.key=en.key??"",ei.input=en.input??"",ei.output=en.output??"",ei}},ei.ProofOp={encode:(en,ei=ef.Writer.create())=>(""!==en.type&&ei.uint32(10).string(en.type),0!==en.key.length&&ei.uint32(18).bytes(en.key),0!==en.data.length&&ei.uint32(26).bytes(en.data),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseProofOp();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.type=eo.string();break;case 2:es.key=eo.bytes();break;case 3:es.data=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({type:(0,eu.isSet)(en.type)?String(en.type):"",key:(0,eu.isSet)(en.key)?(0,eu.bytesFromBase64)(en.key):new Uint8Array,data:(0,eu.isSet)(en.data)?(0,eu.bytesFromBase64)(en.data):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.type&&(ei.type=en.type),void 0!==en.key&&(ei.key=(0,eu.base64FromBytes)(void 0!==en.key?en.key:new Uint8Array)),void 0!==en.data&&(ei.data=(0,eu.base64FromBytes)(void 0!==en.data?en.data:new Uint8Array)),ei},fromPartial(en){let ei=createBaseProofOp();return ei.type=en.type??"",ei.key=en.key??new Uint8Array,ei.data=en.data??new Uint8Array,ei}},ei.ProofOps={encode(en,eo=ef.Writer.create()){for(let ea of en.ops)ei.ProofOp.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof ef.Reader?en:new ef.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseProofOps();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.ops.push(ei.ProofOp.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({ops:Array.isArray(en?.ops)?en.ops.map(en=>ei.ProofOp.fromJSON(en)):[]}),toJSON(en){let eo={};return en.ops?eo.ops=en.ops.map(en=>en?ei.ProofOp.toJSON(en):void 0):eo.ops=[],eo},fromPartial(en){let eo=createBaseProofOps();return eo.ops=en.ops?.map(en=>ei.ProofOp.fromPartial(en))||[],eo}}},17246:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Block=ei.protobufPackage=void 0;let eu=eo(31258),ef=eo(70159),ep=ed(eo(83789)),em=eo(81457);function createBaseBlock(){return{header:void 0,data:void 0,evidence:void 0,lastCommit:void 0}}ei.protobufPackage="tendermint.types",ei.Block={encode:(en,ei=ep.Writer.create())=>(void 0!==en.header&&eu.Header.encode(en.header,ei.uint32(10).fork()).ldelim(),void 0!==en.data&&eu.Data.encode(en.data,ei.uint32(18).fork()).ldelim(),void 0!==en.evidence&&ef.EvidenceList.encode(en.evidence,ei.uint32(26).fork()).ldelim(),void 0!==en.lastCommit&&eu.Commit.encode(en.lastCommit,ei.uint32(34).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBlock();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.header=eu.Header.decode(eo,eo.uint32());break;case 2:es.data=eu.Data.decode(eo,eo.uint32());break;case 3:es.evidence=ef.EvidenceList.decode(eo,eo.uint32());break;case 4:es.lastCommit=eu.Commit.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({header:(0,em.isSet)(en.header)?eu.Header.fromJSON(en.header):void 0,data:(0,em.isSet)(en.data)?eu.Data.fromJSON(en.data):void 0,evidence:(0,em.isSet)(en.evidence)?ef.EvidenceList.fromJSON(en.evidence):void 0,lastCommit:(0,em.isSet)(en.lastCommit)?eu.Commit.fromJSON(en.lastCommit):void 0}),toJSON(en){let ei={};return void 0!==en.header&&(ei.header=en.header?eu.Header.toJSON(en.header):void 0),void 0!==en.data&&(ei.data=en.data?eu.Data.toJSON(en.data):void 0),void 0!==en.evidence&&(ei.evidence=en.evidence?ef.EvidenceList.toJSON(en.evidence):void 0),void 0!==en.lastCommit&&(ei.lastCommit=en.lastCommit?eu.Commit.toJSON(en.lastCommit):void 0),ei},fromPartial(en){let ei=createBaseBlock();return ei.header=void 0!==en.header&&null!==en.header?eu.Header.fromPartial(en.header):void 0,ei.data=void 0!==en.data&&null!==en.data?eu.Data.fromPartial(en.data):void 0,ei.evidence=void 0!==en.evidence&&null!==en.evidence?ef.EvidenceList.fromPartial(en.evidence):void 0,ei.lastCommit=void 0!==en.lastCommit&&null!==en.lastCommit?eu.Commit.fromPartial(en.lastCommit):void 0,ei}}},70159:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.EvidenceList=ei.LightClientAttackEvidence=ei.DuplicateVoteEvidence=ei.Evidence=ei.protobufPackage=void 0;let eu=eo(31258),ef=eo(85522),ep=eo(23444),em=eo(81457),eg=ed(eo(83789));function createBaseEvidence(){return{duplicateVoteEvidence:void 0,lightClientAttackEvidence:void 0}}function createBaseDuplicateVoteEvidence(){return{voteA:void 0,voteB:void 0,totalVotingPower:em.Long.ZERO,validatorPower:em.Long.ZERO,timestamp:void 0}}function createBaseLightClientAttackEvidence(){return{conflictingBlock:void 0,commonHeight:em.Long.ZERO,byzantineValidators:[],totalVotingPower:em.Long.ZERO,timestamp:void 0}}function createBaseEvidenceList(){return{evidence:[]}}ei.protobufPackage="tendermint.types",ei.Evidence={encode:(en,eo=eg.Writer.create())=>(void 0!==en.duplicateVoteEvidence&&ei.DuplicateVoteEvidence.encode(en.duplicateVoteEvidence,eo.uint32(10).fork()).ldelim(),void 0!==en.lightClientAttackEvidence&&ei.LightClientAttackEvidence.encode(en.lightClientAttackEvidence,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseEvidence();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.duplicateVoteEvidence=ei.DuplicateVoteEvidence.decode(ea,ea.uint32());break;case 2:ed.lightClientAttackEvidence=ei.LightClientAttackEvidence.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({duplicateVoteEvidence:(0,em.isSet)(en.duplicateVoteEvidence)?ei.DuplicateVoteEvidence.fromJSON(en.duplicateVoteEvidence):void 0,lightClientAttackEvidence:(0,em.isSet)(en.lightClientAttackEvidence)?ei.LightClientAttackEvidence.fromJSON(en.lightClientAttackEvidence):void 0}),toJSON(en){let eo={};return void 0!==en.duplicateVoteEvidence&&(eo.duplicateVoteEvidence=en.duplicateVoteEvidence?ei.DuplicateVoteEvidence.toJSON(en.duplicateVoteEvidence):void 0),void 0!==en.lightClientAttackEvidence&&(eo.lightClientAttackEvidence=en.lightClientAttackEvidence?ei.LightClientAttackEvidence.toJSON(en.lightClientAttackEvidence):void 0),eo},fromPartial(en){let eo=createBaseEvidence();return eo.duplicateVoteEvidence=void 0!==en.duplicateVoteEvidence&&null!==en.duplicateVoteEvidence?ei.DuplicateVoteEvidence.fromPartial(en.duplicateVoteEvidence):void 0,eo.lightClientAttackEvidence=void 0!==en.lightClientAttackEvidence&&null!==en.lightClientAttackEvidence?ei.LightClientAttackEvidence.fromPartial(en.lightClientAttackEvidence):void 0,eo}},ei.DuplicateVoteEvidence={encode:(en,ei=eg.Writer.create())=>(void 0!==en.voteA&&eu.Vote.encode(en.voteA,ei.uint32(10).fork()).ldelim(),void 0!==en.voteB&&eu.Vote.encode(en.voteB,ei.uint32(18).fork()).ldelim(),en.totalVotingPower.isZero()||ei.uint32(24).int64(en.totalVotingPower),en.val
4idatorPower.isZero()||ei.uint32(32).int64(en.validatorPower),void 0!==en.timestamp&&ef.Timestamp.encode(en.timestamp,ei.uint32(42).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseDuplicateVoteEvidence();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.voteA=eu.Vote.decode(eo,eo.uint32());break;case 2:es.voteB=eu.Vote.decode(eo,eo.uint32());break;case 3:es.totalVotingPower=eo.int64();break;case 4:es.validatorPower=eo.int64();break;case 5:es.timestamp=ef.Timestamp.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({voteA:(0,em.isSet)(en.voteA)?eu.Vote.fromJSON(en.voteA):void 0,voteB:(0,em.isSet)(en.voteB)?eu.Vote.fromJSON(en.voteB):void 0,totalVotingPower:(0,em.isSet)(en.totalVotingPower)?em.Long.fromValue(en.totalVotingPower):em.Long.ZERO,validatorPower:(0,em.isSet)(en.validatorPower)?em.Long.fromValue(en.validatorPower):em.Long.ZERO,timestamp:(0,em.isSet)(en.timestamp)?(0,em.fromJsonTimestamp)(en.timestamp):void 0}),toJSON(en){let ei={};return void 0!==en.voteA&&(ei.voteA=en.voteA?eu.Vote.toJSON(en.voteA):void 0),void 0!==en.voteB&&(ei.voteB=en.voteB?eu.Vote.toJSON(en.voteB):void 0),void 0!==en.totalVotingPower&&(ei.totalVotingPower=(en.totalVotingPower||em.Long.ZERO).toString()),void 0!==en.validatorPower&&(ei.validatorPower=(en.validatorPower||em.Long.ZERO).toString()),void 0!==en.timestamp&&(ei.timestamp=(0,em.fromTimestamp)(en.timestamp).toISOString()),ei},fromPartial(en){let ei=createBaseDuplicateVoteEvidence();return ei.voteA=void 0!==en.voteA&&null!==en.voteA?eu.Vote.fromPartial(en.voteA):void 0,ei.voteB=void 0!==en.voteB&&null!==en.voteB?eu.Vote.fromPartial(en.voteB):void 0,ei.totalVotingPower=void 0!==en.totalVotingPower&&null!==en.totalVotingPower?em.Long.fromValue(en.totalVotingPower):em.Long.ZERO,ei.validatorPower=void 0!==en.validatorPower&&null!==en.validatorPower?em.Long.fromValue(en.validatorPower):em.Long.ZERO,ei.timestamp=void 0!==en.timestamp&&null!==en.timestamp?ef.Timestamp.fromPartial(en.timestamp):void 0,ei}},ei.LightClientAttackEvidence={encode(en,ei=eg.Writer.create()){for(let eo of(void 0!==en.conflictingBlock&&eu.LightBlock.encode(en.conflictingBlock,ei.uint32(10).fork()).ldelim(),en.commonHeight.isZero()||ei.uint32(16).int64(en.commonHeight),en.byzantineValidators))ep.Validator.encode(eo,ei.uint32(26).fork()).ldelim();return en.totalVotingPower.isZero()||ei.uint32(32).int64(en.totalVotingPower),void 0!==en.timestamp&&ef.Timestamp.encode(en.timestamp,ei.uint32(42).fork()).ldelim(),ei},decode(en,ei){let eo=en instanceof eg.Reader?en:new eg.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseLightClientAttackEvidence();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.conflictingBlock=eu.LightBlock.decode(eo,eo.uint32());break;case 2:es.commonHeight=eo.int64();break;case 3:es.byzantineValidators.push(ep.Validator.decode(eo,eo.uint32()));break;case 4:es.totalVotingPower=eo.int64();break;case 5:es.timestamp=ef.Timestamp.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({conflictingBlock:(0,em.isSet)(en.conflictingBlock)?eu.LightBlock.fromJSON(en.conflictingBlock):void 0,commonHeight:(0,em.isSet)(en.commonHeight)?em.Long.fromValue(en.commonHeight):em.Long.ZERO,byzantineValidators:Array.isArray(en?.byzantineValidators)?en.byzantineValidators.map(en=>ep.Validator.fromJSON(en)):[],totalVotingPower:(0,em.isSet)(en.totalVotingPower)?em.Long.fromValue(en.totalVotingPower):em.Long.ZERO,timestamp:(0,em.isSet)(en.timestamp)?(0,em.fromJsonTimestamp)(en.timestamp):void 0}),toJSON(en){let ei={};return void 0!==en.conflictingBlock&&(ei.conflictingBlock=en.conflictingBlock?eu.LightBlock.toJSON(en.conflictingBlock):void 0),void 0!==en.commonHeight&&(ei.commonHeight=(en.commonHeight||em.Long.ZERO).toString()),en.byzantineValidators?ei.byzantineValidators=en.byzantineValidators.map(en=>en?ep.Validator.toJSON(en):void 0):ei.byzantineValidators=[],void 0!==en.totalVotingPower&&(ei.totalVotingPower=(en.totalVotingPower||em.Long.ZERO).toString()),void 0!==en.timestamp&&(ei.timestamp=(0,em.fromTimestamp)(en.timestamp).toISOString()),ei},fromPartial(en){let ei=createBaseLightClientAttackEvidence();return ei.conflictingBlock=void 0!==en.conflictingBlock&&null!==en.conflictingBlock?eu.LightBlock.fromPartial(en.conflictingBlock):void 0,ei.commonHeight=void 0!==en.commonHeight&&null!==en.commonHeight?em.Long.fromValue(en.commonHeight):em.Long.ZERO,ei.byzantineValidators=en.byzantineValidators?.map(en=>ep.Validator.fromPartial(en))||[],ei.totalVotingPower=void 0!==en.totalVotingPower&&null!==en.totalVotingPower?em.Long.fromValue(en.totalVotingPower):em.Long.ZERO,ei.timestamp=void 0!==en.timestamp&&null!==en.timestamp?ef.Timestamp.fromPartial(en.timestamp):void 0,ei}},ei.EvidenceList={encode(en,eo=eg.Writer.create()){for(let ea of en.evidence)ei.Evidence.encode(ea,eo.uint32(10).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eg.Reader?en:new eg.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseEvidenceList();for(;ea.pos<es;){let en=ea.uint32();en>>>3==1?ed.evidence.push(ei.Evidence.decode(ea,ea.uint32())):ea.skipType(7&en)}return ed},fromJSON:en=>({evidence:Array.isArray(en?.evidence)?en.evidence.map(en=>ei.Evidence.fromJSON(en)):[]}),toJSON(en){let eo={};return en.evidence?eo.evidence=en.evidence.map(en=>en?ei.Evidence.toJSON(en):void 0):eo.evidence=[],eo},fromPartial(en){let eo=createBaseEvidenceList();return eo.evidence=en.evidence?.map(en=>ei.Evidence.fromPartial(en))||[],eo}}},87134:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.HashedParams=ei.VersionParams=ei.ValidatorParams=ei.EvidenceParams=ei.BlockParams=ei.ConsensusParams=ei.protobufPackage=void 0;let eu=eo(70281),ef=eo(81457),ep=ed(eo(83789));function createBaseConsensusParams(){return{block:void 0,evidence:void 0,validator:void 0,version:void 0}}function createBaseBlockParams(){return{maxBytes:ef.Long.ZERO,maxGas:ef.Long.ZERO}}function createBaseEvidenceParams(){return{maxAgeNumBlocks:ef.Long.ZERO,maxAgeDuration:void 0,maxBytes:ef.Long.ZERO}}function createBaseValidatorParams(){return{pubKeyTypes:[]}}function createBaseVersionParams(){return{app:ef.Long.UZERO}}function createBaseHashedParams(){return{blockMaxBytes:ef.Long.ZERO,blockMaxGas:ef.Long.ZERO}}ei.protobufPackage="tendermint.types",ei.ConsensusParams={encode:(en,eo=ep.Writer.create())=>(void 0!==en.block&&ei.BlockParams.encode(en.block,eo.uint32(10).fork()).ldelim(),void 0!==en.evidence&&ei.EvidenceParams.encode(en.evidence,eo.uint32(18).fork()).ldelim(),void 0!==en.validator&&ei.ValidatorParams.encode(en.validator,eo.uint32(26).fork()).ldelim(),void 0!==en.version&&ei.VersionParams.encode(en.version,eo.uint32(34).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseConsensusParams();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.block=ei.BlockParams.decode(ea,ea.uint32());break;case 2:ed.evidence=ei.EvidenceParams.decode(ea,ea.uint32());break;case 3:ed.validator=ei.ValidatorParams.decode(ea,ea.uint32());break;case 4:ed.version=ei.VersionParams.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({block:(0,ef.isSet)(en.block)?ei.BlockParams.fromJSON(en.block):void 0,evidence:(0,ef.isSet)(en.evidence)?ei.EvidenceParams.fromJSON(en.evidence):void 0,validator:(0,ef.isSet)(en.validator)?ei.ValidatorParams.fromJSON(en.validator):void 0,version:(0,ef.isSet)(en.version)?ei.VersionParams.fromJSON(en.version):void 0}),toJSON(en){let eo={};return void 0!==en.block&&(eo.block=en.block?ei.BlockParams.toJSON(en.block):void 0),void 0!==en.evidence&&(eo.evidence=en.evidence?ei.EvidenceParams.toJSON(en.evidence):void 0),void 0!==en.validator&&(eo.validator=en.validator?ei.ValidatorParams.toJSON(en.validator):void 0),void 0!==en.version&&(eo.version=en.version?ei.VersionParams.toJSON(en.version):void 0),eo},fromPartial(en){let eo=createBaseConsensusParams();return eo.block=void 0!==en.block&&null!==en.block?ei.BlockParams.fromPartial(en.block):void 0,eo.evidence=void 0!==en.evidence&&null!==en.evidence?ei.EvidenceParams.fromPartial(en.evidence):void 0,eo.validator=void 0!==en.validator&&null!==en.validator?ei.ValidatorParams.fromPartial(en.validator):void 0,eo.version=void 0!==en.version&&null!==en.version?ei.VersionParams.fromPartial(en.version):void 0,eo}},ei.BlockParams={encode:(en,ei=ep.Writer.create())=>(en.maxBytes.isZero()||ei.uint32(8).int64(en.maxBytes),en.maxGas.isZero()||ei.uint32(16).int64(en.maxGas),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseBlockParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.maxBytes=eo.int64();break;case 2:es.maxGas=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({maxBytes:(0,ef.isSet)(en.maxBytes)?ef.Long.fromValue(en.maxBytes):ef.Long.ZERO,maxGas:(0,ef.isSet)(en.maxGas)?ef.Long.fromValue(en.maxGas):ef.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.maxBytes&&(ei.maxBytes=(en.maxBytes||ef.Long.ZERO).toString()),void 0!==en.maxGas&&(ei.maxGas=(en.maxGas||ef.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseBlockParams();return ei.maxBytes=void 0!==en.maxBytes&&null!==en.maxBytes?ef.Long.fromValue(en.maxBytes):ef.Long.ZERO,ei.maxGas=void 0!==en.maxGas&&null!==en.maxGas?ef.Long.fromValue(en.maxGas):ef.Long.ZERO,ei}},ei.EvidenceParams={encode:(en,ei=ep.Writer.create())=>(en.maxAgeNumBlocks.isZero()||ei.uint32(8).int64(en.maxAgeNumBlocks),void 0!==en.maxAgeDuration&&eu.Duration.encode(en.maxAgeDuration,ei.uint32(18).fork()).ldelim(),en.maxBytes.isZero()||ei.uint32(24).int64(en.maxBytes),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseEvidenceParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.maxAgeNumBlocks=eo.int64();break;case 2:es.maxAgeDuration=eu.Duration.decode(eo,eo.uint32());break;case 3:es.maxBytes=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({maxAgeNumBlocks:(0,ef.isSet)(en.maxAgeNumBlocks)?ef.Long.fromValue(en.maxAgeNumBlocks):ef.Long.ZERO,maxAgeDuration:(0,ef.isSet)(en.maxAgeDuration)?eu.Duration.fromJSON(en.maxAgeDuration):void 0,maxBytes:(0,ef.isSet)(en.maxBytes)?ef.Long.fromValue(en.maxBytes):ef.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.maxAgeNumBlocks&&(ei.maxAgeNumBlocks=(en.maxAgeNumBlocks||ef.Long.ZERO).toString()),void 0!==en.maxAgeDuration&&(ei.maxAgeDuration=en.maxAgeDuration?eu.Duration.toJSON(en.maxAgeDuration):void 0),void 0!==en.maxBytes&&(ei.maxBytes=(en.maxBytes||ef.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseEvidenceParams();return ei.maxAgeNumBlocks=void 0!==en.maxAgeNumBlocks&&null!==en.maxAgeNumBlocks?ef.Long.fromValue(en.maxAgeNumBlocks):ef.Long.ZERO,ei.maxAgeDuration=void 0!==en.maxAgeDuration&&null!==en.maxAgeDuration?eu.Duration.fromPartial(en.maxAgeDuration):void 0,ei.maxBytes=void 0!==en.maxBytes&&null!==en.maxBytes?ef.Long.fromValue(en.maxBytes):ef.Long.ZERO,ei}}
4,ei.ValidatorParams={encode(en,ei=ep.Writer.create()){for(let eo of en.pubKeyTypes)ei.uint32(10).string(eo);return ei},decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidatorParams();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.pubKeyTypes.push(eo.string()):eo.skipType(7&en)}return es},fromJSON:en=>({pubKeyTypes:Array.isArray(en?.pubKeyTypes)?en.pubKeyTypes.map(en=>String(en)):[]}),toJSON(en){let ei={};return en.pubKeyTypes?ei.pubKeyTypes=en.pubKeyTypes.map(en=>en):ei.pubKeyTypes=[],ei},fromPartial(en){let ei=createBaseValidatorParams();return ei.pubKeyTypes=en.pubKeyTypes?.map(en=>en)||[],ei}},ei.VersionParams={encode:(en,ei=ep.Writer.create())=>(en.app.isZero()||ei.uint32(8).uint64(en.app),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseVersionParams();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.app=eo.uint64():eo.skipType(7&en)}return es},fromJSON:en=>({app:(0,ef.isSet)(en.app)?ef.Long.fromValue(en.app):ef.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.app&&(ei.app=(en.app||ef.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseVersionParams();return ei.app=void 0!==en.app&&null!==en.app?ef.Long.fromValue(en.app):ef.Long.UZERO,ei}},ei.HashedParams={encode:(en,ei=ep.Writer.create())=>(en.blockMaxBytes.isZero()||ei.uint32(8).int64(en.blockMaxBytes),en.blockMaxGas.isZero()||ei.uint32(16).int64(en.blockMaxGas),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseHashedParams();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.blockMaxBytes=eo.int64();break;case 2:es.blockMaxGas=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({blockMaxBytes:(0,ef.isSet)(en.blockMaxBytes)?ef.Long.fromValue(en.blockMaxBytes):ef.Long.ZERO,blockMaxGas:(0,ef.isSet)(en.blockMaxGas)?ef.Long.fromValue(en.blockMaxGas):ef.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.blockMaxBytes&&(ei.blockMaxBytes=(en.blockMaxBytes||ef.Long.ZERO).toString()),void 0!==en.blockMaxGas&&(ei.blockMaxGas=(en.blockMaxGas||ef.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseHashedParams();return ei.blockMaxBytes=void 0!==en.blockMaxBytes&&null!==en.blockMaxBytes?ef.Long.fromValue(en.blockMaxBytes):ef.Long.ZERO,ei.blockMaxGas=void 0!==en.blockMaxGas&&null!==en.blockMaxGas?ef.Long.fromValue(en.blockMaxGas):ef.Long.ZERO,ei}}},31258:function(en,ei,eo){"use strict";var ea,es,ed=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),eu=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ef=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ed(ei,en,eo);return eu(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.TxProof=ei.BlockMeta=ei.LightBlock=ei.SignedHeader=ei.Proposal=ei.CommitSig=ei.Commit=ei.Vote=ei.Data=ei.Header=ei.BlockID=ei.Part=ei.PartSetHeader=ei.signedMsgTypeToJSON=ei.signedMsgTypeFromJSON=ei.SignedMsgType=ei.blockIDFlagToJSON=ei.blockIDFlagFromJSON=ei.BlockIDFlag=ei.protobufPackage=void 0;let ep=eo(31494),em=eo(31083),eg=eo(85522),ey=eo(23444),eb=eo(81457),eS=ef(eo(83789));function blockIDFlagFromJSON(en){switch(en){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return ea.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return ea.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return ea.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return ea.BLOCK_ID_FLAG_NIL;default:return ea.UNRECOGNIZED}}function blockIDFlagToJSON(en){switch(en){case ea.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case ea.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case ea.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case ea.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";case ea.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function signedMsgTypeFromJSON(en){switch(en){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return es.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return es.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return es.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return es.SIGNED_MSG_TYPE_PROPOSAL;default:return es.UNRECOGNIZED}}function signedMsgTypeToJSON(en){switch(en){case es.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case es.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case es.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case es.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";case es.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function createBasePartSetHeader(){return{total:0,hash:new Uint8Array}}function createBasePart(){return{index:0,bytes:new Uint8Array,proof:void 0}}function createBaseBlockID(){return{hash:new Uint8Array,partSetHeader:void 0}}function createBaseHeader(){return{version:void 0,chainId:"",height:eb.Long.ZERO,time:void 0,lastBlockId:void 0,lastCommitHash:new Uint8Array,dataHash:new Uint8Array,validatorsHash:new Uint8Array,nextValidatorsHash:new Uint8Array,consensusHash:new Uint8Array,appHash:new Uint8Array,lastResultsHash:new Uint8Array,evidenceHash:new Uint8Array,proposerAddress:new Uint8Array}}function createBaseData(){return{txs:[]}}function createBaseVote(){return{type:0,height:eb.Long.ZERO,round:0,blockId:void 0,timestamp:void 0,validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}function createBaseCommit(){return{height:eb.Long.ZERO,round:0,blockId:void 0,signatures:[]}}function createBaseCommitSig(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}function createBaseProposal(){return{type:0,height:eb.Long.ZERO,round:0,polRound:0,blockId:void 0,timestamp:void 0,signature:new Uint8Array}}function createBaseSignedHeader(){return{header:void 0,commit:void 0}}function createBaseLightBlock(){return{signedHeader:void 0,validatorSet:void 0}}function createBaseBlockMeta(){return{blockId:void 0,blockSize:eb.Long.ZERO,header:void 0,numTxs:eb.Long.ZERO}}function createBaseTxProof(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}ei.protobufPackage="tendermint.types",function(en){en[en.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",en[en.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",en[en.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",en[en.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ea=ei.BlockIDFlag||(ei.BlockIDFlag={})),ei.blockIDFlagFromJSON=blockIDFlagFromJSON,ei.blockIDFlagToJSON=blockIDFlagToJSON,function(en){en[en.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",en[en.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",en[en.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",en[en.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",en[en.UNRECOGNIZED=-1]="UNRECOGNIZED"}(es=ei.SignedMsgType||(ei.SignedMsgType={})),ei.signedMsgTypeFromJSON=signedMsgTypeFromJSON,ei.signedMsgTypeToJSON=signedMsgTypeToJSON,ei.PartSetHeader={encode:(en,ei=eS.Writer.create())=>(0!==en.total&&ei.uint32(8).uint32(en.total),0!==en.hash.length&&ei.uint32(18).bytes(en.hash),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePartSetHeader();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.total=eo.uint32();break;case 2:es.hash=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({total:(0,eb.isSet)(en.total)?Number(en.total):0,hash:(0,eb.isSet)(en.hash)?(0,eb.bytesFromBase64)(en.hash):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.total&&(ei.total=Math.round(en.total)),void 0!==en.hash&&(ei.hash=(0,eb.base64FromBytes)(void 0!==en.hash?en.hash:new Uint8Array)),ei},fromPartial(en){let ei=createBasePartSetHeader();return ei.total=en.total??0,ei.hash=en.hash??new Uint8Array,ei}},ei.Part={encode:(en,ei=eS.Writer.create())=>(0!==en.index&&ei.uint32(8).uint32(en.index),0!==en.bytes.length&&ei.uint32(18).bytes(en.bytes),void 0!==en.proof&&ep.Proof.encode(en.proof,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBasePart();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.index=eo.uint32();break;case 2:es.bytes=eo.bytes();break;case 3:es.proof=ep.Proof.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({index:(0,eb.isSet)(en.index)?Number(en.index):0,bytes:(0,eb.isSet)(en.bytes)?(0,eb.bytesFromBase64)(en.bytes):new Uint8Array,proof:(0,eb.isSet)(en.proof)?ep.Proof.fromJSON(en.proof):void 0}),toJSON(en){let ei={};return void 0!==en.index&&(ei.index=Math.round(en.index)),void 0!==en.bytes&&(ei.bytes=(0,eb.base64FromBytes)(void 0!==en.bytes?en.bytes:new Uint8Array)),void 0!==en.proof&&(ei.proof=en.proof?ep.Proof.toJSON(en.proof):void 0),ei},fromPartial(en){let ei=createBasePart();return ei.index=en.index??0,ei.bytes=en.bytes??new Uint8Array,ei.proof=void 0!==en.proof&&null!==en.proof?ep.Proof.fromPartial(en.proof):void 0,ei}},ei.BlockID={encode:(en,eo=eS.Writer.create())=>(0!==en.hash.length&&eo.uint32(10).bytes(en.hash),void 0!==en.partSetHeader&&ei.PartSetHeader.encode(en.partSetHeader,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseBlockID();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.hash=ea.bytes();break;case 2:ed.partSetHeader=ei.PartSetHeader.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({hash:(0,eb.isSet)(en.hash)?(0,eb.bytesFromBase64)(en.hash):new Uint8Array,partSetHeader:(0,eb.isSet)(en.partSetHeader)?ei.PartSetHeader.fromJSON(en.partSetHeader):void 0}),toJSON(en){let eo={};return void 0!==en.hash&&(eo.hash=(0,eb.base64FromBytes)(void 0!==en.hash?en.hash:new Uint8Array)),void 0!==en.partSetHeader&&(eo.partSetHeader=en.partSetHeader?ei.PartSetHeader.toJSON(en.partSetHeader):void 0),eo},fromPartial(en){let eo=createBaseBlockID();return eo.hash=en.hash??new Uint8Array,eo.partSetHeader=void 0!==en.partSetHeader&&null!==en.partSetHeader?ei.PartSetHeader.fromPartial(en.partSetHeader):void 0,eo}},ei.Header={encode:(en,eo=eS.Writer.create())=>(void 0!==en.version&&em.Consensus.encode(en.version,eo.uint32(10).fork()).ldelim(),""!==en.chainId&&eo.uint32(18).string(en.chainId),en.height.isZero()||eo.uint32(24).int64(en.height),void 0!==en.time&&eg.Timestamp.encode(en.time,eo.uint32(34).fork()).ldelim(),void 0!==en.lastBlockId&&ei.BlockID.encode(en.lastBlockId,eo.uint32(42).fork()).ldelim(),0!==en.lastCommitHash.length&&eo.uint32(50).bytes(en.lastCommitHash),0!==en.dataHash.length&&eo.uint32(58).bytes(en.dataHash),0!==en.validatorsHash.length&&eo.uint32(66).bytes(en.validatorsHash
4),0!==en.nextValidatorsHash.length&&eo.uint32(74).bytes(en.nextValidatorsHash),0!==en.consensusHash.length&&eo.uint32(82).bytes(en.consensusHash),0!==en.appHash.length&&eo.uint32(90).bytes(en.appHash),0!==en.lastResultsHash.length&&eo.uint32(98).bytes(en.lastResultsHash),0!==en.evidenceHash.length&&eo.uint32(106).bytes(en.evidenceHash),0!==en.proposerAddress.length&&eo.uint32(114).bytes(en.proposerAddress),eo),decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseHeader();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.version=em.Consensus.decode(ea,ea.uint32());break;case 2:ed.chainId=ea.string();break;case 3:ed.height=ea.int64();break;case 4:ed.time=eg.Timestamp.decode(ea,ea.uint32());break;case 5:ed.lastBlockId=ei.BlockID.decode(ea,ea.uint32());break;case 6:ed.lastCommitHash=ea.bytes();break;case 7:ed.dataHash=ea.bytes();break;case 8:ed.validatorsHash=ea.bytes();break;case 9:ed.nextValidatorsHash=ea.bytes();break;case 10:ed.consensusHash=ea.bytes();break;case 11:ed.appHash=ea.bytes();break;case 12:ed.lastResultsHash=ea.bytes();break;case 13:ed.evidenceHash=ea.bytes();break;case 14:ed.proposerAddress=ea.bytes();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({version:(0,eb.isSet)(en.version)?em.Consensus.fromJSON(en.version):void 0,chainId:(0,eb.isSet)(en.chainId)?String(en.chainId):"",height:(0,eb.isSet)(en.height)?eb.Long.fromValue(en.height):eb.Long.ZERO,time:(0,eb.isSet)(en.time)?(0,eb.fromJsonTimestamp)(en.time):void 0,lastBlockId:(0,eb.isSet)(en.lastBlockId)?ei.BlockID.fromJSON(en.lastBlockId):void 0,lastCommitHash:(0,eb.isSet)(en.lastCommitHash)?(0,eb.bytesFromBase64)(en.lastCommitHash):new Uint8Array,dataHash:(0,eb.isSet)(en.dataHash)?(0,eb.bytesFromBase64)(en.dataHash):new Uint8Array,validatorsHash:(0,eb.isSet)(en.validatorsHash)?(0,eb.bytesFromBase64)(en.validatorsHash):new Uint8Array,nextValidatorsHash:(0,eb.isSet)(en.nextValidatorsHash)?(0,eb.bytesFromBase64)(en.nextValidatorsHash):new Uint8Array,consensusHash:(0,eb.isSet)(en.consensusHash)?(0,eb.bytesFromBase64)(en.consensusHash):new Uint8Array,appHash:(0,eb.isSet)(en.appHash)?(0,eb.bytesFromBase64)(en.appHash):new Uint8Array,lastResultsHash:(0,eb.isSet)(en.lastResultsHash)?(0,eb.bytesFromBase64)(en.lastResultsHash):new Uint8Array,evidenceHash:(0,eb.isSet)(en.evidenceHash)?(0,eb.bytesFromBase64)(en.evidenceHash):new Uint8Array,proposerAddress:(0,eb.isSet)(en.proposerAddress)?(0,eb.bytesFromBase64)(en.proposerAddress):new Uint8Array}),toJSON(en){let eo={};return void 0!==en.version&&(eo.version=en.version?em.Consensus.toJSON(en.version):void 0),void 0!==en.chainId&&(eo.chainId=en.chainId),void 0!==en.height&&(eo.height=(en.height||eb.Long.ZERO).toString()),void 0!==en.time&&(eo.time=(0,eb.fromTimestamp)(en.time).toISOString()),void 0!==en.lastBlockId&&(eo.lastBlockId=en.lastBlockId?ei.BlockID.toJSON(en.lastBlockId):void 0),void 0!==en.lastCommitHash&&(eo.lastCommitHash=(0,eb.base64FromBytes)(void 0!==en.lastCommitHash?en.lastCommitHash:new Uint8Array)),void 0!==en.dataHash&&(eo.dataHash=(0,eb.base64FromBytes)(void 0!==en.dataHash?en.dataHash:new Uint8Array)),void 0!==en.validatorsHash&&(eo.validatorsHash=(0,eb.base64FromBytes)(void 0!==en.validatorsHash?en.validatorsHash:new Uint8Array)),void 0!==en.nextValidatorsHash&&(eo.nextValidatorsHash=(0,eb.base64FromBytes)(void 0!==en.nextValidatorsHash?en.nextValidatorsHash:new Uint8Array)),void 0!==en.consensusHash&&(eo.consensusHash=(0,eb.base64FromBytes)(void 0!==en.consensusHash?en.consensusHash:new Uint8Array)),void 0!==en.appHash&&(eo.appHash=(0,eb.base64FromBytes)(void 0!==en.appHash?en.appHash:new Uint8Array)),void 0!==en.lastResultsHash&&(eo.lastResultsHash=(0,eb.base64FromBytes)(void 0!==en.lastResultsHash?en.lastResultsHash:new Uint8Array)),void 0!==en.evidenceHash&&(eo.evidenceHash=(0,eb.base64FromBytes)(void 0!==en.evidenceHash?en.evidenceHash:new Uint8Array)),void 0!==en.proposerAddress&&(eo.proposerAddress=(0,eb.base64FromBytes)(void 0!==en.proposerAddress?en.proposerAddress:new Uint8Array)),eo},fromPartial(en){let eo=createBaseHeader();return eo.version=void 0!==en.version&&null!==en.version?em.Consensus.fromPartial(en.version):void 0,eo.chainId=en.chainId??"",eo.height=void 0!==en.height&&null!==en.height?eb.Long.fromValue(en.height):eb.Long.ZERO,eo.time=void 0!==en.time&&null!==en.time?eg.Timestamp.fromPartial(en.time):void 0,eo.lastBlockId=void 0!==en.lastBlockId&&null!==en.lastBlockId?ei.BlockID.fromPartial(en.lastBlockId):void 0,eo.lastCommitHash=en.lastCommitHash??new Uint8Array,eo.dataHash=en.dataHash??new Uint8Array,eo.validatorsHash=en.validatorsHash??new Uint8Array,eo.nextValidatorsHash=en.nextValidatorsHash??new Uint8Array,eo.consensusHash=en.consensusHash??new Uint8Array,eo.appHash=en.appHash??new Uint8Array,eo.lastResultsHash=en.lastResultsHash??new Uint8Array,eo.evidenceHash=en.evidenceHash??new Uint8Array,eo.proposerAddress=en.proposerAddress??new Uint8Array,eo}},ei.Data={encode(en,ei=eS.Writer.create()){for(let eo of en.txs)ei.uint32(10).bytes(eo);return ei},decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseData();for(;eo.pos<ea;){let en=eo.uint32();en>>>3==1?es.txs.push(eo.bytes()):eo.skipType(7&en)}return es},fromJSON:en=>({txs:Array.isArray(en?.txs)?en.txs.map(en=>(0,eb.bytesFromBase64)(en)):[]}),toJSON(en){let ei={};return en.txs?ei.txs=en.txs.map(en=>(0,eb.base64FromBytes)(void 0!==en?en:new Uint8Array)):ei.txs=[],ei},fromPartial(en){let ei=createBaseData();return ei.txs=en.txs?.map(en=>en)||[],ei}},ei.Vote={encode:(en,eo=eS.Writer.create())=>(0!==en.type&&eo.uint32(8).int32(en.type),en.height.isZero()||eo.uint32(16).int64(en.height),0!==en.round&&eo.uint32(24).int32(en.round),void 0!==en.blockId&&ei.BlockID.encode(en.blockId,eo.uint32(34).fork()).ldelim(),void 0!==en.timestamp&&eg.Timestamp.encode(en.timestamp,eo.uint32(42).fork()).ldelim(),0!==en.validatorAddress.length&&eo.uint32(50).bytes(en.validatorAddress),0!==en.validatorIndex&&eo.uint32(56).int32(en.validatorIndex),0!==en.signature.length&&eo.uint32(66).bytes(en.signature),eo),decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseVote();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.type=ea.int32();break;case 2:ed.height=ea.int64();break;case 3:ed.round=ea.int32();break;case 4:ed.blockId=ei.BlockID.decode(ea,ea.uint32());break;case 5:ed.timestamp=eg.Timestamp.decode(ea,ea.uint32());break;case 6:ed.validatorAddress=ea.bytes();break;case 7:ed.validatorIndex=ea.int32();break;case 8:ed.signature=ea.bytes();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({type:(0,eb.isSet)(en.type)?signedMsgTypeFromJSON(en.type):0,height:(0,eb.isSet)(en.height)?eb.Long.fromValue(en.height):eb.Long.ZERO,round:(0,eb.isSet)(en.round)?Number(en.round):0,blockId:(0,eb.isSet)(en.blockId)?ei.BlockID.fromJSON(en.blockId):void 0,timestamp:(0,eb.isSet)(en.timestamp)?(0,eb.fromJsonTimestamp)(en.timestamp):void 0,validatorAddress:(0,eb.isSet)(en.validatorAddress)?(0,eb.bytesFromBase64)(en.validatorAddress):new Uint8Array,validatorIndex:(0,eb.isSet)(en.validatorIndex)?Number(en.validatorIndex):0,signature:(0,eb.isSet)(en.signature)?(0,eb.bytesFromBase64)(en.signature):new Uint8Array}),toJSON(en){let eo={};return void 0!==en.type&&(eo.type=signedMsgTypeToJSON(en.type)),void 0!==en.height&&(eo.height=(en.height||eb.Long.ZERO).toString()),void 0!==en.round&&(eo.round=Math.round(en.round)),void 0!==en.blockId&&(eo.blockId=en.blockId?ei.BlockID.toJSON(en.blockId):void 0),void 0!==en.timestamp&&(eo.timestamp=(0,eb.fromTimestamp)(en.timestamp).toISOString()),void 0!==en.validatorAddress&&(eo.validatorAddress=(0,eb.base64FromBytes)(void 0!==en.validatorAddress?en.validatorAddress:new Uint8Array)),void 0!==en.validatorIndex&&(eo.validatorIndex=Math.round(en.validatorIndex)),void 0!==en.signature&&(eo.signature=(0,eb.base64FromBytes)(void 0!==en.signature?en.signature:new Uint8Array)),eo},fromPartial(en){let eo=createBaseVote();return eo.type=en.type??0,eo.height=void 0!==en.height&&null!==en.height?eb.Long.fromValue(en.height):eb.Long.ZERO,eo.round=en.round??0,eo.blockId=void 0!==en.blockId&&null!==en.blockId?ei.BlockID.fromPartial(en.blockId):void 0,eo.timestamp=void 0!==en.timestamp&&null!==en.timestamp?eg.Timestamp.fromPartial(en.timestamp):void 0,eo.validatorAddress=en.validatorAddress??new Uint8Array,eo.validatorIndex=en.validatorIndex??0,eo.signature=en.signature??new Uint8Array,eo}},ei.Commit={encode(en,eo=eS.Writer.create()){for(let ea of(en.height.isZero()||eo.uint32(8).int64(en.height),0!==en.round&&eo.uint32(16).int32(en.round),void 0!==en.blockId&&ei.BlockID.encode(en.blockId,eo.uint32(26).fork()).ldelim(),en.signatures))ei.CommitSig.encode(ea,eo.uint32(34).fork()).ldelim();return eo},decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseCommit();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.height=ea.int64();break;case 2:ed.round=ea.int32();break;case 3:ed.blockId=ei.BlockID.decode(ea,ea.uint32());break;case 4:ed.signatures.push(ei.CommitSig.decode(ea,ea.uint32()));break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({height:(0,eb.isSet)(en.height)?eb.Long.fromValue(en.height):eb.Long.ZERO,round:(0,eb.isSet)(en.round)?Number(en.round):0,blockId:(0,eb.isSet)(en.blockId)?ei.BlockID.fromJSON(en.blockId):void 0,signatures:Array.isArray(en?.signatures)?en.signatures.map(e
4n=>ei.CommitSig.fromJSON(en)):[]}),toJSON(en){let eo={};return void 0!==en.height&&(eo.height=(en.height||eb.Long.ZERO).toString()),void 0!==en.round&&(eo.round=Math.round(en.round)),void 0!==en.blockId&&(eo.blockId=en.blockId?ei.BlockID.toJSON(en.blockId):void 0),en.signatures?eo.signatures=en.signatures.map(en=>en?ei.CommitSig.toJSON(en):void 0):eo.signatures=[],eo},fromPartial(en){let eo=createBaseCommit();return eo.height=void 0!==en.height&&null!==en.height?eb.Long.fromValue(en.height):eb.Long.ZERO,eo.round=en.round??0,eo.blockId=void 0!==en.blockId&&null!==en.blockId?ei.BlockID.fromPartial(en.blockId):void 0,eo.signatures=en.signatures?.map(en=>ei.CommitSig.fromPartial(en))||[],eo}},ei.CommitSig={encode:(en,ei=eS.Writer.create())=>(0!==en.blockIdFlag&&ei.uint32(8).int32(en.blockIdFlag),0!==en.validatorAddress.length&&ei.uint32(18).bytes(en.validatorAddress),void 0!==en.timestamp&&eg.Timestamp.encode(en.timestamp,ei.uint32(26).fork()).ldelim(),0!==en.signature.length&&ei.uint32(34).bytes(en.signature),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseCommitSig();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.blockIdFlag=eo.int32();break;case 2:es.validatorAddress=eo.bytes();break;case 3:es.timestamp=eg.Timestamp.decode(eo,eo.uint32());break;case 4:es.signature=eo.bytes();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({blockIdFlag:(0,eb.isSet)(en.blockIdFlag)?blockIDFlagFromJSON(en.blockIdFlag):0,validatorAddress:(0,eb.isSet)(en.validatorAddress)?(0,eb.bytesFromBase64)(en.validatorAddress):new Uint8Array,timestamp:(0,eb.isSet)(en.timestamp)?(0,eb.fromJsonTimestamp)(en.timestamp):void 0,signature:(0,eb.isSet)(en.signature)?(0,eb.bytesFromBase64)(en.signature):new Uint8Array}),toJSON(en){let ei={};return void 0!==en.blockIdFlag&&(ei.blockIdFlag=blockIDFlagToJSON(en.blockIdFlag)),void 0!==en.validatorAddress&&(ei.validatorAddress=(0,eb.base64FromBytes)(void 0!==en.validatorAddress?en.validatorAddress:new Uint8Array)),void 0!==en.timestamp&&(ei.timestamp=(0,eb.fromTimestamp)(en.timestamp).toISOString()),void 0!==en.signature&&(ei.signature=(0,eb.base64FromBytes)(void 0!==en.signature?en.signature:new Uint8Array)),ei},fromPartial(en){let ei=createBaseCommitSig();return ei.blockIdFlag=en.blockIdFlag??0,ei.validatorAddress=en.validatorAddress??new Uint8Array,ei.timestamp=void 0!==en.timestamp&&null!==en.timestamp?eg.Timestamp.fromPartial(en.timestamp):void 0,ei.signature=en.signature??new Uint8Array,ei}},ei.Proposal={encode:(en,eo=eS.Writer.create())=>(0!==en.type&&eo.uint32(8).int32(en.type),en.height.isZero()||eo.uint32(16).int64(en.height),0!==en.round&&eo.uint32(24).int32(en.round),0!==en.polRound&&eo.uint32(32).int32(en.polRound),void 0!==en.blockId&&ei.BlockID.encode(en.blockId,eo.uint32(42).fork()).ldelim(),void 0!==en.timestamp&&eg.Timestamp.encode(en.timestamp,eo.uint32(50).fork()).ldelim(),0!==en.signature.length&&eo.uint32(58).bytes(en.signature),eo),decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseProposal();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.type=ea.int32();break;case 2:ed.height=ea.int64();break;case 3:ed.round=ea.int32();break;case 4:ed.polRound=ea.int32();break;case 5:ed.blockId=ei.BlockID.decode(ea,ea.uint32());break;case 6:ed.timestamp=eg.Timestamp.decode(ea,ea.uint32());break;case 7:ed.signature=ea.bytes();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({type:(0,eb.isSet)(en.type)?signedMsgTypeFromJSON(en.type):0,height:(0,eb.isSet)(en.height)?eb.Long.fromValue(en.height):eb.Long.ZERO,round:(0,eb.isSet)(en.round)?Number(en.round):0,polRound:(0,eb.isSet)(en.polRound)?Number(en.polRound):0,blockId:(0,eb.isSet)(en.blockId)?ei.BlockID.fromJSON(en.blockId):void 0,timestamp:(0,eb.isSet)(en.timestamp)?(0,eb.fromJsonTimestamp)(en.timestamp):void 0,signature:(0,eb.isSet)(en.signature)?(0,eb.bytesFromBase64)(en.signature):new Uint8Array}),toJSON(en){let eo={};return void 0!==en.type&&(eo.type=signedMsgTypeToJSON(en.type)),void 0!==en.height&&(eo.height=(en.height||eb.Long.ZERO).toString()),void 0!==en.round&&(eo.round=Math.round(en.round)),void 0!==en.polRound&&(eo.polRound=Math.round(en.polRound)),void 0!==en.blockId&&(eo.blockId=en.blockId?ei.BlockID.toJSON(en.blockId):void 0),void 0!==en.timestamp&&(eo.timestamp=(0,eb.fromTimestamp)(en.timestamp).toISOString()),void 0!==en.signature&&(eo.signature=(0,eb.base64FromBytes)(void 0!==en.signature?en.signature:new Uint8Array)),eo},fromPartial(en){let eo=createBaseProposal();return eo.type=en.type??0,eo.height=void 0!==en.height&&null!==en.height?eb.Long.fromValue(en.height):eb.Long.ZERO,eo.round=en.round??0,eo.polRound=en.polRound??0,eo.blockId=void 0!==en.blockId&&null!==en.blockId?ei.BlockID.fromPartial(en.blockId):void 0,eo.timestamp=void 0!==en.timestamp&&null!==en.timestamp?eg.Timestamp.fromPartial(en.timestamp):void 0,eo.signature=en.signature??new Uint8Array,eo}},ei.SignedHeader={encode:(en,eo=eS.Writer.create())=>(void 0!==en.header&&ei.Header.encode(en.header,eo.uint32(10).fork()).ldelim(),void 0!==en.commit&&ei.Commit.encode(en.commit,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseSignedHeader();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.header=ei.Header.decode(ea,ea.uint32());break;case 2:ed.commit=ei.Commit.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({header:(0,eb.isSet)(en.header)?ei.Header.fromJSON(en.header):void 0,commit:(0,eb.isSet)(en.commit)?ei.Commit.fromJSON(en.commit):void 0}),toJSON(en){let eo={};return void 0!==en.header&&(eo.header=en.header?ei.Header.toJSON(en.header):void 0),void 0!==en.commit&&(eo.commit=en.commit?ei.Commit.toJSON(en.commit):void 0),eo},fromPartial(en){let eo=createBaseSignedHeader();return eo.header=void 0!==en.header&&null!==en.header?ei.Header.fromPartial(en.header):void 0,eo.commit=void 0!==en.commit&&null!==en.commit?ei.Commit.fromPartial(en.commit):void 0,eo}},ei.LightBlock={encode:(en,eo=eS.Writer.create())=>(void 0!==en.signedHeader&&ei.SignedHeader.encode(en.signedHeader,eo.uint32(10).fork()).ldelim(),void 0!==en.validatorSet&&ey.ValidatorSet.encode(en.validatorSet,eo.uint32(18).fork()).ldelim(),eo),decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseLightBlock();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.signedHeader=ei.SignedHeader.decode(ea,ea.uint32());break;
4case 2:ed.validatorSet=ey.ValidatorSet.decode(ea,ea.uint32());break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({signedHeader:(0,eb.isSet)(en.signedHeader)?ei.SignedHeader.fromJSON(en.signedHeader):void 0,validatorSet:(0,eb.isSet)(en.validatorSet)?ey.ValidatorSet.fromJSON(en.validatorSet):void 0}),toJSON(en){let eo={};return void 0!==en.signedHeader&&(eo.signedHeader=en.signedHeader?ei.SignedHeader.toJSON(en.signedHeader):void 0),void 0!==en.validatorSet&&(eo.validatorSet=en.validatorSet?ey.ValidatorSet.toJSON(en.validatorSet):void 0),eo},fromPartial(en){let eo=createBaseLightBlock();return eo.signedHeader=void 0!==en.signedHeader&&null!==en.signedHeader?ei.SignedHeader.fromPartial(en.signedHeader):void 0,eo.validatorSet=void 0!==en.validatorSet&&null!==en.validatorSet?ey.ValidatorSet.fromPartial(en.validatorSet):void 0,eo}},ei.BlockMeta={encode:(en,eo=eS.Writer.create())=>(void 0!==en.blockId&&ei.BlockID.encode(en.blockId,eo.uint32(10).fork()).ldelim(),en.blockSize.isZero()||eo.uint32(16).int64(en.blockSize),void 0!==en.header&&ei.Header.encode(en.header,eo.uint32(26).fork()).ldelim(),en.numTxs.isZero()||eo.uint32(32).int64(en.numTxs),eo),decode(en,eo){let ea=en instanceof eS.Reader?en:new eS.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseBlockMeta();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.blockId=ei.BlockID.decode(ea,ea.uint32());break;case 2:ed.blockSize=ea.int64();break;case 3:ed.header=ei.Header.decode(ea,ea.uint32());break;case 4:ed.numTxs=ea.int64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({blockId:(0,eb.isSet)(en.blockId)?ei.BlockID.fromJSON(en.blockId):void 0,blockSize:(0,eb.isSet)(en.blockSize)?eb.Long.fromValue(en.blockSize):eb.Long.ZERO,header:(0,eb.isSet)(en.header)?ei.Header.fromJSON(en.header):void 0,numTxs:(0,eb.isSet)(en.numTxs)?eb.Long.fromValue(en.numTxs):eb.Long.ZERO}),toJSON(en){let eo={};return void 0!==en.blockId&&(eo.blockId=en.blockId?ei.BlockID.toJSON(en.blockId):void 0),void 0!==en.blockSize&&(eo.blockSize=(en.blockSize||eb.Long.ZERO).toString()),void 0!==en.header&&(eo.header=en.header?ei.Header.toJSON(en.header):void 0),void 0!==en.numTxs&&(eo.numTxs=(en.numTxs||eb.Long.ZERO).toString()),eo},fromPartial(en){let eo=createBaseBlockMeta();return eo.blockId=void 0!==en.blockId&&null!==en.blockId?ei.BlockID.fromPartial(en.blockId):void 0,eo.blockSize=void 0!==en.blockSize&&null!==en.blockSize?eb.Long.fromValue(en.blockSize):eb.Long.ZERO,eo.header=void 0!==en.header&&null!==en.header?ei.Header.fromPartial(en.header):void 0,eo.numTxs=void 0!==en.numTxs&&null!==en.numTxs?eb.Long.fromValue(en.numTxs):eb.Long.ZERO,eo}},ei.TxProof={encode:(en,ei=eS.Writer.create())=>(0!==en.rootHash.length&&ei.uint32(10).bytes(en.rootHash),0!==en.data.length&&ei.uint32(18).bytes(en.data),void 0!==en.proof&&ep.Proof.encode(en.proof,ei.uint32(26).fork()).ldelim(),ei),decode(en,ei){let eo=en instanceof eS.Reader?en:new eS.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseTxProof();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.rootHash=eo.bytes();break;case 2:es.data=eo.bytes();break;case 3:es.proof=ep.Proof.decode(eo,eo.uint32());break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({rootHash:(0,eb.isSet)(en.rootHash)?(0,eb.bytesFromBase64)(en.rootHash):new Uint8Array,data:(0,eb.isSet)(en.data)?(0,eb.bytesFromBase64)(en.data):new Uint8Array,proof:(0,eb.isSet)(en.proof)?ep.Proof.fromJSON(en.proof):void 0}),toJSON(en){let ei={};return void 0!==en.rootHash&&(ei.rootHash=(0,eb.base64FromBytes)(void 0!==en.rootHash?en.rootHash:new Uint8Array)),void 0!==en.data&&(ei.data=(0,eb.base64FromBytes)(void 0!==en.data?en.data:new Uint8Array)),void 0!==en.proof&&(ei.proof=en.proof?ep.Proof.toJSON(en.proof):void 0),ei},fromPartial(en){let ei=createBaseTxProof();return ei.rootHash=en.rootHash??new Uint8Array,ei.data=en.data??new Uint8Array,ei.proof=void 0!==en.proof&&null!==en.proof?ep.Proof.fromPartial(en.proof):void 0,ei}}},23444:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}
4),ei.SimpleValidator=ei.Validator=ei.ValidatorSet=ei.protobufPackage=void 0;let eu=eo(30984),ef=eo(81457),ep=ed(eo(83789));function createBaseValidatorSet(){return{validators:[],proposer:void 0,totalVotingPower:ef.Long.ZERO}}function createBaseValidator(){return{address:new Uint8Array,pubKey:void 0,votingPower:ef.Long.ZERO,proposerPriority:ef.Long.ZERO}}function createBaseSimpleValidator(){return{pubKey:void 0,votingPower:ef.Long.ZERO}}ei.protobufPackage="tendermint.types",ei.ValidatorSet={encode(en,eo=ep.Writer.create()){for(let ea of en.validators)ei.Validator.encode(ea,eo.uint32(10).fork()).ldelim();return void 0!==en.proposer&&ei.Validator.encode(en.proposer,eo.uint32(18).fork()).ldelim(),en.totalVotingPower.isZero()||eo.uint32(24).int64(en.totalVotingPower),eo},decode(en,eo){let ea=en instanceof ep.Reader?en:new ep.Reader(en),es=void 0===eo?ea.len:ea.pos+eo,ed=createBaseValidatorSet();for(;ea.pos<es;){let en=ea.uint32();switch(en>>>3){case 1:ed.validators.push(ei.Validator.decode(ea,ea.uint32()));break;case 2:ed.proposer=ei.Validator.decode(ea,ea.uint32());break;case 3:ed.totalVotingPower=ea.int64();break;default:ea.skipType(7&en)}}return ed},fromJSON:en=>({validators:Array.isArray(en?.validators)?en.validators.map(en=>ei.Validator.fromJSON(en)):[],proposer:(0,ef.isSet)(en.proposer)?ei.Validator.fromJSON(en.proposer):void 0,totalVotingPower:(0,ef.isSet)(en.totalVotingPower)?ef.Long.fromValue(en.totalVotingPower):ef.Long.ZERO}),toJSON(en){let eo={};return en.validators?eo.validators=en.validators.map(en=>en?ei.Validator.toJSON(en):void 0):eo.validators=[],void 0!==en.proposer&&(eo.proposer=en.proposer?ei.Validator.toJSON(en.proposer):void 0),void 0!==en.totalVotingPower&&(eo.totalVotingPower=(en.totalVotingPower||ef.Long.ZERO).toString()),eo},fromPartial(en){let eo=createBaseValidatorSet();return eo.validators=en.validators?.map(en=>ei.Validator.fromPartial(en))||[],eo.proposer=void 0!==en.proposer&&null!==en.proposer?ei.Validator.fromPartial(en.proposer):void 0,eo.totalVotingPower=void 0!==en.totalVotingPower&&null!==en.totalVotingPower?ef.Long.fromValue(en.totalVotingPower):ef.Long.ZERO,eo}},ei.Validator={encode:(en,ei=ep.Writer.create())=>(0!==en.address.length&&ei.uint32(10).bytes(en.address),void 0!==en.pubKey&&eu.PublicKey.encode(en.pubKey,ei.uint32(18).fork()).ldelim(),en.votingPower.isZero()||ei.uint32(24).int64(en.votingPower),en.proposerPriority.isZero()||ei.uint32(32).int64(en.proposerPriority),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseValidator();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.address=eo.bytes();break;case 2:es.pubKey=eu.PublicKey.decode(eo,eo.uint32());break;case 3:es.votingPower=eo.int64();break;case 4:es.proposerPriority=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({address:(0,ef.isSet)(en.address)?(0,ef.bytesFromBase64)(en.address):new Uint8Array,pubKey:(0,ef.isSet)(en.pubKey)?eu.PublicKey.fromJSON(en.pubKey):void 0,votingPower:(0,ef.isSet)(en.votingPower)?ef.Long.fromValue(en.votingPower):ef.Long.ZERO,proposerPriority:(0,ef.isSet)(en.proposerPriority)?ef.Long.fromValue(en.proposerPriority):ef.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.address&&(ei.address=(0,ef.base64FromBytes)(void 0!==en.address?en.address:new Uint8Array)),void 0!==en.pubKey&&(ei.pubKey=en.pubKey?eu.PublicKey.toJSON(en.pubKey):void 0),void 0!==en.votingPower&&(ei.votingPower=(en.votingPower||ef.Long.ZERO).toString()),void 0!==en.proposerPriority&&(ei.proposerPriority=(en.proposerPriority||ef.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseValidator();return ei.address=en.address??new Uint8Array,ei.pubKey=void 0!==en.pubKey&&null!==en.pubKey?eu.PublicKey.fromPartial(en.pubKey):void 0,ei.votingPower=void 0!==en.votingPower&&null!==en.votingPower?ef.Long.fromValue(en.votingPower):ef.Long.ZERO,ei.proposerPriority=void 0!==en.proposerPriority&&null!==en.proposerPriority?ef.Long.fromValue(en.proposerPriority):ef.Long.ZERO,ei}},ei.SimpleValidator={encode:(en,ei=ep.Writer.create())=>(void 0!==en.pubKey&&eu.PublicKey.encode(en.pubKey,ei.uint32(10).fork()).ldelim(),en.votingPower.isZero()||ei.uint32(16).int64(en.votingPower),ei),decode(en,ei){let eo=en instanceof ep.Reader?en:new ep.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseSimpleValidator();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.pubKey=eu.PublicKey.decode(eo,eo.uint32());break;case 2:es.votingPower=eo.int64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({pubKey:(0,ef.isSet)(en.pubKey)?eu.PublicKey.fromJSON(en.pubKey):void 0,votingPower:(0,ef.isSet)(en.votingPower)?ef.Long.fromValue(en.votingPower):ef.Long.ZERO}),toJSON(en){let ei={};return void 0!==en.pubKey&&(ei.pubKey=en.pubKey?eu.PublicKey.toJSON(en.pubKey):void 0),void 0!==en.votingPower&&(ei.votingPower=(en.votingPower||ef.Long.ZERO).toString()),ei},fromPartial(en){let ei=createBaseSimpleValidator();return ei.pubKey=void 0!==en.pubKey&&null!==en.pubKey?eu.PublicKey.fromPartial(en.pubKey):void 0,ei.votingPower=void 0!==en.votingPower&&null!==en.votingPower?ef.Long.fromValue(en.votingPower):ef.Long.ZERO,ei}}},31083:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo);var es=Object.getOwnPropertyDescriptor(ei,eo);(!es||("get"in es?!ei.__esModule:es.writable||es.configurable))&&(es={enumerable:!0,get:function(){return ei[eo]}}),Object.defineProperty(en,ea,es)}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Consensus=ei.App=ei.protobufPackage=void 0;let eu=eo(81457),ef=ed(eo(83789));function createBaseApp(){return{protocol:eu.Long.UZERO,software:""}}function createBaseConsensus(){return{block:eu.Long.UZERO,app:eu.Long.UZERO}}
4ei.protobufPackage="tendermint.version",ei.App={encode:(en,ei=ef.Writer.create())=>(en.protocol.isZero()||ei.uint32(8).uint64(en.protocol),""!==en.software&&ei.uint32(18).string(en.software),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseApp();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.protocol=eo.uint64();break;case 2:es.software=eo.string();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({protocol:(0,eu.isSet)(en.protocol)?eu.Long.fromValue(en.protocol):eu.Long.UZERO,software:(0,eu.isSet)(en.software)?String(en.software):""}),toJSON(en){let ei={};return void 0!==en.protocol&&(ei.protocol=(en.protocol||eu.Long.UZERO).toString()),void 0!==en.software&&(ei.software=en.software),ei},fromPartial(en){let ei=createBaseApp();return ei.protocol=void 0!==en.protocol&&null!==en.protocol?eu.Long.fromValue(en.protocol):eu.Long.UZERO,ei.software=en.software??"",ei}},ei.Consensus={encode:(en,ei=ef.Writer.create())=>(en.block.isZero()||ei.uint32(8).uint64(en.block),en.app.isZero()||ei.uint32(16).uint64(en.app),ei),decode(en,ei){let eo=en instanceof ef.Reader?en:new ef.Reader(en),ea=void 0===ei?eo.len:eo.pos+ei,es=createBaseConsensus();for(;eo.pos<ea;){let en=eo.uint32();switch(en>>>3){case 1:es.block=eo.uint64();break;case 2:es.app=eo.uint64();break;default:eo.skipType(7&en)}}return es},fromJSON:en=>({block:(0,eu.isSet)(en.block)?eu.Long.fromValue(en.block):eu.Long.UZERO,app:(0,eu.isSet)(en.app)?eu.Long.fromValue(en.app):eu.Long.UZERO}),toJSON(en){let ei={};return void 0!==en.block&&(ei.block=(en.block||eu.Long.UZERO).toString()),void 0!==en.app&&(ei.app=(en.app||eu.Long.UZERO).toString()),ei},fromPartial(en){let ei=createBaseConsensus();return ei.block=void 0!==en.block&&null!==en.block?eu.Long.fromValue(en.block):eu.Long.UZERO,ei.app=void 0!==en.app&&null!==en.app?eu.Long.fromValue(en.app):eu.Long.UZERO,ei}}},54098:function(en,ei){var eo="undefined"!=typeof self?self:this,ea=function(){function F(){this.fetch=!1,this.DOMException=eo.DOMException}return F.prototype=eo,new F}();!function(en){!function(ei){var eo={searchParams:"URLSearchParams"in en,iterable:"Symbol"in en&&"iterator"in Symbol,blob:"FileReader"in en&&"Blob"in en&&function(){try{return new Blob,!0}catch(en){return!1}}(),formData:"FormData"in en,arrayBuffer:"ArrayBuffer"in en};function isDataView(en){return en&&DataView.prototype.isPrototypeOf(en)}if(eo.arrayBuffer)var ea=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],es=ArrayBuffer.isView||function(en){return en&&ea.indexOf(Object.prototype.toString.call(en))>-1};function normalizeName(en){if("string"!=typeof en&&(en=String(en)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(en))throw TypeError("Invalid character in header field name");return en.toLowerCase()}function normalizeValue(en){return"string"!=typeof en&&(en=String(en)),en}function iteratorFor(en){var ei={next:function(){var ei=en.shift();return{done:void 0===ei,value:ei}}};return eo.iterable&&(ei[Symbol.iterator]=function(){return ei}),ei}function Headers(en){this.map={},en instanceof Headers?en.forEach(function(en,ei){this.append(ei,en)},this):Array.isArray(en)?en.forEach(function(en){this.append(en[0],en[1])},this):en&&Object.getOwnPropertyNames(en).forEach(function(ei){this.append(ei,en[ei])},this)}function consumed(en){if(en.bodyUsed)return Promise.reject(TypeError("Already read"));en.bodyUsed=!0}function fileReaderReady(en){return new Promise(function(ei,eo){en.onload=function(){ei(en.result)},en.onerror=function(){eo(en.error)}})}function readBlobAsArrayBuffer(en){var ei=new FileReader,eo=fileReaderReady(ei);return ei.readAsArrayBuffer(en),eo}function readBlobAsText(en){var ei=new FileReader,eo=fileReaderReady(ei);return ei.readAsText(en),eo}function readArrayBufferAsText(en){for(var ei=new Uint8Array(en),eo=Array(ei.length),ea=0;ea<ei.length;ea++)eo[ea]=String.fromCharCode(ei[ea]);return eo.join("")}function bufferClone(en){if(en.slice)return en.slice(0);var ei=new Uint8Array(en.byteLength);return ei.set(new Uint8Array(en)),ei.buffer}function Body(){return this.bodyUsed=!1,this._initBody=function(en){this._bodyInit=en,en?"string"==typeof en?this._bodyText=en:eo.blob&&Blob.prototype.isPrototypeOf(en)?this._bodyBlob=en:eo.formData&&FormData.prototype.isPrototypeOf(en)?this._bodyFormData=en:eo.searchParams&&URLSearchParams.prototype.isPrototypeOf(en)?this._bodyText=en.toString():eo.arrayBuffer&&eo.blob&&isDataView(en)?(this._bodyArrayBuffer=bufferClone(en.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):eo.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(en)||es(en))?this._bodyArrayBuffer=bufferClone(en):this._bodyText=en=Object.prototype.toString.call(en):this._bodyText="",!this.headers.get("content-type")&&("string"==typeof en?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):eo.searchParams&&URLSearchParams.prototype.isPrototypeOf(en)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},eo.blob&&(this.blob=function(){var en=consumed(this);if(en)return en;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?consumed(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(readBlobAsArrayBuffer)}),this.text=function(){var en=consumed(this);if(en)return en;if(this._bodyBlob)return readBlobAsText(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},eo.formData&&(this.formData=function(){return this.text().then(decode)}),this.json=function(){return this.text().then(JSON.parse)},this}Headers.prototype.append=function(en,ei){en=normalizeName(en),ei=normalizeValue(ei);var eo=this.map[en];this.map[en]=eo?eo+", "+ei:ei},Headers.prototype.delete=function(en){delete this.map[normalizeName(en)]},Headers.prototype.get=function(en){return en=normalizeName(en),this.has(en)?this.map[en]:null},Headers.prototype.has=function(en){return this.map.hasOwnProperty(normalizeName(en))},Headers.prototype.set=function(en,ei){this.map[normalizeName(en)]=normalizeValue(ei)},Headers.prototype.forEach=function(en,ei){for(var eo in this.map)this.map.hasOwnProperty(eo)&&en.call(ei,this.map[eo],eo,this)},Headers.prototype.keys=function(){var en=[];return this.forEach(function(ei,eo){en.push(eo)}),iteratorFor(en)},Headers.prototype.values=function(){var en=[];return this.forEach(function(ei){en.push(ei)}),iteratorFor(en)},Headers.prototype.entries=function(){var en=[];return this.forEach(function(ei,eo){en.push([eo,ei])}),iteratorFor(en)},eo.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);
4var ed=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function normalizeMethod(en){var ei=en.toUpperCase();return ed.indexOf(ei)>-1?ei:en}function Request(en,ei){var eo=(ei=ei||{}).body;if(en instanceof Request){if(en.bodyUsed)throw TypeError("Already read");this.url=en.url,this.credentials=en.credentials,ei.headers||(this.headers=new Headers(en.headers)),this.method=en.method,this.mode=en.mode,this.signal=en.signal,eo||null==en._bodyInit||(eo=en._bodyInit,en.bodyUsed=!0)}else this.url=String(en);if(this.credentials=ei.credentials||this.credentials||"same-origin",(ei.headers||!this.headers)&&(this.headers=new Headers(ei.headers)),this.method=normalizeMethod(ei.method||this.method||"GET"),this.mode=ei.mode||this.mode||null,this.signal=ei.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&eo)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(eo)}function decode(en){var ei=new FormData;return en.trim().split("&").forEach(function(en){if(en){var eo=en.split("="),ea=eo.shift().replace(/\+/g," "),es=eo.join("=").replace(/\+/g," ");ei.append(decodeURIComponent(ea),decodeURIComponent(es))}}),ei}function parseHeaders(en){var ei=new Headers;return en.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(en){var eo=en.split(":"),ea=eo.shift().trim();if(ea){var es=eo.join(":").trim();ei.append(ea,es)}}),ei}function Response(en,ei){ei||(ei={}),this.type="default",this.status=void 0===ei.status?200:ei.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ei?ei.statusText:"OK",this.headers=new Headers(ei.headers),this.url=ei.url||"",this._initBody(en)}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})},Response.error=function(){var en=new Response(null,{status:0,statusText:""});return en.type="error",en};var eu=[301,302,303,307,308];Response.redirect=function(en,ei){if(-1===eu.indexOf(ei))throw RangeError("Invalid status code");return new Response(null,{status:ei,headers:{location:en}})},ei.DOMException=en.DOMException;try{new ei.DOMException}catch(en){ei.DOMException=function(en,ei){this.message=en,this.name=ei;var eo=Error(en);this.stack=eo.stack},ei.DOMException.prototype=Object.create(Error.prototype),ei.DOMException.prototype.constructor=ei.DOMException}function fetch(en,ea){return new Promise(function(es,ed){var eu=new Request(en,ea);if(eu.signal&&eu.signal.aborted)return ed(new ei.DOMException("Aborted","AbortError"));var ef=new XMLHttpRequest;function abortXhr(){ef.abort()}ef.onload=function(){var en={status:ef.status,statusText:ef.statusText,headers:parseHeaders(ef.getAllResponseHeaders()||"")};en.url="responseURL"in ef?ef.responseURL:en.headers.get("X-Request-URL");var ei="response"in ef?ef.response:ef.responseText;es(new Response(ei,en))},ef.onerror=function(){ed(TypeError("Network request failed"))},ef.ontimeout=function(){ed(TypeError("Network request failed"))},ef.onabort=function(){ed(new ei.DOMException("Aborted","AbortError"))},ef.open(eu.method,eu.url,!0),"include"===eu.credentials?ef.withCredentials=!0:"omit"===eu.credentials&&(ef.withCredentials=!1),"responseType"in ef&&eo.blob&&(ef.responseType="blob"),eu.headers.forEach(function(en,ei){ef.setRequestHeader(ei,en)}),eu.signal&&(eu.signal.addEventListener("abort",abortXhr),ef.onreadystatechange=function(){4===ef.readyState&&eu.signal.removeEventListener("abort",abortXhr)}),ef.send(void 0===eu._bodyInit?null:eu._bodyInit)})}fetch.polyfill=!0,en.fetch||(en.fetch=fetch,en.Headers=Headers,en.Request=Request,en.Response=Response),ei.Headers=Headers,ei.Request=Request,ei.Response=Response,ei.fetch=fetch,Object.defineProperty(ei,"__esModule",{value:!0})}({})}(ea),ea.fetch.ponyfill=!0,delete ea.fetch.polyfill;var es=ea;(ei=es.fetch).default=es.fetch,ei.fetch=es.fetch,ei.Headers=es.Headers,ei.Request=es.Request,ei.Response=es.Response,en.exports=ei},4289:function(en,ei,eo){"use strict";var ea=eo(82215),es="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),ed=Object.prototype.toString,eu=Array.prototype.concat,ef=eo(12296),isFunction=function(en){return"function"==typeof en&&"[object Function]"===ed.call(en)},ep=eo(31044)(),defineProperty=function(en,ei,eo,ea){if(ei in en){if(!0===ea){if(en[ei]===eo)return}else if(!isFunction(ea)||!ea())return}ep?ef(en,ei,eo,!0):ef(en,ei,eo)},defineProperties=function(en,ei){var eo=arguments.length>2?arguments[2]:{},ed=ea(ei);es&&(ed=eu.call(ed,Object.getOwnPropertySymbols(ei)));for(var ef=0;ef<ed.length;ef+=1)defineProperty(en,ed[ef],ei[ed[ef]],eo[ed[ef]])};defineProperties.supportsDescriptors=!!ep,en.exports=defineProperties},86266:function(en,ei,eo){"use strict";var ea=ei;ea.version=eo(18597).i8,ea.utils=eo(80953),ea.rand=eo(29931),ea.curve=eo(88254),ea.curves=eo(45427),ea.ec=eo(57954),ea.eddsa=eo(65980)},4918:function(en,ei,eo){"use strict";var ea=eo(73785),es=eo(80953),ed=es.getNAF,eu=es.getJSF,ef=es.assert;function BaseCurve(en,ei){this.type=en,this.p=new ea(ei.p,16),this.red=ei.prime?ea.red(ei.prime):ea.mont(this.p),this.zero=new ea(0).toRed(this.red),this.one=new ea(1).toRed(this.red),this.two=new ea(2).toRed(this.red),this.n=ei.n&&new ea(ei.n,16),this.g=ei.g&&this.pointFromJSON(ei.g,ei.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var eo=this.n&&this.p.div(this.n);!eo||eo.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}
vendor: 11,595 bytes, line 4
4function BasePoint(en,ei){this.curve=en,this.type=ei,this.precomputed=null}en.exports=BaseCurve,BaseCurve.prototype.point=function(){throw Error("Not implemented")},BaseCurve.prototype.validate=function(){throw Error("Not implemented")},BaseCurve.prototype._fixedNafMul=function(en,ei){ef(en.precomputed);var eo,ea,es=en._getDoubles(),eu=ed(ei,1,this._bitLength),ep=(1<<es.step+1)-(es.step%2==0?2:1);ep/=3;var em=[];for(eo=0;eo<eu.length;eo+=es.step){ea=0;for(var eg=eo+es.step-1;eg>=eo;eg--)ea=(ea<<1)+eu[eg];em.push(ea)}for(var ey=this.jpoint(null,null,null),eb=this.jpoint(null,null,null),eS=ep;eS>0;eS--){for(eo=0;eo<em.length;eo++)(ea=em[eo])===eS?eb=eb.mixedAdd(es.points[eo]):ea===-eS&&(eb=eb.mixedAdd(es.points[eo].neg()));ey=ey.add(eb)}return ey.toP()},BaseCurve.prototype._wnafMul=function(en,ei){var eo=4,ea=en._getNAFPoints(eo);eo=ea.wnd;for(var es=ea.points,eu=ed(ei,eo,this._bitLength),ep=this.jpoint(null,null,null),em=eu.length-1;em>=0;em--){for(var eg=0;em>=0&&0===eu[em];em--)eg++;if(em>=0&&eg++,ep=ep.dblp(eg),em<0)break;var ey=eu[em];ef(0!==ey),ep="affine"===en.type?ey>0?ep.mixedAdd(es[ey-1>>1]):ep.mixedAdd(es[-ey-1>>1].neg()):ey>0?ep.add(es[ey-1>>1]):ep.add(es[-ey-1>>1].neg())}return"affine"===en.type?ep.toP():ep},BaseCurve.prototype._wnafMulAdd=function(en,ei,eo,ea,es){var ef,ep,em,eg=this._wnafT1,ey=this._wnafT2,eb=this._wnafT3,eS=0;for(ef=0;ef<ea;ef++){var e_=(em=ei[ef])._getNAFPoints(en);eg[ef]=e_.wnd,ey[ef]=e_.points}for(ef=ea-1;ef>=1;ef-=2){var eR=ef-1,eA=ef;if(1!==eg[eR]||1!==eg[eA]){eb[eR]=ed(eo[eR],eg[eR],this._bitLength),eb[eA]=ed(eo[eA],eg[eA],this._bitLength),eS=Math.max(eb[eR].length,eS),eS=Math.max(eb[eA].length,eS);continue}var ew=[ei[eR],null,null,ei[eA]];0===ei[eR].y.cmp(ei[eA].y)?(ew[1]=ei[eR].add(ei[eA]),ew[2]=ei[eR].toJ().mixedAdd(ei[eA].neg())):0===ei[eR].y.cmp(ei[eA].y.redNeg())?(ew[1]=ei[eR].toJ().mixedAdd(ei[eA]),ew[2]=ei[eR].add(ei[eA].neg())):(ew[1]=ei[eR].toJ().mixedAdd(ei[eA]),ew[2]=ei[eR].toJ().mixedAdd(ei[eA].neg()));var eO=[-3,-1,-5,-7,0,7,5,1,3],eE=eu(eo[eR],eo[eA]);for(ep=0,eS=Math.max(eE[0].length,eS),eb[eR]=Array(eS),eb[eA]=Array(eS);ep<eS;ep++){var eP=0|eE[0][ep],eC=0|eE[1][ep];eb[eR][ep]=eO[(eP+1)*3+(eC+1)],eb[eA][ep]=0,ey[eR]=ew}}var eT=this.jpoint(null,null,null),eB=this._wnafT4;for(ef=eS;ef>=0;ef--){for(var eN=0;ef>=0;){var eI=!0;for(ep=0;ep<ea;ep++)eB[ep]=0|eb[ep][ef],0!==eB[ep]&&(eI=!1);if(!eI)break;eN++,ef--}if(ef>=0&&eN++,eT=eT.dblp(eN),ef<0)break;for(ep=0;ep<ea;ep++){var ex=eB[ep];0!==ex&&(ex>0?em=ey[ep][ex-1>>1]:ex<0&&(em=ey[ep][-ex-1>>1].neg()),eT="affine"===em.type?eT.mixedAdd(em):eT.add(em))}}for(ef=0;ef<ea;ef++)ey[ef]=null;return es?eT:eT.toP()},BaseCurve.BasePoint=BasePoint,BasePoint.prototype.eq=function(){throw Error("Not implemented")},BasePoint.prototype.validate=function(){return this.curve.validate(this)},BaseCurve.prototype.decodePoint=function(en,ei){en=es.toArray(en,ei);var eo=this.p.byteLength();if((4===en[0]||6===en[0]||7===en[0])&&en.length-1==2*eo)return 6===en[0]?ef(en[en.length-1]%2==0):7===en[0]&&ef(en[en.length-1]%2==1),this.point(en.slice(1,1+eo),en.slice(1+eo,1+2*eo));if((2===en[0]||3===en[0])&&en.length-1===eo)return this.pointFromX(en.slice(1,1+eo),3===en[0]);throw Error("Unknown point format")},BasePoint.prototype.encodeCompressed=function(en){return this.encode(en,!0)},BasePoint.prototype._encode=function(en){var ei=this.curve.p.byteLength(),eo=this.getX().toArray("be",ei);return en?[this.getY().isEven()?2:3].concat(eo):[4].concat(eo,this.getY().toArray("be",ei))},BasePoint.prototype.encode=function(en,ei){return es.encode(this._encode(ei),en)},BasePoint.prototype.precompute=function(en){if(this.precomputed)return this;var ei={doubles:null,naf:null,beta:null};return ei.naf=this._getNAFPoints(8),ei.doubles=this._getDoubles(4,en),ei.beta=this._getBeta(),this.precomputed=ei,this},BasePoint.prototype._hasDoubles=function(en){if(!this.precomputed)return!1;var ei=this.precomputed.doubles;return!!ei&&ei.points.length>=Math.ceil((en.bitLength()+1)/ei.step)},BasePoint.prototype._getDoubles=function(en,ei){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var eo=[this],ea=this,es=0;es<ei;es+=en){for(var ed=0;ed<en;ed++)ea=ea.dbl();eo.push(ea)}return{step:en,points:eo}},BasePoint.prototype._getNAFPoints=function(en){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var ei=[this],eo=(1<<en)-1,ea=1===eo?null:this.dbl(),es=1;es<eo;es++)ei[es]=ei[es-1].add(ea);return{wnd:en,points:ei}},BasePoint.prototype._getBeta=function(){return null},BasePoint.prototype.dblp=function(en){for(var ei=this,eo=0;eo<en;eo++)ei=ei.dbl();return ei}},31138:function(en,ei,eo){"use strict";var ea=eo(80953),es=eo(73785),ed=eo(35717),eu=eo(4918),ef=ea.assert;function EdwardsCurve(en){this.twisted=(0|en.a)!=1,this.mOneA=this.twisted&&(0|en.a)==-1,this.extended=this.mOneA,eu.call(this,"edwards",en),this.a=new es(en.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new es(en.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new es(en.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),ef(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|en.c)==1}function Point(en,ei,eo,ea,ed){eu.BasePoint.call(this,en,"projective"),null===ei&&null===eo&&null===ea?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new es(ei,16),this.y=new es(eo,16),this.z=ea?new es(ea,16):this.curve.one,this.t=ed&&new es(ed,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}ed(EdwardsCurve,eu),en.exports=EdwardsCurve,EdwardsCurve.prototype._mulA=function(en){return this.mOneA?en.redNeg():this.a.redMul(en)},EdwardsCurve.prototype._mulC=function(en){return this.oneC?en:this.c.redMul(en)},EdwardsCurve.prototype.jpoint=function(en,ei,eo,ea){return this.point(en,ei,eo,ea)},EdwardsCurve.prototype.pointFromX=function(en,ei){(en=new es(en,16)).red||(en=en.toRed(this.red));var eo=en.redSqr(),ea=this.c2.redSub(this.a.redMul(eo)),ed=this.one.redSub(this.c2.redMul(this.d).redMul(eo)),eu=ea.redMul(ed.redInvm()),ef=eu.redSqrt();if(0!==ef.redSqr().redSub(eu).cmp(this.zero))throw Error("invalid point");var ep=ef.fromRed().isOdd();return(ei&&!ep||!ei&&ep)&&(ef=ef.redNeg()),this.point(en,ef)},EdwardsCurve.prototype.pointFromY=function(en,ei){(en=new es(en,16)).red||(en=en.toRed(this.red));var eo=en.redSqr(),ea=eo.redSub(this.c2),ed=eo.redMul(this.d).redMul(this.c2).redSub(this.a),eu=ea.redMul(ed.redInvm());if(0===eu.cmp(this.zero)){if(!ei)return this.point(this.zero,en);throw Error("invalid point")}var ef=eu.redSqrt();if(0!==ef.redSqr().redSub(eu).cmp(this.zero))throw Error("invalid point");return ef.fromRed().isOdd()!==ei&&(ef=ef.redNeg()),this.point(ef,en)},EdwardsCurve.prototype.validate=function(en){if(en.isInfinity())return!0;en.normalize();var ei=en.x.redSqr(),eo=en.y.redSqr(),ea=ei.redMul(this.a).redAdd(eo),es=this.c2.redMul(this.one.redAdd(this.d.redMul(ei).redMul(eo)));return 0===ea.cmp(es)},ed(Point,eu.BasePoint),EdwardsCurve.prototype.pointFromJSON=function(en){return Point.fromJSON(this,en)},EdwardsCurve.prototype.point=function(en,ei,eo,ea){return new Point(this,en,ei,eo,ea)},Point.fromJSON=function(en,ei){return new Point(en,ei[0],ei[1],ei[2])},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},Point.prototype._extDbl=function(){var en=this.x.redSqr(),ei=this.y.redSqr(),eo=this.z.redSqr();eo=eo.redIAdd(eo);var ea=this.curve._mulA(en),es=this.x.redAdd(this.y).redSqr().redISub(en).redISub(ei),ed=ea.redAdd(ei),eu=ed.redSub(eo),ef=ea.redSub(ei),ep=es.redMul(eu),em=ed.redMul(ef),eg=es.redMul(ef),ey=eu.redMul(ed);return this.curve.point(ep,em,ey,eg)},Point.prototype._projDbl=function(){var en,ei,eo,ea,es,ed,eu=this.x.redAdd(this.y).redSqr(),ef=this.x.redSqr(),ep=this.y.redSqr();if(this.curve.twisted){var em=(ea=this.curve._mulA(ef)).redAdd(ep);this.zOne?(en=eu.redSub(ef).redSub(ep).redMul(em.redSub(this.curve.two)),ei=em.redMul(ea.redSub(ep)),eo=em.redSqr().redSub(em).redSub(em)):(es=this.z.redSqr(),ed=em.redSub(es).redISub(es),en=eu.redSub(ef).redISub(ep).redMul(ed),ei=em.redMul(ea.redSub(ep)),eo=em.redMul(ed))}else ea=ef.redAdd(ep),es=this.curve._mulC(this.z).redSqr(),ed=ea.redSub(es).redSub(es),en=this.curve._mulC(eu.redISub(ea)).redMul(ed),ei=this.curve._mulC(ea).redMul(ef.redISub(ep)),eo=ea.redMul(ed);return this.curve.point(en,ei,eo)},Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},Point.prototype._extAdd=function(en){var ei=this.y.redSub(this.x).redMul(en.y.redSub(en.x)),eo=this.y.redAdd(this.x).redMul(en.y.redAdd(en.x)),ea=this.t.redMul(this.curve.dd).redMul(en.t),es=this.z.redMul(en.z.redAdd(en.z)),ed=eo.redSub(ei),eu=es.redSub(ea),ef=es.redAdd(ea),ep=eo.redAdd(ei),em=ed.redMul(eu),eg=ef.redMul(ep),ey=ed.redMul(ep),eb=eu.redMul(ef);return this.curve.point(em,eg,eb,ey)},Point.prototype._projAdd=function(en){var ei,eo,ea=this.z.redMul(en.z),es=ea.redSqr(),ed=this.x.redMul(en.x),eu=this.y.redMul(en.y),ef=this.curve.d.redMul(ed).redMul(eu),ep=es.redSub(ef),em=es.redAdd(ef),eg=this.x.redAdd(this.y).redMul(en.x.redAdd(en.y)).redISub(ed).redISub(eu),ey=ea.redMul(ep).redMul(eg);return this.curve.twisted?(ei=ea.redMul(em).redMul(eu.redSub(this.curve._mulA(ed))),eo=ep.redMul(em)):(ei=ea.redMul(em).redMul(eu.redSub(ed)),eo=this.curve._mulC(ep).redMul(em)),this.curve.point(ey,ei,eo)},Point.prototype.add=function(en){return this.isInfinity()?en:en.isInfinity()?this:this.curve.extended?this._extAdd(en):this._projAdd(en)},Point.prototype.mul=function(en){return this._hasDoubles(en)?this.curve._fixedNafMul(this,en):this.curve._wnafMul(this,en)},Point.prototype.mulAdd=function(en,ei,eo){return this.curve._wnafMulAdd(1,[this,ei],[en,eo],2,!1)},Point.prototype.jmulAdd=function(en,ei,eo){return this.curve._wnafMulAdd(1,[this,ei],[en,eo],2,!0)},Point.prototype.normalize=function(){if(this.zOne)return this;var en=this.z.redInvm();return this.x=this.x.redMul(en),this.y=this.y.redMul(en),this.t&&(this.t=this.t.redMul(en)),this.z=this.curve.one,this.zOne=!0,this},Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()},Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()},Point.prototype.eq=function(en){return this===en||0===this.getX().cmp(en.getX())&&0===this.getY().cmp(en.getY())},Point.prototype.eqXToP=function(en){var ei=en.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(ei))return!0;for(var eo=en.clone(),ea=this.curve.redN.redMul(this.z);;){if(eo.iadd(this.curve.n),eo.cmp(this.curve.p)>=0)return!1;if(ei.redIAdd(ea),0===this.x.cmp(ei))return!0}},Point.prototype.toP=Point.prototype.normalize,Point.prototype.mixedAdd=Point.prototype.add},88254:function(en,ei,eo){"use strict";var ea=ei;ea.base=eo(4918),ea.short=eo(6673),ea.mont=eo(22881),ea.edwards=eo(31138)},22881:function(en,ei,eo){"use strict";var ea=eo(73785),es=eo(35717),ed=eo(4918),eu=eo(80953);
vendor: 4,658 bytes, line 4
4function MontCurve(en){ed.call(this,"mont",en),this.a=new ea(en.a,16).toRed(this.red),this.b=new ea(en.b,16).toRed(this.red),this.i4=new ea(4).toRed(this.red).redInvm(),this.two=new ea(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function Point(en,ei,eo){ed.BasePoint.call(this,en,"projective"),null===ei&&null===eo?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new ea(ei,16),this.z=new ea(eo,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}es(MontCurve,ed),en.exports=MontCurve,MontCurve.prototype.validate=function(en){var ei=en.normalize().x,eo=ei.redSqr(),ea=eo.redMul(ei).redAdd(eo.redMul(this.a)).redAdd(ei);return 0===ea.redSqrt().redSqr().cmp(ea)},es(Point,ed.BasePoint),MontCurve.prototype.decodePoint=function(en,ei){return this.point(eu.toArray(en,ei),1)},MontCurve.prototype.point=function(en,ei){return new Point(this,en,ei)},MontCurve.prototype.pointFromJSON=function(en){return Point.fromJSON(this,en)},Point.prototype.precompute=function(){},Point.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},Point.fromJSON=function(en,ei){return new Point(en,ei[0],ei[1]||en.one)},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},Point.prototype.dbl=function(){var en=this.x.redAdd(this.z).redSqr(),ei=this.x.redSub(this.z).redSqr(),eo=en.redSub(ei),ea=en.redMul(ei),es=eo.redMul(ei.redAdd(this.curve.a24.redMul(eo)));return this.curve.point(ea,es)},Point.prototype.add=function(){throw Error("Not supported on Montgomery curve")},Point.prototype.diffAdd=function(en,ei){var eo=this.x.redAdd(this.z),ea=this.x.redSub(this.z),es=en.x.redAdd(en.z),ed=en.x.redSub(en.z).redMul(eo),eu=es.redMul(ea),ef=ei.z.redMul(ed.redAdd(eu).redSqr()),ep=ei.x.redMul(ed.redISub(eu).redSqr());return this.curve.point(ef,ep)},Point.prototype.mul=function(en){for(var ei=en.clone(),eo=this,ea=this.curve.point(null,null),es=this,ed=[];0!==ei.cmpn(0);ei.iushrn(1))ed.push(ei.andln(1));for(var eu=ed.length-1;eu>=0;eu--)0===ed[eu]?(eo=eo.diffAdd(ea,es),ea=ea.dbl()):(ea=eo.diffAdd(ea,es),eo=eo.dbl());return ea},Point.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},Point.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},Point.prototype.eq=function(en){return 0===this.getX().cmp(en.getX())},Point.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:function(en,ei,eo){"use strict";var ea=eo(80953),es=eo(73785),ed=eo(35717),eu=eo(4918),ef=ea.assert;function ShortCurve(en){eu.call(this,"short",en),this.a=new es(en.a,16).toRed(this.red),this.b=new es(en.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(en),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function Point(en,ei,eo,ea){eu.BasePoint.call(this,en,"affine"),null===ei&&null===eo?(this.x=null,this.y=null,this.inf=!0):(this.x=new es(ei,16),this.y=new es(eo,16),ea&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function JPoint(en,ei,eo,ea){eu.BasePoint.call(this,en,"jacobian"),null===ei&&null===eo&&null===ea?(this.x=this.curve.one,this.y=this.curve.one,this.z=new es(0)):(this.x=new es(ei,16),this.y=new es(eo,16),this.z=new es(ea,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}ed(ShortCurve,eu),en.exports=ShortCurve,ShortCurve.prototype._getEndomorphism=function(en){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(en.beta)ei=new es(en.beta,16).toRed(this.red);else{var ei,eo,ea,ed=this._getEndoRoots(this.p);ei=(ei=0>ed[0].cmp(ed[1])?ed[0]:ed[1]).toRed(this.red)}if(en.lambda)eo=new es(en.lambda,16);else{var eu=this._getEndoRoots(this.n);0===this.g.mul(eu[0]).x.cmp(this.g.x.redMul(ei))?eo=eu[0]:(eo=eu[1],ef(0===this.g.mul(eo).x.cmp(this.g.x.redMul(ei))))}return ea=en.basis?en.basis.map(function(en){return{a:new es(en.a,16),b:new es(en.b,16)}}):this._getEndoBasis(eo),{beta:ei,lambda:eo,basis:ea}}},ShortCurve.prototype._getEndoRoots=function(en){var ei=en===this.p?this.red:es.mont(en
vendor: 5,362 bytes, line 4
4),eo=new es(2).toRed(ei).redInvm(),ea=eo.redNeg(),ed=new es(3).toRed(ei).redNeg().redSqrt().redMul(eo);return[ea.redAdd(ed).fromRed(),ea.redSub(ed).fromRed()]},ShortCurve.prototype._getEndoBasis=function(en){for(var ei,eo,ea,ed,eu,ef,ep,em,eg,ey=this.n.ushrn(Math.floor(this.n.bitLength()/2)),eb=en,eS=this.n.clone(),e_=new es(1),eR=new es(0),eA=new es(0),ew=new es(1),eO=0;0!==eb.cmpn(0);){var eE=eS.div(eb);em=eS.sub(eE.mul(eb)),eg=eA.sub(eE.mul(e_));var eP=ew.sub(eE.mul(eR));if(!ea&&0>em.cmp(ey))ei=ep.neg(),eo=e_,ea=em.neg(),ed=eg;else if(ea&&2==++eO)break;ep=em,eS=eb,eb=em,eA=e_,e_=eg,ew=eR,eR=eP}eu=em.neg(),ef=eg;var eC=ea.sqr().add(ed.sqr());return eu.sqr().add(ef.sqr()).cmp(eC)>=0&&(eu=ei,ef=eo),ea.negative&&(ea=ea.neg(),ed=ed.neg()),eu.negative&&(eu=eu.neg(),ef=ef.neg()),[{a:ea,b:ed},{a:eu,b:ef}]},ShortCurve.prototype._endoSplit=function(en){var ei=this.endo.basis,eo=ei[0],ea=ei[1],es=ea.b.mul(en).divRound(this.n),ed=eo.b.neg().mul(en).divRound(this.n),eu=es.mul(eo.a),ef=ed.mul(ea.a),ep=es.mul(eo.b),em=ed.mul(ea.b);return{k1:en.sub(eu).sub(ef),k2:ep.add(em).neg()}},ShortCurve.prototype.pointFromX=function(en,ei){(en=new es(en,16)).red||(en=en.toRed(this.red));var eo=en.redSqr().redMul(en).redIAdd(en.redMul(this.a)).redIAdd(this.b),ea=eo.redSqrt();if(0!==ea.redSqr().redSub(eo).cmp(this.zero))throw Error("invalid point");var ed=ea.fromRed().isOdd();return(ei&&!ed||!ei&&ed)&&(ea=ea.redNeg()),this.point(en,ea)},ShortCurve.prototype.validate=function(en){if(en.inf)return!0;var ei=en.x,eo=en.y,ea=this.a.redMul(ei),es=ei.redSqr().redMul(ei).redIAdd(ea).redIAdd(this.b);return 0===eo.redSqr().redISub(es).cmpn(0)},ShortCurve.prototype._endoWnafMulAdd=function(en,ei,eo){for(var ea=this._endoWnafT1,es=this._endoWnafT2,ed=0;ed<en.length;ed++){var eu=this._endoSplit(ei[ed]),ef=en[ed],ep=ef._getBeta();eu.k1.negative&&(eu.k1.ineg(),ef=ef.neg(!0)),eu.k2.negative&&(eu.k2.ineg(),ep=ep.neg(!0)),ea[2*ed]=ef,ea[2*ed+1]=ep,es[2*ed]=eu.k1,es[2*ed+1]=eu.k2}for(var em=this._wnafMulAdd(1,ea,es,2*ed,eo),eg=0;eg<2*ed;eg++)ea[eg]=null,es[eg]=null;return em},ed(Point,eu.BasePoint),ShortCurve.prototype.point=function(en,ei,eo){return new Point(this,en,ei,eo)},ShortCurve.prototype.pointFromJSON=function(en,ei){return Point.fromJSON(this,en,ei)},Point.prototype._getBeta=function(){if(this.curve.endo){var en=this.precomputed;if(en&&en.beta)return en.beta;var ei=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(en){var eo=this.curve,endoMul=function(en){return eo.point(en.x.redMul(eo.endo.beta),en.y)};en.beta=ei,ei.precomputed={beta:null,naf:en.naf&&{wnd:en.naf.wnd,points:en.naf.points.map(endoMul)},doubles:en.doubles&&{step:en.doubles.step,points:en.doubles.points.map(endoMul)}}}return ei}},Point.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},Point.fromJSON=function(en,ei,eo){"string"==typeof ei&&(ei=JSON.parse(ei));var ea=en.point(ei[0],ei[1],eo);if(!ei[2])return ea;function obj2point(ei){return en.point(ei[0],ei[1],eo)}var es=ei[2];return ea.precomputed={beta:null,doubles:es.doubles&&{step:es.doubles.step,points:[ea].concat(es.doubles.points.map(obj2point))},naf:es.naf&&{wnd:es.naf.wnd,points:[ea].concat(es.naf.points.map(obj2point))}},ea},Point.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},Point.prototype.isInfinity=function(){return this.inf},Point.prototype.add=function(en){if(this.inf)return en;if(en.inf)return this;if(this.eq(en))return this.dbl();if(this.neg().eq(en)||0===this.x.cmp(en.x))return this.curve.point(null,null);var ei=this.y.redSub(en.y);0!==ei.cmpn(0)&&(ei=ei.redMul(this.x.redSub(en.x).redInvm()));var eo=ei.redSqr().redISub(this.x).redISub(en.x),ea=ei.redMul(this.x.redSub(eo)).redISub(this.y);return this.curve.point(eo,ea)},Point.prototype.dbl=function(){if(this.inf)return this;var en=this.y.redAdd(this.y);if(0===en.cmpn(0))return this.curve.point(null,null);var ei=this.curve.a,eo=this.x.redSqr(),ea=en.redInvm(),es=eo.redAdd(eo).redIAdd(eo).redIAdd(ei).redMul(ea),ed=es.redSqr().redISub(this.x.redAdd(this.x)),eu=es.redMul(this.x.redSub(ed)).redISub(this.y);return this.curve.point(ed,eu)},Point.prototype.getX=function(){return this.x.fromRed()},Point.prototype.getY=function(){return this.y.fromRed()},Point.prototype.mul=function(en){return(en=new es(en,16),this.isInfinity())?this:this._hasDoubles(en)?this.curve._fixedNafMul(this,en):this.curve.endo?this.curve._endoWnafMulAdd([this],[en]):this.curve._wnafMul(this,en)},Point.prototype.mulAdd=function(en,ei,eo){var ea=[this,ei],es=[en,eo];return this.curve.endo?this.curve._endoWnafMulAdd(ea,es):this.curve._wnafMulAdd(1,ea,es,2)},Point.prototype.jmulAdd=function(en,ei,eo){var ea=[this,ei],es=[en,eo];return this.curve.endo?this.curve._endoWnafMulAdd(ea,es,!0):this.curve._wnafMulAdd(1,ea,es,2,!0)},Point.prototype.eq=function(en){return this===en||this.inf===en.inf&&(this.inf||0===this.x.cmp(en.x)&&0===this.y.cmp(en.y))},Point.prototype.neg=function(en){if(this.inf)return this;var ei=this.curve.point(this.x,this.y.redNeg());
vendor: 5,286 bytes, line 4
4if(en&&this.precomputed){var eo=this.precomputed,negate=function(en){return en.neg()};ei.precomputed={naf:eo.naf&&{wnd:eo.naf.wnd,points:eo.naf.points.map(negate)},doubles:eo.doubles&&{step:eo.doubles.step,points:eo.doubles.points.map(negate)}}}return ei},Point.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},ed(JPoint,eu.BasePoint),ShortCurve.prototype.jpoint=function(en,ei,eo){return new JPoint(this,en,ei,eo)},JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var en=this.z.redInvm(),ei=en.redSqr(),eo=this.x.redMul(ei),ea=this.y.redMul(ei).redMul(en);return this.curve.point(eo,ea)},JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JPoint.prototype.add=function(en){if(this.isInfinity())return en;if(en.isInfinity())return this;var ei=en.z.redSqr(),eo=this.z.redSqr(),ea=this.x.redMul(ei),es=en.x.redMul(eo),ed=this.y.redMul(ei.redMul(en.z)),eu=en.y.redMul(eo.redMul(this.z)),ef=ea.redSub(es),ep=ed.redSub(eu);if(0===ef.cmpn(0))return 0!==ep.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var em=ef.redSqr(),eg=em.redMul(ef),ey=ea.redMul(em),eb=ep.redSqr().redIAdd(eg).redISub(ey).redISub(ey),eS=ep.redMul(ey.redISub(eb)).redISub(ed.redMul(eg)),e_=this.z.redMul(en.z).redMul(ef);return this.curve.jpoint(eb,eS,e_)},JPoint.prototype.mixedAdd=function(en){if(this.isInfinity())return en.toJ();if(en.isInfinity())return this;var ei=this.z.redSqr(),eo=this.x,ea=en.x.redMul(ei),es=this.y,ed=en.y.redMul(ei).redMul(this.z),eu=eo.redSub(ea),ef=es.redSub(ed);if(0===eu.cmpn(0))return 0!==ef.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ep=eu.redSqr(),em=ep.redMul(eu),eg=eo.redMul(ep),ey=ef.redSqr().redIAdd(em).redISub(eg).redISub(eg),eb=ef.redMul(eg.redISub(ey)).redISub(es.redMul(em)),eS=this.z.redMul(eu);return this.curve.jpoint(ey,eb,eS)},JPoint.prototype.dblp=function(en){if(0===en||this.isInfinity())return this;if(!en)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var ei,eo=this;for(ei=0;ei<en;ei++)eo=eo.dbl();return eo}var ea=this.curve.a,es=this.curve.tinv,ed=this.x,eu=this.y,ef=this.z,ep=ef.redSqr().redSqr(),em=eu.redAdd(eu);for(ei=0;ei<en;ei++){var eg=ed.redSqr(),ey=em.redSqr(),eb=ey.redSqr(),eS=eg.redAdd(eg).redIAdd(eg).redIAdd(ea.redMul(ep)),e_=ed.redMul(ey),eR=eS.redSqr().redISub(e_.redAdd(e_)),eA=e_.redISub(eR),ew=eS.redMul(eA);ew=ew.redIAdd(ew).redISub(eb);var eO=em.redMul(ef);ei+1<en&&(ep=ep.redMul(eb)),ed=eR,ef=eO,em=ew}return this.curve.jpoint(ed,em.redMul(es),ef)},JPoint.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},JPoint.prototype._zeroDbl=function(){if(this.zOne){var en,ei,eo,ea=this.x.redSqr(),es=this.y.redSqr(),ed=es.redSqr(),eu=this.x.redAdd(es).redSqr().redISub(ea).redISub(ed);eu=eu.redIAdd(eu);var ef=ea.redAdd(ea).redIAdd(ea),ep=ef.redSqr().redISub(eu).redISub(eu),em=ed.redIAdd(ed);em=(em=em.redIAdd(em)).redIAdd(em),en=ep,ei=ef.redMul(eu.redISub(ep)).redISub(em),eo=this.y.redAdd(this.y)}else{var eg=this.x.redSqr(),ey=this.y.redSqr(),eb=ey.redSqr(),eS=this.x.redAdd(ey).redSqr().redISub(eg).redISub(eb);eS=eS.redIAdd(eS);var e_=eg.redAdd(eg).redIAdd(eg),eR=e_.redSqr(),eA=eb.redIAdd(eb);eA=(eA=eA.redIAdd(eA)).redIAdd(eA),en=eR.redISub(eS).redISub(eS),ei=e_.redMul(eS.redISub(en)).redISub(eA),eo=(eo=this.y.redMul(this.z)).redIAdd(eo)}return this.curve.jpoint(en,ei,eo)},JPoint.prototype._threeDbl=function(){if(this.zOne){var en,ei,eo,ea=this.x.redSqr(),es=this.y.redSqr(),ed=es.redSqr(),eu=this.x.redAdd(es).redSqr().redISub(ea).redISub(ed);eu=eu.redIAdd(eu);var ef=ea.redAdd(ea).redIAdd(ea).redIAdd(this.curve.a),ep=ef.redSqr().redISub(eu).redISub(eu);en=ep;var em=ed.redIAdd(ed);em=(em=em.redIAdd(em)).redIAdd(em),ei=ef.redMul(eu.redISub(ep)).redISub(em),eo=this.y.redAdd(this.y)}else{var eg=this.z.redSqr(),ey=this.y.redSqr(),eb=this.x.redMul(ey),eS=this.x.redSub(eg).redMul(this.x.redAdd(eg));eS=eS.redAdd(eS).redIAdd(eS);var e_=eb.redIAdd(eb),eR=(e_=e_.redIAdd(e_)).redAdd(e_);en=eS.redSqr().redISub(eR),eo=this.y.redAdd(this.z).redSqr().redISub(ey).redISub(eg);var eA=ey.redSqr();eA=(eA=(eA=eA.redIAdd(eA)).redIAdd(eA)).redIAdd(eA),ei=eS.redMul(e_.redISub(en)).redISub(eA)}return this.curve.jpoint(en,ei,eo)},JPoint.prototype._dbl=function(){var en=this.curve.a,ei=this.x,eo=this.y,ea=this.z,es=ea.redSqr().redSqr(),ed=ei.redSqr(),eu=eo.redSqr(),ef=ed.redAdd(ed).redIAdd(ed).redIAdd(en.redMul(es)),ep=ei.redAdd(ei),em=(ep=ep.redIAdd(ep)).redMul(eu),eg=ef.redSqr().redISub(em.redAdd(em)),ey=em.redISub(eg),eb=eu.redSqr();eb=(eb=(eb=eb.redIAdd(eb)).redIAdd(eb)).redIAdd(eb);var eS=ef.redMul(ey).redISub(eb),e_=eo.redAdd(eo).redMul(ea);return this.curve.jpoint(eg,eS,e_)},JPoint.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var en=this.x.redSqr(),ei=this.y.redSqr(),eo=this.z.redSqr(),ea=ei.redSqr(),es=en.redAdd(en).redIAdd(en),ed=es.redSqr(),eu=this.x.redAdd(ei).redSqr().redISub(en).redISub(ea),ef=(eu=(eu=(eu=eu.redIAdd(eu)).redAdd(eu).redIAdd(eu)).redISub(ed)).redSqr(),ep=ea.redIAdd(ea);ep=(ep=(ep=ep.redIAdd(ep)).redIAdd(ep)).redIAdd(ep);var em=es.redIAdd(eu).redSqr().redISub(ed).redISub(ef).redISub(ep),eg=ei.redMul(em);
vendor: 6,279 bytes, line 4
4eg=(eg=eg.redIAdd(eg)).redIAdd(eg);var ey=this.x.redMul(ef).redISub(eg);ey=(ey=ey.redIAdd(ey)).redIAdd(ey);var eb=this.y.redMul(em.redMul(ep.redISub(em)).redISub(eu.redMul(ef)));eb=(eb=(eb=eb.redIAdd(eb)).redIAdd(eb)).redIAdd(eb);var eS=this.z.redAdd(eu).redSqr().redISub(eo).redISub(ef);return this.curve.jpoint(ey,eb,eS)},JPoint.prototype.mul=function(en,ei){return en=new es(en,ei),this.curve._wnafMul(this,en)},JPoint.prototype.eq=function(en){if("affine"===en.type)return this.eq(en.toJ());if(this===en)return!0;var ei=this.z.redSqr(),eo=en.z.redSqr();if(0!==this.x.redMul(eo).redISub(en.x.redMul(ei)).cmpn(0))return!1;var ea=ei.redMul(this.z),es=eo.redMul(en.z);return 0===this.y.redMul(es).redISub(en.y.redMul(ea)).cmpn(0)},JPoint.prototype.eqXToP=function(en){var ei=this.z.redSqr(),eo=en.toRed(this.curve.red).redMul(ei);if(0===this.x.cmp(eo))return!0;for(var ea=en.clone(),es=this.curve.redN.redMul(ei);;){if(ea.iadd(this.curve.n),ea.cmp(this.curve.p)>=0)return!1;if(eo.redIAdd(es),0===this.x.cmp(eo))return!0}},JPoint.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},JPoint.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},45427:function(en,ei,eo){"use strict";var ea,es=ei,ed=eo(33715),eu=eo(88254),ef=eo(80953).assert;function PresetCurve(en){"short"===en.type?this.curve=new eu.short(en):"edwards"===en.type?this.curve=new eu.edwards(en):this.curve=new eu.mont(en),this.g=this.curve.g,this.n=this.curve.n,this.hash=en.hash,ef(this.g.validate(),"Invalid curve"),ef(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function defineCurve(en,ei){Object.defineProperty(es,en,{configurable:!0,enumerable:!0,get:function(){var eo=new PresetCurve(ei);return Object.defineProperty(es,en,{configurable:!0,enumerable:!0,value:eo}),eo}})}es.PresetCurve=PresetCurve,defineCurve("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:ed.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),defineCurve("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:ed.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),defineCurve("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:ed.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),defineCurve("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:ed.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),defineCurve("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:ed.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),defineCurve("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ed.sha256,gRed:!1,g:["9"]}),defineCurve("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:ed.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{ea=eo(91037)}catch(en){ea=void 0}defineCurve("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:ed.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
vendor: 6,376 bytes, line 4
4,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",ea]})},57954:function(en,ei,eo){"use strict";var ea=eo(73785),es=eo(2156),ed=eo(80953),eu=eo(45427),ef=eo(29931),ep=ed.assert,em=eo(31251),eg=eo(90611);function EC(en){if(!(this instanceof EC))return new EC(en);"string"==typeof en&&(ep(Object.prototype.hasOwnProperty.call(eu,en),"Unknown curve "+en),en=eu[en]),en instanceof eu.PresetCurve&&(en={curve:en}),this.curve=en.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=en.curve.g,this.g.precompute(en.curve.n.bitLength()+1),this.hash=en.hash||en.curve.hash}en.exports=EC,EC.prototype.keyPair=function(en){return new em(this,en)},EC.prototype.keyFromPrivate=function(en,ei){return em.fromPrivate(this,en,ei)},EC.prototype.keyFromPublic=function(en,ei){return em.fromPublic(this,en,ei)},EC.prototype.genKeyPair=function(en){en||(en={});for(var ei=new es({hash:this.hash,pers:en.pers,persEnc:en.persEnc||"utf8",entropy:en.entropy||ef(this.hash.hmacStrength),entropyEnc:en.entropy&&en.entropyEnc||"utf8",nonce:this.n.toArray()}),eo=this.n.byteLength(),ed=this.n.sub(new ea(2));;){var eu=new ea(ei.generate(eo));if(!(eu.cmp(ed)>0))return eu.iaddn(1),this.keyFromPrivate(eu)}},EC.prototype._truncateToN=function(en,ei){var eo=8*en.byteLength()-this.n.bitLength();return(eo>0&&(en=en.ushrn(eo)),!ei&&en.cmp(this.n)>=0)?en.sub(this.n):en},EC.prototype.sign=function(en,ei,eo,ed){"object"==typeof eo&&(ed=eo,eo=null),ed||(ed={}),ei=this.keyFromPrivate(ei,eo),en=this._truncateToN(new ea(en,16));for(var eu=this.n.byteLength(),ef=ei.getPrivate().toArray("be",eu),ep=en.toArray("be",eu),em=new es({hash:this.hash,entropy:ef,nonce:ep,pers:ed.pers,persEnc:ed.persEnc||"utf8"}),ey=this.n.sub(new ea(1)),eb=0;;eb++){var eS=ed.k?ed.k(eb):new ea(em.generate(this.n.byteLength()));if(!(0>=(eS=this._truncateToN(eS,!0)).cmpn(1)||eS.cmp(ey)>=0)){var e_=this.g.mul(eS);if(!e_.isInfinity()){var eR=e_.getX(),eA=eR.umod(this.n);if(0!==eA.cmpn(0)){var ew=eS.invm(this.n).mul(eA.mul(ei.getPrivate()).iadd(en));if(0!==(ew=ew.umod(this.n)).cmpn(0)){var eO=(e_.getY().isOdd()?1:0)|(0!==eR.cmp(eA)?2:0);return ed.canonical&&ew.cmp(this.nh)>0&&(ew=this.n.sub(ew),eO^=1),new eg({r:eA,s:ew,recoveryParam:eO})}}}}}},EC.prototype.verify=function(en,ei,eo,es){en=this._truncateToN(new ea(en,16)),eo=this.keyFromPublic(eo,es);var ed,eu=(ei=new eg(ei,"hex")).r,ef=ei.s;if(0>eu.cmpn(1)||eu.cmp(this.n)>=0||0>ef.cmpn(1)||ef.cmp(this.n)>=0)return!1;var ep=ef.invm(this.n),em=ep.mul(en).umod(this.n),ey=ep.mul(eu).umod(this.n);return this.curve._maxwellTrick?!(ed=this.g.jmulAdd(em,eo.getPublic(),ey)).isInfinity()&&ed.eqXToP(eu):!(ed=this.g.mulAdd(em,eo.getPublic(),ey)).isInfinity()&&0===ed.getX().umod(this.n).cmp(eu)},EC.prototype.recoverPubKey=function(en,ei,eo,es){ep((3&eo)===eo,"The recovery param is more than two bits"),ei=new eg(ei,es);var ed=this.n,eu=new ea(en),ef=ei.r,em=ei.s,ey=1&eo,eb=eo>>1;if(ef.cmp(this.curve.p.umod(this.curve.n))>=0&&eb)throw Error("Unable to find sencond key candinate");ef=eb?this.curve.pointFromX(ef.add(this.curve.n),ey):this.curve.pointFromX(ef,ey);var eS=ei.r.invm(ed),e_=ed.sub(eu).mul(eS).umod(ed),eR=em.mul(eS).umod(ed);return this.g.mulAdd(e_,ef,eR)},EC.prototype.getKeyRecoveryParam=function(en,ei,eo,ea){if(null!==(ei=new eg(ei,ea)).recoveryParam)return ei.recoveryParam;for(var es,ed=0;ed<4;ed++){try{es=this.recoverPubKey(en,ei,ed)}catch(en){continue}if(es.eq(eo))return ed}throw Error("Unable to find valid recovery factor")}},31251:function(en,ei,eo){"use strict";var ea=eo(73785),es=eo(80953).assert;function KeyPair(en,ei){this.ec=en,this.priv=null,this.pub=null,ei.priv&&this._importPrivate(ei.priv,ei.privEnc),ei.pub&&this._importPublic(ei.pub,ei.pubEnc)}en.exports=KeyPair,KeyPair.fromPublic=function(en,ei,eo){return ei instanceof KeyPair?ei:new KeyPair(en,{pub:ei,pubEnc:eo})},KeyPair.fromPrivate=function(en,ei,eo){return ei instanceof KeyPair?ei:new KeyPair(en,{priv:ei,privEnc:eo})},KeyPair.prototype.validate=function(){var en=this.getPublic();return en.isInfinity()?{result:!1,reason:"Invalid public key"}:en.validate()?en.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},KeyPair.prototype.getPublic=function(en,ei){return("string"==typeof en&&(ei=en,en=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),ei)?this.pub.encode(ei,en):this.pub},KeyPair.prototype.getPrivate=function(en){return"hex"===en?this.priv.toString(16,2):this.priv},KeyPair.prototype._importPrivate=function(en,ei){this.priv=new ea(en,ei||16),this.priv=this.priv.umod(this.ec.curve.n)},KeyPair.prototype._importPublic=function(en,ei){if(en.x||en.y){"mont"===this.ec.curve.type?es(en.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&es(en.x&&en.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(en.x,en.y);return}this.pub=this.ec.curve.decodePoint(en,ei)},KeyPair.prototype.derive=function(en){return en.validate()||es(en.validate(),"public point not validated"),en.mul(this.priv).getX()},KeyPair.prototype.sign=function(en,ei,eo){return this.ec.sign(en,this,ei,eo)},KeyPair.prototype.verify=function(en,ei){return this.ec.verify(en,ei,this)},KeyPair.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},90611:function(en,ei,eo){"use strict";var ea=eo(73785),es=eo(80953),ed=es.assert;function Signature(en,ei){if(en instanceof Signature)return en;this._importDER(en,ei)||(ed(en.r&&en.s,"Signature without r or s"),this.r=new ea(en.r,16),this.s=new ea(en.s,16),void 0===en.recoveryParam?this.recoveryParam=null:this.recoveryParam=en.recoveryParam)}function Position(){this.place=0}function getLength(en,ei){var eo=en[ei.place++];if(!(128&eo))return eo;var ea=15&eo;if(0===ea||ea>4)return!1;for(var es=0,ed=0,eu=ei.place;ed<ea;ed++,eu++)es<<=8,es|=en[eu],es>>>=0;return!(es<=127)&&(ei.place=eu,es)}function rmPadding(en){for(var ei=0,eo=en.length-1;!en[ei]&&!(128&en[ei+1])&&ei<eo;)ei++;return 0===ei?en:en.slice(ei)}function constructLength(en,ei){if(ei<128){en.push(ei);return}var eo=1+(Math.log(ei)/Math.LN2>>>3);for(en.push(128|eo);--eo;
vendor: 5,585 bytes, line 4
4)en.push(ei>>>(eo<<3)&255);en.push(ei)}en.exports=Signature,Signature.prototype._importDER=function(en,ei){en=es.toArray(en,ei);var eo=new Position;if(48!==en[eo.place++])return!1;var ed=getLength(en,eo);if(!1===ed||ed+eo.place!==en.length||2!==en[eo.place++])return!1;var eu=getLength(en,eo);if(!1===eu)return!1;var ef=en.slice(eo.place,eu+eo.place);if(eo.place+=eu,2!==en[eo.place++])return!1;var ep=getLength(en,eo);if(!1===ep||en.length!==ep+eo.place)return!1;var em=en.slice(eo.place,ep+eo.place);if(0===ef[0]){if(!(128&ef[1]))return!1;ef=ef.slice(1)}if(0===em[0]){if(!(128&em[1]))return!1;em=em.slice(1)}return this.r=new ea(ef),this.s=new ea(em),this.recoveryParam=null,!0},Signature.prototype.toDER=function(en){var ei=this.r.toArray(),eo=this.s.toArray();for(128&ei[0]&&(ei=[0].concat(ei)),128&eo[0]&&(eo=[0].concat(eo)),ei=rmPadding(ei),eo=rmPadding(eo);!eo[0]&&!(128&eo[1]);)eo=eo.slice(1);var ea=[2];constructLength(ea,ei.length),(ea=ea.concat(ei)).push(2),constructLength(ea,eo.length);var ed=ea.concat(eo),eu=[48];return constructLength(eu,ed.length),eu=eu.concat(ed),es.encode(eu,en)}},65980:function(en,ei,eo){"use strict";var ea=eo(33715),es=eo(45427),ed=eo(80953),eu=ed.assert,ef=ed.parseBytes,ep=eo(79087),em=eo(23622);function EDDSA(en){if(eu("ed25519"===en,"only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(en);en=es[en].curve,this.curve=en,this.g=en.g,this.g.precompute(en.n.bitLength()+1),this.pointClass=en.point().constructor,this.encodingLength=Math.ceil(en.n.bitLength()/8),this.hash=ea.sha512}en.exports=EDDSA,EDDSA.prototype.sign=function(en,ei){en=ef(en);var eo=this.keyFromSecret(ei),ea=this.hashInt(eo.messagePrefix(),en),es=this.g.mul(ea),ed=this.encodePoint(es),eu=this.hashInt(ed,eo.pubBytes(),en).mul(eo.priv()),ep=ea.add(eu).umod(this.curve.n);return this.makeSignature({R:es,S:ep,Rencoded:ed})},EDDSA.prototype.verify=function(en,ei,eo){en=ef(en),ei=this.makeSignature(ei);var ea=this.keyFromPublic(eo),es=this.hashInt(ei.Rencoded(),ea.pubBytes(),en),ed=this.g.mul(ei.S());return ei.R().add(ea.pub().mul(es)).eq(ed)},EDDSA.prototype.hashInt=function(){for(var en=this.hash(),ei=0;ei<arguments.length;ei++)en.update(arguments[ei]);return ed.intFromLE(en.digest()).umod(this.curve.n)},EDDSA.prototype.keyFromPublic=function(en){return ep.fromPublic(this,en)},EDDSA.prototype.keyFromSecret=function(en){return ep.fromSecret(this,en)},EDDSA.prototype.makeSignature=function(en){return en instanceof em?en:new em(this,en)},EDDSA.prototype.encodePoint=function(en){var ei=en.getY().toArray("le",this.encodingLength);return ei[this.encodingLength-1]|=en.getX().isOdd()?128:0,ei},EDDSA.prototype.decodePoint=function(en){var ei=(en=ed.parseBytes(en)).length-1,eo=en.slice(0,ei).concat(-129&en[ei]),ea=(128&en[ei])!=0,es=ed.intFromLE(eo);return this.curve.pointFromY(es,ea)},EDDSA.prototype.encodeInt=function(en){return en.toArray("le",this.encodingLength)},EDDSA.prototype.decodeInt=function(en){return ed.intFromLE(en)},EDDSA.prototype.isPoint=function(en){return en instanceof this.pointClass}},79087:function(en,ei,eo){"use strict";var ea=eo(80953),es=ea.assert,ed=ea.parseBytes,eu=ea.cachedProperty;function KeyPair(en,ei){this.eddsa=en,this._secret=ed(ei.secret),en.isPoint(ei.pub)?this._pub=ei.pub:this._pubBytes=ed(ei.pub)}KeyPair.fromPublic=function(en,ei){return ei instanceof KeyPair?ei:new KeyPair(en,{pub:ei})},KeyPair.fromSecret=function(en,ei){return ei instanceof KeyPair?ei:new KeyPair(en,{secret:ei})},KeyPair.prototype.secret=function(){return this._secret},eu(KeyPair,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),eu(KeyPair,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),eu(KeyPair,"privBytes",function(){var en=this.eddsa,ei=this.hash(),eo=en.encodingLength-1,ea=ei.slice(0,en.encodingLength);return ea[0]&=248,ea[eo]&=127,ea[eo]|=64,ea}),eu(KeyPair,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),eu(KeyPair,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),eu(KeyPair,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),KeyPair.prototype.sign=function(en){return es(this._secret,"KeyPair can only verify"),this.eddsa.sign(en,this)},KeyPair.prototype.verify=function(en,ei){return this.eddsa.verify(en,ei,this)},KeyPair.prototype.getSecret=function(en){return es(this._secret,"KeyPair is public only"),ea.encode(this.secret(),en)},KeyPair.prototype.getPublic=function(en){return ea.encode(this.pubBytes(),en)},en.exports=KeyPair},23622:function(en,ei,eo){"use strict";var ea=eo(73785),es=eo(80953),ed=es.assert,eu=es.cachedProperty,ef=es.parseBytes;function Signature(en,ei){this.eddsa=en,"object"!=typeof ei&&(ei=ef(ei)),Array.isArray(ei)&&(ei={R:ei.slice(0,en.encodingLength),S:ei.slice(en.encodingLength)}),ed(ei.R&&ei.S,"Signature without R or S"),en.isPoint(ei.R)&&(this._R=ei.R),ei.S instanceof ea&&(this._S=ei.S),this._Rencoded=Array.isArray(ei.R)?ei.R:ei.Rencoded,this._Sencoded=Array.isArray(ei.S)?ei.S:ei.Sencoded}eu(Signature,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),eu(Signature,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),eu(Signature,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),eu(Signature,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),Signature.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},Signature.prototype.toHex=function(){return es.encode(this.toBytes(),"hex").toUpperCase()},en.exports=Signature},91037:function(en){en
vendor: 26,137 bytes, line 4
4.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
480953:function(en,ei,eo){"use strict";var ea=ei,es=eo(73785),ed=eo(79746),eu=eo(34504);function getNAF(en,ei,eo){var ea=Array(Math.max(en.bitLength(),eo)+1);for(eu=0;eu<ea.length;eu+=1)ea[eu]=0;var es=1<<ei+1,ed=en.clone();for(eu=0;eu<ea.length;eu++){var eu,ef,ep=ed.andln(es-1);ed.isOdd()?(ef=ep>(es>>1)-1?(es>>1)-ep:ep,ed.isubn(ef)):ef=0,ea[eu]=ef,ed.iushrn(1)}return ea}function getJSF(en,ei){var eo=[[],[]];en=en.clone(),ei=ei.clone();for(var ea=0,es=0;en.cmpn(-ea)>0||ei.cmpn(-es)>0;){var ed,eu,ef,ep=en.andln(3)+ea&3,em=ei.andln(3)+es&3;3===ep&&(ep=-1),3===em&&(em=-1),eu=(1&ep)==0?0:(3==(ed=en.andln(7)+ea&7)||5===ed)&&2===em?-ep:ep,eo[0].push(eu),ef=(1&em)==0?0:(3==(ed=ei.andln(7)+es&7)||5===ed)&&2===ep?-em:em,eo[1].push(ef),2*ea===eu+1&&(ea=1-ea),2*es===ef+1&&(es=1-es),en.iushrn(1),ei.iushrn(1)}return eo}function cachedProperty(en,ei,eo){var ea="_"+ei;en.prototype[ei]=function(){return void 0!==this[ea]?this[ea]:this[ea]=eo.call(this)}}function parseBytes(en){return"string"==typeof en?ea.toArray(en,"hex"):en}function intFromLE(en){return new es(en,"hex","le")}ea.assert=ed,ea.toArray=eu.toArray,ea.zero2=eu.zero2,ea.toHex=eu.toHex,ea.encode=eu.encode,ea.getNAF=getNAF,ea.getJSF=getJSF,ea.cachedProperty=cachedProperty,ea.parseBytes=parseBytes,ea.intFromLE=intFromLE},73785:function(en,ei,eo){!function(en,ei){"use strict";function assert(en,ei){if(!en)throw Error(ei||"Assertion failed")}function inherits(en,ei){en.super_=ei;var TempCtor=function(){};TempCtor.prototype=ei.prototype,en.prototype=new TempCtor,en.prototype.constructor=en}function BN(en,ei,eo){if(BN.isBN(en))return en;this.negative=0,this.words=null,this.length=0,this.red=null,null!==en&&(("le"===ei||"be"===ei)&&(eo=ei,ei=10),this._init(en||0,ei||10,eo||"be"))}"object"==typeof en?en.exports=BN:ei.BN=BN,BN.BN=BN,BN.wordSize=2
vendor: 4,465 bytes, line 4
46;try{ea="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:eo(85568).Buffer}catch(en){}function parseHex4Bits(en,ei){var eo=en.charCodeAt(ei);return eo>=65&&eo<=70?eo-55:eo>=97&&eo<=102?eo-87:eo-48&15}function parseHexByte(en,ei,eo){var ea=parseHex4Bits(en,eo);return eo-1>=ei&&(ea|=parseHex4Bits(en,eo-1)<<4),ea}function parseBase(en,ei,eo,ea){for(var es=0,ed=Math.min(en.length,eo),eu=ei;eu<ed;eu++){var ef=en.charCodeAt(eu)-48;es*=ea,ef>=49?es+=ef-49+10:ef>=17?es+=ef-17+10:es+=ef}return es}BN.isBN=function(en){return en instanceof BN||null!==en&&"object"==typeof en&&en.constructor.wordSize===BN.wordSize&&Array.isArray(en.words)},BN.max=function(en,ei){return en.cmp(ei)>0?en:ei},BN.min=function(en,ei){return 0>en.cmp(ei)?en:ei},BN.prototype._init=function(en,ei,eo){if("number"==typeof en)return this._initNumber(en,ei,eo);if("object"==typeof en)return this._initArray(en,ei,eo);"hex"===ei&&(ei=16),assert(ei===(0|ei)&&ei>=2&&ei<=36);var ea=0;"-"===(en=en.toString().replace(/\s+/g,""))[0]&&(ea++,this.negative=1),ea<en.length&&(16===ei?this._parseHex(en,ea,eo):(this._parseBase(en,ei,ea),"le"===eo&&this._initArray(this.toArray(),ei,eo)))},BN.prototype._initNumber=function(en,ei,eo){en<0&&(this.negative=1,en=-en),en<67108864?(this.words=[67108863&en],this.length=1):en<4503599627370496?(this.words=[67108863&en,en/67108864&67108863],this.length=2):(assert(en<9007199254740992),this.words=[67108863&en,en/67108864&67108863,1],this.length=3),"le"===eo&&this._initArray(this.toArray(),ei,eo)},BN.prototype._initArray=function(en,ei,eo){if(assert("number"==typeof en.length),en.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(en.length/3),this.words=Array(this.length);for(var ea,es,ed=0;ed<this.length;ed++)this.words[ed]=0;var eu=0;if("be"===eo)for(ed=en.length-1,ea=0;ed>=0;ed-=3)es=en[ed]|en[ed-1]<<8|en[ed-2]<<16,this.words[ea]|=es<<eu&67108863,this.words[ea+1]=es>>>26-eu&67108863,(eu+=24)>=26&&(eu-=26,ea++);else if("le"===eo)for(ed=0,ea=0;ed<en.length;ed+=3)es=en[ed]|en[ed+1]<<8|en[ed+2]<<16,this.words[ea]|=es<<eu&67108863,this.words[ea+1]=es>>>26-eu&67108863,(eu+=24)>=26&&(eu-=26,ea++);return this.strip()},BN.prototype._parseHex=function(en,ei,eo){this.length=Math.ceil((en.length-ei)/6),this.words=Array(this.length);for(var ea,es=0;es<this.length;es++)this.words[es]=0;var ed=0,eu=0;if("be"===eo)for(es=en.length-1;es>=ei;es-=2)ea=parseHexByte(en,ei,es)<<ed,this.words[eu]|=67108863&ea,ed>=18?(ed-=18,eu+=1,this.words[eu]|=ea>>>26):ed+=8;else for(es=(en.length-ei)%2==0?ei+1:ei;es<en.length;es+=2)ea=parseHexByte(en,ei,es)<<ed,this.words[eu]|=67108863&ea,ed>=18?(ed-=18,eu+=1,this.words[eu]|=ea>>>26):ed+=8;this.strip()},BN.prototype._parseBase=function(en,ei,eo){this.words=[0],this.length=1;for(var ea=0,es=1;es<=67108863;es*=ei)ea++;ea--,es=es/ei|0;for(var ed=en.length-eo,eu=ed%ea,ef=Math.min(ed,ed-eu)+eo,ep=0,em=eo;em<ef;em+=ea)ep=parseBase(en,em,em+ea,ei),this.imuln(es),this.words[0]+ep<67108864?this.words[0]+=ep:this._iaddn(ep);if(0!==eu){var eg=1;for(ep=parseBase(en,em,en.length,ei),em=0;em<eu;em++)eg*=ei;this.imuln(eg),this.words[0]+ep<67108864?this.words[0]+=ep:this._iaddn(ep)}this.strip()},BN.prototype.copy=function(en){en.words=Array(this.length);for(var ei=0;ei<this.length;ei++)en.words[ei]=this.words[ei];en.length=this.length,en.negative=this.negative,en.red=this.red},BN.prototype.clone=function(){var en=new BN(null);return this.copy(en),en},BN.prototype._expand=function(en){for(;this.length<en;)this.words[this.length++]=0;return this},BN.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},BN.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var ea,es=["","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"],ed=[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],eu=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 6,892 bytes, line 4
4777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function toBitArray(en){for(var ei=Array(en.bitLength()),eo=0;eo<ei.length;eo++){var ea=eo/26|0,es=eo%26;ei[eo]=(en.words[ea]&1<<es)>>>es}return ei}function smallMulTo(en,ei,eo){eo.negative=ei.negative^en.negative;var ea=en.length+ei.length|0;eo.length=ea,ea=ea-1|0;var es=0|en.words[0],ed=0|ei.words[0],eu=es*ed,ef=67108863&eu,ep=eu/67108864|0;eo.words[0]=ef;for(var em=1;em<ea;em++){for(var eg=ep>>>26,ey=67108863&ep,eb=Math.min(em,ei.length-1),eS=Math.max(0,em-en.length+1);eS<=eb;eS++){var e_=em-eS|0;eg+=(eu=(es=0|en.words[e_])*(ed=0|ei.words[eS])+ey)/67108864|0,ey=67108863&eu}eo.words[em]=0|ey,ep=0|eg}return 0!==ep?eo.words[em]=0|ep:eo.length--,eo.strip()}BN.prototype.toString=function(en,ei){if(ei=0|ei||1,16===(en=en||10)||"hex"===en){eo="";for(var eo,ea=0,ef=0,ep=0;ep<this.length;ep++){var em=this.words[ep],eg=((em<<ea|ef)&16777215).toString(16);eo=0!=(ef=em>>>24-ea&16777215)||ep!==this.length-1?es[6-eg.length]+eg+eo:eg+eo,(ea+=2)>=26&&(ea-=26,ep--)}for(0!==ef&&(eo=ef.toString(16)+eo);eo.length%ei!=0;)eo="0"+eo;return 0!==this.negative&&(eo="-"+eo),eo}if(en===(0|en)&&en>=2&&en<=36){var ey=ed[en],eb=eu[en];eo="";var eS=this.clone();for(eS.negative=0;!eS.isZero();){var e_=eS.modn(eb).toString(en);eo=(eS=eS.idivn(eb)).isZero()?e_+eo:es[ey-e_.length]+e_+eo}for(this.isZero()&&(eo="0"+eo);eo.length%ei!=0;)eo="0"+eo;return 0!==this.negative&&(eo="-"+eo),eo}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function(){var en=this.words[0];return 2===this.length?en+=67108864*this.words[1]:3===this.length&&1===this.words[2]?en+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-en:en},BN.prototype.toJSON=function(){return this.toString(16)},BN.prototype.toBuffer=function(en,ei){return assert(void 0!==ea),this.toArrayLike(ea,en,ei)},BN.prototype.toArray=function(en,ei){return this.toArrayLike(Array,en,ei)},BN.prototype.toArrayLike=function(en,ei,eo){var ea,es,ed=this.byteLength(),eu=eo||Math.max(1,ed);assert(ed<=eu,"byte array longer than desired length"),assert(eu>0,"Requested array length <= 0"),this.strip();var ef="le"===ei,ep=new en(eu),em=this.clone();if(ef){for(es=0;!em.isZero();es++)ea=em.andln(255),em.iushrn(8),ep[es]=ea;for(;es<eu;es++)ep[es]=0}else{for(es=0;es<eu-ed;es++)ep[es]=0;for(es=0;!em.isZero();es++)ea=em.andln(255),em.iushrn(8),ep[eu-es-1]=ea}return ep},Math.clz32?BN.prototype._countBits=function(en){return 32-Math.clz32(en)}:BN.prototype._countBits=function(en){var ei=en,eo=0;return ei>=4096&&(eo+=13,ei>>>=13),ei>=64&&(eo+=7,ei>>>=7),ei>=8&&(eo+=4,ei>>>=4),ei>=2&&(eo+=2,ei>>>=2),eo+ei},BN.prototype._zeroBits=function(en){if(0===en)return 26;var ei=en,eo=0;return(8191&ei)==0&&(eo+=13,ei>>>=13),(127&ei)==0&&(eo+=7,ei>>>=7),(15&ei)==0&&(eo+=4,ei>>>=4),(3&ei)==0&&(eo+=2,ei>>>=2),(1&ei)==0&&eo++,eo},BN.prototype.bitLength=function(){var en=this.words[this.length-1],ei=this._countBits(en);return(this.length-1)*26+ei},BN.prototype.zeroBits=function(){if(this.isZero())return 0;for(var en=0,ei=0;ei<this.length;ei++){var eo=this._zeroBits(this.words[ei]);if(en+=eo,26!==eo)break}return en},BN.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},BN.prototype.toTwos=function(en){return 0!==this.negative?this.abs().inotn(en).iaddn(1):this.clone()},BN.prototype.fromTwos=function(en){return this.testn(en-1)?this.notn(en).iaddn(1).ineg():this.clone()},BN.prototype.isNeg=function(){return 0!==this.negative},BN.prototype.neg=function(){return this.clone().ineg()},BN.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},BN.prototype.iuor=function(en){for(;this.length<en.length;)this.words[this.length++]=0;for(var ei=0;ei<en.length;ei++)this.words[ei]=this.words[ei]|en.words[ei];return this.strip()},BN.prototype.ior=function(en){return assert((this.negative|en.negative)==0),this.iuor(en)},BN.prototype.or=function(en){return this.length>en.length?this.clone().ior(en):en.clone().ior(this)},BN.prototype.uor=function(en){return this.length>en.length?this.clone().iuor(en):en.clone().iuor(this)},BN.prototype.iuand=function(en){var ei;ei=this.length>en.length?en:this;for(var eo=0;eo<ei.length;eo++)this.words[eo]=this.words[eo]&en.words[eo];return this.length=ei.length,this.strip()},BN.prototype.iand=function(en){return assert((this.negative|en.negative)==0),this.iuand(en)},BN.prototype.and=function(en){return this.length>en.length?this.clone().iand(en):en.clone().iand(this)},BN.prototype.uand=function(en){return this.length>en.length?this.clone().iuand(en):en.clone().iuand(this)},BN.prototype.iuxor=function(en){this.length>en.length?(ei=this,eo=en):(ei=en,eo=this);for(var ei,eo,ea=0;ea<eo.length;ea++)this.words[ea]=ei.words[ea]^eo.words[ea];if(this!==ei)for(;ea<ei.length;ea++)this.words[ea]=ei.words[ea];return this.length=ei.length,this.strip()},BN.prototype.ixor=function(en){return assert((this.negative|en.negative)==0),this.iuxor(en)},BN.prototype.xor=function(en){return this.length>en.length?this.clone().ixor(en):en.clone().ixor(this)},BN.prototype.uxor=function(en){return this.length>en.length?this.clone().iuxor(en):en.clone().iuxor(this)},BN.prototype.inotn=function(en){assert("number"==typeof en&&en>=0);var ei=0|Math.ceil(en/26),eo=en%26;this._expand(ei),eo>0&&ei--;for(var ea=0;ea<ei;ea++)this.words[ea]=67108863&~this.words[ea];return eo>0&&(this.words[ea]=~this.words[ea]&67108863>>26-eo),this.strip()},BN.prototype.notn=function(en){return this.clone().inotn(en)},BN.prototype.setn=function(en,ei){assert("number"==typeof en&&en>=0);var eo=en/26|0,ea=en%26;return this._expand(eo+1),ei?this.words[eo]=this.words[eo]|1<<ea:this.words[eo]=this.words[eo]&~(1<<ea),this.strip()},BN.prototype.iadd=function(en){if(0!==this.negative&&0===en.negative)return this.negative=0,ei=this.isub(en),this.negative^=1,this._normSign();if(0===this.negative&&0!==en.negative)return en.negative=0,ei=this.isub(en),en.negative=1,ei._normSign();this.length>en.length?(eo=this,ea=en):(eo=en,ea=this);for(var ei,eo,ea,es=0,ed=0;ed<ea.length;ed++)ei=(0|eo.words[ed])+(0|ea.words[ed])+es,this.words[ed]=67108863&ei,es=ei>>>26;for(;0!==es&&ed<eo.length;ed++)ei=(0|eo.words[ed])+es,this.words[ed]=67108863&ei,es=ei>>>26;if(this.length=eo.length,0!==es)this.words[this.length]=es,this.length++;else if(eo!==this)for(;ed<eo.length;ed++)this.words[ed]=eo.words[ed];return this},BN.prototype.add=function(en){var ei;return 0!==en.negative&&0===this.negative?(en.negative=0,ei=this.sub(en),en.negative^=1,ei):0===en.negative&&0!==this.negative?(this.negative=0,ei=en.sub(this),this.negative=1,ei):this.length>en.length?this.clone().iadd(en):en.clone().iadd(this)},BN.prototype.isub=function(en){if(0!==en.negative){en.negative=0;
vendor: 5,219 bytes, line 4
4var ei,eo,ea=this.iadd(en);return en.negative=1,ea._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(en),this.negative=1,this._normSign();var es=this.cmp(en);if(0===es)return this.negative=0,this.length=1,this.words[0]=0,this;es>0?(ei=this,eo=en):(ei=en,eo=this);for(var ed=0,eu=0;eu<eo.length;eu++)ed=(ea=(0|ei.words[eu])-(0|eo.words[eu])+ed)>>26,this.words[eu]=67108863&ea;for(;0!==ed&&eu<ei.length;eu++)ed=(ea=(0|ei.words[eu])+ed)>>26,this.words[eu]=67108863&ea;if(0===ed&&eu<ei.length&&ei!==this)for(;eu<ei.length;eu++)this.words[eu]=ei.words[eu];return this.length=Math.max(this.length,eu),ei!==this&&(this.negative=1),this.strip()},BN.prototype.sub=function(en){return this.clone().isub(en)};var comb10MulTo=function(en,ei,eo){var ea,es,ed,eu=en.words,ef=ei.words,ep=eo.words,em=0,eg=0|eu[0],ey=8191&eg,eb=eg>>>13,eS=0|eu[1],e_=8191&eS,eR=eS>>>13,eA=0|eu[2],ew=8191&eA,eO=eA>>>13,eE=0|eu[3],eP=8191&eE,eC=eE>>>13,eT=0|eu[4],eB=8191&eT,eN=eT>>>13,eI=0|eu[5],ex=8191&eI,eM=eI>>>13,eD=0|eu[6],eU=8191&eD,eL=eD>>>13,eJ=0|eu[7],eF=8191&eJ,eH=eJ>>>13,eq=0|eu[8],ej=8191&eq,eV=eq>>>13,eW=0|eu[9],eG=8191&eW,eQ=eW>>>13,eK=0|ef[0],eZ=8191&eK,ez=eK>>>13,eY=0|ef[1],e$=8191&eY,eX=eY>>>13,e0=0|ef[2],e1=8191&e0,e2=e0>>>13,e3=0|ef[3],e6=8191&e3,e5=e3>>>13,e8=0|ef[4],e4=8191&e8,e7=e8>>>13,e9=0|ef[5],tn=8191&e9,ta=e9>>>13,td=0|ef[6],tc=8191&td,tu=td>>>13,tf=0|ef[7],tp=8191&tf,th=tf>>>13,tm=0|ef[8],tg=8191&tm,ty=tm>>>13,tv=0|ef[9],tS=8191&tv,t_=tv>>>13;eo.negative=en.negative^ei.negative,eo.length=19;var tR=(em+(ea=Math.imul(ey,eZ))|0)+((8191&(es=(es=Math.imul(ey,ez))+Math.imul(eb,eZ)|0))<<13)|0;em=((ed=Math.imul(eb,ez))+(es>>>13)|0)+(tR>>>26)|0,tR&=67108863,ea=Math.imul(e_,eZ),es=(es=Math.imul(e_,ez))+Math.imul(eR,eZ)|0,ed=Math.imul(eR,ez);var tA=(em+(ea=ea+Math.imul(ey,e$)|0)|0)+((8191&(es=(es=es+Math.imul(ey,eX)|0)+Math.imul(eb,e$)|0))<<13)|0;em=((ed=ed+Math.imul(eb,eX)|0)+(es>>>13)|0)+(tA>>>26)|0,tA&=67108863,ea=Math.imul(ew,eZ),es=(es=Math.imul(ew,ez))+Math.imul(eO,eZ)|0,ed=Math.imul(eO,ez),ea=ea+Math.imul(e_,e$)|0,es=(es=es+Math.imul(e_,eX)|0)+Math.imul(eR,e$)|0,ed=ed+Math.imul(eR,eX)|0;var tw=(em+(ea=ea+Math.imul(ey,e1)|0)|0)+((8191&(es=(es=es+Math.imul(ey,e2)|0)+Math.imul(eb,e1)|0))<<13)|0;em=((ed=ed+Math.imul(eb,e2)|0)+(es>>>13)|0)+(tw>>>26)|0,tw&=67108863,ea=Math.imul(eP,eZ),es=(es=Math.imul(eP,ez))+Math.imul(eC,eZ)|0,ed=Math.imul(eC,ez),ea=ea+Math.imul(ew,e$)|0,es=(es=es+Math.imul(ew,eX)|0)+Math.imul(eO,e$)|0,ed=ed+Math.imul(eO,eX)|0,ea=ea+Math.imul(e_,e1)|0,es=(es=es+Math.imul(e_,e2)|0)+Math.imul(eR,e1)|0,ed=ed+Math.imul(eR,e2)|0;var tO=(em+(ea=ea+Math.imul(ey,e6)|0)|0)+((8191&(es=(es=es+Math.imul(ey,e5)|0)+Math.imul(eb,e6)|0))<<13)|0;em=((ed=ed+Math.imul(eb,e5)|0)+(es>>>13)|0)+(tO>>>26)|0,tO&=67108863,ea=Math.imul(eB,eZ),es=(es=Math.imul(eB,ez))+Math.imul(eN,eZ)|0,ed=Math.imul(eN,ez),ea=ea+Math.imul(eP,e$)|0,es=(es=es+Math.imul(eP,eX)|0)+Math.imul(eC,e$)|0,ed=ed+Math.imul(eC,eX)|0,ea=ea+Math.imul(ew,e1)|0,es=(es=es+Math.imul(ew,e2)|0)+Math.imul(eO,e1)|0,ed=ed+Math.imul(eO,e2)|0,ea=ea+Math.imul(e_,e6)|0,es=(es=es+Math.imul(e_,e5)|0)+Math.imul(eR,e6)|0,ed=ed+Math.imul(eR,e5)|0;var tE=(em+(ea=ea+Math.imul(ey,e4)|0)|0)+((8191&(es=(es=es+Math.imul(ey,e7)|0)+Math.imul(eb,e4)|0))<<13)|0;em=((ed=ed+Math.imul(eb,e7)|0)+(es>>>13)|0)+(tE>>>26)|0,tE&=67108863,ea=Math.imul(ex,eZ),es=(es=Math.imul(ex,ez))+Math.imul(eM,eZ)|0,ed=Math.imul(eM,ez),ea=ea+Math.imul(eB,e$)|0,es=(es=es+Math.imul(eB,eX)|0)+Math.imul(eN,e$)|0,ed=ed+Math.imul(eN,eX)|0,ea=ea+Math.imul(eP,e1)|0,es=(es=es+Math.imul(eP,e2)|0)+Math.imul(eC,e1)|0,ed=ed+Math.imul(eC,e2)|0,ea=ea+Math.imul(ew,e6)|0,es=(es=es+Math.imul(ew,e5)|0)+Math.imul(eO,e6)|0,ed=ed+Math.imul(eO,e5)|0,ea=ea+Math.imul(e_,e4)|0,es=(es=es+Math.imul(e_,e7)|0)+Math.imul(eR,e4)|0,ed=ed+Math.imul(eR,e7)|0;var tP=(em+(ea=ea+Math.imul(ey,tn)|0)|0)+((8191&(es=(es=es+Math.imul(ey,ta)|0)+Math.imul(eb,tn)|0))<<13)|0;em=((ed=ed+Math.imul(eb,ta)|0)+(es>>>13)|0)+(tP>>>26)|0,tP&=67108863,ea=Math.imul(eU,eZ),es=(es=Math.imul(eU,ez))+Math.imul(eL,eZ)|0,ed=Math.imul(eL,ez),ea=ea+Math.imul(ex,e$)|0,es=(es=es+Math.imul(ex,eX)|0)+Math.imul(eM,e$)|0,ed=ed+Math.imul(eM,eX)|0,ea=ea+Math.imul(eB,e1)|0,es=(es=es+Math.imul(eB,e2)|0)+Math.imul(eN,e1)|0,ed=ed+Math.imul(eN,e2)|0,ea=ea+Math.imul(eP,e6)|0,es=(es=es+Math.imul(eP,e5)|0)+Math.imul(eC,e6)|0,ed=ed+Math.imul(eC,e5)|0,ea=ea+Math.imul(ew,e4)|0,es=(es=es+Math.imul(ew,e7)|0)+Math.imul(eO,e4)|0,ed=ed+Math.imul(eO,e7)|0,ea=ea+Math.imul(e_,tn)|0,es=(es=es+Math.imul(e_,ta)|0)+Math.imul(eR,tn)|0,ed=ed+Math.imul(eR,ta)|0;var tC=(em+(ea=ea+Math.imul(ey,tc)|0)|0)+((8191&(es=(es=es+Math.imul(ey,tu)|0)+Math.imul(eb,tc)|0))<<13)|0;em=((ed=ed+Math.imul(eb,tu)|0)+(es>>>13)|0)+(tC>>>26)|0,tC&=67108863,ea=Math.imul(eF,eZ),es=(es=Math.imul(eF,ez))+Math.imul(eH,eZ)|0,ed=Math.imul(eH,ez),ea=ea+Math.imul(eU,e$)|0,es=(es=es+Math.imul(eU,eX)|0)+Math.imul(eL,e$)|0,ed=ed+Math.imul(eL,eX)|0,ea=ea+Math.imul(ex,e1)|0,es=(es=es+Math.imul(ex,e2)|0)+Math.imul(eM,e1)|0,ed=ed+Math.imul(eM,e2)|0,ea=ea+Math.imul(eB,e6)|0,es=(es=es+Math.imul(eB,e5)|0)+Math.imul(eN,e6)|0,ed=ed+Math.imul(eN,e5)|0,ea=ea+Math.imul(eP,e4)|0,es=(es=es+Math.imul(eP,e7)|0)+Math.imul(eC,e4)|0,ed=ed+Math.imul(eC,e7)|0,ea=ea+Math.imul(ew,tn
vendor: 5,557 bytes, line 4
4)|0,es=(es=es+Math.imul(ew,ta)|0)+Math.imul(eO,tn)|0,ed=ed+Math.imul(eO,ta)|0,ea=ea+Math.imul(e_,tc)|0,es=(es=es+Math.imul(e_,tu)|0)+Math.imul(eR,tc)|0,ed=ed+Math.imul(eR,tu)|0;var tT=(em+(ea=ea+Math.imul(ey,tp)|0)|0)+((8191&(es=(es=es+Math.imul(ey,th)|0)+Math.imul(eb,tp)|0))<<13)|0;em=((ed=ed+Math.imul(eb,th)|0)+(es>>>13)|0)+(tT>>>26)|0,tT&=67108863,ea=Math.imul(ej,eZ),es=(es=Math.imul(ej,ez))+Math.imul(eV,eZ)|0,ed=Math.imul(eV,ez),ea=ea+Math.imul(eF,e$)|0,es=(es=es+Math.imul(eF,eX)|0)+Math.imul(eH,e$)|0,ed=ed+Math.imul(eH,eX)|0,ea=ea+Math.imul(eU,e1)|0,es=(es=es+Math.imul(eU,e2)|0)+Math.imul(eL,e1)|0,ed=ed+Math.imul(eL,e2)|0,ea=ea+Math.imul(ex,e6)|0,es=(es=es+Math.imul(ex,e5)|0)+Math.imul(eM,e6)|0,ed=ed+Math.imul(eM,e5)|0,ea=ea+Math.imul(eB,e4)|0,es=(es=es+Math.imul(eB,e7)|0)+Math.imul(eN,e4)|0,ed=ed+Math.imul(eN,e7)|0,ea=ea+Math.imul(eP,tn)|0,es=(es=es+Math.imul(eP,ta)|0)+Math.imul(eC,tn)|0,ed=ed+Math.imul(eC,ta)|0,ea=ea+Math.imul(ew,tc)|0,es=(es=es+Math.imul(ew,tu)|0)+Math.imul(eO,tc)|0,ed=ed+Math.imul(eO,tu)|0,ea=ea+Math.imul(e_,tp)|0,es=(es=es+Math.imul(e_,th)|0)+Math.imul(eR,tp)|0,ed=ed+Math.imul(eR,th)|0;var tB=(em+(ea=ea+Math.imul(ey,tg)|0)|0)+((8191&(es=(es=es+Math.imul(ey,ty)|0)+Math.imul(eb,tg)|0))<<13)|0;em=((ed=ed+Math.imul(eb,ty)|0)+(es>>>13)|0)+(tB>>>26)|0,tB&=67108863,ea=Math.imul(eG,eZ),es=(es=Math.imul(eG,ez))+Math.imul(eQ,eZ)|0,ed=Math.imul(eQ,ez),ea=ea+Math.imul(ej,e$)|0,es=(es=es+Math.imul(ej,eX)|0)+Math.imul(eV,e$)|0,ed=ed+Math.imul(eV,eX)|0,ea=ea+Math.imul(eF,e1)|0,es=(es=es+Math.imul(eF,e2)|0)+Math.imul(eH,e1)|0,ed=ed+Math.imul(eH,e2)|0,ea=ea+Math.imul(eU,e6)|0,es=(es=es+Math.imul(eU,e5)|0)+Math.imul(eL,e6)|0,ed=ed+Math.imul(eL,e5)|0,ea=ea+Math.imul(ex,e4)|0,es=(es=es+Math.imul(ex,e7)|0)+Math.imul(eM,e4)|0,ed=ed+Math.imul(eM,e7)|0,ea=ea+Math.imul(eB,tn)|0,es=(es=es+Math.imul(eB,ta)|0)+Math.imul(eN,tn)|0,ed=ed+Math.imul(eN,ta)|0,ea=ea+Math.imul(eP,tc)|0,es=(es=es+Math.imul(eP,tu)|0)+Math.imul(eC,tc)|0,ed=ed+Math.imul(eC,tu)|0,ea=ea+Math.imul(ew,tp)|0,es=(es=es+Math.imul(ew,th)|0)+Math.imul(eO,tp)|0,ed=ed+Math.imul(eO,th)|0,ea=ea+Math.imul(e_,tg)|0,es=(es=es+Math.imul(e_,ty)|0)+Math.imul(eR,tg)|0,ed=ed+Math.imul(eR,ty)|0;var tN=(em+(ea=ea+Math.imul(ey,tS)|0)|0)+((8191&(es=(es=es+Math.imul(ey,t_)|0)+Math.imul(eb,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eb,t_)|0)+(es>>>13)|0)+(tN>>>26)|0,tN&=67108863,ea=Math.imul(eG,e$),es=(es=Math.imul(eG,eX))+Math.imul(eQ,e$)|0,ed=Math.imul(eQ,eX),ea=ea+Math.imul(ej,e1)|0,es=(es=es+Math.imul(ej,e2)|0)+Math.imul(eV,e1)|0,ed=ed+Math.imul(eV,e2)|0,ea=ea+Math.imul(eF,e6)|0,es=(es=es+Math.imul(eF,e5)|0)+Math.imul(eH,e6)|0,ed=ed+Math.imul(eH,e5)|0,ea=ea+Math.imul(eU,e4)|0,es=(es=es+Math.imul(eU,e7)|0)+Math.imul(eL,e4)|0,ed=ed+Math.imul(eL,e7)|0,ea=ea+Math.imul(ex,tn)|0,es=(es=es+Math.imul(ex,ta)|0)+Math.imul(eM,tn)|0,ed=ed+Math.imul(eM,ta)|0,ea=ea+Math.imul(eB,tc)|0,es=(es=es+Math.imul(eB,tu)|0)+Math.imul(eN,tc)|0,ed=ed+Math.imul(eN,tu)|0,ea=ea+Math.imul(eP,tp)|0,es=(es=es+Math.imul(eP,th)|0)+Math.imul(eC,tp)|0,ed=ed+Math.imul(eC,th)|0,ea=ea+Math.imul(ew,tg)|0,es=(es=es+Math.imul(ew,ty)|0)+Math.imul(eO,tg)|0,ed=ed+Math.imul(eO,ty)|0;var tI=(em+(ea=ea+Math.imul(e_,tS)|0)|0)+((8191&(es=(es=es+Math.imul(e_,t_)|0)+Math.imul(eR,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eR,t_)|0)+(es>>>13)|0)+(tI>>>26)|0,tI&=67108863,ea=Math.imul(eG,e1),es=(es=Math.imul(eG,e2))+Math.imul(eQ,e1)|0,ed=Math.imul(eQ,e2),ea=ea+Math.imul(ej,e6)|0,es=(es=es+Math.imul(ej,e5)|0)+Math.imul(eV,e6)|0,ed=ed+Math.imul(eV,e5)|0,ea=ea+Math.imul(eF,e4)|0,es=(es=es+Math.imul(eF,e7)|0)+Math.imul(eH,e4)|0,ed=ed+Math.imul(eH,e7)|0,ea=ea+Math.imul(eU,tn)|0,es=(es=es+Math.imul(eU,ta)|0)+Math.imul(eL,tn)|0,ed=ed+Math.imul(eL,ta)|0,ea=ea+Math.imul(ex,tc)|0,es=(es=es+Math.imul(ex,tu)|0)+Math.imul(eM,tc)|0,ed=ed+Math.imul(eM,tu)|0,ea=ea+Math.imul(eB,tp)|0,es=(es=es+Math.imul(eB,th)|0)+Math.imul(eN,tp)|0,ed=ed+Math.imul(eN,th)|0,ea=ea+Math.imul(eP,tg)|0,es=(es=es+Math.imul(eP,ty)|0)+Math.imul(eC,tg)|0,ed=ed+Math.imul(eC,ty)|0;var tM=(em+(ea=ea+Math.imul(ew,tS)|0)|0)+((8191&(es=(es=es+Math.imul(ew,t_)|0)+Math.imul(eO,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eO,t_)|0)+(es>>>13)|0)+(tM>>>26)|0,tM&=67108863,ea=Math.imul(eG,e6),es=(es=Math.imul(eG,e5))+Math.imul(eQ,e6)|0,ed=Math.imul(eQ,e5),ea=ea+Math.imul(ej,e4)|0,es=(es=es+Math.imul(ej,e7)|0)+Math.imul(eV,e4)|0,ed=ed+Math.imul(eV,e7)|0,ea=ea+Math.imul(eF,tn)|0,es=(es=es+Math.imul(eF,ta)|0)+Math.imul(eH,tn)|0,ed=ed+Math.imul(eH,ta)|0,ea=ea+Math.imul(eU,tc)|0,es=(es=es+Math.imul(eU,tu)|0)+Math.imul(eL,tc)|0,ed=ed+Math.imul(eL,tu)|0,ea=ea+Math.imul(ex,tp)|0,es=(es=es+Math.imul(ex,th)|0)+Math.imul(eM,tp)|0,ed=ed+Math.imul(eM,th)|0,ea=ea+Math.imul(eB,tg)|0,es=(es=es+Math.imul(eB,ty)|0)+Math.imul(eN,tg)|0,ed=ed+Math.imul(eN,ty)|0;var tD=(em+(ea=ea+Math.imul(eP,tS)|0)|0)+((8191&(es=(es=es+Math.imul(eP,t_)|0)+Math.imul(eC,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eC,t_)|0)+(es>>>13)|0)+(tD>>>26)|0,tD&=67108863,ea=Math.imul(eG,e4),es=(es=Math.imul(eG,e7))+Math.imul(eQ,e4)|0,ed=Math.imul(eQ,e7),ea=ea+Math.imul(ej,tn)|0,es=(es=es+Math.imul(ej,ta)|0)+Math.imul(eV,tn)|0,ed=ed+Math.imul(eV,ta)|0,ea=ea+Math.imul(eF,tc)|0,es=(es=es+Math.imul(eF,tu)|0)+Math.imul(eH,tc)|0,ed=ed+Math.imul(eH,tu)|0,ea=ea+Math.imul(eU,tp)|0,es=(es=es+Math.imul(eU,th)|0)+Math.imul(eL,tp)|0,ed=ed+Math.imul(eL,th)|0,ea=ea+Math.imul(ex,tg)|0,es=(es=es+Math.imul(ex,ty)|0)+Math.imul(eM,tg)|0,ed=ed+Math.imul(eM,ty)|0;var tU=(em+(ea=ea+Math.imul(eB,tS)|0)|0)+((8191&(es=(es=es+Math.imul(eB,t_)|0)+Math.imul(eN,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eN,t_)|0)+(es>>>13)|0)+(tU>>>
vendor: 6,961 bytes, line 4
426)|0,tU&=67108863,ea=Math.imul(eG,tn),es=(es=Math.imul(eG,ta))+Math.imul(eQ,tn)|0,ed=Math.imul(eQ,ta),ea=ea+Math.imul(ej,tc)|0,es=(es=es+Math.imul(ej,tu)|0)+Math.imul(eV,tc)|0,ed=ed+Math.imul(eV,tu)|0,ea=ea+Math.imul(eF,tp)|0,es=(es=es+Math.imul(eF,th)|0)+Math.imul(eH,tp)|0,ed=ed+Math.imul(eH,th)|0,ea=ea+Math.imul(eU,tg)|0,es=(es=es+Math.imul(eU,ty)|0)+Math.imul(eL,tg)|0,ed=ed+Math.imul(eL,ty)|0;var tL=(em+(ea=ea+Math.imul(ex,tS)|0)|0)+((8191&(es=(es=es+Math.imul(ex,t_)|0)+Math.imul(eM,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eM,t_)|0)+(es>>>13)|0)+(tL>>>26)|0,tL&=67108863,ea=Math.imul(eG,tc),es=(es=Math.imul(eG,tu))+Math.imul(eQ,tc)|0,ed=Math.imul(eQ,tu),ea=ea+Math.imul(ej,tp)|0,es=(es=es+Math.imul(ej,th)|0)+Math.imul(eV,tp)|0,ed=ed+Math.imul(eV,th)|0,ea=ea+Math.imul(eF,tg)|0,es=(es=es+Math.imul(eF,ty)|0)+Math.imul(eH,tg)|0,ed=ed+Math.imul(eH,ty)|0;var tJ=(em+(ea=ea+Math.imul(eU,tS)|0)|0)+((8191&(es=(es=es+Math.imul(eU,t_)|0)+Math.imul(eL,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eL,t_)|0)+(es>>>13)|0)+(tJ>>>26)|0,tJ&=67108863,ea=Math.imul(eG,tp),es=(es=Math.imul(eG,th))+Math.imul(eQ,tp)|0,ed=Math.imul(eQ,th),ea=ea+Math.imul(ej,tg)|0,es=(es=es+Math.imul(ej,ty)|0)+Math.imul(eV,tg)|0,ed=ed+Math.imul(eV,ty)|0;var tF=(em+(ea=ea+Math.imul(eF,tS)|0)|0)+((8191&(es=(es=es+Math.imul(eF,t_)|0)+Math.imul(eH,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eH,t_)|0)+(es>>>13)|0)+(tF>>>26)|0,tF&=67108863,ea=Math.imul(eG,tg),es=(es=Math.imul(eG,ty))+Math.imul(eQ,tg)|0,ed=Math.imul(eQ,ty);var tH=(em+(ea=ea+Math.imul(ej,tS)|0)|0)+((8191&(es=(es=es+Math.imul(ej,t_)|0)+Math.imul(eV,tS)|0))<<13)|0;em=((ed=ed+Math.imul(eV,t_)|0)+(es>>>13)|0)+(tH>>>26)|0,tH&=67108863;var tq=(em+(ea=Math.imul(eG,tS))|0)+((8191&(es=(es=Math.imul(eG,t_))+Math.imul(eQ,tS)|0))<<13)|0;return em=((ed=Math.imul(eQ,t_))+(es>>>13)|0)+(tq>>>26)|0,tq&=67108863,ep[0]=tR,ep[1]=tA,ep[2]=tw,ep[3]=tO,ep[4]=tE,ep[5]=tP,ep[6]=tC,ep[7]=tT,ep[8]=tB,ep[9]=tN,ep[10]=tI,ep[11]=tM,ep[12]=tD,ep[13]=tU,ep[14]=tL,ep[15]=tJ,ep[16]=tF,ep[17]=tH,ep[18]=tq,0!==em&&(ep[19]=em,eo.length++),eo};function bigMulTo(en,ei,eo){eo.negative=ei.negative^en.negative,eo.length=en.length+ei.length;for(var ea=0,es=0,ed=0;ed<eo.length-1;ed++){var eu=es;es=0;for(var ef=67108863&ea,ep=Math.min(ed,ei.length-1),em=Math.max(0,ed-en.length+1);em<=ep;em++){var eg=ed-em,ey=(0|en.words[eg])*(0|ei.words[em]),eb=67108863&ey;eu=eu+(ey/67108864|0)|0,ef=67108863&(eb=eb+ef|0),es+=(eu=eu+(eb>>>26)|0)>>>26,eu&=67108863}eo.words[ed]=ef,ea=eu,eu=es}return 0!==ea?eo.words[ed]=ea:eo.length--,eo.strip()}function jumboMulTo(en,ei,eo){return new FFTM().mulp(en,ei,eo)}function FFTM(en,ei){this.x=en,this.y=ei}Math.imul||(comb10MulTo=smallMulTo),BN.prototype.mulTo=function(en,ei){var eo=this.length+en.length;return 10===this.length&&10===en.length?comb10MulTo(this,en,ei):eo<63?smallMulTo(this,en,ei):eo<1024?bigMulTo(this,en,ei):jumboMulTo(this,en,ei)},FFTM.prototype.makeRBT=function(en){for(var ei=Array(en),eo=BN.prototype._countBits(en)-1,ea=0;ea<en;ea++)ei[ea]=this.revBin(ea,eo,en);return ei},FFTM.prototype.revBin=function(en,ei,eo){if(0===en||en===eo-1)return en;for(var ea=0,es=0;es<ei;es++)ea|=(1&en)<<ei-es-1,en>>=1;return ea},FFTM.prototype.permute=function(en,ei,eo,ea,es,ed){for(var eu=0;eu<ed;eu++)ea[eu]=ei[en[eu]],es[eu]=eo[en[eu]]},FFTM.prototype.transform=function(en,ei,eo,ea,es,ed){this.permute(ed,en,ei,eo,ea,es);for(var eu=1;eu<es;eu<<=1)for(var ef=eu<<1,ep=Math.cos(2*Math.PI/ef),em=Math.sin(2*Math.PI/ef),eg=0;eg<es;eg+=ef)for(var ey=ep,eb=em,eS=0;eS<eu;eS++){var e_=eo[eg+eS],eR=ea[eg+eS],eA=eo[eg+eS+eu],ew=ea[eg+eS+eu],eO=ey*eA-eb*ew;ew=ey*ew+eb*eA,eA=eO,eo[eg+eS]=e_+eA,ea[eg+eS]=eR+ew,eo[eg+eS+eu]=e_-eA,ea[eg+eS+eu]=eR-ew,eS!==ef&&(eO=ep*ey-em*eb,eb=ep*eb+em*ey,ey=eO)}},FFTM.prototype.guessLen13b=function(en,ei){var eo=1|Math.max(ei,en),ea=1&eo,es=0;for(eo=eo/2|0;eo;eo>>>=1)es++;return 1<<es+1+ea},FFTM.prototype.conjugate=function(en,ei,eo){if(!(eo<=1))for(var ea=0;ea<eo/2;ea++){var es=en[ea];en[ea]=en[eo-ea-1],en[eo-ea-1]=es,es=ei[ea],ei[ea]=-ei[eo-ea-1],ei[eo-ea-1]=-es}},FFTM.prototype.normalize13b=function(en,ei){for(var eo=0,ea=0;ea<ei/2;ea++){var es=8192*Math.round(en[2*ea+1]/ei)+Math.round(en[2*ea]/ei)+eo;en[ea]=67108863&es,eo=es<67108864?0:es/67108864|0}return en},FFTM.prototype.convert13b=function(en,ei,eo,ea){for(var es=0,ed=0;ed<ei;ed++)es+=0|en[ed],eo[2*ed]=8191&es,es>>>=13,eo[2*ed+1]=8191&es,es>>>=13;for(ed=2*ei;ed<ea;++ed)eo[ed]=0;assert(0===es),assert((-8192&es)==0)},FFTM.prototype.stub=function(en){for(var ei=Array(en),eo=0;eo<en;eo++)ei[eo]=0;return ei},FFTM.prototype.mulp=function(en,ei,eo){var ea=2*this.guessLen13b(en.length,ei.length),es=this.makeRBT(ea),ed=this.stub(ea),eu=Array(ea),ef=Array(ea),ep=Array(ea),em=Array(ea),eg=Array(ea),ey=Array(ea),eb=eo.words;eb.length=ea,this.convert13b(en.words,en.length,eu,ea),this.convert13b(ei.words,ei.length,em,ea),this.transform(eu,ed,ef,ep,ea,es),this.transform(em,ed,eg,ey,ea,es);for(var eS=0;eS<ea;eS++){var e_=ef[eS]*eg[eS]-ep[eS]*ey[eS];ep[eS]=ef[eS]*ey[eS]+ep[eS]*eg[eS],ef[eS]=e_}return this.conjugate(ef,ep,ea),this.transform(ef,ep,eb,ed,ea,es),this.conjugate(eb,ed,ea),this.normalize13b(eb,ea),eo.negative=en.negative^ei.negative,eo.length=en.length+ei.length,eo.strip()},BN.prototype.mul=function(en){var ei=new BN(null);return ei.words=Array(this.length+en.length),this.mulTo(en,ei)},BN.prototype.mulf=function(en){var ei=new BN(null);return ei.words=Array(this.length+en.length),jumboMulTo(this,en,ei)},BN.prototype.imul=function(en){return this.clone().mulTo(en,this)},BN.prototype.imuln=function(en){assert("number"==typeof en),assert(en<67108864);for(var ei=0,eo=0;eo<this.length;eo++){var ea=(0|this.words[eo])*en,es=(67108863&ea)+(67108863&ei);ei>>=26,ei+=(ea/67108864|0)+(es>>>26),this.words[eo]=67108863&es}return 0!==ei&&(this.words[eo]=ei,this.length++),this},BN.prototype.muln=function(en){return this.clone().imuln(en)},BN.prototype.sqr=function(){return this.mul(this)},BN.prototype.isqr=function(){return this.imul(this.clone())},BN.prototype.pow=function(en){var ei=toBitArray(en);if(0===ei.length)return new BN(1);for(var eo=this,ea=0;ea<ei.length&&0===ei[ea];ea++,eo=eo.sqr());if(++ea<ei.length)for(var es=eo.sqr();ea<ei.length;ea++,es=es.sqr())0!==ei[ea]&&(eo=eo.mul(es));return eo},BN.prototype.iushln=function(en){assert("number"==typeof en&&en>=0);var ei,eo=en%26,ea=(en-eo)/26,es=67108863>>>26-eo<<26-eo;if(0!==eo){var ed=0;for(ei=0;ei<this.length;ei++){var eu=this.words[ei]&es,ef=(0|this.words[ei])-eu<<eo;this.words[ei]=ef|ed,ed=eu>>>26-eo}ed&&(this.words[ei]=ed,this.length++)}if(0!==ea){for(ei=this.length-1;ei>=0;ei--)this.words[ei+ea]=this.words[ei];for(ei=0;ei<ea;ei++)this.words[ei]=0;this.length+=ea}return this.strip()},BN.prototype.ishln=function(en){return assert(0===this.negative),this.iushln(en)},BN.prototype.iushrn=function(en,ei,eo){assert("number"==typeof en&&en>=0),ea=ei?(ei-ei%26)/26:0;var ea,es=en%26,ed=Math.min((en-es)/26,this.length),eu=67108863^67108863>>>es<<es,ef=eo;
vendor: 19,595 bytes, line 4
4if(ea-=ed,ea=Math.max(0,ea),ef){for(var ep=0;ep<ed;ep++)ef.words[ep]=this.words[ep];ef.length=ed}if(0===ed);else if(this.length>ed)for(this.length-=ed,ep=0;ep<this.length;ep++)this.words[ep]=this.words[ep+ed];else this.words[0]=0,this.length=1;var em=0;for(ep=this.length-1;ep>=0&&(0!==em||ep>=ea);ep--){var eg=0|this.words[ep];this.words[ep]=em<<26-es|eg>>>es,em=eg&eu}return ef&&0!==em&&(ef.words[ef.length++]=em),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},BN.prototype.ishrn=function(en,ei,eo){return assert(0===this.negative),this.iushrn(en,ei,eo)},BN.prototype.shln=function(en){return this.clone().ishln(en)},BN.prototype.ushln=function(en){return this.clone().iushln(en)},BN.prototype.shrn=function(en){return this.clone().ishrn(en)},BN.prototype.ushrn=function(en){return this.clone().iushrn(en)},BN.prototype.testn=function(en){assert("number"==typeof en&&en>=0);var ei=en%26,eo=(en-ei)/26,ea=1<<ei;return!(this.length<=eo)&&!!(this.words[eo]&ea)},BN.prototype.imaskn=function(en){assert("number"==typeof en&&en>=0);var ei=en%26,eo=(en-ei)/26;if(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=eo)return this;if(0!==ei&&eo++,this.length=Math.min(eo,this.length),0!==ei){var ea=67108863^67108863>>>ei<<ei;this.words[this.length-1]&=ea}return this.strip()},BN.prototype.maskn=function(en){return this.clone().imaskn(en)},BN.prototype.iaddn=function(en){return(assert("number"==typeof en),assert(en<67108864),en<0)?this.isubn(-en):0!==this.negative?(1===this.length&&(0|this.words[0])<en?(this.words[0]=en-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(en),this.negative=1),this):this._iaddn(en)},BN.prototype._iaddn=function(en){this.words[0]+=en;for(var ei=0;ei<this.length&&this.words[ei]>=67108864;ei++)this.words[ei]-=67108864,ei===this.length-1?this.words[ei+1]=1:this.words[ei+1]++;return this.length=Math.max(this.length,ei+1),this},BN.prototype.isubn=function(en){if(assert("number"==typeof en),assert(en<67108864),en<0)return this.iaddn(-en);if(0!==this.negative)return this.negative=0,this.iaddn(en),this.negative=1,this;if(this.words[0]-=en,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var ei=0;ei<this.length&&this.words[ei]<0;ei++)this.words[ei]+=67108864,this.words[ei+1]-=1;return this.strip()},BN.prototype.addn=function(en){return this.clone().iaddn(en)},BN.prototype.subn=function(en){return this.clone().isubn(en)},BN.prototype.iabs=function(){return this.negative=0,this},BN.prototype.abs=function(){return this.clone().iabs()},BN.prototype._ishlnsubmul=function(en,ei,eo){var ea,es,ed=en.length+eo;this._expand(ed);var eu=0;for(ea=0;ea<en.length;ea++){es=(0|this.words[ea+eo])+eu;var ef=(0|en.words[ea])*ei;es-=67108863&ef,eu=(es>>26)-(ef/67108864|0),this.words[ea+eo]=67108863&es}for(;ea<this.length-eo;ea++)eu=(es=(0|this.words[ea+eo])+eu)>>26,this.words[ea+eo]=67108863&es;if(0===eu)return this.strip();for(assert(-1===eu),eu=0,ea=0;ea<this.length;ea++)eu=(es=-(0|this.words[ea])+eu)>>26,this.words[ea]=67108863&es;return this.negative=1,this.strip()},BN.prototype._wordDiv=function(en,ei){var eo,ea=this.length-en.length,es=this.clone(),ed=en,eu=0|ed.words[ed.length-1];0!=(ea=26-this._countBits(eu))&&(ed=ed.ushln(ea),es.iushln(ea),eu=0|ed.words[ed.length-1]);var ef=es.length-ed.length;if("mod"!==ei){(eo=new BN(null)).length=ef+1,eo.words=Array(eo.length);for(var ep=0;ep<eo.length;ep++)eo.words[ep]=0}var em=es.clone()._ishlnsubmul(ed,1,ef);0===em.negative&&(es=em,eo&&(eo.words[ef]=1));for(var eg=ef-1;eg>=0;eg--){var ey=(0|es.words[ed.length+eg])*67108864+(0|es.words[ed.length+eg-1]);for(ey=Math.min(ey/eu|0,67108863),es._ishlnsubmul(ed,ey,eg);0!==es.negative;)ey--,es.negative=0,es._ishlnsubmul(ed,1,eg),es.isZero()||(es.negative^=1);eo&&(eo.words[eg]=ey)}return eo&&eo.strip(),es.strip(),"div"!==ei&&0!==ea&&es.iushrn(ea),{div:eo||null,mod:es}},BN.prototype.divmod=function(en,ei,eo){var ea,es,ed;return(assert(!en.isZero()),this.isZero())?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===en.negative?(ed=this.neg().divmod(en,ei),"mod"!==ei&&(ea=ed.div.neg()),"div"!==ei&&(es=ed.mod.neg(),eo&&0!==es.negative&&es.iadd(en)),{div:ea,mod:es}):0===this.negative&&0!==en.negative?(ed=this.divmod(en.neg(),ei),"mod"!==ei&&(ea=ed.div.neg()),{div:ea,mod:ed.mod}):(this.negative&en.negative)!=0?(ed=this.neg().divmod(en.neg(),ei),"div"!==ei&&(es=ed.mod.neg(),eo&&0!==es.negative&&es.isub(en)),{div:ed.div,mod:es}):en.length>this.length||0>this.cmp(en)?{div:new BN(0),mod:this}:1===en.length?"div"===ei?{div:this.divn(en.words[0]),mod:null}:"mod"===ei?{div:null,mod:new BN(this.modn(en.words[0]))}:{div:this.divn(en.words[0]),mod:new BN(this.modn(en.words[0]))}:this._wordDiv(en,ei)},BN.prototype.div=function(en){return this.divmod(en,"div",!1).div},BN.prototype.mod=function(en){return this.divmod(en,"mod",!1).mod},BN.prototype.umod=function(en){return this.divmod(en,"mod",!0).mod},BN.prototype.divRound=function(en){var ei=this.divmod(en);if(ei.mod.isZero())return ei.div;var eo=0!==ei.div.negative?ei.mod.isub(en):ei.mod,ea=en.ushrn(1),es=en.andln(1),ed=eo.cmp(ea);return ed<0||1===es&&0===ed?ei.div:0!==ei.div.negative?ei.div.isubn(1):ei.div.iaddn(1)},BN.prototype.modn=function(en){assert(en<=67108863);for(var ei=67108864%en,eo=0,ea=this.length-1;ea>=0;ea--)eo=(ei*eo+(0|this.words[ea]))%en;return eo},BN.prototype.idivn=function(en){assert(en<=67108863);for(var ei=0,eo=this.length-1;eo>=0;eo--){var ea=(0|this.words[eo])+67108864*ei;this.words[eo]=ea/en|0,ei=ea%en}return this.strip()},BN.prototype.divn=function(en){return this.clone().idivn(en)},BN.prototype.egcd=function(en){assert(0===en.negative),assert(!en.isZero());var ei=this,eo=en.clone();ei=0!==ei.negative?ei.umod(en):ei.clone();for(var ea=new BN(1),es=new BN(0),ed=new BN(0),eu=new BN(1),ef=0;ei.isEven()&&eo.isEven();)ei.iushrn(1),eo.iushrn(1),++ef;for(var ep=eo.clone(),em=ei.clone();!ei.isZero();){for(var eg=0,ey=1;(ei.words[0]&ey)==0&&eg<26;++eg,ey<<=1);if(eg>0)for(ei.iushrn(eg);eg-- >0;)(ea.isOdd()||es.isOdd())&&(ea.iadd(ep),es.isub(em)),ea.iushrn(1),es.iushrn(1);for(var eb=0,eS=1;(eo.words[0]&eS)==0&&eb<26;++eb,eS<<=1);if(eb>0)for(eo.iushrn(eb);eb-- >0;)(ed.isOdd()||eu.isOdd())&&(ed.iadd(ep),eu.isub(em)),ed.iushrn(1),eu.iushrn(1);ei.cmp(eo)>=0?(ei.isub(eo),ea.isub(ed),es.isub(eu)):(eo.isub(ei),ed.isub(ea),eu.isub(es))}return{a:ed,b:eu,gcd:eo.iushln(ef)}},BN.prototype._invmp=function(en){assert(0===en.negative),assert(!en.isZero());var ei,eo=this,ea=en.clone();eo=0!==eo.negative?eo.umod(en):eo.clone();for(var es=new BN(1),ed=new BN(0),eu=ea.clone();eo.cmpn(1)>0&&ea.cmpn(1)>0;){for(var ef=0,ep=1;(eo.words[0]&ep)==0&&ef<26;++ef,ep<<=1);if(ef>0)for(eo.iushrn(ef);ef-- >0;)es.isOdd()&&es.iadd(eu),es.iushrn(1);for(var em=0,eg=1;(ea.words[0]&eg)==0&&em<26;++em,eg<<=1);if(em>0)for(ea.iushrn(em);em-- >0;)ed.isOdd()&&ed.iadd(eu),ed.iushrn(1);eo.cmp(ea)>=0?(eo.isub(ea),es.isub(ed)):(ea.isub(eo),ed.isub(es))}return 0>(ei=0===eo.cmpn(1)?es:ed).cmpn(0)&&ei.iadd(en),ei},BN.prototype.gcd=function(en){if(this.isZero())return en.abs();if(en.isZero())return this.abs();var ei=this.clone(),eo=en.clone();ei.negative=0,eo.negative=0;for(var ea=0;ei.isEven()&&eo.isEven();ea++)ei.iushrn(1),eo.iushrn(1);for(;;){for(;ei.isEven();)ei.iushrn(1);for(;eo.isEven();)eo.iushrn(1);var es=ei.cmp(eo);if(es<0){var ed=ei;ei=eo,eo=ed}else if(0===es||0===eo.cmpn(1))break;ei.isub(eo)}return eo.iushln(ea)},BN.prototype.invm=function(en){return this.egcd(en).a.umod(en)},BN.prototype.isEven=function(){return(1&this.words[0])==0},BN.prototype.isOdd=function(){return(1&this.words[0])==1},BN.prototype.andln=function(en){return this.words[0]&en},BN.prototype.bincn=function(en){assert("number"==typeof en);var ei=en%26,eo=(en-ei)/26,ea=1<<ei;if(this.length<=eo)return this._expand(eo+1),this.words[eo]|=ea,this;for(var es=ea,ed=eo;0!==es&&ed<this.length;ed++){var eu=0|this.words[ed];eu+=es,es=eu>>>26,eu&=67108863,this.words[ed]=eu}return 0!==es&&(this.words[ed]=es,this.length++),this},BN.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function(en){var ei,eo=en<0;if(0!==this.negative&&!eo)return -1;if(0===this.negative&&eo)return 1;if(this.strip(),this.length>1)ei=1;else{eo&&(en=-en),assert(en<=67108863,"Number is too big");var ea=0|this.words[0];ei=ea===en?0:ea<en?-1:1}return 0!==this.negative?0|-ei:ei},BN.prototype.cmp=function(en){if(0!==this.negative&&0===en.negative)return -1;if(0===this.negative&&0!==en.negative)return 1;var ei=this.ucmp(en);return 0!==this.negative?0|-ei:ei},BN.prototype.ucmp=function(en){if(this.length>en.length)return 1;if(this.length<en.length)return -1;for(var ei=0,eo=this.length-1;eo>=0;eo--){var ea=0|this.words[eo],es=0|en.words[eo];if(ea!==es){ea<es?ei=-1:ea>es&&(ei=1);break}}return ei},BN.prototype.gtn=function(en){return 1===this.cmpn(en)},BN.prototype.gt=function(en){return 1===this.cmp(en)},BN.prototype.gten=function(en){return this.cmpn(en)>=0},BN.prototype.gte=function(en){return this.cmp(en)>=0},BN.prototype.ltn=function(en){return -1===this.cmpn(en)},BN.prototype.lt=function(en){return -1===this.cmp(en)},BN.prototype.lten=function(en){return 0>=this.cmpn(en)},BN.prototype.lte=function(en){return 0>=this.cmp(en)},BN.prototype.eqn=function(en){return 0===this.cmpn(en)},BN.prototype.eq=function(en){return 0===this.cmp(en)},BN.red=function(en){return new Red(en)},BN.prototype.toRed=function(en){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),en.convertTo(this)._forceRed(en)},BN.prototype.fromRed=function(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function(en){return this.red=en,this},BN.prototype.forceRed=function(en){return assert(!this.red,"Already a number in reduction context"),this._forceRed(en)},BN.prototype.redAdd=function(en){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,en)},BN.prototype.redIAdd=function(en){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,en)},BN.prototype.redSub=function(en){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,en)},BN.prototype.redISub=function(en){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,en)},BN.prototype.redShl=function(en){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,en)},BN.prototype.redMul=function(en){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,en),this.red.mul(this,en)},BN.prototype.redIMul=function(en){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,en),this.red.imul(this,en)},BN.prototype.redSqr=function(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function(en){return assert(this.red&&!en.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,en)};var ef={k256:null,p224:null,p192:null,p25519:null};function MPrime(en,ei){this.name=en,this.p=new BN(ei,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(en){if("string"==typeof en){var ei=BN._prime(en);this.m=ei.p,this.prime=ei}else assert(en.gtn(1),"modulus must be greater than 1"),this.m=en,this.prime=null}function Mont(en){Red.call(this,en),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(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)}MPrime.prototype._tmp=function(){var en=new BN(null);return en.words=Array(Math.ceil(this.n/13)),en},MPrime.prototype.ireduce=function(en){var ei,eo=en;do this.split(eo,this.tmp),ei=(eo=(eo=this.imulK(eo)).iadd(this.tmp)).bitLength();while(ei>this.n);var ea=ei<this.n?-1:eo.ucmp(this.p);return 0===ea?(eo.words[0]=0,eo.length=1):ea>0?eo.isub(this.p):void 0!==eo.strip?eo.strip():eo._strip(),eo},MPrime.prototype.split=function(en,ei){en.iushrn(this.n,0,ei)},MPrime.prototype.imulK=function(en){return en.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function(en,ei){for(var eo=4194303,ea=Math.min(en.length,9),es=0;es<ea;es++)ei.words[es]=en.words[es];if(ei.length=ea,en.length<=9){en.words[0]=0,en.length=1;return}var ed=en.words[9];for(es=10,ei.words[ei.length++]=ed&eo;es<en.length;es++){var eu=0|en.words[es];en.words[es-10]=(eu&eo)<<4|ed>>>22,ed=eu}ed>>>=22,en.words[es-10]=ed,0===ed&&en.length>10?en.length-=10:en.length-=9},K256.prototype.imulK=function(en){en.words[en.length]=0,en.words[en.length+1]=0,en.length+=2;for(var ei=0,eo=0;eo<en.length;eo++){var ea=0|en.words[eo];ei+=977*ea,en.words[eo]=67108863&ei,ei=64*ea+(ei/67108864|0)}return 0===en.words[en.length-1]&&(en.length--,0===en.words[en.length-1]&&en.length--),en},inherits(P224,MPrime),inherits(P192,MPrime),inherits(P25519,MPrime),P25519.prototype.imulK=function(en){for(var ei=0,eo=0;eo<en.length;eo++){var ea=(0|en.words[eo])*19+ei,es=67108863&ea;ea>>>=26,en.words[eo]=es,ei=ea}return 0!==ei&&(en.words[en.length++]=ei),en},BN._prime=function(en){var ei;if(ef[en])return ef[en];if("k256"===en)ei=new K256;else if("p224"===en)ei=new P224;else if("p192"===en)ei=new P192;else if("p25519"===en)ei=new P25519;else throw Error("Unknown prime "+en);return ef[en]=ei,ei},Red.prototype._verify1=function(en){assert(0===en.negative,"red works only with positives"),assert(en.red,"red works only with red numbers")},Red.prototype._verify2=function(en,ei){assert((en.negative|ei.negative)==0,"red works only with positives"),assert(en.red&&en.red===ei.red,"red works only with red numbers")},Red.prototype.imod=function(en){return this.prime?this.prime.ireduce(en)._forceRed(this):en.umod(this.m)._forceRed(this)},Red.prototype.neg=function(en){return en.isZero()?en.clone():this.m.sub(en)._forceRed(this)},Red.prototype.add=function(en,ei){this._verify2(en,ei);var eo=en.add(ei);return eo.cmp(this.m)>=0&&eo.isub(this.m),eo._forceRed(this)},Red.prototype.iadd=function(en,ei){this._verify2(en,ei);var eo=en.iadd(ei);return eo.cmp(this.m)>=0&&eo.isub(this.m),eo},Red.prototype.sub=function(en,ei){this._verify2(en,ei);var eo=en.sub(ei);return 0>eo.cmpn(0)&&eo.iadd(this.m),eo._forceRed(this)},Red.prototype.isub=function(en,ei){this._verify2(en,ei);var eo=en.isub(ei);return 0>eo.cmpn(0)&&eo.iadd(this.m),eo},Red.prototype.shl=function(en,ei){return this._verify1(en),this.imod(en.ushln(ei))},Red.prototype.imul=function(en,ei){return this._verify2(en,ei),this.imod(en.imul(ei))},Red.prototype.mul=function(en,ei){return this._verify2(en,ei),this.imod(en.mul(ei))},Red.prototype.isqr=function(en){return this.imul(en,en.clone())},Red.prototype.sqr=function(en){return this.mul(en,en)},Red.prototype.sqrt=function(en){if(en.isZero())return en.clone();var ei=this.m.andln(3);if(assert(ei%2==1),3===ei){var eo=this.m.add(new BN(1)).iushrn(2);return this.pow(en,eo)}for(var ea=this.m.subn(1),es=0;!ea.isZero()&&0===ea.andln(1);)es++,ea.iushrn(1);assert(!ea.isZero());var ed=new BN(1).toRed(this),eu=ed.redNeg(),ef=this.m.subn(1).iushrn(1),ep=this.m.bitLength();for(ep=new BN(2*ep*ep).toRed(this);0!==this.pow(ep,ef).cmp(eu);)ep.redIAdd(eu);for(var em=this.pow(ep,ea),eg=this.pow(en,ea.addn(1).iushrn(1)),ey=this.pow(en,ea),eb=es;0!==ey.cmp(ed);){for(var eS=ey,e_=0;0!==eS.cmp(ed);e_++)eS=eS.redSqr();assert(e_<eb);var eR=this.pow(em,new BN(1).iushln(eb-e_-1));eg=eg.redMul(eR),em=eR.redSqr(),ey=ey.redMul(em),eb=e_}return eg},Red.prototype.invm=function(en){var ei=en._invmp(this.m);return 0!==ei.negative?(ei.negative=0,this.imod(ei).redNeg()):this.imod(ei)},Red.prototype.pow=function(en,ei){if(ei.isZero())return new BN(1).toRed(this);if(0===ei.cmpn(1))return en.clone();var eo=4,ea=Array(16);ea[0]=new BN(1).toRed(this),ea[1]=en;for(var es=2;es<ea.length;es++)ea[es]=this.mul(ea[es-1],en);var ed=ea[0],eu=0,ef=0,ep=ei.bitLength()%26;for(0===ep&&(ep=26),es=ei.length-1;es>=0;es--){for(var em=ei.words[es],eg=ep-1;eg>=0;eg--){var ey=em>>eg&1;if(ed!==ea[0]&&(ed=this.sqr(ed)),0===ey&&0===eu){ef=0;continue}eu<<=1,eu|=ey,(++ef===eo||0===es&&0===eg)&&(ed=this.mul(ed,ea[eu]),ef=0,eu=0)}ep=26}return ed},Red.prototype.convertTo=function(en){var ei=en.umod(this.m);return ei===en?ei.clone():ei},Red.prototype.convertFrom=function(en){var ei=en.clone();return ei.red=null,ei},BN.mont=function(en){return new Mont(en)},inherits(Mont,Red),Mont.prototype.convertTo=function(en){return this.imod(en.ushln(this.shift))},Mont.prototype.convertFrom=function(en){var ei=this.imod(en.mul(this.rinv));return ei.red=null,ei},Mont.prototype.imul=function(en,ei){if(en.isZero()||ei.isZero())return en.words[0]=0,en.length=1,en;var eo=en.imul(ei),ea=eo.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),es=eo.isub(ea).iushrn(this.shift),ed=es;return es.cmp(this.m)>=0?ed=es.isub(this.m):0>es.cmpn(0)&&(ed=es.iadd(this.m)),ed._forceRed(this)},Mont.prototype.mul=function(en,ei){if(en.isZero()||ei.isZero())return new BN(0)._forceRed(this);var eo=en.mul(ei),ea=eo.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),es=eo.isub(ea).iushrn(this.shift),ed=es;return es.cmp(this.m)>=0?ed=es.isub(this.m):0>es.cmpn(0)&&(ed=es.iadd(this.m)),ed._forceRed(this)},Mont.prototype.invm=function(en){return this.imod(en._invmp(this.m).mul(this.r2))._forceRed(this)}}(en=eo.nmd(en),this)},87902:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{BaseContract:function(){return BaseContract},BigNumber:function(){return eb.O$},Contract:function(){return Contract},ContractFactory:function(){return ContractFactory},FixedNumber:function(){return eP.xs},Signer:function(){return eg.E},VoidSigner:function(){return eg.b},Wallet:function(){return eC.Wallet},Wordlist:function(){return tD.D},constants:function(){return ea},errors:function(){return eA.ErrorCode},ethers:function(){return eu},getDefaultProvider:function(){return getDefaultProvider},logger:function(){return t3},providers:function(){return es},utils:function(){return ed},version:function(){return tX},wordlists:function(){return tM.E}});var ea={};eo.r(ea),eo.d(ea,{AddressZero:function(){return eT},EtherSymbol:function(){return eI},HashZero:function(){return eN.R},MaxInt256:function(){return eB.PS},MaxUint256:function(){return eB.Bz},MinInt256:function(){return eB.$B},NegativeOne:function(){return eB.tL},One:function(){return eB.fh},Two:function(){return eB.Py},WeiPerEther:function(){return eB.Ce},Zero:function(){return eB._Y}});var es={};
4eo.r(es),eo.d(es,{AlchemyProvider:function(){return AlchemyProvider},AlchemyWebSocketProvider:function(){return AlchemyWebSocketProvider},AnkrProvider:function(){return AnkrProvider},BaseProvider:function(){return BaseProvider},CloudflareProvider:function(){return CloudflareProvider},EtherscanProvider:function(){return EtherscanProvider},FallbackProvider:function(){return FallbackProvider},Formatter:function(){return Formatter},InfuraProvider:function(){return InfuraProvider},InfuraWebSocketProvider:function(){return InfuraWebSocketProvider},IpcProvider:function(){return tA},JsonRpcBatchProvider:function(){return JsonRpcBatchProvider},JsonRpcProvider:function(){return JsonRpcProvider},JsonRpcSigner:function(){return JsonRpcSigner},NodesmithProvider:function(){return NodesmithProvider},PocketProvider:function(){return PocketProvider},Provider:function(){return em.zt},Resolver:function(){return Resolver},StaticJsonRpcProvider:function(){return StaticJsonRpcProvider},UrlJsonRpcProvider:function(){return UrlJsonRpcProvider},Web3Provider:function(){return Web3Provider},WebSocketProvider:function(){return WebSocketProvider},getDefaultProvider:function(){return getDefaultProvider},getNetwork:function(){return getNetwork},isCommunityResourcable:function(){return isCommunityResourcable},isCommunityResource:function(){return isCommunityResource},showThrottleMessage:function(){return showThrottleMessage}});var ed={};eo.r(ed),eo.d(ed,{AbiCoder:function(){return tU.R},ConstructorFragment:function(){return tL.Xg},ErrorFragment:function(){return tL.IC},EventFragment:function(){return tL.QV},FormatTypes:function(){return tL.pc},Fragment:function(){return tL.HY},FunctionFragment:function(){return tL.YW},HDNode:function(){return tq.HDNode},Indexed:function(){return ep.Hk},Interface:function(){return ep.vU},LogDescription:function(){return ep.CC},Logger:function(){return eA.Logger},ParamType:function(){return tL._R},RLP:function(){return tQ},SigningKey:function(){return tK.SigningKey},SupportedAlgorithm:function(){return t$.p},TransactionDescription:function(){return ep.vk},TransactionTypes:function(){return eR.TransactionTypes},UnicodeNormalizationForm:function(){return eV.Uj},Utf8ErrorFuncs:function(){return eV.te},Utf8ErrorReason:function(){return eV.Uw},_TypedDataEncoder:function(){return e5.E},_fetchData:function(){return eW._fetchData},_toEscapedUtf8String:function(){return eV.U$},accessListify:function(){return eR.accessListify},arrayify:function(){return eS.arrayify},base58:function(){return eH.Base58},base64:function(){return tJ},checkProperties:function(){return e_.checkProperties},checkResultErrors:function(){return ef.BR},commify:function(){return tY.commify},computeAddress:function(){return eR.computeAddress},computeHmac:function(){return ej.Gy},computePublicKey:function(){return tK.computePublicKey},concat:function(){return eS.concat},deepCopy:function(){return e_.deepCopy},defaultAbiCoder:function(){return tU.$},defaultPath:function(){return tq.defaultPath},defineReadOnly:function(){return e_.defineReadOnly},dnsEncode:function(){return eq.Kn},entropyToMnemonic:function(){return tq.entropyToMnemonic},fetchJson:function(){return eW.fetchJson},formatBytes32String:function(){return tz.s},formatEther:function(){return tY.formatEther},formatUnits:function(){return tY.formatUnits},getAccountPath:function(){return tq.getAccountPath},getAddress:function(){return ey.getAddress},getContractAddress:function(){return ey.getContractAddress},getCreate2Address:function(){return ey.getCreate2Address},getIcapAddress:function(){return ey.getIcapAddress},getJsonWalletAddress:function(){return tj.Rb},getStatic:function(){return e_.getStatic},hashMessage:function(){return tF.r},hexConcat:function(){return eS.hexConcat},hexDataLength:function(){return eS.hexDataLength},hexDataSlice:function(){return eS.hexDataSlice},hexStripZeros:function(){return eS.hexStripZeros},hexValue:function(){return eS.hexValue},hexZeroPad:function(){return eS.hexZeroPad},hexlify:function(){return eS.hexlify},id:function(){return tH.id},isAddress:function(){return ey.isAddress},isBytes:function(){return eS.isBytes},isBytesLike:function(){return eS.isBytesLike},isHexString:function(){return eS.isHexString},isValidMnemonic:function(){return tq.isValidMnemonic},isValidName:function(){return eq.r1},joinSignature:function(){return eS.joinSignature},keccak256:function(){return tV.keccak256},mnemonicToEntropy:function(){return tq.mnemonicToEntropy},mnemonicToSeed:function(){return tq.mnemonicToSeed},namehash:function(){return eq.VM},nameprep:function(){return tZ.Ll},parseBytes32String:function(){return tz.F},parseEther:function(){return tY.parseEther},parseTransaction:function(){return eR.parse},parseUnits:function(){return tY.parseUnits},poll:function(){return eW.poll},randomBytes:function(){return tG.O},recoverAddress:function(){return eR.recoverAddress},recoverPublicKey:function(){return tK.recoverPublicKey},resolveProperties:function(){return e_.resolveProperties},ripemd160:function(){return ej.bP}
4,serializeTransaction:function(){return eR.serialize},sha256:function(){return ej.JQ},sha512:function(){return ej.o},shallowCopy:function(){return e_.shallowCopy},shuffled:function(){return ty.y},solidityKeccak256:function(){return tW.keccak256},solidityPack:function(){return tW.pack},soliditySha256:function(){return tW.sha256},splitSignature:function(){return eS.splitSignature},stripZeros:function(){return eS.stripZeros},toUtf8Bytes:function(){return eV.Y0},toUtf8CodePoints:function(){return eV.XL},toUtf8String:function(){return eV.ZN},verifyMessage:function(){return eC.verifyMessage},verifyTypedData:function(){return eC.verifyTypedData},zeroPad:function(){return eS.zeroPad}});var eu={};eo.r(eu),eo.d(eu,{BaseContract:function(){return BaseContract},BigNumber:function(){return eb.O$},Contract:function(){return Contract},ContractFactory:function(){return ContractFactory},FixedNumber:function(){return eP.xs},Signer:function(){return eg.E},VoidSigner:function(){return eg.b},Wallet:function(){return eC.Wallet},Wordlist:function(){return tD.D},constants:function(){return ea},errors:function(){return eA.ErrorCode},getDefaultProvider:function(){return getDefaultProvider},logger:function(){return t3},providers:function(){return es},utils:function(){return ed},version:function(){return tX},wordlists:function(){return tM.E}});
4var ef=eo(61184),ep=eo(8198),em=eo(81556),eg=eo(48088),ey=eo(52004),eb=eo(2593),eS=eo(16441),e_=eo(6881),eR=eo(83875),eA=eo(1581);let ew="contracts/5.7.0";var __awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let eO=new eA.Logger(ew),eE={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function resolveName(en,ei){return __awaiter(this,void 0,void 0,function*(){let eo=yield ei;"string"!=typeof eo&&eO.throwArgumentError("invalid address or ENS name","name",eo);try{return(0,ey.getAddress)(eo)}catch(en){}en||eO.throwError("a provider or signer is needed to resolve ENS names",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let ea=yield en.resolveName(eo);return null==ea&&eO.throwArgumentError("resolver or addr is not configured for ENS name","name",eo),ea})}function resolveAddresses(en,ei,eo){return __awaiter(this,void 0,void 0,function*(){return Array.isArray(eo)?yield Promise.all(eo.map((eo,ea)=>resolveAddresses(en,Array.isArray(ei)?ei[ea]:ei[eo.name],eo))):"address"===eo.type?yield resolveName(en,ei):"tuple"===eo.type?yield resolveAddresses(en,ei,eo.components):"array"===eo.baseType?Array.isArray(ei)?yield Promise.all(ei.map(ei=>resolveAddresses(en,ei,eo.arrayChildren))):Promise.reject(eO.makeError("invalid value for array",eA.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:ei})):ei})}function populateTransaction(en,ei,eo){return __awaiter(this,void 0,void 0,function*(){let ea={};eo.length===ei.inputs.length+1&&"object"==typeof eo[eo.length-1]&&(ea=(0,e_.shallowCopy)(eo.pop())),eO.checkArgumentCount(eo.length,ei.inputs.length,"passed to contract"),en.signer?ea.from?ea.from=(0,e_.resolveProperties)({override:resolveName(en.signer,ea.from),signer:en.signer.getAddress()}).then(en=>__awaiter(this,void 0,void 0,function*(){return(0,ey.getAddress)(en.signer)!==en.override&&eO.throwError("Contract with a Signer cannot override from",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),en.override})):ea.from=en.signer.getAddress():ea.from&&(ea.from=resolveName(en.provider,ea.from));let es=yield(0,e_.resolveProperties)({args:resolveAddresses(en.signer||en.provider,eo,ei.inputs),address:en.resolvedAddress,overrides:(0,e_.resolveProperties)(ea)||{}}),ed=en.interface.encodeFunctionData(ei,es.args),eu={data:ed,to:es.address},ef=es.overrides;if(null!=ef.nonce&&(eu.nonce=eb.O$.from(ef.nonce).toNumber()),null!=ef.gasLimit&&(eu.gasLimit=eb.O$.from(ef.gasLimit)),null!=ef.gasPrice&&(eu.gasPrice=eb.O$.from(ef.gasPrice)),null!=ef.maxFeePerGas&&(eu.maxFeePerGas=eb.O$.from(ef.maxFeePerGas)),null!=ef.maxPriorityFeePerGas&&(eu.maxPriorityFeePerGas=eb.O$.from(ef.maxPriorityFeePerGas)),null!=ef.from&&(eu.from=ef.from),null!=ef.type&&(eu.type=ef.type),null!=ef.accessList&&(eu.accessList=(0,eR.accessListify)(ef.accessList)),null==eu.gasLimit&&null!=ei.gas){let en=21e3,eo=(0,eS.arrayify)(ed);for(let ei=0;ei<eo.length;ei++)en+=4,eo[ei]&&(en+=64);eu.gasLimit=eb.O$.from(ei.gas).add(en)}if(ef.value){let en=eb.O$.from(ef.value);en.isZero()||ei.payable||eO.throwError("non-payable method cannot override value",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:ea.value}),eu.value=en}ef.customData&&(eu.customData=(0,e_.shallowCopy)(ef.customData)),ef.ccipReadEnabled&&(eu.ccipReadEnabled=!!ef.ccipReadEnabled),delete ea.nonce,delete ea.gasLimit,delete ea.gasPrice,delete ea.from,delete ea.value,delete ea.type,delete ea.accessList,delete ea.maxFeePerGas,delete ea.maxPriorityFeePerGas,delete ea.customData,delete ea.ccipReadEnabled;let ep=Object.keys(ea).filter(en=>null!=ea[en]);return ep.length&&eO.throwError(`cannot override ${ep.map(en=>JSON.stringify(en)).join(",")}`,eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:ep}),eu})}function buildPopulate(en,ei){return function(...eo){return populateTransaction(en,ei,eo)}}function buildEstimate(en,ei){let eo=en.signer||en.provider;return function(...ea){return __awaiter(this,void 0,void 0,function*(){eo||eO.throwError("estimate require a provider or signer",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let es=yield populateTransaction(en,ei,ea);return yield eo.estimateGas(es)})}}function addContractWait(en,ei){let eo=ei.wait.bind(ei);ei.wait=ei=>eo(ei).then(ei=>(ei.events=ei.logs.map(eo=>{let ea=(0,e_.deepCopy)(eo),es=null;try{es=en.interface.parseLog(eo)}catch(en){}return es&&(ea.args=es.args,ea.decode=(ei,eo)=>en.interface.decodeEventLog(es.eventFragment,ei,eo),ea.event=es.name,ea.eventSignature=es.signature),ea.removeListener=()=>en.provider,ea.getBlock=()=>en.provider.getBlock(ei.blockHash),ea.getTransaction=()=>en.provider.getTransaction(ei.transactionHash),ea.getTransactionReceipt=()=>Promise.resolve(ei),ea}),ei))}function buildCall(en,ei,eo){let ea=en.signer||en.provider;return function(...es){return __awaiter(this,void 0,void 0,function*(){let ed;if(es.length===ei.inputs.length+1&&"object"==typeof es[es.length-1]){let en=(0,e_.shallowCopy)(es.pop());null!=en.blockTag&&(ed=yield en.blockTag),delete en.blockTag,es.push(en)}null!=en.deployTransaction&&(yield en._deployed(ed));let eu=yield populateTransaction(en,ei,es),ef=yield ea.call(eu,ed);try{let ea=en.interface.decodeFunctionResult(ei,ef);return eo&&1===ei.outputs.length&&(ea=ea[0]),ea}
4catch(ei){throw ei.code===eA.Logger.errors.CALL_EXCEPTION&&(ei.address=en.address,ei.args=es,ei.transaction=eu),ei}})}}function buildSend(en,ei){return function(...eo){return __awaiter(this,void 0,void 0,function*(){en.signer||eO.throwError("sending a transaction requires a signer",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=en.deployTransaction&&(yield en._deployed());let ea=yield populateTransaction(en,ei,eo),es=yield en.signer.sendTransaction(ea);return addContractWait(en,es),es})}}function buildDefault(en,ei,eo){return ei.constant?buildCall(en,ei,eo):buildSend(en,ei)}function getEventTag(en){return en.address&&(null==en.topics||0===en.topics.length)?"*":(en.address||"*")+"@"+(en.topics?en.topics.map(en=>Array.isArray(en)?en.join("|"):en).join(":"):"")}let RunningEvent=class RunningEvent{constructor(en,ei){(0,e_.defineReadOnly)(this,"tag",en),(0,e_.defineReadOnly)(this,"filter",ei),this._listeners=[]}addListener(en,ei){this._listeners.push({listener:en,once:ei})}removeListener(en){let ei=!1;this._listeners=this._listeners.filter(eo=>!!ei||eo.listener!==en||(ei=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(en=>en.listener)}listenerCount(){return this._listeners.length}run(en){let ei=this.listenerCount();return this._listeners=this._listeners.filter(ei=>{let eo=en.slice();return setTimeout(()=>{ei.listener.apply(this,eo)},0),!ei.once}),ei}prepareEvent(en){}getEmit(en){return[en]}};let ErrorRunningEvent=class ErrorRunningEvent extends RunningEvent{constructor(){super("error",null)}};let FragmentRunningEvent=class FragmentRunningEvent extends RunningEvent{constructor(en,ei,eo,ea){let es={address:en},ed=ei.getEventTopic(eo);ea?(ed!==ea[0]&&eO.throwArgumentError("topic mismatch","topics",ea),es.topics=ea.slice()):es.topics=[ed],super(getEventTag(es),es),(0,e_.defineReadOnly)(this,"address",en),(0,e_.defineReadOnly)(this,"interface",ei),(0,e_.defineReadOnly)(this,"fragment",eo)}prepareEvent(en){super.prepareEvent(en),en.event=this.fragment.name,en.eventSignature=this.fragment.format(),en.decode=(en,ei)=>this.interface.decodeEventLog(this.fragment,en,ei);try{en.args=this.interface.decodeEventLog(this.fragment,en.data,en.topics)}catch(ei){en.args=null,en.decodeError=ei}}getEmit(en){let ei=(0,ef.BR)(en.args);if(ei.length)throw ei[0].error;let eo=(en.args||[]).slice();return eo.push(en),eo}};let WildcardRunningEvent=class WildcardRunningEvent extends RunningEvent{constructor(en,ei){super("*",{address:en}),(0,e_.defineReadOnly)(this,"address",en),(0,e_.defineReadOnly)(this,"interface",ei)}prepareEvent(en){super.prepareEvent(en);try{let ei=this.interface.parseLog(en);en.event=ei.name,en.eventSignature=ei.signature,en.decode=(en,eo)=>this.interface.decodeEventLog(ei.eventFragment,en,eo),en.args=ei.args}catch(en){}}};let BaseContract=class BaseContract{constructor(en,ei,eo){(0,e_.defineReadOnly)(this,"interface",(0,e_.getStatic)(new.target,"getInterface")(ei)),null==eo?((0,e_.defineReadOnly)(this,"provider",null),(0,e_.defineReadOnly)(this,"signer",null)):eg.E.isSigner(eo)?((0,e_.defineReadOnly)(this,"provider",eo.provider||null),(0,e_.defineReadOnly)(this,"signer",eo)):em.zt.isProvider(eo)?((0,e_.defineReadOnly)(this,"provider",eo),(0,e_.defineReadOnly)(this,"signer",null)):eO.throwArgumentError("invalid signer or provider","signerOrProvider",eo),(0,e_.defineReadOnly)(this,"callStatic",{}),(0,e_.defineReadOnly)(this,"estimateGas",{}),(0,e_.defineReadOnly)(this,"functions",{}),(0,e_.defineReadOnly)(this,"populateTransaction",{}),(0,e_.defineReadOnly)(this,"filters",{});{let en={};Object.keys(this.interface.events).forEach(ei=>{let eo=this.interface.events[ei];(0,e_.defineReadOnly)(this.filters,ei,(...en)=>({address:this.address,topics:this.interface.encodeFilterTopics(eo,en)})),en[eo.name]||(en[eo.name]=[]),en[eo.name].push(ei)}),Object.keys(en).forEach(ei=>{let eo=en[ei];1===eo.length?(0,e_.defineReadOnly)(this.filters,ei,this.filters[eo[0]]):eO.warn(`Duplicate definition of ${ei} (${eo.join(", ")})`)})}if((0,e_.defineReadOnly)(this,"_runningEvents",{}),(0,e_.defineReadOnly)(this,"_wrappedEmits",{}),null==en&&eO.throwArgumentError("invalid contract address or ENS name","addressOrN
4ame",en),(0,e_.defineReadOnly)(this,"address",en),this.provider)(0,e_.defineReadOnly)(this,"resolvedAddress",resolveName(this.provider,en));else try{(0,e_.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,ey.getAddress)(en)))}catch(en){eO.throwError("provider is required to use ENS name as contract address",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(en=>{});let ea={},es={};Object.keys(this.interface.functions).forEach(en=>{let ei=this.interface.functions[en];if(es[en]){eO.warn(`Duplicate ABI entry for ${JSON.stringify(en)}`);return}es[en]=!0;{let eo=ei.name;ea[`%${eo}`]||(ea[`%${eo}`]=[]),ea[`%${eo}`].push(en)}null==this[en]&&(0,e_.defineReadOnly)(this,en,buildDefault(this,ei,!0)),null==this.functions[en]&&(0,e_.defineReadOnly)(this.functions,en,buildDefault(this,ei,!1)),null==this.callStatic[en]&&(0,e_.defineReadOnly)(this.callStatic,en,buildCall(this,ei,!0)),null==this.populateTransaction[en]&&(0,e_.defineReadOnly)(this.populateTransaction,en,buildPopulate(this,ei)),null==this.estimateGas[en]&&(0,e_.defineReadOnly)(this.estimateGas,en,buildEstimate(this,ei))}),Object.keys(ea).forEach(en=>{let ei=ea[en];if(ei.length>1)return;en=en.substring(1);let eo=ei[0];try{null==this[en]&&(0,e_.defineReadOnly)(this,en,this[eo])}catch(en){}null==this.functions[en]&&(0,e_.defineReadOnly)(this.functions,en,this.functions[eo]),null==this.callStatic[en]&&(0,e_.defineReadOnly)(this.callStatic,en,this.callStatic[eo]),null==this.populateTransaction[en]&&(0,e_.defineReadOnly)(this.populateTransaction,en,this.populateTransaction[eo]),null==this.estimateGas[en]&&(0,e_.defineReadOnly)(this.estimateGas,en,this.estimateGas[eo])})}static getContractAddress(en){return(0,ey.getContractAddress)(en)}static getInterface(en){return ep.vU.isInterface(en)?en:new ep.vU(en)}deployed(){return this._deployed()}_deployed(en){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,en).then(en=>("0x"===en&&eO.throwError("contract not deployed",eA.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(en){this.signer||eO.throwError("sending a transactions require a signer",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let ei=(0,e_.shallowCopy)(en||{});return["from","to"].forEach(function(en){null!=ei[en]&&eO.throwError("cannot override "+en,eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:en})}),ei.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(ei))}connect(en){"string"==typeof en&&(en=new eg.b(en,this.provider));let ei=new this.constructor(this.address,this.interface,en);return this.deployTransaction&&(0,e_.defineReadOnly)(ei,"deployTransaction",this.deployTransaction),ei}attach(en){return new this.constructor(en,this.interface,this.signer||this.provider)}static isIndexed(en){return ep.Hk.isIndexed(en)}_normalizeRunningEvent(en){return this._runningEvents[en.tag]?this._runningEvents[en.tag]:en}_getRunningEvent(en){if("string"==typeof en){if("error"===en)return this._normalizeRunningEvent(new ErrorRunningEvent);if("event"===en)return this._normalizeRunningEvent(new RunningEvent("event",null));if("*"===en)return this._normalizeRunningEvent(new WildcardRunningEvent(this.address,this.interface));let ei=this.interface.getEvent(en);return this._normalizeRunningEvent(new FragmentRunningEvent(this.address,this.interface,ei))}if(en.topics&&en.topics.length>0){try{let ei=en.topics[0];if("string"!=typeof ei)throw Error("invalid topic");let eo=this.interface.getEvent(ei);return this._normalizeRunningEvent(new FragmentRunningEvent(this.address,this.interface,eo,en.topics))}catch(en){}let ei={address:this.address,topics:en.topics};return this._normalizeRunningEvent(new RunningEvent(getEventTag(ei),ei))}return this._normalizeRunningEvent(new WildcardRunningEvent(this.address,this.interface))}_checkRunningEvents(en){if(0===en.listenerCount()){delete this._runningEvents[en.tag];let ei=this._wrappedEmits[en.tag];ei&&en.filter&&(this.provider.off(en.filter,ei),delete this._wrappedEmits[en.tag])}}_wrapEvent(en,ei,eo){let ea=(0,e_.deepCopy)(ei);return ea.removeListener=()=>{eo&&(en.removeListener(eo),this._checkRunningEvents(en))},ea.getBlock=()=>this.provider.getBlock(ei.blockHash),ea.getTransaction=()=>this.provider.getTransaction(ei.transactionHash),ea.getTransactionReceipt=()=>this.provider.getTransactionReceipt(ei.transactionHash),en.prepareEvent(ea),ea}_addEventListener(en,ei,eo){if(this.provider||eO.throwError("events require a provider or a signer with a provider",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),en.addListener(ei,eo),this._runningEvents[en.tag]=en,!this._wrappedEmits[en.tag]){let wrappedEmit=eo=>{let ea=this._wrapEvent(en,eo,ei);if(null==ea.decodeError)try{let ei=en.getEmit(ea);
4this.emit(en.filter,...ei)}catch(en){ea.decodeError=en.error}null!=en.filter&&this.emit("event",ea),null!=ea.decodeError&&this.emit("error",ea.decodeError,ea)};this._wrappedEmits[en.tag]=wrappedEmit,null!=en.filter&&this.provider.on(en.filter,wrappedEmit)}}queryFilter(en,ei,eo){let ea=this._getRunningEvent(en),es=(0,e_.shallowCopy)(ea.filter);return"string"==typeof ei&&(0,eS.isHexString)(ei,32)?(null!=eo&&eO.throwArgumentError("cannot specify toBlock with blockhash","toBlock",eo),es.blockHash=ei):(es.fromBlock=null!=ei?ei:0,es.toBlock=null!=eo?eo:"latest"),this.provider.getLogs(es).then(en=>en.map(en=>this._wrapEvent(ea,en,null)))}on(en,ei){return this._addEventListener(this._getRunningEvent(en),ei,!1),this}once(en,ei){return this._addEventListener(this._getRunningEvent(en),ei,!0),this}emit(en,...ei){if(!this.provider)return!1;let eo=this._getRunningEvent(en),ea=eo.run(ei)>0;return this._checkRunningEvents(eo),ea}listenerCount(en){return this.provider?null==en?Object.keys(this._runningEvents).reduce((en,ei)=>en+this._runningEvents[ei].listenerCount(),0):this._getRunningEvent(en).listenerCount():0}listeners(en){if(!this.provider)return[];if(null==en){let en=[];for(let ei in this._runningEvents)this._runningEvents[ei].listeners().forEach(ei=>{en.push(ei)});return en}return this._getRunningEvent(en).listeners()}removeAllListeners(en){if(!this.provider)return this;if(null==en){for(let en in this._runningEvents){let ei=this._runningEvents[en];ei.removeAllListeners(),this._checkRunningEvents(ei)}return this}let ei=this._getRunningEvent(en);return ei.removeAllListeners(),this._checkRunningEvents(ei),this}off(en,ei){if(!this.provider)return this;let eo=this._getRunningEvent(en);return eo.removeListener(ei),this._checkRunningEvents(eo),this}removeListener(en,ei){return this.off(en,ei)}};let Contract=class Contract extends BaseContract{};let ContractFactory=class ContractFactory{constructor(en,ei,eo){let ea=null;"0x"!==(ea="string"==typeof ei?ei:(0,eS.isBytes)(ei)?(0,eS.hexlify)(ei):ei&&"string"==typeof ei.object?ei.object:"!").substring(0,2)&&(ea="0x"+ea),(!(0,eS.isHexString)(ea)||ea.length%2)&&eO.throwArgumentError("invalid bytecode","bytecode",ei),eo&&!eg.E.isSigner(eo)&&eO.throwArgumentError("invalid signer","signer",eo),(0,e_.defineReadOnly)(this,"bytecode",ea),(0,e_.defineReadOnly)(this,"interface",(0,e_.getStatic)(new.target,"getInterface")(en)),(0,e_.defineReadOnly)(this,"signer",eo||null)}getDeployTransaction(...en){let ei={};if(en.length===this.interface.deploy.inputs.length+1&&"object"==typeof en[en.length-1]){for(let eo in ei=(0,e_.shallowCopy)(en.pop()))if(!eE[eo])throw Error("unknown transaction override "+eo)}if(["data","from","to"].forEach(en=>{null!=ei[en]&&eO.throwError("cannot override "+en,eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:en})}),ei.value){let en=eb.O$.from(ei.value);en.isZero()||this.interface.deploy.payable||eO.throwError("non-payable constructor cannot override value",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:ei.value})}return eO.checkArgumentCount(en.length,this.interface.deploy.inputs.length," in Contract constructor"),ei.data=(0,eS.hexlify)((0,eS.concat)([this.bytecode,this.interface.encodeDeploy(en)])),ei}deploy(...en){return __awaiter(this,void 0,void 0,function*(){let ei={};en.length===this.interface.deploy.inputs.length+1&&(ei=en.pop()),eO.checkArgumentCount(en.length,this.interface.deploy.inputs.length," in Contract constructor");let eo=yield resolveAddresses(this.signer,en,this.interface.deploy.inputs);eo.push(ei);let ea=this.getDeployTransaction(...eo),es=yield this.signer.sendTransaction(ea),ed=(0,e_.getStatic)(this.constructor,"getContractAddress")(es),eu=(0,e_.getStatic)(this.constructor,"getContract")(ed,this.interface,this.signer);return addContractWait(eu,es),(0,e_.defineReadOnly)(eu,"deployTransaction",es),eu})}attach(en){return this.constructor.getContract(en,this.interface,this.signer)}connect(en){return new this.constructor(this.interface,this.bytecode,en)}static fromSolidity(en,ei){null==en&&eO.throwError("missing compiler output",eA.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof en&&(en=JSON.parse(en));let eo=en.abi,ea=null;return en.bytecode?ea=en.bytecode:en.evm&&en.evm.bytecode&&(ea=en.evm.bytecode),new this(eo,ea,ei)}static getInterface(en){return Contract.getInterface(en)}static getContractAddress(en){return(0,ey.getContractAddress)(en)}static getContract(en,ei,eo){return new Contract(en,ei,eo)}};var eP=eo(20335),eC=eo(79911);let eT="0x0000000000000000000000000000000000000000";
4var eB=eo(21046),eN=eo(57218);let eI="Ξ",ex="networks/5.7.1",eM=new eA.Logger(ex);function isRenetworkable(en){return en&&"function"==typeof en.renetwork}function ethDefaultProvider(en){let func=function(ei,eo){null==eo&&(eo={});let ea=[];if(ei.InfuraProvider&&"-"!==eo.infura)try{ea.push(new ei.InfuraProvider(en,eo.infura))}catch(en){}if(ei.EtherscanProvider&&"-"!==eo.etherscan)try{ea.push(new ei.EtherscanProvider(en,eo.etherscan))}catch(en){}if(ei.AlchemyProvider&&"-"!==eo.alchemy)try{ea.push(new ei.AlchemyProvider(en,eo.alchemy))}catch(en){}if(ei.PocketProvider&&"-"!==eo.pocket){let es=["goerli","ropsten","rinkeby","sepolia"];try{let ed=new ei.PocketProvider(en,eo.pocket);ed.network&&-1===es.indexOf(ed.network.name)&&ea.push(ed)}catch(en){}}if(ei.CloudflareProvider&&"-"!==eo.cloudflare)try{ea.push(new ei.CloudflareProvider(en))}catch(en){}if(ei.AnkrProvider&&"-"!==eo.ankr)try{let es=["ropsten"],ed=new ei.AnkrProvider(en,eo.ankr);ed.network&&-1===es.indexOf(ed.network.name)&&ea.push(ed)}catch(en){}if(0===ea.length)return null;if(ei.FallbackProvider){let es=1;return null!=eo.quorum?es=eo.quorum:"homestead"===en&&(es=2),new ei.FallbackProvider(ea,es)}return ea[0]};return func.renetwork=function(en){return ethDefaultProvider(en)},func}function etcDefaultProvider(en,ei){let func=function(eo,ea){return eo.JsonRpcProvider?new eo.JsonRpcProvider(en,ei):null};return func.renetwork=function(ei){return etcDefaultProvider(en,ei)},func}let eD={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ethDefaultProvider("homestead")},eU={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ethDefaultProvider("ropsten")},eL={chainId:63,name:"classicMordor",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/mordor","classicMordor")},eJ={unspecified:{chainId:0,name:"unspecified"},homestead:eD,mainnet:eD,morden:{chainId:2,name:"morden"},ropsten:eU,testnet:eU,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ethDefaultProvider("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ethDefaultProvider("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ethDefaultProvider("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ethDefaultProvider("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:eL,classicTestnet:eL,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:etcDefaultProvider("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ethDefaultProvider("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ethDefaultProvider("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function getNetwork(en){if(null==en)return null;if("number"==typeof en){for(let ei in eJ){let eo=eJ[ei];if(eo.chainId===en)return{name:eo.name,chainId:eo.chainId,ensAddress:eo.ensAddress||null,_defaultProvider:eo._defaultProvider||null}}return{chainId:en,name:"unknown"}}if("string"==typeof en){let ei=eJ[en];return null==ei?null:{name:ei.name,chainId:ei.chainId,ensAddress:ei.ensAddress,_defaultProvider:ei._defaultProvider||null}}let ei=eJ[en.name];if(!ei)return"number"!=typeof en.chainId&&eM.throwArgumentError("invalid network chainId","network",en),en;0!==en.chainId&&en.chainId!==ei.chainId&&eM.throwArgumentError("network chainId mismatch","network",en);let eo=en._defaultProvider||null;return null==eo&&ei._defaultProvider&&(eo=isRenetworkable(ei._defaultProvider)?ei._defaultProvider.renetwork(en):ei._defaultProvider),{name:en.name,chainId:ei.chainId,ensAddress:en.ensAddress||ei.ensAddress||null,_defaultProvider:eo}}var eF=eo(59567),eH=eo(57727),eq=eo(27586),ej=eo(2006),eV=eo(29251),eW=eo(37707),eG=eo(85751),eQ=eo.n(eG);let eK="providers/5.7.2",eZ=new eA.Logger(eK);let Formatter=class Formatter{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let en={},ei=this.address.bind(this),eo=this.bigNumber.bind(this),ea=this.blockTag.bind(this),es=this.data.bind(this),ed=this.hash.bind(this),eu=this.hex.bind(this),ef=this.number.bind(this),ep=this.type.bind(this),strictData=en=>this.data(en,!0);return en.transaction={hash:ed,type:ep,accessList:Formatter.allowNull(this.accessList.bind(this),null),blockHash:Formatter.allowNull(ed,null),blockNumber:Formatter.allowNull(ef,null),transactionIndex:F
4ormatter.allowNull(ef,null),confirmations:Formatter.allowNull(ef,null),from:ei,gasPrice:Formatter.allowNull(eo),maxPriorityFeePerGas:Formatter.allowNull(eo),maxFeePerGas:Formatter.allowNull(eo),gasLimit:eo,to:Formatter.allowNull(ei,null),value:eo,nonce:ef,data:es,r:Formatter.allowNull(this.uint256),s:Formatter.allowNull(this.uint256),v:Formatter.allowNull(ef),creates:Formatter.allowNull(ei,null),raw:Formatter.allowNull(es)},en.transactionRequest={from:Formatter.allowNull(ei),nonce:Formatter.allowNull(ef),gasLimit:Formatter.allowNull(eo),gasPrice:Formatter.allowNull(eo),maxPriorityFeePerGas:Formatter.allowNull(eo),maxFeePerGas:Formatter.allowNull(eo),to:Formatter.allowNull(ei),value:Formatter.allowNull(eo),data:Formatter.allowNull(strictData),type:Formatter.allowNull(ef),accessList:Formatter.allowNull(this.accessList.bind(this),null)},en.receiptLog={transactionIndex:ef,blockNumber:ef,transactionHash:ed,address:ei,topics:Formatter.arrayOf(ed),data:es,logIndex:ef,blockHash:ed},en.receipt={to:Formatter.allowNull(this.address,null),from:Formatter.allowNull(this.address,null),contractAddress:Formatter.allowNull(ei,null),transactionIndex:ef,root:Formatter.allowNull(eu),gasUsed:eo,logsBloom:Formatter.allowNull(es),blockHash:ed,transactionHash:ed,logs:Formatter.arrayOf(this.receiptLog.bind(this)),blockNumber:ef,confirmations:Formatter.allowNull(ef,null),cumulativeGasUsed:eo,effectiveGasPrice:Formatter.allowNull(eo),status:Formatter.allowNull(ef),type:ep},en.block={hash:Formatter.allowNull(ed),parentHash:ed,number:ef,timestamp:ef,nonce:Formatter.allowNull(eu),difficulty:this.difficulty.bind(this),gasLimit:eo,gasUsed:eo,miner:Formatter.allowNull(ei),extraData:es,transactions:Formatter.allowNull(Formatter.arrayOf(ed)),baseFeePerGas:Formatter.allowNull(eo)},en.blockWithTransactions=(0,e_.shallowCopy)(en.block),en.blockWithTransactions.transactions=Formatter.allowNull(Formatter.arrayOf(this.transactionResponse.bind(this))),en.filter={fromBlock:Formatter.allowNull(ea,void 0),toBlock:Formatter.allowNull(ea,void 0),blockHash:Formatter.allowNull(ed,void 0),address:Formatter.allowNull(ei,void 0),topics:Formatter.allowNull(this.topics.bind(this),void 0)},en.filterLog={blockNumber:Formatter.allowNull(ef),blockHash:Formatter.allowNull(ed),transactionIndex:ef,removed:Formatter.allowNull(this.boolean.bind(this)),address:ei,data:Formatter.allowFalsish(es,"0x"),topics:Formatter.arrayOf(ed),transactionHash:ed,logIndex:ef},en}accessList(en){return(0,eR.accessListify)(en||[])}number(en){return"0x"===en?0:eb.O$.from(en).toNumber()}type(en){return"0x"===en||null==en?0:eb.O$.from(en).toNumber()}bigNumber(en){return eb.O$.from(en)}boolean(en){if("boolean"==typeof en)return en;if("string"==typeof en){if("true"===(en=en.toLowerCase()))return!0;if("false"===en)return!1}throw Error("invalid boolean - "+en)}hex(en,ei){return"string"==typeof en&&(ei||"0x"===en.substring(0,2)||(en="0x"+en),(0,eS.isHexString)(en))?en.toLowerCase():eZ.throwArgumentError("invalid hash","value",en)}data(en,ei){let eo=this.hex(en,ei);if(eo.length%2!=0)throw Error("invalid data; odd-length - "+en);return eo}address(en){return(0,ey.getAddress)(en)}callAddress(en){if(!(0,eS.isHexString)(en,32))return null;let ei=(0,ey.getAddress)((0,eS.hexDataSlice)(en,12));return ei===eT?null:ei}contractAddress(en){return(0,ey.getContractAddress)(en)}blockTag(en){if(null==en)return"latest";if("earliest"===en)return"0x0";switch(en){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return en}if("number"==typeof en||(0,eS.isHexString)(en))return(0,eS.hexValue)(en);throw Error("invalid blockTag")}hash(en,ei){let eo=this.hex(en,ei);return 32!==(0,eS.hexDataLength)(eo)?eZ.throwArgumentError("invalid hash","value",en):eo}difficulty(en){if(null==en)return null;let ei=eb.O$.from(en);try{return ei.toNumber()}catch(en){}return null}uint256(en){if(!(0,eS.isHexString)(en))throw Error("invalid uint256");return(0,eS.hexZeroPad)(en,32)}_block(en,ei){null!=en.author&&null==en.miner&&(en.miner=en.author);let eo=null!=en._difficulty?en._difficulty:en.difficulty,ea=Formatter.check(ei,en);return ea._difficulty=null==eo?null:eb.O$.from(eo),ea}block(en){return this._block(en,this.formats.block)}blockWithTransactions(en){return this._block(en,this.formats.blockWithTransactions)}transactionRequest(en){return Formatter.check(this.formats.transactionRequest,en)}transactionResponse(en){null!=en.gas&&null==en.gasLimit&&(en.gasLimit=en.gas),en.to&&eb.O$.from(en.to).isZero()&&(en.to="0x0000000000000000000000000000000000000000"),null!=en.input&&null==en.data&&(en.data=en.input),null==en.to&&null==en.creates&&(en.creates=this.contractAddress(en)),(1===en.type||2===en.type)&&null==en.accessList&&(en.accessList=[]);let ei=Formatter.check(this.formats.transaction,en);if(null!=en.chainId){let eo=en.chainId;(0,eS.isHexString)(eo)&&(eo=eb.O$.from(eo).toNumber()),ei.chainId=eo}else{let eo=en.networkId;
4null==eo&&null==ei.v&&(eo=en.chainId),(0,eS.isHexString)(eo)&&(eo=eb.O$.from(eo).toNumber()),"number"!=typeof eo&&null!=ei.v&&((eo=(ei.v-35)/2)<0&&(eo=0),eo=parseInt(eo)),"number"!=typeof eo&&(eo=0),ei.chainId=eo}return ei.blockHash&&"x"===ei.blockHash.replace(/0/g,"")&&(ei.blockHash=null),ei}transaction(en){return(0,eR.parse)(en)}receiptLog(en){return Formatter.check(this.formats.receiptLog,en)}receipt(en){let ei=Formatter.check(this.formats.receipt,en);if(null!=ei.root){if(ei.root.length<=4){let en=eb.O$.from(ei.root).toNumber();0===en||1===en?(null!=ei.status&&ei.status!==en&&eZ.throwArgumentError("alt-root-status/status mismatch","value",{root:ei.root,status:ei.status}),ei.status=en,delete ei.root):eZ.throwArgumentError("invalid alt-root-status","value.root",ei.root)}else 66!==ei.root.length&&eZ.throwArgumentError("invalid root hash","value.root",ei.root)}return null!=ei.status&&(ei.byzantium=!0),ei}topics(en){return Array.isArray(en)?en.map(en=>this.topics(en)):null!=en?this.hash(en,!0):null}filter(en){return Formatter.check(this.formats.filter,en)}filterLog(en){return Formatter.check(this.formats.filterLog,en)}static check(en,ei){let eo={};for(let ea in en)try{let es=en[ea](ei[ea]);void 0!==es&&(eo[ea]=es)}catch(en){throw en.checkKey=ea,en.checkValue=ei[ea],en}return eo}static allowNull(en,ei){return function(eo){return null==eo?ei:en(eo)}}static allowFalsish(en,ei){return function(eo){return eo?en(eo):ei}}static arrayOf(en){return function(ei){if(!Array.isArray(ei))throw Error("not an array");let eo=[];return ei.forEach(function(ei){eo.push(en(ei))}),eo}}};function isCommunityResourcable(en){return en&&"function"==typeof en.isCommunityResource}function isCommunityResource(en){return isCommunityResourcable(en)&&en.isCommunityResource()}let ez=!1;function showThrottleMessage(){ez||(ez=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded  (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var base_provider_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let eY=new eA.Logger(eK),e$=10;function checkTopic(en){return null==en?"null":(32!==(0,eS.hexDataLength)(en)&&eY.throwArgumentError("invalid topic","topic",en),en.toLowerCase())}function serializeTopics(en){for(en=en.slice();en.length>0&&null==en[en.length-1];)en.pop();return en.map(en=>{if(!Array.isArray(en))return checkTopic(en);{let ei={};en.forEach(en=>{ei[checkTopic(en)]=!0});let eo=Object.keys(ei);return eo.sort(),eo.join("|")}}).join("&")}function deserializeTopics(en){return""===en?[]:en.split(/&/g).map(en=>{if(""===en)return[];let ei=en.split("|").map(en=>"null"===en?null:en);return 1===ei.length?ei[0]:ei})}function base_provider_getEventTag(en){if("string"==typeof en){if(en=en.toLowerCase(),32===(0,eS.hexDataLength)(en))return"tx:"+en;if(-1===en.indexOf(":"))return en}else if(Array.isArray(en))return"filter:*:"+serializeTopics(en);else if(em.Sg.isForkEvent(en))throw eY.warn("not implemented"),Error("not implemented");else if(en&&"object"==typeof en)return"filter:"+(en.address||"*")+":"+serializeTopics(en.topics||[]);throw Error("invalid event - "+en)}function getTime(){return new Date().getTime()}function stall(en){return new Promise(ei=>{setTimeout(ei,en)})}let eX=["block","network","pending","poll"];let Event=class Event{constructor(en,ei,eo){(0,e_.defineReadOnly)(this,"tag",en),(0,e_.defineReadOnly)(this,"listener",ei),(0,e_.defineReadOnly)(this,"once",eo),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let en=this.tag.split(":");return"tx"!==en[0]?null:en[1]}get filter(){let en=this.tag.split(":");if("filter"!==en[0])return null;let ei=en[1],eo=deserializeTopics(en[2]),ea={};return eo.length>
40&&(ea.topics=eo),ei&&"*"!==ei&&(ea.address=ei),ea}pollable(){return this.tag.indexOf(":")>=0||eX.indexOf(this.tag)>=0}};let e0={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function bytes32ify(en){return(0,eS.hexZeroPad)(eb.O$.from(en).toHexString(),32)}function base58Encode(en){return eH.Base58.encode((0,eS.concat)([en,(0,eS.hexDataSlice)((0,ej.JQ)((0,ej.JQ)(en)),0,4)]))}let e1=RegExp("^(ipfs)://(.*)$","i"),e2=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),e1,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function _parseString(en,ei){try{return(0,eV.ZN)(_parseBytes(en,ei))}catch(en){}return null}function _parseBytes(en,ei){if("0x"===en)return null;let eo=eb.O$.from((0,eS.hexDataSlice)(en,ei,ei+32)).toNumber(),ea=eb.O$.from((0,eS.hexDataSlice)(en,eo,eo+32)).toNumber();return(0,eS.hexDataSlice)(en,eo+32,eo+32+ea)}function getIpfsLink(en){return en.match(/^ipfs:\/\/ipfs\//i)?en=en.substring(12):en.match(/^ipfs:\/\//i)?en=en.substring(7):eY.throwArgumentError("unsupported IPFS format","link",en),`https://gateway.ipfs.io/ipfs/${en}`}function numPad(en){let ei=(0,eS.arrayify)(en);if(ei.length>32)throw Error("internal; should not happen");let eo=new Uint8Array(32);return eo.set(ei,32-ei.length),eo}function bytesPad(en){if(en.length%32==0)return en;let ei=new Uint8Array(32*Math.ceil(en.length/32));return ei.set(en),ei}function encodeBytes(en){let ei=[],eo=0;for(let ea=0;ea<en.length;ea++)ei.push(null),eo+=32;for(let ea=0;ea<en.length;ea++){let es=(0,eS.arrayify)(en[ea]);ei[ea]=numPad(eo),ei.push(numPad(es.length)),ei.push(bytesPad(es)),eo+=32+32*Math.ceil(es.length/32)}return(0,eS.hexConcat)(ei)}let Resolver=class Resolver{constructor(en,ei,eo,ea){(0,e_.defineReadOnly)(this,"provider",en),(0,e_.defineReadOnly)(this,"name",eo),(0,e_.defineReadOnly)(this,"address",en.formatter.address(ei)),(0,e_.defineReadOnly)(this,"_resolvedAddress",ea)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(en=>eb.O$.from(en).eq(1)).catch(en=>{if(en.code===eA.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,en})),this._supportsEip2544}_fetch(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){let eo={to:this.address,ccipReadEnabled:!0,data:(0,eS.hexConcat)([en,(0,eq.VM)(this.name),ei||"0x"])},ea=!1;(yield this.supportsWildcard())&&(ea=!0,eo.data=(0,eS.hexConcat)(["0x9061b923",encodeBytes([(0,eq.Kn)(this.name),eo.data])]));try{let en=yield this.provider.call(eo);return(0,eS.arrayify)(en).length%32==4&&eY.throwError("resolver threw error",eA.Logger.errors.CALL_EXCEPTION,{transaction:eo,data:en}),ea&&(en=_parseBytes(en,0)),en}catch(en){if(en.code===eA.Logger.errors.CALL_EXCEPTION)return null;throw en}})}_fetchBytes(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){let eo=yield this._fetch(en,ei);return null!=eo?_parseBytes(eo,0):null})}_getAddress(en,ei){let eo=e0[String(en)];if(null==eo&&eY.throwError(`unsupported coin type: ${en}`,eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${en})`}),"eth"===eo.ilk)return this.provider.formatter.address(ei);let ea=(0,eS.arrayify)(ei);
4if(null!=eo.p2pkh){let en=ei.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(en){let ei=parseInt(en[1],16);if(en[2].length===2*ei&&ei>=1&&ei<=75)return base58Encode((0,eS.concat)([[eo.p2pkh],"0x"+en[2]]))}}if(null!=eo.p2sh){let en=ei.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(en){let ei=parseInt(en[1],16);if(en[2].length===2*ei&&ei>=1&&ei<=75)return base58Encode((0,eS.concat)([[eo.p2sh],"0x"+en[2]]))}}if(null!=eo.prefix){let en=ea[1],ei=ea[0];if(0===ei?20!==en&&32!==en&&(ei=-1):ei=-1,ei>=0&&ea.length===2+en&&en>=1&&en<=75){let en=eQ().toWords(ea.slice(2));return en.unshift(ei),eQ().encode(eo.prefix,en)}}return null}getAddress(en){return base_provider_awaiter(this,void 0,void 0,function*(){if(null==en&&(en=60),60===en)try{let en=yield this._fetch("0x3b3b57de");if("0x"===en||en===eN.R)return null;return this.provider.formatter.callAddress(en)}catch(en){if(en.code===eA.Logger.errors.CALL_EXCEPTION)return null;throw en}let ei=yield this._fetchBytes("0xf1cb7e06",bytes32ify(en));if(null==ei||"0x"===ei)return null;let eo=this._getAddress(en,ei);return null==eo&&eY.throwError("invalid or unsupported coin data",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${en})`,coinType:en,data:ei}),eo})}getAvatar(){return base_provider_awaiter(this,void 0,void 0,function*(){let en=[{type:"name",content:this.name}];try{let ei=yield this.getText("avatar");if(null==ei)return null;for(let eo=0;eo<e2.length;eo++){let ea=ei.match(e2[eo]);if(null==ea)continue;let es=ea[1].toLowerCase();switch(es){case"https":return en.push({type:"url",content:ei}),{linkage:en,url:ei};case"data":return en.push({type:"data",content:ei}),{linkage:en,url:ei};case"ipfs":return en.push({type:"ipfs",content:ei}),{linkage:en,url:getIpfsLink(ei)};case"erc721":case"erc1155":{let eo="erc721"===es?"0xc87b56dd":"0x0e89341c";en.push({type:es,content:ei});let ed=this._resolvedAddress||(yield this.getAddress()),eu=(ea[2]||"").split("/");if(2!==eu.length)return null;let ef=yield this.provider.formatter.address(eu[0]),ep=(0,eS.hexZeroPad)(eb.O$.from(eu[1]).toHexString(),32);if("erc721"===es){let ei=this.provider.formatter.callAddress((yield this.provider.call({to:ef,data:(0,eS.hexConcat)(["0x6352211e",ep])})));if(ed!==ei)return null;en.push({type:"owner",content:ei})}else if("erc1155"===es){let ei=eb.O$.from((yield this.provider.call({to:ef,data:(0,eS.hexConcat)(["0x00fdd58e",(0,eS.hexZeroPad)(ed,32),ep])})));if(ei.isZero())return null;en.push({type:"balance",content:ei.toString()})}let em={to:this.provider.formatter.address(eu[0]),data:(0,eS.hexConcat)([eo,ep])},eg=_parseString((yield this.provider.call(em)),0);if(null==eg)return null;en.push({type:"metadata-url-base",content:eg}),"erc1155"===es&&(eg=eg.replace("{id}",ep.substring(2)),en.push({type:"metadata-url-expanded",content:eg})),eg.match(/^ipfs:/i)&&(eg=getIpfsLink(eg)),en.push({type:"metadata-url",content:eg});let ey=yield(0,eW.fetchJson)(eg);if(!ey)return null;en.push({type:"metadata",content:JSON.stringify(ey)});let e_=ey.image;if("string"!=typeof e_)return null;if(e_.match(/^(https:\/\/|data:)/i));else{let ei=e_.match(e1);if(null==ei)return null;en.push({type:"url-ipfs",content:e_}),e_=getIpfsLink(e_)}return en.push({type:"url",content:e_}),{linkage:en,url:e_}}}}}catch(en){}return null})}getContentHash(){return base_provider_awaiter(this,void 0,void 0,function*(){let en=yield this._fetchBytes("0xbc1c58d1");if(null==en||"0x"===en)return null;let ei=en.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(ei){let en=parseInt(ei[3],16);if(ei[4].length===2*en)return"ipfs://"+eH.Base58.encode("0x"+ei[1])}let eo=en.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(eo){let en=parseInt(eo[3],16);if(eo[4].length===2*en)return"ipns://"+eH.Base58.encode("0x"+eo[1])}let ea=en.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(ea&&64===ea[1].length)return"bzz://"+ea[1];let es=en.match(/^0x90b2c605([0-9a-f]*)$/);if(es&&68===es[1].length){let en={"=":"","+":"-","/":"_"},ei=(0,eF.c)("0x"+es[1]).replace(/[=+\/]/g,ei=>en[ei]);return"sia://"+ei}return eY.throwError("invalid or unsupported content hash data",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:en})})}getText(en){return base_provider_awaiter(this,void 0,void 0,function*(){let ei=(0,eV.Y0)(en);(ei=(0,eS.concat)([bytes32ify(64),bytes32ify(ei.length),ei])).length%32!=0&&(ei=(0,eS.concat)([ei,(0,eS.hexZeroPad)("0x",32-en.length%32)]));let eo=yield this._fetchBytes("0x59d1d43c",(0,eS.hexlify)(ei));return null==eo||"0x"===eo?null:(0,eV.ZN)(eo)})}};let e3=null,e6=1;let BaseProvider=class BaseProvider extends em.zt{constructor(en){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,e_.defineReadOnly)(this,"anyNetwork","any"===en),this.anyNetwork&&(en=this.detectNetwork()),en instanceof Promise)this._networkPromise=en,en.catch(en=>{}),this._ready().catch(en=>{});else{let ei=(0,e_.getStatic)(new.target,"getNetwork")(en);
4ei?((0,e_.defineReadOnly)(this,"_network",ei),this.emit("network",ei,null)):eY.throwArgumentError("invalid network","network",en)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return base_provider_awaiter(this,void 0,void 0,function*(){if(null==this._network){let en=null;if(this._networkPromise)try{en=yield this._networkPromise}catch(en){}null==en&&(en=yield this.detectNetwork()),en||eY.throwError("no network detected",eA.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=en:(0,e_.defineReadOnly)(this,"_network",en),this.emit("network",en,null))}return this._network})}get ready(){return(0,eW.poll)(()=>this._ready().then(en=>en,en=>{if(en.code!==eA.Logger.errors.NETWORK_ERROR||"noNetwork"!==en.event)throw en}))}static getFormatter(){return null==e3&&(e3=new Formatter),e3}static getNetwork(en){return getNetwork(null==en?"homestead":en)}ccipReadFetch(en,ei,eo){return base_provider_awaiter(this,void 0,void 0,function*(){if(this.disableCcipRead||0===eo.length)return null;let ea=en.to.toLowerCase(),es=ei.toLowerCase(),ed=[];for(let en=0;en<eo.length;en++){let ei=eo[en],eu=ei.replace("{sender}",ea).replace("{data}",es),ef=ei.indexOf("{data}")>=0?null:JSON.stringify({data:es,sender:ea}),ep=yield(0,eW.fetchJson)({url:eu,errorPassThrough:!0},ef,(en,ei)=>(en.status=ei.statusCode,en));if(ep.data)return ep.data;let em=ep.message||"unknown error";if(ep.status>=400&&ep.status<500)return eY.throwError(`response not found during CCIP fetch: ${em}`,eA.Logger.errors.SERVER_ERROR,{url:ei,errorMessage:em});ed.push(em)}return eY.throwError(`error encountered during CCIP fetch: ${ed.map(en=>JSON.stringify(en)).join(", ")}`,eA.Logger.errors.SERVER_ERROR,{urls:eo,errorMessages:ed})})}_getInternalBlockNumber(en){return base_provider_awaiter(this,void 0,void 0,function*(){if(yield this._ready(),en>0)for(;this._internalBlockNumber;){let ei=this._internalBlockNumber;try{let eo=yield ei;if(getTime()-eo.respTime<=en)return eo.blockNumber;break}catch(en){if(this._internalBlockNumber===ei)break}}let ei=getTime(),eo=(0,e_.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(en=>null,en=>en)}).then(({blockNumber:en,networkError:ea})=>{if(ea)throw this._internalBlockNumber===eo&&(this._internalBlockNumber=null),ea;let es=getTime();return(en=eb.O$.from(en).toNumber())<this._maxInternalBlockNumber&&(en=this._maxInternalBlockNumber),this._maxInternalBlockNumber=en,this._setFastBlockNumber(en),{blockNumber:en,reqTime:ei,respTime:es}});return this._internalBlockNumber=eo,eo.catch(en=>{this._internalBlockNumber===eo&&(this._internalBlockNumber=null)}),(yield eo).blockNumber})}poll(){return base_provider_awaiter(this,void 0,void 0,function*(){let en=e6++,ei=[],eo=null;try{eo=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(en){this.emit("error",en);return}if(this._setFastBlockNumber(eo),this.emit("poll",en,eo),eo===this._lastBlockNumber){this.emit("didPoll",en);return}if(-2===this._emitted.block&&(this._emitted.block=eo-1),Math.abs(this._emitted.block-eo)>1e3)eY.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${eo})`),this.emit("error",eY.makeError("network block skew detected",eA.Logger.errors.NETWORK_ERROR,{blockNumber:eo,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",eo);else for(let en=this._emitted.block+1;en<=eo;en++)this.emit("block",en);this._emitted.block!==eo&&(this._emitted.block=eo,Object.keys(this._emitted).forEach(en=>{if("block"===en)return;let ei=this._emitted[en];"pending"!==ei&&eo-ei>12&&delete this._emitted[en]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=eo-1),this._events.forEach(en=>{switch(en.type){case"tx":{let eo=en.hash,ea=this.getTransactionReceipt(eo).then(en=>(en&&null!=en.blockNumber&&(this._emitted["t:"+eo]=en.blockNumber,this.emit(eo,en)),null)).catch(en=>{this.emit("error",en)});ei.push(ea);break}case"filter":if(!en._inflight){en._inflight=!0,-2===en._lastBlockNumber&&(en._lastBlockNumber=eo-1);let ea=en.filter;ea.fromBlock=en._lastBlockNumber+1,ea.toBlock=eo;let es=ea.toBlock-this._maxFilterBlockRange;es>ea.fromBlock&&(ea.fromBlock=es),ea.fromBlock<0&&(ea.fromBlock=0);let ed=this.getLogs(ea).then(ei=>
4{en._inflight=!1,0!==ei.length&&ei.forEach(ei=>{ei.blockNumber>en._lastBlockNumber&&(en._lastBlockNumber=ei.blockNumber),this._emitted["b:"+ei.blockHash]=ei.blockNumber,this._emitted["t:"+ei.transactionHash]=ei.blockNumber,this.emit(ea,ei)})}).catch(ei=>{this.emit("error",ei),en._inflight=!1});ei.push(ed)}}}),this._lastBlockNumber=eo,Promise.all(ei).then(()=>{this.emit("didPoll",en)}).catch(en=>{this.emit("error",en)})})}resetEventsBlock(en){this._lastBlockNumber=en-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return base_provider_awaiter(this,void 0,void 0,function*(){return eY.throwError("provider does not support network detection",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return base_provider_awaiter(this,void 0,void 0,function*(){let en=yield this._ready(),ei=yield this.detectNetwork();if(en.chainId!==ei.chainId){if(this.anyNetwork)return this._network=ei,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",ei,en),yield stall(0),this._network;let eo=eY.makeError("underlying network changed",eA.Logger.errors.NETWORK_ERROR,{event:"changed",network:en,detectedNetwork:ei});throw this.emit("error",eo),eo}return en})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(en=>{this._setFastBlockNumber(en)},en=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(en){en&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!en&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(en){if("number"!=typeof en||en<=0||parseInt(String(en))!=en)throw Error("invalid polling interval");this._pollingInterval=en,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let en=getTime();return en-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=en,this._fastBlockNumberPromise=this.getBlockNumber().then(en=>((null==this._fastBlockNumber||en>this._fastBlockNumber)&&(this._fastBlockNumber=en),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(en){(null==this._fastBlockNumber||!(en<this._fastBlockNumber))&&(this._fastQueryDate=getTime(),(null==this._fastBlockNumber||en>this._fastBlockNumber)&&(this._fastBlockNumber=en,this._fastBlockNumberPromise=Promise.resolve(en)))}waitForTransaction(en,ei,eo){return base_provider_awaiter(this,void 0,void 0,function*(){return this._waitForTransaction(en,null==ei?1:ei,eo||0,null)})}_waitForTransaction(en,ei,eo,ea){return base_provider_awaiter(this,void 0,void 0,function*(){let es=yield this.getTransactionReceipt(en);return(es?es.confirmations:0)>=ei?es:new Promise((es,ed)=>{let eu=[],ef=!1,alreadyDone=function(){return!!ef||(ef=!0,eu.forEach(en=>{en()}),!1)},minedHandler=en=>{en.confirmations<ei||alreadyDone()||es(en)};if(this.on(en,minedHandler),eu.push(()=>{this.removeListener(en,minedHandler)}),ea){let eo=ea.startBlock,es=null,replaceHandler=eu=>base_provider_awaiter(this,void 0,void 0,function*(){ef||(yield stall(1e3),this.getTransactionCount(ea.from).then(ep=>base_provider_awaiter(this,void 0,void 0,function*(){if(!ef){if(ep<=ea.nonce)eo=eu;else{{let ei=yield this.getTransaction(en);if(ei&&null!=ei.blockNumber)return}for(null==es&&(es=eo-3)<ea.startBlock&&(es=ea.startBlock);es<=eu;){if(ef)return;let eo=yield this.getBlockWithTransactions(es);for(let es=0;es<eo.transactions.length;es++){let eu=eo.transactions[es];if(eu.hash===en)return;if(eu.from===ea.from&&eu.nonce===ea.nonce){if(ef)return;let eo=yield this.waitForTransaction(eu.hash,ei);if(alreadyDone())return;let es="replaced";eu.data===ea.data&&eu.to===ea.to&&eu.value.eq(ea.value)?es="repriced":"0x"===eu.data&&eu.from===eu.to&&eu.value.isZero()&&(es="cancelled"),ed(eY.makeError("transaction was replaced",eA.Logger.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===es||"cancelled"===es,reason:es,replacement:this._wrapTransaction(eu),hash:en,receipt:eo}));return}}es++}}ef||this.once("block",replaceHandler)}}),en=>{ef||this.once("block",replaceHandler)}))});if(ef)return;this.once("block",replaceHandler),eu.push(()=>{this.removeListener("block",replaceHandler)})}if("number"==typeof eo&&eo>0){let en=setTimeout(()=>{alreadyDone()||ed(eY.makeError("timeout exceeded",eA.Logger.errors.TIMEOUT,{timeout:eo}))},eo);en.unref&&en.unref(),eu.push(()=>{clearTimeout(en)})}})})}getBlockNumber(){return base_provider_awaiter(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let en=yield this.perform("getGasPrice",{});try{return eb.O$.from(en)}catch(ei){return eY.throwError("bad result from backend",eA.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:en,error:ei})}})}getBalance(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let eo=yield(0,e_.resolveProperties)({address:this._getAddress(en),blockTag:this._getBlockTag(ei)}),ea=yield this.perform("getBalance",eo);try{return eb.O$.from(ea)}catch(en){return eY.throwError("bad result from backend",eA.Logger.errors.SERVER_ERROR,{method:"getBalance",params:eo,result:ea,error:en})}})}getTransactionCount(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let eo=yield(0,e_.resolveProperties)({address:this._getAddress(en),blockTag:this._getBlockTag(ei)}),ea=yield this.perform("getTransactionCount",eo);try{return eb.O$.from(ea).toNumber()}catch(en){return eY.throwError("bad result from backend",eA.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:eo,result:ea,error:en})}})}getCode(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let eo=yield(0,e_.resolveProperties)({address:this._getAddress(en),blockTag:this._getBlockTag(ei)}),ea=yield this.perform("getCode",eo);try{return(0,eS.hexlify)(ea)}catch(en){return eY.throwError("bad result from backend",eA.Logger.errors.SERVER_ERROR,{method:"getCode",params:eo,result:ea,error:en})}})}getStorageAt(en,ei,eo){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let ea=yield(0,e_.resolveProperties)({address:this._getAddress(en),blockTag:this._getBlockTag(eo),position:Prom
4ise.resolve(ei).then(en=>(0,eS.hexValue)(en))}),es=yield this.perform("getStorageAt",ea);try{return(0,eS.hexlify)(es)}catch(en){return eY.throwError("bad result from backend",eA.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:ea,result:es,error:en})}})}_wrapTransaction(en,ei,eo){if(null!=ei&&32!==(0,eS.hexDataLength)(ei))throw Error("invalid response - sendTransaction");let ea=en;return null!=ei&&en.hash!==ei&&eY.throwError("Transaction hash mismatch from Provider.sendTransaction.",eA.Logger.errors.UNKNOWN_ERROR,{expectedHash:en.hash,returnedHash:ei}),ea.wait=(ei,ea)=>base_provider_awaiter(this,void 0,void 0,function*(){let es;null==ei&&(ei=1),null==ea&&(ea=0),0!==ei&&null!=eo&&(es={data:en.data,from:en.from,nonce:en.nonce,to:en.to,value:en.value,startBlock:eo});let ed=yield this._waitForTransaction(en.hash,ei,ea,es);return null==ed&&0===ei?null:(this._emitted["t:"+en.hash]=ed.blockNumber,0===ed.status&&eY.throwError("transaction failed",eA.Logger.errors.CALL_EXCEPTION,{transactionHash:en.hash,transaction:en,receipt:ed}),ed)}),ea}
4sendTransaction(en){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let ei=yield Promise.resolve(en).then(en=>(0,eS.hexlify)(en)),eo=this.formatter.transaction(en);null==eo.confirmations&&(eo.confirmations=0);let ea=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let en=yield this.perform("sendTransaction",{signedTransaction:ei});return this._wrapTransaction(eo,en,ea)}catch(en){throw en.transaction=eo,en.transactionHash=eo.hash,en}})}_getTransactionRequest(en){return base_provider_awaiter(this,void 0,void 0,function*(){let ei=yield en,eo={};return["from","to"].forEach(en=>{null!=ei[en]&&(eo[en]=Promise.resolve(ei[en]).then(en=>en?this._getAddress(en):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(en=>{null!=ei[en]&&(eo[en]=Promise.resolve(ei[en]).then(en=>en?eb.O$.from(en):null))}),["type"].forEach(en=>{null!=ei[en]&&(eo[en]=Promise.resolve(ei[en]).then(en=>null!=en?en:null))}),ei.accessList&&(eo.accessList=this.formatter.accessList(ei.accessList)),["data"].forEach(en=>{null!=ei[en]&&(eo[en]=Promise.resolve(ei[en]).then(en=>en?(0,eS.hexlify)(en):null))}),this.formatter.transactionRequest((yield(0,e_.resolveProperties)(eo)))})}_getFilter(en){return base_provider_awaiter(this,void 0,void 0,function*(){en=yield en;let ei={};return null!=en.address&&(ei.address=this._getAddress(en.address)),["blockHash","topics"].forEach(eo=>{null!=en[eo]&&(ei[eo]=en[eo])}),["fromBlock","toBlock"].forEach(eo=>{null!=en[eo]&&(ei[eo]=this._getBlockTag(en[eo]))}),this.formatter.filter((yield(0,e_.resolveProperties)(ei)))})}_call(en,ei,eo){return base_provider_awaiter(this,void 0,void 0,function*(){eo>=e$&&eY.throwError("CCIP read exceeded maximum redirections",eA.Logger.errors.SERVER_ERROR,{redirects:eo,transaction:en});let ea=en.to,es=yield this.perform("call",{transaction:en,blockTag:ei});if(eo>=0&&"latest"===ei&&null!=ea&&"0x556f1830"===es.substring(0,10)&&(0,eS.hexDataLength)(es)%32==4)try{let ed=(0,eS.hexDataSlice)(es,4),eu=(0,eS.hexDataSlice)(ed,0,32);eb.O$.from(eu).eq(ea)||eY.throwError("CCIP Read sender did not match",eA.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:en,data:es});let ef=[],ep=eb.O$.from((0,eS.hexDataSlice)(ed,32,64)).toNumber(),em=eb.O$.from((0,eS.hexDataSlice)(ed,ep,ep+32)).toNumber(),eg=(0,eS.hexDataSlice)(ed,ep+32);for(let ei=0;ei<em;ei++){let eo=_parseString(eg,32*ei);null==eo&&eY.throwError("CCIP Read contained corrupt URL string",eA.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:en,data:es}),ef.push(eo)}let ey=_parseBytes(ed,64);eb.O$.from((0,eS.hexDataSlice)(ed,100,128)).isZero()||eY.throwError("CCIP Read callback selector included junk",eA.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:en,data:es});let e_=(0,eS.hexDataSlice)(ed,96,100),eR=_parseBytes(ed,128),ew=yield this.ccipReadFetch(en,ey,ef);null==ew&&eY.throwError("CCIP Read disabled or provided no URLs",eA.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:en,data:es});let eO={to:ea,data:(0,eS.hexConcat)([e_,encodeBytes([ew,eR])])};return this._call(eO,ei,eo+1)}catch(en){if(en.code===eA.Logger.errors.SERVER_ERROR)throw en}try{return(0,eS.hexlify)(es)}catch(eo){return eY.throwError("bad result from backend",eA.Logger.errors.SERVER_ERROR,{method:"call",params:{transaction:en,blockTag:ei},result:es,error:eo})}})}call(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let eo=yield(0,e_.resolveProperties)({transaction:this._getTransactionRequest(en),blockTag:this._getBlockTag(ei),ccipReadEnabled:Promise.resolve(en.ccipReadEnabled)});return this._call(eo.transaction,eo.blockTag,eo.ccipReadEnabled?0:-1)})}estimateGas(en){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let ei=yield(0,e_.resolveProperties)({transaction:this._getTransactionRequest(en)}),eo=yield this.perform("estimateGas",ei);try{return eb.O$.from(eo)}catch(en){return eY.throwError("bad result from backend",eA.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:ei,result:eo,error:en})}})}_getAddress(en){return base_provider_awaiter(this,void 0,void 0,function*(){"string"!=typeof(en=yield en)&&eY.throwArgumentError("invalid address or ENS name","name",en);let ei=yield this.resolveName(en);return null==ei&&eY.throwError("ENS name not configured",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(en)})`}),ei})}_getBlock(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork(),en=yield en;let eo=-128,ea={includeTransactions:!!ei};if((0,eS.isHexString)(en,32))ea.blockHash=en;else try{ea.blockTag=yield this._getBlockTag(en),(0,eS.isHexString)(ea.blockTag)&&(eo=parseInt(ea.blockTag.substring(2),16))}catch(ei){eY.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",en)}return(0,eW.poll)(()=>base_provider_awaiter(this,void 0,void 0,function*(){let en=yield this.perform("getBlock",ea);if(null==en)return null!=ea.blockHash&&null==this._emitted["b:"+ea.blockHash]||null!=ea.blockTag&&eo>this._emitted.block?null:void 0;if(ei){let ei=null;for(let eo=0;eo<en.transactions.length;eo++){let ea=en.transactions[eo];if(null==ea.blockNumber)ea.confirmations=0;else if(null==ea.confirmations){null==ei&&(ei=yield this._getInternalBlockNumber(100+2*this.pollingInterval));
4let en=ei-ea.blockNumber+1;en<=0&&(en=1),ea.confirmations=en}}let eo=this.formatter.blockWithTransactions(en);return eo.transactions=eo.transactions.map(en=>this._wrapTransaction(en)),eo}return this.formatter.block(en)}),{oncePoll:this})})}getBlock(en){return this._getBlock(en,!1)}getBlockWithTransactions(en){return this._getBlock(en,!0)}getTransaction(en){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork(),en=yield en;let ei={transactionHash:this.formatter.hash(en,!0)};return(0,eW.poll)(()=>base_provider_awaiter(this,void 0,void 0,function*(){let eo=yield this.perform("getTransaction",ei);if(null==eo)return null==this._emitted["t:"+en]?null:void 0;let ea=this.formatter.transactionResponse(eo);if(null==ea.blockNumber)ea.confirmations=0;else if(null==ea.confirmations){let en=yield this._getInternalBlockNumber(100+2*this.pollingInterval),ei=en-ea.blockNumber+1;ei<=0&&(ei=1),ea.confirmations=ei}return this._wrapTransaction(ea)}),{oncePoll:this})})}getTransactionReceipt(en){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork(),en=yield en;let ei={transactionHash:this.formatter.hash(en,!0)};return(0,eW.poll)(()=>base_provider_awaiter(this,void 0,void 0,function*(){let eo=yield this.perform("getTransactionReceipt",ei);if(null==eo)return null==this._emitted["t:"+en]?null:void 0;if(null==eo.blockHash)return;let ea=this.formatter.receipt(eo);if(null==ea.blockNumber)ea.confirmations=0;else if(null==ea.confirmations){let en=yield this._getInternalBlockNumber(100+2*this.pollingInterval),ei=en-ea.blockNumber+1;ei<=0&&(ei=1),ea.confirmations=ei}return ea}),{oncePoll:this})})}getLogs(en){return base_provider_awaiter(this,void 0,void 0,function*(){yield this.getNetwork();let ei=yield(0,e_.resolveProperties)({filter:this._getFilter(en)}),eo=yield this.perform("getLogs",ei);return eo.forEach(en=>{null==en.removed&&(en.removed=!1)}),Formatter.arrayOf(this.formatter.filterLog.bind(this.formatter))(eo)})}getEtherPrice(){return base_provider_awaiter(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(en){return base_provider_awaiter(this,void 0,void 0,function*(){if("number"==typeof(en=yield en)&&en<0){en%1&&eY.throwArgumentError("invalid BlockTag","blockTag",en);let ei=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(ei+=en)<0&&(ei=0),this.formatter.blockTag(ei)}return this.formatter.blockTag(en)})}getResolver(en){return base_provider_awaiter(this,void 0,void 0,function*(){let ei=en;for(;;){if(""===ei||"."===ei||"eth"!==en&&"eth"===ei)return null;let eo=yield this._getResolver(ei,"getResolver");if(null!=eo){let ea=new Resolver(this,eo,en);if(ei!==en&&!(yield ea.supportsWildcard()))return null;return ea}ei=ei.split(".").slice(1).join(".")}})}_getResolver(en,ei){return base_provider_awaiter(this,void 0,void 0,function*(){null==ei&&(ei="ENS");let eo=yield this.getNetwork();eo.ensAddress||eY.throwError("network does not support ENS",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:ei,network:eo.name});try{let ei=yield this.call({to:eo.ensAddress,data:"0x0178b8bf"+(0,eq.VM)(en).substring(2)});return this.formatter.callAddress(ei)}catch(en){}return null})}resolveName(en){return base_provider_awaiter(this,void 0,void 0,function*(){en=yield en;try{return Promise.resolve(this.formatter.address(en))}catch(ei){if((0,eS.isHexString)(en))throw ei}"string"!=typeof en&&eY.throwArgumentError("invalid ENS name","name",en);let ei=yield this.getResolver(en);return ei?yield ei.getAddress():null})}lookupAddress(en){return base_provider_awaiter(this,void 0,void 0,function*(){en=yield en,en=this.formatter.address(en);let ei=en.substring(2).toLowerCase()+".addr.reverse",eo=yield this._getResolver(ei,"lookupAddress");if(null==eo)return null;let ea=_parseString((yield this.call({to:eo,data:"0x691f3431"+(0,eq.VM)(ei).substring(2)})),0),es=yield this.resolveName(ea);return es!=en?null:ea})}getAvatar(en){return base_provider_awaiter(this,void 0,void 0,function*(){let ei=null;if((0,eS.isHexString)(en)){let eo=this.formatter.address(en),ea=eo.substring(2).toLowerCase()+".addr.reverse",es=yield this._getResolver(ea,"getAvatar");if(!es)return null;ei=new Resolver(this,es,ea);try{let en=yield ei.getAvatar();if(en)return en.url}catch(en){if(en.code!==eA.Logger.errors.CALL_EXCEPTION)throw en}try{let en=_parseString((yield this.call({to:es,data:"0x691f3431"+(0,eq.VM)(ea).substring(2)})),0);ei=yield this.getResolver(en)}catch(en){if(en.code!==eA.Logger.errors.CALL_EXCEPTION)throw en;return null}}else if(!(ei=yield this.getResolver(en)))return null;let eo=yield ei.getAvatar();return null==eo?null:eo.url})}perform(en,ei){return eY.throwError(en+" not implemented",eA.Logger.errors.NOT_IMPLEMENT
4ED,{operation:en})}_startEvent(en){this.polling=this._events.filter(en=>en.pollable()).length>0}_stopEvent(en){this.polling=this._events.filter(en=>en.pollable()).length>0}_addEventListener(en,ei,eo){let ea=new Event(base_provider_getEventTag(en),ei,eo);return this._events.push(ea),this._startEvent(ea),this}on(en,ei){return this._addEventListener(en,ei,!1)}once(en,ei){return this._addEventListener(en,ei,!0)}emit(en,...ei){let eo=!1,ea=[],es=base_provider_getEventTag(en);return this._events=this._events.filter(en=>en.tag!==es||(setTimeout(()=>{en.listener.apply(this,ei)},0),eo=!0,!en.once||(ea.push(en),!1))),ea.forEach(en=>{this._stopEvent(en)}),eo}listenerCount(en){if(!en)return this._events.length;let ei=base_provider_getEventTag(en);return this._events.filter(en=>en.tag===ei).length}listeners(en){if(null==en)return this._events.map(en=>en.listener);let ei=base_provider_getEventTag(en);return this._events.filter(en=>en.tag===ei).map(en=>en.listener)}off(en,ei){if(null==ei)return this.removeAllListeners(en);let eo=[],ea=!1,es=base_provider_getEventTag(en);return this._events=this._events.filter(en=>en.tag!==es||en.listener!=ei||!!ea||(ea=!0,eo.push(en),!1)),eo.forEach(en=>{this._stopEvent(en)}),this}removeAllListeners(en){let ei=[];if(null==en)ei=this._events,this._events=[];else{let eo=base_provider_getEventTag(en);this._events=this._events.filter(en=>en.tag!==eo||(ei.push(en),!1))}return ei.forEach(en=>{this._stopEvent(en)}),this}};var e5=eo(67827),json_rpc_provider_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let e8=new eA.Logger(eK),e4=["call","estimateGas"];function spelunk(en,ei){if(null==en)return null;if("string"==typeof en.message&&en.message.match("reverted")){let eo=(0,eS.isHexString)(en.data)?en.data:null;if(!ei||eo)return{message:en.message,data:eo}}if("object"==typeof en){for(let eo in en){let ea=spelunk(en[eo],ei);if(ea)return ea}return null}if("string"==typeof en)try{return spelunk(JSON.parse(en),ei)}catch(en){}return null}function checkError(en,ei,eo){let ea=eo.transaction||eo.signedTransaction;if("call"===en){let en=spelunk(ei,!0);if(en)return en.data;e8.throwError("missing revert data in call exception; Transaction reverted without a reason string",eA.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:ea,error:ei})}if("estimateGas"===en){let eo=spelunk(ei.body,!1);null==eo&&(eo=spelunk(ei,!1)),eo&&e8.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",eA.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:eo.message,method:en,transaction:ea,error:ei})}let es=ei.message;throw ei.code===eA.Logger.errors.SERVER_ERROR&&ei.error&&"string"==typeof ei.error.message?es=ei.error.message:"string"==typeof ei.body?es=ei.body:"string"==typeof ei.responseText&&(es=ei.responseText),(es=(es||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&e8.throwError("insufficient funds for intrinsic transaction cost",eA.Logger.errors.INSUFFICIENT_FUNDS,{error:ei,method:en,transaction:ea}),es.match(/nonce (is )?too low/i)&&e8.throwError("nonce has already been used",eA.Logger.errors.NONCE_EXPIRED,{error:ei,method:en,transaction:ea}),es.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&e8.throwError("replacement fee too low",eA.Logger.errors.REPLACEMENT_UNDERPRICED,{error:ei,method:en,transaction:ea}),es.match(/only replay-protected/i)&&e8.throwError("legacy pre-eip-155 transactions not supported",eA.Logger.errors.UNSUPPORTED_OPERATION,{error:ei,method:en,transaction:ea}),e4.indexOf(en)>=0&&es.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&e8.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",eA.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:ei,method:en,transaction:ea}),ei}function timer(en){return new Promise(function(ei){setTimeout(ei,en)})}function getResult(en){if(en.error){let ei=Error(en.error.message);
4throw ei.code=en.error.code,ei.data=en.error.data,ei}return en.result}function getLowerCase(en){return en?en.toLowerCase():en}let e7={};let JsonRpcSigner=class JsonRpcSigner extends eg.E{constructor(en,ei,eo){if(super(),en!==e7)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,e_.defineReadOnly)(this,"provider",ei),null==eo&&(eo=0),"string"==typeof eo?((0,e_.defineReadOnly)(this,"_address",this.provider.formatter.address(eo)),(0,e_.defineReadOnly)(this,"_index",null)):"number"==typeof eo?((0,e_.defineReadOnly)(this,"_index",eo),(0,e_.defineReadOnly)(this,"_address",null)):e8.throwArgumentError("invalid address or index","addressOrIndex",eo)}connect(en){return e8.throwError("cannot alter JSON-RPC Signer connection",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new UncheckedJsonRpcSigner(e7,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(en=>(en.length<=this._index&&e8.throwError("unknown account #"+this._index,eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(en[this._index])))}sendUncheckedTransaction(en){en=(0,e_.shallowCopy)(en);let ei=this.getAddress().then(en=>(en&&(en=en.toLowerCase()),en));if(null==en.gasLimit){let eo=(0,e_.shallowCopy)(en);eo.from=ei,en.gasLimit=this.provider.estimateGas(eo)}return null!=en.to&&(en.to=Promise.resolve(en.to).then(en=>json_rpc_provider_awaiter(this,void 0,void 0,function*(){if(null==en)return null;let ei=yield this.provider.resolveName(en);return null==ei&&e8.throwArgumentError("provided ENS name resolves to null","tx.to",en),ei}))),(0,e_.resolveProperties)({tx:(0,e_.resolveProperties)(en),sender:ei}).then(({tx:ei,sender:eo})=>{null!=ei.from?ei.from.toLowerCase()!==eo&&e8.throwArgumentError("from address mismatch","transaction",en):ei.from=eo;let ea=this.provider.constructor.hexlifyTransaction(ei,{from:!0});return this.provider.send("eth_sendTransaction",[ea]).then(en=>en,en=>("string"==typeof en.message&&en.message.match(/user denied/i)&&e8.throwError("user rejected transaction",eA.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:ei}),checkError("sendTransaction",en,ea)))})}signTransaction(en){return e8.throwError("signing transactions is unsupported",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(en){return json_rpc_provider_awaiter(this,void 0,void 0,function*(){let ei=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),eo=yield this.sendUncheckedTransaction(en);try{return yield(0,eW.poll)(()=>json_rpc_provider_awaiter(this,void 0,void 0,function*(){let en=yield this.provider.getTransaction(eo);if(null!==en)return this.provider._wrapTransaction(en,eo,ei)}),{oncePoll:this.provider})}catch(en){throw en.transactionHash=eo,en}})}signMessage(en){return json_rpc_provider_awaiter(this,void 0,void 0,function*(){let ei="string"==typeof en?(0,eV.Y0)(en):en,eo=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,eS.hexlify)(ei),eo.toLowerCase()])}catch(ei){throw"string"==typeof ei.message&&ei.message.match(/user denied/i)&&e8.throwError("user rejected signing",eA.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:eo,messageData:en}),ei}})}_legacySignMessage(en){return json_rpc_provider_awaiter(this,void 0,void 0,function*(){let ei="string"==typeof en?(0,eV.Y0)(en):en,eo=yield this.getAddress();try{return yield this.provider.send("eth_sign",[eo.toLowerCase(),(0,eS.hexlify)(ei)])}catch(ei){throw"string"==typeof ei.message&&ei.message.match(/user denied/i)&&e8.throwError("user rejected signing",eA.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:eo,messageData:en}),ei}})}_signTypedData(en,ei,eo){return json_rpc_provider_awaiter(this,void 0,void 0,function*(){let ea=yield e5.E.resolveNames(en,ei,eo,en=>this.provider.resolveName(en)),es=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[es.toLowerCase(),JSON.stringify(e5.E.getPayload(ea.domain,ei,ea.value))])}catch(en){throw"string"==typeof en.message&&en.message.match(/user denied/i)&&e8.throwError("user rejected signing",eA.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:es,messageData:{domain:ea.domain,types:ei,value:ea.value}}),en}})}unlock(en){return json_rpc_provider_awaiter(this,void 0,void 0,function*(){let ei=this.provider,eo=yield this.getAddress();return ei.send("personal_unlockAccount",[eo.toLowerCase(),en,null])})}};let UncheckedJsonRpcSigner=class UncheckedJsonRpcSigner extends JsonRpcSigner{sendTransaction(en){return this.sendUncheckedTransaction(en).then(en=>({hash:en,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:ei=>this.provider.waitForTransaction(en,ei)}))}};let e9={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let JsonRpcProvider=class JsonRpcProvider extends BaseProvider{constructor(en,ei){let eo=ei;null==eo&&(eo=new Promise((en,ei)=>{setTimeout(()=>{this.detectNetwork().then(ei=>{en(ei)},en=>{ei(en)})},0)})),super(eo),en||(en=(0,e_.getStatic)(this.constructor,"defaultUrl")()),"string"==typeof en?(0,e_.defineReadOnly)(this,"connection",Object.freeze({url:en})):(0,e_.defineReadOnly)(this,"connection",Object.freeze((0,e_.shallowCopy)(en))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return json_rpc_provider_awaiter(this,void 0,void 0,function*(){yield timer(0);let en=null;try{en=yield this.send("eth_chainId",[])}catch(ei){try{en=yield this.send("net_version",[])}catch(en){}}if(null!=en){let ei=(0,e_.getStatic)(this.constructor,"getNetwork");try{return ei(eb.O$.from(en).toNumber())}catch(ei){return e8.throwError("could not detect network",eA.Logger.errors.NETWORK_E
4RROR,{chainId:en,event:"invalidNetwork",serverError:ei})}}return e8.throwError("could not detect network",eA.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(en){return new JsonRpcSigner(e7,this,en)}getUncheckedSigner(en){return this.getSigner(en).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(en=>en.map(en=>this.formatter.address(en)))}send(en,ei){let eo={method:en,params:ei,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,e_.deepCopy)(eo),provider:this});let ea=["eth_chainId","eth_blockNumber"].indexOf(en)>=0;if(ea&&this._cache[en])return this._cache[en];let es=(0,eW.fetchJson)(this.connection,JSON.stringify(eo),getResult).then(en=>(this.emit("debug",{action:"response",request:eo,response:en,provider:this}),en),en=>{throw this.emit("debug",{action:"response",error:en,request:eo,provider:this}),en});return ea&&(this._cache[en]=es,setTimeout(()=>{this._cache[en]=null},0)),es}prepareRequest(en,ei){switch(en){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[getLowerCase(ei.address),ei.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[getLowerCase(ei.address),ei.blockTag]];case"getCode":return["eth_getCode",[getLowerCase(ei.address),ei.blockTag]];case"getStorageAt":return["eth_getStorageAt",[getLowerCase(ei.address),(0,eS.hexZeroPad)(ei.position,32),ei.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[ei.signedTransaction]];case"getBlock":if(ei.blockTag)return["eth_getBlockByNumber",[ei.blockTag,!!ei.includeTransactions]];if(ei.blockHash)return["eth_getBlockByHash",[ei.blockHash,!!ei.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[ei.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[ei.transactionHash]];case"call":{let en=(0,e_.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[en(ei.transaction,{from:!0}),ei.blockTag]]}case"estimateGas":{let en=(0,e_.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[en(ei.transaction,{from:!0})]]}case"getLogs":return ei.filter&&null!=ei.filter.address&&(ei.filter.address=getLowerCase(ei.filter.address)),["eth_getLogs",[ei.filter]]}return null}perform(en,ei){return json_rpc_provider_awaiter(this,void 0,void 0,function*(){if("call"===en||"estimateGas"===en){let en=e
4i.transaction;if(en&&null!=en.type&&eb.O$.from(en.type).isZero()&&null==en.maxFeePerGas&&null==en.maxPriorityFeePerGas){let eo=yield this.getFeeData();null==eo.maxFeePerGas&&null==eo.maxPriorityFeePerGas&&((ei=(0,e_.shallowCopy)(ei)).transaction=(0,e_.shallowCopy)(en),delete ei.transaction.type)}}let eo=this.prepareRequest(en,ei);null==eo&&e8.throwError(en+" not implemented",eA.Logger.errors.NOT_IMPLEMENTED,{operation:en});try{return yield this.send(eo[0],eo[1])}catch(eo){return checkError(en,eo,ei)}})}_startEvent(en){"pending"===en.tag&&this._startPending(),super._startEvent(en)}_startPending(){if(null!=this._pendingFilter)return;let en=this,ei=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=ei,ei.then(function(eo){function poll(){en.send("eth_getFilterChanges",[eo]).then(function(eo){if(en._pendingFilter!=ei)return null;let ea=Promise.resolve();return eo.forEach(function(ei){en._emitted["t:"+ei.toLowerCase()]="pending",ea=ea.then(function(){return en.getTransaction(ei).then(function(ei){return en.emit("pending",ei),null})})}),ea.then(function(){return timer(1e3)})}).then(function(){if(en._pendingFilter!=ei){en.send("eth_uninstallFilter",[eo]);return}return setTimeout(function(){poll()},0),null}).catch(en=>{})}return poll(),eo}).catch(en=>{})}_stopEvent(en){"pending"===en.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(en)}static hexlifyTransaction(en,ei){let eo=(0,e_.shallowCopy)(e9);if(ei)for(let en in ei)ei[en]&&(eo[en]=!0);(0,e_.checkProperties)(en,eo);let ea={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(ei){if(null==en[ei])return;let eo=(0,eS.hexValue)(eb.O$.from(en[ei]));"gasLimit"===ei&&(ei="gas"),ea[ei]=eo}),["from","to","data"].forEach(function(ei){null!=en[ei]&&(ea[ei]=(0,eS.hexlify)(en[ei]))}),en.accessList&&(ea.accessList=(0,eR.accessListify)(en.accessList)),ea}};let tn=null;try{if(tn=WebSocket,null==tn)throw Error("inject please")}catch(ei){let en=new eA.Logger(eK);tn=function(){en.throwError("WebSockets not supported in this environment",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var websocket_provider_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let ta=new eA.Logger(eK),td=1;let WebSocketProvider=class WebSocketProvider extends JsonRpcProvider{constructor(en,ei){"any"===ei&&ta.throwError("WebSocketProvider does not support 'any' network yet",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof en?super(en,ei):super("_websocket",ei),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof en?(0,e_.defineReadOnly)(this,"_websocket",new tn(this.connection.url)):(0,e_.defineReadOnly)(this,"_websocket",en),(0,e_.defineReadOnly)(this,"_requests",{}),(0,e_.defineReadOnly)(this,"_subs",{}),(0,e_.defineReadOnly)(this,"_subIds",{}),(0,e_.defineReadOnly)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(en=>{this.websocket.send(this._requests[en].payload)})},this.websocket.onmessage=en=>{let ei=en.data,eo=JSON.parse(ei);if(null!=eo.id){let en=String(eo.id),ea=this._requests[en];if(delete this._requests[en],void 0!==eo.result)ea.callback(null,eo.result),this.emit("debug",{action:"response",request:JSON.parse(ea.payload),response:eo.result,provider:this});else{let en=null;eo.error?(en=Error(eo.error.message||"unknown error"),(0,e_.defineReadOnly)(en,"code",eo.error.code||null),(0,e_.defineReadOnly)(en,"response",ei)):en=Error("unknown error"),ea.callback(en,void 0),this.emit("debug",{action:"response",error:en,request:JSON.parse(ea.payload),provider:this})}}else if("eth_subscription"===eo.method){let en=this._subs[eo.params.subscription];en&&en.processFunc(eo.params.result)}else console.warn("this should not happen")};let eo=setInterval(()=>
4{this.emit("poll")},1e3);eo.unref&&eo.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(en){ta.throwError("cannot reset events block on WebSocketProvider",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(en){ta.throwError("cannot set polling interval on WebSocketProvider",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return websocket_provider_awaiter(this,void 0,void 0,function*(){return null})}set polling(en){en&&ta.throwError("cannot set polling on WebSocketProvider",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(en,ei){let eo=td++;return new Promise((ea,es)=>{function callback(en,ei){return en?es(en):ea(ei)}let ed=JSON.stringify({method:en,params:ei,id:eo,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(ed),provider:this}),this._requests[String(eo)]={callback,payload:ed},this._wsReady&&this.websocket.send(ed)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(en,ei,eo){return websocket_provider_awaiter(this,void 0,void 0,function*(){let ea=this._subIds[en];null==ea&&(ea=Promise.all(ei).then(en=>this.send("eth_subscribe",en)),this._subIds[en]=ea);let es=yield ea;this._subs[es]={tag:en,processFunc:eo}})}_startEvent(en){switch(en.type){case"block":this._subscribe("block",["newHeads"],en=>{let ei=eb.O$.from(en.number).toNumber();this._emitted.block=ei,this.emit("block",ei)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],en=>{this.emit("pending",en)});break;case"filter":this._subscribe(en.tag,["logs",this._getFilter(en.filter)],ei=>{null==ei.removed&&(ei.removed=!1),this.emit(en.filter,this.formatter.filterLog(ei))});break;case"tx":{let emitReceipt=en=>{let ei=en.hash;this.getTransactionReceipt(ei).then(en=>{en&&this.emit(ei,en)})};emitReceipt(en),this._subscribe("tx",["newHeads"],en=>{this._events.filter(en=>"tx"===en.type).forEach(emitReceipt)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",en)}}_stopEvent(en){let ei=en.tag;if("tx"===en.type){if(this._events.filter(en=>"tx"===en.type).length)return;ei="tx"}else if(this.listenerCount(en.event))return;let eo=this._subIds[ei];eo&&(delete this._subIds[ei],eo.then(en=>{this._subs[en]&&(delete this._subs[en],this.send("eth_unsubscribe",[en]))}))}destroy(){return websocket_provider_awaiter(this,void 0,void 0,function*(){this.websocket.readyState===tn.CONNECTING&&(yield new Promise(en=>{this.websocket.onopen=function(){en(!0)},this.websocket.onerror=function(){en(!1)}})),this.websocket.close(1e3)})}};var url_json_rpc_provider_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let tc=new eA.Logger(eK);let StaticJsonRpcProvider=class StaticJsonRpcProvider extends JsonRpcProvider{detectNetwork(){let en=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return url_json_rpc_provider_awaiter(this,void 0,void 0,function*(){let ei=this.network;return null==ei&&((ei=yield en.detectNetwork.call(this))||tc.throwError("no network detected",eA.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,e_.defineReadOnly)(this,"_network",ei),this.emit("network",ei,null))),ei})}};let UrlJsonRpcProvider=class UrlJsonRpcProvider extends StaticJsonRpcProvider{constructor(en,ei){tc.checkAbstract(new.target,UrlJsonRpcProvider),en=(0,e_.getStatic)(new.target,"getNetwork")(en),ei=(0,e_.getStatic)(new.target,"getApiKey")(ei);let eo=(0,e_.getStatic)(new.target,"getUrl")(en,ei);super(eo,en),"string"==typeof ei?(0,e_.defineReadOnly)(this,"apiKey",ei):null!=ei&&Object.keys(ei).forEach(en=>{(0,e_.defineReadOnly)(this,en,ei[en])})}_startPending(){tc.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(en){return tc.throwError("API provider does not support signing",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(en){return en}static getUrl(en,ei){return tc.throwError("not implemented; sub-classes must override getUrl",eA.Logger.errors.NOT_IMPLEMENT
4ED,{operation:"getUrl"})}};let tu=new eA.Logger(eK),tf="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";let AlchemyWebSocketProvider=class AlchemyWebSocketProvider extends WebSocketProvider{constructor(en,ei){let eo=new AlchemyProvider(en,ei),ea=eo.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(ea,eo.network),(0,e_.defineReadOnly)(this,"apiKey",eo.apiKey)}isCommunityResource(){return this.apiKey===tf}};let AlchemyProvider=class AlchemyProvider extends UrlJsonRpcProvider{static getWebSocketProvider(en,ei){return new AlchemyWebSocketProvider(en,ei)}static getApiKey(en){return null==en?tf:(en&&"string"!=typeof en&&tu.throwArgumentError("invalid apiKey","apiKey",en),en)}static getUrl(en,ei){let eo=null;switch(en.name){case"homestead":eo="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":eo="eth-goerli.g.alchemy.com/v2/";break;case"matic":eo="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":eo="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":eo="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":eo="arb-goerli.g.alchemy.com/v2/";break;case"optimism":eo="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":eo="opt-goerli.g.alchemy.com/v2/";break;default:tu.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+eo+ei,throttleCallback:(en,eo)=>(ei===tf&&showThrottleMessage(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===tf}};let tp=new eA.Logger(eK),th="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function getHost(en){switch(en){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return tp.throwArgumentError("unsupported network","name",en)}let AnkrProvider=class AnkrProvider extends UrlJsonRpcProvider{isCommunityResource(){return this.apiKey===th}static getApiKey(en){return null==en?th:en}static getUrl(en,ei){null==ei&&(ei=th);let eo={allowGzip:!0,url:"https://"+getHost(en.name)+ei,throttleCallback:(en,eo)=>(ei.apiKey===th&&showThrottleMessage(),Promise.resolve(!0))};return null!=ei.projectSecret&&(eo.user="",eo.password=ei.projectSecret),eo}};var cloudflare_provider_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let tm=new eA.Logger(eK);let CloudflareProvider=class CloudflareProvider extends UrlJsonRpcProvider{static getApiKey(en){return null!=en&&tm.throwArgumentError("apiKey not supported for cloudflare","apiKey",en),null}static getUrl(en,ei){let eo=null;return"homestead"===en.name?eo="https://cloudflare-eth.com/":tm.throwArgumentError("unsupported network","network",arguments[0]),eo}perform(en,ei){let eo=Object.create(null,{perform:{get:()=>super.perform}});return cloudflare_provider_awaiter(this,void 0,void 0,function*(){if("getBlockNumber"===en){let en=yield eo.perform.call(this,"getBlock",{blockTag:"latest"});return en.number}return eo.perform.call(this,en,ei)})}};var etherscan_provider_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let tg=new eA.Logger(eK);function getTransactionPostData(en){let ei={};for(let eo in en){if(null==en[eo])continue;let ea=en[eo];("type"!==eo||0!==ea)&&(ea=({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[eo]?(0,eS.hexValue)((0,eS.hexlify)(ea)):"accessList"===eo?"["+(0,eR.accessListify)(ea).map(e
4n=>`{address:"${en.address}",storageKeys:["${en.storageKeys.join('","')}"]}`).join(",")+"]":(0,eS.hexlify)(ea),ei[eo]=ea)}return ei}function etherscan_provider_getResult(en){if(0==en.status&&("No records found"===en.message||"No transactions found"===en.message))return en.result;if(1!=en.status||"string"!=typeof en.message||!en.message.match(/^OK/)){let ei=Error("invalid response");throw ei.result=JSON.stringify(en),(en.result||"").toLowerCase().indexOf("rate limit")>=0&&(ei.throttleRetry=!0),ei}return en.result}function getJsonResult(en){if(en&&0==en.status&&"NOTOK"==en.message&&(en.result||"").toLowerCase().indexOf("rate limit")>=0){let ei=Error("throttled response");throw ei.result=JSON.stringify(en),ei.throttleRetry=!0,ei}if("2.0"!=en.jsonrpc){let ei=Error("invalid response");throw ei.result=JSON.stringify(en),ei}if(en.error){let ei=Error(en.error.message||"unknown error");throw en.error.code&&(ei.code=en.error.code),en.error.data&&(ei.data=en.error.data),ei}return en.result}function checkLogTag(en){if("pending"===en)throw Error("pending not supported");return"latest"===en?en:parseInt(en.substring(2),16)}function etherscan_provider_checkError(en,ei,eo){if("call"===en&&ei.code===eA.Logger.errors.SERVER_ERROR){let en=ei.error;if(en&&(en.message.match(/reverted/i)||en.message.match(/VM execution error/i))){let eo=en.data;if(eo&&(eo="0x"+eo.replace(/^.*0x/i,"")),(0,eS.isHexString)(eo))return eo;tg.throwError("missing revert data in call exception",eA.Logger.errors.CALL_EXCEPTION,{error:ei,data:"0x"})}}let ea=ei.message;throw ei.code===eA.Logger.errors.SERVER_ERROR&&(ei.error&&"string"==typeof ei.error.message?ea=ei.error.message:"string"==typeof ei.body?ea=ei.body:"string"==typeof ei.responseText&&(ea=ei.responseText)),(ea=(ea||"").toLowerCase()).match(/insufficient funds/)&&tg.throwError("insufficient funds for intrinsic transaction cost",eA.Logger.errors.INSUFFICIENT_FUNDS,{error:ei,method:en,transaction:eo}),ea.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&tg.throwError("nonce has already been used",eA.Logger.errors.NONCE_EXPIRED,{error:ei,method:en,transaction:eo}),ea.match(/another transaction with same nonce/)&&tg.throwError("replacement fee too low",eA.Logger.errors.REPLACEMENT_UNDERPRICED,{error:ei,method:en,transaction:eo}),ea.match(/execution failed due to an exception|execution reverted/)&&tg.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",eA.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:ei,method:en,transaction:eo}),ei}let EtherscanProvider=class EtherscanProvider extends BaseProvider{constructor(en,ei){super(en),(0,e_.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,e_.defineReadOnly)(this,"apiKey",ei||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return tg.throwArgumentError("unsupported network","network",this.network.name)}getUrl(en,ei){let eo=Object.keys(ei).reduce((en,eo)=>{let ea=ei[eo];return null!=ea&&(en+=`&${eo}=${ea}`),en},""),ea=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${en}${eo}${ea}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(en,ei){return ei.module=en,ei.apikey=this.apiKey,ei}fetch(en,ei,eo){return etherscan_provider_awaiter(this,void 0,void 0,function*(){let ea=eo?this.getPostUrl():this.getUrl(en,ei),es=eo?this.getPostData(en,ei):null,ed="proxy"===en?getJsonResult:etherscan_provider_getResult;this.emit("debug",{action:"request",request:ea,provider:this});let eu={url:ea,throttleSlotInterval:1e3,throttleCallback:(en,ei)=>(this.isCommunityResource()&&showThrottleMessage(),Promise.resolve(!0))},ef=null;es&&(eu.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},ef=Object.keys(es).map(en=>`${en}=${es[en]}`).join("&"));let ep=yield(0,eW.fetchJson)(eu,ef,ed||getJsonResult);
4return this.emit("debug",{action:"response",request:ea,response:(0,e_.deepCopy)(ep),provider:this}),ep})}detectNetwork(){return etherscan_provider_awaiter(this,void 0,void 0,function*(){return this.network})}perform(en,ei){let eo=Object.create(null,{perform:{get:()=>super.perform}});return etherscan_provider_awaiter(this,void 0,void 0,function*(){switch(en){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:ei.address,tag:ei.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:ei.address,tag:ei.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:ei.address,tag:ei.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:ei.address,position:ei.position,tag:ei.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:ei.signedTransaction},!0).catch(en=>etherscan_provider_checkError("sendTransaction",en,ei.signedTransaction));case"getBlock":if(ei.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:ei.blockTag,boolean:ei.includeTransactions?"true":"false"});throw Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:ei.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:ei.transactionHash});case"call":{if("latest"!==ei.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let en=getTransactionPostData(ei.transaction);en.module="proxy",en.action="eth_call";try{return yield this.fetch("proxy",en,!0)}catch(en){return etherscan_provider_checkError("call",en,ei.transaction)}}case"estimateGas":{let en=getTransactionPostData(ei.transaction);en.module="proxy",en.action="eth_estimateGas";try{return yield this.fetch("proxy",en,!0)}catch(en){return etherscan_provider_checkError("estimateGas",en,ei.transaction)}}case"getLogs":{let en={action:"getLogs"};if(ei.filter.fromBlock&&(en.fromBlock=checkLogTag(ei.filter.fromBlock)),ei.filter.toBlock&&(en.toBlock=checkLogTag(ei.filter.toBlock)),ei.filter.address&&(en.address=ei.filter.address),ei.filter.topics&&ei.filter.topics.length>0&&(ei.filter.topics.length>1&&tg.throwError("unsupported topic count",eA.Logger.errors.UNSUPPORTED_OPERATION,{topics:ei.filter.topics}),1===ei.filter.topics.length)){let eo=ei.filter.topics[0];("string"!=typeof eo||66!==eo.length)&&tg.throwError("unsupported topic format",eA.Logger.errors.UNSUPPORTED_OPERATION,{topic0:eo}),en.topic0=eo}let eo=yield this.fetch("logs",en),ea={};for(let en=0;en<eo.length;en++){let ei=eo[en];if(null==ei.blockHash){if(null==ea[ei.blockNumber]){let en=yield this.getBlock(ei.blockNumber);en&&(ea[ei.blockNumber]=en.hash)}ei.blockHash=ea[ei.blockNumber]}}return eo}case"getEtherPrice":if("homestead"!==this.network.name)return 0;return parseFloat((yield this.fetch("stats",{action:"ethprice"})).ethusd)}return eo.perform.call(this,en,ei)})}getHistory(en,ei,eo){return etherscan_provider_awaiter(this,void 0,void 0,function*(){let ea={action:"txlist",address:yield this.resolveName(en),startblock:null==ei?0:ei,endblock:null==eo?99999999:eo,sort:"asc"},es=yield this.fetch("account",ea);return es.map(en=>{["contractAddress","to"].forEach(function(ei){""==en[ei]&&delete en[ei]}),null==en.creates&&null!=en.contractAddress&&(en.creates=en.contractAddress);let ei=this.formatter.transactionResponse(en);return en.timeStamp&&(ei.timestamp=parseInt(en.timeStamp)),ei})})}isCommunityResource(){return null==this.apiKey}};var ty=eo(52472),fallback_provider_awaiter=function(en,ei,eo,ea){function adopt(en){return en instanceof eo?en:new eo(function(ei){ei(en)})}return new(eo||(eo=Promise))(function(eo,es){function fulfilled(en){try{step(ea.next(en))}catch(en){es(en)}}function rejected(en){try{step(ea.throw(en))}catch(en){es(en)}}function step(en){en.done?eo(en.value):adopt(en.value).then(fulfilled,rejected)}step((ea=ea.apply(en,ei||[])).next())})};let tv=new eA.Logger(eK);function now(){return new Date().getTime()}function checkNetworks(en){let ei=null;for(let eo=0;eo<en.length;eo++){let ea=en[eo];if(null==ea)return null;ei?ei.name===ea.name&&ei.chainId===ea.chainId&&(ei.ensAddress===ea.ensAddress||null==e
4i.ensAddress&&null==ea.ensAddress)||tv.throwArgumentError("provider mismatch","networks",en):ei=ea}return ei}function median(en,ei){en=en.slice().sort();let eo=Math.floor(en.length/2);if(en.length%2)return en[eo];let ea=en[eo-1],es=en[eo];return null!=ei&&Math.abs(ea-es)>ei?null:(ea+es)/2}function serialize(en){if(null===en)return"null";if("number"==typeof en||"boolean"==typeof en)return JSON.stringify(en);if("string"==typeof en)return en;if(eb.O$.isBigNumber(en))return en.toString();if(Array.isArray(en))return JSON.stringify(en.map(en=>serialize(en)));if("object"==typeof en){let ei=Object.keys(en);return ei.sort(),"{"+ei.map(ei=>{let eo=en[ei];return eo="function"==typeof eo?"[function]":serialize(eo),JSON.stringify(ei)+":"+eo}).join(",")+"}"}throw Error("unknown value type: "+typeof en)}let tS=1;function fallback_provider_stall(en){let ei=null,eo=null,ea=new Promise(ea=>{eo=setTimeout(ei=function(){eo&&(clearTimeout(eo),eo=null),ea()},en)}),wait=en=>ea=ea.then(en);return{cancel:ei,getPromise:function(){return ea},wait}}let t_=[eA.Logger.errors.CALL_EXCEPTION,eA.Logger.errors.INSUFFICIENT_FUNDS,eA.Logger.errors.NONCE_EXPIRED,eA.Logger.errors.REPLACEMENT_UNDERPRICED,eA.Logger.errors.UNPREDICTABLE_GAS_LIMIT],tR=["address","args","errorArgs","errorSignature","method","transaction"];function exposeDebugConfig(en,ei){let eo={weight:en.weight};return Object.defineProperty(eo,"provider",{get:()=>en.provider}),en.start&&(eo.start=en.start),ei&&(eo.duration=ei-en.start),en.done&&(en.error?eo.error=en.error:eo.result=en.result||null),eo}function normalizedTally(en,ei){return function(eo){let ea={};eo.forEach(ei=>{let eo=en(ei.result);ea[eo]||(ea[eo]={count:0,result:ei.result}),ea[eo].count++});let es=Object.keys(ea);for(let en=0;en<es.length;en++){let eo=ea[es[en]];if(eo.count>=ei)return eo.result}}}function getProcessFunc(en,ei,eo){let ea=serialize;switch(ei){case"getBlockNumber":return function(ei){let eo=ei.map(en=>en.result),ea=median(ei.map(en=>en.result),2);if(null!=ea)return ea=Math.ceil(ea),eo.indexOf(ea+1)>=0&&ea++,ea>=en._highestBlockNumber&&(en._highestBlockNumber=ea),en._highestBlockNumber};case"getGasPrice":return function(en){let ei=en.map(en=>en.result);return ei.sort(),ei[Math.floor(ei.length/2)]};case"getEtherPrice":return function(en){return median(en.map(en=>en.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":ea=function(en){return null==en?null:((en=(0,e_.shallowCopy)(en)).confirmations=-1,serialize(en))};break;case"getBlock":ea=eo.includeTransactions?function(en){return null==en?null:((en=(0,e_.shallowCopy)(en)).transactions=en.transactions.map(en=>((en=(0,e_.shallowCopy)(en)).confirmations=-1,en)),serialize(en))}:function(en){return null==en?null:serialize(en)};break;default:throw Error("unknown method: "+ei)}return normalizedTally(ea,en.quorum)}function waitForSync(en,ei){return fallback_provider_awaiter(this,void 0,void 0,function*(){let eo=en.provider;return null!=eo.blockNumber&&eo.blockNumber>=ei||-1===ei?eo:(0,eW.poll)(()=>new Promise((ea,es)=>{setTimeout(function(){return eo.blockNumber>=ei?ea(eo):en.cancelled?ea(null):ea(void 0)},0)}),{oncePoll:eo})})}function getRunner(en,ei,eo,ea){return fallback_provider_awaiter(this,void 0,void 0,function*(){let es=en.provider;switch(eo){case"getBlockNumber":case"getGasPrice":return es[eo]();case"getEtherPrice":if(es.getEtherPrice)return es.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return ea.blockTag&&(0,eS.isHexString)(ea.blockTag)&&(es=yield waitForSync(en,ei)),es[eo](ea.address,ea.blockTag||"latest");case"getStorageAt":return ea.blockTag&&(0,eS.isHexString)(ea.blockTag)&&(es=yield waitForSync(en,ei)),es.getStorageAt(ea.address,ea.position,ea.blockTag||"latest");case"getBlock":return ea.blockTag&&(0,eS.isHexString)(ea.blockTag)&&(es=yield waitForSync(en,ei)),es[ea.includeTransactions?"getBlockWithTransactions":"getBlock"](ea.blockTag||ea.blockHash);case"call":case"estimateGas":if(ea.blockTag&&(0,eS.isHexString)(ea.blockTag)&&(es=yield waitForSync(en,ei)),"call"===eo&&ea.blockTag)return es[eo](ea.transaction,ea.blockTag);return es[eo](ea.transaction);case"getTransaction":case"getTransactionReceipt":return es[eo](ea.transactionHash);case"getLogs":{let eo=ea.filter;return(eo.fromBlock&&(0,eS.isHexString)(eo.fromBlock)||eo.toBlock&&(0,eS.isHexString)(eo.toBlock))&&(es=yield waitForSync(en,ei)),es.getLogs(eo)}}return tv.throwError("unknown method error",eA.Logger.errors.UNKNOWN_ERROR,{method:eo,params:ea})})}let FallbackProvider=class FallbackProvider extends BaseProvider{constructor(en,ei){0===e
4n.length&&tv.throwArgumentError("missing providers","providers",en);let eo=en.map((en,ei)=>{if(em.zt.isProvider(en)){let ei=isCommunityResource(en)?2e3:750,eo=1;return Object.freeze({provider:en,weight:1,stallTimeout:ei,priority:eo})}let eo=(0,e_.shallowCopy)(en);null==eo.priority&&(eo.priority=1),null==eo.stallTimeout&&(eo.stallTimeout=isCommunityResource(en)?2e3:750),null==eo.weight&&(eo.weight=1);let ea=eo.weight;return(ea%1||ea>512||ea<1)&&tv.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${ei}].weight`,ea),Object.freeze(eo)}),ea=eo.reduce((en,ei)=>en+ei.weight,0);null==ei?ei=ea/2:ei>ea&&tv.throwArgumentError("quorum will always fail; larger than total weight","quorum",ei);let es=checkNetworks(eo.map(en=>en.provider.network));null==es&&(es=new Promise((en,ei)=>{setTimeout(()=>{this.detectNetwork().then(en,ei)},0)})),super(es),(0,e_.defineReadOnly)(this,"providerConfigs",Object.freeze(eo)),(0,e_.defineReadOnly)(this,"quorum",ei),this._highestBlockNumber=-1}detectNetwork(){return fallback_provider_awaiter(this,void 0,void 0,function*(){let en=yield Promise.all(this.providerConfigs.map(en=>en.provider.getNetwork()));return checkNetworks(en)})}perform(en,ei){return fallback_provider_awaiter(this,void 0,void 0,function*(){if("sendTransaction"===en){let en=yield Promise.all(this.providerConfigs.map(en=>en.provider.sendTransaction(ei.signedTransaction).then(en=>en.hash,en=>en)));for(let ei=0;ei<en.length;ei++){let eo=en[ei];if("string"==typeof eo)return eo}throw en[0]}-1===this._highestBlockNumber&&"getBlockNumber"!==en&&(yield this.getBlockNumber());let eo=getProcessFunc(this,en,ei),ea=(0,ty.y)(this.providerConfigs.map(e_.shallowCopy));ea.sort((en,ei)=>en.priority-ei.priority);let es=this._highestBlockNumber,ed=0,eu=!0;for(;;){let ef=now(),ep=ea.filter(en=>en.runner&&ef-en.start<en.stallTimeout).reduce((en,ei)=>en+ei.weight,0);for(;ep<this.quorum&&ed<ea.length;){let eo=ea[ed++],eu=tS++;eo.start=now(),eo.staller=fallback_provider_stall(eo.stallTimeout),eo.staller.wait(()=>{eo.staller=null}),eo.runner=getRunner(eo,es,en,ei).then(ea=>{eo.done=!0,eo.result=ea,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:eu,backend:exposeDebugConfig(eo,now()),request:{method:en,params:(0,e_.deepCopy)(ei)},provider:this})},ea=>{eo.done=!0,eo.error=ea,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:eu,backend:exposeDebugConfig(eo,now()),request:{method:en,params:(0,e_.deepCopy)(ei)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:eu,backend:exposeDebugConfig(eo,null),request:{method:en,params:(0,e_.deepCopy)(ei)},provider:this}),ep+=eo.weight}let em=[];ea.forEach(en=>{!en.done&&en.runner&&(em.push(en.runner),en.staller&&em.push(en.staller.getPromise()))}),em.length&&(yield Promise.race(em));let eg=ea.filter(en=>en.done&&null==en.error);if(eg.length>=this.quorum){let en=eo(eg);if(void 0!==en)return ea.forEach(en=>{en.staller&&en.staller.cancel(),en.cancelled=!0}),en;eu||(yield fallback_provider_stall(100).getPromise()),eu=!1}let ey=ea.reduce((en,ei)=>{if(!ei.done||null==ei.error)return en;let eo=ei.error.code;return t_.indexOf(eo)>=0&&(en[eo]||(en[eo]={error:ei.error,weight:0}),en[eo].weight+=ei.weight),en},{});if(Object.keys(ey).forEach(en=>{let ei=ey[en];if(ei.weight<this.quorum)return;ea.forEach(en=>{en.staller&&en.staller.cancel(),en.cancelled=!0});let eo=ei.error,es={};tR.forEach(en=>{null!=eo[en]&&(es[en]=eo[en])}),tv.throwError(eo.reason||eo.message,en,es)}),0===ea.filter(en=>!en.done).length)break}return ea.forEach(en=>{en.staller&&en.staller.cancel(),en.cancelled=!0}),tv.throwError("failed to meet quorum",eA.Logger.errors.SERVER_ERROR,{method:en,params:ei,results:ea.map(en=>exposeDebugConfig(en)),provider:this})})}};let tA=null,tw=new eA.Logger(eK),tO="84842078b09946638c03157f83405213";let InfuraWebSocketProvider=class InfuraWebSocketProvider extends WebSocketProvider{constructor(en,ei){let eo=new InfuraProvider(en,ei),ea=eo.connection;ea.password&&tw.throwError("INFURA WebSocket project secrets unsupported",eA.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});let es=ea.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(es,en),(0,e_.defineReadOnly)(this,"apiKey",eo.projectId),(0,e_.defineReadOnly)(this,"projectId",eo.projectId),(0,e_.defineReadOnly)(this,"projectSecret",eo.projectSecret)}isCommunityResource(){return this.projectId===tO}};let InfuraProvider=class InfuraProvider extends UrlJsonRpcProvider{static getWebSocketProvider(en,ei){return new InfuraWebSocketProvider(en,ei)}static getApiKey(en){let ei={apiKey:tO,projectId:tO,projectSecret:null};return null==en||("string"==typeof en?ei.projectId=en:null!=en.projectSecret?(tw.assertArgument("string"==typeof en.projectId,"projectSecret requires a projectId","projectId",en.projectId),tw.assertArgument("string"==typeof en.projectSecret,"invali
4d projectSecret","projectSecret","[REDACTED]"),ei.projectId=en.projectId,ei.projectSecret=en.projectSecret):en.projectId&&(ei.projectId=en.projectId),ei.apiKey=ei.projectId),ei}static getUrl(en,ei){let eo=null;switch(en?en.name:"unknown"){case"homestead":eo="mainnet.infura.io";break;case"goerli":eo="goerli.infura.io";break;case"sepolia":eo="sepolia.infura.io";break;case"matic":eo="polygon-mainnet.infura.io";break;case"maticmum":eo="polygon-mumbai.infura.io";break;case"optimism":eo="optimism-mainnet.infura.io";break;case"optimism-goerli":eo="optimism-goerli.infura.io";break;case"arbitrum":eo="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":eo="arbitrum-goerli.infura.io";break;default:tw.throwError("unsupported network",eA.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:en})}let ea={allowGzip:!0,url:"https://"+eo+"/v3/"+ei.projectId,throttleCallback:(en,eo)=>(ei.projectId===tO&&showThrottleMessage(),Promise.resolve(!0))};return null!=ei.projectSecret&&(ea.user="",ea.password=ei.projectSecret),ea}isCommunityResource(){return this.projectId===tO}};let JsonRpcBatchProvider=class JsonRpcBatchProvider extends JsonRpcProvider{send(en,ei){let eo={method:en,params:ei,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let ea={request:eo,resolve:null,reject:null},es=new Promise((en,ei)=>{ea.resolve=en,ea.reject=ei});return this._pendingBatch.push(ea),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let en=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let ei=en.map(en=>en.request);return this.emit("debug",{action:"requestBatch",request:(0,e_.deepCopy)(ei),provider:this}),(0,eW.fetchJson)(this.connection,JSON.stringify(ei)).then(eo=>{this.emit("debug",{action:"response",request:ei,response:eo,provider:this}
4),en.forEach((en,ei)=>{let ea=eo[ei];if(ea.error){let ei=Error(ea.error.message);ei.code=ea.error.code,ei.data=ea.error.data,en.reject(ei)}else en.resolve(ea.result)})},eo=>{this.emit("debug",{action:"response",error:eo,request:ei,provider:this}),en.forEach(en=>{en.reject(eo)})})},10)),es}};let tE=new eA.Logger(eK),tP="ETHERS_JS_SHARED";let NodesmithProvider=class NodesmithProvider extends UrlJsonRpcProvider{static getApiKey(en){return en&&"string"!=typeof en&&tE.throwArgumentError("invalid apiKey","apiKey",en),en||tP}static getUrl(en,ei){tE.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let eo=null;switch(en.name){case"homestead":eo="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":eo="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":eo="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":eo="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":eo="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:tE.throwArgumentError("unsupported network","network",arguments[0])}return eo+"?apiKey="+ei}};let tC=new eA.Logger(eK),tT="62e1ad51b37b8e00394bda3b";let PocketProvider=class PocketProvider extends UrlJsonRpcProvider{static getApiKey(en){let ei={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==en?ei.applicationId=tT:"string"==typeof en?ei.applicationId=en:null!=en.applicationSecretKey?(ei.applicationId=en.applicationId,ei.applicationSecretKey=en.applicationSecretKey):en.applicationId?ei.applicationId=en.applicationId:tC.throwArgumentError("unsupported PocketProvider apiKey","apiKey",en),ei}static getUrl(en,ei){let eo=null;switch(en?en.name:"unknown"){case"goerli":eo="eth-goerli.gateway.pokt.network";break;case"homestead":eo="eth-mainnet.gateway.pokt.network";break;case"kovan":eo="poa-kovan.gateway.pokt.network";break;case"matic":eo="poly-mainnet.gateway.pokt.network";break;case"maticmum":eo="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":eo="eth-rinkeby.gateway.pokt.network";break;case"ropsten":eo="eth-ropsten.gateway.pokt.network";break;default:tC.throwError("unsupported network",eA.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:en})}let ea=`https://${eo}/v1/lb/${ei.applicationId}`,es={headers:{},url:ea};return null!=ei.applicationSecretKey&&(es.user="",es.password=ei.applicationSecretKey),es}isCommunityResource(){return this.applicationId===tT}};let tB=new eA.Logger(eK),tN=1;function buildWeb3LegacyFetcher(en,ei){let eo="Web3LegacyFetcher";return function(en,ea){let es={method:en,params:ea,id:tN++,jsonrpc:"2.0"};return new Promise((en,ea)=>{this.emit("debug",{action:"request",fetcher:eo,request:(0,e_.deepCopy)(es),provider:this}),ei(es,(ei,ed)=>{if(ei)return this.emit("debug",{action:"response",fetcher:eo,error:ei,request:es,provider:this}),ea(ei);if(this.emit("debug",{action:"response",fetcher:eo,request:es,response:ed,provider:this}),ed.error){let en=Error(ed.error.message);return en.code=ed.error.code,en.data=ed.error.data,ea(en)}en(ed.result)})})}}function buildEip1193Fetcher(en){return function(ei,eo){null==eo&&(eo=[]);let ea={method:ei,params:eo};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,e_.deepCopy)(ea),provider:this}),en.request(ea).then(en=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:ea,response:en,provider:this}),en),en=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:ea,error:en,provider:this}),en})}}let Web3Provider=class Web3Provider extends JsonRpcProvider{constructor(en,ei){null==en&&tB.throwArgumentError("missing provider","provider",en);let eo=null,ea=null,es=null;"function"==typeof en?(eo="unknown:",ea=en):((eo=en.host||en.path||"")||!en.isMetaMask||(eo="metamask"),es=en,en.request?(""===eo&&(eo="eip-1193:"),ea=buildEip1193Fetcher(en)):en.sendAsync?ea=buildWeb3LegacyFetcher(en,en.sendAsync.bind(en)):en.send?ea=buildWeb3LegacyFetcher(en,en.send.bind(en)):tB.throwArgumentError("unsupported provider","provider",en),eo||(eo="unknown:")),super(eo,ei),(0,e_.defineReadOnly)(this,"jsonRpcFetchFunc",ea),(0,e_.defineReadOnly)(this,"provider",es)}send(en,ei){return this.jsonRpcFetchFunc(en,ei)}};let tI=new eA.Logger(eK);
4function getDefaultProvider(en,ei){if(null==en&&(en="homestead"),"string"==typeof en){let ei=en.match(/^(ws|http)s?:/i);if(ei)switch(ei[1].toLowerCase()){case"http":case"https":return new JsonRpcProvider(en);case"ws":case"wss":return new WebSocketProvider(en);default:tI.throwArgumentError("unsupported URL scheme","network",en)}}let eo=getNetwork(en);return eo&&eo._defaultProvider||tI.throwError("unsupported getDefaultProvider network",eA.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:en}),eo._defaultProvider({FallbackProvider:FallbackProvider,AlchemyProvider:AlchemyProvider,AnkrProvider:AnkrProvider,CloudflareProvider:CloudflareProvider,EtherscanProvider:EtherscanProvider,InfuraProvider:InfuraProvider,JsonRpcProvider:JsonRpcProvider,NodesmithProvider:NodesmithProvider,PocketProvider:PocketProvider,Web3Provider:Web3Provider,IpcProvider:tA},ei)}var tM=eo(10234),tD=eo(48812),tU=eo(84243),tL=eo(11388),tJ=eo(4089),tF=eo(93684),tH=eo(32046),tq=eo(84178),tj=eo(67949),tV=eo(38197),tW=eo(31886),tG=eo(5634),tQ=eo(59052),tK=eo(67669),tZ=eo(35637),tz=eo(86237),tY=eo(61744),t$=eo(21261);let tX="ethers/5.7.2",t3=new eA.Logger(tX);try{let en=window;null==en._ethers&&(en._ethers=eu)}catch(en){}},56371:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo),Object.defineProperty(en,ea,{enumerable:!0,get:function(){return ei[eo]}})}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei};Object.defineProperty(ei,"__esModule",{value:!0}),ei.formatBytes32String=ei.Utf8ErrorFuncs=ei.toUtf8String=ei.toUtf8CodePoints=ei.toUtf8Bytes=ei._toEscapedUtf8String=ei.nameprep=ei.hexDataSlice=ei.hexDataLength=ei.hexZeroPad=ei.hexValue=ei.hexStripZeros=ei.hexConcat=ei.isHexString=ei.hexlify=ei.base64=ei.base58=ei.TransactionDescription=ei.LogDescription=ei.Interface=ei.SigningKey=ei.HDNode=ei.defaultPath=ei.isBytesLike=ei.isBytes=ei.zeroPad=ei.stripZeros=ei.concat=ei.arrayify=ei.shallowCopy=ei.resolveProperties=ei.getStatic=ei.defineReadOnly=ei.deepCopy=ei.checkProperties=ei.poll=ei.fetchJson=ei._fetchData=ei.RLP=ei.Logger=ei.checkResultErrors=ei.FormatTypes=ei.ParamType=ei.FunctionFragment=ei.EventFragment=ei.ErrorFragment=ei.ConstructorFragment=ei.Fragment=ei.defaultAbiCoder=ei.AbiCoder=void 0,ei.Indexed=ei.Utf8ErrorReason=ei.UnicodeNormalizationForm=ei.SupportedAlgorithm=ei.mnemonicToSeed=ei.isValidMnemonic=ei.entropyToMnemonic=ei.mnemonicToEntropy=ei.getAccountPath=ei.verifyTypedData=ei.verifyMessage=ei.recoverPublicKey=ei.computePublicKey=ei.recoverAddress=ei.computeAddress=ei.getJsonWalletAddress=ei.TransactionTypes=ei.serializeTransaction=ei.parseTransaction=ei.accessListify=ei.joinSignature=ei.splitSignature=ei.soliditySha256=ei.solidityKeccak256=ei.solidityPack=ei.shuffled=ei.randomBytes=ei.sha512=ei.sha256=ei.ripemd160=ei.keccak256=ei.computeHmac=ei.commify=ei.parseUnits=ei.formatUnits=ei.parseEther=ei.formatEther=ei.isAddress=ei.getCreate2Address=ei.getContractAddress=ei.getIcapAddress=ei.getAddress=ei._TypedDataEncoder=ei.id=ei.isValidName=ei.namehash=ei.hashMessage=ei.dnsEncode=ei.parseBytes32String=void 0;var eu=eo(83893);Object.defineProperty(ei,"AbiCoder",{enumerable:!0,get:function(){return eu.AbiCoder}}),Object.defineProperty(ei,"checkResultErrors",{enumerable:!0,get:function(){return eu.checkResultErrors}}),Object.defineProperty(ei,"ConstructorFragment",{enumerable:!0,get:function(){return eu.ConstructorFragment}}),Object.defineProperty(ei,"defaultAbiCoder",{enumerable:!0,get:function(){return eu.defaultAbiCoder}}),Object.defineProperty(ei,"ErrorFragment",{enumerable:!0,get:function(){return eu.ErrorFragment}}),Object.defineProperty(ei,"EventFragment",{enumerable:!0,get:function(){return eu.EventFragment}}),Object.defineProperty(ei,"FormatTypes",{enumerable:!0,get:function(){return eu.FormatTypes}}),Object.defineProperty(ei,"Fragment",{enumerable:!0,get:function(){return eu.Fragment}}),Object.defineProperty(ei,"FunctionFragment",{enumerable:!0,get:function(){return eu.FunctionFragment}}),Object.defineProperty(ei,"Indexed",{enumerable:!0,get:function(){return eu.Indexed}}),Object.defineProperty(ei,"Interface",{enumerable:!0,get:function(){return eu.Interface}}),Object.defineProperty(ei,"LogDescription",{enumerable:!0,get:function(){return eu.LogDescription}}),Object.defineProperty(ei,"ParamType",{enumerable:!0,get:function(){return eu.ParamType}}),Object.defineProperty(ei,"TransactionDescription",{enumerable:!0,get:function(){return eu.TransactionDescription}});var ef=eo(52004);Object.defineProperty(ei,"getAddress",{enumerable:!0,get:function(){return ef.getAddress}}),Object.defineProperty(ei,"getCreate2Address",{enumerable:!0,get:function(){return ef.getCreate2Address}}),Object.defineProperty(ei,"getContractAddress",{enumerable:!0,get:function(){return ef.getContractAddress}}),Object.defineProperty(ei,"getIcapAddress",{enumerable:!0,get:function(){return ef.getIcapAddress}}),Object.defineProperty(ei,"isAddress",{enumerable:!0,get:function(){return ef.isAddress}});var ep=ed(eo(4089));ei.base64=ep;var em=eo(57727);Object.defineProperty(ei,"base58",{enumerable:!0,get:function(){return em.Base58}});var eg=eo(16441);Object.defineProperty(ei,"arrayify",{enumerable:!0,get:function(){return eg.arrayify}}),Object.defineProperty(ei,"concat",{enumerable:!0,get:function(){return eg.concat}}),Object.defineProperty(ei,"hexConcat",{enumerable:!0,get:function(){return eg.hexConcat}}),Object.defineProperty(ei,"hexDataSlice",{enumerable:!0,get:function(){return eg.hexDataSlice}}),Object.defineProperty(ei,"hexDataLength",{enumerable:!0,get:function(){return eg.hexDataLength}}),Object.defineProperty(ei,"hexlify",{enumerable:!0,get:function(){return eg.hexlify}}),Object.defineProperty(ei,"hexStripZeros",{enumerable:!0,get:function(){return eg.hexStripZeros}}),Object.defineProperty(ei,"hexValue",{enumerable:!0,get:function(){return eg.hexValue}}),Object.defineProperty(ei,"hexZeroPad",{enumerable:!0,get:function(){return eg.hexZeroPad}}),Object.defineProperty(ei,"isBytes",{enumerable:!0,get:function(){return eg.isBytes}}),Object.defineProperty(ei,"isBytesLike",{enumerable:!0,get:function(){return eg.isBytesLike}}),Object.defineProperty(ei,"isHexString",{enumerable:!0,get:function(){return eg.isHexString}}),Object.defineProperty(ei,"joinSignature",{enumerable:!0,get:function(){return eg.joinSignature}}),Object.defineProperty(ei,"zeroPad",{enumerable:!0,get:function(){return eg.zeroPad}}),Object.defineProperty(ei,"splitSignature",{enumerable:!0,get:function(){return eg.splitSignature}}),Object.defineProperty(ei,"stripZeros",{enumerable:!0,get:function(){return eg.stripZeros}});var ey=eo(75931);Object.defineProperty(ei,"_TypedDataEncoder",{enumerable:!0,get:function(){return ey._TypedDataEncoder}}),Object.defineProperty(ei,"dnsEncode",{enumerable:!0,get:function(){return ey.dnsEncode}}),Object.defineProperty(ei,"hashMessage",{enumerable:!0,get:function(){return ey.hashMessage}}),Object.defineProperty(ei,"id",{enumerable:!0,get:function(){return ey.id}}),Object.defineProperty(ei,"isValidName",{enumerable:!0,get:function(){return ey.isValidName}}),Object.defineProperty(ei,"namehash",{enumerable:!0,get:function(){return ey.namehash}});var eb=eo(84178);Object.defineProperty(ei,"defaultPath",{enumerable:!0,get:function(){return eb.defaultPath}}
4),Object.defineProperty(ei,"entropyToMnemonic",{enumerable:!0,get:function(){return eb.entropyToMnemonic}}),Object.defineProperty(ei,"getAccountPath",{enumerable:!0,get:function(){return eb.getAccountPath}}),Object.defineProperty(ei,"HDNode",{enumerable:!0,get:function(){return eb.HDNode}}),Object.defineProperty(ei,"isValidMnemonic",{enumerable:!0,get:function(){return eb.isValidMnemonic}}),Object.defineProperty(ei,"mnemonicToEntropy",{enumerable:!0,get:function(){return eb.mnemonicToEntropy}}),Object.defineProperty(ei,"mnemonicToSeed",{enumerable:!0,get:function(){return eb.mnemonicToSeed}});var eS=eo(64341);Object.defineProperty(ei,"getJsonWalletAddress",{enumerable:!0,get:function(){return eS.getJsonWalletAddress}});var e_=eo(38197);Object.defineProperty(ei,"keccak256",{enumerable:!0,get:function(){return e_.keccak256}});var eR=eo(1581);Object.defineProperty(ei,"Logger",{enumerable:!0,get:function(){return eR.Logger}});var eA=eo(91278);Object.defineProperty(ei,"computeHmac",{enumerable:!0,get:function(){return eA.computeHmac}}),Object.defineProperty(ei,"ripemd160",{enumerable:!0,get:function(){return eA.ripemd160}}),Object.defineProperty(ei,"sha256",{enumerable:!0,get:function(){return eA.sha256}}),Object.defineProperty(ei,"sha512",{enumerable:!0,get:function(){return eA.sha512}});var ew=eo(31886);Object.defineProperty(ei,"solidityKeccak256",{enumerable:!0,get:function(){return ew.keccak256}}),Object.defineProperty(ei,"solidityPack",{enumerable:!0,get:function(){return ew.pack}}),Object.defineProperty(ei,"soliditySha256",{enumerable:!0,get:function(){return ew.sha256}});var eO=eo(22118);Object.defineProperty(ei,"randomBytes",{enumerable:!0,get:function(){return eO.randomBytes}}),Object.defineProperty(ei,"shuffled",{enumerable:!0,get:function(){return eO.shuffled}});var eE=eo(6881);Object.defineProperty(ei,"checkProperties",{enumerable:!0,get:function(){return eE.checkProperties}}),Object.defineProperty(ei,"deepCopy",{enumerable:!0,get:function(){return eE.deepCopy}}),Object.defineProperty(ei,"defineReadOnly",{enumerable:!0,get:function(){return eE.defineReadOnly}}),Object.defineProperty(ei,"getStatic",{enumerable:!0,get:function(){return eE.getStatic}}),Object.defineProperty(ei,"resolveProperties",{enumerable:!0,get:function(){return eE.resolveProperties}}),Object.defineProperty(ei,"shallowCopy",{enumerable:!0,get:function(){return eE.shallowCopy}});var eP=ed(eo(59052));ei.RLP=eP;var eC=eo(67669);Object.defineProperty(ei,"computePublicKey",{enumerable:!0,get:function(){return eC.computePublicKey}}),Object.defineProperty(ei,"recoverPublicKey",{enumerable:!0,get:function(){return eC.recoverPublicKey}}),Object.defineProperty(ei,"SigningKey",{enumerable:!0,get:function(){return eC.SigningKey}});var eT=eo(62741);Object.defineProperty(ei,"formatBytes32String",{enumerable:!0,get:function(){return eT.formatBytes32String}}),Object.defineProperty(ei,"nameprep",{enumerable:!0,get:function(){return eT.nameprep}}),Object.defineProperty(ei,"parseBytes32String",{enumerable:!0,get:function(){return eT.parseBytes32String}}),Object.defineProperty(ei,"_toEscapedUtf8String",{enumerable:!0,get:function(){return eT._toEscapedUtf8String}}),Object.defineProperty(ei,"toUtf8Bytes",{enumerable:!0,get:function(){return eT.toUtf8Bytes}}),Object.defineProperty(ei,"toUtf8CodePoints",{enumerable:!0,get:function(){return eT.toUtf8CodePoints}}),Object.defineProperty(ei,"toUtf8String",{enumerable:!0,get:function(){return eT.toUtf8String}}),Object.defineProperty(ei,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return eT.Utf8ErrorFuncs}});var eB=eo(83875);Object.defineProperty(ei,"accessListify",{enumerable:!0,get:function(){return eB.accessListify}}),Object.defineProperty(ei,"computeAddress",{enumerable:!0,get:function(){return eB.computeAddress}}),Object.defineProperty(ei,"parseTransaction",{enumerable:!0,get:function(){return eB.parse}}),Object.defineProperty(ei,"recoverAddress",{enumerable:!0,get:function(){return eB.recoverAddress}}),Object.defineProperty(ei,"serializeTransaction",{enumerable:!0,get:function(){return eB.serialize}}),Object.defineProperty(ei,"TransactionTypes",{enumerable:!0,get:function(){return eB.TransactionTypes}});var eN=eo(61744);Object.defineProperty(ei,"commify",{enumerable:!0,get:function(){return eN.commify}}),Object.defineProperty(ei,"formatEther",{enumerable:!0,get:function(){return eN.formatEther}}),Object.defineProperty(ei,"parseEther",{enumerable:!0,get:function(){return eN.parseEther}}),Object.defineProperty(ei,"formatUnits",{enumerable:!0,get:function(){return eN.formatUnits}}),Object.defineProperty(ei,"parseUnits",{enumerable:!0,get:function(){return eN.parseUnits}});var eI=eo(79911);Object.defineProperty(ei,"verifyMessage",{enumerable:!0,get:function(){return eI.verifyMessage}}),Object.defineProperty(ei,"verifyTypedData",{enumerable:!0,get:function(){return eI.verifyTypedData}
4});var ex=eo(37707);Object.defineProperty(ei,"_fetchData",{enumerable:!0,get:function(){return ex._fetchData}}),Object.defineProperty(ei,"fetchJson",{enumerable:!0,get:function(){return ex.fetchJson}}),Object.defineProperty(ei,"poll",{enumerable:!0,get:function(){return ex.poll}});var eM=eo(91278);Object.defineProperty(ei,"SupportedAlgorithm",{enumerable:!0,get:function(){return eM.SupportedAlgorithm}});var eD=eo(62741);Object.defineProperty(ei,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return eD.UnicodeNormalizationForm}}),Object.defineProperty(ei,"Utf8ErrorReason",{enumerable:!0,get:function(){return eD.Utf8ErrorReason}})},94029:function(en,ei,eo){"use strict";var ea=eo(95320),es=Object.prototype.toString,ed=Object.prototype.hasOwnProperty,forEachArray=function(en,ei,eo){for(var ea=0,es=en.length;ea<es;ea++)ed.call(en,ea)&&(null==eo?ei(en[ea],ea,en):ei.call(eo,en[ea],ea,en))},forEachString=function(en,ei,eo){for(var ea=0,es=en.length;ea<es;ea++)null==eo?ei(en.charAt(ea),ea,en):ei.call(eo,en.charAt(ea),ea,en)},forEachObject=function(en,ei,eo){for(var ea in en)ed.call(en,ea)&&(null==eo?ei(en[ea],ea,en):ei.call(eo,en[ea],ea,en))},forEach=function(en,ei,eo){var ed;if(!ea(ei))throw TypeError("iterator must be a function");arguments.length>=3&&(ed=eo),"[object Array]"===es.call(en)?forEachArray(en,ei,ed):"string"==typeof en?forEachString(en,ei,ed):forEachObject(en,ei,ed)};en.exports=forEach},71221:function(en){"use strict";"undefined"!=typeof self?en.exports=self:"undefined"!=typeof window?en.exports=window:en.exports=Function("return this")()},82503:function(en,ei,eo){"use strict";var ea=eo(4289),es=eo(71221),ed=eo(52168),eu=eo(99471),ef=ed(),getGlobal=function(){return ef};ea(getGlobal,{getPolyfill:ed,implementation:es,shim:eu}),en.exports=getGlobal},52168:function(en,ei,eo){"use strict";var ea=eo(71221);en.exports=function(){return"object"==typeof eo.g&&eo.g&&eo.g.Math===Math&&eo.g.Array===Array?eo.g:ea}},99471:function(en,ei,eo){"use strict";var ea=eo(4289),es=eo(52168);en.exports=function(){var en=es();if(ea.supportsDescriptors){var ei=Object.getOwnPropertyDescriptor(en,"globalThis");(!ei||ei.configurable&&(ei.enumerable||!ei.writable||globalThis!==en))&&Object.defineProperty(en,"globalThis",{configurable:!0,enumerable:!1,value:en,writable:!0})}else("object"!=typeof globalThis||globalThis!==en)&&(en.globalThis=en);return en}},96410:function(en,ei,eo){"use strict";var ea=eo(55419);en.exports=function(){return ea()&&!!Symbol.toStringTag}},33715:function(en,ei,eo){var ea=ei;ea.utils=eo(26436),ea.common=eo(95772),ea.sha=eo(89041),ea.ripemd=eo(12949),ea.hmac=eo(52344),ea.sha1=ea.sha.sha1,ea.sha256=ea.sha.sha256,ea.sha224=ea.sha.sha224,ea.sha384=ea.sha.sha384,ea.sha512=ea.sha.sha512,ea.ripemd160=ea.ripemd.ripemd160},95772:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(79746);function BlockHash(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}ei.BlockHash=BlockHash,BlockHash.prototype.update=function(en,ei){if(en=ea.toArray(en,ei),this.pending?this.pending=this.pending.concat(en):this.pending=en,this.pendingTotal+=en.length,this.pending.length>=this._delta8){var eo=(en=this.pending).length%this._delta8;this.pending=en.slice(en.length-eo,en.length),0===this.pending.length&&(this.pending=null),en=ea.join32(en,0,en.length-eo,this.endian);for(var es=0;es<en.length;es+=this._delta32)this._update(en,es,es+this._delta32)}return this},BlockHash.prototype.digest=function(en){return this.update(this._pad()),es(null===this.pending),this._digest(en)},BlockHash.prototype._pad=function(){var en=this.pendingTotal,ei=this._delta8,eo=ei-(en+this.padLength)%ei,ea=Array(eo+this.padLength);ea[0]=128;for(var es=1;es<eo;es++)ea[es]=0;if(en<<=3,"big"===this.endian){for(var ed=8;ed<this.padLength;ed++)ea[es++]=0;ea[es++]=0,ea[es++]=0,ea[es++]=0,ea[es++]=0,ea[es++]=en>>>24&255,ea[es++]=en>>>16&255,ea[es++]=en>>>8&255,ea[es++]=255&en}else for(ed=8,ea[es++]=255&en,ea[es++]=en>>>8&255,ea[es++]=en>>>16&255,ea[es++]=en>>>24&255,ea[es++]=0,ea[es++]=0,ea[es++]=0,ea[es++]=0;ed<this.padLength;ed++)ea[es++]=0;return ea}},52344:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(79746);function Hmac(en,ei,eo){if(!(this instanceof Hmac))return new Hmac(en,ei,eo);this.Hash=en,this.blockSize=en.blockSize/8,this.outSize=en.outSize/8,this.inner=null,this.outer=null,this._init(ea.toArray(ei,eo))}en.exports=Hmac,Hmac.prototype._init=function(en){en.length>
vendor: 8,911 bytes, line 4
4this.blockSize&&(en=new this.Hash().update(en).digest()),es(en.length<=this.blockSize);for(var ei=en.length;ei<this.blockSize;ei++)en.push(0);for(ei=0;ei<en.length;ei++)en[ei]^=54;for(ei=0,this.inner=new this.Hash().update(en);ei<en.length;ei++)en[ei]^=106;this.outer=new this.Hash().update(en)},Hmac.prototype.update=function(en,ei){return this.inner.update(en,ei),this},Hmac.prototype.digest=function(en){return this.outer.update(this.inner.digest()),this.outer.digest(en)}},12949:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(95772),ed=ea.rotl32,eu=ea.sum32,ef=ea.sum32_3,ep=ea.sum32_4,em=es.BlockHash;function RIPEMD160(){if(!(this instanceof RIPEMD160))return new RIPEMD160;em.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(en,ei,eo,ea){return en<=15?ei^eo^ea:en<=31?ei&eo|~ei&ea:en<=47?(ei|~eo)^ea:en<=63?ei&ea|eo&~ea:ei^(eo|~ea)}function K(en){return en<=15?0:en<=31?1518500249:en<=47?1859775393:en<=63?2400959708:2840853838}function Kh(en){return en<=15?1352829926:en<=31?1548603684:en<=47?1836072691:en<=63?2053994217:0}ea.inherits(RIPEMD160,em),ei.ripemd160=RIPEMD160,RIPEMD160.blockSize=512,RIPEMD160.outSize=160,RIPEMD160.hmacStrength=192,RIPEMD160.padLength=64,RIPEMD160.prototype._update=function(en,ei){for(var eo=this.h[0],ea=this.h[1],es=this.h[2],em=this.h[3],e_=this.h[4],eR=eo,eA=ea,ew=es,eO=em,eE=e_,eP=0;eP<80;eP++){var eC=eu(ed(ep(eo,f(eP,ea,es,em),en[eg[eP]+ei],K(eP)),eb[eP]),e_);eo=e_,e_=em,em=ed(es,10),es=ea,ea=eC,eC=eu(ed(ep(eR,f(79-eP,eA,ew,eO),en[ey[eP]+ei],Kh(eP)),eS[eP]),eE),eR=eE,eE=eO,eO=ed(ew,10),ew=eA,eA=eC}eC=ef(this.h[1],es,eO),this.h[1]=ef(this.h[2],em,eE),this.h[2]=ef(this.h[3],e_,eR),this.h[3]=ef(this.h[4],eo,eA),this.h[4]=ef(this.h[0],ea,ew),this.h[0]=eC},RIPEMD160.prototype._digest=function(en){return"hex"===en?ea.toHex32(this.h,"little"):ea.split32(this.h,"little")};var eg=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],ey=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],eb=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],eS=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},89041:function(en,ei,eo){"use strict";ei.sha1=eo(84761),ei.sha224=eo(10799),ei.sha256=eo(89344),ei.sha384=eo(80772),ei.sha512=eo(45900)},84761:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(95772),ed=eo(37038),eu=ea.rotl32,ef=ea.sum32,ep=ea.sum32_5,em=ed.ft_1,eg=es.BlockHash,ey=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;eg.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}ea.inherits(SHA1,eg),en.exports=SHA1,SHA1.blockSize=512,SHA1.outSize=160,SHA1.hmacStrength=80,SHA1.padLength=64,SHA1.prototype._update=function(en,ei){for(var eo=this.W,ea=0;ea<16;ea++)eo[ea]=en[ei+ea];for(;ea<eo.length;ea++)eo[ea]=eu(eo[ea-3]^eo[ea-8]^eo[ea-14]^eo[ea-16],1);var es=this.h[0],ed=this.h[1],eg=this.h[2],eb=this.h[3],eS=this.h[4];for(ea=0;ea<eo.length;ea++){var e_=~~(ea/20),eR=ep(eu(es,5),em(e_,ed,eg,eb),eS,eo[ea],ey[e_]);eS=eb,eb=eg,eg=eu(ed,30),ed=es,es=eR}this.h[0]=ef(this.h[0],es),this.h[1]=ef(this.h[1],ed),this.h[2]=ef(this.h[2],eg),this.h[3]=ef(this.h[3],eb),this.h[4]=ef(this.h[4],eS)},SHA1.prototype._digest=function(en){return"hex"===en?ea.toHex32(this.h,"big"):ea.split32(this.h,"big")}},10799:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(89344);function SHA224(){if(!(this instanceof SHA224))return new SHA224;es.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}ea.inherits(SHA224,es),en.exports=SHA224,SHA224.blockSize=512,SHA224.outSize=224,SHA224.hmacStrength=192,SHA224.padLength=64,SHA224.prototype._digest=function(en){return"hex"===en?ea.toHex32(this.h.slice(0,7),"big"):ea.split32(this.h.slice(0,7),"big")}},89344:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(95772),ed=eo(37038),eu=eo(79746),ef=ea.sum32,ep=ea.sum32_4,em=ea.sum32_5,eg=ed.ch32,ey=ed.maj32,eb=ed.s0_256,eS=ed.s1_256,e_=ed.g0_256,eR=ed.g1_256,eA=es.BlockHash,ew=[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];function SHA256(){if(!(this instanceof SHA256))return new SHA256;eA.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=ew,this.W=Array(64)}ea.inherits(SHA256,eA),en.exports=SHA256,SHA256.blockSize=512,SHA256.outSize=256,SHA256.hmacStrength=192,SHA256.padLength=64,SHA256.prototype._update=function(en,ei){for(var eo=this.W,ea=0;ea<16;ea++)eo[ea]=en[ei+ea];for(;ea<eo.length;ea++)eo[ea]=ep(eR(eo[ea-2]),eo[ea-7],e_(eo[ea-15]),eo[ea-16]);var es=this.h[0],ed=this.h[1],eA=this.h[2],ew=this.h[3],eO=this.h[4],eE=this.h[5],eP=this.h[6],eC=this.h[7];for(eu(this.k.length===eo.length),ea=0;ea<eo.length;ea++){var eT=em(eC,eS(eO),eg(eO,eE,eP),this.k[ea],eo[ea]),eB=ef(eb(es),ey(es,ed,eA));eC=eP,eP=eE,eE=eO,eO=ef(ew,eT),ew=eA,eA=ed,ed=es,es=ef(eT,eB)}this.h[0]=ef(this.h[0],es),this.h[1]=ef(this.h[1],ed),this.h[2]=ef(this.h[2],eA),this.h[3]=ef(this.h[3],ew),this.h[4]=ef(this.h[4],eO),this.h[5]=ef(this.h[5],eE),this.h[6]=ef(this.h[6],eP),this.h[7]=ef(this.h[7],eC)},SHA256.prototype._digest=function(en){return"hex"===en?ea.toHex32(this.h,"big"):ea.split32(this.h,"big")}},80772:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(45900);function SHA384(){if(!(this instanceof SHA384))return new SHA384;es.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}ea.inherits(SHA384,es),en.exports=SHA384,SHA384.blockSize=1024,SHA384.outSize=384,SHA384.hmacStrength=192,SHA384.padLength=128,SHA384.prototype._digest=function(en){return"hex"===en?ea.toHex32(this.h.slice(0,12),"big"):ea.split32(this.h.slice(0,12),"big")}},45900:function(en,ei,eo){"use strict";var ea=eo(26436),es=eo(95772),ed=eo(79746),eu=ea.rotr64_hi,ef=ea.rotr64_lo,ep=ea.shr64_hi,em=ea.shr64_lo,eg=ea.sum64,ey=ea.sum64_hi,eb=ea.sum64_lo,eS=ea.sum64_4_hi,e_=ea.sum64_4_lo,eR=ea.sum64_5_hi,eA=ea.sum64_5_lo,ew=es.BlockHash,eO=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
41126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function SHA512(){if(!(this instanceof SHA512))return new SHA512;ew.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=eO,this.W=Array(160)}function ch64_hi(en,ei,eo,ea,es){var ed=en&eo^~en&es;return ed<0&&(ed+=4294967296),ed}function ch64_lo(en,ei,eo,ea,es,ed){var eu=ei&ea^~ei&ed;return eu<0&&(eu+=4294967296),eu}function maj64_hi(en,ei,eo,ea,es){var ed=en&eo^en&es^eo&es;return ed<0&&(ed+=4294967296),ed}function maj64_lo(en,ei,eo,ea,es,ed){var eu=ei&ea^ei&ed^ea&ed;return eu<0&&(eu+=4294967296),eu}function s0_512_hi(en,ei){var eo=eu(en,ei,28)^eu(ei,en,2)^eu(ei,en,7);return eo<0&&(eo+=4294967296),eo}function s0_512_lo(en,ei){var eo=ef(en,ei,28)^ef(ei,en,2)^ef(ei,en,7);return eo<0&&(eo+=4294967296),eo}function s1_512_hi(en,ei){var eo=eu(en,ei,14)^eu(en,ei,18)^eu(ei,en,9);return eo<0&&(eo+=4294967296),eo}function s1_512_lo(en,ei){var eo=ef(en,ei,14)^ef(en,ei,18)^ef(ei,en,9);return eo<0&&(eo+=4294967296),eo}function g0_512_hi(en,ei){var eo=eu(en,ei,1)^eu(en,ei,8)^ep(en,ei,7);return eo<0&&(eo+=4294967296),eo}function g0_512_lo(en,ei){var eo=ef(en,ei,1)^ef(en,ei,8)^em(en,ei,7);return eo<0&&(eo+=4294967296),eo}function g1_512_hi(en,ei){var eo=eu(en,ei,19)^eu(ei,en,29)^ep(en,ei,6);return eo<0&&(eo+=4294967296),eo}function g1_512_lo(en,ei){var eo=ef(en,ei,19)^ef(ei,en,29)^em(en,ei,6);return eo<0&&(eo+=4294967296),eo}ea.inherits(SHA512,ew),en.exports=SHA512,SHA512.blockSize=1024,SHA512.outSize=512,SHA512.hmacStrength=192,SHA512.padLength=128,SHA512.prototype._prepareBlock=function(en,ei){for(var eo=this.W,ea=0;ea<32;ea++)eo[ea]=en[ei+ea];for(;ea<eo.length;ea+=2){var es=g1_512_hi(eo[ea-4],eo[ea-3]),ed=g1_512_lo(eo[ea-4],eo[ea-3]),eu=eo[ea-14],ef=eo[ea-13],ep=g0_512_hi(eo[ea-30],eo[ea-29]),em=g0_512_lo(eo[ea-30],eo[ea-29]),eg=eo[ea-32],ey=eo[ea-31];eo[ea]=eS(es,ed,eu,ef,ep,em,eg,ey),eo[ea+1]=e_(es,ed,eu,ef,ep,em,eg,ey)}},SHA512.prototype._update=function(en,ei){this._prepareBlock(en,ei);var eo=this.W,ea=this.h[0],es=this.h[1],eu=this.h[2],ef=this.h[3],ep=this.h[4],em=this.h[5],eS=this.h[6],e_=this.h[7],ew=this.h[8],eO=this.h[9],eE=this.h[10],eP=this.h[11],eC=this.h[12],eT=this.h[13],eB=this.h[14],eN=this.h[15];ed(this.k.length===eo.length);for(var eI=0;eI<eo.length;eI+=2){var ex=eB,eM=eN,eD=s1_512_hi(ew,eO),eU=s1_512_lo(ew,eO),eL=ch64_hi(ew,eO,eE,eP,eC,eT),eJ=ch64_lo(ew,eO,eE,eP,eC,eT),eF=this.k[eI],eH=this.k[eI+1],eq=eo[eI],ej=eo[eI+1],eV=eR(ex,eM,eD,eU,eL,eJ,eF,eH,eq,ej),eW=eA(ex,eM,eD,eU,eL,eJ,eF,eH,eq,ej);ex=s0_512_hi(ea,es);var eG=ey(ex,eM=s0_512_lo(ea,es),eD=maj64_hi(ea,es,eu,ef,ep,em),eU=maj64_lo(ea,es,eu,ef,ep,em)),eQ=eb(ex,eM,eD,eU);eB=eC,eN=eT,eC=eE,eT=eP,eE=ew,eP=eO,ew=ey(eS,e_,eV,eW),eO=eb(e_,e_,eV,eW),eS=ep,e_=em,ep=eu,em=ef,eu=ea,ef=es,ea=ey(eV,eW,eG,eQ),es=eb(eV,eW,eG,eQ)}eg(this.h,0,ea,es),eg(this.h,2,eu,ef),eg(this.h,4,ep,em),eg(this.h,6,eS,e_),eg(this.h,8,ew,eO),eg(this.h,10,eE,eP),eg(this.h,12,eC,eT),eg(this.h,14,eB,eN)},SHA512.prototype._digest=function(en){return"hex"===en?ea.toHex32(this.h,"big"):ea.split32(this.h,"big")}},37038:function(en,ei,eo){"use strict";var ea=eo(26436).rotr32;function ft_1(en,ei,eo,ea){return 0===en?ch32(ei,eo,ea):1===en||3===en?p32(ei,eo,ea):2===en?maj32(ei,eo,ea):void 0}function ch32(en,ei,eo){return en&ei^~en&eo}function maj32(en,ei,eo){return en&ei^en&eo^ei&eo}function p32(en,ei,eo){return en^ei^eo}function s0_256(en){return ea(en,2)^ea(en,13)^ea(en,22)}function s1_256(en){return ea(en,6)^ea(en,11)^ea(en,25)}function g0_256(en){return ea(en,7)^ea(en,18)^en>>>3}function g1_256(en){return ea(en,17)^ea(en,19)^en>>>10}ei.ft_1=ft_1,ei.ch32=ch32,ei.maj32=maj32,ei.p32=p32,ei.s0_256=s0_256,ei.s1_256=s1_256,ei.g0_256=g0_256,ei.g1_256=g1_256},26436:function(en,ei,eo){"use strict";var ea=eo(79746),es=eo(35717);function isSurrogatePair(en,ei){return(64512&en.charCodeAt(ei))==55296&&!(ei<0)&&!(ei+1>=en.length)&&(64512&en.charCodeAt(ei+1))==56320}function toArray(en,ei){if(Array.isArray(en))return en.slice();if(!en)return[];var eo=[];if("string"==typeof en){if(ei){if("hex"===ei)for((en=en.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(en="0"+en),es=0;es<en.length;es+=2)eo.push(parseInt(en[es]+en[es+1],16))}else for(var ea=0,es=0;es<en.length;
4es++){var ed=en.charCodeAt(es);ed<128?eo[ea++]=ed:(ed<2048?eo[ea++]=ed>>6|192:(isSurrogatePair(en,es)?(ed=65536+((1023&ed)<<10)+(1023&en.charCodeAt(++es)),eo[ea++]=ed>>18|240,eo[ea++]=ed>>12&63|128):eo[ea++]=ed>>12|224,eo[ea++]=ed>>6&63|128),eo[ea++]=63&ed|128)}}else for(es=0;es<en.length;es++)eo[es]=0|en[es];return eo}function toHex(en){for(var ei="",eo=0;eo<en.length;eo++)ei+=zero2(en[eo].toString(16));return ei}function htonl(en){return(en>>>24|en>>>8&65280|en<<8&16711680|(255&en)<<24)>>>0}function toHex32(en,ei){for(var eo="",ea=0;ea<en.length;ea++){var es=en[ea];"little"===ei&&(es=htonl(es)),eo+=zero8(es.toString(16))}return eo}function zero2(en){return 1===en.length?"0"+en:en}function zero8(en){if(7===en.length)return"0"+en;if(6===en.length)return"00"+en;if(5===en.length)return"000"+en;if(4===en.length)return"0000"+en;if(3===en.length)return"00000"+en;if(2===en.length)return"000000"+en;if(1===en.length)return"0000000"+en;else return en}function join32(en,ei,eo,es){var ed,eu=eo-ei;ea(eu%4==0);for(var ef=Array(eu/4),ep=0,em=ei;ep<ef.length;ep++,em+=4)ed="big"===es?en[em]<<24|en[em+1]<<16|en[em+2]<<8|en[em+3]:en[em+3]<<24|en[em+2]<<16|en[em+1]<<8|en[em],ef[ep]=ed>>>0;return ef}function split32(en,ei){for(var eo=Array(4*en.length),ea=0,es=0;ea<en.length;ea++,es+=4){var ed=en[ea];"big"===ei?(eo[es]=ed>>>24,eo[es+1]=ed>>>16&255,eo[es+2]=ed>>>8&255,eo[es+3]=255&ed):(eo[es+3]=ed>>>24,eo[es+2]=ed>>>16&255,eo[es+1]=ed>>>8&255,eo[es]=255&ed)}return eo}function rotr32(en,ei){return en>>>ei|en<<32-ei}function rotl32(en,ei){return en<<ei|en>>>32-ei}function sum32(en,ei){return en+ei>>>0}function sum32_3(en,ei,eo){return en+ei+eo>>>0}function sum32_4(en,ei,eo,ea){return en+ei+eo+ea>>>0}function sum32_5(en,ei,eo,ea,es){return en+ei+eo+ea+es>>>0}function sum64(en,ei,eo,ea){var es=en[ei],ed=ea+en[ei+1]>>>0,eu=(ed<ea?1:0)+eo+es;en[ei]=eu>>>0,en[ei+1]=ed}function sum64_hi(en,ei,eo,ea){return(ei+ea>>>0<ei?1:0)+en+eo>>>0}function sum64_lo(en,ei,eo,ea){return ei+ea>>>0}function sum64_4_hi(en,ei,eo,ea,es,ed,eu,ef){var ep,em=ei;return en+eo+es+eu+(ep=0+((em=em+ea>>>0)<ei?1:0)+((em=em+ed>>>0)<ed?1:0)+((em=em+ef>>>0)<ef?1:0))>>>0}function sum64_4_lo(en,ei,eo,ea,es,ed,eu,ef){return ei+ea+ed+ef>>>0}function sum64_5_hi(en,ei,eo,ea,es,ed,eu,ef,ep,em){var eg,ey=ei;return en+eo+es+eu+ep+(eg=0+((ey=ey+ea>>>0)<ei?1:0)+((ey=ey+ed>>>0)<ed?1:0)+((ey=ey+ef>>>0)<ef?1:0)+((ey=ey+em>>>0)<em?1:0))>>>0}function sum64_5_lo(en,ei,eo,ea,es,ed,eu,ef,ep,em){return ei+ea+ed+ef+em>>>0}function rotr64_hi(en,ei,eo){return(ei<<32-eo|en>>>eo)>>>0}function rotr64_lo(en,ei,eo){return(en<<32-eo|ei>>>eo)>>>0}function shr64_hi(en,ei,eo){return en>>>eo}function shr64_lo(en,ei,eo){return(en<<32-eo|ei>>>eo)>>>0}ei.inherits=es,ei.toArray=toArray,ei.toHex=toHex,ei.htonl=htonl,ei.toHex32=toHex32,ei.zero2=zero2,ei.zero8=zero8,ei.join32=join32,ei.split32=split32,ei.rotr32=rotr32,ei.rotl32=rotl32,ei.sum32=sum32,ei.sum32_3=sum32_3,ei.sum32_4=sum32_4,ei.sum32_5=sum32_5,ei.sum64=sum64,ei.sum64_hi=sum64_hi,ei.sum64_lo=sum64_lo,ei.sum64_4_hi=sum64_4_hi,ei.sum64_4_lo=sum64_4_lo,ei.sum64_5_hi=sum64_5_hi,ei.sum64_5_lo=sum64_5_lo,ei.rotr64_hi=rotr64_hi,ei.rotr64_lo=rotr64_lo,ei.shr64_hi=shr64_hi,ei.shr64_lo=shr64_lo},2156:function(en,ei,eo){"use strict";var ea=eo(33715),es=eo(34504),ed=eo(79746);function HmacDRBG(en){if(!(this instanceof HmacDRBG))return new HmacDRBG(en);this.hash=en.hash,this.predResist=!!en.predResist,this.outLen=this.hash.outSize,this.minEntropy=en.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var ei=es.toArray(en.entropy,en.entropyEnc||"hex"),eo=es.toArray(en.nonce,en.nonceEnc||"hex"),ea=es.toArray(en.pers,en.persEnc||"hex");ed(ei.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(ei,eo,ea)}en.exports=HmacDRBG,HmacDRBG.prototype._init=function(en,ei,eo){var ea=en.concat(ei).concat(eo);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var es=0;es<this.V.length;es++)this.K[es]=0,this.V[es]=1;this._update(ea),this._reseed=1,this.reseedInterval=281474976710656},HmacDRBG.prototype._hmac=function(){return new ea.hmac(this.hash,this.K)},HmacDRBG.prototype._update=function(en){var ei=this._hmac().update(this.V).update([0]);
4en&&(ei=ei.update(en)),this.K=ei.digest(),this.V=this._hmac().update(this.V).digest(),en&&(this.K=this._hmac().update(this.V).update([1]).update(en).digest(),this.V=this._hmac().update(this.V).digest())},HmacDRBG.prototype.reseed=function(en,ei,eo,ea){"string"!=typeof ei&&(ea=eo,eo=ei,ei=null),en=es.toArray(en,ei),eo=es.toArray(eo,ea),ed(en.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(en.concat(eo||[])),this._reseed=1},HmacDRBG.prototype.generate=function(en,ei,eo,ea){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof ei&&(ea=eo,eo=ei,ei=null),eo&&(eo=es.toArray(eo,ea||"hex"),this._update(eo));for(var ed=[];ed.length<en;)this.V=this._hmac().update(this.V).digest(),ed=ed.concat(this.V);var eu=ed.slice(0,en);return this._update(eo),this._reseed++,es.encode(eu,ei)}},82584:function(en,ei,eo){"use strict";var ea=eo(96410)(),es=eo(21924)("Object.prototype.toString"),isStandardArguments=function(en){return(!ea||!en||"object"!=typeof en||!(Symbol.toStringTag in en))&&"[object Arguments]"===es(en)},isLegacyArguments=function(en){return!!isStandardArguments(en)||null!==en&&"object"==typeof en&&"number"==typeof en.length&&en.length>=0&&"[object Array]"!==es(en)&&"[object Function]"===es(en.callee)},ed=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments,en.exports=ed?isStandardArguments:isLegacyArguments},95320:function(en){"use strict";var ei,eo,ea=Function.prototype.toString,es="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof es&&"function"==typeof Object.defineProperty)try{ei=Object.defineProperty({},"length",{get:function(){throw eo}}),eo={},es(function(){throw 42},null,ei)}catch(en){en!==eo&&(es=null)}else es=null;var ed=/^\s*class\b/,isES6ClassFn=function(en){try{var ei=ea.call(en);return ed.test(ei)}catch(en){return!1}},tryFunctionObject=function(en){try{if(isES6ClassFn(en))return!1;return ea.call(en),!0}catch(en){return!1}},eu=Object.prototype.toString,ef="[object Object]",ep="[object Function]",em="[object GeneratorFunction]",eg="[object HTMLAllCollection]",ey="[object HTML document.all class]",eb="[object HTMLCollection]",eS="function"==typeof Symbol&&!!Symbol.toStringTag,e_=!(0 in[,]),isDDA=function(){return!1};if("object"==typeof document){var eR=document.all;eu.call(eR)===eu.call(document.all)&&(isDDA=function(en){if((e_||!en)&&(void 0===en||"object"==typeof en))try{var ei=eu.call(en);return(ei===eg||ei===ey||ei===eb||ei===ef)&&null==en("")}catch(en){}return!1})}en.exports=es?function(en){if(isDDA(en))return!0;if(!en||"function"!=typeof en&&"object"!=typeof en)return!1;try{es(en,null,ei)}catch(en){if(en!==eo)return!1}return!isES6ClassFn(en)&&tryFunctionObject(en)}:function(en){if(isDDA(en))return!0;if(!en||"function"!=typeof en&&"object"!=typeof en)return!1;if(eS)return tryFunctionObject(en);if(isES6ClassFn(en))return!1;var ei=eu.call(en);return!!(ei===ep||ei===em||/^\[object HTML/.test(ei))&&tryFunctionObject(en)}},48662:function(en,ei,eo){"use strict";var ea,es=Object.prototype.toString,ed=Function.prototype.toString,eu=/^\s*(?:function)?\*/,ef=eo(96410)(),ep=Object.getPrototypeOf,getGeneratorFunc=function(){if(!ef)return!1;try{return Function("return function*() {}")()}catch(en){}};en.exports=function(en){if("function"!=typeof en)return!1;if(eu.test(ed.call(en)))return!0;if(!ef)return"[object GeneratorFunction]"===es.call(en);if(!ep)return!1;if(void 0===ea){var ei=getGeneratorFunc();ea=!!ei&&ep(ei)}return ep(en)===ea}},55299:function(en,ei,eo){"use strict";/*!
5 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
6 *
7 * Copyright (c) 2014-2017, Jon Schlinkert.
8 * Released under the MIT License.
9 */var ea=eo(47798);function isObjectObject(en){return!0===ea(en)&&"[object Object]"===Object.prototype.toString.call(en)}en.exports=function(en){var ei,eo;return!1!==isObjectObject(en)&&"function"==typeof(ei=en.constructor)&&!1!==isObjectObject(eo=ei.prototype)&&!1!==eo.hasOwnProperty("isPrototypeOf")}},85692:function(en,ei,eo){"use strict";
9var ea=eo(86430);en.exports=function(en){return!!ea(en)}},47798:function(en){"use strict";/*!
10 * isobject <https://github.com/jonschlinkert/isobject>
11 *
12 * Copyright (c) 2014-2017, Jon Schlinkert.
13 * Released under the MIT License.
14 */en.exports=function(en){return null!=en&&"object"==typeof en&&!1===Array.isArray(en)}},46792:function(en,ei,eo){var ea=null;"undefined"!=typeof WebSocket?ea=WebSocket:"undefined"!=typeof MozWebSocket?ea=MozWebSocket:void 0!==eo.g?ea=eo.g.WebSocket||eo.g.MozWebSocket:"undefined"!=typeof window?ea=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(ea=self.WebSocket||self.MozWebSocket),en.exports=ea},91094:function(en,ei,eo){var ea,es=eo(83454);!function(){"use strict";var ed="input is invalid type",eu="finalize already called",ef="object"==typeof window,ep=ef?window:{};ep.JS_SHA3_NO_WINDOW&&(ef=!1);var em=!ef&&"object"==typeof self;!ep.JS_SHA3_NO_NODE_JS&&"object"==typeof es&&es.versions&&es.versions.node?ep=eo.g:em&&(ep=self);var eg=!ep.JS_SHA3_NO_COMMON_JS&&en.exports,ey=eo.amdO,eb=!ep.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,eS="0123456789abcdef".split(""),e_=[31,7936,2031616,520093696],eR=[4,1024,262144,67108864],eA=[1,256,65536,16777216],ew=[6,1536,393216,100663296],eO=[0,8,16,24],eE=[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],eP=[224,256,384,512],eC=[128,256],eT=["hex","buffer","arrayBuffer","array","digest"],eB={128:168,256:136};(ep.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(en){return"[object Array]"===Object.prototype.toString.call(en)}),eb&&(ep.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(en){return"object"==typeof en&&en.buffer&&en.buffer.constructor===ArrayBuffer});for(var createOutputMethod=function(en,ei,eo){return function(ea){return new Keccak(en,ei,en).update(ea)[eo]()}},createShakeOutputMethod=function(en,ei,eo){return function(ea,es){return new Keccak(en,ei,es).update(ea)[eo]()}},createCshakeOutputMethod=function(en,ei,eo){return function(ei,ea,es,ed){return eI["cshake"+en].update(ei,ea,es,ed)[eo]()}},createKmacOutputMethod=function(en,ei,eo){return function(ei,ea,es,ed){return eI["kmac"+en].update(ei,ea,es,ed)[eo]()}},createOutputMethods=function(en,ei,eo,ea){for(var es=0;es<eT.length;++es){var ed=eT[es];en[ed]=ei(eo,ea,ed)}return en},createMethod=function(en,ei){var eo=createOutputMethod(en,ei,"hex");return eo.create=function(){return new Keccak(en,ei,en)},eo.update=function(en){return eo.create().update(en)},createOutputMethods(eo,createOutputMethod,en,ei)},eN=[{name:"keccak",padding:eA,bits:eP,createMethod:createMethod},{name:"sha3",padding:ew,bits:eP,createMethod:createMethod},{name:"shake",padding:e_,bits:eC,createMethod:function(en,ei){var eo=createShakeOutputMethod(en,ei,"hex");return eo.create=function(eo){return new Keccak(en,ei,eo)},eo.update=function(en,ei){return eo.create(ei).update(en)},createOutputMethods(eo,createShakeOutputMethod,en,ei)}},{name:"cshake",padding:eR,bits:eC,createMethod:function(en,ei){var eo=eB[en],ea=createCshakeOutputMethod(en,ei,"hex");return ea.create=function(ea,es,ed){return es||ed?new Keccak(en,ei,ea).bytepad([es,ed],eo):eI["shake"+en].create(ea)},ea.update=function(en,ei,eo,es){return ea.create(ei,eo,es).update(en)},createOutputMethods(ea,createCshakeOutputMethod,en,ei)}},{name:"kmac",padding:eR,bits:eC,createMethod:function(en,ei){var eo=eB[en],ea=createKmacOutputMethod(en,ei,"hex");return ea.create=function(ea,es,ed){return new Kmac(en,ei,es).bytepad(["KMAC",ed],eo).bytepad([ea],eo)},ea.update=function(en,ei,eo,es){return ea.create(en,eo,es).update(ei)},createOutputMethods(ea,createKmacOutputMethod,en,ei)}}],eI={},ex=[],eM=0;eM<eN.length;++eM)for(var eD=eN[eM],eU=eD.bits,eL=0;eL<eU.length;++eL){var eJ=eD.name+"_"+eU[eL];if(ex.push(eJ),eI[eJ]=eD.createMethod(eU[eL],eD.padding),"sha3"!==eD.name){var eF=eD.name+eU[eL];ex.push(eF),eI[eF]=eI[eJ]}}function Keccak(en,ei,eo){this.blocks=[],this.s=[],this.padding=ei,this.outputBits=eo,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(en<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=eo>>5,this.extraBytes=(31&eo)>>3;for(var ea=0;ea<50;++ea)this.s[ea]=0}function Kmac(en,ei,eo){Keccak.call(this,en,ei,eo)}Keccak.prototype.update=function(en){if(this.finalized)throw Error(eu);var ei,eo=typeof en;if("string"!==eo){if("object"===eo){if(null===en)throw Error(ed);if(eb&&en.constructor===ArrayBuffer)en=new Uint8Array(en);else if(!Array.isArray(en)&&(!eb||!ArrayBuffer.isView(en)))throw Error(ed)}else throw Error(ed);ei=!0}for(var ea,es,ef=this.blocks,ep=this.byteCount,em=en.length,eg=this.blockCount,ey=0,eS=this.s;ey<em;){if(this.reset)for(ea=1,this.reset=!1,ef[0]=this.block;ea<eg+1;++ea)ef[ea]=0;if(ei)for(ea=this.start;ey<em&&ea<ep;++ey)ef[ea>>2]|=en[ey]<<eO[3&ea++];else for(ea=this.start;ey<em&&ea<ep;
14++ey)(es=en.charCodeAt(ey))<128?ef[ea>>2]|=es<<eO[3&ea++]:(es<2048?ef[ea>>2]|=(192|es>>6)<<eO[3&ea++]:(es<55296||es>=57344?ef[ea>>2]|=(224|es>>12)<<eO[3&ea++]:(es=65536+((1023&es)<<10|1023&en.charCodeAt(++ey)),ef[ea>>2]|=(240|es>>18)<<eO[3&ea++],ef[ea>>2]|=(128|es>>12&63)<<eO[3&ea++]),ef[ea>>2]|=(128|es>>6&63)<<eO[3&ea++]),ef[ea>>2]|=(128|63&es)<<eO[3&ea++]);if(this.lastByteIndex=ea,ea>=ep){for(this.start=ea-ep,this.block=ef[eg],ea=0;ea<eg;++ea)eS[ea]^=ef[ea];f(eS),this.reset=!0}else this.start=ea}return this},Keccak.prototype.encode=function(en,ei){var eo=255&en,ea=1,es=[eo];for(en>>=8,eo=255&en;eo>0;)es.unshift(eo),en>>=8,eo=255&en,++ea;return ei?es.push(ea):es.unshift(ea),this.update(es),es.length},Keccak.prototype.encodeString=function(en){var ei,eo=typeof en;if("string"!==eo){if("object"===eo){if(null===en)throw Error(ed);if(eb&&en.constructor===ArrayBuffer)en=new Uint8Array(en);else if(!Array.isArray(en)&&(!eb||!ArrayBuffer.isView(en)))throw Error(ed)}else throw Error(ed);ei=!0}var ea=0,es=en.length;if(ei)ea=es;else for(var eu=0;eu<en.length;++eu){var ef=en.charCodeAt(eu);ef<128?ea+=1:ef<2048?ea+=2:ef<55296||ef>=57344?ea+=3:(ef=65536+((1023&ef)<<10|1023&en.charCodeAt(++eu)),ea+=4)}return ea+=this.encode(8*ea),this.update(en),ea},Keccak.prototype.bytepad=function(en,ei){for(var eo=this.encode(ei),ea=0;ea<en.length;++ea)eo+=this.encodeString(en[ea]);var es=ei-eo%ei,ed=[];return ed.length=es,this.update(ed),this},Keccak.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var en=this.blocks,ei=this.lastByteIndex,eo=this.blockCount,ea=this.s;if(en[ei>>2]|=this.padding[3&ei],this.lastByteIndex===this.byteCount)for(ei=1,en[0]=en[eo];ei<eo+1;++ei)en[ei]=0;for(en[eo-1]|=2147483648,ei=0;ei<eo;++ei)ea[ei]^=en[ei];f(ea)}},Keccak.prototype.toString=Keccak.prototype.hex=function(){this.finalize();for(var en,ei=this.blockCount,eo=this.s,ea=this.outputBlocks,es=this.extraBytes,ed=0,eu=0,ef="";eu<ea;){for(ed=0;ed<ei&&eu<ea;++ed,++eu)ef+=eS[(en=eo[ed])>>4&15]+eS[15&en]+eS[en>>12&15]+eS[en>>8&15]+eS[en>>20&15]+eS[en>>16&15]+eS[en>>28&15]+eS[en>>24&15];eu%ei==0&&(f(eo),ed=0)}return es&&(ef+=eS[(en=eo[ed])>>4&15]+eS[15&en],es>1&&(ef+=eS[en>>12&15]+eS[en>>8&15]),es>2&&(ef+=eS[en>>20&15]+eS[en>>16&15])),ef},Keccak.prototype.arrayBuffer=function(){this.finalize();var en,ei=this.blockCount,eo=this.s,ea=this.outputBlocks,es=this.extraBytes,ed=0,eu=0,ef=this.outputBits>>3;en=new ArrayBuffer(es?ea+1<<2:ef);for(var ep=new Uint32Array(en);eu<ea;){for(ed=0;ed<ei&&eu<ea;++ed,++eu)ep[eu]=eo[ed];eu%ei==0&&f(eo)}return es&&(ep[ed]=eo[ed],en=en.slice(0,ef)),en},Keccak.prototype.buffer=Keccak.prototype.arrayBuffer,Keccak.prototype.digest=Keccak.prototype.array=function(){this.finalize();for(var en,ei,eo=this.blockCount,ea=this.s,es=this.outputBlocks,ed=this.extraBytes,eu=0,ef=0,ep=[];ef<es;){for(eu=0;eu<eo&&ef<es;++eu,++ef)en=ef<<2,ei=ea[eu],ep[en]=255&ei,ep[en+1]=ei>>8&255,ep[en+2]=ei>>16&255,ep[en+3]=ei>>24&255;ef%eo==0&&f(ea)}return ed&&(en=ef<<2,ei=ea[eu],ep[en]=255&ei,ed>1&&(ep[en+1]=ei>>8&255),ed>2&&(ep[en+2]=ei>>16&255)),ep},Kmac.prototype=new Keccak,Kmac.prototype.finalize=function(){return this.encode(this.outputBits,!0),Keccak.prototype.finalize.call(this)};var f=function(en){var ei,eo,ea,es,ed,eu,ef,ep,em,eg,ey,eb,eS,e_,eR,eA,ew,eO,eP,eC,eT,eB,eN,eI,ex,eM,eD,eU,eL,eJ,eF,eH,eq,ej,eV,eW,eG,eQ,eK,eZ,ez,eY,e$,eX,e0,e1,e2,e3,e6,e5,e8,e4,e7,e9,tn,ta,td,tc,tu,tf,tp,th,tm;for(ea=0;ea<48;ea+=2)es=en[0]^en[10]^en[20]^en[30]^en[40],ed=en[1]^en[11]^en[21]^en[31]^en[41],eu=en[2]^en[12]^en[22]^en[32]^en[42],ef=en[3]^en[13]^en[23]^en[33]^en[43],ep=en[4]^en[14]^en[24]^en[34]^en[44],em=en[5]^en[15]^en[25]^en[35]^en[45],eg=en[6]^en[16]^en[26]^en[36]^en[46],ey=en[7]^en[17]^en[27]^en[37]^en[47],eb=en[8]^en[18]^en[28]^en[38]^en[48],eS=en[9]^en[19]^en[29]^en[39]^en[49],ei=eb^(eu<<1|ef>>>31),eo=eS^(ef<<1|eu>>>31),en[0]^=ei,en[1]^=eo,en[10]^=ei,en[11]^=eo,en[20]^=ei,en[21]^=eo,en[30]^=ei,en[31]^=eo,en[40]^=ei,en[41]^=eo,ei=es^(ep<<1|em>>>31),eo=ed^(em<<1|ep>>>31),en[2]^=ei,en[3]^=eo,en[12]^=ei,en[13]^=eo,en[22]^=ei,en[23]^=eo,en[32]^=ei,en[33]^=eo,en[42]^=ei,en[43]^=eo,ei=eu^(eg<<1|ey>>>31),eo=ef^(ey<<1|eg>>>31),en[4]^=ei,en[5]^=eo,en[14]^=ei,en[15]^=eo,en[24]^=ei,en[25]^=eo,en[34]^=ei,en[35]^=eo,en[44]^=ei,en[45]^=eo,ei=ep^(eb<<1|eS>>>31),eo=em^(eS<<1|eb>>>31),en[6]^=ei,en[7]^=eo,en[16]^=ei,en[17]^=eo,en[26]^=ei,en[27]^=eo,en[36]^=ei,en[37]^=eo,en[46]^=ei,en[47]^=eo,ei=eg^(es<<1|ed>>>31),eo=ey^(ed<<1|es>>>31),en[8]^=ei,en[9]^=eo,en[18]^=ei,en[19]^=eo,en[28]^=ei,en[29]^=eo,en[38]^=ei,en[39]^=eo,en[48]^=ei,en[49]^=eo,e_=en[0],eR=en[1],e1=en[11]<<4|en[10]>>>28,e2=en[10]<<4|en[11]>>>28,eU=en[20]<<3|en[21]>>>29,eL=en[21]<<3|en[20]>>>29,tf=en[31]<<9|en[30]>>>23,tp=en[30]<<9|en[31]>>>23,eY=en[40]<<18|en[41]>>>14,e$=en[41]<<18|en[40]>>>14,ej=en[2]<<1|en[3]>>>31,eV=en[3]<<1|en[2]>>>31,eA=en[13]<<12|en[12]>>>20,ew=en[12]<<12|en[13]>>>20,e3=en[22]<<10|en[23]>>>22,e6=en[23]<<10|en[22]>>>22,eJ=en[33]<<13|en[32]>>>19,eF=en[32]<<13|en[33]>>>19,th=en[42]<<2|en[43]>>>30,tm=en[43]<<2|en[42]>>>30,e9=en[5]<<30|en[4]>>>2,tn=en[4]<<30|en[5]>>>2,eW=en[14]<<6|en[15]>>>26,eG=en[15]<<6|en[14]>>>26,eO=en[25]<<11|en[24]>>>21,eP=en[24]<<11|en[25]>>>21,e5=en[34]<<15|en[35]>>>
1417,e8=en[35]<<15|en[34]>>>17,eH=en[45]<<29|en[44]>>>3,eq=en[44]<<29|en[45]>>>3,eI=en[6]<<28|en[7]>>>4,ex=en[7]<<28|en[6]>>>4,ta=en[17]<<23|en[16]>>>9,td=en[16]<<23|en[17]>>>9,eQ=en[26]<<25|en[27]>>>7,eK=en[27]<<25|en[26]>>>7,eC=en[36]<<21|en[37]>>>11,eT=en[37]<<21|en[36]>>>11,e4=en[47]<<24|en[46]>>>8,e7=en[46]<<24|en[47]>>>8,eX=en[8]<<27|en[9]>>>5,e0=en[9]<<27|en[8]>>>5,eM=en[18]<<20|en[19]>>>12,eD=en[19]<<20|en[18]>>>12,tc=en[29]<<7|en[28]>>>25,tu=en[28]<<7|en[29]>>>25,eZ=en[38]<<8|en[39]>>>24,ez=en[39]<<8|en[38]>>>24,eB=en[48]<<14|en[49]>>>18,eN=en[49]<<14|en[48]>>>18,en[0]=e_^~eA&eO,en[1]=eR^~ew&eP,en[10]=eI^~eM&eU,en[11]=ex^~eD&eL,en[20]=ej^~eW&eQ,en[21]=eV^~eG&eK,en[30]=eX^~e1&e3,en[31]=e0^~e2&e6,en[40]=e9^~ta&tc,en[41]=tn^~td&tu,en[2]=eA^~eO&eC,en[3]=ew^~eP&eT,en[12]=eM^~eU&eJ,en[13]=eD^~eL&eF,en[22]=eW^~eQ&eZ,en[23]=eG^~eK&ez,en[32]=e1^~e3&e5,en[33]=e2^~e6&e8,en[42]=ta^~tc&tf,en[43]=td^~tu&tp,en[4]=eO^~eC&eB,en[5]=eP^~eT&eN,en[14]=eU^~eJ&eH,en[15]=eL^~eF&eq,en[24]=eQ^~eZ&eY,en[25]=eK^~ez&e$,en[34]=e3^~e5&e4,en[35]=e6^~e8&e7,en[44]=tc^~tf&th,en[45]=tu^~tp&tm,en[6]=eC^~eB&e_,en[7]=eT^~eN&eR,en[16]=eJ^~eH&eI,en[17]=eF^~eq&ex,en[26]=eZ^~eY&ej,en[27]=ez^~e$&eV,en[36]=e5^~e4&eX,en[37]=e8^~e7&e0,en[46]=tf^~th&e9,en[47]=tp^~tm&tn,en[8]=eB^~e_&eA,en[9]=eN^~eR&ew,en[18]=eH^~eI&eM,en[19]=eq^~ex&eD,en[28]=eY^~ej&eW,en[29]=e$^~eV&eG,en[38]=e4^~eX&e1,en[39]=e7^~e0&e2,en[48]=th^~e9&ta,en[49]=tm^~tn&td,en[0]^=eE[ea],en[1]^=eE[ea+1]};if(eg)en.exports=eI;else{for(eM=0;eM<ex.length;++eM)ep[ex[eM]]=eI[ex[eM]];ey&&void 0!==(ea=(function(){return eI}).call(ei,eo,ei,en))&&(en.exports=ea)}}()},26401:function(en){var ei=Object.prototype.toString;function ctorName(en){return"function"==typeof en.constructor?en.constructor.name:null}function isArray(en){return Array.isArray?Array.isArray(en):en instanceof Array}function isError(en){return en instanceof Error||"string"==typeof en.message&&en.constructor&&"number"==typeof en.constructor.stackTraceLimit}function isDate(en){return en instanceof Date||"function"==typeof en.toDateString&&"function"==typeof en.getDate&&"function"==typeof en.setDate}function isRegexp(en){return en instanceof RegExp||"string"==typeof en.flags&&"boolean"==typeof en.ignoreCase&&"boolean"==typeof en.multiline&&"boolean"==typeof en.global}function isGeneratorFn(en,ei){return"GeneratorFunction"===ctorName(en)}function isGeneratorObj(en){return"function"==typeof en.throw&&"function"==typeof en.return&&"function"==typeof en.next}function isArguments(en){try{if("number"==typeof en.length&&"function"==typeof en.callee)return!0}catch(en){if(-1!==en.message.indexOf("callee"))return!0}return!1}function isBuffer(en){return!!en.constructor&&"function"==typeof en.constructor.isBuffer&&en.constructor.isBuffer(en)}en.exports=function(en){if(void 0===en)return"undefined";if(null===en)return"null";var eo=typeof en;if("boolean"===eo)return"boolean";if("string"===eo)return"string";if("number"===eo)return"number";if("symbol"===eo)return"symbol";if("function"===eo)return isGeneratorFn(en)?"generatorfunction":"function";if(isArray(en))return"array";if(isBuffer(en))return"buffer";if(isArguments(en))return"arguments";if(isDate(en))return"date";if(isError(en))return"error";if(isRegexp(en))return"regexp";switch(ctorName(en)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(en))return"generator";switch(eo=ei.call(en)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return eo.slice(8,-1).toLowerCase().replace(/\s/g,"")}},98948:function(en,ei,eo){var ea,es,ed;!function(eu){function r(en,ei){"use strict";var eo,ea="uint8array",es=ei.ready.then(function(){function a(){if(0!==eo._sodium_init())throw Error("libsodium was not correctly initialized.");for(var ei,ea=["crypto_aead_aegis128l_decrypt","crypto_aead_aegis128l_decrypt_detached","crypto_aead_aegis128l_encrypt","crypto_aead_aegis128l_encrypt_detached","crypto_aead_aegis128l_keygen","crypto_aead_aegis256_decrypt","crypto_aead_aegis256_decrypt_detached","crypto_aead_aegis256_encrypt","crypto_aead_aegis256_encrypt_detached","crypto_aead_aegis256_keygen","crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_beforenm","crypto_box_curve25519xchacha20poly1305_detached","crypto_box_curve25519xchacha20poly1305_detached_afternm","crypto_box_curve25519xchacha20poly1305_easy","crypto_box_curve25519xchacha20poly1305_easy_afternm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_open_detached","crypto_box_curve25519xchacha20poly1305_open_detached_afternm","crypto_box_curve25519xchacha20poly1305_open_easy","crypto_box_curve25519xchacha20poly1305_open_easy_afternm","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_curve25519xchacha20poly1305_seed_keypair","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa2
1408sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_version_string"],es=[E,k,S,T,w,Y,B,A,K,M,I,N,L,U,O,C,R,P,G,X,D,F,V,H,q,j,z,W,J,Q,Z,$,ee,re,te,ae,_e,ne,se,ce,oe,he,pe,ye,ie,le,ue,de,ve,ge,be,fe,me,xe,Ee,ke,Se,Te,we,Ye,Be,Ae,Ke,Me,Ie,Ne,Le,Ue,Oe,Ce,Re,Pe,Ge,Xe,De,Fe,Ve,He,qe,je,ze,We,Je,Qe,Ze,$e,er,rr,tr,ar,_r,nr,sr,cr,or,hr,pr,yr,ir,lr,ur,dr,vr,gr,br,fr,mr,xr,Er,kr,Sr,Tr,wr,Yr,Br,Ar,Kr,Mr,Ir,Nr,Lr,Ur,Or,Cr,Rr,Pr,Gr,Xr,Dr,Fr,Vr,Hr,qr,jr,zr,Wr,Jr,Qr,Zr,$r,et,rt,tt,at,_t,nt,st,ct,ot,ht,pt,yt,it,lt,ut,dt,vt,gt,bt,ft,mt,xt,Et,kt,St,Tt,wt,Yt,Bt,At,Kt,Mt,It,Nt,Lt,Ut,Ot,Ct,Rt,Pt,Gt,Xt],ed=0;ed<es.length;ed++)"function"==typeof eo["_"+ea[ed]]&&(en[ea[ed]]=es[ed]);var eu=["SODIUM_LIBRARY_VERSION_MAJOR","SODIUM_LIBRARY_VERSION_MINOR","crypto_aead_chacha20poly1305_ABYTES","crypto_aead_chacha20poly1305_IETF_ABYTES","crypto_aead_chacha20poly1305_IETF_KEYBYTES","crypto_aead_chacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_IETF_NPUBBYTES","crypto_aead_chacha20poly1305_IETF_NSECBYTES","crypto_aead_chacha20poly1305_KEYBYTES","crypto_aead_chacha20poly1305_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_NPUBBYTES","crypto_aead_chacha20poly1305_NSECBYTES","crypto_aead_chacha20poly1305_ietf_ABYTES","crypto_aead_chacha20poly1305_ietf_KEYBYTES","crypto_aead_chacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_chacha20poly1305_ietf_NPUBBYTES","crypto_aead_chacha20poly1305_ietf_NSECBYTES","crypto_aead_xchacha20poly1305_IETF_ABYTES","crypto_aead_xchacha20poly1305_IETF_KEYBYTES","crypto_aead_xchacha20poly1305_IETF_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_IETF_NPUBBYTES","crypto_aead_xchacha20poly1305_IETF_NSECBYTES","crypto_aead_xchacha20poly1305_ietf_ABYTES","crypto_aead_xchacha20poly1305_ietf_KEYBYTES","crypto_aead_xchacha20poly1305_ietf_MESSAGEBYTES_MAX","crypto_aead_xchacha20poly1305_ietf_NPUBBYTES","crypto_aead_xchacha20poly1305_ietf_NSECBYTES","crypto_auth_BYTES","crypto_auth_KEYBYTES","crypto_auth_hmacsha256_BYTES","crypto_auth_hmacsha256_KEYBYTES","crypto_auth_hmacsha512256_BYTES","crypto_auth_hmacsha512256_KEYBYTES","crypto_auth_hmacsha512_BYTES","crypto_auth_hmacsha512_KEYBYTES","crypto_box_BEFORENMBYTES","crypto_box_MACBYTES","crypto_box_MESSAGEBYTES_MAX","crypto_box_NONCEBYTES","crypto_box_PUBLICKEYBYTES","crypto_box_SEALBYTES","crypto_box_SECRETKEYBYTES","crypto_box_SEEDBYTES","crypto_box_curve25519xchacha20poly1305_BEFORENMBYTES","crypto_box_curve25519xchacha20poly1305_MACBYTES","crypto_box_curve25519xchacha20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xchacha20poly1305_NONCEBYTES","crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEALBYTES","crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES","crypto_box_curve25519xchacha20poly1305_SEEDBYTES","crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES","crypto_box_curve25519xsalsa20poly1305_MACBYTES","crypto_box_curve25519xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_box_curve25519xsalsa20poly1305_NONCEBYTES","crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES","crypto_box_curve25519xsalsa20poly1305_SEEDBYTES","crypto_core_ed25519_BYTES","crypto_core_ed25519_HASHBYTES","crypto_core_ed25519_NONREDUCEDSCALARBYTES","crypto_core_ed25519_SCALARBYTES","crypto_core_ed25519_UNIFORMBYTES","crypto_core_hchacha20_CONSTBYTES","crypto_core_hchacha20_INPUTBYTES","crypto_core_hchacha20_KEYBYTES","crypto_core_hchacha20_OUTPUTBYTES","crypto_core_hsalsa20_CONSTBYTES","crypto_core_hsalsa20_INPUTBYTES","crypto_core_hsalsa20_KEYBYTES","crypto_core_hsalsa20_OUTPUTBYTES","crypto_core_ristretto255_BYTES","crypto_core_ristretto255_HASHBYTES","crypto_core_ristretto255_NONREDUCEDSCALARBYTES","crypto_core_ristretto255_SCALARBYTES","crypto_core_salsa2012_CONSTBYTES","crypto_core_salsa2012_INPUTBYTES","crypto_core_salsa2012_KEYBYTES","crypto_core_salsa2012_OUTPUTBYTES","crypto_core_salsa20_CONSTBYTES","crypto_core_salsa20_INPUTBYTES","crypto_core_salsa20_KEYBYTES","crypto_core_salsa20_OUTPUTBYTES","crypto_generichash_BYTES","crypto_generichash_BYTES_MAX","crypto_generichash_BYTES_MIN","crypto_generichash_KEYBYTES","crypto_generichash_KEYBYTES_MAX","crypto_generichash_KEYBYTES_MIN","crypto_generichash_blake2b_BYTES","crypto_generichash_blake2b_BYTES_MAX","crypto_generichash_blake2b_BYTES_MIN","crypto_generichash_blake2b_KEYBYTES","crypto_generichash_blake2b_KEYBYTES_MAX","crypto_generichash_blake2b_KEYBYTES_MIN","crypto_generichash_blake2b_PERSONALBYTES","crypto_generichash_blake2b_SALTBYTES","crypto_hash_BYTES","crypto_hash_sha256_BYTES","crypto_hash_sha512_BYTES","crypto_kdf_BYTES_MAX","crypto_kdf_BYTES_MIN","crypto_kdf_CONTEXTBYTES","crypto_kdf_KEYBYTES","crypto_kdf_blake2b_BYTES_MAX","crypto_kdf_blake2b_BYTES_MIN","crypto_kdf_blake2b_CONTEXTBYTES","crypto_kdf_blake2b_KEYBYTES","crypto_kx_PUBLICKEYBYTES","crypto_kx_SECRETKEYBYTES","crypto_kx_SEEDBYTES","crypto_kx_SESSIONKEYBYTES","crypto_onetimeauth_BYTES","crypto_onetimeauth_KEYBYTES","crypto_onetimeauth_poly1305_BYTES","crypto_onetimeauth_poly1305_KEYBYTES","crypto_pwhash_ALG_ARGON2I13","crypto_pwhash_ALG_ARGON2ID13","crypto_pwhash_ALG_DEFAULT","crypto_pwhash_BYTES_MAX","crypto_pwhash_BYTES_MIN","crypto_pwhash_MEMLIMIT_INTERACTIVE","crypto_pwhash_MEMLIMIT_MAX","crypto_pwhash_MEMLIMIT_MIN","crypto_pwhash_MEMLIMIT_MODERATE","crypto_pwhash_MEMLIMIT_SENSITIVE","crypto_pwhash_OPSLIMIT_INTERACTIVE","crypto_pwhash_OPSLIMIT_MAX","crypto_pwhash_OPSLIMIT_MIN","crypto_pwhash_OPSLIMIT_MODERATE","crypto_pwhash_OPSLIMIT_SENSITIVE","crypto_pwhash_PASSWD_MAX","crypto_pwhash_PASSWD_MIN","crypto_pwhash_SALTBYTES","crypto_pwhash_STRBYTES","crypto_pwhash_argon2i_BYTES_MAX","crypto_pwhash_argon2i_BYTES_MIN","crypto_pwhash_argon2i_SALTBYTES","crypto_pwhash_argon2i_STRBYTES","crypto_pwhash_argon2id_BYTES_MAX","crypto_pwhash_argon2id_BYTES_MIN","crypto_pwhash_argon2id_SALTBYTES","crypto_pwhash_argon2id_STRBYTES","crypto_pwhash_scryptsalsa2
1408sha256_BYTES_MAX","crypto_pwhash_scryptsalsa208sha256_BYTES_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_INTERACTIVE","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MAX","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_MIN","crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE","crypto_pwhash_scryptsalsa208sha256_SALTBYTES","crypto_pwhash_scryptsalsa208sha256_STRBYTES","crypto_scalarmult_BYTES","crypto_scalarmult_SCALARBYTES","crypto_scalarmult_curve25519_BYTES","crypto_scalarmult_curve25519_SCALARBYTES","crypto_scalarmult_ed25519_BYTES","crypto_scalarmult_ed25519_SCALARBYTES","crypto_scalarmult_ristretto255_BYTES","crypto_scalarmult_ristretto255_SCALARBYTES","crypto_secretbox_KEYBYTES","crypto_secretbox_MACBYTES","crypto_secretbox_MESSAGEBYTES_MAX","crypto_secretbox_NONCEBYTES","crypto_secretbox_xchacha20poly1305_KEYBYTES","crypto_secretbox_xchacha20poly1305_MACBYTES","crypto_secretbox_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xchacha20poly1305_NONCEBYTES","crypto_secretbox_xsalsa20poly1305_KEYBYTES","crypto_secretbox_xsalsa20poly1305_MACBYTES","crypto_secretbox_xsalsa20poly1305_MESSAGEBYTES_MAX","crypto_secretbox_xsalsa20poly1305_NONCEBYTES","crypto_secretstream_xchacha20poly1305_ABYTES","crypto_secretstream_xchacha20poly1305_HEADERBYTES","crypto_secretstream_xchacha20poly1305_KEYBYTES","crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX","crypto_secretstream_xchacha20poly1305_TAG_FINAL","crypto_secretstream_xchacha20poly1305_TAG_MESSAGE","crypto_secretstream_xchacha20poly1305_TAG_PUSH","crypto_secretstream_xchacha20poly1305_TAG_REKEY","crypto_shorthash_BYTES","crypto_shorthash_KEYBYTES","crypto_shorthash_siphash24_BYTES","crypto_shorthash_siphash24_KEYBYTES","crypto_shorthash_siphashx24_BYTES","crypto_shorthash_siphashx24_KEYBYTES","crypto_sign_BYTES","crypto_sign_MESSAGEBYTES_MAX","crypto_sign_PUBLICKEYBYTES","crypto_sign_SECRETKEYBYTES","crypto_sign_SEEDBYTES","crypto_sign_ed25519_BYTES","crypto_sign_ed25519_MESSAGEBYTES_MAX","crypto_sign_ed25519_PUBLICKEYBYTES","crypto_sign_ed25519_SECRETKEYBYTES","crypto_sign_ed25519_SEEDBYTES","crypto_stream_KEYBYTES","crypto_stream_MESSAGEBYTES_MAX","crypto_stream_NONCEBYTES","crypto_stream_chacha20_IETF_KEYBYTES","crypto_stream_chacha20_IETF_MESSAGEBYTES_MAX","crypto_stream_chacha20_IETF_NONCEBYTES","crypto_stream_chacha20_KEYBYTES","crypto_stream_chacha20_MESSAGEBYTES_MAX","crypto_stream_chacha20_NONCEBYTES","crypto_stream_chacha20_ietf_KEYBYTES","crypto_stream_chacha20_ietf_MESSAGEBYTES_MAX","crypto_stream_chacha20_ietf_NONCEBYTES","crypto_stream_salsa2012_KEYBYTES","crypto_stream_salsa2012_MESSAGEBYTES_MAX","crypto_stream_salsa2012_NONCEBYTES","crypto_stream_salsa208_KEYBYTES","crypto_stream_salsa208_MESSAGEBYTES_MAX","crypto_stream_salsa208_NONCEBYTES","crypto_stream_salsa20_KEYBYTES","crypto_stream_salsa20_MESSAGEBYTES_MAX","crypto_stream_salsa20_NONCEBYTES","crypto_stream_xchacha20_KEYBYTES","crypto_stream_xchacha20_MESSAGEBYTES_MAX","crypto_stream_xchacha20_NONCEBYTES","crypto_stream_xsalsa20_KEYBYTES","crypto_stream_xsalsa20_MESSAGEBYTES_MAX","crypto_stream_xsalsa20_NONCEBYTES","crypto_verify_16_BYTES","crypto_verify_32_BYTES","crypto_verify_64_BYTES"];for(ed=0;ed<eu.length;ed++)"function"==typeof(ei=eo["_"+eu[ed].toLowerCase()])&&(en[eu[ed]]=ei());var ef=["SODIUM_VERSION_STRING","crypto_pwhash_STRPREFIX","crypto_pwhash_scryptsalsa208sha256_STRPREFIX"];for(ed=0;ed<ef.length;ed++)"function"==typeof(ei=eo["_"+ef[ed].toLowerCase()])&&(en[ef[ed]]=eo.UTF8ToString(ei()))}eo=ei;try{a();var ea=new Uint8Array([98,97,108,108,115]),es=en.randombytes_buf(en.crypto_secretbox_NONCEBYTES),ed=en.randombytes_buf(en.crypto_secretbox_KEYBYTES),eu=en.crypto_secretbox_easy(ea,es,ed),ef=en.crypto_secretbox_open_easy(eu,es,ed);if(en.memcmp(ea,ef))return}catch(en){if(null==eo.useBackupModule)throw Error("Both wasm and asm failed to load"+en)}eo.useBackupModule(),a()});function n(en){if("function"==typeof TextEncoder)return(new TextEncoder).encode(en);en=unescape(encodeURIComponent(en));for(var ei=new Uint8Array(en.length),eo=0,ea=en.length;eo<ea;
14eo++)ei[eo]=en.charCodeAt(eo);return ei}function s(en){if("function"==typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(en);var ei=8192,eo=Math.ceil(en.length/ei);if(eo<=1)try{return decodeURIComponent(escape(String.fromCharCode.apply(null,en)))}catch(en){throw TypeError("The encoded data was not valid.")}for(var ea="",es=0,ed=0;ed<eo;ed++){var eu=Array.prototype.slice.call(en,ed*ei+es,(ed+1)*ei+es);if(0!=eu.length){var ef,ep=eu.length,em=0;do{var eg=eu[--ep];eg>=240?(em=4,ef=!0):eg>=224?(em=3,ef=!0):eg>=192?(em=2,ef=!0):eg<128&&(em=1,ef=!0)}while(!ef);for(var ey=em-(eu.length-ep),eb=0;eb<ey;eb++)es--,eu.pop();ea+=s(eu)}}return ea}function c(en){en=x(null,en,"input");for(var ei,eo,ea,es="",ed=0;ed<en.length;ed++)es+=String.fromCharCode(255&(ea=87+(eo=15&en[ed])+(eo-10>>8&-39)<<8|87+(ei=en[ed]>>>4)+(ei-10>>8&-39)))+String.fromCharCode(ea>>>8);return es}var ed={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function h(en){if(null==en)return ed.URLSAFE_NO_PADDING;if(en!==ed.ORIGINAL&&en!==ed.ORIGINAL_NO_PADDING&&en!==ed.URLSAFE&&en!=ed.URLSAFE_NO_PADDING)throw Error("unsupported base64 variant");return en}function p(en,ei){ei=h(ei);var ea,es=[],ed=0|Math.floor((en=x(es,en,"input")).length/3),eu=en.length-3*ed,ef=4*ed+(0!==eu?0==(2&ei)?4:2+(eu>>>1):0),ep=new u(ef+1),em=d(en);return es.push(em),es.push(ep.address),0===eo._sodium_bin2base64(ep.address,ep.length,em,en.length,ei)&&b(es,"conversion failed"),ep.length=ef,ea=s(ep.to_Uint8Array()),g(es),ea}function y(en,ei){var eo=ei||ea;if(!i(eo))throw Error(eo+" output format is not available");if(en instanceof u){if("uint8array"===eo)return en.to_Uint8Array();if("text"===eo)return s(en.to_Uint8Array());if("hex"===eo)return c(en.to_Uint8Array());if("base64"===eo)return p(en.to_Uint8Array(),ed.URLSAFE_NO_PADDING);throw Error('What is output format "'+eo+'"?')}if("object"==typeof en){for(var es=Object.keys(en),eu={},ef=0;ef<es.length;ef++)eu[es[ef]]=y(en[es[ef]],eo);return eu}if("string"==typeof en)return en;throw TypeError("Cannot format output")}function i(en){for(var ei=["uint8array","text","hex","base64"],eo=0;eo<ei.length;eo++)if(ei[eo]===en)return!0;return!1}function l(en){if(en){if("string"!=typeof en)throw TypeError("When defined, the output format must be a string");if(!i(en))throw Error(en+" is not a supported output format")}}function u(en){this.length=en,this.address=v(en)}function d(en){var ei=v(en.length);return eo.HEAPU8.set(en,ei),ei}function v(en){var ei=eo._malloc(en);if(0===ei)throw{message:"_malloc() failed",length:en};return ei}function g(en){if(en)for(var ei,ea=0;ea<en.length;ea++)ei=en[ea],eo._free(ei)}function b(en,ei){throw g(en),Error(ei)}function f(en,ei){throw g(en),TypeError(ei)}function m(en,ei,eo){null==ei&&f(en,eo+" cannot be null or undefined")}function x(en,ei,eo){return m(en,ei,eo),ei instanceof Uint8Array?ei:"string"==typeof ei?n(ei):void f(en,"unsupported input type for "+eo)}function E(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=null;null!=en&&(ep=d(en=x(ef,en,"secret_nonce")),en.length,ef.push(ep)),ei=x(ef,ei,"ciphertext");var em,eg=eo._crypto_aead_aegis128l_abytes(),ey=ei.length;ey<eg&&f(ef,"ciphertext is too short"),em=d(ei),ef.push(em);var eb=null,eS=0;null!=ea&&(eb=d(ea=x(ef,ea,"additional_data")),eS=ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var e_,eR=0|eo._crypto_aead_aegis128l_npubbytes();
vendor: 52,933 bytes, line 14
14es.length!==eR&&f(ef,"invalid public_nonce length"),e_=d(es),ef.push(e_),ed=x(ef,ed,"key");var eA,ew=0|eo._crypto_aead_aegis128l_keybytes();ed.length!==ew&&f(ef,"invalid key length"),eA=d(ed),ef.push(eA);var eO=new u(ey-eo._crypto_aead_aegis128l_abytes()|0),eE=eO.address;if(ef.push(eE),0===eo._crypto_aead_aegis128l_decrypt(eE,null,ep,em,ey,0,eb,eS,0,e_,eA)){var eP=y(eO,eu);return g(ef),eP}b(ef,"ciphertext cannot be decrypted using that key")}function k(en,ei,ea,es,ed,eu,ef){var ep=[];l(ef);var em=null;null!=en&&(em=d(en=x(ep,en,"secret_nonce")),en.length,ep.push(em));var eg=d(ei=x(ep,ei,"ciphertext")),ey=ei.length;ep.push(eg),ea=x(ep,ea,"mac");var eb,eS=0|eo._crypto_box_macbytes();ea.length!==eS&&f(ep,"invalid mac length"),eb=d(ea),ep.push(eb);var e_=null,eR=0;null!=es&&(e_=d(es=x(ep,es,"additional_data")),eR=es.length,ep.push(e_)),ed=x(ep,ed,"public_nonce");var eA,ew=0|eo._crypto_aead_aegis128l_npubbytes();ed.length!==ew&&f(ep,"invalid public_nonce length"),eA=d(ed),ep.push(eA),eu=x(ep,eu,"key");var eO,eE=0|eo._crypto_aead_aegis128l_keybytes();eu.length!==eE&&f(ep,"invalid key length"),eO=d(eu),ep.push(eO);var eP=new u(0|ey),eC=eP.address;if(ep.push(eC),0===eo._crypto_aead_aegis128l_decrypt_detached(eC,em,eg,ey,0,eb,e_,eR,0,eA,eO)){var eT=y(eP,ef);return g(ep),eT}b(ep,"ciphertext cannot be decrypted using that key")}function S(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_aegis128l_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_aegis128l_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(em+eo._crypto_aead_aegis128l_abytes()|0),eO=ew.address;if(ef.push(eO),0===eo._crypto_aead_aegis128l_encrypt(eO,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eE=y(ew,eu);return g(ef),eE}b(ef,"invalid usage")}function T(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_aegis128l_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_aegis128l_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(0|em),eO=ew.address;ef.push(eO);var eE=new u(0|eo._crypto_aead_aegis128l_abytes()),eP=eE.address;if(ef.push(eP),0===eo._crypto_aead_aegis128l_encrypt_detached(eO,eP,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eC=y({ciphertext:ew,mac:eE},eu);return g(ef),eC}b(ef,"invalid usage")}function w(en){var ei=[];l(en);var ea=new u(0|eo._crypto_aead_aegis128l_keybytes()),es=ea.address;ei.push(es),eo._crypto_aead_aegis128l_keygen(es);var ed=y(ea,en);return g(ei),ed}function Y(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=null;null!=en&&(ep=d(en=x(ef,en,"secret_nonce")),en.length,ef.push(ep)),ei=x(ef,ei,"ciphertext");var em,eg=eo._crypto_aead_aegis256_abytes(),ey=ei.length;ey<eg&&f(ef,"ciphertext is too short"),em=d(ei),ef.push(em);var eb=null,eS=0;null!=ea&&(eb=d(ea=x(ef,ea,"additional_data")),eS=ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var e_,eR=0|eo._crypto_aead_aegis256_npubbytes();es.length!==eR&&f(ef,"invalid public_nonce length"),e_=d(es),ef.push(e_),ed=x(ef,ed,"key");var eA,ew=0|eo._crypto_aead_aegis256_keybytes();ed.length!==ew&&f(ef,"invalid key length"),eA=d(ed),ef.push(eA);var eO=new u(ey-eo._crypto_aead_aegis256_abytes()|0),eE=eO.address;if(ef.push(eE),0===eo._crypto_aead_aegis256_decrypt(eE,null,ep,em,ey,0,eb,eS,0,e_,eA)){var eP=y(eO,eu);return g(ef),eP}b(ef,"ciphertext cannot be decrypted using that key")}function B(en,ei,ea,es,ed,eu,ef){var ep=[];l(ef);var em=null;null!=en&&(em=d(en=x(ep,en,"secret_nonce")),en.length,ep.push(em));var eg=d(ei=x(ep,ei,"ciphertext")),ey=ei.length;ep.push(eg),ea=x(ep,ea,"mac");var eb,eS=0|eo._crypto_box_macbytes();ea.length!==eS&&f(ep,"invalid mac length"),eb=d(ea),ep.push(eb);var e_=null,eR=0;null!=es&&(e_=d(es=x(ep,es,"additional_data")),eR=es.length,ep.push(e_)),ed=x(ep,ed,"public_nonce");var eA,ew=0|eo._crypto_aead_aegis256_npubbytes();ed.length!==ew&&f(ep,"invalid public_nonce length"),eA=d(ed),ep.push(eA),eu=x(ep,eu,"key");var eO,eE=0|eo._crypto_aead_aegis256_keybytes();eu.length!==eE&&f(ep,"invalid key length"),eO=d(eu),ep.push(eO);var eP=new u(0|ey),eC=eP.address;if(ep.push(eC),0===eo._crypto_aead_aegis256_decrypt_detached(eC,em,eg,ey,0,eb,e_,eR,0,eA,eO)){var eT=y(eP,ef);return g(ep),eT}b(ep,"ciphertext cannot be decrypted using that key")}function A(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_aegis256_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_aegis256_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(em+eo._crypto_aead_aegis256_abytes()|0),eO=ew.address;if(ef.push(eO),0===eo._crypto_aead_aegis256_encrypt(eO,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eE=y(ew,eu);return g(ef),eE}b(ef,"invalid usage")}function K(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_aegis256_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_aegis256_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(0|em),eO=ew.address;ef.push(eO);var eE=new u(0|eo._crypto_aead_aegis256_abytes()),eP=eE.address;if(ef.push(eP),0===eo._crypto_aead_aegis256_encrypt_detached(eO,eP,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eC=y({ciphertext:ew,mac:eE},eu);return g(ef),eC}b(ef,"invalid usage")}function M(en){var ei=[];l(en);var ea=new u(0|eo._crypto_aead_aegis256_keybytes()),es=ea.address;ei.push(es),eo._crypto_aead_aegis256_keygen(es);var ed=y(ea,en);return g(ei),ed}function I(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=null;null!=en&&(ep=d(en=x(ef,en,"secret_nonce")),en.length,ef.push(ep)),ei=x(ef,ei,"ciphertext");var em,eg=eo._crypto_aead_chacha20poly1305_abytes(),ey=ei.length;ey<eg&&f(ef,"ciphertext is too short"),em=d(ei),ef.push(em);var eb=null,eS=0;null!=ea&&(eb=d(ea=x(ef,ea,"additional_data")),eS=ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var e_,eR=0|eo._crypto_aead_chacha20poly1305_npubbytes();es.length!==eR&&f(ef,"invalid public_nonce length"),e_=d(es),ef.push(e_),ed=x(ef,ed,"key");var eA,ew=0|eo._crypto_aead_chacha20poly1305_keybytes();ed.length!==ew&&f(ef,"invalid key length"),eA=d(ed),ef.push(eA);var eO=new u(ey-eo._crypto_aead_chacha20poly1305_abytes()|0),eE=eO.address;if(ef.push(eE),0===eo._crypto_aead_chacha20poly1305_decrypt(eE,null,ep,em,ey,0,eb,eS,0,e_,eA)){var eP=y(eO,eu);return g(ef),eP}b(ef,"ciphertext cannot be decrypted using that key")}function N(en,ei,ea,es,ed,eu,ef){var ep=[];l(ef);var em=null;null!=en&&(em=d(en=x(ep,en,"secret_nonce")),en.length,ep.push(em));var eg=d(ei=x(ep,ei,"ciphertext")),ey=ei.length;ep.push(eg),ea=x(ep,ea,"mac");var eb,eS=0|eo._crypto_box_macbytes();ea.length!==eS&&f(ep,"invalid mac length"),eb=d(ea),ep.push(eb);var e_=null,eR=0;null!=es&&(e_=d(es=x(ep,es,"additional_data")),eR=es.length,ep.push(e_)),ed=x(ep,ed,"public_nonce");var eA,ew=0|eo._crypto_aead_chacha20poly1305_npubbytes();ed.length!==ew&&f(ep,"invalid public_nonce length"),eA=d(ed),ep.push(eA),eu=x(ep,eu,"key");var eO,eE=0|eo._crypto_aead_chacha20poly1305_keybytes();eu.length!==eE&&f(ep,"invalid key length"),eO=d(eu),ep.push(eO);var eP=new u(0|ey),eC=eP.address;if(ep.push(eC),0===eo._crypto_aead_chacha20poly1305_decrypt_detached(eC,em,eg,ey,0,eb,e_,eR,0,eA,eO)){var eT=y(eP,ef);return g(ep),eT}b(ep,"ciphertext cannot be decrypted using that key")}function L(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_chacha20poly1305_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_chacha20poly1305_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(em+eo._crypto_aead_chacha20poly1305_abytes()|0),eO=ew.address;if(ef.push(eO),0===eo._crypto_aead_chacha20poly1305_encrypt(eO,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eE=y(ew,eu);return g(ef),eE}b(ef,"invalid usage")}function U(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_chacha20poly1305_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_chacha20poly1305_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(0|em),eO=ew.address;ef.push(eO);var eE=new u(0|eo._crypto_aead_chacha20poly1305_abytes()),eP=eE.address;if(ef.push(eP),0===eo._crypto_aead_chacha20poly1305_encrypt_detached(eO,eP,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eC=y({ciphertext:ew,mac:eE},eu);return g(ef),eC}b(ef,"invalid usage")}function O(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=null;null!=en&&(ep=d(en=x(ef,en,"secret_nonce")),en.length,ef.push(ep)),ei=x(ef,ei,"ciphertext");var em,eg=eo._crypto_aead_chacha20poly1305_ietf_abytes(),ey=ei.length;ey<eg&&f(ef,"ciphertext is too short"),em=d(ei),ef.push(em);var eb=null,eS=0;null!=ea&&(eb=d(ea=x(ef,ea,"additional_data")),eS=ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var e_,eR=0|eo._crypto_aead_chacha20poly1305_ietf_npubbytes();es.length!==eR&&f(ef,"invalid public_nonce length"),e_=d(es),ef.push(e_),ed=x(ef,ed,"key");var eA,ew=0|eo._crypto_aead_chacha20poly1305_ietf_keybytes();ed.length!==ew&&f(ef,"invalid key length"),eA=d(ed),ef.push(eA);var eO=new u(ey-eo._crypto_aead_chacha20poly1305_ietf_abytes()|0),eE=eO.address;if(ef.push(eE),0===eo._crypto_aead_chacha20poly1305_ietf_decrypt(eE,null,ep,em,ey,0,eb,eS,0,e_,eA)){var eP=y(eO,eu);return g(ef),eP}b(ef,"ciphertext cannot be decrypted using that key")}function C(en,ei,ea,es,ed,eu,ef){var ep=[];l(ef);var em=null;null!=en&&(em=d(en=x(ep,en,"secret_nonce")),en.length,ep.push(em));var eg=d(ei=x(ep,ei,"ciphertext")),ey=ei.length;ep.push(eg),ea=x(ep,ea,"mac");var eb,eS=0|eo._crypto_box_macbytes();ea.length!==eS&&f(ep,"invalid mac length"),eb=d(ea),ep.push(eb);var e_=null,eR=0;null!=es&&(e_=d(es=x(ep,es,"additional_data")),eR=es.length,ep.push(e_)),ed=x(ep,ed,"public_nonce");var eA,ew=0|eo._crypto_aead_chacha20poly1305_ietf_npubbytes();ed.length!==ew&&f(ep,"invalid public_nonce length"),eA=d(ed),ep.push(eA),eu=x(ep,eu,"key");var eO,eE=0|eo._crypto_aead_chacha20poly1305_ietf_keybytes();eu.length!==eE&&f(ep,"invalid key length"),eO=d(eu),ep.push(eO);var eP=new u(0|ey),eC=eP.address;if(ep.push(eC),0===eo._crypto_aead_chacha20poly1305_ietf_decrypt_detached(eC,em,eg,ey,0,eb,e_,eR,0,eA,eO)){var eT=y(eP,ef);return g(ep),eT}b(ep,"ciphertext cannot be decrypted using that key")}function R(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_chacha20poly1305_ietf_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_chacha20poly1305_ietf_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(em+eo._crypto_aead_chacha20poly1305_ietf_abytes()|0),eO=ew.address;if(ef.push(eO),0===eo._crypto_aead_chacha20poly1305_ietf_encrypt(eO,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eE=y(ew,eu);return g(ef),eE}b(ef,"invalid usage")}function P(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_chacha20poly1305_ietf_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_chacha20poly1305_ietf_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(0|em),eO=ew.address;ef.push(eO);var eE=new u(0|eo._crypto_aead_chacha20poly1305_ietf_abytes()),eP=eE.address;if(ef.push(eP),0===eo._crypto_aead_chacha20poly1305_ietf_encrypt_detached(eO,eP,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eC=y({ciphertext:ew,mac:eE},eu);return g(ef),eC}b(ef,"invalid usage")}function G(en){var ei=[];l(en);var ea=new u(0|eo._crypto_aead_chacha20poly1305_ietf_keybytes()),es=ea.address;ei.push(es),eo._crypto_aead_chacha20poly1305_ietf_keygen(es);var ed=y(ea,en);return g(ei),ed}function X(en){var ei=[];l(en);var ea=new u(0|eo._crypto_aead_chacha20poly1305_keybytes()),es=ea.address;ei.push(es),eo._crypto_aead_chacha20poly1305_keygen(es);var ed=y(ea,en);return g(ei),ed}function D(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=null;null!=en&&(ep=d(en=x(ef,en,"secret_nonce")),en.length,ef.push(ep)),ei=x(ef,ei,"ciphertext");var em,eg=eo._crypto_aead_xchacha20poly1305_ietf_abytes(),ey=ei.length;ey<eg&&f(ef,"ciphertext is too short"),em=d(ei),ef.push(em);var eb=null,eS=0;null!=ea&&(eb=d(ea=x(ef,ea,"additional_data")),eS=ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var e_,eR=0|eo._crypto_aead_xchacha20poly1305_ietf_npubbytes();es.length!==eR&&f(ef,"invalid public_nonce length"),e_=d(es),ef.push(e_),ed=x(ef,ed,"key");var eA,ew=0|eo._crypto_aead_xchacha20poly1305_ietf_keybytes();ed.length!==ew&&f(ef,"invalid key length"),eA=d(ed),ef.push(eA);var eO=new u(ey-eo._crypto_aead_xchacha20poly1305_ietf_abytes()|0),eE=eO.address;if(ef.push(eE),0===eo._crypto_aead_xchacha20poly1305_ietf_decrypt(eE,null,ep,em,ey,0,eb,eS,0,e_,eA)){var eP=y(eO,eu);return g(ef),eP}b(ef,"ciphertext cannot be decrypted using that key")}function F(en,ei,ea,es,ed,eu,ef){var ep=[];l(ef);var em=null;null!=en&&(em=d(en=x(ep,en,"secret_nonce")),en.length,ep.push(em));var eg=d(ei=x(ep,ei,"ciphertext")),ey=ei.length;ep.push(eg),ea=x(ep,ea,"mac");var eb,eS=0|eo._crypto_box_macbytes();ea.length!==eS&&f(ep,"invalid mac length"),eb=d(ea),ep.push(eb);var e_=null,eR=0;null!=es&&(e_=d(es=x(ep,es,"additional_data")),eR=es.length,ep.push(e_)),ed=x(ep,ed,"public_nonce");var eA,ew=0|eo._crypto_aead_xchacha20poly1305_ietf_npubbytes();ed.length!==ew&&f(ep,"invalid public_nonce length"),eA=d(ed),ep.push(eA),eu=x(ep,eu,"key");var eO,eE=0|eo._crypto_aead_xchacha20poly1305_ietf_keybytes();eu.length!==eE&&f(ep,"invalid key length"),eO=d(eu),ep.push(eO);var eP=new u(0|ey),eC=eP.address;if(ep.push(eC),0===eo._crypto_aead_xchacha20poly1305_ietf_decrypt_detached(eC,em,eg,ey,0,eb,e_,eR,0,eA,eO)){var eT=y(eP,ef);return g(ep),eT}b(ep,"ciphertext cannot be decrypted using that key")}function V(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_xchacha20poly1305_ietf_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_xchacha20poly1305_ietf_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(em+eo._crypto_aead_xchacha20poly1305_ietf_abytes()|0),eO=ew.address;if(ef.push(eO),0===eo._crypto_aead_xchacha20poly1305_ietf_encrypt(eO,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eE=y(ew,eu);return g(ef),eE}b(ef,"invalid usage")}function H(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"message")),em=en.length;ef.push(ep);var eg=null,ey=0;null!=ei&&(eg=d(ei=x(ef,ei,"additional_data")),ey=ei.length,ef.push(eg));var eb=null;null!=ea&&(eb=d(ea=x(ef,ea,"secret_nonce")),ea.length,ef.push(eb)),es=x(ef,es,"public_nonce");var eS,e_=0|eo._crypto_aead_xchacha20poly1305_ietf_npubbytes();es.length!==e_&&f(ef,"invalid public_nonce length"),eS=d(es),ef.push(eS),ed=x(ef,ed,"key");var eR,eA=0|eo._crypto_aead_xchacha20poly1305_ietf_keybytes();ed.length!==eA&&f(ef,"invalid key length"),eR=d(ed),ef.push(eR);var ew=new u(0|em),eO=ew.address;ef.push(eO);var eE=new u(0|eo._crypto_aead_xchacha20poly1305_ietf_abytes()),eP=eE.address;if(ef.push(eP),0===eo._crypto_aead_xchacha20poly1305_ietf_encrypt_detached(eO,eP,null,ep,em,0,eg,ey,0,eb,eS,eR)){var eC=y({ciphertext:ew,mac:eE},eu);return g(ef),eC}b(ef,"invalid usage")}function q(en){var ei=[];l(en);var ea=new u(0|eo._crypto_aead_xchacha20poly1305_ietf_keybytes()),es=ea.address;ei.push(es),eo._crypto_aead_xchacha20poly1305_ietf_keygen(es);var ed=y(ea,en);return g(ei),ed}function j(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"key");var ef,ep=0|eo._crypto_auth_keybytes();ei.length!==ep&&f(es,"invalid key length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_auth_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_auth(eg,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function z(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"key");var ef,ep=0|eo._crypto_auth_hmacsha256_keybytes();ei.length!==ep&&f(es,"invalid key length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_auth_hmacsha256_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_auth_hmacsha256(eg,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function W(en,ei){var ea=[];l(ei),m(ea,en,"state_address");var es=new u(0|eo._crypto_auth_hmacsha256_bytes()),ed=es.address;if(ea.push(ed),0==(0|eo._crypto_auth_hmacsha256_final(en,ed))){var eu=(eo._free(en),y(es,ei));return g(ea),eu}b(ea,"invalid usage")}function J(en,ei){var ea=[];l(ei);var es=null,ed=0;null!=en&&(es=d(en=x(ea,en,"key")),ed=en.length,ea.push(es));var eu=new u(208).address;if(0==(0|eo._crypto_auth_hmacsha256_init(eu,es,ed))){var ef=eu;return g(ea),ef}b(ea,"invalid usage")}function Q(en){var ei=[];l(en);var ea=new u(0|eo._crypto_auth_hmacsha256_keybytes()),es=ea.address;ei.push(es),eo._crypto_auth_hmacsha256_keygen(es);var ed=y(ea,en);return g(ei),ed}function Z(en,ei,ea){var es=[];l(ea),m(es,en,"state_address");var ed=d(ei=x(es,ei,"message_chunk")),eu=ei.length;es.push(ed),0!=(0|eo._crypto_auth_hmacsha256_update(en,ed,eu))&&b(es,"invalid usage"),g(es)}function $(en,ei,ea){var es=[];en=x(es,en,"tag");var ed,eu=0|eo._crypto_auth_hmacsha256_bytes();en.length!==eu&&f(es,"invalid tag length"),ed=d(en),es.push(ed);var ef=d(ei=x(es,ei,"message")),ep=ei.length;es.push(ef),ea=x(es,ea,"key");var em,eg=0|eo._crypto_auth_hmacsha256_keybytes();ea.length!==eg&&f(es,"invalid key length"),em=d(ea),es.push(em);var ey=0==(0|eo._crypto_auth_hmacsha256_verify(ed,ef,ep,0,em));return g(es),ey}function ee(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"key");var ef,ep=0|eo._crypto_auth_hmacsha512_keybytes();ei.length!==ep&&f(es,"invalid key length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_auth_hmacsha512_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_auth_hmacsha512(eg,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function re(en,ei){var ea=[];l(ei),m(ea,en,"state_address");var es=new u(0|eo._crypto_auth_hmacsha512_bytes()),ed=es.address;if(ea.push(ed),0==(0|eo._crypto_auth_hmacsha512_final(en,ed))){var eu=(eo._free(en),y(es,ei));return g(ea),eu}b(ea,"invalid usage")}function te(en,ei){var ea=[];l(ei);var es=null,ed=0;null!=en&&(es=d(en=x(ea,en,"key")),ed=en.length,ea.push(es));var eu=new u(416).address;if(0==(0|eo._crypto_auth_hmacsha512_init(eu,es,ed))){var ef=eu;return g(ea),ef}b(ea,"invalid usage")}function ae(en){var ei=[];l(en);var ea=new u(0|eo._crypto_auth_hmacsha512_keybytes()),es=ea.address;ei.push(es),eo._crypto_auth_hmacsha512_keygen(es);var ed=y(ea,en);return g(ei),ed}function _e(en,ei,ea){var es=[];l(ea),m(es,en,"state_address");var ed=d(ei=x(es,ei,"message_chunk")),eu=ei.length;es.push(ed),0!=(0|eo._crypto_auth_hmacsha512_update(en,ed,eu))&&b(es,"invalid usage"),g(es)}function ne(en,ei,ea){var es=[];en=x(es,en,"tag");var ed,eu=0|eo._crypto_auth_hmacsha512_bytes();en.length!==eu&&f(es,"invalid tag length"),ed=d(en),es.push(ed);var ef=d(ei=x(es,ei,"message")),ep=ei.length;es.push(ef),ea=x(es,ea,"key");var em,eg=0|eo._crypto_auth_hmacsha512_keybytes();ea.length!==eg&&f(es,"invalid key length"),em=d(ea),es.push(em);var ey=0==(0|eo._crypto_auth_hmacsha512_verify(ed,ef,ep,0,em));return g(es),ey}function se(en){var ei=[];l(en);var ea=new u(0|eo._crypto_auth_keybytes()),es=ea.address;ei.push(es),eo._crypto_auth_keygen(es);var ed=y(ea,en);return g(ei),ed}function ce(en,ei,ea){var es=[];en=x(es,en,"tag");var ed,eu=0|eo._crypto_auth_bytes();en.length!==eu&&f(es,"invalid tag length"),ed=d(en),es.push(ed);var ef=d(ei=x(es,ei,"message")),ep=ei.length;es.push(ef),ea=x(es,ea,"key");var em,eg=0|eo._crypto_auth_keybytes();ea.length!==eg&&f(es,"invalid key length"),em=d(ea),es.push(em);var ey=0==(0|eo._crypto_auth_verify(ed,ef,ep,0,em));return g(es),ey}function oe(en,ei,ea){var es=[];l(ea),en=x(es,en,"publicKey");var ed,eu=0|eo._crypto_box_publickeybytes();en.length!==eu&&f(es,"invalid publicKey length"),ed=d(en),es.push(ed),ei=x(es,ei,"privateKey");var ef,ep=0|eo._crypto_box_secretkeybytes();ei.length!==ep&&f(es,"invalid privateKey length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_box_beforenmbytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_box_beforenm(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function he(en,ei,ea){var es=[];l(ea),en=x(es,en,"publicKey");var ed,eu=0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes();en.length!==eu&&f(es,"invalid publicKey length"),ed=d(en),es.push(ed),ei=x(es,ei,"privateKey");var ef,ep=0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes();ei.length!==ep&&f(es,"invalid privateKey length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_box_curve25519xchacha20poly1305_beforenmbytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_box_curve25519xchacha20poly1305_beforenm(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function pe(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"message")),ep=en.length;eu.push(ef),ei=x(eu,ei,"nonce");var em,eg=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ei.length!==eg&&f(eu,"invalid nonce length"),em=d(ei),eu.push(em),ea=x(eu,ea,"publicKey");var ey,eb=0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes();ea.length!==eb&&f(eu,"invalid publicKey length"),ey=d(ea),eu.push(ey),es=x(eu,es,"privateKey");var eS,e_=0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes();es.length!==e_&&f(eu,"invalid privateKey length"),eS=d(es),eu.push(eS);var eR=new u(0|ep),eA=eR.address;eu.push(eA);var ew=new u(0|eo._crypto_box_curve25519xchacha20poly1305_macbytes()),eO=ew.address;if(eu.push(eO),0==(0|eo._crypto_box_curve25519xchacha20poly1305_detached(eA,eO,ef,ep,0,em,ey,eS))){var eE=y({ciphertext:eR,mac:ew},ed);return g(eu),eE}b(eu,"invalid usage")}function ye(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"sharedKey");var eg,ey=0|eo._crypto_box_curve25519xchacha20poly1305_beforenmbytes();ea.length!==ey&&f(ed,"invalid sharedKey length"),eg=d(ea),ed.push(eg);var eb=new u(0|ef),eS=eb.address;ed.push(eS);var e_=new u(0|eo._crypto_box_curve25519xchacha20poly1305_macbytes()),eR=e_.address;if(ed.push(eR),0==(0|eo._crypto_box_curve25519xchacha20poly1305_detached_afternm(eS,eR,eu,ef,0,ep,eg))){var eA=y({ciphertext:eb,mac:e_},es);return g(ed),eA}b(ed,"invalid usage")}function ie(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"message")),ep=en.length;eu.push(ef),ei=x(eu,ei,"nonce");var em,eg=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ei.length!==eg&&f(eu,"invalid nonce length"),em=d(ei),eu.push(em),ea=x(eu,ea,"publicKey");var ey,eb=0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes();ea.length!==eb&&f(eu,"invalid publicKey length"),ey=d(ea),eu.push(ey),es=x(eu,es,"privateKey");var eS,e_=0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes();es.length!==e_&&f(eu,"invalid privateKey length"),eS=d(es),eu.push(eS);var eR=new u(ep+eo._crypto_box_curve25519xchacha20poly1305_macbytes()|0),eA=eR.address;if(eu.push(eA),0==(0|eo._crypto_box_curve25519xchacha20poly1305_easy(eA,ef,ep,0,em,ey,eS))){var ew=y(eR,ed);return g(eu),ew}b(eu,"invalid usage")}function le(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"sharedKey");var eg,ey=0|eo._crypto_box_curve25519xchacha20poly1305_beforenmbytes();ea.length!==ey&&f(ed,"invalid sharedKey length"),eg=d(ea),ed.push(eg);var eb=new u(ef+eo._crypto_box_curve25519xchacha20poly1305_macbytes()|0),eS=eb.address;if(ed.push(eS),0==(0|eo._crypto_box_curve25519xchacha20poly1305_easy_afternm(eS,eu,ef,0,ep,eg))){var e_=y(eb,es);return g(ed),e_}b(ed,"invalid usage")}function ue(en){var ei=[];l(en);var ea=new u(0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes()),es=ea.address;ei.push(es);var ed=new u(0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),eu=ed.address;ei.push(eu),eo._crypto_box_curve25519xchacha20poly1305_keypair(es,eu);var ef=y({publicKey:ea,privateKey:ed,keyType:"curve25519"},en);return g(ei),ef}function de(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"ciphertext")),em=en.length;ef.push(ep),ei=x(ef,ei,"mac");var eg,ey=0|eo._crypto_box_curve25519xchacha20poly1305_macbytes();ei.length!==ey&&f(ef,"invalid mac length"),eg=d(ei),ef.push(eg),ea=x(ef,ea,"nonce");var eb,eS=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ea.length!==eS&&f(ef,"invalid nonce length"),eb=d(ea),ef.push(eb),es=x(ef,es,"publicKey");var e_,eR=0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes();es.length!==eR&&f(ef,"invalid publicKey length"),e_=d(es),ef.push(e_),ed=x(ef,ed,"privateKey");var eA,ew=0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes();ed.length!==ew&&f(ef,"invalid privateKey length"),eA=d(ed),ef.push(eA);var eO=new u(0|em),eE=eO.address;if(ef.push(eE),0==(0|eo._crypto_box_curve25519xchacha20poly1305_open_detached(eE,ep,eg,em,0,eb,e_,eA))){var eP=y(eO,eu);return g(ef),eP}b(ef,"incorrect key pair for the given ciphertext")}function ve(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"ciphertext")),ep=en.length;eu.push(ef),ei=x(eu,ei,"mac");var em,eg=0|eo._crypto_box_curve25519xchacha20poly1305_macbytes();ei.length!==eg&&f(eu,"invalid mac length"),em=d(ei),eu.push(em),ea=x(eu,ea,"nonce");var ey,eb=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ea.length!==eb&&f(eu,"invalid nonce length"),ey=d(ea),eu.push(ey),es=x(eu,es,"sharedKey");var eS,e_=0|eo._crypto_box_curve25519xchacha20poly1305_beforenmbytes();es.length!==e_&&f(eu,"invalid sharedKey length"),eS=d(es),eu.push(eS);var eR=new u(0|ep),eA=eR.address;if(eu.push(eA),0==(0|eo._crypto_box_curve25519xchacha20poly1305_open_detached_afternm(eA,ef,em,ep,0,ey,eS))){var ew=y(eR,ed);return g(eu),ew}b(eu,"incorrect secret key for the given ciphertext")}function ge(en,ei,ea,es,ed){var eu=[];l(ed),en=x(eu,en,"ciphertext");var ef,ep=eo._crypto_box_curve25519xchacha20poly1305_macbytes(),em=en.length;em<ep&&f(eu,"ciphertext is too short"),ef=d(en),eu.push(ef),ei=x(eu,ei,"nonce");var eg,ey=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ei.length!==ey&&f(eu,"invalid nonce length"),eg=d(ei),eu.push(eg),ea=x(eu,ea,"publicKey");var eb,eS=0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes();ea.length!==eS&&f(eu,"invalid publicKey length"),eb=d(ea),eu.push(eb),es=x(eu,es,"privateKey");var e_,eR=0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes();es.length!==eR&&f(eu,"invalid privateKey length"),e_=d(es),eu.push(e_);var eA=new u(em-eo._crypto_box_curve25519xchacha20poly1305_macbytes()|0),ew=eA.address;if(eu.push(ew),0==(0|eo._crypto_box_curve25519xchacha20poly1305_open_easy(ew,ef,em,0,eg,eb,e_))){var eO=y(eA,ed);return g(eu),eO}b(eu,"incorrect key pair for the given ciphertext")}function be(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"ciphertext")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_box_curve25519xchacha20poly1305_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"sharedKey");var eg,ey=0|eo._crypto_box_curve25519xchacha20poly1305_beforenmbytes();ea.length!==ey&&f(ed,"invalid sharedKey length"),eg=d(ea),ed.push(eg);var eb=new u(ef-eo._crypto_box_curve25519xchacha20poly1305_macbytes()|0),eS=eb.address;if(ed.push(eS),0==(0|eo._crypto_box_curve25519xchacha20poly1305_open_easy_afternm(eS,eu,ef,0,ep,eg))){var e_=y(eb,es);return g(ed),e_}b(ed,"incorrect secret key for the given ciphertext")}function fe(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"publicKey");var ef,ep=0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes();ei.length!==ep&&f(es,"invalid publicKey length"),ef=d(ei),es.push(ef);var em=new u(eu+eo._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),eg=em.address;es.push(eg),eo._crypto_box_curve25519xchacha20poly1305_seal(eg,ed,eu,0,ef);var ey=y(em,ea);return g(es),ey}function me(en,ei,ea,es){var ed=[];l(es),en=x(ed,en,"ciphertext");var eu,ef=eo._crypto_box_curve25519xchacha20poly1305_sealbytes(),ep=en.length;ep<ef&&f(ed,"ciphertext is too short"),eu=d(en),ed.push(eu),ei=x(ed,ei,"publicKey");var em,eg=0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes();ei.length!==eg&&f(ed,"invalid publicKey length"),em=d(ei),ed.push(em),ea=x(ed,ea,"secretKey");var ey,eb=0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes();ea.length!==eb&&f(ed,"invalid secretKey length"),ey=d(ea),ed.push(ey);var eS=new u(ep-eo._crypto_box_curve25519xchacha20poly1305_sealbytes()|0),e_=eS.address;ed.push(e_),eo._crypto_box_curve25519xchacha20poly1305_seal_open(e_,eu,ep,0,em,ey);var eR=y(eS,es);return g(ed),eR}function xe(en,ei){var ea=[];l(ei),en=x(ea,en,"seed");var es,ed=0|eo._crypto_box_curve25519xchacha20poly1305_seedbytes();en.length!==ed&&f(ea,"invalid seed length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_box_curve25519xchacha20poly1305_publickeybytes()),ef=eu.address;ea.push(ef);var ep=new u(0|eo._crypto_box_curve25519xchacha20poly1305_secretkeybytes()),em=ep.address;if(ea.push(em),0==(0|eo._crypto_box_curve25519xchacha20poly1305_seed_keypair(ef,em,es))){var eg={publicKey:y(eu,ei),privateKey:y(ep,ei),keyType:"x25519"};return g(ea),eg}b(ea,"invalid usage")}function Ee(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"message")),ep=en.length;eu.push(ef),ei=x(eu,ei,"nonce");var em,eg=0|eo._crypto_box_noncebytes();ei.length!==eg&&f(eu,"invalid nonce length"),em=d(ei),eu.push(em),ea=x(eu,ea,"publicKey");var ey,eb=0|eo._crypto_box_publickeybytes();ea.length!==eb&&f(eu,"invalid publicKey length"),ey=d(ea),eu.push(ey),es=x(eu,es,"privateKey");var eS,e_=0|eo._crypto_box_secretkeybytes();es.length!==e_&&f(eu,"invalid privateKey length"),eS=d(es),eu.push(eS);var eR=new u(0|ep),eA=eR.address;eu.push(eA);var ew=new u(0|eo._crypto_box_macbytes()),eO=ew.address;if(eu.push(eO),0==(0|eo._crypto_box_detached(eA,eO,ef,ep,0,em,ey,eS))){var eE=y({ciphertext:eR,mac:ew},ed);return g(eu),eE}b(eu,"invalid usage")}function ke(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"message")),ep=en.length;eu.push(ef),ei=x(eu,ei,"nonce");var em,eg=0|eo._crypto_box_noncebytes();ei.length!==eg&&f(eu,"invalid nonce length"),em=d(ei),eu.push(em),ea=x(eu,ea,"publicKey");var ey,eb=0|eo._crypto_box_publickeybytes();ea.length!==eb&&f(eu,"invalid publicKey length"),ey=d(ea),eu.push(ey),es=x(eu,es,"privateKey");var eS,e_=0|eo._crypto_box_secretkeybytes();es.length!==e_&&f(eu,"invalid privateKey length"),eS=d(es),eu.push(eS);var eR=new u(ep+eo._crypto_box_macbytes()|0),eA=eR.address;if(eu.push(eA),0==(0|eo._crypto_box_easy(eA,ef,ep,0,em,ey,eS))){var ew=y(eR,ed);return g(eu),ew}b(eu,"invalid usage")}function Se(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_box_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"sharedKey");var eg,ey=0|eo._crypto_box_beforenmbytes();ea.length!==ey&&f(ed,"invalid sharedKey length"),eg=d(ea),ed.push(eg);var eb=new u(ef+eo._crypto_box_macbytes()|0),eS=eb.address;if(ed.push(eS),0==(0|eo._crypto_box_easy_afternm(eS,eu,ef,0,ep,eg))){var e_=y(eb,es);return g(ed),e_}b(ed,"invalid usage")}function Te(en){var ei=[];l(en);var ea=new u(0|eo._crypto_box_publickeybytes()),es=ea.address;ei.push(es);var ed=new u(0|eo._crypto_box_secretkeybytes()),eu=ed.address;if(ei.push(eu),0==(0|eo._crypto_box_keypair(es,eu))){var ef={publicKey:y(ea,en),privateKey:y(ed,en),keyType:"x25519"};return g(ei),ef}b(ei,"internal error")}function we(en,ei,ea,es,ed,eu){var ef=[];l(eu);var ep=d(en=x(ef,en,"ciphertext")),em=en.length;ef.push(ep),ei=x(ef,ei,"mac");var eg,ey=0|eo._crypto_box_macbytes();ei.length!==ey&&f(ef,"invalid mac length"),eg=d(ei),ef.push(eg),ea=x(ef,ea,"nonce");var eb,eS=0|eo._crypto_box_noncebytes();ea.length!==eS&&f(ef,"invalid nonce length"),eb=d(ea),ef.push(eb),es=x(ef,es,"publicKey");var e_,eR=0|eo._crypto_box_publickeybytes();es.length!==eR&&f(ef,"invalid publicKey length"),e_=d(es),ef.push(e_),ed=x(ef,ed,"privateKey");var eA,ew=0|eo._crypto_box_secretkeybytes();ed.length!==ew&&f(ef,"invalid privateKey length"),eA=d(ed),ef.push(eA);var eO=new u(0|em),eE=eO.address;if(ef.push(eE),0==(0|eo._crypto_box_open_detached(eE,ep,eg,em,0,eb,e_,eA))){var eP=y(eO,eu);return g(ef),eP}b(ef,"incorrect key pair for the given ciphertext")}function Ye(en,ei,ea,es,ed){var eu=[];l(ed),en=x(eu,en,"ciphertext");var ef,ep=eo._crypto_box_macbytes(),em=en.length;em<ep&&f(eu,"ciphertext is too short"),ef=d(en),eu.push(ef),ei=x(eu,ei,"nonce");var eg,ey=0|eo._crypto_box_noncebytes();ei.length!==ey&&f(eu,"invalid nonce length"),eg=d(ei),eu.push(eg),ea=x(eu,ea,"publicKey");var eb,eS=0|eo._crypto_box_publickeybytes();ea.length!==eS&&f(eu,"invalid publicKey length"),eb=d(ea),eu.push(eb),es=x(eu,es,"privateKey");var e_,eR=0|eo._crypto_box_secretkeybytes();es.length!==eR&&f(eu,"invalid privateKey length"),e_=d(es),eu.push(e_);var eA=new u(em-eo._crypto_box_macbytes()|0),ew=eA.address;if(eu.push(ew),0==(0|eo._crypto_box_open_easy(ew,ef,em,0,eg,eb,e_))){var eO=y(eA,ed);return g(eu),eO}b(eu,"incorrect key pair for the given ciphertext")}function Be(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"ciphertext")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_box_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"sharedKey");var eg,ey=0|eo._crypto_box_beforenmbytes();ea.length!==ey&&f(ed,"invalid sharedKey length"),eg=d(ea),ed.push(eg);var eb=new u(ef-eo._crypto_box_macbytes()|0),eS=eb.address;if(ed.push(eS),0==(0|eo._crypto_box_open_easy_afternm(eS,eu,ef,0,ep,eg))){var e_=y(eb,es);return g(ed),e_}b(ed,"incorrect secret key for the given ciphertext")}function Ae(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"publicKey");var ef,ep=0|eo._crypto_box_publickeybytes();ei.length!==ep&&f(es,"invalid publicKey length"),ef=d(ei),es.push(ef);var em=new u(eu+eo._crypto_box_sealbytes()|0),eg=em.address;if(es.push(eg),0==(0|eo._crypto_box_seal(eg,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function Ke(en,ei,ea,es){var ed=[];l(es),en=x(ed,en,"ciphertext");var eu,ef=eo._crypto_box_sealbytes(),ep=en.length;ep<ef&&f(ed,"ciphertext is too short"),eu=d(en),ed.push(eu),ei=x(ed,ei,"publicKey");var em,eg=0|eo._crypto_box_publickeybytes();ei.length!==eg&&f(ed,"invalid publicKey length"),em=d(ei),ed.push(em),ea=x(ed,ea,"privateKey");var ey,eb=0|eo._crypto_box_secretkeybytes();ea.length!==eb&&f(ed,"invalid privateKey length"),ey=d(ea),ed.push(ey);var eS=new u(ep-eo._crypto_box_sealbytes()|0),e_=eS.address;if(ed.push(e_),0==(0|eo._crypto_box_seal_open(e_,eu,ep,0,em,ey))){var eR=y(eS,es);return g(ed),eR}b(ed,"incorrect key pair for the given ciphertext")}function Me(en,ei){var ea=[];l(ei),en=x(ea,en,"seed");var es,ed=0|eo._crypto_box_seedbytes();en.length!==ed&&f(ea,"invalid seed length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_box_publickeybytes()),ef=eu.address;ea.push(ef);var ep=new u(0|eo._crypto_box_secretkeybytes()),em=ep.address;if(ea.push(em),0==(0|eo._crypto_box_seed_keypair(ef,em,es))){var eg={publicKey:y(eu,ei),privateKey:y(ep,ei),keyType:"x25519"};return g(ea),eg}b(ea,"invalid usage")}function Ie(en,ei,ea){var es=[];l(ea),en=x(es,en,"p");var ed,eu=0|eo._crypto_core_ed25519_bytes();en.length!==eu&&f(es,"invalid p length"),ed=d(en),es.push(ed),ei=x(es,ei,"q");var ef,ep=0|eo._crypto_core_ed25519_bytes();ei.length!==ep&&f(es,"invalid q length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ed25519_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_core_ed25519_add(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"input is an invalid element")}function Ne(en,ei){var ea=[];l(ei);var es=d(en=x(ea,en,"r"));en.length,ea.push(es);var ed=new u(0|eo._crypto_core_ed25519_bytes()),eu=ed.address;if(ea.push(eu),0==(0|eo._crypto_core_ed25519_from_hash(eu,es))){var ef=y(ed,ei);return g(ea),ef}b(ea,"invalid usage")}function Le(en,ei){var ea=[];l(ei);var es=d(en=x(ea,en,"r"));en.length,ea.push(es);var ed=new u(0|eo._crypto_core_ed25519_bytes()),eu=ed.address;if(ea.push(eu),0==(0|eo._crypto_core_ed25519_from_uniform(eu,es))){var ef=y(ed,ei);return g(ea),ef}b(ea,"invalid usage")}function Ue(en,ei){var ea=[];l(ei),en=x(ea,en,"repr");var es,ed=0|eo._crypto_core_ed25519_bytes();en.length!==ed&&f(ea,"invalid repr length"),es=d(en),ea.push(es);var eu=1==(0|eo._crypto_core_ed25519_is_valid_point(es));return g(ea),eu}function Oe(en){var ei=[];l(en);var ea=new u(0|eo._crypto_core_ed25519_bytes()),es=ea.address;ei.push(es),eo._crypto_core_ed25519_random(es);var ed=y(ea,en);return g(ei),ed}function Ce(en,ei,ea){var es=[];l(ea),en=x(es,en,"x");var ed,eu=0|eo._crypto_core_ed25519_scalarbytes();en.length!==eu&&f(es,"invalid x length"),ed=d(en),es.push(ed),ei=x(es,ei,"y");var ef,ep=0|eo._crypto_core_ed25519_scalarbytes();ei.length!==ep&&f(es,"invalid y length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ed25519_scalarbytes()),eg=em.address;es.push(eg),eo._crypto_core_ed25519_scalar_add(eg,ed,ef);var ey=y(em,ea);return g(es),ey}function Re(en,ei){var ea=[];l(ei),en=x(ea,en,"s");var es,ed=0|eo._crypto_core_ed25519_scalarbytes();en.length!==ed&&f(ea,"invalid s length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ed25519_scalarbytes()),ef=eu.address;ea.push(ef),eo._crypto_core_ed25519_scalar_complement(ef,es);var ep=y(eu,ei);return g(ea),ep}function Pe(en,ei){var ea=[];l(ei),en=x(ea,en,"s");var es,ed=0|eo._crypto_core_ed25519_scalarbytes();en.length!==ed&&f(ea,"invalid s length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ed25519_scalarbytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_core_ed25519_scalar_invert(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid reciprocate")}function Ge(en,ei,ea){var es=[];l(ea),en=x(es,en,"x");var ed,eu=0|eo._crypto_core_ed25519_scalarbytes();en.length!==eu&&f(es,"invalid x length"),ed=d(en),es.push(ed),ei=x(es,ei,"y");var ef,ep=0|eo._crypto_core_ed25519_scalarbytes();ei.length!==ep&&f(es,"invalid y length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ed25519_scalarbytes()),eg=em.address;es.push(eg),eo._crypto_core_ed25519_scalar_mul(eg,ed,ef);var ey=y(em,ea);return g(es),ey}function Xe(en,ei){var ea=[];l(ei),en=x(ea,en,"s");var es,ed=0|eo._crypto_core_ed25519_scalarbytes();en.length!==ed&&f(ea,"invalid s length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ed25519_scalarbytes()),ef=eu.address;ea.push(ef),eo._crypto_core_ed25519_scalar_negate(ef,es);var ep=y(eu,ei);return g(ea),ep}function De(en){var ei=[];l(en);var ea=new u(0|eo._crypto_core_ed25519_scalarbytes()),es=ea.address;ei.push(es),eo._crypto_core_ed25519_scalar_random(es);var ed=y(ea,en);return g(ei),ed}function Fe(en,ei){var ea=[];l(ei),en=x(ea,en,"sample");var es,ed=0|eo._crypto_core_ed25519_nonreducedscalarbytes();en.length!==ed&&f(ea,"invalid sample length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ed25519_scalarbytes()),ef=eu.address;ea.push(ef),eo._crypto_core_ed25519_scalar_reduce(ef,es);var ep=y(eu,ei);return g(ea),ep}function Ve(en,ei,ea){var es=[];l(ea),en=x(es,en,"x");var ed,eu=0|eo._crypto_core_ed25519_scalarbytes();en.length!==eu&&f(es,"invalid x length"),ed=d(en),es.push(ed),ei=x(es,ei,"y");var ef,ep=0|eo._crypto_core_ed25519_scalarbytes();ei.length!==ep&&f(es,"invalid y length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ed25519_scalarbytes()),eg=em.address;es.push(eg),eo._crypto_core_ed25519_scalar_sub(eg,ed,ef);var ey=y(em,ea);return g(es),ey}function He(en,ei,ea){var es=[];l(ea),en=x(es,en,"p");var ed,eu=0|eo._crypto_core_ed25519_bytes();en.length!==eu&&f(es,"invalid p length"),ed=d(en),es.push(ed),ei=x(es,ei,"q");var ef,ep=0|eo._crypto_core_ed25519_bytes();ei.length!==ep&&f(es,"invalid q length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ed25519_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_core_ed25519_sub(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"input is an invalid element")}function qe(en,ei,ea,es){var ed=[];l(es),en=x(ed,en,"input");var eu,ef=0|eo._crypto_core_hchacha20_inputbytes();en.length!==ef&&f(ed,"invalid input length"),eu=d(en),ed.push(eu),ei=x(ed,ei,"privateKey");var ep,em=0|eo._crypto_core_hchacha20_keybytes();ei.length!==em&&f(ed,"invalid privateKey length"),ep=d(ei),ed.push(ep);var eg=null;null!=ea&&(eg=d(ea=x(ed,ea,"constant")),ea.length,ed.push(eg));var ey=new u(0|eo._crypto_core_hchacha20_outputbytes()),eb=ey.address;if(ed.push(eb),0==(0|eo._crypto_core_hchacha20(eb,eu,ep,eg))){var eS=y(ey,es);return g(ed),eS}b(ed,"invalid usage")}function je(en,ei,ea,es){var ed=[];l(es),en=x(ed,en,"input");var eu,ef=0|eo._crypto_core_hsalsa20_inputbytes();en.length!==ef&&f(ed,"invalid input length"),eu=d(en),ed.push(eu),ei=x(ed,ei,"privateKey");var ep,em=0|eo._crypto_core_hsalsa20_keybytes();ei.length!==em&&f(ed,"invalid privateKey length"),ep=d(ei),ed.push(ep);var eg=null;null!=ea&&(eg=d(ea=x(ed,ea,"constant")),ea.length,ed.push(eg));var ey=new u(0|eo._crypto_core_hsalsa20_outputbytes()),eb=ey.address;if(ed.push(eb),0==(0|eo._crypto_core_hsalsa20(eb,eu,ep,eg))){var eS=y(ey,es);return g(ed),eS}b(ed,"invalid usage")}function ze(en,ei,ea){var es=[];l(ea),en=x(es,en,"p");var ed,eu=0|eo._crypto_core_ristretto255_bytes();en.length!==eu&&f(es,"invalid p length"),ed=d(en),es.push(ed),ei=x(es,ei,"q");var ef,ep=0|eo._crypto_core_ristretto255_bytes();ei.length!==ep&&f(es,"invalid q length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ristretto255_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_core_ristretto255_add(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"input is an invalid element")}function We(en,ei){var ea=[];l(ei);var es=d(en=x(ea,en,"r"));en.length,ea.push(es);var ed=new u(0|eo._crypto_core_ristretto255_bytes()),eu=ed.address;if(ea.push(eu),0==(0|eo._crypto_core_ristretto255_from_hash(eu,es))){var ef=y(ed,ei);return g(ea),ef}b(ea,"invalid usage")}function Je(en,ei){var ea=[];l(ei),en=x(ea,en,"repr");var es,ed=0|eo._crypto_core_ristretto255_bytes();en.length!==ed&&f(ea,"invalid repr length"),es=d(en),ea.push(es);var eu=1==(0|eo._crypto_core_ristretto255_is_valid_point(es));return g(ea),eu}function Qe(en){var ei=[];l(en);var ea=new u(0|eo._crypto_core_ristretto255_bytes()),es=ea.address;ei.push(es),eo._crypto_core_ristretto255_random(es);var ed=y(ea,en);return g(ei),ed}function Ze(en,ei,ea){var es=[];l(ea),en=x(es,en,"x");var ed,eu=0|eo._crypto_core_ristretto255_scalarbytes();en.length!==eu&&f(es,"invalid x length"),ed=d(en),es.push(ed),ei=x(es,ei,"y");var ef,ep=0|eo._crypto_core_ristretto255_scalarbytes();ei.length!==ep&&f(es,"invalid y length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ristretto255_scalarbytes()),eg=em.address;es.push(eg),eo._crypto_core_ristretto255_scalar_add(eg,ed,ef);var ey=y(em,ea);return g(es),ey}function $e(en,ei){var ea=[];l(ei),en=x(ea,en,"s");var es,ed=0|eo._crypto_core_ristretto255_scalarbytes();en.length!==ed&&f(ea,"invalid s length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ristretto255_scalarbytes()),ef=eu.address;ea.push(ef),eo._crypto_core_ristretto255_scalar_complement(ef,es);var ep=y(eu,ei);return g(ea),ep}function er(en,ei){var ea=[];l(ei),en=x(ea,en,"s");var es,ed=0|eo._crypto_core_ristretto255_scalarbytes();en.length!==ed&&f(ea,"invalid s length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ristretto255_scalarbytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_core_ristretto255_scalar_invert(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid reciprocate")}function rr(en,ei,ea){var es=[];l(ea),en=x(es,en,"x");var ed,eu=0|eo._crypto_core_ristretto255_scalarbytes();en.length!==eu&&f(es,"invalid x length"),ed=d(en),es.push(ed),ei=x(es,ei,"y");var ef,ep=0|eo._crypto_core_ristretto255_scalarbytes();ei.length!==ep&&f(es,"invalid y length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ristretto255_scalarbytes()),eg=em.address;es.push(eg),eo._crypto_core_ristretto255_scalar_mul(eg,ed,ef);var ey=y(em,ea);return g(es),ey}function tr(en,ei){var ea=[];l(ei),en=x(ea,en,"s");var es,ed=0|eo._crypto_core_ristretto255_scalarbytes();en.length!==ed&&f(ea,"invalid s length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ristretto255_scalarbytes()),ef=eu.address;ea.push(ef),eo._crypto_core_ristretto255_scalar_negate(ef,es);var ep=y(eu,ei);return g(ea),ep}function ar(en){var ei=[];l(en);var ea=new u(0|eo._crypto_core_ristretto255_scalarbytes()),es=ea.address;ei.push(es),eo._crypto_core_ristretto255_scalar_random(es);var ed=y(ea,en);return g(ei),ed}function _r(en,ei){var ea=[];l(ei),en=x(ea,en,"sample");var es,ed=0|eo._crypto_core_ristretto255_nonreducedscalarbytes();en.length!==ed&&f(ea,"invalid sample length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ristretto255_scalarbytes()),ef=eu.address;ea.push(ef),eo._crypto_core_ristretto255_scalar_reduce(ef,es);var ep=y(eu,ei);return g(ea),ep}function nr(en,ei,ea){var es=[];l(ea),en=x(es,en,"x");var ed,eu=0|eo._crypto_core_ristretto255_scalarbytes();en.length!==eu&&f(es,"invalid x length"),ed=d(en),es.push(ed),ei=x(es,ei,"y");var ef,ep=0|eo._crypto_core_ristretto255_scalarbytes();ei.length!==ep&&f(es,"invalid y length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ristretto255_scalarbytes()),eg=em.address;es.push(eg),eo._crypto_core_ristretto255_scalar_sub(eg,ed,ef);var ey=y(em,ea);return g(es),ey}function sr(en,ei,ea){var es=[];l(ea),en=x(es,en,"p");var ed,eu=0|eo._crypto_core_ristretto255_bytes();en.length!==eu&&f(es,"invalid p length"),ed=d(en),es.push(ed),ei=x(es,ei,"q");var ef,ep=0|eo._crypto_core_ristretto255_bytes();ei.length!==ep&&f(es,"invalid q length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_core_ristretto255_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_core_ristretto255_sub(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"input is an invalid element")}function cr(en,ei,ea,es){var ed=[];l(es),m(ed,en,"hash_length"),("number"!=typeof en||(0|en)!==en||en<0)&&f(ed,"hash_length must be an unsigned integer");var eu=d(ei=x(ed,ei,"message")),ef=ei.length;ed.push(eu);var ep=null,em=0;null!=ea&&(ep=d(ea=x(ed,ea,"key")),em=ea.length,ed.push(ep));var eg=new u(en|=0),ey=eg.address;if(ed.push(ey),0==(0|eo._crypto_generichash(ey,en,eu,ef,0,ep,em))){var eb=y(eg,es);return g(ed),eb}b(ed,"invalid usage")}function or(en,ei,ea,es,ed){var eu=[];l(ed),m(eu,en,"subkey_len"),("number"!=typeof en||(0|en)!==en||en<0)&&f(eu,"subkey_len must be an unsigned integer");var ef=null,ep=0;null!=ei&&(ef=d(ei=x(eu,ei,"key")),ep=ei.length,eu.push(ef));var em=null,eg=0;null!=ea&&(ea=x(eu,ea,"id"),eg=0|eo._crypto_generichash_blake2b_saltbytes(),ea.length!==eg&&f(eu,"invalid id length"),em=d(ea),eu.push(em));var ey=null,eb=0;null!=es&&(es=x(eu,es,"ctx"),eb=0|eo._crypto_generichash_blake2b_personalbytes(),es.length!==eb&&f(eu,"invalid ctx length"),ey=d(es),eu.push(ey));var eS=new u(0|en),e_=eS.address;if(eu.push(e_),0==(0|eo._crypto_generichash_blake2b_salt_personal(e_,en,null,0,0,ef,ep,em,ey))){var eR=y(eS,ed);return g(eu),eR}b(eu,"invalid usage")}function hr(en,ei,ea){var es=[];l(ea),m(es,en,"state_address"),m(es,ei,"hash_length"),("number"!=typeof ei||(0|ei)!==ei||ei<0)&&f(es,"hash_length must be an unsigned integer");var ed=new u(ei|=0),eu=ed.address;if(es.push(eu),0==(0|eo._crypto_generichash_final(en,eu,ei))){var ef=(eo._free(en),y(ed,ea));return g(es),ef}b(es,"invalid usage")}function pr(en,ei,ea){var es=[];l(ea);var ed=null,eu=0;null!=en&&(ed=d(en=x(es,en,"key")),eu=en.length,es.push(ed)),m(es,ei,"hash_length"),("number"!=typeof ei||(0|ei)!==ei||ei<0)&&f(es,"hash_length must be an unsigned integer");var ef=new u(357).address;if(0==(0|eo._crypto_generichash_init(ef,ed,eu,ei))){var ep=ef;return g(es),ep}b(es,"invalid usage")}function yr(en){var ei=[];l(en);var ea=new u(0|eo._crypto_generichash_keybytes()),es=ea.address;ei.push(es),eo._crypto_generichash_keygen(es);var ed=y(ea,en);return g(ei),ed}function ir(en,ei,ea){var es=[];l(ea),m(es,en,"state_address");var ed=d(ei=x(es,ei,"message_chunk")),eu=ei.length;es.push(ed),0!=(0|eo._crypto_generichash_update(en,ed,eu))&&b(es,"invalid usage"),g(es)}function lr(en,ei){var ea=[];l(ei);var es=d(en=x(ea,en,"message")),ed=en.length;ea.push(es);var eu=new u(0|eo._crypto_hash_bytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_hash(ef,es,ed,0))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid usage")}function ur(en,ei){var ea=[];l(ei);var es=d(en=x(ea,en,"message")),ed=en.length;ea.push(es);var eu=new u(0|eo._crypto_hash_sha256_bytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_hash_sha256(ef,es,ed,0))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid usage")}function dr(en,ei){var ea=[];l(ei),m(ea,en,"state_address");var es=new u(0|eo._crypto_hash_sha256_bytes()),ed=es.address;if(ea.push(ed),0==(0|eo._crypto_hash_sha256_final(en,ed))){var eu=(eo._free(en),y(es,ei));return g(ea),eu}b(ea,"invalid usage")}function vr(en){var ei=[];l(en);var ea=new u(104).address;if(0==(0|eo._crypto_hash_sha256_init(ea))){var es=ea;return g(ei),es}b(ei,"invalid usage")}function gr(en,ei,ea){var es=[];l(ea),m(es,en,"state_address");var ed=d(ei=x(es,ei,"message_chunk")),eu=ei.length;es.push(ed),0!=(0|eo._crypto_hash_sha256_update(en,ed,eu))&&b(es,"invalid usage"),g(es)}function br(en,ei){var ea=[];l(ei);var es=d(en=x(ea,en,"message")),ed=en.length;ea.push(es);var eu=new u(0|eo._crypto_hash_sha512_bytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_hash_sha512(ef,es,ed,0))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid usage")}function fr(en,ei){var ea=[];l(ei),m(ea,en,"state_address");var es=new u(0|eo._crypto_hash_sha512_bytes()),ed=es.address;if(ea.push(ed),0==(0|eo._crypto_hash_sha512_final(en,ed))){var eu=(eo._free(en),y(es,ei));return g(ea),eu}b(ea,"invalid usage")}function mr(en){var ei=[];l(en);var ea=new u(208).address;if(0==(0|eo._crypto_hash_sha512_init(ea))){var es=ea;return g(ei),es}b(ei,"invalid usage")}function xr(en,ei,ea){var es=[];l(ea),m(es,en,"state_address");var ed=d(ei=x(es,ei,"message_chunk")),eu=ei.length;es.push(ed),0!=(0|eo._crypto_hash_sha512_update(en,ed,eu))&&b(es,"invalid usage"),g(es)}function Er(en,ei,ea,es,ed){var eu=[];
14l(ed),m(eu,en,"subkey_len"),("number"!=typeof en||(0|en)!==en||en<0)&&f(eu,"subkey_len must be an unsigned integer"),m(eu,ei,"subkey_id"),("number"!=typeof ei||(0|ei)!==ei||ei<0)&&f(eu,"subkey_id must be an unsigned integer"),"string"!=typeof ea&&f(eu,"ctx must be a string"),ea=n(ea+"\x00"),null!=ep&&ea.length-1!==ep&&f(eu,"invalid ctx length");var ef=d(ea),ep=ea.length-1;eu.push(ef),es=x(eu,es,"key");var em,eg=0|eo._crypto_kdf_keybytes();es.length!==eg&&f(eu,"invalid key length"),em=d(es),eu.push(em);var ey=new u(0|en),eb=ey.address;eu.push(eb),eo._crypto_kdf_derive_from_key(eb,en,ei,ei>>>24>>>8,ef,em);var eS=y(ey,ed);return g(eu),eS}function kr(en){var ei=[];l(en);var ea=new u(0|eo._crypto_kdf_keybytes()),es=ea.address;ei.push(es),eo._crypto_kdf_keygen(es);var ed=y(ea,en);return g(ei),ed}function Sr(en,ei,ea,es){var ed=[];l(es),en=x(ed,en,"clientPublicKey");var eu,ef=0|eo._crypto_kx_publickeybytes();en.length!==ef&&f(ed,"invalid clientPublicKey length"),eu=d(en),ed.push(eu),ei=x(ed,ei,"clientSecretKey");var ep,em=0|eo._crypto_kx_secretkeybytes();ei.length!==em&&f(ed,"invalid clientSecretKey length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"serverPublicKey");var eg,ey=0|eo._crypto_kx_publickeybytes();ea.length!==ey&&f(ed,"invalid serverPublicKey length"),eg=d(ea),ed.push(eg);var eb=new u(0|eo._crypto_kx_sessionkeybytes()),eS=eb.address;ed.push(eS);var e_=new u(0|eo._crypto_kx_sessionkeybytes()),eR=e_.address;if(ed.push(eR),0==(0|eo._crypto_kx_client_session_keys(eS,eR,eu,ep,eg))){var eA=y({sharedRx:eb,sharedTx:e_},es);return g(ed),eA}b(ed,"invalid usage")}function Tr(en){var ei=[];l(en);var ea=new u(0|eo._crypto_kx_publickeybytes()),es=ea.address;ei.push(es);var ed=new u(0|eo._crypto_kx_secretkeybytes()),eu=ed.address;if(ei.push(eu),0==(0|eo._crypto_kx_keypair(es,eu))){var ef={publicKey:y(ea,en),privateKey:y(ed,en),keyType:"x25519"};return g(ei),ef}b(ei,"internal error")}function wr(en,ei){var ea=[];l(ei),en=x(ea,en,"seed");var es,ed=0|eo._crypto_kx_seedbytes();en.length!==ed&&f(ea,"invalid seed length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_kx_publickeybytes()),ef=eu.address;ea.push(ef);var ep=new u(0|eo._crypto_kx_secretkeybytes()),em=ep.address;if(ea.push(em),0==(0|eo._crypto_kx_seed_keypair(ef,em,es))){var eg={publicKey:y(eu,ei),privateKey:y(ep,ei),keyType:"x25519"};return g(ea),eg}b(ea,"internal error")}function Yr(en,ei,ea,es){var ed=[];l(es),en=x(ed,en,"serverPublicKey");var eu,ef=0|eo._crypto_kx_publickeybytes();en.length!==ef&&f(ed,"invalid serverPublicKey length"),eu=d(en),ed.push(eu),ei=x(ed,ei,"serverSecretKey");var ep,em=0|eo._crypto_kx_secretkeybytes();ei.length!==em&&f(ed,"invalid serverSecretKey length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"clientPublicKey");var eg,ey=0|eo._crypto_kx_publickeybytes();ea.length!==ey&&f(ed,"invalid clientPublicKey length"),eg=d(ea),ed.push(eg);var eb=new u(0|eo._crypto_kx_sessionkeybytes()),eS=eb.address;ed.push(eS);var e_=new u(0|eo._crypto_kx_sessionkeybytes()),eR=e_.address;if(ed.push(eR),0==(0|eo._crypto_kx_server_session_keys(eS,eR,eu,ep,eg))){var eA=y({sharedRx:eb,sharedTx:e_},es);return g(ed),eA}b(ed,"invalid usage")}function Br(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"key");var ef,ep=0|eo._crypto_onetimeauth_keybytes();ei.length!==ep&&f(es,"invalid key length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_onetimeauth_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_onetimeauth(eg,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function Ar(en,ei){var ea=[];l(ei),m(ea,en,"state_address");var es=new u(0|eo._crypto_onetimeauth_bytes()),ed=es.address;if(ea.push(ed),0==(0|eo._crypto_onetimeauth_final(en,ed))){var eu=(eo._free(en),y(es,ei));return g(ea),eu}b(ea,"invalid usage")}function Kr(en,ei){var ea=[];l(ei);var es=null;null!=en&&(es=d(en=x(ea,en,"key")),en.length,ea.push(es));var ed=new u(144).address;if(0==(0|eo._crypto_onetimeauth_init(ed,es))){var eu=ed;return g(ea),eu}b(ea,"invalid usage")}function Mr(en){var ei=[];l(en);var ea=new u(0|eo._crypto_onetimeauth_keybytes()),es=ea.address;ei.push(es),eo._crypto_onetimeauth_keygen(es);var ed=y(ea,en);return g(ei),ed}function Ir(en,ei,ea){var es=[];l(ea),m(es,en,"state_address");var ed=d(ei=x(es,ei,"message_chunk")),eu=ei.length;es.push(ed),0!=(0|eo._crypto_onetimeauth_update(en,ed,eu))&&b(es,"invalid usage"),g(es)}function Nr(en,ei,ea){var es=[];en=x(es,en,"hash");var ed,eu=0|eo._crypto_onetimeauth_bytes();en.length!==eu&&f(es,"invalid hash length"),ed=d(en),es.push(ed);var ef=d(ei=x(es,ei,"message")),ep=ei.length;es.push(ef),ea=x(es,ea,"key");var em,eg=0|eo._crypto_onetimeauth_keybytes();ea.length!==eg&&f(es,"invalid key length"),em=d(ea),es.push(em);var ey=0==(0|eo._crypto_onetimeauth_verify(ed,ef,ep,0,em));return g(es),ey}function Lr(en,ei,ea,es,ed,eu,ef){var ep=[];
vendor: 20,749 bytes, line 14
14l(ef),m(ep,en,"keyLength"),("number"!=typeof en||(0|en)!==en||en<0)&&f(ep,"keyLength must be an unsigned integer");var em=d(ei=x(ep,ei,"password")),eg=ei.length;ep.push(em),ea=x(ep,ea,"salt");var ey,eb=0|eo._crypto_pwhash_saltbytes();ea.length!==eb&&f(ep,"invalid salt length"),ey=d(ea),ep.push(ey),m(ep,es,"opsLimit"),("number"!=typeof es||(0|es)!==es||es<0)&&f(ep,"opsLimit must be an unsigned integer"),m(ep,ed,"memLimit"),("number"!=typeof ed||(0|ed)!==ed||ed<0)&&f(ep,"memLimit must be an unsigned integer"),m(ep,eu,"algorithm"),("number"!=typeof eu||(0|eu)!==eu||eu<0)&&f(ep,"algorithm must be an unsigned integer");var eS=new u(0|en),e_=eS.address;if(ep.push(e_),0==(0|eo._crypto_pwhash(e_,en,0,em,eg,0,ey,es,0,ed,eu))){var eR=y(eS,ef);return g(ep),eR}b(ep,"invalid usage")}function Ur(en,ei,ea,es,ed,eu){var ef=[];l(eu),m(ef,en,"keyLength"),("number"!=typeof en||(0|en)!==en||en<0)&&f(ef,"keyLength must be an unsigned integer");var ep=d(ei=x(ef,ei,"password")),em=ei.length;ef.push(ep),ea=x(ef,ea,"salt");var eg,ey=0|eo._crypto_pwhash_scryptsalsa208sha256_saltbytes();ea.length!==ey&&f(ef,"invalid salt length"),eg=d(ea),ef.push(eg),m(ef,es,"opsLimit"),("number"!=typeof es||(0|es)!==es||es<0)&&f(ef,"opsLimit must be an unsigned integer"),m(ef,ed,"memLimit"),("number"!=typeof ed||(0|ed)!==ed||ed<0)&&f(ef,"memLimit must be an unsigned integer");var eb=new u(0|en),eS=eb.address;if(ef.push(eS),0==(0|eo._crypto_pwhash_scryptsalsa208sha256(eS,en,0,ep,em,0,eg,es,0,ed))){var e_=y(eb,eu);return g(ef),e_}b(ef,"invalid usage")}function Or(en,ei,ea,es,ed,eu,ef){var ep=[];l(ef);var em=d(en=x(ep,en,"password")),eg=en.length;ep.push(em);var ey=d(ei=x(ep,ei,"salt")),eb=ei.length;ep.push(ey),m(ep,ea,"opsLimit"),("number"!=typeof ea||(0|ea)!==ea||ea<0)&&f(ep,"opsLimit must be an unsigned integer"),m(ep,es,"r"),("number"!=typeof es||(0|es)!==es||es<0)&&f(ep,"r must be an unsigned integer"),m(ep,ed,"p"),("number"!=typeof ed||(0|ed)!==ed||ed<0)&&f(ep,"p must be an unsigned integer"),m(ep,eu,"keyLength"),("number"!=typeof eu||(0|eu)!==eu||eu<0)&&f(ep,"keyLength must be an unsigned integer");var eS=new u(0|eu),e_=eS.address;if(ep.push(e_),0==(0|eo._crypto_pwhash_scryptsalsa208sha256_ll(em,eg,ey,eb,ea,0,es,ed,e_,eu))){var eR=y(eS,ef);return g(ep),eR}b(ep,"invalid usage")}function Cr(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"password")),ef=en.length;ed.push(eu),m(ed,ei,"opsLimit"),("number"!=typeof ei||(0|ei)!==ei||ei<0)&&f(ed,"opsLimit must be an unsigned integer"),m(ed,ea,"memLimit"),("number"!=typeof ea||(0|ea)!==ea||ea<0)&&f(ed,"memLimit must be an unsigned integer");var ep=new u(0|eo._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(ed.push(ep),0==(0|eo._crypto_pwhash_scryptsalsa208sha256_str(ep,eu,ef,0,ei,0,ea))){var em=eo.UTF8ToString(ep);return g(ed),em}b(ed,"invalid usage")}function Rr(en,ei,ea){var es=[];l(ea),"string"!=typeof en&&f(es,"hashed_password must be a string"),en=n(en+"\x00"),null!=eu&&en.length-1!==eu&&f(es,"invalid hashed_password length");var ed=d(en),eu=en.length-1;es.push(ed);var ef=d(ei=x(es,ei,"password")),ep=ei.length;es.push(ef);var em=0==(0|eo._crypto_pwhash_scryptsalsa208sha256_str_verify(ed,ef,ep,0));return g(es),em}function Pr(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"password")),ef=en.length;ed.push(eu),m(ed,ei,"opsLimit"),("number"!=typeof ei||(0|ei)!==ei||ei<0)&&f(ed,"opsLimit must be an unsigned integer"),m(ed,ea,"memLimit"),("number"!=typeof ea||(0|ea)!==ea||ea<0)&&f(ed,"memLimit must be an unsigned integer");var ep=new u(0|eo._crypto_pwhash_strbytes()).address;if(ed.push(ep),0==(0|eo._crypto_pwhash_str(ep,eu,ef,0,ei,0,ea))){var em=eo.UTF8ToString(ep);return g(ed),em}b(ed,"invalid usage")}function Gr(en,ei,ea,es){var ed=[];l(es),"string"!=typeof en&&f(ed,"hashed_password must be a string"),en=n(en+"\x00"),null!=ef&&en.length-1!==ef&&f(ed,"invalid hashed_password length");var eu=d(en),ef=en.length-1;ed.push(eu),m(ed,ei,"opsLimit"),("number"!=typeof ei||(0|ei)!==ei||ei<0)&&f(ed,"opsLimit must be an unsigned integer"),m(ed,ea,"memLimit"),("number"!=typeof ea||(0|ea)!==ea||ea<0)&&f(ed,"memLimit must be an unsigned integer");var ep=0!=(0|eo._crypto_pwhash_str_needs_rehash(eu,ei,0,ea));return g(ed),ep}function Xr(en,ei,ea){var es=[];l(ea),"string"!=typeof en&&f(es,"hashed_password must be a string"),en=n(en+"\x00"),null!=eu&&en.length-1!==eu&&f(es,"invalid hashed_password length");var ed=d(en),eu=en.length-1;es.push(ed);var ef=d(ei=x(es,ei,"password")),ep=ei.length;es.push(ef);var em=0==(0|eo._crypto_pwhash_str_verify(ed,ef,ep,0));return g(es),em}function Dr(en,ei,ea){var es=[];l(ea),en=x(es,en,"privateKey");var ed,eu=0|eo._crypto_scalarmult_scalarbytes();en.length!==eu&&f(es,"invalid privateKey length"),ed=d(en),es.push(ed),ei=x(es,ei,"publicKey");var ef,ep=0|eo._crypto_scalarmult_bytes();ei.length!==ep&&f(es,"invalid publicKey length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_scalarmult_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_scalarmult(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"weak public key")}function Fr(en,ei){var ea=[];l(ei),en=x(ea,en,"privateKey");var es,ed=0|eo._crypto_scalarmult_scalarbytes();en.length!==ed&&f(ea,"invalid privateKey length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_scalarmult_bytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_scalarmult_base(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"unknown error")}function Vr(en,ei,ea){var es=[];l(ea),en=x(es,en,"n");var ed,eu=0|eo._crypto_scalarmult_ed25519_scalarbytes();en.length!==eu&&f(es,"invalid n length"),ed=d(en),es.push(ed),ei=x(es,ei,"p");var ef,ep=0|eo._crypto_scalarmult_ed25519_bytes();ei.length!==ep&&f(es,"invalid p length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_scalarmult_ed25519_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_scalarmult_ed25519(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid point or scalar is 0")}function Hr(en,ei){var ea=[];l(ei),en=x(ea,en,"scalar");var es,ed=0|eo._crypto_scalarmult_ed25519_scalarbytes();en.length!==ed&&f(ea,"invalid scalar length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_scalarmult_ed25519_bytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_scalarmult_ed25519_base(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"scalar is 0")}function qr(en,ei){var ea=[];l(ei),en=x(ea,en,"scalar");var es,ed=0|eo._crypto_scalarmult_ed25519_scalarbytes();en.length!==ed&&f(ea,"invalid scalar length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_scalarmult_ed25519_bytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_scalarmult_ed25519_base_noclamp(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"scalar is 0")}function jr(en,ei,ea){var es=[];l(ea),en=x(es,en,"n");var ed,eu=0|eo._crypto_scalarmult_ed25519_scalarbytes();en.length!==eu&&f(es,"invalid n length"),ed=d(en),es.push(ed),ei=x(es,ei,"p");var ef,ep=0|eo._crypto_scalarmult_ed25519_bytes();ei.length!==ep&&f(es,"invalid p length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_scalarmult_ed25519_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_scalarmult_ed25519_noclamp(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid point or scalar is 0")}function zr(en,ei,ea){var es=[];l(ea),en=x(es,en,"scalar");var ed,eu=0|eo._crypto_scalarmult_ristretto255_scalarbytes();en.length!==eu&&f(es,"invalid scalar length"),ed=d(en),es.push(ed),ei=x(es,ei,"element");var ef,ep=0|eo._crypto_scalarmult_ristretto255_bytes();ei.length!==ep&&f(es,"invalid element length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_scalarmult_ristretto255_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_scalarmult_ristretto255(eg,ed,ef))){var ey=y(em,ea);return g(es),ey}b(es,"result is identity element")}function Wr(en,ei){var ea=[];l(ei),en=x(ea,en,"scalar");var es,ed=0|eo._crypto_core_ristretto255_scalarbytes();en.length!==ed&&f(ea,"invalid scalar length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_core_ristretto255_bytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_scalarmult_ristretto255_base(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"scalar is 0")}function Jr(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_secretbox_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"key");var eg,ey=0|eo._crypto_secretbox_keybytes();ea.length!==ey&&f(ed,"invalid key length"),eg=d(ea),ed.push(eg);var eb=new u(0|ef),eS=eb.address;ed.push(eS);var e_=new u(0|eo._crypto_secretbox_macbytes()),eR=e_.address;if(ed.push(eR),0==(0|eo._crypto_secretbox_detached(eS,eR,eu,ef,0,ep,eg))){var eA=y({mac:e_,cipher:eb},es);return g(ed),eA}b(ed,"invalid usage")}function Qr(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_secretbox_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"key");var eg,ey=0|eo._crypto_secretbox_keybytes();ea.length!==ey&&f(ed,"invalid key length"),eg=d(ea),ed.push(eg);var eb=new u(ef+eo._crypto_secretbox_macbytes()|0),eS=eb.address;if(ed.push(eS),0==(0|eo._crypto_secretbox_easy(eS,eu,ef,0,ep,eg))){var e_=y(eb,es);return g(ed),e_}b(ed,"invalid usage")}function Zr(en){var ei=[];l(en);var ea=new u(0|eo._crypto_secretbox_keybytes()),es=ea.address;ei.push(es),eo._crypto_secretbox_keygen(es);var ed=y(ea,en);return g(ei),ed}function $r(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"ciphertext")),ep=en.length;eu.push(ef),ei=x(eu,ei,"mac");var em,eg=0|eo._crypto_secretbox_macbytes();ei.length!==eg&&f(eu,"invalid mac length"),em=d(ei),eu.push(em),ea=x(eu,ea,"nonce");var ey,eb=0|eo._crypto_secretbox_noncebytes();ea.length!==eb&&f(eu,"invalid nonce length"),ey=d(ea),eu.push(ey),es=x(eu,es,"key");var eS,e_=0|eo._crypto_secretbox_keybytes();es.length!==e_&&f(eu,"invalid key length"),eS=d(es),eu.push(eS);var eR=new u(0|ep),eA=eR.address;if(eu.push(eA),0==(0|eo._crypto_secretbox_open_detached(eA,ef,em,ep,0,ey,eS))){var ew=y(eR,ed);return g(eu),ew}b(eu,"wrong secret key for the given ciphertext")}function et(en,ei,ea,es){var ed=[];l(es),en=x(ed,en,"ciphertext");var eu,ef=eo._crypto_secretbox_macbytes(),ep=en.length;ep<ef&&f(ed,"ciphertext is too short"),eu=d(en),ed.push(eu),ei=x(ed,ei,"nonce");var em,eg=0|eo._crypto_secretbox_noncebytes();ei.length!==eg&&f(ed,"invalid nonce length"),em=d(ei),ed.push(em),ea=x(ed,ea,"key");var ey,eb=0|eo._crypto_secretbox_keybytes();ea.length!==eb&&f(ed,"invalid key length"),ey=d(ea),ed.push(ey);var eS=new u(ep-eo._crypto_secretbox_macbytes()|0),e_=eS.address;if(ed.push(e_),0==(0|eo._crypto_secretbox_open_easy(e_,eu,ep,0,em,ey))){var eR=y(eS,es);return g(ed),eR}b(ed,"wrong secret key for the given ciphertext")}function rt(en,ei,ea){var es=[];l(ea),en=x(es,en,"header");var ed,eu=0|eo._crypto_secretstream_xchacha20poly1305_headerbytes();en.length!==eu&&f(es,"invalid header length"),ed=d(en),es.push(ed),ei=x(es,ei,"key");var ef,ep=0|eo._crypto_secretstream_xchacha20poly1305_keybytes();ei.length!==ep&&f(es,"invalid key length"),ef=d(ei),es.push(ef);var em=new u(52).address;if(0==(0|eo._crypto_secretstream_xchacha20poly1305_init_pull(em,ed,ef))){var eg=em;return g(es),eg}b(es,"invalid usage")}function tt(en,ei){var ea=[];l(ei),en=x(ea,en,"key");var es,ed=0|eo._crypto_secretstream_xchacha20poly1305_keybytes();en.length!==ed&&f(ea,"invalid key length"),es=d(en),ea.push(es);var eu=new u(52).address,ef=new u(0|eo._crypto_secretstream_xchacha20poly1305_headerbytes()),ep=ef.address;if(ea.push(ep),0==(0|eo._crypto_secretstream_xchacha20poly1305_init_push(eu,ep,es))){var em={state:eu,header:y(ef,ei)};return g(ea),em}b(ea,"invalid usage")}function at(en){var ei=[];l(en);var ea=new u(0|eo._crypto_secretstream_xchacha20poly1305_keybytes()),es=ea.address;ei.push(es),eo._crypto_secretstream_xchacha20poly1305_keygen(es);var ed=y(ea,en);return g(ei),ed}function _t(en,ei,ea,es){var ed=[];l(es),m(ed,en,"state_address"),ei=x(ed,ei,"cipher");var eu,ef=eo._crypto_secretstream_xchacha20poly1305_abytes(),ep=ei.length;ep<ef&&f(ed,"cipher is too short"),eu=d(ei),ed.push(eu);var em=null,eg=0;null!=ea&&(em=d(ea=x(ed,ea,"ad")),eg=ea.length,ed.push(em));var ey=new u(ep-eo._crypto_secretstream_xchacha20poly1305_abytes()|0),eb=ey.address;ed.push(eb);var eS,e_=(eS=v(1),ed.push(eS),(e_=0===eo._crypto_secretstream_xchacha20poly1305_pull(en,eb,0,eS,eu,ep,0,em,eg)&&{tag:eo.HEAPU8[eS],message:ey})&&{message:y(e_.message,es),tag:e_.tag});return g(ed),e_}function nt(en,ei,ea,es,ed){var eu=[];l(ed),m(eu,en,"state_address");var ef=d(ei=x(eu,ei,"message_chunk")),ep=ei.length;eu.push(ef);var em=null,eg=0;null!=ea&&(em=d(ea=x(eu,ea,"ad")),eg=ea.length,eu.push(em)),m(eu,es,"tag"),("number"!=typeof es||(0|es)!==es||es<0)&&f(eu,"tag must be an unsigned integer");var ey=new u(ep+eo._crypto_secretstream_xchacha20poly1305_abytes()|0),eb=ey.address;if(eu.push(eb),0==(0|eo._crypto_secretstream_xchacha20poly1305_push(en,eb,0,ef,ep,0,em,eg,0,es))){var eS=y(ey,ed);return g(eu),eS}b(eu,"invalid usage")}function st(en,ei){var ea=[];return l(ei),m(ea,en,"state_address"),eo._crypto_secretstream_xchacha20poly1305_rekey(en),g(ea),!0}function ct(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"key");var ef,ep=0|eo._crypto_shorthash_keybytes();ei.length!==ep&&f(es,"invalid key length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_shorthash_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_shorthash(eg,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function ot(en){var ei=[];l(en);var ea=new u(0|eo._crypto_shorthash_keybytes()),es=ea.address;ei.push(es),eo._crypto_shorthash_keygen(es);var ed=y(ea,en);return g(ei),ed}function ht(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"key");var ef,ep=0|eo._crypto_shorthash_siphashx24_keybytes();ei.length!==ep&&f(es,"invalid key length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_shorthash_siphashx24_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_shorthash_siphashx24(eg,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function pt(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"privateKey");var ef,ep=0|eo._crypto_sign_secretkeybytes();ei.length!==ep&&f(es,"invalid privateKey length"),ef=d(ei),es.push(ef);var em=new u(en.length+eo._crypto_sign_bytes()|0),eg=em.address;if(es.push(eg),0==(0|eo._crypto_sign(eg,null,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function yt(en,ei,ea){var es=[];l(ea);var ed=d(en=x(es,en,"message")),eu=en.length;es.push(ed),ei=x(es,ei,"privateKey");var ef,ep=0|eo._crypto_sign_secretkeybytes();ei.length!==ep&&f(es,"invalid privateKey length"),ef=d(ei),es.push(ef);var em=new u(0|eo._crypto_sign_bytes()),eg=em.address;if(es.push(eg),0==(0|eo._crypto_sign_detached(eg,null,ed,eu,0,ef))){var ey=y(em,ea);return g(es),ey}b(es,"invalid usage")}function it(en,ei){var ea=[];l(ei),en=x(ea,en,"edPk");var es,ed=0|eo._crypto_sign_publickeybytes();en.length!==ed&&f(ea,"invalid edPk length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_scalarmult_scalarbytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_sign_ed25519_pk_to_curve25519(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid key")}function lt(en,ei){var ea=[];l(ei),en=x(ea,en,"edSk");var es,ed=0|eo._crypto_sign_secretkeybytes();en.length!==ed&&f(ea,"invalid edSk length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_scalarmult_scalarbytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_sign_ed25519_sk_to_curve25519(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid key")}function ut(en,ei){var ea=[];l(ei),en=x(ea,en,"privateKey");var es,ed=0|eo._crypto_sign_secretkeybytes();en.length!==ed&&f(ea,"invalid privateKey length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_sign_publickeybytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_sign_ed25519_sk_to_pk(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid key")}function dt(en,ei){var ea=[];l(ei),en=x(ea,en,"privateKey");var es,ed=0|eo._crypto_sign_secretkeybytes();en.length!==ed&&f(ea,"invalid privateKey length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_sign_seedbytes()),ef=eu.address;if(ea.push(ef),0==(0|eo._crypto_sign_ed25519_sk_to_seed(ef,es))){var ep=y(eu,ei);return g(ea),ep}b(ea,"invalid key")}function vt(en,ei,ea){var es=[];l(ea),m(es,en,"state_address"),ei=x(es,ei,"privateKey");var ed,eu=0|eo._crypto_sign_secretkeybytes();ei.length!==eu&&f(es,"invalid privateKey length"),ed=d(ei),es.push(ed);var ef=new u(0|eo._crypto_sign_bytes()),ep=ef.address;if(es.push(ep),0==(0|eo._crypto_sign_final_create(en,ep,null,ed))){var em=(eo._free(en),y(ef,ea));return g(es),em}b(es,"invalid usage")}function gt(en,ei,ea,es){var ed=[];l(es),m(ed,en,"state_address"),ei=x(ed,ei,"signature");var eu,ef=0|eo._crypto_sign_bytes();ei.length!==ef&&f(ed,"invalid signature length"),eu=d(ei),ed.push(eu),ea=x(ed,ea,"publicKey");var ep,em=0|eo._crypto_sign_publickeybytes();ea.length!==em&&f(ed,"invalid publicKey length"),ep=d(ea),ed.push(ep);var eg=0==(0|eo._crypto_sign_final_verify(en,eu,ep));return g(ed),eg}function bt(en){var ei=[];l(en);var ea=new u(208).address;if(0==(0|eo._crypto_sign_init(ea))){var es=ea;return g(ei),es}b(ei,"internal error")}function ft(en){var ei=[];l(en);var ea=new u(0|eo._crypto_sign_publickeybytes()),es=ea.address;ei.push(es);var ed=new u(0|eo._crypto_sign_secretkeybytes()),eu=ed.address;if(ei.push(eu),0==(0|eo._crypto_sign_keypair(es,eu))){var ef={publicKey:y(ea,en),privateKey:y(ed,en),keyType:"ed25519"};return g(ei),ef}b(ei,"internal error")}function mt(en,ei,ea){var es=[];l(ea),en=x(es,en,"signedMessage");var ed,eu=eo._crypto_sign_bytes(),ef=en.length;ef<eu&&f(es,"signedMessage is too short"),ed=d(en),es.push(ed),ei=x(es,ei,"publicKey");var ep,em=0|eo._crypto_sign_publickeybytes();ei.length!==em&&f(es,"invalid publicKey length"),ep=d(ei),es.push(ep);var eg=new u(ef-eo._crypto_sign_bytes()|0),ey=eg.address;if(es.push(ey),0==(0|eo._crypto_sign_open(ey,null,ed,ef,0,ep))){var eb=y(eg,ea);return g(es),eb}b(es,"incorrect signature for the given public key")}function xt(en,ei){var ea=[];l(ei),en=x(ea,en,"seed");var es,ed=0|eo._crypto_sign_seedbytes();en.length!==ed&&f(ea,"invalid seed length"),es=d(en),ea.push(es);var eu=new u(0|eo._crypto_sign_publickeybytes()),ef=eu.address;ea.push(ef);var ep=new u(0|eo._crypto_sign_secretkeybytes()),em=ep.address;if(ea.push(em),0==(0|eo._crypto_sign_seed_keypair(ef,em,es))){var eg={publicKey:y(eu,ei),privateKey:y(ep,ei),keyType:"ed25519"};return g(ea),eg}b(ea,"invalid usage")}function Et(en,ei,ea){var es=[];l(ea),m(es,en,"state_address");var ed=d(ei=x(es,ei,"message_chunk")),eu=ei.length;es.push(ed),0!=(0|eo._crypto_sign_update(en,ed,eu,0))&&b(es,"invalid usage"),g(es)}function kt(en,ei,ea){var es=[];en=x(es,en,"signature");var ed,eu=0|eo._crypto_sign_bytes();en.length!==eu&&f(es,"invalid signature length"),ed=d(en),es.push(ed);var ef=d(ei=x(es,ei,"message")),ep=ei.length;es.push(ef),ea=x(es,ea,"publicKey");var em,eg=0|eo._crypto_sign_publickeybytes();ea.length!==eg&&f(es,"invalid publicKey length"),em=d(ea),es.push(em);var ey=0==(0|eo._crypto_sign_verify_detached(ed,ef,ep,0,em));return g(es),ey}function St(en,ei,ea,es){var ed=[];l(es),m(ed,en,"outLength"),("number"!=typeof en||(0|en)!==en||en<0)&&f(ed,"outLength must be an unsigned integer"),ei=x(ed,ei,"key");var eu,ef=0|eo._crypto_stream_chacha20_keybytes();ei.length!==ef&&f(ed,"invalid key length"),eu=d(ei),ed.push(eu),ea=x(ed,ea,"nonce");var ep,em=0|eo._crypto_stream_chacha20_noncebytes();ea.length!==em&&f(ed,"invalid nonce length"),ep=d(ea),ed.push(ep);var eg=new u(0|en),ey=eg.address;ed.push(ey),eo._crypto_stream_chacha20(ey,en,0,ep,eu);var eb=y(eg,es);return g(ed),eb}function Tt(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"input_message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_stream_chacha20_ietf_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"key");var eg,ey=0|eo._crypto_stream_chacha20_ietf_keybytes();ea.length!==ey&&f(ed,"invalid key length"),eg=d(ea),ed.push(eg);var eb=new u(0|ef),eS=eb.address;if(ed.push(eS),0===eo._crypto_stream_chacha20_ietf_xor(eS,eu,ef,0,ep,eg)){var e_=y(eb,es);return g(ed),e_}b(ed,"invalid usage")}function wt(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"input_message")),ep=en.length;eu.push(ef),ei=x(eu,ei,"nonce");var em,eg=0|eo._crypto_stream_chacha20_ietf_noncebytes();ei.length!==eg&&f(eu,"invalid nonce length"),em=d(ei),eu.push(em),m(eu,ea,"nonce_increment"),("number"!=typeof ea||(0|ea)!==ea||ea<0)&&f(eu,"nonce_increment must be an unsigned integer"),es=x(eu,es,"key");var ey,eb=0|eo._crypto_stream_chacha20_ietf_keybytes();
vendor: 6,055 bytes, line 14
14es.length!==eb&&f(eu,"invalid key length"),ey=d(es),eu.push(ey);var eS=new u(0|ep),e_=eS.address;if(eu.push(e_),0===eo._crypto_stream_chacha20_ietf_xor_ic(e_,ef,ep,0,em,ea,ey)){var eR=y(eS,ed);return g(eu),eR}b(eu,"invalid usage")}function Yt(en){var ei=[];l(en);var ea=new u(0|eo._crypto_stream_chacha20_keybytes()),es=ea.address;ei.push(es),eo._crypto_stream_chacha20_keygen(es);var ed=y(ea,en);return g(ei),ed}function Bt(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"input_message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_stream_chacha20_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"key");var eg,ey=0|eo._crypto_stream_chacha20_keybytes();ea.length!==ey&&f(ed,"invalid key length"),eg=d(ea),ed.push(eg);var eb=new u(0|ef),eS=eb.address;if(ed.push(eS),0===eo._crypto_stream_chacha20_xor(eS,eu,ef,0,ep,eg)){var e_=y(eb,es);return g(ed),e_}b(ed,"invalid usage")}function At(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"input_message")),ep=en.length;eu.push(ef),ei=x(eu,ei,"nonce");var em,eg=0|eo._crypto_stream_chacha20_noncebytes();ei.length!==eg&&f(eu,"invalid nonce length"),em=d(ei),eu.push(em),m(eu,ea,"nonce_increment"),("number"!=typeof ea||(0|ea)!==ea||ea<0)&&f(eu,"nonce_increment must be an unsigned integer"),es=x(eu,es,"key");var ey,eb=0|eo._crypto_stream_chacha20_keybytes();es.length!==eb&&f(eu,"invalid key length"),ey=d(es),eu.push(ey);var eS=new u(0|ep),e_=eS.address;if(eu.push(e_),0===eo._crypto_stream_chacha20_xor_ic(e_,ef,ep,0,em,ea,0,ey)){var eR=y(eS,ed);return g(eu),eR}b(eu,"invalid usage")}function Kt(en){var ei=[];l(en);var ea=new u(0|eo._crypto_stream_keybytes()),es=ea.address;ei.push(es),eo._crypto_stream_keygen(es);var ed=y(ea,en);return g(ei),ed}function Mt(en){var ei=[];l(en);var ea=new u(0|eo._crypto_stream_xchacha20_keybytes()),es=ea.address;ei.push(es),eo._crypto_stream_xchacha20_keygen(es);var ed=y(ea,en);return g(ei),ed}function It(en,ei,ea,es){var ed=[];l(es);var eu=d(en=x(ed,en,"input_message")),ef=en.length;ed.push(eu),ei=x(ed,ei,"nonce");var ep,em=0|eo._crypto_stream_xchacha20_noncebytes();ei.length!==em&&f(ed,"invalid nonce length"),ep=d(ei),ed.push(ep),ea=x(ed,ea,"key");var eg,ey=0|eo._crypto_stream_xchacha20_keybytes();ea.length!==ey&&f(ed,"invalid key length"),eg=d(ea),ed.push(eg);var eb=new u(0|ef),eS=eb.address;if(ed.push(eS),0===eo._crypto_stream_xchacha20_xor(eS,eu,ef,0,ep,eg)){var e_=y(eb,es);return g(ed),e_}b(ed,"invalid usage")}function Nt(en,ei,ea,es,ed){var eu=[];l(ed);var ef=d(en=x(eu,en,"input_message")),ep=en.length;eu.push(ef),ei=x(eu,ei,"nonce");var em,eg=0|eo._crypto_stream_xchacha20_noncebytes();ei.length!==eg&&f(eu,"invalid nonce length"),em=d(ei),eu.push(em),m(eu,ea,"nonce_increment"),("number"!=typeof ea||(0|ea)!==ea||ea<0)&&f(eu,"nonce_increment must be an unsigned integer"),es=x(eu,es,"key");var ey,eb=0|eo._crypto_stream_xchacha20_keybytes();es.length!==eb&&f(eu,"invalid key length"),ey=d(es),eu.push(ey);var eS=new u(0|ep),e_=eS.address;if(eu.push(e_),0===eo._crypto_stream_xchacha20_xor_ic(e_,ef,ep,0,em,ea,0,ey)){var eR=y(eS,ed);return g(eu),eR}b(eu,"invalid usage")}function Lt(en,ei){var ea=[];l(ei),m(ea,en,"length"),("number"!=typeof en||(0|en)!==en||en<0)&&f(ea,"length must be an unsigned integer");var es=new u(0|en),ed=es.address;ea.push(ed),eo._randombytes_buf(ed,en);var eu=y(es,ei);return g(ea),eu}function Ut(en,ei,ea){var es=[];l(ea),m(es,en,"length"),("number"!=typeof en||(0|en)!==en||en<0)&&f(es,"length must be an unsigned integer"),ei=x(es,ei,"seed");var ed,eu=0|eo._randombytes_seedbytes();ei.length!==eu&&f(es,"invalid seed length"),ed=d(ei),es.push(ed);var ef=new u(0|en),ep=ef.address;es.push(ep),eo._randombytes_buf_deterministic(ep,en,ed);var em=y(ef,ea);return g(es),em}function Ot(en){l(en),eo._randombytes_close()}function Ct(en){l(en);var ei=eo._randombytes_random()>>>0;return g([]),ei}function Rt(en,ei){var ea=[];l(ei);for(var es=eo._malloc(24),ed=0;ed<6;ed++)eo.setValue(es+4*ed,eo.Runtime.addFunction(en[["implementation_name","random","stir","uniform","buf","close"][ed]]),"i32");0!=(0|eo._randombytes_set_implementation(es))&&b(ea,"unsupported implementation"),g(ea)}function Pt(en){l(en),eo._randombytes_stir()}function Gt(en,ei){var ea=[];l(ei),m(ea,en,"upper_bound"),("number"!=typeof en||(0|en)!==en||en<0)&&f(ea,"upper_bound must be an unsigned integer");var es=eo._randombytes_uniform(en)>>>0;return g(ea),es}function Xt(){var en=eo._sodium_version_string(),ei=eo.UTF8ToString(en);return g([]),ei}return u.prototype.to_Uint8Array=function(){var en=new Uint8Array(this.length);return en.set(eo.HEAPU8.subarray(this.address,this.address+this.length)),en},en.add=function(en,ei){if(!(en instanceof Uint8Array&&ei instanceof Uint8Array))throw TypeError("Only Uint8Array instances can added");var eo=en.length,ea=0,es=0;if(ei.length!=en.length)throw TypeError("Arguments must have the same length");for(es=0;es<eo;es++)ea>>=8,ea+=en[es]+ei[es],en[es]=255&ea},en.base64_variants=ed,en.compare=function(en,ei){if(!(en instanceof Uint8Array&&ei instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(en.length!==ei.length)throw TypeError("Only instances of identical length can be compared");for(var eo=0,ea=1,es=en.length;es-- >0;)eo|=ei[es]-en[es]>>8&ea,ea&=(ei[es]^en[es])-1>>8;return eo+eo+ea-1},en.from_base64=function(en,ei){ei=h(ei);var ea,es=[],ed=new u(3*(en=x(es,en,"input")).length/4),eu=d(en),ef=v(4),ep=v(4);return es.push(eu),es.push(ed.address),es.push(ed.result_bin_len_p),es.push(ed.b64_end_p),0!==eo._sodium_base642bin(ed.address,ed.length,eu,en.length,0,ef,ep,ei)&&b(es,"invalid input"),eo.getValue(ep,"i32")-eu!==en.length&&b(es,"incomplete input"),ed.length=eo.getValue(ef,"i32"),ea=ed.to_Uint8Array(),g(es),ea},en.from_hex=function(en){var ei,ea=[],es=new u((en=x(ea,en,"input")).length/2),ed=d(en),eu=v(4);return ea.push(ed),ea.push(es.address),ea.push(es.hex_end_p),0!==eo._sodium_hex2bin(es.address,es.length,ed,en.length,0,0,eu)&&b(ea,"invalid input"),eo.getValue(eu,"i32")-ed!==e
14n.length&&b(ea,"incomplete input"),ei=es.to_Uint8Array(),g(ea),ei},en.from_string=n,en.increment=function(en){if(!(en instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be incremented");for(var ei=256,eo=0,ea=en.length;eo<ea;eo++)ei>>=8,ei+=en[eo],en[eo]=255&ei},en.is_zero=function(en){if(!(en instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be checked");for(var ei=0,eo=0,ea=en.length;eo<ea;eo++)ei|=en[eo];return 0===ei},en.libsodium=ei,en.memcmp=function(en,ei){if(!(en instanceof Uint8Array&&ei instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be compared");if(en.length!==ei.length)throw TypeError("Only instances of identical length can be compared");for(var eo=0,ea=0,es=en.length;ea<es;ea++)eo|=en[ea]^ei[ea];return 0===eo},en.memzero=function(en){if(!(en instanceof Uint8Array))throw TypeError("Only Uint8Array instances can be wiped");for(var ei=0,eo=en.length;ei<eo;ei++)en[ei]=0},en.output_formats=function(){return["uint8array","text","hex","base64"]},en.pad=function(en,ei){if(!(en instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((ei|=0)<=0)throw Error("block size must be > 0");var ea,es=[],ed=v(4),eu=1,ef=0,ep=0|en.length,em=new u(ep+ei);es.push(ed),es.push(em.address);for(var eg=em.address,ey=em.address+ep+ei;eg<ey;eg++)eo.HEAPU8[eg]=en[ef],ef+=eu=1&~((65535&((ep-=eu)>>>48|ep>>>32|ep>>>16|ep))-1>>16);return 0!==eo._sodium_pad(ed,em.address,en.length,ei,em.length)&&b(es,"internal error"),em.length=eo.getValue(ed,"i32"),ea=em.to_Uint8Array(),g(es),ea},en.unpad=function(en,ei){if(!(en instanceof Uint8Array))throw TypeError("buffer must be a Uint8Array");if((ei|=0)<=0)throw Error("block size must be > 0");var ea=[],es=d(en),ed=v(4);return ea.push(es),ea.push(ed),0!==eo._sodium_unpad(ed,es,en.length,ei)&&b(ea,"unsupported/invalid padding"),en=(en=new Uint8Array(en)).subarray(0,eo.getValue(ed,"i32")),g(ea),en},en.ready=es,en.symbols=function(){return Object.keys(en).sort()},en.to_base64=p,en.to_hex=c,en.to_string=s,en}var ef="object"==typeof eu.sodium&&"function"==typeof eu.sodium.onload?eu.sodium.onload:null;es=[ei,eo(77544)],void 0!==(ed="function"==typeof(ea=r)?ea.apply(ei,es):ea)&&(en.exports=ed),ef&&eu.sodium.ready.then(function(){ef(eu.sodium)})}(this)},13742:function(en,ei,eo){"use strict";eo.d(ei,{Z:function(){return es}});var ea=eo(45711);/**
15 * @license lucide-react v0.363.0 - ISC
16 *
17 * This source code is licensed under the ISC license.
18 * See the LICENSE file in the root directory of this source tree.
19 */let es=(0,ea.Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},8971:function(en,ei,eo){"use strict";eo.d(ei,{Z:function(){return es}});var ea=eo(45711);/**
20 * @license lucide-react v0.363.0 - ISC
21 *
22 * This source code is licensed under the ISC license.
23 * See the LICENSE file in the root directory of this source tree.
24 */let es=(0,ea.Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},84979:function(en,ei,eo){"use strict";eo.d(ei,{Z:function(){return es}});var ea=eo(45711);/**
25 * @license lucide-react v0.363.0 - ISC
26 *
27 * This source code is licensed under the ISC license.
28 * See the LICENSE file in the root directory of this source tree.
29 */let es=(0,ea.Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},79746:function(en){function assert(en,ei){if(!en)throw Error(ei||"Assertion failed")}en.exports=assert,assert.equal=function(en,ei,eo){if(en!=ei)throw Error(eo||"Assertion failed: "+en+" != "+ei)}},34504:function(en,ei){"use strict";var eo=ei;function toArray(en,ei){if(Array.isArray(en))return en.slice();if(!en)return[];var eo=[];if("string"!=typeof en){for(var ea=0;ea<en.length;ea++)eo[ea]=0|en[ea];return eo}if("hex"===ei){(en=en.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(en="0"+en);for(var ea=0;ea<en.length;ea+=2)eo.push(parseInt(en[ea]+en[ea+1],16))}else for(var ea=0;ea<en.length;ea++){var es=en.charCodeAt(ea),ed=es>>8,eu=255&es;ed?eo.push(ed,eu):eo.push(eu)}return eo}function zero2(en){return 1===en.length?"0"+en:en}function toHex(en){for(var ei="",eo=0;eo<en.length;eo++)ei+=zero2(en[eo].toString(16));return ei}eo.toArray=toArray,eo.zero2=zero2,eo.toHex=toHex,eo.encode=function(en,ei){return"hex"===ei?toHex(en):en}},75084:function(en){en.exports={style:{fontFamily:"'__Roboto_54aa2a', '__Roboto_Fallback_54aa2a'",fontWeight:500,fontStyle:"normal"},className:"__className_54aa2a"}},79681:function(en,ei,eo){var ea="/",es=eo(83454);!function(){var ei={782:function(en){"function"==typeof Object.create?en.exports=function(en,ei){ei&&(en.super_=ei,en.prototype=Object.create(ei.prototype,{constructor:{value:en,enumerable:!1,writable:!0,configurable:!0}}))}:en.exports=function(en,ei){if(ei){en.super_=ei;var TempCtor=function(){};TempCtor.prototype=ei.prototype,en.prototype=new TempCtor,en.prototype.constructor=en}}},646:function(en){"use strict";let ei={};
29function createErrorType(en,eo,ea){function getMessage(en,ei,ea){return"string"==typeof eo?eo:eo(en,ei,ea)}ea||(ea=Error);let NodeError=class NodeError extends ea{constructor(en,ei,eo){super(getMessage(en,ei,eo))}};NodeError.prototype.name=ea.name,NodeError.prototype.code=en,ei[en]=NodeError}function oneOf(en,ei){if(!Array.isArray(en))return`of ${ei} ${String(en)}`;{let eo=en.length;return(en=en.map(en=>String(en)),eo>2)?`one of ${ei} ${en.slice(0,eo-1).join(", ")}, or `+en[eo-1]:2===eo?`one of ${ei} ${en[0]} or ${en[1]}`:`of ${ei} ${en[0]}`}}function startsWith(en,ei,eo){return en.substr(!eo||eo<0?0:+eo,ei.length)===ei}function endsWith(en,ei,eo){return(void 0===eo||eo>en.length)&&(eo=en.length),en.substring(eo-ei.length,eo)===ei}function includes(en,ei,eo){return"number"!=typeof eo&&(eo=0),!(eo+ei.length>en.length)&&-1!==en.indexOf(ei,eo)}createErrorType("ERR_INVALID_OPT_VALUE",function(en,ei){return'The value "'+ei+'" is invalid for option "'+en+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(en,ei,eo){let ea,es;if("string"==typeof ei&&startsWith(ei,"not ")?(ea="must not be",ei=ei.replace(/^not /,"")):ea="must be",endsWith(en," argument"))es=`The ${en} ${ea} ${oneOf(ei,"type")}`;else{let eo=includes(en,".")?"property":"argument";es=`The "${en}" ${eo} ${ea} ${oneOf(ei,"type")}`}return es+`. Received type ${typeof eo}`},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(en){return"The "+en+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(en){return"Cannot call "+en+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(en){return"Unknown encoding: "+en},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),en.exports.q=ei},403:function(en,ei,eo){"use strict";var ea=Object.keys||function(en){var ei=[];for(var eo in en)ei.push(eo);return ei};en.exports=Duplex;var ed=eo(709),eu=eo(337);eo(782)(Duplex,ed);for(var ef=ea(eu.prototype),ep=0;ep<ef.length;ep++){var em=ef[ep];Duplex.prototype[em]||(Duplex.prototype[em]=eu.prototype[em])}function Duplex(en){if(!(this instanceof Duplex))return new Duplex(en);ed.call(this,en),eu.call(this,en),this.allowHalfOpen=!0,en&&(!1===en.readable&&(this.readable=!1),!1===en.writable&&(this.writable=!1),!1===en.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",onend)))}function onend(){this._writableState.ended||es.nextTick(onEndNT,this)}function onEndNT(en){en.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(en){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=en,this._writableState.destroyed=en)}})},889:function(en,ei,eo){"use strict";en.exports=PassThrough;var ea=eo(170);function PassThrough(en){if(!(this instanceof PassThrough))return new PassThrough(en);ea.call(this,en)}eo(782)(PassThrough,ea),PassThrough.prototype._transform=function(en,ei,eo){eo(null,en)}},709:function(en,ei,ea){"use strict";en.exports=Readable,Readable.ReadableState=ReadableState,ea(361).EventEmitter;var ed,eu,ef,ep,em,a=function(en,ei){return en.listeners(ei).length},eg=ea(678),ey=ea(300).Buffer,eb=eo.g.Uint8Array||function(){};function _uint8ArrayToBuffer(en){return ey.from(en)}function _isUint8Array(en){return ey.isBuffer(en)||en instanceof eb}var eS=ea(837);eu=eS&&eS.debuglog?eS.debuglog("stream"):function(){};var e_=ea(379),eR=ea(25),eA=ea(776).getHighWaterMark,ew=ea(646).q,eO=ew.ERR_INVALID_ARG_TYPE,eE=ew.ERR_STREAM_PUSH_AFTER_EOF,eP=ew.ERR_METHOD_NOT_IMPLEMENT
vendor: 13,161 bytes, line 29
29ED,eC=ew.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;ea(782)(Readable,eg);var eT=eR.errorOrDestroy,eB=["error","close","destroy","pause","resume"];function prependListener(en,ei,eo){if("function"==typeof en.prependListener)return en.prependListener(ei,eo);en._events&&en._events[ei]?Array.isArray(en._events[ei])?en._events[ei].unshift(eo):en._events[ei]=[eo,en._events[ei]]:en.on(ei,eo)}function ReadableState(en,ei,eo){ed=ed||ea(403),en=en||{},"boolean"!=typeof eo&&(eo=ei instanceof ed),this.objectMode=!!en.objectMode,eo&&(this.objectMode=this.objectMode||!!en.readableObjectMode),this.highWaterMark=eA(this,en,"readableHighWaterMark",eo),this.buffer=new e_,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==en.emitClose,this.autoDestroy=!!en.autoDestroy,this.destroyed=!1,this.defaultEncoding=en.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,en.encoding&&(ef||(ef=ea(704).s),this.decoder=new ef(en.encoding),this.encoding=en.encoding)}function Readable(en){if(ed=ed||ea(403),!(this instanceof Readable))return new Readable(en);var ei=this instanceof ed;this._readableState=new ReadableState(en,this,ei),this.readable=!0,en&&("function"==typeof en.read&&(this._read=en.read),"function"==typeof en.destroy&&(this._destroy=en.destroy)),eg.call(this)}function readableAddChunk(en,ei,eo,ea,es){eu("readableAddChunk",ei);var ed,ef=en._readableState;if(null===ei)ef.reading=!1,onEofChunk(en,ef);else if(es||(ed=chunkInvalid(ef,ei)),ed)eT(en,ed);else if(ef.objectMode||ei&&ei.length>0){if("string"==typeof ei||ef.objectMode||Object.getPrototypeOf(ei)===ey.prototype||(ei=_uint8ArrayToBuffer(ei)),ea)ef.endEmitted?eT(en,new eC):addChunk(en,ef,ei,!0);else if(ef.ended)eT(en,new eE);else{if(ef.destroyed)return!1;ef.reading=!1,ef.decoder&&!eo?(ei=ef.decoder.write(ei),ef.objectMode||0!==ei.length?addChunk(en,ef,ei,!1):maybeReadMore(en,ef)):addChunk(en,ef,ei,!1)}}else ea||(ef.reading=!1,maybeReadMore(en,ef));return!ef.ended&&(ef.length<ef.highWaterMark||0===ef.length)}function addChunk(en,ei,eo,ea){ei.flowing&&0===ei.length&&!ei.sync?(ei.awaitDrain=0,en.emit("data",eo)):(ei.length+=ei.objectMode?1:eo.length,ea?ei.buffer.unshift(eo):ei.buffer.push(eo),ei.needReadable&&emitReadable(en)),maybeReadMore(en,ei)}function chunkInvalid(en,ei){var eo;return _isUint8Array(ei)||"string"==typeof ei||void 0===ei||en.objectMode||(eo=new eO("chunk",["string","Buffer","Uint8Array"],ei)),eo}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(en){this._readableState&&(this._readableState.destroyed=en)}}),Readable.prototype.destroy=eR.destroy,Readable.prototype._undestroy=eR.undestroy,Readable.prototype._destroy=function(en,ei){ei(en)},Readable.prototype.push=function(en,ei){var eo,ea=this._readableState;return ea.objectMode?eo=!0:"string"==typeof en&&((ei=ei||ea.defaultEncoding)!==ea.encoding&&(en=ey.from(en,ei),ei=""),eo=!0),readableAddChunk(this,en,ei,!1,eo)},Readable.prototype.unshift=function(en){return readableAddChunk(this,en,null,!0,!1)},Readable.prototype.isPaused=function(){return!1===this._readableState.flowing},Readable.prototype.setEncoding=function(en){ef||(ef=ea(704).s);var ei=new ef(en);this._readableState.decoder=ei,this._readableState.encoding=this._readableState.decoder.encoding;for(var eo=this._readableState.buffer.head,es="";null!==eo;)es+=ei.write(eo.data),eo=eo.next;return this._readableState.buffer.clear(),""!==es&&this._readableState.buffer.push(es),this._readableState.length=es.length,this};var eN=1073741824;function computeNewHighWaterMark(en){return en>=eN?en=eN:(en--,en|=en>>>1,en|=en>>>2,en|=en>>>4,en|=en>>>8,en|=en>>>16,en++),en}function howMuchToRead(en,ei){return en<=0||0===ei.length&&ei.ended?0:ei.objectMode?1:en!=en?ei.flowing&&ei.length?ei.buffer.head.data.length:ei.length:(en>ei.highWaterMark&&(ei.highWaterMark=computeNewHighWaterMark(en)),en<=ei.length)?en:ei.ended?ei.length:(ei.needReadable=!0,0)}function onEofChunk(en,ei){if(eu("onEofChunk"),!ei.ended){if(ei.decoder){var eo=ei.decoder.end();eo&&eo.length&&(ei.buffer.push(eo),ei.length+=ei.objectMode?1:eo.length)}ei.ended=!0,ei.sync?emitReadable(en):(ei.needReadable=!1,ei.emittedReadable||(ei.emittedReadable=!0,emitReadable_(en)))}}function emitReadable(en){var ei=en._readableState;eu("emitReadable",ei.needReadable,ei.emittedReadable),ei.needReadable=!1,ei.emittedReadable||(eu("emitReadable",ei.flowing),ei.emittedReadable=!0,es.nextTick(emitReadable_,en))}function emitReadable_(en){var ei=en._readableState;eu("emitReadable_",ei.destroyed,ei.length,ei.ended),!ei.destroyed&&(ei.length||ei.ended)&&(en.emit("readable"),ei.emittedReadable=!1),ei.needReadable=!ei.flowing&&!ei.ended&&ei.length<=ei.highWaterMark,flow(en)}function maybeReadMore(en,ei){ei.readingMore||(ei.readingMore=!0,es.nextTick(maybeReadMore_,en,ei))}function maybeReadMore_(en,ei){for(;!ei.reading&&!ei.ended&&(ei.length<ei.highWaterMark||ei.flowing&&0===ei.length);){var eo=ei.length;if(eu("maybeReadMore read 0"),en.read(0),eo===ei.length)break}ei.readingMore=!1}function pipeOnDrain(en){return function(){var ei=en._readableState;eu("pipeOnDrain",ei.awaitDrain),ei.awaitDrain&&ei.awaitDrain--,0===ei.awaitDrain&&a(en,"data")&&(ei.flowing=!0,flow(en))}}function updateReadableListening(en){var ei=en._readableState;ei.readableListening=en.listenerCount("readable")>0,ei.resumeScheduled&&!ei.paused?ei.flowing=!0:en.listenerCount("data")>0&&en.resume()}function nReadingNextTick(en){eu("readable nexttick read 0"),en.read(0)}function resume(en,ei){ei.resumeScheduled||(ei.resumeScheduled=!0,es.nextTick(resume_,en,ei))}function resume_(en,ei){eu("resume",ei.reading),ei.reading||en.read(0),ei.resumeScheduled=!1,en.emit("resume"),flow(en),ei.flowing&&!ei.reading&&en.read(0)}function flow(en){var ei=en._readableState;for(eu("flow",ei.flowing);ei.flowing&&null!==en.read(););}function fromList(en,ei){var eo;return 0===ei.length?null:(ei.objectMode?eo=ei.buffer.shift():!en||en>=ei.length?(eo=ei.decoder?ei.buffer.join(""):1===ei.buffer.length?ei.buffer.first():ei.buffer.concat(ei.length),ei.buffer.clear()):eo=ei.buffer.consume(en,ei.decoder),eo)}function endReadable(en){var ei=en._readableState;eu("endReadable",ei.endEmitted),ei.endEmitted||(ei.ended=!0,es.nextTick(endReadableNT,ei,en))}function endReadableNT(en,ei){if(eu("endReadableNT",en.endEmitted,en.length),!en.endEmitted&&0===en.length&&(en.endEmitted=!0,ei.readable=!1,ei.emit("end"),en.autoDestroy)){var eo=ei._writableState;(!eo||eo.autoDestroy&&eo.finished)&&ei.destroy()}}function indexOf(en,ei){for(var eo=0,ea=en.length;eo<ea;eo++)if(en[eo]===ei)return eo;return -1}Readable.prototype.read=function(en){eu("read",en),en=parseInt(en,10);var ei,eo=this._readableState,ea=en;if(0!==en&&(eo.emittedReadable=!1),0===en&&eo.needReadable&&((0!==eo.highWaterMark?eo.length>=eo.highWaterMark:eo.length>0)||eo.ended))return eu("read: emitReadable",eo.length,eo.ended),0===eo.length&&eo.ended?endReadable(this):emitReadable(this),null;if(0===(en=howMuchToRead(en,eo))&&eo.ended)return 0===eo.length&&endReadable(this),null;var es=eo.needReadable;return eu("need readable",es),(0===eo.length||eo.length-en<eo.highWaterMark)&&eu("length less than watermark",es=!0),eo.ended||eo.reading?eu("reading or ended",es=!1):es&&(eu("do read"),eo.reading=!0,eo.sync=!0,0===eo.length&&(eo.needReadable=!0),this._read(eo.highWaterMark),eo.sync=!1,eo.reading||(en=howMuchToRead(ea,eo))),null===(ei=en>0?fromList(en,eo):null)?(eo.needReadable=eo.length<=eo.highWaterMark,en=0):(eo.length-=en,eo.awaitDrain=0),0===eo.length&&(eo.ended||(eo.needReadable=!0),ea!==en&&eo.ended&&endReadable(this)),null!==ei&&this.emit("data",ei),ei},Readable.prototype._read=function(en){eT(this,new eP("_read()"))},Readable.prototype.pipe=function(en,ei){var eo=this,ea=this._readableState;switch(ea.pipesCount){case 0:ea.pipes=en;break;case 1:ea.pipes=[ea.pipes,en];break;default:ea.pipes.push(en)}ea.pipesCount+=1,eu("pipe count=%d opts=%j",ea.pipesCount,ei);var ed=ei&&!1===ei.end||en===es.stdout||en===es.stderr?unpipe:onend;function onunpipe(en,ei){eu("onunpipe"),en===eo&&ei&&!1===ei.hasUnpiped&&(ei.hasUnpiped=!0,cleanup())}function onend(){eu("onend"),en.end()}ea.endEmitted?es.nextTick(ed):eo.once("end",ed),en.on("unpipe",onunpipe);var ef=pipeOnDrain(eo);en.on("drain",ef);var ep=!1;function cleanup(){eu("cleanup"),en.removeListener("close",onclose),en.removeListener("finish",onfinish),en.removeListener("drain",ef),en.removeListener("error",onerror),en.removeListener("unpipe",onunpipe),eo.removeListener("end",onend),eo.removeListener("end",unpipe),eo.removeListener("data",ondata),ep=!0,ea.awaitDrain&&(!en._writableState||en._writableState.needDrain)&&ef()}function ondata(ei){eu("ondata");var es=en.write(ei);eu("dest.write",es),!1===es&&((1===ea.pipesCount&&ea.pipes===en||ea.pipesCount>1&&-1!==indexOf(ea.pipes,en))&&!ep&&(eu("false write response, pause",ea.awaitDrain),ea.awaitDrain++),eo.pause())}function onerror(ei){eu("onerror",ei),unpipe(),en.removeListener("error",onerror),0===a(en,"error")&&eT(en,ei)}function onclose(){en.removeListener("finish",onfinish),unpipe()}function onfinish(){eu("onfinish"),en.removeListener("close",onclose),unpipe()}function unpipe(){eu("unpipe"),eo.unpipe(en)}return eo.on("data",ondata),prependListener(en,"error",onerror),en.once("close",onclose),en.once("finish",onfinish),en.emit("pipe",eo),ea.flowing||(eu("pipe resume"),eo.resume()),en},Readable.prototype.unpipe=function(en){var ei=this._readableState,eo={hasUnpiped:!1};if(0===ei.pipesCount)return this;if(1===ei.pipesCount)return en&&en!==ei.pipes||(en||(en=ei.pipes),ei.pipes=null,ei.pipesCount=0,ei.flowing=!1,en&&en.emit("unpipe",this,eo)),this;if(!en){var ea=ei.pipes,es=ei.pipesCount;ei.pipes=null,ei.pipesCount=0,ei.flowing=!1;for(var ed=0;ed<es;ed++)ea[ed].emit("unpipe",this,{hasUnpiped:!1});return this}var eu=indexOf(ei.pipes,en);return -1===eu||(ei.pipes.splice(eu,1),ei.pipesCount-=1,1===ei.pipesCount&&(ei.pipes=ei.pipes[0]),en.emit("unpipe",this,eo)),this},Readable.prototype.on=function(en,ei){var eo=eg.prototype.on.call(this,en,ei),ea=this._readableState;return"data"===en?(ea.readableListening=this.listenerCount("readable")>0,!1!==ea.flowing&&this.resume()):"readable"!==en||ea.endEmitted||ea.readableListening||(ea.readableListening=ea.needReadable=!0,ea.flowing=!1,ea.emittedReadable=!1,eu("on readable",ea.length,ea.reading),ea.length?emitReadable(this):ea.reading||es.nextTick(nReadingNextTick,this)),eo},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(en,ei){var eo=eg.prototype.removeListener.call(this,en,ei);return"readable"===en&&es.nextTick(updateReadableListening,this),eo},Readable.prototype.removeAllListeners=function(en){var ei=eg.prototype.removeAllListeners.apply(this,arguments);return("readable"===en||void 0===en)&&es.nextTick(updateReadableListening,this),ei},Readable.prototype.resume=function(){var en=this._readableState;return en.flowing||(eu("resume"),en.flowing=!en.readableListening,resume(this,en)),en.paused=!1,this},Readable.prototype.pause=function(){return eu("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(eu("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(en){var ei=this,eo=this._readableState,ea=!1;for(var es in en.on("end",function(){if(eu("wrapped end"),eo.decoder&&!eo.ended){var en=eo.decoder.end();en&&en.length&&ei.push(en)}ei.push(null)}),en.on("data",function(es){eu("wrapped data"),eo.decoder&&(es=eo.decoder.write(es)),(!eo.objectMode||null!=es)&&(eo.objectMode||es&&es.length)&&(ei.push(es)||(ea=!0,en.pause()))}),en)void 0===this[es]&&"function"==typeof en[es]&&(this[es]=function(ei){return function(){return en[ei].apply(en,arguments)}}(es));for(var ed=0;ed<eB.length;ed++)en.on(eB[ed],this.emit.bind(this,eB[ed]));return this._read=function(ei){eu("wrapped _read",ei),ea&&(ea=!1,en.resume())},this},"function"==typeof Symbol&&(Readable.prototype[Symbol.asyncIterator]=function(){return void 0===ep&&(ep=ea(871)),ep(this)}),Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(en){this._readableState&&(this._readableState.flowing=en)}}),Readable._fromList=fromList,Object.defineProperty(Readable.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(Readable.from=function(en,ei){return void 0===em&&(em=ea(727)),em(Readable,en,ei)})},170:function(en,ei,eo){"use strict";en.exports=Transform;
vendor: 5,322 bytes, line 29
29var ea=eo(646).q,es=ea.ERR_METHOD_NOT_IMPLEMENTED,ed=ea.ERR_MULTIPLE_CALLBACK,eu=ea.ERR_TRANSFORM_ALREADY_TRANSFORMING,ef=ea.ERR_TRANSFORM_WITH_LENGTH_0,ep=eo(403);function afterTransform(en,ei){var eo=this._transformState;eo.transforming=!1;var ea=eo.writecb;if(null===ea)return this.emit("error",new ed);eo.writechunk=null,eo.writecb=null,null!=ei&&this.push(ei),ea(en);var es=this._readableState;es.reading=!1,(es.needReadable||es.length<es.highWaterMark)&&this._read(es.highWaterMark)}function Transform(en){if(!(this instanceof Transform))return new Transform(en);ep.call(this,en),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,en&&("function"==typeof en.transform&&(this._transform=en.transform),"function"==typeof en.flush&&(this._flush=en.flush)),this.on("prefinish",prefinish)}function prefinish(){var en=this;"function"!=typeof this._flush||this._readableState.destroyed?done(this,null,null):this._flush(function(ei,eo){done(en,ei,eo)})}function done(en,ei,eo){if(ei)return en.emit("error",ei);if(null!=eo&&en.push(eo),en._writableState.length)throw new ef;if(en._transformState.transforming)throw new eu;return en.push(null)}eo(782)(Transform,ep),Transform.prototype.push=function(en,ei){return this._transformState.needTransform=!1,ep.prototype.push.call(this,en,ei)},Transform.prototype._transform=function(en,ei,eo){eo(new es("_transform()"))},Transform.prototype._write=function(en,ei,eo){var ea=this._transformState;if(ea.writecb=eo,ea.writechunk=en,ea.writeencoding=ei,!ea.transforming){var es=this._readableState;(ea.needTransform||es.needReadable||es.length<es.highWaterMark)&&this._read(es.highWaterMark)}},Transform.prototype._read=function(en){var ei=this._transformState;null===ei.writechunk||ei.transforming?ei.needTransform=!0:(ei.transforming=!0,this._transform(ei.writechunk,ei.writeencoding,ei.afterTransform))},Transform.prototype._destroy=function(en,ei){ep.prototype._destroy.call(this,en,function(en){ei(en)})}},337:function(en,ei,ea){"use strict";function CorkedRequest(en){var ei=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(ei,en)}}en.exports=Writable,Writable.WritableState=WritableState;var ed,eu,ef={deprecate:ea(769)},ep=ea(678),em=ea(300).Buffer,eg=eo.g.Uint8Array||function(){};function _uint8ArrayToBuffer(en){return em.from(en)}function _isUint8Array(en){return em.isBuffer(en)||en instanceof eg}var ey=ea(25),eb=ea(776).getHighWaterMark,eS=ea(646).q,e_=eS.ERR_INVALID_ARG_TYPE,eR=eS.ERR_METHOD_NOT_IMPLEMENTED,eA=eS.ERR_MULTIPLE_CALLBACK,ew=eS.ERR_STREAM_CANNOT_PIPE,eO=eS.ERR_STREAM_DESTROYED,eE=eS.ERR_STREAM_NULL_VALUES,eP=eS.ERR_STREAM_WRITE_AFTER_END,eC=eS.ERR_UNKNOWN_ENCODING,eT=ey.errorOrDestroy;function nop(){}function WritableState(en,ei,eo){ed=ed||ea(403),en=en||{},"boolean"!=typeof eo&&(eo=ei instanceof ed),this.objectMode=!!en.objectMode,eo&&(this.objectMode=this.objectMode||!!en.writableObjectMode),this.highWaterMark=eb(this,en,"writableHighWaterMark",eo),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var es=!1===en.decodeStrings;this.decodeStrings=!es,this.defaultEncoding=en.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(en){onwrite(ei,en)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==en.emitClose,this.autoDestroy=!!en.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(en){var ei=this instanceof(ed=ed||ea(403));if(!ei&&!eu.call(Writable,this))return new Writable(en);this._writableState=new WritableState(en,this,ei),this.writable=!0,en&&("function"==typeof en.write&&(this._write=en.write),"function"==typeof en.writev&&(this._writev=en.writev),"function"==typeof en.destroy&&(this._destroy=en.destroy),"function"==typeof en.final&&(this._final=en.final)),ep.call(this)}function writeAfterEnd(en,ei){var eo=new eP;eT(en,eo),es.nextTick(ei,eo)}function validChunk(en,ei,eo,ea){var ed;return null===eo?ed=new eE:"string"==typeof eo||ei.objectMode||(ed=new e_("chunk",["string","Buffer"],eo)),!ed||(eT(en,ed),es.nextTick(ea,ed),!1)}function decodeChunk(en,ei,eo){return en.objectMode||!1===en.decodeStrings||"string"!=typeof ei||(ei=em.from(ei,eo)),ei}function writeOrBuffer(en,ei,eo,ea,es,ed){if(!eo){var eu=decodeChunk(ei,ea,es);ea!==eu&&(eo=!0,es="buffer",ea=eu)}var ef=ei.objectMode?1:ea.length;ei.length+=ef;var ep=ei.length<ei.highWaterMark;if(ep||(ei.needDrain=!0),ei.writing||ei.corked){var em=ei.lastBufferedRequest;ei.lastBufferedRequest={chunk:ea,encoding:es,isBuf:eo,callback:ed,next:null},em?em.next=ei.lastBufferedRequest:ei.bufferedRequest=ei.lastBufferedRequest,ei.bufferedRequestCount+=1}else doWrite(en,ei,!1,ef,ea,es,ed);return ep}function doWrite(en,ei,eo,ea,es,ed,eu){ei.writelen=ea,ei.writecb=eu,ei.writing=!0,ei.sync=!0,ei.destroyed?ei.onwrite(new eO("write")):eo?en._writev(es,ei.onwrite):en._write(es,ed,ei.onwrite),ei.sync=!1}function onwriteError(en,ei,eo,ea,ed){--ei.pendingcb,eo?(es.nextTick(ed,ea),es.nextTick(finishM
vendor: 12,893 bytes, line 29
29aybe,en,ei),en._writableState.errorEmitted=!0,eT(en,ea)):(ed(ea),en._writableState.errorEmitted=!0,eT(en,ea),finishMaybe(en,ei))}function onwriteStateUpdate(en){en.writing=!1,en.writecb=null,en.length-=en.writelen,en.writelen=0}function onwrite(en,ei){var eo=en._writableState,ea=eo.sync,ed=eo.writecb;if("function"!=typeof ed)throw new eA;if(onwriteStateUpdate(eo),ei)onwriteError(en,eo,ea,ei,ed);else{var eu=needFinish(eo)||en.destroyed;eu||eo.corked||eo.bufferProcessing||!eo.bufferedRequest||clearBuffer(en,eo),ea?es.nextTick(afterWrite,en,eo,eu,ed):afterWrite(en,eo,eu,ed)}}function afterWrite(en,ei,eo,ea){eo||onwriteDrain(en,ei),ei.pendingcb--,ea(),finishMaybe(en,ei)}function onwriteDrain(en,ei){0===ei.length&&ei.needDrain&&(ei.needDrain=!1,en.emit("drain"))}function clearBuffer(en,ei){ei.bufferProcessing=!0;var eo=ei.bufferedRequest;if(en._writev&&eo&&eo.next){var ea=Array(ei.bufferedRequestCount),es=ei.corkedRequestsFree;es.entry=eo;for(var ed=0,eu=!0;eo;)ea[ed]=eo,eo.isBuf||(eu=!1),eo=eo.next,ed+=1;ea.allBuffers=eu,doWrite(en,ei,!0,ei.length,ea,"",es.finish),ei.pendingcb++,ei.lastBufferedRequest=null,es.next?(ei.corkedRequestsFree=es.next,es.next=null):ei.corkedRequestsFree=new CorkedRequest(ei),ei.bufferedRequestCount=0}else{for(;eo;){var ef=eo.chunk,ep=eo.encoding,em=eo.callback,eg=ei.objectMode?1:ef.length;if(doWrite(en,ei,!1,eg,ef,ep,em),eo=eo.next,ei.bufferedRequestCount--,ei.writing)break}null===eo&&(ei.lastBufferedRequest=null)}ei.bufferedRequest=eo,ei.bufferProcessing=!1}function needFinish(en){return en.ending&&0===en.length&&null===en.bufferedRequest&&!en.finished&&!en.writing}function callFinal(en,ei){en._final(function(eo){ei.pendingcb--,eo&&eT(en,eo),ei.prefinished=!0,en.emit("prefinish"),finishMaybe(en,ei)})}function prefinish(en,ei){ei.prefinished||ei.finalCalled||("function"!=typeof en._final||ei.destroyed?(ei.prefinished=!0,en.emit("prefinish")):(ei.pendingcb++,ei.finalCalled=!0,es.nextTick(callFinal,en,ei)))}function finishMaybe(en,ei){var eo=needFinish(ei);if(eo&&(prefinish(en,ei),0===ei.pendingcb&&(ei.finished=!0,en.emit("finish"),ei.autoDestroy))){var ea=en._readableState;(!ea||ea.autoDestroy&&ea.endEmitted)&&en.destroy()}return eo}function endWritable(en,ei,eo){ei.ending=!0,finishMaybe(en,ei),eo&&(ei.finished?es.nextTick(eo):en.once("finish",eo)),ei.ended=!0,en.writable=!1}function onCorkedFinish(en,ei,eo){var ea=en.entry;for(en.entry=null;ea;){var es=ea.callback;ei.pendingcb--,es(eo),ea=ea.next}ei.corkedRequestsFree.next=en}ea(782)(Writable,ep),WritableState.prototype.getBuffer=function(){for(var en=this.bufferedRequest,ei=[];en;)ei.push(en),en=en.next;return ei},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:ef.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(en){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(eu=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(en){return!!eu.call(this,en)||this===Writable&&en&&en._writableState instanceof WritableState}})):eu=function(en){return en instanceof this},Writable.prototype.pipe=function(){eT(this,new ew)},Writable.prototype.write=function(en,ei,eo){var ea=this._writableState,es=!1,ed=!ea.objectMode&&_isUint8Array(en);return ed&&!em.isBuffer(en)&&(en=_uint8ArrayToBuffer(en)),"function"==typeof ei&&(eo=ei,ei=null),ed?ei="buffer":ei||(ei=ea.defaultEncoding),"function"!=typeof eo&&(eo=nop),ea.ending?writeAfterEnd(this,eo):(ed||validChunk(this,ea,en,eo))&&(ea.pendingcb++,es=writeOrBuffer(this,ea,ed,en,ei,eo)),es},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){var en=this._writableState;!en.corked||(en.corked--,en.writing||en.corked||en.bufferProcessing||!en.bufferedRequest||clearBuffer(this,en))},Writable.prototype.setDefaultEncoding=function(en){if("string"==typeof en&&(en=en.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((en+"").toLowerCase())>-1))throw new eC(en);return this._writableState.defaultEncoding=en,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(en,ei,eo){eo(new eR("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(en,ei,eo){var ea=this._writableState;return"function"==typeof en?(eo=en,en=null,ei=null):"function"==typeof ei&&(eo=ei,ei=null),null!=en&&this.write(en,ei),ea.corked&&(ea.corked=1,this.uncork()),ea.ending||endWritable(this,ea,eo),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(en){this._writableState&&(this._writableState.destroyed=en)}}),Writable.prototype.destroy=ey.destroy,Writable.prototype._undestroy=ey.undestroy,Writable.prototype._destroy=function(en,ei){ei(en)}},871:function(en,ei,eo){"use strict";function _defineProperty(en,ei,eo){return ei in en?Object.defineProperty(en,ei,{value:eo,enumerable:!0,configurable:!0,writable:!0}):en[ei]=eo,en}var ea,ed=eo(698),eu=Symbol("lastResolve"),ef=Symbol("lastReject"),ep=Symbol("error"),em=Symbol("ended"),eg=Symbol("lastPromise"),ey=Symbol("handlePromise"),eb=Symbol("stream");function createIterResult(en,ei){return{value:en,done:ei}}function readAndResolve(en){var ei=en[eu];if(null!==ei){var eo=en[eb].read();null!==eo&&(en[eg]=null,en[eu]=null,en[ef]=null,ei(createIterResult(eo,!1)))}}function onReadable(en){es.nextTick(readAndResolve,en)}function wrapForNext(en,ei){return function(eo,ea){en.then(function(){if(ei[em]){eo(createIterResult(void 0,!0));return}ei[ey](eo,ea)},ea)}}var eS=Object.getPrototypeOf(function(){}),e_=Object.setPrototypeOf((_defineProperty(ea={get stream(){return this[eb]},next:function(){var en,ei=this,eo=this[ep];if(null!==eo)return Promise.reject(eo);if(this[em])return Promise.resolve(createIterResult(void 0,!0));if(this[eb].destroyed)return new Promise(function(en,eo){es.nextTick(function(){ei[ep]?eo(ei[ep]):en(createIterResult(void 0,!0))})});var ea=this[eg];if(ea)en=new Promise(wrapForNext(ea,this));else{var ed=this[eb].read();if(null!==ed)return Promise.resolve(createIterResult(ed,!1));en=new Promise(this[ey])}return this[eg]=en,en}},Symbol.asyncIterator,function(){return this}),_defineProperty(ea,"return",function(){var en=this;return new Promise(function(ei,eo){en[eb].destroy(null,function(en){if(en){eo(en);return}ei(createIterResult(void 0,!0))})})}),ea),eS),p=function(en){var ei,eo=Object.create(e_,(_defineProperty(ei={},eb,{value:en,writable:!0}),_defineProperty(ei,eu,{value:null,writable:!0}),_defineProperty(ei,ef,{value:null,writable:!0}),_defineProperty(ei,ep,{value:null,writable:!0}),_defineProperty(ei,em,{value:en._readableState.endEmitted,writable:!0}),_defineProperty(ei,ey,{value:function(en,ei){var ea=eo[eb].read();ea?(eo[eg]=null,eo[eu]=null,eo[ef]=null,en(createIterResult(ea,!1))):(eo[eu]=en,eo[ef]=ei)},writable:!0}),ei));return eo[eg]=null,ed(en,function(en){if(en&&"ERR_STREAM_PREMATURE_CLOSE"!==en.code){var ei=eo[ef];null!==ei&&(eo[eg]=null,eo[eu]=null,eo[ef]=null,ei(en)),eo[ep]=en;return}var ea=eo[eu];null!==ea&&(eo[eg]=null,eo[eu]=null,eo[ef]=null,ea(createIterResult(void 0,!0))),eo[em]=!0}),en.on("readable",onReadable.bind(null,eo)),eo};en.exports=p},379:function(en,ei,eo){"use strict";function ownKeys(en,ei){var eo=Object.keys(en);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(en);ei&&(ea=ea.filter(function(ei){return Object.getOwnPropertyDescriptor(en,ei).enumerable})),eo.push.apply(eo,ea)}return eo}function _objectSpread(en){for(var ei=1;ei<arguments.length;ei++){var eo=null!=arguments[ei]?arguments[ei]:{};ei%2?ownKeys(Object(eo),!0).forEach(function(ei){_defineProperty(en,ei,eo[ei])}):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(eo)):ownKeys(Object(eo)).forEach(function(ei){Object.defineProperty(en,ei,Object.getOwnPropertyDescriptor(eo,ei))})}return en}function _defineProperty(en,ei,eo){return ei in en?Object.defineProperty(en,ei,{value:eo,enumerable:!0,configurable:!0,writable:!0}):en[ei]=eo,en}function _classCallCheck(en,ei){if(!(en instanceof ei))throw TypeError("Cannot call a class as a function")}function _defineProperties(en,ei){for(var eo=0;eo<ei.length;eo++){var ea=ei[eo];ea.enumerable=ea.enumerable||!1,ea.configurable=!0,"value"in ea&&(ea.writable=!0),Object.defineProperty(en,ea.key,ea)}}function _createClass(en,ei,eo){return ei&&_defineProperties(en.prototype,ei),eo&&_defineProperties(en,eo),en}var ea=eo(300).Buffer,es=eo(837).inspect,ed=es&&es.custom||"inspect";function copyBuffer(en,ei,eo){ea.prototype.copy.call(en,ei,eo)}en.exports=function(){function BufferList(){_classCallCheck(this,BufferList),this.head=null,this.tail=null,this.length=0}return _createClass(BufferList,[{key:"push",value:function(en){var ei={data:en,next:null};this.length>0?this.tail.next=ei:this.head=ei,this.tail=ei,++this.length}},{key:"unshift",value:function(en){var ei={data:en,next:this.head};0===this.length&&(this.tail=ei),this.head=ei,++this.length}},{key:"shift",value:function(){if(0!==this.length){var en=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,en}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(en){if(0===this.length)return"";for(var ei=this.head,eo=""+ei.data;ei=ei.next;)eo+=en+ei.data;return eo}},{key:"concat",value:function(en){if(0===this.length)return ea.alloc(0);for(var ei=ea.allocUnsafe(en>>>0),eo=this.head,es=0;eo;)copyBuffer(eo.data,ei,es),es+=eo.data.length,eo=eo.next;return ei}},{key:"consume",value:function(en,ei){var eo;return en<this.head.data.length?(eo=this.head.data.slice(0,en),this.head.data=this.head.data.slice(en)):eo=en===this.head.data.length?this.shift():ei?this._getString(en):this._getBuffer(en),eo}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(en){var ei=this.head,eo=1,ea=ei.data;for(en-=ea.length;ei=ei.next;){var es=ei.data,ed=en>es.length?es.length:en;if(ed===es.length?ea+=es:ea+=es.slice(0,en),0==(en-=ed)){ed===es.length?(++eo,ei.next?this.head=ei.next:this.head=this.tail=null):(this.head=ei,ei.data=es.slice(ed));break}++eo}return this.length-=eo,ea}},{key:"_getBuffer",value:function(en){var ei=ea.allocUnsafe(en),eo=this.head,es=1;for(eo.data.copy(ei),en-=eo.data.length;eo=eo.next;){var ed=eo.data,eu=en>ed.length?ed.length:en;if(ed.copy(ei,ei.length-en,0,eu),0==(en-=eu)){eu===ed.length?(++es,eo.next?this.head=eo.next:this.head=this.tail=null):(this.head=eo,eo.data=ed.slice(eu));break}++es}return this.length-=es,ei}},{key:ed,value:function(en,ei){return es(this,_objectSpread({},ei,{depth:0,customInspect:!1}))}}]),BufferList}()},25:function(en){"use strict";function destroy(en,ei){var eo=this,ea=this._readableState&&this._readableState.destroyed,ed=this._writableState&&this._writableState.destroyed;return ea||ed?ei?ei(en):en&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,es.nextTick(emitErrorNT,this,en)):es.nextTick(emitErrorNT,this,en)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(en||null,function(en){!ei&&en?eo._writableState?eo._writableState.errorEmitted?es.nextTick(emitCloseNT,eo):(eo._writableState.errorEmitted=!0,es.nextTick(emitErrorAndCloseNT,eo,en)):es.nextTick(emitErrorAndCloseNT,eo,en):ei?(es.nextTick(emitCloseNT,eo),ei(en)):es.nextTick(emitCloseNT,eo)})),this}function emitErrorAndCloseNT(en,ei){emitErrorNT(en,ei),emitCloseNT(en)}function emitCloseNT(en){(!en._writableState||en._writableState.emitClose)&&(!en._readableState||en._readableState.emitClose)&&en.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(en,ei){en.emit("error",ei)}function errorOrDestroy(en,ei){var eo=en._readableState,ea=en._writableState;eo&&eo.autoDestroy||ea&&ea.autoDestroy?en.destroy(ei):en.emit("error",ei)}
29en.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},698:function(en,ei,eo){"use strict";var ea=eo(646).q.ERR_STREAM_PREMATURE_CLOSE;function once(en){var ei=!1;return function(){if(!ei){ei=!0;for(var eo=arguments.length,ea=Array(eo),es=0;es<eo;es++)ea[es]=arguments[es];en.apply(this,ea)}}}function noop(){}function isRequest(en){return en.setHeader&&"function"==typeof en.abort}function eos(en,ei,eo){if("function"==typeof ei)return eos(en,null,ei);ei||(ei={}),eo=once(eo||noop);var es=ei.readable||!1!==ei.readable&&en.readable,ed=ei.writable||!1!==ei.writable&&en.writable,o=function(){en.writable||f()},eu=en._writableState&&en._writableState.finished,f=function(){ed=!1,eu=!0,es||eo.call(en)},ef=en._readableState&&en._readableState.endEmitted,u=function(){es=!1,ef=!0,ed||eo.call(en)},d=function(ei){eo.call(en,ei)},c=function(){var ei;return es&&!ef?(en._readableState&&en._readableState.ended||(ei=new ea),eo.call(en,ei)):ed&&!eu?(en._writableState&&en._writableState.ended||(ei=new ea),eo.call(en,ei)):void 0},h=function(){en.req.on("finish",f)};return isRequest(en)?(en.on("complete",f),en.on("abort",c),en.req?h():en.on("request",h)):ed&&!en._writableState&&(en.on("end",o),en.on("close",o)),en.on("end",u),en.on("finish",f),!1!==ei.error&&en.on("error",d),en.on("close",c),function(){en.removeListener("complete",f),en.removeListener("abort",c),en.removeListener("request",h),en.req&&en.req.removeListener("finish",f),en.removeListener("end",o),en.removeListener("close",o),en.removeListener("finish",f),en.removeListener("end",u),en.removeListener("error",d),en.removeListener("close",c)}}en.exports=eos},727:function(en,ei,eo){"use strict";function asyncGeneratorStep(en,ei,eo,ea,es,ed,eu){try{var ef=en[ed](eu),ep=ef.value}catch(en){eo(en);return}ef.done?ei(ep):Promise.resolve(ep).then(ea,es)}function _asyncToGenerator(en){return function(){var ei=this,eo=arguments;return new Promise(function(ea,es){var ed=en.apply(ei,eo);function _next(en){asyncGeneratorStep(ed,ea,es,_next,_throw,"next",en)}function _throw(en){asyncGeneratorStep(ed,ea,es,_next,_throw,"throw",en)}_next(void 0)})}}function ownKeys(en,ei){var eo=Object.keys(en);if(Object.getOwnPropertySymbols){var ea=Object.getOwnPropertySymbols(en);ei&&(ea=ea.filter(function(ei){return Object.getOwnPropertyDescriptor(en,ei).enumerable})),eo.push.apply(eo,ea)}return eo}function _objectSpread(en){for(var ei=1;ei<arguments.length;ei++){var eo=null!=arguments[ei]?arguments[ei]:{};ei%2?ownKeys(Object(eo),!0).forEach(function(ei){_defineProperty(en,ei,eo[ei])}):Object.getOwnPropertyDescriptors?Object.defineProperties(en,Object.getOwnPropertyDescriptors(eo)):ownKeys(Object(eo)).forEach(function(ei){Object.defineProperty(en,ei,Object.getOwnPropertyDescriptor(eo,ei))})}return en}function _defineProperty(en,ei,eo){return ei in en?Object.defineProperty(en,ei,{value:eo,enumerable:!0,configurable:!0,writable:!0}):en[ei]=eo,en}var ea=eo(646).q.ERR_INVALID_ARG_TYPE;function from(en,ei,eo){if(ei&&"function"==typeof ei.next)es=ei;else if(ei&&ei[Symbol.asyncIterator])es=ei[Symbol.asyncIterator]();else if(ei&&ei[Symbol.iterator])es=ei[Symbol.iterator]();else throw new ea("iterable",["Iterable"],ei);var es,ed=new en(_objectSpread({objectMode:!0},eo)),eu=!1;function next(){return _next2.apply(this,arguments)}function _next2(){return(_next2=_asyncToGenerator(function*(){try{var en=yield es.next(),ei=en.value;en.done?ed.push(null):ed.push((yield ei))?next():eu=!1}catch(en){ed.destroy(en)}})).apply(this,arguments)}return ed._read=function(){eu||(eu=!0,next())},ed}en.exports=from},442:function(en,ei,eo){"use strict";function once(en){var ei=!1;return function(){ei||(ei=!0,en.apply(void 0,arguments))}}var ea,es=eo(646).q,ed=es.ERR_MISSING_ARGS,eu=es.ERR_STREAM_DESTROYED;function noop(en){if(en)throw en}function isRequest(en){return en.setHeader&&"function"==typeof en.abort}function destroyer(en,ei,es,ed){ed=once(ed);var ef=!1;en.on("close",function(){ef=!0}),void 0===ea&&(ea=eo(698)),ea(en,{readable:ei,writable:es},function(en){if(en)return ed(en);ef=!0,ed()});var ep=!1;return function(ei){if(!ef&&!ep){if(ep=!0,isRequest(en))return en.abort();if("function"==typeof en.destroy)return en.destroy();ed(ei||new eu("pipe"))}}}function call(en){en()}function pipe(en,ei){return en.pipe(ei)}function popCallback(en){return en.length&&"function"==typeof en[en.length-1]?en.pop():noop}function pipeline(){for(var en,ei=arguments.length,eo=Array(ei),ea=0;ea<ei;ea++)eo[ea]=arguments[ea];var es=popCallback(eo);if(Array.isArray(eo[0])&&(eo=eo[0]),eo.length<2)throw new ed("streams");var eu=eo.map(function(ei,ea){var ed=ea<eo.length-1;return destroyer(ei,ed,ea>0,function(ei){en||(en=ei),ei&&eu.forEach(call),ed||(eu.forEach(call),es(en))})});return eo.reduce(pipe)}en.exports=pipeline},776:function(en,ei,eo){"use strict";
29var ea=eo(646).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(en,ei,eo){return null!=en.highWaterMark?en.highWaterMark:ei?en[eo]:null}function getHighWaterMark(en,ei,eo,es){var ed=highWaterMarkFrom(ei,es,eo);if(null!=ed){if(!(isFinite(ed)&&Math.floor(ed)===ed)||ed<0){var eu=es?eo:"highWaterMark";throw new ea(eu,ed)}return Math.floor(ed)}return en.objectMode?16:16384}en.exports={getHighWaterMark:getHighWaterMark}},678:function(en,ei,eo){en.exports=eo(781)},55:function(en,ei,eo){var ea=eo(300),es=ea.Buffer;function copyProps(en,ei){for(var eo in en)ei[eo]=en[eo]}function SafeBuffer(en,ei,eo){return es(en,ei,eo)}es.from&&es.alloc&&es.allocUnsafe&&es.allocUnsafeSlow?en.exports=ea:(copyProps(ea,ei),ei.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(es.prototype),copyProps(es,SafeBuffer),SafeBuffer.from=function(en,ei,eo){if("number"==typeof en)throw TypeError("Argument must not be a number");return es(en,ei,eo)},SafeBuffer.alloc=function(en,ei,eo){if("number"!=typeof en)throw TypeError("Argument must be a number");var ea=es(en);return void 0!==ei?"string"==typeof eo?ea.fill(ei,eo):ea.fill(ei):ea.fill(0),ea},SafeBuffer.allocUnsafe=function(en){if("number"!=typeof en)throw TypeError("Argument must be a number");return es(en)},SafeBuffer.allocUnsafeSlow=function(en){if("number"!=typeof en)throw TypeError("Argument must be a number");return ea.SlowBuffer(en)}},173:function(en,ei,eo){en.exports=Stream;var ea=eo(361).EventEmitter;function Stream(){ea.call(this)}eo(782)(Stream,ea),Stream.Readable=eo(709),Stream.Writable=eo(337),Stream.Duplex=eo(403),Stream.Transform=eo(170),Stream.PassThrough=eo(889),Stream.finished=eo(698),Stream.pipeline=eo(442),Stream.Stream=Stream,Stream.prototype.pipe=function(en,ei){var eo=this;function ondata(ei){en.writable&&!1===en.write(ei)&&eo.pause&&eo.pause()}function ondrain(){eo.readable&&eo.resume&&eo.resume()}eo.on("data",ondata),en.on("drain",ondrain),en._isStdio||ei&&!1===ei.end||(eo.on("end",onend),eo.on("close",onclose));var es=!1;function onend(){es||(es=!0,en.end())}function onclose(){es||(es=!0,"function"==typeof en.destroy&&en.destroy())}function onerror(en){if(cleanup(),0===ea.listenerCount(this,"error"))throw en}function cleanup(){eo.removeListener("data",ondata),en.removeListener("drain",ondrain),eo.removeListener("end",onend),eo.removeListener("close",onclose),eo.removeListener("error",onerror),en.removeListener("error",onerror),eo.removeListener("end",cleanup),eo.removeListener("close",cleanup),en.removeListener("close",cleanup)}return eo.on("error",onerror),en.on("error",onerror),eo.on("end",cleanup),eo.on("close",cleanup),en.on("close",cleanup),en.emit("pipe",eo),en}},704:function(en,ei,eo){"use strict";var ea=eo(55).Buffer,es=ea.isEncoding||function(en){switch((en=""+en)&&en.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function _normalizeEncoding(en){var ei;if(!en)return"utf8";for(;;)switch(en){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return en;default:if(ei)return;en=(""+en).toLowerCase(),ei=!0}}function normalizeEncoding(en){var ei=_normalizeEncoding(en);if("string"!=typeof ei&&(ea.isEncoding===es||!es(en)))throw Error("Unknown encoding: "+en);return ei||en}function StringDecoder(en){var ei;switch(this.encoding=normalizeEncoding(en),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,ei=4;break;case"utf8":this.fillLast=utf8FillLast,ei=4;break;case"base64":this.text=base64Text,this.end=base64End,ei=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ea.allocUnsafe(ei)}function utf8CheckByte(en){return en<=127?0:en>>5==6?2:en>>4==14?3:en>>3==30?4:en>>6==2?-1:-2}function utf8CheckIncomplete(en,ei,eo){var ea=ei.length-1;if(ea<eo)return 0;var es=utf8CheckByte(ei[ea]);return es>=0?(es>0&&(en.lastNeed=es-1),es):--ea<eo||-2===es?0:(es=utf8CheckByte(ei[ea]))>=0?(es>0&&(en.lastNeed=es-2),es):--ea<eo||-2===es?0:(es=utf8CheckByte(ei[ea]))>=0?(es>0&&(2===es?es=0:en.lastNeed=es-3),es):0}function utf8CheckExtraBytes(en,ei,eo){if((192&ei[0])!=128)return en.lastNeed=0,"�";if(en.lastNeed>1&&ei.length>1){if((192&ei[1])!=128)return en.lastNeed=1,"�";if(en.lastNeed>2&&ei.length>2&&(192&ei[2])!=128)return en.lastNeed=2,"�"}}function utf8FillLast(en){var ei=this.lastTotal-this.lastNeed,eo=utf8CheckExtraBytes(this,en,ei);return void 0!==eo?eo:this.lastNeed<=en.length?(en.copy(this.lastChar,ei,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(en.copy(this.lastChar,ei,0,en.length),this.lastNeed-=en.length)}function utf8Text(en,ei){var eo=utf8CheckIncomplete(this,en,ei);if(!this.lastNeed)return en.toString("utf8",ei);this.lastTotal=eo;var ea=en.length-(eo-this.lastNeed);
29return en.copy(this.lastChar,0,ea),en.toString("utf8",ei,ea)}function utf8End(en){var ei=en&&en.length?this.write(en):"";return this.lastNeed?ei+"�":ei}function utf16Text(en,ei){if((en.length-ei)%2==0){var eo=en.toString("utf16le",ei);if(eo){var ea=eo.charCodeAt(eo.length-1);if(ea>=55296&&ea<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=en[en.length-2],this.lastChar[1]=en[en.length-1],eo.slice(0,-1)}return eo}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=en[en.length-1],en.toString("utf16le",ei,en.length-1)}function utf16End(en){var ei=en&&en.length?this.write(en):"";if(this.lastNeed){var eo=this.lastTotal-this.lastNeed;return ei+this.lastChar.toString("utf16le",0,eo)}return ei}function base64Text(en,ei){var eo=(en.length-ei)%3;return 0===eo?en.toString("base64",ei):(this.lastNeed=3-eo,this.lastTotal=3,1===eo?this.lastChar[0]=en[en.length-1]:(this.lastChar[0]=en[en.length-2],this.lastChar[1]=en[en.length-1]),en.toString("base64",ei,en.length-eo))}function base64End(en){var ei=en&&en.length?this.write(en):"";return this.lastNeed?ei+this.lastChar.toString("base64",0,3-this.lastNeed):ei}function simpleWrite(en){return en.toString(this.encoding)}function simpleEnd(en){return en&&en.length?this.write(en):""}ei.s=StringDecoder,StringDecoder.prototype.write=function(en){var ei,eo;if(0===en.length)return"";if(this.lastNeed){if(void 0===(ei=this.fillLast(en)))return"";eo=this.lastNeed,this.lastNeed=0}else eo=0;return eo<en.length?ei?ei+this.text(en,eo):this.text(en,eo):ei||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(en){if(this.lastNeed<=en.length)return en.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);en.copy(this.lastChar,this.lastTotal-this.lastNeed,0,en.length),this.lastNeed-=en.length}},769:function(en){function deprecate(en,ei){if(config("noDeprecation"))return en;var eo=!1;return function(){if(!eo){if(config("throwDeprecation"))throw Error(ei);config("traceDeprecation")?console.trace(ei):console.warn(ei),eo=!0}return en.apply(this,arguments)}}function config(en){try{if(!eo.g.localStorage)return!1}catch(en){return!1}var ei=eo.g.localStorage[en];return null!=ei&&"true"===String(ei).toLowerCase()}en.exports=deprecate},300:function(en){"use strict";en.exports=eo(48764)},361:function(en){"use strict";en.exports=eo(17187)},781:function(en){"use strict";en.exports=eo(17187).EventEmitter},837:function(en){"use strict";en.exports=eo(89539)}},ed={};function __nccwpck_require__(en){var eo=ed[en];if(void 0!==eo)return eo.exports;var ea=ed[en]={exports:{}},es=!0;try{ei[en](ea,ea.exports,__nccwpck_require__),es=!1}finally{es&&delete ed[en]}return ea.exports}__nccwpck_require__.ab=ea+"/";var eu=__nccwpck_require__(173);en.exports=eu}()},51951:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(en,ei){if(en.indexOf)return en.indexOf(ei);for(var eo=0;eo<en.length;eo++)if(en[eo]===ei)return eo;return -1},Object_keys=function(en){if(Object.keys)return Object.keys(en);var ei=[];for(var eo in en)ei.push(eo);return ei},forEach=function(en,ei){if(en.forEach)return en.forEach(ei);for(var eo=0;eo<en.length;eo++)ei(en[eo],eo,en)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(en,ei,eo){Object.defineProperty(en,ei,{writable:!0,enumerable:!1,configurable:!0,value:eo})}}catch(en){return function(en,ei,eo){en[ei]=eo}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(en){if(!(this instanceof Script))return new Script(en);this.code=en};Script.prototype.runInContext=function(en){if(!(en instanceof Context))throw TypeError("needs a 'context' argument.");var ei=document.createElement("iframe");ei.style||(ei.style={}),ei.style.display="none",document.body.appendChild(ei);var eo=ei.contentWindow,ea=eo.eval,es=eo.execScript;!ea&&es&&(es.call(eo,"null"),ea=eo.eval),forEach(Object_keys(en),function(ei){eo[ei]=en[ei]}
29),forEach(globals,function(ei){en[ei]&&(eo[ei]=en[ei])});var ed=Object_keys(eo),eu=ea.call(eo,this.code);return forEach(Object_keys(eo),function(ei){(ei in en||-1===indexOf(ed,ei))&&(en[ei]=eo[ei])}),forEach(globals,function(ei){ei in en||defineProp(en,ei,eo[ei])}),document.body.removeChild(ei),eu},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(en){var ei=Script.createContext(en),eo=this.runInContext(ei);return en&&forEach(Object_keys(ei),function(eo){en[eo]=ei[eo]}),eo},forEach(Object_keys(Script.prototype),function(en){exports[en]=Script[en]=function(ei){var eo=Script(ei);return eo[en].apply(eo,[].slice.call(arguments,1))}}),exports.isContext=function(en){return en instanceof Context},exports.createScript=function(en){return exports.Script(en)},exports.createContext=Script.createContext=function(en){var ei=new Context;return"object"==typeof en&&forEach(Object_keys(en),function(eo){ei[eo]=en[eo]}),ei}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},18987:function(en,ei,eo){"use strict";var ea;if(!Object.keys){var es=Object.prototype.hasOwnProperty,ed=Object.prototype.toString,eu=eo(21414),ef=Object.prototype.propertyIsEnumerable,ep=!ef.call({toString:null},"toString"),em=ef.call(function(){},"prototype"),eg=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],equalsConstructorPrototype=function(en){var ei=en.constructor;return ei&&ei.prototype===en},ey={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},eb=function(){if("undefined"==typeof window)return!1;for(var en in window)try{if(!ey["$"+en]&&es.call(window,en)&&null!==window[en]&&"object"==typeof window[en])try{equalsConstructorPrototype(window[en])}catch(en){return!0}}catch(en){return!0}return!1}(),equalsConstructorPrototypeIfNotBuggy=function(en){if("undefined"==typeof window||!eb)return equalsConstructorPrototype(en);try{return equalsConstructorPrototype(en)}catch(en){return!1}};ea=function(en){var ei=null!==en&&"object"==typeof en,eo="[object Function]"===ed.call(en),ea=eu(en),ef=ei&&"[object String]"===ed.call(en),ey=[];if(!ei&&!eo&&!ea)throw TypeError("Object.keys called on a non-object");var eb=em&&eo;if(ef&&en.length>0&&!es.call(en,0))for(var eS=0;eS<en.length;++eS)ey.push(String(eS));if(ea&&en.length>0)for(var e_=0;e_<en.length;++e_)ey.push(String(e_));else for(var eR in en)!(eb&&"prototype"===eR)&&es.call(en,eR)&&ey.push(String(eR));if(ep)for(var eA=equalsConstructorPrototypeIfNotBuggy(en),ew=0;ew<eg.length;++ew)!(eA&&"constructor"===eg[ew])&&es.call(en,eg[ew])&&ey.push(eg[ew]);return ey}}en.exports=ea},82215:function(en,ei,eo){"use strict";var ea=Array.prototype.slice,es=eo(21414),ed=Object.keys,eu=ed?function(en){return ed(en)}:eo(18987),ef=Object.keys;eu.shim=function(){return Object.keys?!function(){var en=Object.keys(arguments);return en&&en.length===arguments.length}(1,2)&&(Object.keys=function(en){return es(en)?ef(ea.call(en)):ef(en)}):Object.keys=eu,Object.keys||eu},en.exports=eu},21414:function(en){"use strict";var ei=Object.prototype.toString;en.exports=function(en){var eo=ei.call(en),ea="[object Arguments]"===eo;return ea||(ea="[object Array]"!==eo&&null!==en&&"object"==typeof en&&"number"==typeof en.length&&en.length>=0&&"[object Function]"===ei.call(en.callee)),ea}},89908:function(en){"use strict";en.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},62100:function(en,ei,eo){"use strict";en.exports=eo(89482)},89482:function(en,ei,eo){"use strict";var ea=ei;function configure(){ea.util._configure(),ea.Writer._configure(ea.BufferWriter),ea.Reader._
29configure(ea.BufferReader)}ea.build="minimal",ea.Writer=eo(41173),ea.BufferWriter=eo(43155),ea.Reader=eo(51408),ea.BufferReader=eo(50593),ea.util=eo(99693),ea.rpc=eo(35994),ea.roots=eo(85054),ea.configure=configure,configure()},51408:function(en,ei,eo){"use strict";en.exports=Reader;var ea,es=eo(99693),ed=es.LongBits,eu=es.utf8;function indexOutOfRange(en,ei){return RangeError("index out of range: "+en.pos+" + "+(ei||1)+" > "+en.len)}function Reader(en){this.buf=en,this.pos=0,this.len=en.length}var ef="undefined"!=typeof Uint8Array?function(en){if(en instanceof Uint8Array||Array.isArray(en))return new Reader(en);throw Error("illegal buffer")}:function(en){if(Array.isArray(en))return new Reader(en);throw Error("illegal buffer")},create=function(){return es.Buffer?function(en){return(Reader.create=function(en){return es.Buffer.isBuffer(en)?new ea(en):ef(en)})(en)}:ef};function readLongVarint(){var en=new ed(0,0),ei=0;if(this.len-this.pos>4){for(;ei<4;++ei)if(en.lo=(en.lo|(127&this.buf[this.pos])<<7*ei)>>>0,this.buf[this.pos++]<128)return en;if(en.lo=(en.lo|(127&this.buf[this.pos])<<28)>>>0,en.hi=(en.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return en;ei=0}else{for(;ei<3;++ei){if(this.pos>=this.len)throw indexOutOfRange(this);if(en.lo=(en.lo|(127&this.buf[this.pos])<<7*ei)>>>0,this.buf[this.pos++]<128)return en}return en.lo=(en.lo|(127&this.buf[this.pos++])<<7*ei)>>>0,en}if(this.len-this.pos>4){for(;ei<5;++ei)if(en.hi=(en.hi|(127&this.buf[this.pos])<<7*ei+3)>>>0,this.buf[this.pos++]<128)return en}else for(;ei<5;++ei){if(this.pos>=this.len)throw indexOutOfRange(this);if(en.hi=(en.hi|(127&this.buf[this.pos])<<7*ei+3)>>>0,this.buf[this.pos++]<128)return en}throw Error("invalid varint encoding")}function readFixed32_end(en,ei){return(en[ei-4]|en[ei-3]<<8|en[ei-2]<<16|en[ei-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new ed(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=es.Array.prototype.subarray||es.Array.prototype.slice,Reader.prototype.uint32=function(){var en=4294967295;return function(){if(en=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(en=(en|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(en=(en|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(en=(en|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(en=(en|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return en;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return en}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var en=this.uint32();return en>>>1^-(1&en)|0},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var en=es.float.readFloatLE(this.buf,this.pos);return this.pos+=4,en},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var en=es.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,en},Reader.prototype.bytes=function(){var en=this.uint32(),ei=this.pos,eo=this.pos+en;if(eo>this.len)throw indexOutOfRange(this,en);if(this.pos+=en,Array.isArray(this.buf))return this.buf.slice(ei,eo);if(ei===eo){var ea=es.Buffer;return ea?ea.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,ei,eo)},Reader.prototype.string=function(){var en=this.bytes();return eu.read(en,0,en.length)},Reader.prototype.skip=function(en){if("number"==typeof en){if(this.pos+en>this.len)throw indexOutOfRange(this,en);this.pos+=en}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.prototype.skipType=function(en){switch(en){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(en=7&this.uint32());)this.skipType(en);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+en+" at offset "+this.pos)}return this}
29,Reader._configure=function(en){ea=en,Reader.create=create(),ea._configure();var ei=es.Long?"toLong":"toNumber";es.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[ei](!1)},uint64:function(){return readLongVarint.call(this)[ei](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[ei](!1)},fixed64:function(){return readFixed64.call(this)[ei](!0)},sfixed64:function(){return readFixed64.call(this)[ei](!1)}})}},50593:function(en,ei,eo){"use strict";en.exports=BufferReader;var ea=eo(51408);(BufferReader.prototype=Object.create(ea.prototype)).constructor=BufferReader;var es=eo(99693);function BufferReader(en){ea.call(this,en)}BufferReader._configure=function(){es.Buffer&&(BufferReader.prototype._slice=es.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var en=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+en,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+en,this.len))},BufferReader._configure()},85054:function(en){"use strict";en.exports={}},35994:function(en,ei,eo){"use strict";ei.Service=eo(77948)},77948:function(en,ei,eo){"use strict";en.exports=Service;var ea=eo(99693);function Service(en,ei,eo){if("function"!=typeof en)throw TypeError("rpcImpl must be a function");ea.EventEmitter.call(this),this.rpcImpl=en,this.requestDelimited=!!ei,this.responseDelimited=!!eo}(Service.prototype=Object.create(ea.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(en,ei,eo,es,ed){if(!es)throw TypeError("request must be specified");var eu=this;if(!ed)return ea.asPromise(rpcCall,eu,en,ei,eo,es);if(!eu.rpcImpl){setTimeout(function(){ed(Error("already ended"))},0);return}try{return eu.rpcImpl(en,ei[eu.requestDelimited?"encodeDelimited":"encode"](es).finish(),function(ei,ea){if(ei)return eu.emit("error",ei,en),ed(ei);if(null===ea){eu.end(!0);return}if(!(ea instanceof eo))try{ea=eo[eu.responseDelimited?"decodeDelimited":"decode"](ea)}catch(ei){return eu.emit("error",ei,en),ed(ei)}return eu.emit("data",ea,en),ed(null,ea)})}catch(ei){eu.emit("error",ei,en),setTimeout(function(){ed(ei)},0);return}},Service.prototype.end=function(en){return this.rpcImpl&&(en||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},1945:function(en,ei,eo){"use strict";en.exports=LongBits;var ea=eo(99693);function LongBits(en,ei){this.lo=en>>>0,this.hi=ei>>>0}var es=LongBits.zero=new LongBits(0,0);es.toNumber=function(){return 0},es.zzEncode=es.zzDecode=function(){return this},es.length=function(){return 1};var ed=LongBits.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";LongBits.fromNumber=function(en){if(0===en)return es;var ei=en<0;ei&&(en=-en);var eo=en>>>0,ea=(en-eo)/4294967296>>>0;return ei&&(ea=~ea>>>0,eo=~eo>>>0,++eo>4294967295&&(eo=0,++ea>4294967295&&(ea=0))),new LongBits(eo,ea)},LongBits.from=function(en){if("number"==typeof en)return LongBits.fromNumber(en);if(ea.isString(en)){if(!ea.Long)return LongBits.fromNumber(parseInt(en,10));en=ea.Long.fromString(en)}return en.low||en.high?new LongBits(en.low>>>0,en.high>>>0):es},LongBits.prototype.toNumber=function(en){if(!en&&this.hi>>>31){var ei=~this.lo+1>>>0,eo=~this.hi>>>0;return ei||(eo=eo+1>>>0),-(ei+4294967296*eo)}return this.lo+4294967296*this.hi},LongBits.prototype.toLong=function(en){return ea.Long?new ea.Long(0|this.lo,0|this.hi,!!en):{low:0|this.lo,high:0|this.hi,unsigned:!!en}};var eu=String.prototype.charCodeAt;LongBits.fromHash=function(en){return en===ed?es:new LongBits((eu.call(en,0)|eu.call(en,1)<<8|eu.call(en,2)<<16|eu.call(en,3)<<24)>>>0,(eu.call(en,4)|eu.call(en,5)<<8|eu.call(en,6)<<16|eu.call(en,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var en=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^en)>>>0,this.lo=(this.lo<<1^en)>>>0,this},LongBits.prototype.zzDecode=function(){var en=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^en)>>>0,this.hi=(this.hi>>>1^en)>>>0,this},LongBits.prototype.length=function(){var en=this.lo,ei=(this.lo>>>28|this.hi<<4)>>>0,eo=this.hi>>>24;return 0===eo?0===ei?en<16384?en<128?1:2:en<2097152?3:4:ei<16384?ei<128?5:6:ei<2097152?7:8:eo<128?9:10}},99693:function(en,ei,eo){"use strict";var ea=ei;function merge(en,ei,eo){for(var ea=Object.keys(ei),es=0;es<ea.length;++es)void 0!==en[ea[es]]&&eo||(en[ea[es]]=ei[ea[es]]);return en}function newError(en){function CustomError(en,ei){if(!(this instanceof CustomError))return new CustomError(en,ei);Object.defineProperty(this,"message",{get:function(){return en}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),ei&&merge(this,ei)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,
vendor: 6,403 bytes, line 29
29writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return en},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}ea.asPromise=eo(34537),ea.base64=eo(97419),ea.EventEmitter=eo(19211),ea.float=eo(10945),ea.inquire=eo(67199),ea.utf8=eo(94997),ea.pool=eo(76662),ea.LongBits=eo(1945),ea.isNode=!!(void 0!==eo.g&&eo.g&&eo.g.process&&eo.g.process.versions&&eo.g.process.versions.node),ea.global=ea.isNode&&eo.g||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,ea.emptyArray=Object.freeze?Object.freeze([]):[],ea.emptyObject=Object.freeze?Object.freeze({}):{},ea.isInteger=Number.isInteger||function(en){return"number"==typeof en&&isFinite(en)&&Math.floor(en)===en},ea.isString=function(en){return"string"==typeof en||en instanceof String},ea.isObject=function(en){return en&&"object"==typeof en},ea.isset=ea.isSet=function(en,ei){var eo=en[ei];return!!(null!=eo&&en.hasOwnProperty(ei))&&("object"!=typeof eo||(Array.isArray(eo)?eo.length:Object.keys(eo).length)>0)},ea.Buffer=function(){try{var en=ea.inquire("buffer").Buffer;return en.prototype.utf8Write?en:null}catch(en){return null}}(),ea._Buffer_from=null,ea._Buffer_allocUnsafe=null,ea.newBuffer=function(en){return"number"==typeof en?ea.Buffer?ea._Buffer_allocUnsafe(en):new ea.Array(en):ea.Buffer?ea._Buffer_from(en):"undefined"==typeof Uint8Array?en:new Uint8Array(en)},ea.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,ea.Long=ea.global.dcodeIO&&ea.global.dcodeIO.Long||ea.global.Long||ea.inquire("long"),ea.key2Re=/^true|false|0|1$/,ea.key32Re=/^-?(?:0|[1-9][0-9]*)$/,ea.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,ea.longToHash=function(en){return en?ea.LongBits.from(en).toHash():ea.LongBits.zeroHash},ea.longFromHash=function(en,ei){var eo=ea.LongBits.fromHash(en);return ea.Long?ea.Long.fromBits(eo.lo,eo.hi,ei):eo.toNumber(!!ei)},ea.merge=merge,ea.lcFirst=function(en){return en.charAt(0).toLowerCase()+en.substring(1)},ea.newError=newError,ea.ProtocolError=newError("ProtocolError"),ea.oneOfGetter=function(en){for(var ei={},eo=0;eo<en.length;++eo)ei[en[eo]]=1;return function(){for(var en=Object.keys(this),eo=en.length-1;eo>-1;--eo)if(1===ei[en[eo]]&&void 0!==this[en[eo]]&&null!==this[en[eo]])return en[eo]}},ea.oneOfSetter=function(en){return function(ei){for(var eo=0;eo<en.length;++eo)en[eo]!==ei&&delete this[en[eo]]}},ea.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},ea._configure=function(){var en=ea.Buffer;if(!en){ea._Buffer_from=ea._Buffer_allocUnsafe=null;return}ea._Buffer_from=en.from!==Uint8Array.from&&en.from||function(ei,eo){return new en(ei,eo)},ea._Buffer_allocUnsafe=en.allocUnsafe||function(ei){return new en(ei)}}},41173:function(en,ei,eo){"use strict";en.exports=Writer;var ea,es=eo(99693),ed=es.LongBits,eu=es.base64,ef=es.utf8;function Op(en,ei,eo){this.fn=en,this.len=ei,this.next=void 0,this.val=eo}function noop(){}function State(en){this.head=en.head,this.tail=en.tail,this.len=en.len,this.next=en.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return es.Buffer?function(){return(Writer.create=function(){return new ea})()}:function(){return new Writer}};function writeByte(en,ei,eo){ei[eo]=255&en}function writeVarint32(en,ei,eo){for(;en>127;)ei[eo++]=127&en|128,en>>>=7;ei[eo]=en}function VarintOp(en,ei){this.len=en,this.next=void 0,this.val=ei}function writeVarint64(en,ei,eo){for(;en.hi;)ei[eo++]=127&en.lo|128,en.lo=(en.lo>>>7|en.hi<<25)>>>0,en.hi>>>=7;for(;en.lo>127;)ei[eo++]=127&en.lo|128,en.lo=en.lo>>>7;ei[eo++]=en.lo}function writeFixed32(en,ei,eo){ei[eo]=255&en,ei[eo+1]=en>>>8&255,ei[eo+2]=en>>>16&255,ei[eo+3]=en>>>24}Writer.create=create(),Writer.alloc=function(en){return new es.Array(en)},es.Array!==Array&&(Writer.alloc=es.pool(Writer.alloc,es.Array.prototype.subarray)),Writer.prototype._push=function(en,ei,eo){return this.tail=this.tail.next=new Op(en,ei,eo),this.len+=ei,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(en){return this.len+=(this.tail=this.tail.next=new VarintOp((en>>>=0)<128?1:en<16384?2:en<2097152?3:en<268435456?4:5,en)).len,this},Writer.prototype.int32=function(en){return en<0?this._push(writeVarint64,10,ed.fromNumber(en)):this.uint32(en)},Writer.prototype.sint32=function(en){return this.uint32((en<<1^en>>31)>>>0)},Writer.prototype.uint64=function(en){var ei=ed.from(en);return this._push(writeVarint64,ei.length(),ei)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(en){var ei=ed.from(en).zzEncode();return this._push(writeVarint64,ei.length(),ei)},Writer.prototype.bool=function(en){return this._push(writeByte,1,en?1:0)},Writer.prototype.fixed32=function(en){return this._push(writeFixed32,4,en>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(en){var ei=ed.from(en);return this._push(writeFixed32,4,ei.lo)._push(writeFixed32,4,ei.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(en){return this._push(es.float.writeFloatLE,4,en)},Writer.prototype.double=function(en){return this._push(es.float.writeDoubleLE,8,en)};var ep=es.Array.prototype.set?function(en,ei,eo){ei.set(en,eo)}:function(en,ei,eo){for(var ea=0;ea<en.length;++ea)ei[eo+ea]=en[ea]};Writer.prototype.bytes=function(en){var ei=en.length>>>0;if(!ei)return this._push(writeByte,1,0);if(es.isString(en)){var eo=Writer.alloc(ei=eu.length(en));eu.decode(en,eo,0),en=eo}return this.uint32(ei)._push(ep,ei,en)},Writer.prototype.string=function(en){var ei=ef.length(en);return ei?this.uint32(ei)._push(ef.write,ei,en):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var en=this.head,ei=this.tail,eo=this.len;return this.reset().uint32(eo),eo&&(this.tail.next=en.next,this.tail=ei,this.len+=eo),this},Writer.prototype.finish=function(){for(var en=this.head.next,ei=this.constructor.alloc(this.len),eo=0;en;
29)en.fn(en.val,ei,eo),eo+=en.len,en=en.next;return ei},Writer._configure=function(en){ea=en,Writer.create=create(),ea._configure()}},43155:function(en,ei,eo){"use strict";en.exports=BufferWriter;var ea=eo(41173);(BufferWriter.prototype=Object.create(ea.prototype)).constructor=BufferWriter;var es=eo(99693);function BufferWriter(){ea.call(this)}function writeStringBuffer(en,ei,eo){en.length<40?es.utf8.write(en,ei,eo):ei.utf8Write?ei.utf8Write(en,eo):ei.write(en,eo)}BufferWriter._configure=function(){BufferWriter.alloc=es._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=es.Buffer&&es.Buffer.prototype instanceof Uint8Array&&"set"===es.Buffer.prototype.set.name?function(en,ei,eo){ei.set(en,eo)}:function(en,ei,eo){if(en.copy)en.copy(ei,eo,0,en.length);else for(var ea=0;ea<en.length;)ei[eo++]=en[ea++]}},BufferWriter.prototype.bytes=function(en){es.isString(en)&&(en=es._Buffer_from(en,"base64"));var ei=en.length>>>0;return this.uint32(ei),ei&&this._push(BufferWriter.writeBytesBuffer,ei,en),this},BufferWriter.prototype.string=function(en){var ei=es.Buffer.byteLength(en);return this.uint32(ei),ei&&this._push(writeStringBuffer,ei,en),this},BufferWriter._configure()},42026:function(en,ei,eo){"use strict";eo.d(ei,{Z:function(){return eE}});var ea=eo(97582),es=eo(67294),ed=eo(71642),eu=eo(99495),ef=(0,eo(87122)._)(),nothing=function(){},ep=es.forwardRef(function(en,ei){var eo=es.useRef(null),ed=es.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),ep=ed[0],em=ed[1],eg=en.forwardProps,ey=en.children,eb=en.className,eS=en.removeScrollBar,e_=en.enabled,eR=en.shards,eA=en.sideCar,ew=en.noIsolation,eO=en.inert,eE=en.allowPinchZoom,eP=en.as,eC=void 0===eP?"div":eP,eT=(0,ea.__rest)(en,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),eB=eA,eN=(0,eu.q)([eo,ei]),eI=(0,ea.__assign)((0,ea.__assign)({},eT),ep);return es.createElement(es.Fragment,null,e_&&es.createElement(eB,{sideCar:ef,removeScrollBar:eS,shards:eR,noIsolation:ew,inert:eO,setCallbacks:em,allowPinchZoom:!!eE,lockRef:eo}),eg?es.cloneElement(es.Children.only(ey),(0,ea.__assign)((0,ea.__assign)({},eI),{ref:eN})):es.createElement(eC,(0,ea.__assign)({},eI,{className:eb,ref:eN}),ey))});ep.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ep.classNames={fullWidth:ed.zi,zeroRight:ed.pF};var em=eo(66781),eg=eo(37087),ey=eo(6525),eb=!1;if("undefined"!=typeof window)try{var eS=Object.defineProperty({},"passive",{get:function(){return eb=!0,!0}});window.addEventListener("test",eS,eS),window.removeEventListener("test",eS,eS)}catch(en){eb=!1}var e_=!!eb&&{passive:!1},alwaysContainsScroll=function(en){return"TEXTAREA"===en.tagName},elementCanBeScrolled=function(en,ei){var eo=window.getComputedStyle(en);return"hidden"!==eo[ei]&&!(eo.overflowY===eo.overflowX&&!alwaysContainsScroll(en)&&"visible"===eo[ei])},elementCouldBeVScrolled=function(en){return elementCanBeScrolled(en,"overflowY")},elementCouldBeHScrolled=function(en){return elementCanBeScrolled(en,"overflowX")},locationCouldBeScrolled=function(en,ei){var eo=ei;do{if("undefined"!=typeof ShadowRoot&&eo instanceof ShadowRoot&&(eo=eo.host),elementCouldBeScrolled(en,eo)){var ea=getScrollVariables(en,eo);if(ea[1]>ea[2])return!0}eo=eo.parentNode}while(eo&&eo!==document.body);return!1},getVScrollVariables=function(en){return[en.scrollTop,en.scrollHeight,en.clientHeight]},getHScrollVariables=function(en){return[en.scrollLeft,en.scrollWidth,en.clientWidth]},elementCouldBeScrolled=function(en,ei){return"v"===en?elementCouldBeVScrolled(ei):elementCouldBeHScrolled(ei)},getScrollVariables=function(en,ei){return"v"===en?getVScrollVariables(ei):getHScrollVariables(ei)},getDirectionFactor=function(en,ei){return"h"===en&&"rtl"===ei?-1:1},handleScroll=function(en,ei,eo,ea,es){var ed=getDirectionFactor(en,window.getComputedStyle(ei).direction),eu=ed*ea,ef=eo.target,ep=ei.contains(ef),em=!1,eg=eu>0,ey=0,eb=0;do{var eS=getScrollVariables(en,ef),e_=eS[0],eR=eS[1]-eS[2]-ed*e_;(e_||eR)&&elementCouldBeScrolled(en,ef)&&(ey+=eR,eb+=e_),ef=ef.parentNode}while(!ep&&ef!==document.body||ep&&(ei.contains(ef)||ei===ef));return eg&&(es&&0===ey||!es&&eu>ey)?em=!0:!eg&&(es&&0===eb||!es&&-eu>eb)&&(em=!0),em},getTouchXY=function(en){return"changedTouches"in en?[en.changedTouches[0].clientX,en.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(en){return[en.deltaX,en.deltaY]},extractRef=function(en){return en&&"current"in en?en.current:en},deltaCompare=function(en,ei){return en[0]===ei[0]&&en[1]===ei[1]},generateStyle=function(en){return"\n  .block-interactivity-".concat(en," {pointer-events: none;}\n  .allow-interactivity-").concat(en," {pointer-events: all;}\n")},eR=0,eA=[];function RemoveScrollSideCar(en){var ei=es.useRef([]),eo=es.useRef([0,0]),ed=es.useRef(),eu=es.useState(eR++)[0],ef=es.useState(function(){return(0,ey.Ws)()}
29)[0],ep=es.useRef(en);es.useEffect(function(){ep.current=en},[en]),es.useEffect(function(){if(en.inert){document.body.classList.add("block-interactivity-".concat(eu));var ei=(0,ea.__spreadArray)([en.lockRef.current],(en.shards||[]).map(extractRef),!0).filter(Boolean);return ei.forEach(function(en){return en.classList.add("allow-interactivity-".concat(eu))}),function(){document.body.classList.remove("block-interactivity-".concat(eu)),ei.forEach(function(en){return en.classList.remove("allow-interactivity-".concat(eu))})}}},[en.inert,en.lockRef.current,en.shards]);var em=es.useCallback(function(en,ei){if("touches"in en&&2===en.touches.length)return!ep.current.allowPinchZoom;var ea,es=getTouchXY(en),eu=eo.current,ef="deltaX"in en?en.deltaX:eu[0]-es[0],em="deltaY"in en?en.deltaY:eu[1]-es[1],eg=en.target,ey=Math.abs(ef)>Math.abs(em)?"h":"v";if("touches"in en&&"h"===ey&&"range"===eg.type)return!1;var eb=locationCouldBeScrolled(ey,eg);if(!eb)return!0;if(eb?ea=ey:(ea="v"===ey?"h":"v",eb=locationCouldBeScrolled(ey,eg)),!eb)return!1;if(!ed.current&&"changedTouches"in en&&(ef||em)&&(ed.current=ea),!ea)return!0;var eS=ed.current||ea;return handleScroll(eS,ei,en,"h"===eS?ef:em,!0)},[]),eb=es.useCallback(function(en){var eo=en;if(eA.length&&eA[eA.length-1]===ef){var ea="deltaY"in eo?getDeltaXY(eo):getTouchXY(eo),es=ei.current.filter(function(en){return en.name===eo.type&&en.target===eo.target&&deltaCompare(en.delta,ea)})[0];if(es&&es.should){eo.cancelable&&eo.preventDefault();return}if(!es){var ed=(ep.current.shards||[]).map(extractRef).filter(Boolean).filter(function(en){return en.contains(eo.target)});(ed.length>0?em(eo,ed[0]):!ep.current.noIsolation)&&eo.cancelable&&eo.preventDefault()}}},[]),eS=es.useCallback(function(en,eo,ea,es){var ed={name:en,delta:eo,target:ea,should:es};ei.current.push(ed),setTimeout(function(){ei.current=ei.current.filter(function(en){return en!==ed})},1)},[]),ew=es.useCallback(function(en){eo.current=getTouchXY(en),ed.current=void 0},[]),eO=es.useCallback(function(ei){eS(ei.type,getDeltaXY(ei),ei.target,em(ei,en.lockRef.current))},[]),eE=es.useCallback(function(ei){eS(ei.type,getTouchXY(ei),ei.target,em(ei,en.lockRef.current))},[]);es.useEffect(function(){return eA.push(ef),en.setCallbacks({onScrollCapture:eO,onWheelCapture:eO,onTouchMoveCapture:eE}),document.addEventListener("wheel",eb,e_),document.addEventListener("touchmove",eb,e_),document.addEventListener("touchstart",ew,e_),function(){eA=eA.filter(function(en){return en!==ef}),document.removeEventListener("wheel",eb,e_),document.removeEventListener("touchmove",eb,e_),document.removeEventListener("touchstart",ew,e_)}},[]);var eP=en.removeScrollBar,eC=en.inert;return es.createElement(es.Fragment,null,eC?es.createElement(ef,{styles:generateStyle(eu)}):null,eP?es.createElement(eg.jp,{gapMode:"margin"}):null)}var ew=(0,em.L)(ef,RemoveScrollSideCar),eO=es.forwardRef(function(en,ei){return es.createElement(ep,(0,ea.__assign)({},en,{ref:ei,sideCar:ew}))});eO.classNames=ep.classNames;var eE=eO},17635:function(en){"use strict";!function(ei){let eo=2147483647;function SHA256(en){let ei=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]),eo=1779033703,ea=3144134277,es=1013904242,ed=2773480762,eu=1359893119,ef=2600822924,ep=528734635,em=1541459225,eg=new Uint32Array(64);function blocks(en){let ey=0,eb=en.length;for(;eb>=64;){let eS=eo,e_=ea,eR=es,eA=ed,ew=eu,eO=ef,eE=ep,eP=em,eC,eT,eB,eN,eI;for(eT=0;eT<16;eT++)eB=ey+4*eT,eg[eT]=(255&en[eB])<<24|(255&en[eB+1])<<16|(255&en[eB+2])<<8|255&en[eB+3];for(eT=16;eT<64;eT++)eN=((eC=eg[eT-2])>>>17|eC<<15)^(eC>>>19|eC<<13)^eC>>>10,eI=((eC=eg[eT-15])>>>7|eC<<25)^(eC>>>18|eC<<14)^eC>>>3,eg[eT]=(eN+eg[eT-7]|0)+(eI+eg[eT-16]|0)|0;for(eT=0;eT<64;eT++)eN=(((ew>>>6|ew<<26)^(ew>>>11|ew<<21)^(ew>>>25|ew<<7))+(ew&eO^~ew&eE)|0)+(eP+(ei[eT]+eg[eT]|0)|0)|0,eI=((eS>>>2|eS<<30)^(eS>>>13|eS<<19)^(eS>>>22|eS<<10))+(eS&e_^eS&eR^e_&eR)|0,eP=eE,eE=eO,eO=ew,ew=eA+eN|0,eA=eR,eR=e_,e_=eS,eS=eN+eI|0;eo=eo+eS|0,ea=ea+e_|0,es=es+eR|0,ed=ed+eA|0,eu=eu+ew|0,ef=ef+eO|0,ep=ep+eE|0,em=em+eP|0,ey+=64,eb-=64}}blocks(en);let ey,eb=en.length%64,eS=en.length/536870912|0,e_=en.length<<3,eR=eb<56?56:120,eA=en.slice(en.length-eb,en.length);for(eA.push(128),ey=eb+1;ey<eR;ey++)eA.push(0);return eA.push(eS>>>24&255),eA.push(eS>>>16&255),eA.push(eS>>>8&255),eA.push(eS>>>0&255),eA.push(e_>>>24&255),eA.push(e_>>>16&255),eA.push(e_>>>8&255),eA.push(e_>>>0&255),blocks(eA),[eo>>>24&255,eo>>>16&255,eo>>>8&255,eo>>>0&255,ea>>>24&255,ea>>>16&255,ea>>>8&255,ea>>>0&255,es>>>24&255,es>>>16&255,es>>>8&255,es>>>0&255,ed>>>24&255,ed>>>16&255,ed>>>8&255,ed>>>0&255,eu>>>24&255,eu>>>16&255,eu>>>8&255,eu>>>0&255,ef>>>24&255,ef>>>16&255,ef>>>8&255,ef>>>0&255,ep>>>24&255,ep>>>16&255,ep>>>8&255,ep>>>0&255,em>>>24&255,em>>>16&255,em>>>8&255,em>>>0&255]}function PBKDF2_HMAC_SHA256_OneIter(en,ei,eo){let ea;en=en.length<=64?en:SHA256(en);let es=64+ei.length+4,ed=Array(es),eu=Array(64),ef=[];for(ea=0;ea<64;ea++)ed[ea]=54;
29for(ea=0;ea<en.length;ea++)ed[ea]^=en[ea];for(ea=0;ea<ei.length;ea++)ed[64+ea]=ei[ea];for(ea=es-4;ea<es;ea++)ed[ea]=0;for(ea=0;ea<64;ea++)eu[ea]=92;for(ea=0;ea<en.length;ea++)eu[ea]^=en[ea];function incrementCounter(){for(let en=es-1;en>=es-4;en--){if(ed[en]++,ed[en]<=255)return;ed[en]=0}}for(;eo>=32;)incrementCounter(),ef=ef.concat(SHA256(eu.concat(SHA256(ed)))),eo-=32;return eo>0&&(incrementCounter(),ef=ef.concat(SHA256(eu.concat(SHA256(ed))).slice(0,eo))),ef}function blockmix_salsa8(en,ei,eo,ea,es){let ed;for(arraycopy(en,(2*eo-1)*16,es,0,16),ed=0;ed<2*eo;ed++)blockxor(en,16*ed,es,16),salsa20_8(es,ea),arraycopy(es,0,en,ei+16*ed,16);for(ed=0;ed<eo;ed++)arraycopy(en,ei+32*ed,en,16*ed,16);for(ed=0;ed<eo;ed++)arraycopy(en,ei+(2*ed+1)*16,en,(ed+eo)*16,16)}function R(en,ei){return en<<ei|en>>>32-ei}function salsa20_8(en,ei){arraycopy(en,0,ei,0,16);for(let en=8;en>0;en-=2)ei[4]^=R(ei[0]+ei[12],7),ei[8]^=R(ei[4]+ei[0],9),ei[12]^=R(ei[8]+ei[4],13),ei[0]^=R(ei[12]+ei[8],18),ei[9]^=R(ei[5]+ei[1],7),ei[13]^=R(ei[9]+ei[5],9),ei[1]^=R(ei[13]+ei[9],13),ei[5]^=R(ei[1]+ei[13],18),ei[14]^=R(ei[10]+ei[6],7),ei[2]^=R(ei[14]+ei[10],9),ei[6]^=R(ei[2]+ei[14],13),ei[10]^=R(ei[6]+ei[2],18),ei[3]^=R(ei[15]+ei[11],7),ei[7]^=R(ei[3]+ei[15],9),ei[11]^=R(ei[7]+ei[3],13),ei[15]^=R(ei[11]+ei[7],18),ei[1]^=R(ei[
290]+ei[3],7),ei[2]^=R(ei[1]+ei[0],9),ei[3]^=R(ei[2]+ei[1],13),ei[0]^=R(ei[3]+ei[2],18),ei[6]^=R(ei[5]+ei[4],7),ei[7]^=R(ei[6]+ei[5],9),ei[4]^=R(ei[7]+ei[6],13),ei[5]^=R(ei[4]+ei[7],18),ei[11]^=R(ei[10]+ei[9],7),ei[8]^=R(ei[11]+ei[10],9),ei[9]^=R(ei[8]+ei[11],13),ei[10]^=R(ei[9]+ei[8],18),ei[12]^=R(ei[15]+ei[14],7),ei[13]^=R(ei[12]+ei[15],9),ei[14]^=R(ei[13]+ei[12],13),ei[15]^=R(ei[14]+ei[13],18);for(let eo=0;eo<16;++eo)en[eo]+=ei[eo]}function blockxor(en,ei,eo,ea){for(let es=0;es<ea;es++)eo[es]^=en[ei+es]}function arraycopy(en,ei,eo,ea,es){for(;es--;)eo[ea++]=en[ei++]}function checkBufferish(en){if(!en||"number"!=typeof en.length)return!1;for(let ei=0;ei<en.length;ei++){let eo=en[ei];if("number"!=typeof eo||eo%1||eo<0||eo>=256)return!1}return!0}function ensureInteger(en,ei){if("number"!=typeof en||en%1)throw Error("invalid "+ei);return en}function _scrypt(en,ei,ea,es,ed,eu,ef){let ep;if(ea=ensureInteger(ea,"N"),es=ensureInteger(es,"r"),ed=ensureInteger(ed,"p"),eu=ensureInteger(eu,"dkLen"),0===ea||(ea&ea-1)!=0)throw Error("N must be power of 2");if(ea>eo/128/es)throw Error("N too large");if(es>eo/128/ed)throw Error("r too large");if(!checkBufferish(en))throw Error("password must be an array or buffer");if(en=Array.prototype.slice.call(en),!checkBufferish(ei))throw Error("salt must be an array or buffer");ei=Array.prototype.slice.call(ei);let em=PBKDF2_HMAC_SHA256_OneIter(en,ei,128*ed*es),eg=new Uint32Array(32*ed*es);for(let en=0;en<eg.length;en++){let ei=4*en;eg[en]=(255&em[ei+3])<<24|(255&em[ei+2])<<16|(255&em[ei+1])<<8|(255&em[ei+0])<<0}let ey=new Uint32Array(64*es),eb=new Uint32Array(32*es*ea),eS=32*es,e_=new Uint32Array(16),eR=new Uint32Array(16),eA=ed*ea*2,ew=0,eO=null,eE=!1,eP=0,eC=0,eT,eB=ef?parseInt(1e3/es):4294967295,eN="undefined"!=typeof setImmediate?setImmediate:setTimeout,incrementalSMix=function(){let ei;if(eE)return ef(Error("cancelled"),ew/eA);switch(eP){case 0:arraycopy(eg,ep=32*eC*es,ey,0,eS),eP=1,eT=0;case 1:(ei=ea-eT)>eB&&(ei=eB);for(let en=0;en<ei;en++)arraycopy(ey,0,eb,(eT+en)*eS,eS),blockmix_salsa8(ey,eS,es,e_,eR);if(eT+=ei,ew+=ei,ef){let en=parseInt(1e3*ew/eA);if(en!==eO){if(eE=ef(null,ew/eA))break;eO=en}}if(eT<ea)break;eT=0,eP=2;case 2:(ei=ea-eT)>eB&&(ei=eB);for(let en=0;en<ei;en++){let en=(2*es-1)*16,ei=ey[en]&ea-1;blockxor(eb,ei*eS,ey,eS),blockmix_salsa8(ey,eS,es,e_,eR)}if(eT+=ei,ew+=ei,ef){let en=parseInt(1e3*ew/eA);if(en!==eO){if(eE=ef(null,ew/eA))break;eO=en}}if(eT<ea)break;if(arraycopy(ey,0,eg,ep,eS),++eC<ed){eP=0;break}em=[];for(let en=0;en<eg.length;en++)em.push(eg[en]>>0&255),em.push(eg[en]>>8&255),em.push(eg[en]>>16&255),em.push(eg[en]>>24&255);let eo=PBKDF2_HMAC_SHA256_OneIter(en,em,eu);return ef&&ef(null,1,eo),eo}ef&&eN(incrementalSMix)};if(!ef)for(;;){let en=incrementalSMix();if(void 0!=en)return en}incrementalSMix()}let ea={scrypt:function(en,ei,eo,ea,es,ed,eu){return new Promise(function(ef,ep){let em=0;eu&&eu(0),_scrypt(en,ei,eo,ea,es,ed,function(en,ei,eo){if(en)ep(en);else if(eo)eu&&1!==em&&eu(1),ef(new Uint8Array(eo));else if(eu&&ei!==em)return em=ei,eu(ei)})})},syncScrypt:function(en,ei,eo,ea,es,ed){return new Uint8Array(_scrypt(en,ei,eo,ea,es,ed))}};en.exports=ea}(0)},63341:function(en,ei,eo){"use strict";var ea=eo(48764).Buffer;/*!
30 * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
31 *
32 * Copyright (c) 2015-present, Jon Schlinkert.
33 * Released under the MIT License.
34 */let es=Symbol.prototype.valueOf,ed=eo(26401);function clone(en,ei){switch(ed(en)){case"array":return en.slice();case"object":return Object.assign({},en);case"date":return new en.constructor(Number(en));case"map":return new Map(en);case"set":return new Set(en);case"buffer":return cloneBuffer(en);case"symbol":return cloneSymbol(en);case"arraybuffer":return cloneArrayBuffer(en);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return cloneTypedArray(en);case"regexp":return cloneRegExp(en);case"error":return Object.create(en);default:return en}}function cloneRegExp(en){let ei=void 0!==en.flags?en.flags:/\w+$/.exec(en)||void 0,eo=new en.c
34onstructor(en.source,ei);return eo.lastIndex=en.lastIndex,eo}function cloneArrayBuffer(en){let ei=new en.constructor(en.byteLength);return new Uint8Array(ei).set(new Uint8Array(en)),ei}function cloneTypedArray(en,ei){return new en.constructor(en.buffer,en.byteOffset,en.length)}function cloneBuffer(en){let ei=en.length,eo=ea.allocUnsafe?ea.allocUnsafe(ei):ea.from(ei);return en.copy(eo),eo}function cloneSymbol(en){return es?Object(es.call(en)):{}}en.exports=clone},84484:function(en){var ei=Object.hasOwnProperty,eo=Object.getPrototypeOf,ea=Error.captureStackTrace;function StandardError(en,es){if(en&&"object"==typeof en?(es=en,en=void 0):this.message=en,es)for(var ed in es)this[ed]=es[ed];ei.call(this,"name")||(this.name=ei.call(eo(this),"name")?this.name:this.constructor.name),!ea||"stack"in this||ea(this,this.constructor)}en.exports=StandardError,StandardError.prototype=Object.create(Error.prototype,{constructor:{value:StandardError,configurable:!0,writable:!0}}),StandardError.prototype.name="StandardError"},86428:function(en,ei,eo){ei=en.exports=HttpError;var ea=eo(84484),es=eo(73184),ed=ei;function HttpError(en,ei,eo){if("string"==typeof en&&(en=ed[en]),"number"!=typeof en)throw TypeError("Non-numeric HTTP code");"object"==typeof ei&&null!=ei&&(eo=ei,ei=null),ea.call(this,ei||es[en],eo),this.code=en}for(var eu in HttpError.prototype=Object.create(ea.prototype,{constructor:{value:HttpError,configurable:!0,writable:!0}}),HttpError.prototype.name="HttpError",Object.defineProperties(HttpError.prototype,{statusCode:alias("code"),statusMessage:alias("message"),status:{configurable:!0,get:function(){return this.code},set:function(en){Object.defineProperty(this,"status",{value:en,configurable:!0,enumerable:!0,writable:!0})}}}),HttpError.prototype.toString=function(){return this.name+": "+this.code+" "+this.message},es)ei[es[eu].replace("'","").replace(/[- ]/g,"_").toUpperCase()]=+eu;function alias(en){return{configurable:!0,get:function(){return this[en]},set:function(ei){return this[en]=ei}}}},8289:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.stringSimilarity=void 0;var stringSimilarity=function(en,ei,eo,ea){if(void 0===eo&&(eo=2),void 0===ea&&(ea=!1),ea||(en=en.toLowerCase(),ei=ei.toLowerCase()),en.length<eo||ei.length<eo)return 0;for(var es=new Map,ed=0;ed<en.length-(eo-1);ed++){var eu=en.substr(ed,eo);es.set(eu,es.has(eu)?es.get(eu)+1:1)}for(var ef=0,ep=0;ep<ei.length-(eo-1);ep++){var em=ei.substr(ep,eo),eg=es.has(em)?es.get(em):0;eg>0&&(es.set(em,eg-1),ef++)}return 2*ef/(en.length+ei.length-(eo-1)*2)};ei.stringSimilarity=stringSimilarity,ei.default=ei.stringSimilarity},61839:function(en,ei){"use strict";function symbolObservablePonyfill(en){var ei,eo=en.Symbol;if("function"==typeof eo){if(eo.observable)ei=eo.observable;else{ei=eo.for("https://github.com/benlesh/symbol-observable");try{eo.observable=ei}catch(en){}}}else ei="@@observable";return ei}Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=symbolObservablePonyfill},80868:function(en,ei,eo){en.exports=eo(61839)},20384:function(en){en.exports=function(en){return en&&"object"==typeof en&&"function"==typeof en.copy&&"function"==typeof en.fill&&"function"==typeof en.readUInt8}},55955:function(en,ei,eo){"use strict";var ea=eo(82584),es=eo(48662),ed=eo(86430),eu=eo(85692);function uncurryThis(en){return en.call.bind(en)}var ef="undefined"!=typeof BigInt,ep="undefined"!=typeof Symbol,em=uncurryThis(Object.prototype.toString),eg=uncurryThis(Number.prototype.valueOf),ey=uncurryThis(String.prototype.valueOf),eb=uncurryThis(Boolean.prototype.valueOf);if(ef)var eS=uncurryThis(BigInt.prototype.valueOf);if(ep)var e_=uncurryThis(Symbol.prototype.valueOf);function checkBoxedPrimitive(en,ei){if("object"!=typeof en)return!1;try{return ei(en),!0}catch(en){return!1}}function isPromise(en){return"undefined"!=typeof Promise&&en instanceof Promise||null!==en&&"object"==typeof en&&"function"==typeof en.then&&"function"==typeof en.catch}function isArrayBufferView(en){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(en):eu(en)||isDataView(en)}function isUint8Array(en){return"Uint8Array"===ed(en)}function isUint8ClampedArray(en){return"Uint8ClampedArray"===ed(en)}function isUint16Array(en){return"Uint16Array"===ed(en)}function isUint32Array(en){return"Uint32Array"===ed(en)}function isInt8Array(en){return"Int8Array"===ed(en)}function isInt16Array(en){return"Int16Array"===ed(en)}function isInt32Array(en){return"Int32Array"===ed(en)}function isFloat32Array(en){return"Float32Array"===ed(en)}function isFloat64Array(en){return"Float64Array"===ed(en)}function isBigInt64Array(en){return"BigInt64Array"===ed(en)}function isBigUint64Array(en){return"BigUint64Array"===ed(en)}function isMapToString(en){return"[object Map]"===em(en)}function isMap(en){return"undefined"!=typeof Map&&(isMapToString.working?isMapToString(en):en instanceof Map)}function isSetToString(en){return"[object Set]"===em(en)}function isSet(en){return"undefined"!=typeof Set&&(isSetToString.working?isSetToString(en):en instanceof Set)}function isWeakMapToString(en){return"[object WeakMap]"===em(en)}function isWeakMap(en){return"undefined"!=typeof WeakMap&&(isWeakMapToString.working?isWeakMapToString(en):en instanceof WeakMap)}function isWeakSetToString(en){return"[object WeakSet]"===em(en)}function isWeakSet(en){return isWeakSetToString(en)}function isArrayBufferToString(en){return"[object ArrayBuffer]"===em(en)}function isArrayBuffer(en){return"undefined"!=typeof ArrayBuffer&&(isArrayBufferToString.working?isArrayBufferToString(en):en instanceof ArrayBuffer)}function isDataViewToString(en){return"[object DataView]"===em(en)}
vendor: 4,467 bytes, line 34
34function isDataView(en){return"undefined"!=typeof DataView&&(isDataViewToString.working?isDataViewToString(en):en instanceof DataView)}ei.isArgumentsObject=ea,ei.isGeneratorFunction=es,ei.isTypedArray=eu,ei.isPromise=isPromise,ei.isArrayBufferView=isArrayBufferView,ei.isUint8Array=isUint8Array,ei.isUint8ClampedArray=isUint8ClampedArray,ei.isUint16Array=isUint16Array,ei.isUint32Array=isUint32Array,ei.isInt8Array=isInt8Array,ei.isInt16Array=isInt16Array,ei.isInt32Array=isInt32Array,ei.isFloat32Array=isFloat32Array,ei.isFloat64Array=isFloat64Array,ei.isBigInt64Array=isBigInt64Array,ei.isBigUint64Array=isBigUint64Array,isMapToString.working="undefined"!=typeof Map&&isMapToString(new Map),ei.isMap=isMap,isSetToString.working="undefined"!=typeof Set&&isSetToString(new Set),ei.isSet=isSet,isWeakMapToString.working="undefined"!=typeof WeakMap&&isWeakMapToString(new WeakMap),ei.isWeakMap=isWeakMap,isWeakSetToString.working="undefined"!=typeof WeakSet&&isWeakSetToString(new WeakSet),ei.isWeakSet=isWeakSet,isArrayBufferToString.working="undefined"!=typeof ArrayBuffer&&isArrayBufferToString(new ArrayBuffer),ei.isArrayBuffer=isArrayBuffer,isDataViewToString.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&isDataViewToString(new DataView(new ArrayBuffer(1),0,1)),ei.isDataView=isDataView;var eR="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function isSharedArrayBufferToString(en){return"[object SharedArrayBuffer]"===em(en)}function isSharedArrayBuffer(en){return void 0!==eR&&(void 0===isSharedArrayBufferToString.working&&(isSharedArrayBufferToString.working=isSharedArrayBufferToString(new eR)),isSharedArrayBufferToString.working?isSharedArrayBufferToString(en):en instanceof eR)}function isAsyncFunction(en){return"[object AsyncFunction]"===em(en)}function isMapIterator(en){return"[object Map Iterator]"===em(en)}function isSetIterator(en){return"[object Set Iterator]"===em(en)}function isGeneratorObject(en){return"[object Generator]"===em(en)}function isWebAssemblyCompiledModule(en){return"[object WebAssembly.Module]"===em(en)}function isNumberObject(en){return checkBoxedPrimitive(en,eg)}function isStringObject(en){return checkBoxedPrimitive(en,ey)}function isBooleanObject(en){return checkBoxedPrimitive(en,eb)}function isBigIntObject(en){return ef&&checkBoxedPrimitive(en,eS)}function isSymbolObject(en){return ep&&checkBoxedPrimitive(en,e_)}function isBoxedPrimitive(en){return isNumberObject(en)||isStringObject(en)||isBooleanObject(en)||isBigIntObject(en)||isSymbolObject(en)}function isAnyArrayBuffer(en){return"undefined"!=typeof Uint8Array&&(isArrayBuffer(en)||isSharedArrayBuffer(en))}ei.isSharedArrayBuffer=isSharedArrayBuffer,ei.isAsyncFunction=isAsyncFunction,ei.isMapIterator=isMapIterator,ei.isSetIterator=isSetIterator,ei.isGeneratorObject=isGeneratorObject,ei.isWebAssemblyCompiledModule=isWebAssemblyCompiledModule,ei.isNumberObject=isNumberObject,ei.isStringObject=isStringObject,ei.isBooleanObject=isBooleanObject,ei.isBigIntObject=isBigIntObject,ei.isSymbolObject=isSymbolObject,ei.isBoxedPrimitive=isBoxedPrimitive,ei.isAnyArrayBuffer=isAnyArrayBuffer,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(en){Object.defineProperty(ei,en,{enumerable:!1,value:function(){throw Error(en+" is not supported in userland")}})})},89539:function(en,ei,eo){var ea=eo(83454),es=Object.getOwnPropertyDescriptors||function(en){for(var ei=Object.keys(en),eo={},ea=0;ea<ei.length;ea++)eo[ei[ea]]=Object.getOwnPropertyDescriptor(en,ei[ea]);return eo},ed=/%[sdj%]/g;ei.format=function(en){if(!isString(en)){for(var ei=[],eo=0;eo<arguments.length;eo++)ei.push(inspect(arguments[eo]));return ei.join(" ")}for(var eo=1,ea=arguments,es=ea.length,eu=String(en).replace(ed,function(en){if("%%"===en)return"%";if(eo>=es)return en;switch(en){case"%s":return String(ea[eo++]);case"%d":return Number(ea[eo++]);case"%j":try{return JSON.stringify(ea[eo++])}catch(en){return"[Circular]"}default:return en}}),ef=ea[eo];eo<es;ef=ea[++eo])isNull(ef)||!isObject(ef)?eu+=" "+ef:eu+=" "+inspect(ef);return eu},ei.deprecate=function(en,eo){if(void 0!==ea&&!0===ea.noDeprecation)return en;if(void 0===ea)return function(){return ei.deprecate(en,eo).apply(this,arguments)};var es=!1;return function(){if(!es){if(ea.throwDeprecation)throw Error(eo);ea.traceDeprecation?console.trace(eo):console.error(eo),es=!0}return en.apply(this,arguments)}};var eu={},ef=/^$/;if(ea.env.NODE_DEBUG){var ep=ea.env.NODE_DEBUG;
vendor: 4,596 bytes, line 34
34ef=RegExp("^"+(ep=ep.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function inspect(en,eo){var ea={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(ea.depth=arguments[2]),arguments.length>=4&&(ea.colors=arguments[3]),isBoolean(eo)?ea.showHidden=eo:eo&&ei._extend(ea,eo),isUndefined(ea.showHidden)&&(ea.showHidden=!1),isUndefined(ea.depth)&&(ea.depth=2),isUndefined(ea.colors)&&(ea.colors=!1),isUndefined(ea.customInspect)&&(ea.customInspect=!0),ea.colors&&(ea.stylize=stylizeWithColor),formatValue(ea,en,ea.depth)}function stylizeWithColor(en,ei){var eo=inspect.styles[ei];return eo?"\x1b["+inspect.colors[eo][0]+"m"+en+"\x1b["+inspect.colors[eo][1]+"m":en}function stylizeNoColor(en,ei){return en}function arrayToHash(en){var ei={};return en.forEach(function(en,eo){ei[en]=!0}),ei}function formatValue(en,eo,ea){if(en.customInspect&&eo&&isFunction(eo.inspect)&&eo.inspect!==ei.inspect&&!(eo.constructor&&eo.constructor.prototype===eo)){var es,ed=eo.inspect(ea,en);return isString(ed)||(ed=formatValue(en,ed,ea)),ed}var eu=formatPrimitive(en,eo);if(eu)return eu;var ef=Object.keys(eo),ep=arrayToHash(ef);if(en.showHidden&&(ef=Object.getOwnPropertyNames(eo)),isError(eo)&&(ef.indexOf("message")>=0||ef.indexOf("description")>=0))return formatError(eo);if(0===ef.length){if(isFunction(eo)){var em=eo.name?": "+eo.name:"";return en.stylize("[Function"+em+"]","special")}if(isRegExp(eo))return en.stylize(RegExp.prototype.toString.call(eo),"regexp");if(isDate(eo))return en.stylize(Date.prototype.toString.call(eo),"date");if(isError(eo))return formatError(eo)}var eg="",ey=!1,eb=["{","}"];return(isArray(eo)&&(ey=!0,eb=["[","]"]),isFunction(eo)&&(eg=" [Function"+(eo.name?": "+eo.name:"")+"]"),isRegExp(eo)&&(eg=" "+RegExp.prototype.toString.call(eo)),isDate(eo)&&(eg=" "+Date.prototype.toUTCString.call(eo)),isError(eo)&&(eg=" "+formatError(eo)),0!==ef.length||ey&&0!=eo.length)?ea<0?isRegExp(eo)?en.stylize(RegExp.prototype.toString.call(eo),"regexp"):en.stylize("[Object]","special"):(en.seen.push(eo),es=ey?formatArray(en,eo,ea,ep,ef):ef.map(function(ei){return formatProperty(en,eo,ea,ep,ei,ey)}),en.seen.pop(),reduceToSingleString(es,eg,eb)):eb[0]+eg+eb[1]}function formatPrimitive(en,ei){if(isUndefined(ei))return en.stylize("undefined","undefined");if(isString(ei)){var eo="'"+JSON.stringify(ei).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return en.stylize(eo,"string")}return isNumber(ei)?en.stylize(""+ei,"number"):isBoolean(ei)?en.stylize(""+ei,"boolean"):isNull(ei)?en.stylize("null","null"):void 0}function formatError(en){return"["+Error.prototype.toString.call(en)+"]"}function formatArray(en,ei,eo,ea,es){for(var ed=[],eu=0,ef=ei.length;eu<ef;++eu)hasOwnProperty(ei,String(eu))?ed.push(formatProperty(en,ei,eo,ea,String(eu),!0)):ed.push("");return es.forEach(function(es){es.match(/^\d+$/)||ed.push(formatProperty(en,ei,eo,ea,es,!0))}),ed}function formatProperty(en,ei,eo,ea,es,ed){var eu,ef,ep;if((ep=Object.getOwnPropertyDescriptor(ei,es)||{value:ei[es]}).get?ef=ep.set?en.stylize("[Getter/Setter]","special"):en.stylize("[Getter]","special"):ep.set&&(ef=en.stylize("[Setter]","special")),hasOwnProperty(ea,es)||(eu="["+es+"]"),!ef&&(0>en.seen.indexOf(ep.value)?(ef=isNull(eo)?formatValue(en,ep.value,null):formatValue(en,ep.value,eo-1)).indexOf("\n")>-1&&(ef=ed?ef.split("\n").map(function(en){return"  "+en}).join("\n").slice(2):"\n"+ef.split("\n").map(function(en){return"   "+en}).join("\n")):ef=en.stylize("[Circular]","special")),isUndefined(eu)){if(ed&&es.match(/^\d+$/))return ef;(eu=JSON.stringify(""+es)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(eu=eu.slice(1,-1),eu=en.stylize(eu,"name")):(eu=eu.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),eu=en.stylize(eu,"string"))}return eu+": "+ef}function reduceToSingleString(en,ei,eo){var ea=0;return en.reduce(function(en,ei){return ea++,ei.indexOf("\n")>=0&&ea++,en+ei.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?eo[0]+(""===ei?"":ei+"\n ")+" "+en.join(",\n  ")+" "+eo[1]:eo[0]+ei+" "+en.join(", ")+" "+eo[1]}function isArray(en){return Array.isArray(en)}function isBoolean(en){return"boolean"==typeof en}function isNull(en){return null===en}function isNullOrUndefined(en){return null==en}function isNumber(en){return"number"==typeof en}function isString(en){return"string"==typeof en}function isSymbol(en){return"symbol"==typeof en}function isUndefined(en){return void 0===en}function isRegExp(en){return isObject(en)&&"[object RegExp]"===objectToString(en)}function isObject(en){return"object"==typeof en&&null!==en}
34function isDate(en){return isObject(en)&&"[object Date]"===objectToString(en)}function isError(en){return isObject(en)&&("[object Error]"===objectToString(en)||en instanceof Error)}function isFunction(en){return"function"==typeof en}function isPrimitive(en){return null===en||"boolean"==typeof en||"number"==typeof en||"string"==typeof en||"symbol"==typeof en||void 0===en}function objectToString(en){return Object.prototype.toString.call(en)}function pad(en){return en<10?"0"+en.toString(10):en.toString(10)}ei.debuglog=function(en){if(!eu[en=en.toUpperCase()]){if(ef.test(en)){var eo=ea.pid;eu[en]=function(){var ea=ei.format.apply(ei,arguments);console.error("%s %d: %s",en,eo,ea)}}else eu[en]=function(){}}return eu[en]},ei.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},ei.types=eo(55955),ei.isArray=isArray,ei.isBoolean=isBoolean,ei.isNull=isNull,ei.isNullOrUndefined=isNullOrUndefined,ei.isNumber=isNumber,ei.isString=isString,ei.isSymbol=isSymbol,ei.isUndefined=isUndefined,ei.isRegExp=isRegExp,ei.types.isRegExp=isRegExp,ei.isObject=isObject,ei.isDate=isDate,ei.types.isDate=isDate,ei.isError=isError,ei.types.isNativeError=isError,ei.isFunction=isFunction,ei.isPrimitive=isPrimitive,ei.isBuffer=eo(20384);var em=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var en=new Date,ei=[pad(en.getHours()),pad(en.getMinutes()),pad(en.getSeconds())].join(":");return[en.getDate(),em[en.getMonth()],ei].join(" ")}function hasOwnProperty(en,ei){return Object.prototype.hasOwnProperty.call(en,ei)}ei.log=function(){console.log("%s - %s",timestamp(),ei.format.apply(ei,arguments))},ei.inherits=eo(35717),ei._extend=function(en,ei){if(!ei||!isObject(ei))return en;for(var eo=Object.keys(ei),ea=eo.length;ea--;)en[eo[ea]]=ei[eo[ea]];return en};var eg="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function callbackifyOnRejected(en,ei){if(!en){var eo=Error("Promise was rejected with a falsy value");eo.reason=en,en=eo}return ei(en)}function callbackify(en){if("function"!=typeof en)throw TypeError('The "original" argument must be of type Function');function callbackified(){for(var ei=[],eo=0;eo<arguments.length;eo++)ei.push(arguments[eo]);var es=ei.pop();if("function"!=typeof es)throw TypeError("The last argument must be of type Function");var ed=this,cb=function(){return es.apply(ed,arguments)};en.apply(this,ei).then(function(en){ea.nextTick(cb.bind(null,null,en))},function(en){ea.nextTick(callbackifyOnRejected.bind(null,en,cb))})}return Object.setPrototypeOf(callbackified,Object.getPrototypeOf(en)),Object.defineProperties(callbackified,es(en)),callbackified}ei.promisify=function(en){if("function"!=typeof en)throw TypeError('The "original" argument must be of type Function');if(eg&&en[eg]){var fn=en[eg];if("function"!=typeof fn)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(fn,eg,{value:fn,enumerable:!1,writable:!1,configurable:!0}),fn}function fn(){for(var ei,eo,ea=new Promise(function(en,ea){ei=en,eo=ea}),es=[],ed=0;ed<arguments.length;ed++)es.push(arguments[ed]);es.push(function(en,ea){en?eo(en):ei(ea)});try{en.apply(this,es)}catch(en){eo(en)}return ea}return Object.setPrototypeOf(fn,Object.getPrototypeOf(en)),eg&&Object.defineProperty(fn,eg,{value:fn,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(fn,es(en))},ei.promisify.custom=eg,ei.callbackify=callbackify},97466:function(en,ei,eo){"use strict";eo.r(ei),eo.d(ei,{NIL:function(){return eA},parse:function(){return esm_browser_parse},stringify:function(){return esm_browser_stringify},v1:function(){return esm_browser_v1},v3:function(){return e_},v4:function(){return esm_browser_v4},v5:function(){return eR},validate:function(){return esm_browser_validate},version:function(){return esm_browser_version}});var ea,es,ed,eu=new Uint8Array(16);function rng(){if(!ea&&!(ea="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ea(eu)}
34for(var ef=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,esm_browser_validate=function(en){return"string"==typeof en&&ef.test(en)},ep=[],em=0;em<256;++em)ep.push((em+256).toString(16).substr(1));var esm_browser_stringify=function(en){var ei=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,eo=(ep[en[ei+0]]+ep[en[ei+1]]+ep[en[ei+2]]+ep[en[ei+3]]+"-"+ep[en[ei+4]]+ep[en[ei+5]]+"-"+ep[en[ei+6]]+ep[en[ei+7]]+"-"+ep[en[ei+8]]+ep[en[ei+9]]+"-"+ep[en[ei+10]]+ep[en[ei+11]]+ep[en[ei+12]]+ep[en[ei+13]]+ep[en[ei+14]]+ep[en[ei+15]]).toLowerCase();if(!esm_browser_validate(eo))throw TypeError("Stringified UUID is invalid");return eo},eg=0,ey=0,esm_browser_v1=function(en,ei,eo){var ea=ei&&eo||0,eu=ei||Array(16),ef=(en=en||{}).node||es,ep=void 0!==en.clockseq?en.clockseq:ed;if(null==ef||null==ep){var em=en.random||(en.rng||rng)();null==ef&&(ef=es=[1|em[0],em[1],em[2],em[3],em[4],em[5]]),null==ep&&(ep=ed=(em[6]<<8|em[7])&16383)}var eb=void 0!==en.msecs?en.msecs:Date.now(),eS=void 0!==en.nsecs?en.nsecs:ey+1,e_=eb-eg+(eS-ey)/1e4;if(e_<0&&void 0===en.clockseq&&(ep=ep+1&16383),(e_<0||eb>eg)&&void 0===en.nsecs&&(eS=0),eS>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");eg=eb,ey=eS,ed=ep;var eR=((268435455&(eb+=122192928e5))*1e4+eS)%4294967296;eu[ea++]=eR>>>24&255,eu[ea++]=eR>>>16&255,eu[ea++]=eR>>>8&255,eu[ea++]=255&eR;var eA=eb/4294967296*1e4&268435455;eu[ea++]=eA>>>8&255,eu[ea++]=255&eA,eu[ea++]=eA>>>24&15|16,eu[ea++]=eA>>>16&255,eu[ea++]=ep>>>8|128,eu[ea++]=255&ep;for(var ew=0;ew<6;++ew)eu[ea+ew]=ef[ew];return ei||esm_browser_stringify(eu)},esm_browser_parse=function(en){if(!esm_browser_validate(en))throw TypeError("Invalid UUID");var ei,eo=new Uint8Array(16);return eo[0]=(ei=parseInt(en.slice(0,8),16))>>>24,eo[1]=ei>>>16&255,eo[2]=ei>>>8&255,eo[3]=255&ei,eo[4]=(ei=parseInt(en.slice(9,13),16))>>>8,eo[5]=255&ei,eo[6]=(ei=parseInt(en.slice(14,18),16))>>>8,eo[7]=255&ei,eo[8]=(ei=parseInt(en.slice(19,23),16))>>>8,eo[9]=255&ei,eo[10]=(ei=parseInt(en.slice(24,36),16))/1099511627776&255,eo[11]=ei/4294967296&255,eo[12]=ei>>>24&255,eo[13]=ei>>>16&255,eo[14]=ei>>>8&255,eo[15]=255&ei,eo};function stringToBytes(en){en=unescape(encodeURIComponent(en));for(var ei=[],eo=0;eo<en.length;++eo)ei.push(en.charCodeAt(eo));return ei}var eb="6ba7b810-9dad-11d1-80b4-00c04fd430c8",eS="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function v35(en,ei,eo){function generateUUID(en,ea,es,ed){if("string"==typeof en&&(en=stringToBytes(en)),"string"==typeof ea&&(ea=esm_browser_parse(ea)),16!==ea.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var eu=new Uint8Array(16+en.length);if(eu.set(ea),eu.set(en,ea.length),(eu=eo(eu))[6]=15&eu[6]|ei,eu[8]=63&eu[8]|128,es){ed=ed||0;for(var ef=0;ef<16;++ef)es[ed+ef]=eu[ef];return es}return esm_browser_stringify(eu)}try{generateUUID.name=en}catch(en){}return generateUUID.DNS=eb,generateUUID.URL=eS,generateUUID}function md5ToHexEncodedArray(en){for(var ei=[],eo=32*en.length,ea="0123456789abcdef",es=0;es<eo;es+=8){var ed=en[es>>5]>>>es%32&255,eu=parseInt(ea.charAt(ed>>>4&15)+ea.charAt(15&ed),16);ei.push(eu)}return ei}function getOutputLength(en){return(en+64>>>9<<4)+14+1}function wordsToMd5(en,ei){en[ei>>5]|=128<<ei%32,en[getOutputLength(ei)-1]=ei;for(var eo=1732584193,ea=-271733879,es=-1732584194,ed=271733878,eu=0;eu<en.length;eu+=16){var ef=eo,ep=ea,em=es,eg=ed;eo=md5ff(eo,ea,es,ed,en[eu],7,-680876936),ed=md5ff(ed,eo,ea,es,en[eu+1],12,-389564586),es=md5ff(es,ed,eo,ea,en[eu+2],17,606105819),ea=md5ff(ea,es,ed,eo,en[eu+3],22,-1044525330),eo=md5ff(eo,ea,es,ed,en[eu+4],7,-176418897),ed=md5ff(ed,eo,ea,es,en[eu+5],12,1200080426),es=md5ff(es,ed,eo,ea,en[eu+6],17,-1473231341),ea=md5ff(ea,es,ed,eo,en[eu+7],22,-45705983),eo=md5ff(eo,ea,es,ed,en[eu+8],7,1770035416),ed=md5ff(ed,eo,ea,es,en[eu+9],12,-1958414417),es=md5ff(es,ed,eo,ea,en[eu+10],17,-42063),ea=md5ff(ea,es,ed,eo,en[eu+11],22,-1990404162),eo=md5ff(eo,ea,es,ed,en[eu+12],7,1804603682),ed=md5ff(ed,eo,ea,es,en[eu+13],12,-40341101),es=md5ff(es,ed,eo,ea,en[eu+14],17,-1502002290),ea=md5ff(ea,es,ed,eo,en[eu+15],22,1236535329),eo=md5gg(eo,ea,es,ed,en[eu+1],5,-165796510),ed=md5gg(ed,eo,ea,es,en[eu+6],9,-1069501632),es=md5gg(es,ed,eo,ea,en[eu+11],14,643717713),ea=md5gg(ea,es,ed,eo,en[eu],20,-373897302),eo=md5gg(eo,ea,es,ed,en[eu+5],5,-701558691),ed=md5gg(ed,eo,ea,es,en[eu+10],9,38016083),es=md5gg(es,ed,eo,ea,en[eu+15],14,-660478335),ea=md5gg(ea,es,ed,eo,en[eu+4],20,-405537848),eo=md5gg(eo,ea,es,ed,en[eu+9],5,568446438),ed=md5gg(ed,eo,ea,es,en[eu+14],9,-1019803690),es=md5gg(es,ed,eo,ea,en[eu+3],14,-187363961),ea=md5gg(ea,es,ed,eo,en[eu+8],20,1163531501),eo=md5gg(eo,ea,es,ed,en[eu+13],5,-1444681467),ed=md5gg(ed,eo,ea,es,en[eu+2],9,-51403784),es=md5gg(es,ed,eo,ea,en[eu+7],14,1735328473),ea=md5gg(ea,es,ed,eo,en[eu+12],20,-1926607734),eo=md5hh(eo,ea,es,ed,en[eu+5],4,-378558),ed=md5hh(ed,eo,ea,es,en[eu+8],11,-2022574463),es=md5hh(es,ed,eo,ea,en[eu+11],16,1839030562),ea=md5hh(ea,es,ed,eo,en[eu+14],23,-35309556),eo=md5hh(eo,ea,es,ed,en[eu+1],4,-1530992060),ed=md5hh(ed,eo,ea,es,en[eu+4],11,1272893353),es=md5hh(es,ed,eo,ea,en[eu+7],16,-155497632),ea=md5hh(ea,es,ed,eo,en[eu+10],23,-1094730640),eo=md5hh(eo,ea,es,ed,en[eu+13],4,681279174),ed=md5hh(ed,eo,ea,es,en[eu],11,-358537222),es=md5hh(es,ed,eo,ea,en[eu+3],16,-722521979),ea=md5hh(ea,es,ed,eo,en[eu+6],23,76029189),eo=md5hh(eo,ea,es,ed,en[eu+9],4,-640364487),ed=md5hh(ed,eo,ea,es,en[eu+12],11,-421815835),es=md5hh(es,ed,eo,ea,en[eu+15],16,530742520),ea=md5hh(ea,es,ed,eo,en[eu+2],23,-995338651),eo=md5ii(eo,ea,es,ed,en[eu],6,-198630844),ed=md5ii(ed,eo,ea,es,en[eu+7],10,1126891415),es=md5ii(es,ed,eo,ea,en[eu+14],15,-1416354905),ea=md5ii(ea,es,ed,eo,en[eu+5],21,-57434055),eo=md5ii(eo,ea,es,ed,en[eu+12],6,1700485571),ed=md5ii(ed,eo,ea,es,en[eu+3],10,-1894986606),es=md5ii(es,ed,eo,ea,en[eu+10],15,-1051523),ea=md5ii(ea,es,ed,eo,en[eu+1],21,-2054922799),eo=md5ii(eo,ea,es,ed,en[eu+8],6,1873313359),ed=md5ii(ed,eo,ea,es,en[eu+15],10,-30611744),es=md5ii(es,ed,eo,ea,en[eu+6],15,-1560198380),ea=md5ii(ea,es,ed,eo,en[eu+13],21,1309151649),eo=md5ii(eo,ea,es,ed,en[eu+4],
346,-145523070),ed=md5ii(ed,eo,ea,es,en[eu+11],10,-1120210379),es=md5ii(es,ed,eo,ea,en[eu+2],15,718787259),ea=md5ii(ea,es,ed,eo,en[eu+9],21,-343485551),eo=safeAdd(eo,ef),ea=safeAdd(ea,ep),es=safeAdd(es,em),ed=safeAdd(ed,eg)}return[eo,ea,es,ed]}function bytesToWords(en){if(0===en.length)return[];for(var ei=8*en.length,eo=new Uint32Array(getOutputLength(ei)),ea=0;ea<ei;ea+=8)eo[ea>>5]|=(255&en[ea/8])<<ea%32;return eo}function safeAdd(en,ei){var eo=(65535&en)+(65535&ei);return(en>>16)+(ei>>16)+(eo>>16)<<16|65535&eo}function bitRotateLeft(en,ei){return en<<ei|en>>>32-ei}function md5cmn(en,ei,eo,ea,es,ed){return safeAdd(bitRotateLeft(safeAdd(safeAdd(ei,en),safeAdd(ea,ed)),es),eo)}function md5ff(en,ei,eo,ea,es,ed,eu){return md5cmn(ei&eo|~ei&ea,en,ei,es,ed,eu)}function md5gg(en,ei,eo,ea,es,ed,eu){return md5cmn(ei&ea|eo&~ea,en,ei,es,ed,eu)}function md5hh(en,ei,eo,ea,es,ed,eu){return md5cmn(ei^eo^ea,en,ei,es,ed,eu)}function md5ii(en,ei,eo,ea,es,ed,eu){return md5cmn(eo^(ei|~ea),en,ei,es,ed,eu)}var e_=v35("v3",48,function(en){if("string"==typeof en){var ei=unescape(encodeURIComponent(en));en=new Uint8Array(ei.length);for(var eo=0;eo<ei.length;++eo)en[eo]=ei.charCodeAt(eo)}return md5ToHexEncodedArray(wordsToMd5(bytesToWords(en),8*en.length))}),esm_browser_v4=function(en,ei,eo){var ea=(en=en||{}).random||(en.rng||rng)();if(ea[6]=15&ea[6]|64,ea[8]=63&ea[8]|128,ei){eo=eo||0;for(var es=0;es<16;++es)ei[eo+es]=ea[es];return ei}return esm_browser_stringify(ea)};function f(en,ei,eo,ea){switch(en){case 0:return ei&eo^~ei&ea;case 1:case 3:return ei^eo^ea;case 2:return ei&eo^ei&ea^eo&ea}}function ROTL(en,ei){return en<<ei|en>>>32-ei}var eR=v35("v5",80,function(en){var ei=[1518500249,1859775393,2400959708,3395469782],eo=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof en){var ea=unescape(encodeURIComponent(en));en=[];for(var es=0;es<ea.length;++es)en.push(ea.charCodeAt(es))}else Array.isArray(en)||(en=Array.prototype.slice.call(en));en.push(128);for(var ed=Math.ceil((en.length/4+2)/16),eu=Array(ed),ef=0;ef<ed;++ef){for(var ep=new Uint32Array(16),em=0;em<16;++em)ep[em]=en[64*ef+4*em]<<24|en[64*ef+4*em+1]<<16|en[64*ef+4*em+2]<<8|en[64*ef+4*em+3];eu[ef]=ep}eu[ed-1][14]=(en.length-1)*8/4294967296,eu[ed-1][14]=Math.floor(eu[ed-1][14]),eu[ed-1][15]=(en.length-1)*8&4294967295;for(var eg=0;eg<ed;++eg){for(var ey=new Uint32Array(80),eb=0;eb<16;++eb)ey[eb]=eu[eg][eb];for(var eS=16;eS<80;++eS)ey[eS]=ROTL(ey[eS-3]^ey[eS-8]^ey[eS-14]^ey[eS-16],1);for(var e_=eo[0],eR=eo[1],eA=eo[2],ew=eo[3],eO=eo[4],eE=0;eE<80;++eE){var eP=Math.floor(eE/20),eC=ROTL(e_,5)+f(eP,eR,eA,ew)+eO+ei[eP]+ey[eE]>>>0;eO=ew,ew=eA,eA=ROTL(eR,30)>>>0,eR=e_,e_=eC}eo[0]=eo[0]+e_>>>0,eo[1]=eo[1]+eR>>>0,eo[2]=eo[2]+eA>>>0,eo[3]=eo[3]+ew>>>0,eo[4]=eo[4]+eO>>>0}return[eo[0]>>24&255,eo[0]>>16&255,eo[0]>>8&255,255&eo[0],eo[1]>>24&255,eo[1]>>16&255,eo[1]>>8&255,255&eo[1],eo[2]>>24&255,eo[2]>>16&255,eo[2]>>8&255,255&eo[2],eo[3]>>24&255,eo[3]>>16&255,eo[3]>>8&255,255&eo[3],eo[4]>>24&255,eo[4]>>16&255,eo[4]>>8&255,255&eo[4]]}),eA="00000000-0000-0000-0000-000000000000",esm_browser_version=function(en){if(!esm_browser_validate(en))throw TypeError("Invalid UUID");return parseInt(en.substr(14,1),16)}},86430:function(en,ei,eo){"use strict";var ea=eo(94029),es=eo(63083),ed=eo(55559),eu=eo(21924),ef=eo(27296),ep=eu("Object.prototype.toString"),em=eo(96410)(),eg="undefined"==typeof globalThis?eo.g:globalThis,ey=es(),eb=eu("String.prototype.slice"),eS=Object.getPrototypeOf,e_=eu("Array.prototype.indexOf",!0)||function(en,ei){for(var eo=0;eo<en.length;eo+=1)if(en[eo]===ei)return eo;return -1},eR={__proto__:null};em&&ef&&eS?ea(ey,function(en){var ei=new eg[en];if(Symbol.toStringTag in ei){var eo=eS(ei),ea=ef(eo,Symbol.toStringTag);ea||(ea=ef(eS(eo),Symbol.toStringTag)),eR["$"+en]=ed(ea.get)}}):ea(ey,function(en){var ei=new eg[en],eo=ei.slice||ei.set;eo&&(eR["$"+en]=ed(eo))});var tryTypedArrays=function(en){var ei=!1;return ea(eR,function(eo,ea){if(!ei)try{"$"+eo(en)===ea&&(ei=eb(ea,1))}catch(en){}}),ei},trySlices=function(en){var ei=!1;return ea(eR,function(eo,ea){if(!ei)try{eo(en),ei=eb(ea,1)}catch(en){}}),ei};en.exports=function(en){if(!en||"object"!=typeof en)return!1;if(!em){var ei=eb(ep(en),8,-1);return e_(ey,ei)>-1?ei:"Object"===ei&&trySlices(en)}return ef?tryTypedArrays(en):null}},63083:function(en,ei,eo){"use strict";var ea=eo(89908),es="undefined"==typeof globalThis?eo.g:globalThis;en.exports=function(){for(var en=[],ei=0;ei<ea.length;ei++)"function"==typeof es[ea[ei]]&&(en[en.length]=ea[ei]);return en}},78419:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.hasCORS=void 0;let eo=!1;try{eo="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(en){}ei.hasCORS=eo},75754:function(en,ei){"use strict";function encode(en){let ei="";for(let eo in en)en.hasOwnProperty(eo)&&(ei.length&&(ei+="&"),ei+=encodeURIComponent(eo)+"="+encodeURIComponent(en[eo]));return ei}function decode(en){let ei={},eo=en.split("&");for(let en=0,ea=eo.length;en<ea;en++){let ea=eo[en].split("=");ei[decodeURIComponent(ea[0])]=decodeURIComponent(ea[1])}return ei}Object.defineProperty(ei,"__esModule",{value:!0}),ei.decode=ei.encode=void 0,ei.encode=encode,ei.decode=decode},75222:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.parse=void 0;let eo=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ea=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function parse(en){if(en.length>2e3)throw"URI too long";let ei=en,es=en.indexOf("["),ed=en.indexOf("]");-1!=es&&-1!=ed&&(en=en.substring(0,es)+en.substring(es,ed).replace(/:/g,";")+en.substring(ed,en.length));let eu=eo.exec(en||""),ef={},ep=14;for(;ep--;)ef[ea[ep]]=eu[ep]||"";return -1!=es&&-1!=ed&&(ef.source=ei,ef.host=ef.host.substring(1,ef.host.length-1).replace(/;/g,":"),ef.authority=ef.authority.replace("[","").replace("]","").replace(/;/g,":"),ef.ipv6uri=!0),ef.pathNames=pathNames(ef,ef.path),ef.queryKey=queryKey(ef,ef.query),ef}function pathNames(en,ei){let eo=/\/{2,9}/g,ea=ei.replace(eo,"/").split("/");
34return("/"==ei.slice(0,1)||0===ei.length)&&ea.splice(0,1),"/"==ei.slice(-1)&&ea.splice(ea.length-1,1),ea}function queryKey(en,ei){let eo={};return ei.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(en,ei,ea){ei&&(eo[ei]=ea)}),eo}ei.parse=parse},68726:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.yeast=ei.decode=ei.encode=void 0;let eo="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ea=64,es={},ed=0,eu=0,ef;function encode(en){let ei="";do ei=eo[en%ea]+ei,en=Math.floor(en/ea);while(en>0);return ei}function decode(en){let ei=0;for(eu=0;eu<en.length;eu++)ei=ei*ea+es[en.charAt(eu)];return ei}function yeast(){let en=encode(+new Date);return en!==ef?(ed=0,ef=en):en+"."+encode(ed++)}for(ei.encode=encode,ei.decode=decode,ei.yeast=yeast;eu<ea;eu++)es[eo[eu]]=eu},46242:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.globalThisShim=void 0,ei.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},74679:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.nextTick=ei.parse=ei.installTimerFunctions=ei.transports=ei.TransportError=ei.Transport=ei.protocol=ei.Socket=void 0;let ea=eo(93481);Object.defineProperty(ei,"Socket",{enumerable:!0,get:function(){return ea.Socket}}),ei.protocol=ea.Socket.protocol;var es=eo(29870);Object.defineProperty(ei,"Transport",{enumerable:!0,get:function(){return es.Transport}}),Object.defineProperty(ei,"TransportError",{enumerable:!0,get:function(){return es.TransportError}});var ed=eo(7385);Object.defineProperty(ei,"transports",{enumerable:!0,get:function(){return ed.transports}});var eu=eo(89622);Object.defineProperty(ei,"installTimerFunctions",{enumerable:!0,get:function(){return eu.installTimerFunctions}});var ef=eo(75222);Object.defineProperty(ei,"parse",{enumerable:!0,get:function(){return ef.parse}});var ep=eo(45552);Object.defineProperty(ei,"nextTick",{enumerable:!0,get:function(){return ep.nextTick}})},93481:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Socket=void 0;let es=eo(7385),ed=eo(89622),eu=eo(75754),ef=eo(75222),ep=ea(eo(11227)),em=eo(95260),eg=eo(1373),ey=eo(45552),eb=(0,ep.default)("engine.io-client:socket");let Socket=class Socket extends em.Emitter{constructor(en,ei={}){super(),this.binaryType=ey.defaultBinaryType,this.writeBuffer=[],en&&"object"==typeof en&&(ei=en,en=null),en?(en=(0,ef.parse)(en),ei.hostname=en.host,ei.secure="https"===en.protocol||"wss"===en.protocol,ei.port=en.port,en.query&&(ei.query=en.query)):ei.host&&(ei.hostname=(0,ef.parse)(ei.host).host),(0,ed.installTimerFunctions)(this,ei),this.secure=null!=ei.secure?ei.secure:"undefined"!=typeof location&&"https:"===location.protocol,ei.hostname&&!ei.port&&(ei.port=this.secure?"443":"80"),this.hostname=ei.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=ei.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=ei.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},ei),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,eu.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})}
34,addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(en){eb('creating transport "%s"',en);let ei=Object.assign({},this.opts.query);ei.EIO=eg.protocol,ei.transport=en,this.id&&(ei.sid=this.id);let eo=Object.assign({},this.opts,{query:ei,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[en]);return eb("options: %j",eo),new es.transports[en](eo)}open(){let en;if(this.opts.rememberUpgrade&&Socket.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))en="websocket";else if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else en=this.transports[0];this.readyState="opening";try{en=this.createTransport(en)}catch(en){eb("error while creating transport: %s",en),this.transports.shift(),this.open();return}en.open(),this.setTransport(en)}setTransport(en){eb("setting transport %s",en.name),this.transport&&(eb("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=en,en.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",en=>this.onClose("transport close",en))}probe(en){eb('probing transport "%s"',en);let ei=this.createTransport(en),eo=!1;Socket.priorWebsocketSuccess=!1;let onTransportOpen=()=>{eo||(eb('probe transport "%s" opened',en),ei.send([{type:"ping",data:"probe"}]),ei.once("packet",ea=>{if(!eo){if("pong"===ea.type&&"probe"===ea.data)eb('probe transport "%s" pong',en),this.upgrading=!0,this.emitReserved("upgrading",ei),ei&&(Socket.priorWebsocketSuccess="websocket"===ei.name,eb('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{eo||"closed"===this.readyState||(eb("changing transport and sending upgrade packet"),cleanup(),this.setTransport(ei),ei.send([{type:"upgrade"}]),this.emitReserved("upgrade",ei),ei=null,this.upgrading=!1,this.flush())}));else{eb('probe transport "%s" failed',en);let eo=Error("probe error");eo.transport=ei.name,this.emitReserved("upgradeError",eo)}}}))};function freezeTransport(){eo||(eo=!0,cleanup(),ei.close(),ei=null)}let onerror=eo=>{let ea=Error("probe error: "+eo);ea.transport=ei.name,freezeTransport(),eb('probe transport "%s" failed because of error: %s',en,eo),this.emitReserved("upgradeError",ea)};function onTransportClose(){onerror("transport closed")}function onclose(){onerror("socket closed")}function onupgrade(en){ei&&en.name!==ei.name&&(eb('"%s" works - aborting "%s"',en.name,ei.name),freezeTransport())}let cleanup=()=>{ei.removeListener("open",onTransportOpen),ei.removeListener("error",onerror),ei.removeListener("close",onTransportClose),this.off("close",onclose),this.off("upgrading",onupgrade)};ei.once("open",onTransportOpen),ei.once("error",onerror),ei.once("close",onTransportClose),this.once("close",onclose),this.once("upgrading",onupgrade),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==en?this.setTimeoutFn(()=>{eo||ei.open()},200):ei.open()}onOpen(){if(eb("socket open"),this.readyState="open",Socket.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){eb("starting upgrade probes");let en=0,ei=this.upgrades.length;for(;en<ei;en++)this.probe(this.upgrades[en])}}onPacket(en){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(eb('socket receive: type "%s", data "%s"',en.type,en.data),this.emitReserved("packet",en),this.emitReserved("heartbeat"),this.resetPingTimeout(),en.type){case"open":this.onHandshake(JSON.parse(en.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let ei=Error("server error");ei.code=en.data,this.onError(ei);break;case"message":this.emitReserved("data",en.data),this.emitReserved("message",en.data)}else eb('packet received with socket readyState "%s"',this.readyState)}onHandshake(en){this.emitReserved("handshake",en),this.id=en.sid,this.transport.query.sid=en.sid,this.upgrades=this.filterUpgrades(e
34n.upgrades),this.pingInterval=en.pingInterval,this.pingTimeout=en.pingTimeout,this.maxPayload=en.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let en=this.getWritablePackets();eb("flushing %d packets in socket",en.length),this.transport.send(en),this.prevBufferLen=en.length,this.emitReserved("flush")}}getWritablePackets(){let en=this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1;if(!en)return this.writeBuffer;let ei=1;for(let en=0;en<this.writeBuffer.length;en++){let eo=this.writeBuffer[en].data;if(eo&&(ei+=(0,ed.byteLength)(eo)),en>0&&ei>this.maxPayload)return eb("only send %d out of %d packets",en,this.writeBuffer.length),this.writeBuffer.slice(0,en);ei+=2}return eb("payload size is %d (max: %d)",ei,this.maxPayload),this.writeBuffer}write(en,ei,eo){return this.sendPacket("message",en,ei,eo),this}send(en,ei,eo){return this.sendPacket("message",en,ei,eo),this}sendPacket(en,ei,eo,ea){if("function"==typeof ei&&(ea=ei,ei=void 0),"function"==typeof eo&&(ea=eo,eo=null),"closing"===this.readyState||"closed"===this.readyState)return;(eo=eo||{}).compress=!1!==eo.compress;let es={type:en,data:ei,options:eo};this.emitReserved("packetCreate",es),this.writeBuffer.push(es),ea&&this.once("flush",ea),this.flush()}close(){let close=()=>{this.onClose("forced close"),eb("socket closing - telling transport to close"),this.transport.close()},cleanupAndClose=()=>{this.off("upgrade",cleanupAndClose),this.off("upgradeError",cleanupAndClose),close()},waitForUpgrade=()=>{this.once("upgrade",cleanupAndClose),this.once("upgradeError",cleanupAndClose)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?waitForUpgrade():close()}):this.upgrading?waitForUpgrade():close()),this}onError(en){eb("socket error %j",en),Socket.priorWebsocketSuccess=!1,this.emitReserved("error",en),this.onClose("transport error",en)}onClose(en,ei){("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)&&(eb('socket close with reason: "%s"',en),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",en,ei),this.writeBuffer=[],this.prevBufferLen=0)}
34filterUpgrades(en){let ei=[],eo=0,ea=en.length;for(;eo<ea;eo++)~this.transports.indexOf(en[eo])&&ei.push(en[eo]);return ei}};ei.Socket=Socket,Socket.protocol=eg.protocol},29870:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Transport=ei.TransportError=void 0;let es=eo(1373),ed=eo(95260),eu=eo(89622),ef=ea(eo(11227)),ep=eo(75754),em=(0,ef.default)("engine.io-client:transport");let TransportError=class TransportError extends Error{constructor(en,ei,eo){super(en),this.description=ei,this.context=eo,this.type="TransportError"}};ei.TransportError=TransportError;let Transport=class Transport extends ed.Emitter{constructor(en){super(),this.writable=!1,(0,eu.installTimerFunctions)(this,en),this.opts=en,this.query=en.query,this.socket=en.socket}onError(en,ei,eo){return super.emitReserved("error",new TransportError(en,ei,eo)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(en){"open"===this.readyState?this.write(en):em("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(en){let ei=(0,es.decodePacket)(en,this.socket.binaryType);this.onPacket(ei)}onPacket(en){super.emitReserved("packet",en)}onClose(en){this.readyState="closed",super.emitReserved("close",en)}pause(en){}createUri(en,ei={}){return en+"://"+this._hostname()+this._port()+this.opts.path+this._query(ei)}_hostname(){let en=this.opts.hostname;return -1===en.indexOf(":")?en:"["+en+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(en){let ei=(0,ep.encode)(en);return ei.length?"?"+ei:""}};ei.Transport=Transport},7385:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.transports=void 0;let ea=eo(40484),es=eo(51308),ed=eo(31020);ei.transports={websocket:es.WS,webtransport:ed.WT,polling:ea.Polling}},40484:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Request=ei.Polling=void 0;let es=eo(29870),ed=ea(eo(11227)),eu=eo(68726),ef=eo(1373),ep=eo(26666),em=eo(95260),eg=eo(89622),ey=eo(46242),eb=(0,ed.default)("engine.io-client:polling");function empty(){}let eS=function(){let en=new ep.XHR({xdomain:!1});return null!=en.responseType}();let Polling=class Polling extends es.Transport{constructor(en){if(super(en),this.polling=!1,"undefined"!=typeof location){let ei="https:"===location.protocol,eo=location.port;eo||(eo=ei?"443":"80"),this.xd="undefined"!=typeof location&&en.hostname!==location.hostname||eo!==en.port}let ei=en&&en.forceBase64;this.supportsBinary=eS&&!ei,this.opts.withCredentials&&(this.cookieJar=(0,ep.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(en){this.readyState="pausing";let pause=()=>{eb("paused"),this.readyState="paused",en()};if(this.polling||!this.writable){let en=0;this.polling&&(eb("we are currently polling - waiting to pause"),en++,this.once("pollComplete",function(){eb("pre-pause polling complete"),--en||pause()})),this.writable||(eb("we are currently writing - waiting to pause"),en++,this.once("drain",function(){eb("pre-pause writing complete"),--en||pause()}))}else pause()}poll(){eb("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(en){eb("polling got data %s",en);let callback=en=>{if("opening"===this.readyState&&"open"===en.type&&this.onOpen(),"close"===en.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(en)};(0,ef.decodePayload)(en,this.socket.binaryType).forEach(callback),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this.poll():eb('ignoring poll - transport state "%s"',this.readyState))}doClose(){let close=()=>{eb("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(eb("transport open - closing"),close()):(eb("transport not open - deferring close"),this.once("open",close))}write(en){this.writable=!1,(0,ef.encodePayload)(en,en=>{this.doWrite(en,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let en=this.opts.secure?"https":"http",ei=this.query||{};return!1!==this.opts.timestampRequests&&(ei[this.opts.timestampParam]=(0,eu.yeast)()),this.supportsBinary||ei.sid||(ei.b64=1),this.createUri(en,ei)}request(en={}){return Object.assign(en,{xd:this.xd,cookieJar:this.cookieJar}
34,this.opts),new Request(this.uri(),en)}doWrite(en,ei){let eo=this.request({method:"POST",data:en});eo.on("success",ei),eo.on("error",(en,ei)=>{this.onError("xhr post error",en,ei)})}doPoll(){eb("xhr poll");let en=this.request();en.on("data",this.onData.bind(this)),en.on("error",(en,ei)=>{this.onError("xhr poll error",en,ei)}),this.pollXhr=en}};ei.Polling=Polling;let Request=class Request extends em.Emitter{constructor(en,ei){super(),(0,eg.installTimerFunctions)(this,ei),this.opts=ei,this.method=ei.method||"GET",this.uri=en,this.data=void 0!==ei.data?ei.data:null,this.create()}create(){var en;let ei=(0,eg.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");ei.xdomain=!!this.opts.xd;let eo=this.xhr=new ep.XHR(ei);try{eb("xhr open %s: %s",this.method,this.uri),eo.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders)for(let en in eo.setDisableHeaderCheck&&eo.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(en)&&eo.setRequestHeader(en,this.opts.extraHeaders[en])}catch(en){}if("POST"===this.method)try{eo.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(en){}try{eo.setRequestHeader("Accept","*/*")}catch(en){}null===(en=this.opts.cookieJar)||void 0===en||en.addCookies(eo),"withCredentials"in eo&&(eo.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(eo.timeout=this.opts.requestTimeout),eo.onreadystatechange=()=>{var en;3===eo.readyState&&(null===(en=this.opts.cookieJar)||void 0===en||en.parseCookies(eo)),4===eo.readyState&&(200===eo.status||1223===eo.status?this.onLoad():this.setTimeoutFn(()=>{this.onError("number"==typeof eo.status?eo.status:0)},0))},eb("xhr data %s",this.data),eo.send(this.data)}catch(en){this.setTimeoutFn(()=>{this.onError(en)},0);return}"undefined"!=typeof document&&(this.index=Request.requestsCount++,Request.requests[this.index]=this)}onError(en){this.emitReserved("error",en,this.xhr),this.cleanup(!0)}cleanup(en){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=empty,en)try{this.xhr.abort()}catch(en){}"undefined"!=typeof document&&delete Request.requests[this.index],this.xhr=null}}onLoad(){let en=this.xhr.responseText;null!==en&&(this.emitReserved("data",en),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};if(ei.Request=Request,Request.requestsCount=0,Request.requests={},"undefined"!=typeof document){if("function"==typeof attachEvent)attachEvent("onunload",unloadHandler);else if("function"==typeof addEventListener){let en="onpagehide"in ey.globalThisShim?"pagehide":"unload";addEventListener(en,unloadHandler,!1)}}function unloadHandler(){for(let en in Request.requests)Request.requests.hasOwnProperty(en)&&Request.requests[en].abort()}},45552:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.defaultBinaryType=ei.usingBrowserWebSocket=ei.WebSocket=ei.nextTick=void 0;let ea=eo(46242);ei.nextTick=(()=>{let en="function"==typeof Promise&&"function"==typeof Promise.resolve;return en?en=>Promise.resolve().then(en):(en,ei)=>ei(en,0)})(),ei.WebSocket=ea.globalThisShim.WebSocket||ea.globalThisShim.MozWebSocket,ei.usingBrowserWebSocket=!0,ei.defaultBinaryType="arraybuffer"},51308:function(en,ei,eo){"use strict";var ea=eo(48764).Buffer,es=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.WS=void 0;let ed=eo(29870),eu=eo(68726),ef=eo(89622),ep=eo(45552),em=es(eo(11227)),eg=eo(1373),ey=(0,em.default)("engine.io-client:websocket"),eb="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();let WS=class WS extends ed.Transport{constructor(en){super(en),this.supportsBinary=!en.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let en=this.uri(),ei=this.opts.protocols,eo=eb?{}:(0,ef.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(eo.headers=this.opts.extraHeaders);try{this.ws=ep.usingBrowserWebSocket&&!eb?ei?new ep.WebSocket(en,ei):new ep.WebSocket(en):new ep.WebSocket(en,ei,eo)}catch(en){return this.emitReserved("error",en)}
34this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=en=>this.onClose({description:"websocket connection closed",context:en}),this.ws.onmessage=en=>this.onData(en.data),this.ws.onerror=en=>this.onError("websocket error",en)}write(en){this.writable=!1;for(let ei=0;ei<en.length;ei++){let eo=en[ei],es=ei===en.length-1;(0,eg.encodePacket)(eo,this.supportsBinary,en=>{let ei={};if(!ep.usingBrowserWebSocket&&(eo.options&&(ei.compress=eo.options.compress),this.opts.perMessageDeflate)){let eo="string"==typeof en?ea.byteLength(en):en.length;eo<this.opts.perMessageDeflate.threshold&&(ei.compress=!1)}try{ep.usingBrowserWebSocket?this.ws.send(en):this.ws.send(en,ei)}catch(en){ey("websocket closed before onclose event")}es&&(0,ep.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let en=this.opts.secure?"wss":"ws",ei=this.query||{};return this.opts.timestampRequests&&(ei[this.opts.timestampParam]=(0,eu.yeast)()),this.supportsBinary||(ei.b64=1),this.createUri(en,ei)}check(){return!!ep.WebSocket}};ei.WS=WS},31020:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.WT=void 0;let es=eo(29870),ed=eo(45552),eu=eo(1373),ef=ea(eo(11227)),ep=(0,ef.default)("engine.io-client:webtransport");let WT=class WT extends es.Transport{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{ep("transport closed gracefully"),this.onClose()}).catch(en=>{ep("transport closed due to %s",en),this.onError("webtransport error",en)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(en=>{let ei=(0,eu.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),eo=en.readable.pipeThrough(ei).getReader(),ea=(0,eu.createPacketEncoderStream)();ea.readable.pipeTo(en.writable),this.writer=ea.writable.getWriter();let read=()=>{eo.read().then(({done:en,value:ei})=>{if(en){ep("session is closed");return}ep("received chunk: %o",ei),this.onPacket(ei),read()}).catch(en=>{ep("an error occurred while reading: %s",en)})};read();let es={type:"open"};this.query.sid&&(es.data=`{"sid":"${this.query.sid}"}`),this.writer.write(es).then(()=>this.onOpen())})}))}write(en){this.writable=!1;for(let ei=0;ei<en.length;ei++){let eo=en[ei],ea=ei===en.length-1;this.writer.write(eo).then(()=>{ea&&(0,ed.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var en;null===(en=this.transport)||void 0===en||en.close()}};ei.WT=WT},26666:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.createCookieJar=ei.XHR=void 0;let ea=eo(78419),es=eo(46242);function XHR(en){let ei=en.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!ei||ea.hasCORS))return new XMLHttpRequest}catch(en){}if(!ei)try{return new es.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(en){}}function createCookieJar(){}ei.XHR=XHR,ei.createCookieJar=createCookieJar},89622:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.byteLength=ei.installTimerFunctions=ei.pick=void 0;let ea=eo(46242);function pick(en,...ei){return ei.reduce((ei,eo)=>(en.hasOwnProperty(eo)&&(ei[eo]=en[eo]),ei),{})}ei.pick=pick;let es=ea.globalThisShim.setTimeout,ed=ea.globalThisShim.clearTimeout;function installTimerFunctions(en,ei){ei.useNativeTimers?(en.setTimeoutFn=es.bind(ea.globalThisShim),en.clearTimeoutFn=ed.bind(ea.globalThisShim)):(en.setTimeoutFn=ea.globalThisShim.setTimeout.bind(ea.globalThisShim),en.clearTimeoutFn=ea.globalThisShim.clearTimeout.bind(ea.globalThisShim))}ei.installTimerFunctions=installTimerFunctions;let eu=1.33;function byteLength(en){return"string"==typeof en?utf8Length(en):Math.ceil((en.byteLength||en.size)*eu)}function utf8Length(en){let ei=0,eo=0;for(let ea=0,es=en.length;ea<es;
34ea++)(ei=en.charCodeAt(ea))<128?eo+=1:ei<2048?eo+=2:ei<55296||ei>=57344?eo+=3:(ea++,eo+=4);return eo}ei.byteLength=byteLength},83087:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.ERROR_PACKET=ei.PACKET_TYPES_REVERSE=ei.PACKET_TYPES=void 0;let eo=Object.create(null);ei.PACKET_TYPES=eo,eo.open="0",eo.close="1",eo.ping="2",eo.pong="3",eo.message="4",eo.upgrade="5",eo.noop="6";let ea=Object.create(null);ei.PACKET_TYPES_REVERSE=ea,Object.keys(eo).forEach(en=>{ea[eo[en]]=en});let es={type:"error",data:"parser error"};ei.ERROR_PACKET=es},82469:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decode=ei.encode=void 0;let eo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ea="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let en=0;en<eo.length;en++)ea[eo.charCodeAt(en)]=en;let encode=en=>{let ei=new Uint8Array(en),ea,es=ei.length,ed="";for(ea=0;ea<es;ea+=3)ed+=eo[ei[ea]>>2]+eo[(3&ei[ea])<<4|ei[ea+1]>>4]+eo[(15&ei[ea+1])<<2|ei[ea+2]>>6]+eo[63&ei[ea+2]];return es%3==2?ed=ed.substring(0,ed.length-1)+"=":es%3==1&&(ed=ed.substring(0,ed.length-2)+"=="),ed};ei.encode=encode;let decode=en=>{let ei=.75*en.length,eo=en.length,es,ed=0,eu,ef,ep,em;"="===en[en.length-1]&&(ei--,"="===en[en.length-2]&&ei--);let eg=new ArrayBuffer(ei),ey=new Uint8Array(eg);for(es=0;es<eo;es+=4)eu=ea[en.charCodeAt(es)],ef=ea[en.charCodeAt(es+1)],ep=ea[en.charCodeAt(es+2)],em=ea[en.charCodeAt(es+3)],ey[ed++]=eu<<2|ef>>4,ey[ed++]=(15&ef)<<4|ep>>2,ey[ed++]=(3&ep)<<6|63&em;return eg};ei.decode=decode},17572:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.decodePacket=void 0;let ea=eo(83087),es=eo(82469),ed="function"==typeof ArrayBuffer,decodePacket=(en,ei)=>{if("string"!=typeof en)return{type:"message",data:mapBinary(en,ei)};let eo=en.charAt(0);if("b"===eo)return{type:"message",data:decodeBase64Packet(en.substring(1),ei)};let es=ea.PACKET_TYPES_REVERSE[eo];return es?en.length>1?{type:ea.PACKET_TYPES_REVERSE[eo],data:en.substring(1)}:{type:ea.PACKET_TYPES_REVERSE[eo]}:ea.ERROR_PACKET};ei.decodePacket=decodePacket;let decodeBase64Packet=(en,ei)=>{if(!ed)return{base64:!0,data:en};{let eo=(0,es.decode)(en);return mapBinary(eo,ei)}},mapBinary=(en,ei)=>"blob"===ei?en instanceof Blob?en:new Blob([en]):en instanceof ArrayBuffer?en:en.buffer},83908:function(en,ei,eo){"use strict";let ea;Object.defineProperty(ei,"__esModule",{value:!0}),ei.encodePacket=ei.encodePacketToBinary=void 0;let es=eo(83087),ed="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),eu="function"==typeof ArrayBuffer,isView=en=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(en):en&&en.buffer instanceof ArrayBuffer,encodePacket=({type:en,data:ei},eo,ea)=>ed&&ei instanceof Blob?eo?ea(ei):encodeBlobAsBase64(ei,ea):eu&&(ei instanceof ArrayBuffer||isView(ei))?eo?ea(ei):encodeBlobAsBase64(new Blob([ei]),ea):ea(es.PACKET_TYPES[en]+(ei||""));ei.encodePacket=encodePacket;let encodeBlobAsBase64=(en,ei)=>{let eo=new FileReader;return eo.onload=function(){let en=eo.result.split(",")[1];ei("b"+(en||""))},eo.readAsDataURL(en)};function toArray(en){return en instanceof Uint8Array?en:en instanceof ArrayBuffer?new Uint8Array(en):new Uint8Array(en.buffer,en.byteOffset,en.byteLength)}function encodePacketToBinary(en,ei){return ed&&en.data instanceof Blob?en.data.arrayBuffer().then(toArray).then(ei):eu&&(en.data instanceof ArrayBuffer||isView(en.data))?ei(toArray(en.data)):void encodePacket(en,!1,en=>{ea||(ea=new TextEncoder),ei(ea.encode(en))})}ei.encodePacketToBinary=encodePacketToBinary},1373:function(en,ei,eo){"use strict";let ea;Object.defineProperty(ei,"__esModule",{value:!0}),ei.decodePayload=ei.decodePacket=ei.encodePayload=ei.encodePacket=ei.protocol=ei.createPacketDecoderStream=ei.createPacketEncoderStream=void 0;let es=eo(83908);Object.defineProperty(ei,"encodePacket",{enumerable:!0,get:function(){return es.encodePacket}});let ed=eo(17572);Object.defineProperty(ei,"decodePacket",{enumerable:!0,get:function(){return ed.decodePacket}});let eu=eo(83087),ef="\x1e",encodePayload=(en,ei)=>{let eo=en.length,ea=Array(eo),ed=0;
34en.forEach((en,eu)=>{(0,es.encodePacket)(en,!1,en=>{ea[eu]=en,++ed===eo&&ei(ea.join(ef))})})};ei.encodePayload=encodePayload;let decodePayload=(en,ei)=>{let eo=en.split(ef),ea=[];for(let en=0;en<eo.length;en++){let es=(0,ed.decodePacket)(eo[en],ei);if(ea.push(es),"error"===es.type)break}return ea};function createPacketEncoderStream(){return new TransformStream({transform(en,ei){(0,es.encodePacketToBinary)(en,eo=>{let ea;let es=eo.length;if(es<126)ea=new Uint8Array(1),new DataView(ea.buffer).setUint8(0,es);else if(es<65536){ea=new Uint8Array(3);let en=new DataView(ea.buffer);en.setUint8(0,126),en.setUint16(1,es)}else{ea=new Uint8Array(9);let en=new DataView(ea.buffer);en.setUint8(0,127),en.setBigUint64(1,BigInt(es))}en.data&&"string"!=typeof en.data&&(ea[0]|=128),ei.enqueue(ea),ei.enqueue(eo)})}})}function totalLength(en){return en.reduce((en,ei)=>en+ei.length,0)}function concatChunks(en,ei){if(en[0].length===ei)return en.shift();let eo=new Uint8Array(ei),ea=0;for(let es=0;es<ei;es++)eo[es]=en[0][ea++],ea===en[0].length&&(en.shift(),ea=0);return en.length&&ea<en[0].length&&(en[0]=en[0].slice(ea)),eo}function createPacketDecoderStream(en,ei){ea||(ea=new TextDecoder);let eo=[],es=0,ef=-1,ep=!1;return new TransformStream({transform(em,eg){for(eo.push(em);;){if(0===es){if(1>totalLength(eo))break;let en=concatChunks(eo,1);ep=(128&en[0])==128,es=(ef=127&en[0])<126?3:126===ef?1:2}else if(1===es){if(2>totalLength(eo))break;let en=concatChunks(eo,2);ef=new DataView(en.buffer,en.byteOffset,en.length).getUint16(0),es=3}else if(2===es){if(8>totalLength(eo))break;let en=concatChunks(eo,8),ei=new DataView(en.buffer,en.byteOffset,en.length),ea=ei.getUint32(0);if(ea>2097151){eg.enqueue(eu.ERROR_PACKET);break}ef=4294967296*ea+ei.getUint32(4),es=3}else{if(totalLength(eo)<ef)break;let en=concatChunks(eo,ef);eg.enqueue((0,ed.decodePacket)(ep?en:ea.decode(en),ei)),es=0}if(0===ef||ef>en){eg.enqueue(eu.ERROR_PACKET);break}}}})}ei.decodePayload=decodePayload,ei.createPacketEncoderStream=createPacketEncoderStream,ei.createPacketDecoderStream=createPacketDecoderStream,ei.protocol=4},41583:function(en,ei){var eo,ea=function(en){"use strict";Object.defineProperty(en,"__esModule",{value:!0}),en.default=void 0;/**
35   * @license
36   * Copyright 2009 The Closure Library Authors
37   * Copyright 2020 Daniel Wirtz / The long.js Authors.
38   *
39   * Licensed under the Apache License, Version 2.0 (the "License");
40   * you may not use this file except in compliance with the License.
41   * You may obtain a copy of the License at
42   *
43   *     http://www.apache.org/licenses/LICENSE-2.0
44   *
45   * Unless required by applicable law or agreed to in writing, software
46   * distributed under the License is distributed on an "AS IS" BASIS,
47   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48   * See the License for the specific language governing permissions and
49   * limitations under the License.
50   *
51   * SPDX-License-Identifier: Apache-2.0
52   */var ei=null;try{ei=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(en){}function Long(en,ei,eo){this.low=0|en,this.high=0|ei,this.unsigned=!!eo}function isLong(en){return!0===(en&&en.__isLong__)}function ctz32(en){var ei=Math.clz32(en&-en);return en?31-ei:ei}Long.prototype.__isLong__,Object.defineProperty(Long.prototype,"__isLong__",{value:!0}),Long.isLong=isLong;var eo={},ea={};function fromInt(en,ei){var es,ed,eu;return ei?(en>>>=0,(eu=0<=en&&en<256)&&(ed=ea[en]))?ed:(es=fromBits(en,0,!0),eu&&(ea[en]=es),es):(en|=0,(eu=-128<=en&&en<128)&&(ed=eo[en]))?ed:(es=fromBits(en,en<0?-1:0,!1),eu&&(eo[en]=es),es)}function fromNumber(en,ei){if(isNaN(en))return ei?eg:em;if(ei){if(en<0)return eg;if(en>=eu)return eR}else{if(en<=-ef)return eA;if(en+1>=ef)return e_}return en<0?fromNumber(-en,ei).neg():fromBits(en%ed|0,en/ed|0,ei)}function fromBits(en,ei,eo){return new Long(en,ei,eo)}Long.fromInt=fromInt,Long.fromNumber=fromNumber,Long.fromBits=fromBits;var es=Math.pow;function fromString(en,ei,eo){if(0===en.length)throw Error("empty string");if("number"==typeof ei?(eo=ei,ei=!1):ei=!!ei,"NaN"===en||"Infinity"===en||"+Infinity"===en||"-Infinity"===en)return ei?eg:em;if((eo=eo||10)<2||36<eo)throw RangeError("radix");if((ea=en.indexOf("-"))>0)throw Error("interior hyphen");if(0===ea)return fromString(en.substring(1),ei,eo).neg();for(var ea,ed=fromNumber(es(eo,8)),eu=em,ef=0;ef<en.length;ef+=8){var ep=Math.min(8,en.length-ef),ey=parseInt(en.substring(ef,ef+ep),eo);if(ep<8){var eb=fromNumber(es(eo,ep));eu=eu.mul(eb).add(fromNumber(ey))}else eu=(eu=eu.mul(ed)).add(fromNumber(ey))}return eu.unsigned=ei,eu}function fromValue(en,ei){return"number"==typeof en?fromNumber(en,ei):"string"==typeof en?fromString(en,ei):fromBits(en.low,en.high,"boolean"==typeof ei?ei:en.unsigned)}Long.fromString=fromString,Long.fromValue=fromValue;var ed=4294967296,eu=18446744073709552e3,ef=0x7fffffffffffffff,ep=fromInt(16777216),em=fromInt(0);Long.ZERO=em;var eg=fromInt(0,!0);Long.UZERO=eg;var ey=fromInt(1);
vendor: 2,606 bytes, line 52
52Long.ONE=ey;var eb=fromInt(1,!0);Long.UONE=eb;var eS=fromInt(-1);Long.NEG_ONE=eS;var e_=fromBits(-1,2147483647,!1);Long.MAX_VALUE=e_;var eR=fromBits(-1,-1,!0);Long.MAX_UNSIGNED_VALUE=eR;var eA=fromBits(0,-2147483648,!1);Long.MIN_VALUE=eA;var ew=Long.prototype;ew.toInt=function(){return this.unsigned?this.low>>>0:this.low},ew.toNumber=function(){return this.unsigned?(this.high>>>0)*ed+(this.low>>>0):this.high*ed+(this.low>>>0)},ew.toString=function(en){if((en=en||10)<2||36<en)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(!this.eq(eA))return"-"+this.neg().toString(en);var ei=fromNumber(en),eo=this.div(ei),ea=eo.mul(ei).sub(this);return eo.toString(en)+ea.toInt().toString(en)}for(var ed=fromNumber(es(en,6),this.unsigned),eu=this,ef="";;){var ep=eu.div(ed),em=(eu.sub(ep.mul(ed)).toInt()>>>0).toString(en);if((eu=ep).isZero())return em+ef;for(;em.length<6;)em="0"+em;ef=""+em+ef}},ew.getHighBits=function(){return this.high},ew.getHighBitsUnsigned=function(){return this.high>>>0},ew.getLowBits=function(){return this.low},ew.getLowBitsUnsigned=function(){return this.low>>>0},ew.getNumBitsAbs=function(){if(this.isNegative())return this.eq(eA)?64:this.neg().getNumBitsAbs();for(var en=0!=this.high?this.high:this.low,ei=31;ei>0&&(en&1<<ei)==0;ei--);return 0!=this.high?ei+33:ei+1},ew.isZero=function(){return 0===this.high&&0===this.low},ew.eqz=ew.isZero,ew.isNegative=function(){return!this.unsigned&&this.high<0},ew.isPositive=function(){return this.unsigned||this.high>=0},ew.isOdd=function(){return(1&this.low)==1},ew.isEven=function(){return(1&this.low)==0},ew.equals=function(en){return isLong(en)||(en=fromValue(en)),(this.unsigned===en.unsigned||this.high>>>31!=1||en.high>>>31!=1)&&this.high===en.high&&this.low===en.low},ew.eq=ew.equals,ew.notEquals=function(en){return!this.eq(en)},ew.neq=ew.notEquals,ew.ne=ew.notEquals,ew.lessThan=function(en){return 0>this.comp(en)},ew.lt=ew.lessThan,ew.lessThanOrEqual=function(en){return 0>=this.comp(en)},ew.lte=ew.lessThanOrEqual,ew.le=ew.lessThanOrEqual,ew.greaterThan=function(en){return this.comp(en)>0},ew.gt=ew.greaterThan,ew.greaterThanOrEqual=function(en){return this.comp(en)>=0},ew.gte=ew.greaterThanOrEqual,ew.ge=ew.greaterThanOrEqual,ew.compare=function(en){if(isLong(en)||(en=fromValue(en)),this.eq(en))return 0;var ei=this.isNegative(),eo=en.isNegative();return ei&&!eo?-1:!ei&&eo?1:this.unsigned?en.high>>>0>this.high>>>0||en.high===this.high&&en.low>>>0>this.low>>>0?-1:1:this.sub(en).isNegative()?-1:1},ew.comp=ew.compare,ew.negate=function(){return!this.unsigned&&this.eq(eA)?eA:this.not().add(ey)}
52,ew.neg=ew.negate,ew.add=function(en){isLong(en)||(en=fromValue(en));var ei,eo,ea=this.high>>>16,es=65535&this.high,ed=this.low>>>16,eu=65535&this.low,ef=en.high>>>16,ep=65535&en.high,em=en.low>>>16,eg=65535&en.low,ey=0,eb=0;return ei=0+((eo=0+(eu+eg))>>>16),eo&=65535,ei+=ed+em,eb+=ei>>>16,ei&=65535,eb+=es+ep,ey+=eb>>>16,eb&=65535,ey+=ea+ef,fromBits(ei<<16|eo,(ey&=65535)<<16|eb,this.unsigned)},ew.subtract=function(en){return isLong(en)||(en=fromValue(en)),this.add(en.neg())},ew.sub=ew.subtract,ew.multiply=function(en){if(this.isZero())return this;if(isLong(en)||(en=fromValue(en)),ei)return fromBits(ei.mul(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned);if(en.isZero())return this.unsigned?eg:em;if(this.eq(eA))return en.isOdd()?eA:em;if(en.eq(eA))return this.isOdd()?eA:em;if(this.isNegative())return en.isNegative()?this.neg().mul(en.neg()):this.neg().mul(en).neg();if(en.isNegative())return this.mul(en.neg()).neg();if(this.lt(ep)&&en.lt(ep))return fromNumber(this.toNumber()*en.toNumber(),this.unsigned);var eo,ea,es=this.high>>>16,ed=65535&this.high,eu=this.low>>>16,ef=65535&this.low,ey=en.high>>>16,eb=65535&en.high,eS=en.low>>>16,e_=65535&en.low,eR=0,ew=0;return eo=0+((ea=0+ef*e_)>>>16),ea&=65535,eo+=eu*e_,ew+=eo>>>16,eo&=65535,eo+=ef*eS,ew+=eo>>>16,eo&=65535,ew+=ed*e_,eR+=ew>>>16,ew&=65535,ew+=eu*eS,eR+=ew>>>16,ew&=65535,ew+=ef*eb,eR+=ew>>>16,ew&=65535,eR+=es*e_+ed*eS+eu*eb+ef*ey,fromBits(eo<<16|ea,(eR&=65535)<<16|ew,this.unsigned)},ew.mul=ew.multiply,ew.divide=function(en){if(isLong(en)||(en=fromValue(en)),en.isZero())throw Error("division by zero");if(ei){var eo,ea,ed;return this.unsigned||-2147483648!==this.high||-1!==en.low||-1!==en.high?fromBits((this.unsigned?ei.div_u:ei.div_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?eg:em;if(this.unsigned){if(en.unsigned||(en=en.toUnsigned()),en.gt(this))return eg;if(en.gt(this.shru(1)))return eb;ed=eg}else{if(this.eq(eA))return en.eq(ey)||en.eq(eS)?eA:en.eq(eA)?ey:(eo=this.shr(1).div(en).shl(1)).eq(em)?en.isNegative()?ey:eS:(ea=this.sub(en.mul(eo)),ed=eo.add(ea.div(en)));if(en.eq(eA))return this.unsigned?eg:em;if(this.isNegative())return en.isNegative()?this.neg().div(en.neg()):this.neg().div(en).neg();if(en.isNegative())return this.div(en.neg()).neg();ed=em}for(ea=this;ea.gte(en);){for(var eu=Math.ceil(Math.log(eo=Math.max(1,Math.floor(ea.toNumber()/en.toNumber())))/Math.LN2),ef=eu<=48?1:es(2,eu-48),ep=fromNumber(eo),e_=ep.mul(en);e_.isNegative()||e_.gt(ea);)eo-=ef,e_=(ep=fromNumber(eo,this.unsigned)).mul(en);ep.isZero()&&(ep=ey),ed=ed.add(ep),ea=ea.sub(e_)}return ed},ew.div=ew.divide,ew.modulo=function(en){return(isLong(en)||(en=fromValue(en)),ei)?fromBits((this.unsigned?ei.rem_u:ei.rem_s)(this.low,this.high,en.low,en.high),ei.get_high(),this.unsigned):this.sub(this.div(en).mul(en))},ew.mod=ew.modulo,ew.rem=ew.modulo,ew.not=function(){return fromBits(~this.low,~this.high,this.unsigned)},ew.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},ew.clz=ew.countLeadingZeros,ew.countTrailingZeros=function(){return this.low?ctz32(this.low):ctz32(this.high)+32},ew.ctz=ew.countTrailingZeros,ew.and=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low&en.low,this.high&en.high,this.unsigned)},ew.or=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low|en.low,this.high|en.high,this.unsigned)},ew.xor=function(en){return isLong(en)||(en=fromValue(en)),fromBits(this.low^en.low,this.high^en.high,this.unsigned)},ew.shiftLeft=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low<<en,this.high<<en|this.low>>>32-en,this.unsigned):fromBits(0,this.low<<en-32,this.unsigned)},ew.shl=ew.shiftLeft,ew.shiftRight=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low>>>en|this.high<<32-en,this.high>>en,this.unsigned):fromBits(this.high>>en-32,this.high>=0?0:-1,this.unsigned)},ew.shr=ew.shiftRight,ew.shiftRightUnsigned=function(en){return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:en<32?fromBits(this.low>>>en|this.high<<32-en,this.high>>>en,this.unsigned):32===en?fromBits(this.high,0,this.unsigned):fromBits(this.high>>>en-32,0,this.unsigned)},ew.shru=ew.shiftRightUnsigned,ew.shr_u=ew.shiftRightUnsigned,ew.rotateLeft=function(en){var ei;
52return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:32===en?fromBits(this.high,this.low,this.unsigned):en<32?(ei=32-en,fromBits(this.low<<en|this.high>>>ei,this.high<<en|this.low>>>ei,this.unsigned)):(en-=32,ei=32-en,fromBits(this.high<<en|this.low>>>ei,this.low<<en|this.high>>>ei,this.unsigned))},ew.rotl=ew.rotateLeft,ew.rotateRight=function(en){var ei;return(isLong(en)&&(en=en.toInt()),0==(en&=63))?this:32===en?fromBits(this.high,this.low,this.unsigned):en<32?(ei=32-en,fromBits(this.high<<ei|this.low>>>en,this.low<<ei|this.high>>>en,this.unsigned)):(en-=32,ei=32-en,fromBits(this.low<<ei|this.high>>>en,this.high<<ei|this.low>>>en,this.unsigned))},ew.rotr=ew.rotateRight,ew.toSigned=function(){return this.unsigned?fromBits(this.low,this.high,!1):this},ew.toUnsigned=function(){return this.unsigned?this:fromBits(this.low,this.high,!0)},ew.toBytes=function(en){return en?this.toBytesLE():this.toBytesBE()},ew.toBytesLE=function(){var en=this.high,ei=this.low;return[255&ei,ei>>>8&255,ei>>>16&255,ei>>>24,255&en,en>>>8&255,en>>>16&255,en>>>24]},ew.toBytesBE=function(){var en=this.high,ei=this.low;return[en>>>24,en>>>16&255,en>>>8&255,255&en,ei>>>24,ei>>>16&255,ei>>>8&255,255&ei]},Long.fromBytes=function(en,ei,eo){return eo?Long.fromBytesLE(en,ei):Long.fromBytesBE(en,ei)},Long.fromBytesLE=function(en,ei){return new Long(en[0]|en[1]<<8|en[2]<<16|en[3]<<24,en[4]|en[5]<<8|en[6]<<16|en[7]<<24,ei)},Long.fromBytesBE=function(en,ei){return new Long(en[4]<<24|en[5]<<16|en[6]<<8|en[7],en[0]<<24|en[1]<<16|en[2]<<8|en[3],ei)};var eO=Long;return en.default=eO,"default"in en?en.default:en}({});void 0!==(eo=(function(){return ea}).apply(ei,[]))&&(en.exports=eo)},15159:function(en,ei){"use strict";function Backoff(en){en=en||{},this.ms=en.min||100,this.max=en.max||1e4,this.factor=en.factor||2,this.jitter=en.jitter>0&&en.jitter<=1?en.jitter:0,this.attempts=0}Object.defineProperty(ei,"__esModule",{value:!0}),ei.Backoff=void 0,ei.Backoff=Backoff,Backoff.prototype.duration=function(){var en=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var ei=Math.random(),eo=Math.floor(ei*this.jitter*en);en=(1&Math.floor(10*ei))==0?en-eo:en+eo}return 0|Math.min(en,this.max)},Backoff.prototype.reset=function(){this.attempts=0},Backoff.prototype.setMin=function(en){this.ms=en},Backoff.prototype.setMax=function(en){this.max=en},Backoff.prototype.setJitter=function(en){this.jitter=en}},57046:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=ei.connect=ei.io=ei.Socket=ei.Manager=ei.protocol=void 0;let es=eo(3084),ed=eo(84168);Object.defineProperty(ei,"Manager",{enumerable:!0,get:function(){return ed.Manager}});let eu=eo(98312);Object.defineProperty(ei,"Socket",{enumerable:!0,get:function(){return eu.Socket}});let ef=ea(eo(11227)),ep=ef.default("socket.io-client"),em={};function lookup(en,ei){let eo;"object"==typeof en&&(ei=en,en=void 0),ei=ei||{};let ea=es.url(en,ei.path||"/socket.io"),eu=ea.source,ef=ea.id,eg=ea.path,ey=em[ef]&&eg in em[ef].nsps,eb=ei.forceNew||ei["force new connection"]||!1===ei.multiplex||ey;return eb?(ep("ignoring socket cache for %s",eu),eo=new ed.Manager(eu,ei)):(em[ef]||(ep("new io instance for %s",eu),em[ef]=new ed.Manager(eu,ei)),eo=em[ef]),ea.query&&!ei.query&&(ei.query=ea.queryKey),eo.socket(ea.path,ei)}ei.io=lookup,ei.connect=lookup,ei.default=lookup,Object.assign(lookup,{Manager:ed.Manager,Socket:eu.Socket,io:lookup,connect:lookup});var eg=eo(64514);Object.defineProperty(ei,"protocol",{enumerable:!0,get:function(){return eg.protocol}}),en.exports=lookup},84168:function(en,ei,eo){"use strict";var ea=this&&this.__createBinding||(Object.create?function(en,ei,eo,ea){void 0===ea&&(ea=eo),Object.defineProperty(en,ea,{enumerable:!0,get:function(){return ei[eo]}})}:function(en,ei,eo,ea){void 0===ea&&(ea=eo),en[ea]=ei[eo]}),es=this&&this.__setModuleDefault||(Object.create?function(en,ei){Object.defineProperty(en,"default",{enumerable:!0,value:ei})}:function(en,ei){en.default=ei}),ed=this&&this.__importStar||function(en){if(en&&en.__esModule)return en;var ei={};if(null!=en)for(var eo in en)"default"!==eo&&Object.prototype.hasOwnProperty.call(en,eo)&&ea(ei,en,eo);return es(ei,en),ei},eu=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Manager=void 0;let ef=eo(74679),ep=eo(98312),em=ed(eo(64514)),eg=eo(87149),ey=eo(15159),eb=eo(95260),eS=eu(eo(11227)),e_=eS.default("socket.io-client:manager");let Manager=class Manager extends eb.Emitter{constructor(en,ei){var eo;super(),this.nsps={},this.subs=[],en&&"object"==typeof en&&(ei=en,en=void 0),(ei=ei||{}).path=ei.path||"/socket.io",this.opts=ei,ef.installTimerFunctions(this,ei),this.reconnection(!1!==ei.reconnection),this.reconnectionAttempts(ei.reconnectionAttempts||1/0),this.reconnectionDelay(ei.reconnectionDelay||1e3),this.reconnectionDelayMax(ei.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(eo=ei.randomizationFactor)&&void 0!==eo?eo:.5),this.backoff=new ey.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==ei.timeout?2e4:ei.timeout),this._readyState="closed",this.uri=en;let ea=ei.parser||em;this.encoder=new ea.Encoder,this.decoder=new ea.Decoder,this._autoConnect=!1!==ei.autoConnect,this._autoConnect&&this.open()}reconnection(en){return arguments.length?(this._reconnection=!!en,this):this._reconnection}reconnectionAttempts(en){return void 0===en?this._reconnectionAttempts:(this._reconnectionAttempts=en,this)}reconnectionDelay(en){var ei;return void 0===en?this._reconnectionDelay:(this._reconnectionDelay=en,null===(ei=this.backoff)||void 0===ei||ei.setMin(en),this)}randomizationFactor(en){var ei;return void 0===en?this._randomizationFactor:(this._randomizationFactor=en,null===(ei=this.backoff)||void 0===ei||ei.setJitter(en),this)}
52reconnectionDelayMax(en){var ei;return void 0===en?this._reconnectionDelayMax:(this._reconnectionDelayMax=en,null===(ei=this.backoff)||void 0===ei||ei.setMax(en),this)}timeout(en){return arguments.length?(this._timeout=en,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(en){if(e_("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;e_("opening %s",this.uri),this.engine=new ef.Socket(this.uri,this.opts);let ei=this.engine,eo=this;this._readyState="opening",this.skipReconnect=!1;let ea=eg.on(ei,"open",function(){eo.onopen(),en&&en()}),onError=ei=>{e_("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",ei),en?en(ei):this.maybeReconnectOnOpen()},es=eg.on(ei,"error",onError);if(!1!==this._timeout){let en=this._timeout;e_("connect attempt will timeout after %d",en);let eo=this.setTimeoutFn(()=>{e_("connect attempt timed out after %d",en),ea(),onError(Error("timeout")),ei.close()},en);this.opts.autoUnref&&eo.unref(),this.subs.push(()=>{this.clearTimeoutFn(eo)})}return this.subs.push(ea),this.subs.push(es),this}connect(en){return this.open(en)}onopen(){e_("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");let en=this.engine;this.subs.push(eg.on(en,"ping",this.onping.bind(this)),eg.on(en,"data",this.ondata.bind(this)),eg.on(en,"error",this.onerror.bind(this)),eg.on(en,"close",this.onclose.bind(this)),eg.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(en){try{this.decoder.add(en)}catch(en){this.onclose("parse error",en)}}ondecoded(en){ef.nextTick(()=>{this.emitReserved("packet",en)},this.setTimeoutFn)}onerror(en){e_("error",en),this.emitReserved("error",en)}socket(en,ei){let eo=this.nsps[en];return eo?this._autoConnect&&!eo.active&&eo.connect():(eo=new ep.Socket(this,en,ei),this.nsps[en]=eo),eo}_destroy(en){let ei=Object.keys(this.nsps);for(let en of ei){let ei=this.nsps[en];if(ei.active){e_("socket %s is still active, skipping close",en);return}}this._close()}_packet(en){e_("writing packet %j",en);let ei=this.encoder.encode(en);for(let eo=0;eo<ei.length;eo++)this.engine.write(ei[eo],en.options)}cleanup(){e_("cleanup"),this.subs.forEach(en=>en()),this.subs.length=0,this.decoder.destroy()}_close(){e_("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(en,ei){e_("closed due to %s",en),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",en,ei),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let en=this;if(this.backoff.attempts>=this._reconnectionAttempts)e_("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let ei=this.backoff.duration();e_("will wait %dms before reconnect attempt",ei),this._reconnecting=!0;let eo=this.setTimeoutFn(()=>{!en.skipReconnect&&(e_("attempting reconnect"),this.emitReserved("reconnect_attempt",en.backoff.attempts),en.skipReconnect||en.open(ei=>{ei?(e_("reconnect attempt error"),en._reconnecting=!1,en.reconnect(),this.emitReserved("reconnect_error",ei)):(e_("reconnect success"),en.onreconnect())}))},ei);this.opts.autoUnref&&eo.unref(),this.subs.push(()=>{this.clearTimeoutFn(eo)})}}onreconnect(){let en=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",en)}};ei.Manager=Manager},87149:function(en,ei){"use strict";function on(en,ei,eo){return en.on(ei,eo),function(){en.off(ei,eo)}}Object.defineProperty(ei,"__esModule",{value:!0}),ei.on=void 0,ei.on=on},98312:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Socket=void 0;let es=eo(64514),ed=eo(87149),eu=eo(95260),ef=ea(eo(11227)),ep=ef.default("socket.io-client:socket"),em=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});let Socket=class Socket extends eu.Emitter{constructor(en,ei,eo){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=en,this.nsp=ei,eo&&eo.auth&&(this.auth=eo.auth),this._opts=Object.assign({},eo),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let en=this.io;this.subs=[ed.on(en,"open",this.onopen.bind(this)),ed.on(en,"packet",this.onpacket.b
52ind(this)),ed.on(en,"error",this.onerror.bind(this)),ed.on(en,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...en){return en.unshift("message"),this.emit.apply(this,en),this}emit(en,...ei){if(em.hasOwnProperty(en))throw Error('"'+en.toString()+'" is a reserved event name');if(ei.unshift(en),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(ei),this;let eo={type:es.PacketType.EVENT,data:ei};if(eo.options={},eo.options.compress=!1!==this.flags.compress,"function"==typeof ei[ei.length-1]){let en=this.ids++;ep("emitting packet with ack id %d",en);let ea=ei.pop();this._registerAckCallback(en,ea),eo.id=en}let ea=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable,ed=this.flags.volatile&&(!ea||!this.connected);return ed?ep("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(eo),this.packet(eo)):this.sendBuffer.push(eo),this.flags={},this}_registerAckCallback(en,ei){var eo;let ea=null!==(eo=this.flags.timeout)&&void 0!==eo?eo:this._opts.ackTimeout;if(void 0===ea){this.acks[en]=ei;return}let es=this.io.setTimeoutFn(()=>{delete this.acks[en];for(let ei=0;ei<this.sendBuffer.length;ei++)this.sendBuffer[ei].id===en&&(ep("removing packet with ack id %d from the buffer",en),this.sendBuffer.splice(ei,1));ep("event with ack id %d has timed out after %d ms",en,ea),ei.call(this,Error("operation has timed out"))},ea),fn=(...en)=>{this.io.clearTimeoutFn(es),ei.apply(this,en)};fn.withError=!0,this.acks[en]=fn}emitWithAck(en,...ei){return new Promise((eo,ea)=>{let fn=(en,ei)=>en?ea(en):eo(ei);fn.withError=!0,ei.push(fn),this.emit(en,...ei)})}_addToQueue(en){let ei;"function"==typeof en[en.length-1]&&(ei=en.pop());let eo={id:this._queueSeq++,tryCount:0,pending:!1,args:en,flags:Object.assign({fromQueue:!0},this.flags)};en.push((en,...ea)=>{if(eo!==this._queue[0])return;let es=null!==en;return es?eo.tryCount>this._opts.retries&&(ep("packet [%d] is discarded after %d tries",eo.id,eo.tryCount),this._queue.shift(),ei&&ei(en)):(ep("packet [%d] was successfully sent",eo.id),this._queue.shift(),ei&&ei(null,...ea)),eo.pending=!1,this._drainQueue()}),this._queue.push(eo),this._drainQueue()}_drainQueue(en=!1){if(ep("draining queue"),!this.connected||0===this._queue.length)return;let ei=this._queue[0];if(ei.pending&&!en){ep("packet [%d] has already been sent and is waiting for an ack",ei.id);return}ei.pending=!0,ei.tryCount++,ep("sending packet [%d] (try n\xb0%d)",ei.id,ei.tryCount),this.flags=ei.flags,this.emit.apply(this,ei.args)}packet(en){en.nsp=this.nsp,this.io._packet(en)}onopen(){ep("transport is open - connecting"),"function"==typeof this.auth?this.auth(en=>{this._sendConnectPacket(en)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(en){this.packet({type:es.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},en):en})}onerror(en){this.connected||this.emitReserved("connect_error",en)}onclose(en,ei){ep("close (%s)",en),this.connected=!1,delete this.id,this.emitReserved("disconnect",en,ei),this._clearAcks()}
52_clearAcks(){Object.keys(this.acks).forEach(en=>{let ei=this.sendBuffer.some(ei=>String(ei.id)===en);if(!ei){let ei=this.acks[en];delete this.acks[en],ei.withError&&ei.call(this,Error("socket has been disconnected"))}})}onpacket(en){let ei=en.nsp===this.nsp;if(ei)switch(en.type){case es.PacketType.CONNECT:en.data&&en.data.sid?this.onconnect(en.data.sid,en.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case es.PacketType.EVENT:case es.PacketType.BINARY_EVENT:this.onevent(en);break;case es.PacketType.ACK:case es.PacketType.BINARY_ACK:this.onack(en);break;case es.PacketType.DISCONNECT:this.ondisconnect();break;case es.PacketType.CONNECT_ERROR:this.destroy();let eo=Error(en.data.message);eo.data=en.data.data,this.emitReserved("connect_error",eo)}}onevent(en){let ei=en.data||[];ep("emitting event %j",ei),null!=en.id&&(ep("attaching ack callback to event"),ei.push(this.ack(en.id))),this.connected?this.emitEvent(ei):this.receiveBuffer.push(Object.freeze(ei))}emitEvent(en){if(this._anyListeners&&this._anyListeners.length){let ei=this._anyListeners.slice();for(let eo of ei)eo.apply(this,en)}super.emit.apply(this,en),this._pid&&en.length&&"string"==typeof en[en.length-1]&&(this._lastOffset=en[en.length-1])}ack(en){let ei=this,eo=!1;return function(...ea){eo||(eo=!0,ep("sending ack %j",ea),ei.packet({type:es.PacketType.ACK,id:en,data:ea}))}}onack(en){let ei=this.acks[en.id];if("function"!=typeof ei){ep("bad ack %s",en.id);return}delete this.acks[en.id],ep("calling ack %s with %j",en.id,en.data),ei.withError&&en.data.unshift(null),ei.apply(this,en.data)}onconnect(en,ei){ep("socket connected with id %s",en),this.id=en,this.recovered=ei&&this._pid===ei,this._pid=ei,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(en=>this.emitEvent(en)),this.receiveBuffer=[],this.sendBuffer.forEach(en=>{this.notifyOutgoingListeners(en),this.packet(en)}),this.sendBuffer=[]}ondisconnect(){ep("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(en=>en()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(ep("performing disconnect (%s)",this.nsp),this.packet({type:es.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(en){return this.flags.compress=en,this}get volatile(){return this.flags.volatile=!0,this}timeout(en){return this.flags.timeout=en,this}onAny(en){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(en),this}prependAny(en){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(en),this}offAny(en){if(!this._anyListeners)return this;if(en){let ei=this._anyListeners;for(let eo=0;eo<ei.length;eo++)if(en===ei[eo]){ei.splice(eo,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(en){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(en),this}prependAnyOutgoing(en){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(en),this}offAnyOutgoing(en){if(!this._anyOutgoingListeners)return this;if(en){let ei=this._anyOutgoingListeners;for(let eo=0;eo<ei.length;eo++)if(en===ei[eo]){ei.splice(eo,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(en){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let ei=this._anyOutgoingListeners.slice();for(let eo of ei)eo.apply(this,en.data)}}};ei.Socket=Socket},3084:function(en,ei,eo){"use strict";var ea=this&&this.__importDefault||function(en){return en&&en.__esModule?en:{default:en}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.url=void 0;let es=eo(74679),ed=ea(eo(11227)),eu=ed.default("socket.io-client:url");function url(en,ei="",eo){let ea=en;
52eo=eo||"undefined"!=typeof location&&location,null==en&&(en=eo.protocol+"//"+eo.host),"string"==typeof en&&("/"===en.charAt(0)&&(en="/"===en.charAt(1)?eo.protocol+en:eo.host+en),/^(https?|wss?):\/\//.test(en)||(eu("protocol-less url %s",en),en=void 0!==eo?eo.protocol+"//"+en:"https://"+en),eu("parse %s",en),ea=es.parse(en)),!ea.port&&(/^(http|ws)$/.test(ea.protocol)?ea.port="80":/^(http|ws)s$/.test(ea.protocol)&&(ea.port="443")),ea.path=ea.path||"/";let ed=-1!==ea.host.indexOf(":"),ef=ed?"["+ea.host+"]":ea.host;return ea.id=ea.protocol+"://"+ef+":"+ea.port+ei,ea.href=ea.protocol+"://"+ef+(eo&&eo.port===ea.port?"":":"+ea.port),ea}ei.url=url},94880:function(en,ei,eo){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.reconstructPacket=ei.deconstructPacket=void 0;let ea=eo(90665);function deconstructPacket(en){let ei=[],eo=en.data,ea=en;return ea.data=_deconstructPacket(eo,ei),ea.attachments=ei.length,{packet:ea,buffers:ei}}function _deconstructPacket(en,ei){if(!en)return en;if((0,ea.isBinary)(en)){let eo={_placeholder:!0,num:ei.length};return ei.push(en),eo}if(Array.isArray(en)){let eo=Array(en.length);for(let ea=0;ea<en.length;ea++)eo[ea]=_deconstructPacket(en[ea],ei);return eo}if("object"==typeof en&&!(en instanceof Date)){let eo={};for(let ea in en)Object.prototype.hasOwnProperty.call(en,ea)&&(eo[ea]=_deconstructPacket(en[ea],ei));return eo}return en}function reconstructPacket(en,ei){return en.data=_reconstructPacket(en.data,ei),delete en.attachments,en}function _reconstructPacket(en,ei){if(!en)return en;if(en&&!0===en._placeholder){let eo="number"==typeof en.num&&en.num>=0&&en.num<ei.length;if(eo)return ei[en.num];throw Error("illegal attachments")}if(Array.isArray(en))for(let eo=0;eo<en.length;eo++)en[eo]=_reconstructPacket(en[eo],ei);else if("object"==typeof en)for(let eo in en)Object.prototype.hasOwnProperty.call(en,eo)&&(en[eo]=_reconstructPacket(en[eo],ei));return en}ei.deconstructPacket=deconstructPacket,ei.reconstructPacket=reconstructPacket},64514:function(en,ei,eo){"use strict";var ea;Object.defineProperty(ei,"__esModule",{value:!0}),ei.Decoder=ei.Encoder=ei.PacketType=ei.protocol=void 0;let es=eo(95260),ed=eo(94880),eu=eo(90665),ef=eo(11227),ep=(0,ef.default)("socket.io-parser"),em=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];ei.protocol=5,function(en){en[en.CONNECT=0]="CONNECT",en[en.DISCONNECT=1]="DISCONNECT",en[en.EVENT=2]="EVENT",en[en.ACK=3]="ACK",en[en.CONNECT_ERROR=4]="CONNECT_ERROR",en[en.BINARY_EVENT=5]="BINARY_EVENT",en[en.BINARY_ACK=6]="BINARY_ACK"}(ea=ei.PacketType||(ei.PacketType={}));let Encoder=class Encoder{constructor(en){this.replacer=en}encode(en){return(ep("encoding packet %j",en),(en.type===ea.EVENT||en.type===ea.ACK)&&(0,eu.hasBinary)(en))?this.encodeAsBinary({type:en.type===ea.EVENT?ea.BINARY_EVENT:ea.BINARY_ACK,nsp:en.nsp,data:en.data,id:en.id}):[this.encodeAsString(en)]}encodeAsString(en){let ei=""+en.type;return(en.type===ea.BINARY_EVENT||en.type===ea.BINARY_ACK)&&(ei+=en.attachments+"-"),en.nsp&&"/"!==en.nsp&&(ei+=en.nsp+","),null!=en.id&&(ei+=en.id),null!=en.data&&(ei+=JSON.stringify(en.data,this.replacer)),ep("encoded %j as %s",en,ei),ei}encodeAsBinary(en){let ei=(0,ed.deconstructPacket)(en),eo=this.encodeAsString(ei.packet),ea=ei.buffers;return ea.unshift(eo),ea}};function isObject(en){return"[object Object]"===Object.prototype.toString.call(en)}ei.Encoder=Encoder;let Decoder=class Decoder extends es.Emitter{constructor(en){super(),this.reviver=en}add(en){let ei;if("string"==typeof en){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");ei=this.decodeString(en);let eo=ei.type===ea.BINARY_EVENT;eo||ei.type===ea.BINARY_ACK?(ei.type=eo?ea.EVENT:ea.ACK,this.reconstructor=new BinaryReconstructor(ei),0===ei.attachments&&super.emitReserved("decoded",ei)):super.emitReserved("decoded",ei)}else if((0,eu.isBinary)(en)||en.base64){if(this.reconstructor)(ei=this.reconstructor.takeBinaryData(en))&&(this.reconstructor=null,super.emitReserved("decoded",ei));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+en)}decodeString(en){let ei=0,eo={type:Number(en.charAt(0))};if(void 0===ea[eo.type])throw Error("unknown packet type "+eo.type);if(eo.type===ea.BINARY_EVENT||eo.type===ea.BINARY_ACK){let ea=ei+1;for(;"-"!==en.charAt(++ei)&&ei!=en.length;);let es=en.substring(ea,ei);if(es!=Number(es)||"-"!==en.charAt(ei))throw Error("Illegal attachments");eo.attachments=Number(es)}if("/"===en.charAt(ei+1)){let ea=ei+1;for(;++ei;){let eo=en.charAt(ei);if(","===eo||ei===en.length)break}eo.nsp=en.substring(ea,ei)}else eo.nsp="/";let es=en.charAt(ei+1);if(""!==es&&Number(es)==es){let ea=ei+1;for(;++ei;){let eo=en.charAt(ei);if(null==eo||Number(eo)!=eo){--ei;break}if(ei===en.length)break}eo.id=Number(en.substring(ea,ei+1))}if(en.charAt(++ei)){let ea=this.tryParse(en.substr(ei));if(Decoder.isPayloadValid(eo.type,ea))eo.data=ea;else throw Error("invalid payload")}return ep("decoded %s as %j",en,eo),eo}tryParse(en){try{return JSON.parse(en,this.reviver)}catch(en){return!1}}static isPayloadValid(en,ei){switch(en){case ea.CONNECT:return isObject(ei);case ea.DISCONNECT:return void 0===ei;case ea.CONNECT_ERROR:return"string"==typeof ei||isObject(ei);
52case ea.EVENT:case ea.BINARY_EVENT:return Array.isArray(ei)&&("number"==typeof ei[0]||"string"==typeof ei[0]&&-1===em.indexOf(ei[0]));case ea.ACK:case ea.BINARY_ACK:return Array.isArray(ei)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}};ei.Decoder=Decoder;let BinaryReconstructor=class BinaryReconstructor{constructor(en){this.packet=en,this.buffers=[],this.reconPack=en}takeBinaryData(en){if(this.buffers.push(en),this.buffers.length===this.reconPack.attachments){let en=(0,ed.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),en}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},90665:function(en,ei){"use strict";Object.defineProperty(ei,"__esModule",{value:!0}),ei.hasBinary=ei.isBinary=void 0;let eo="function"==typeof ArrayBuffer,isView=en=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(en):en.buffer instanceof ArrayBuffer,ea=Object.prototype.toString,es="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===ea.call(Blob),ed="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===ea.call(File);function isBinary(en){return eo&&(en instanceof ArrayBuffer||isView(en))||es&&en instanceof Blob||ed&&en instanceof File}function hasBinary(en,ei){if(!en||"object"!=typeof en)return!1;if(Array.isArray(en)){for(let ei=0,eo=en.length;ei<eo;ei++)if(hasBinary(en[ei]))return!0;return!1}if(isBinary(en))return!0;if(en.toJSON&&"function"==typeof en.toJSON&&1==arguments.length)return hasBinary(en.toJSON(),!0);for(let ei in en)if(Object.prototype.hasOwnProperty.call(en,ei)&&hasBinary(en[ei]))return!0;return!1}ei.isBinary=isBinary,ei.hasBinary=hasBinary},12854:function(en,ei,eo){"use strict";eo.d(ei,{Dx:function(){return e5},VY:function(){return e6},aV:function(){return e3},dk:function(){return e8},fC:function(){return e0},h_:function(){return e2},x8:function(){return e4},xz:function(){return e1}});var ea=eo(87462),es=eo(67294),ed=eo(36206),eu=eo(28771),ef=eo(25360),ep=eo(91276),em=eo(77342),eg=eo(46063),ey=eo(95420),eb=eo(42651),eS=eo(29115),e_=eo(75320),eR=eo(27552),eA=eo(42026),ew=eo(23541),eO=eo(88426);let eE="Dialog",[eP,eC]=(0,ef.b)(eE),[eT,eB]=eP(eE),$5d3850c4d0b4e6c7$export$3ddf2d174ce01153=en=>{let{__scopeDialog:ei,children:eo,open:ea,defaultOpen:ed,onOpenChange:eu,modal:ef=!0}=en,eg=(0,es.useRef)(null),ey=(0,es.useRef)(null),[eb=!1,eS]=(0,em.T)({prop:ea,defaultProp:ed,onChange:eu});return(0,es.createElement)(eT,{scope:ei,triggerRef:eg,contentRef:ey,contentId:(0,ep.M)(),titleId:(0,ep.M)(),descriptionId:(0,ep.M)(),open:eb,onOpenChange:eS,onOpenToggle:(0,es.useCallback)(()=>eS(en=>!en),[eS]),modal:ef},eo)},eN="DialogTrigger",eI=(0,es.forwardRef)((en,ei)=>{let{__scopeDialog:eo,...ef}=en,ep=eB(eN,eo),em=(0,eu.e)(ei,ep.triggerRef);return(0,es.createElement)(e_.WV.button,(0,ea.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":ep.open,"aria-controls":ep.contentId,"data-state":$5d3850c4d0b4e6c7$var$getState(ep.open)},ef,{ref:em,onClick:(0,ed.M)(en.onClick,ep.onOpenToggle)}))}),ex="DialogPortal",[eM,eD]=eP(ex,{forceMount:void 0}),$5d3850c4d0b4e6c7$export$dad7c95542bacce0=en=>{let{__scopeDialog:ei,forceMount:eo,children:ea,container:ed}=en,eu=eB(ex,ei);return(0,es.createElement)(eM,{scope:ei,forceMount:eo},es.Children.map(ea,en=>(0,es.createElement)(eS.z,{present:eo||eu.open},(0,es.createElement)(eb.h,{asChild:!0,container:ed},en))))},eU="DialogOverlay",eL=(0,es.forwardRef)((en,ei)=>{let eo=eD(eU,en.__scopeDialog),{forceMount:ed=eo.forceMount,...eu}
52=en,ef=eB(eU,en.__scopeDialog);return ef.modal?(0,es.createElement)(eS.z,{present:ed||ef.open},(0,es.createElement)(eJ,(0,ea.Z)({},eu,{ref:ei}))):null}),eJ=(0,es.forwardRef)((en,ei)=>{let{__scopeDialog:eo,...ed}=en,eu=eB(eU,eo);return(0,es.createElement)(eA.Z,{as:eO.g7,allowPinchZoom:!0,shards:[eu.contentRef]},(0,es.createElement)(e_.WV.div,(0,ea.Z)({"data-state":$5d3850c4d0b4e6c7$var$getState(eu.open)},ed,{ref:ei,style:{pointerEvents:"auto",...ed.style}})))}),eF="DialogContent",eH=(0,es.forwardRef)((en,ei)=>{let eo=eD(eF,en.__scopeDialog),{forceMount:ed=eo.forceMount,...eu}=en,ef=eB(eF,en.__scopeDialog);return(0,es.createElement)(eS.z,{present:ed||ef.open},ef.modal?(0,es.createElement)(eq,(0,ea.Z)({},eu,{ref:ei})):(0,es.createElement)(ej,(0,ea.Z)({},eu,{ref:ei})))}),eq=(0,es.forwardRef)((en,ei)=>{let eo=eB(eF,en.__scopeDialog),ef=(0,es.useRef)(null),ep=(0,eu.e)(ei,eo.contentRef,ef);return(0,es.useEffect)(()=>{let en=ef.current;if(en)return(0,ew.Ry)(en)},[]),(0,es.createElement)(eV,(0,ea.Z)({},en,{ref:ep,trapFocus:eo.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,ed.M)(en.onCloseAutoFocus,en=>{var ei;en.preventDefault(),null===(ei=eo.triggerRef.current)||void 0===ei||ei.focus()}),onPointerDownOutside:(0,ed.M)(en.onPointerDownOutside,en=>{let ei=en.detail.originalEvent,eo=0===ei.button&&!0===ei.ctrlKey,ea=2===ei.button||eo;ea&&en.preventDefault()}),onFocusOutside:(0,ed.M)(en.onFocusOutside,en=>en.preventDefault())}))}),ej=(0,es.forwardRef)((en,ei)=>{let eo=eB(eF,en.__scopeDialog),ed=(0,es.useRef)(!1),eu=(0,es.useRef)(!1);return(0,es.createElement)(eV,(0,ea.Z)({},en,{ref:ei,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:ei=>{var ea,es;null===(ea=en.onCloseAutoFocus)||void 0===ea||ea.call(en,ei),ei.defaultPrevented||(ed.current||null===(es=eo.triggerRef.current)||void 0===es||es.focus(),ei.preventDefault()),ed.current=!1,eu.current=!1},onInteractOutside:ei=>{var ea,es;null===(ea=en.onInteractOutside)||void 0===ea||ea.call(en,ei),ei.defaultPrevented||(ed.current=!0,"pointerdown"!==ei.detail.originalEvent.type||(eu.current=!0));let ef=ei.target,ep=null===(es=eo.triggerRef.current)||void 0===es?void 0:es.contains(ef);ep&&ei.preventDefault(),"focusin"===ei.detail.originalEvent.type&&eu.current&&ei.preventDefault()}}))}),eV=(0,es.forwardRef)((en,ei)=>{let{__scopeDialog:eo,trapFocus:ed,onOpenAutoFocus:ef,onCloseAutoFocus:ep,...em}=en,eb=eB(eF,eo),eS=(0,es.useRef)(null),e_=(0,eu.e)(ei,eS);return(0,eR.EW)(),(0,es.createElement)(es.Fragment,null,(0,es.createElement)(ey.M,{asChild:!0,loop:!0,trapped:ed,onMountAutoFocus:ef,onUnmountAutoFocus:ep},(0,es.createElement)(eg.XB,(0,ea.Z)({role:"dialog",id:eb.contentId,"aria-describedby":eb.descriptionId,"aria-labelledby":eb.titleId,"data-state":$5d3850c4d0b4e6c7$var$getState(eb.open)},em,{ref:e_,onDismiss:()=>eb.onOpenChange(!1)}))),!1)}),eW="DialogTitle",eG=(0,es.forwardRef)((en,ei)=>{let{__scopeDialog:eo,...ed}=en,eu=eB(eW,eo);return(0,es.createElement)(e_.WV.h2,(0,ea.Z)({id:eu.titleId},ed,{ref:ei}))}),eQ="DialogDescription",eK=(0,es.forwardRef)((en,ei)=>{let{__scopeDialog:eo,...ed}=en,eu=eB(eQ,eo);return(0,es.createElement)(e_.WV.p,(0,ea.Z)({id:eu.descriptionId},ed,{ref:ei}))}),eZ="DialogClose",ez=(0,es.forwardRef)((en,ei)=>{let{__scopeDialog:eo,...eu}=en,ef=eB(eZ,eo);return(0,es.createElement)(e_.WV.button,(0,ea.Z)({type:"button"},eu,{ref:ei,onClick:(0,ed.M)(en.onClick,()=>ef.onOpenChange(!1))}))});function $5d3850c4d0b4e6c7$var$getState(en){return en?"open":"closed"}let eY="DialogTitleWarning",[e$,eX]=(0,ef.k)(eY,{contentName:eF,titleName:eW,docsSlug:"dialog"}),e0=$5d3850c4d0b4e6c7$export$3ddf2d174ce01153,e1=eI,e2=$5d3850c4d0b4e6c7$export$dad7c95542bacce0,e3=eL,e6=eH,e5=eG,e8=eK,e4=ez},27552:function(en,ei,eo){"use strict";eo.d(ei,{EW:function(){return $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c}});var ea=eo(67294);let es=0;function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c(){(0,ea.useEffect)(()=>{var en,ei;let eo=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(en=eo[0])&&void 0!==en?en:$3db38b7d1fb3fe6a$var$createFocusGuard()),document.body.insertAdjacentElement("beforeend",null!==(ei=eo[1])&&void 0!==ei?ei:$3db38b7d1fb3fe6a$var$createFocusGuard()),es++,()=>{1===es&&document.querySelectorAll("[data-radix-focus-guard]").forEach(en=>en.remove()),es--}},[])}function $3db38b7d1fb3fe6a$var$createFocusGuard(){let en=document.createElement("span");return en.setAttribute("data-radix-focus-guard",""),en.tabIndex=0,en.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",en}},95420:function(en,ei,eo){"use strict";eo.d(ei,{M:function(){return ey}});var ea=eo(87462),es=eo(67294),ed=eo(28771),eu=eo(75320),ef=eo(79698);let ep="focusScope.autoFocusOnMount",em="focusScope.autoFocusOnUnmount",eg={bubbles:!1,cancelable:!0},ey=(0,es.forwardRef)((en,ei)=>{let{loop:eo=!1,trapped:ey=!1,onMountAutoFocus:eS,onUnmountAutoFocus:e_,...eR}=en,[eA,ew]=(0,es.useState)(null),eO=(0,ef.W)(eS),eE=(0,ef.W)(e_),eP=(0,es.useRef)(null),eC=(0,ed.e)(ei,en=>ew(en)),eT=(0,es.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,es.useEffect)(()=>
52{if(ey){function handleFocusIn(en){if(eT.paused||!eA)return;let ei=en.target;eA.contains(ei)?eP.current=ei:$d3863c46a17e8a28$var$focus(eP.current,{select:!0})}function handleFocusOut(en){if(eT.paused||!eA)return;let ei=en.relatedTarget;null===ei||eA.contains(ei)||$d3863c46a17e8a28$var$focus(eP.current,{select:!0})}function handleMutations(en){let ei=document.activeElement;if(ei===document.body)for(let ei of en)ei.removedNodes.length>0&&$d3863c46a17e8a28$var$focus(eA)}document.addEventListener("focusin",handleFocusIn),document.addEventListener("focusout",handleFocusOut);let en=new MutationObserver(handleMutations);return eA&&en.observe(eA,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",handleFocusIn),document.removeEventListener("focusout",handleFocusOut),en.disconnect()}}},[ey,eA,eT.paused]),(0,es.useEffect)(()=>{if(eA){eb.add(eT);let en=document.activeElement,ei=eA.contains(en);if(!ei){let ei=new CustomEvent(ep,eg);eA.addEventListener(ep,eO),eA.dispatchEvent(ei),ei.defaultPrevented||($d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(eA)),{select:!0}),document.activeElement===en&&$d3863c46a17e8a28$var$focus(eA))}return()=>{eA.removeEventListener(ep,eO),setTimeout(()=>{let ei=new CustomEvent(em,eg);eA.addEventListener(em,eE),eA.dispatchEvent(ei),ei.defaultPrevented||$d3863c46a17e8a28$var$focus(null!=en?en:document.body,{select:!0}),eA.removeEventListener(em,eE),eb.remove(eT)},0)}}},[eA,eO,eE,eT]);let eB=(0,es.useCallback)(en=>{if(!eo&&!ey||eT.paused)return;let ei="Tab"===en.key&&!en.altKey&&!en.ctrlKey&&!en.metaKey,ea=document.activeElement;if(ei&&ea){let ei=en.currentTarget,[es,ed]=$d3863c46a17e8a28$var$getTabbableEdges(ei),eu=es&&ed;eu?en.shiftKey||ea!==ed?en.shiftKey&&ea===es&&(en.preventDefault(),eo&&$d3863c46a17e8a28$var$focus(ed,{select:!0})):(en.preventDefault(),eo&&$d3863c46a17e8a28$var$focus(es,{select:!0})):ea===ei&&en.preventDefault()}},[eo,ey,eT.paused]);return(0,es.createElement)(eu.WV.div,(0,ea.Z)({tabIndex:-1},eR,{ref:eC,onKeyDown:eB}))});function $d3863c46a17e8a28$var$focusFirst(en,{select:ei=!1}={}){let eo=document.activeElement;for(let ea of en)if($d3863c46a17e8a28$var$focus(ea,{select:ei}),document.activeElement!==eo)return}function $d3863c46a17e8a28$var$getTabbableEdges(en){let ei=$d3863c46a17e8a28$var$getTabbableCandidates(en),eo=$d3863c46a17e8a28$var$findVisible(ei,en),ea=$d3863c46a17e8a28$var$findVisible(ei.reverse(),en);return[eo,ea]}function $d3863c46a17e8a28$var$getTabbableCandidates(en){let ei=[],eo=document.createTreeWalker(en,NodeFilter.SHOW_ELEMENT,{acceptNode:en=>{let ei="INPUT"===en.tagName&&"hidden"===en.type;return en.disabled||en.hidden||ei?NodeFilter.FILTER_SKIP:en.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;eo.nextNode();)ei.push(eo.currentNode);return ei}function $d3863c46a17e8a28$var$findVisible(en,ei){for(let eo of en)if(!$d3863c46a17e8a28$var$isHidden(eo,{upTo:ei}))return eo}function $d3863c46a17e8a28$var$isHidden(en,{upTo:ei}){if("hidden"===getComputedStyle(en).visibility)return!0;for(;en&&(void 0===ei||en!==ei);){if("none"===getComputedStyle(en).display)return!0;en=en.parentElement}return!1}function $d3863c46a17e8a28$var$isSelectableInput(en){return en instanceof HTMLInputElement&&"select"in en}function $d3863c46a17e8a28$var$focus(en,{select:ei=!1}={}){if(en&&en.focus){let eo=document.activeElement;en.focus({preventScroll:!0}),en!==eo&&$d3863c46a17e8a28$var$isSelectableInput(en)&&ei&&en.select()}}let eb=$d3863c46a17e8a28$var$createFocusScopesStack();function $d3863c46a17e8a28$var$createFocusScopesStack(){let en=[];return{add(ei){let eo=en[0];ei!==eo&&(null==eo||eo.pause()),(en=$d3863c46a17e8a28$var$arrayRemove(en,ei)).unshift(ei)},remove(ei){var eo;null===(eo=(en=$d3863c46a17e8a28$var$arrayRemove(en,ei))[0])||void 0===eo||eo.resume()}}}function $d3863c46a17e8a28$var$arrayRemove(en,ei){let eo=[...en],ea=eo.indexOf(ei);return -1!==ea&&eo.splice(ea,1),eo}function $d3863c46a17e8a28$var$removeLinks(en){return en.filter(en=>"A"!==en.tagName)}},91276:function(en,ei,eo){"use strict";
52eo.d(ei,{M:function(){return $1746a345f3d73bb7$export$f680877a34711e37}});var ea,es=eo(67294),ed=eo(9981);let eu=(ea||(ea=eo.t(es,2)))["useId".toString()]||(()=>void 0),ef=0;function $1746a345f3d73bb7$export$f680877a34711e37(en){let[ei,eo]=es.useState(eu());return(0,ed.b)(()=>{en||eo(en=>null!=en?en:String(ef++))},[en]),en||(ei?`radix-${ei}`:"")}},49102:function(en,ei,eo){"use strict";eo.d(ei,{f:function(){return ef}});var ea=eo(87462),es=eo(67294),ed=eo(75320);let eu=(0,es.forwardRef)((en,ei)=>(0,es.createElement)(ed.WV.label,(0,ea.Z)({},en,{ref:ei,onMouseDown:ei=>{var eo;null===(eo=en.onMouseDown)||void 0===eo||eo.call(en,ei),!ei.defaultPrevented&&ei.detail>1&&ei.preventDefault()}}))),ef=eu},32718:function(en,ei,eo){"use strict";eo.d(ei,{VY:function(){return rg},ZA:function(){return rv},JO:function(){return rp},ck:function(){return r_},wU:function(){return rA},eT:function(){return rR},__:function(){return rS},h_:function(){return rm},fC:function(){return rc},$G:function(){return rk},u_:function(){return rw},Z0:function(){return rO},xz:function(){return ru},B4:function(){return rf},l_:function(){return ry}});var ea=eo(87462),es=eo(67294),ed=eo(73935);function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(en,[ei,eo]){return Math.min(eo,Math.max(ei,en))}var eu=eo(36206),ef=eo(65936),ep=eo(28771),em=eo(25360);let eg=(0,es.createContext)(void 0);function $f631663db3294ace$export$b39126d51d94e6f3(en){let ei=(0,es.useContext)(eg);return en||ei||"ltr"}var ey=eo(46063),eb=eo(27552),eS=eo(95420),e_=eo(91276);let eR=["top","right","bottom","left"],eA=Math.min,ew=Math.max,eO=Math.round,eE=Math.floor,createCoords=en=>({x:en,y:en}),eP={left:"right",right:"left",bottom:"top",top:"bottom"},eC={start:"end",end:"start"};function clamp(en,ei,eo){return ew(en,eA(ei,eo))}function floating_ui_utils_evaluate(en,ei){return"function"==typeof en?en(ei):en}function floating_ui_utils_getSide(en){return en.split("-")[0]}function floating_ui_utils_getAlignment(en){return en.split("-")[1]}function getOppositeAxis(en){return"x"===en?"y":"x"}function getAxisLength(en){return"y"===en?"height":"width"}function floating_ui_utils_getSideAxis(en){return["top","bottom"].includes(floating_ui_utils_getSide(en))?"y":"x"}function getAlignmentAxis(en){return getOppositeAxis(floating_ui_utils_getSideAxis(en))}function floating_ui_utils_getAlignmentSides(en,ei,eo){void 0===eo&&(eo=!1);let ea=floating_ui_utils_getAlignment(en),es=getAlignmentAxis(en),ed=getAxisLength(es),eu="x"===es?ea===(eo?"end":"start")?"right":"left":"start"===ea?"bottom":"top";return ei.reference[ed]>ei.floating[ed]&&(eu=getOppositePlacement(eu)),[eu,getOppositePlacement(eu)]}function getExpandedPlacements(en){let ei=getOppositePlacement(en);return[floating_ui_utils_getOppositeAlignmentPlacement(en),ei,floating_ui_utils_getOppositeAlignmentPlacement(ei)]}function floating_ui_utils_getOppositeAlignmentPlacement(en){return en.replace(/start|end/g,en=>eC[en])}function getSideList(en,ei,eo){let ea=["left","right"],es=["right","left"],ed=["top","bottom"],eu=["bottom","top"];switch(en){case"top":case"bottom":if(eo)return ei?es:ea;return ei?ea:es;case"left":case"right":return ei?ed:eu;default:return[]}}function getOppositeAxisPlacements(en,ei,eo,ea){let es=floating_ui_utils_getAlignment(en),ed=getSideList(floating_ui_utils_getSide(en),"start"===eo,ea);return es&&(ed=ed.map(en=>en+"-"+es),ei&&(ed=ed.concat(ed.map(floating_ui_utils_getOppositeAlignmentPlacement)))),ed}function getOppositePlacement(en){return en.replace(/left|right|bottom|top/g,en=>eP[en])}function expandPaddingObject(en){return{top:0,right:0,bottom:0,left:0,...en}}function floating_ui_utils_getPaddingObject(en){return"number"!=typeof en?expandPaddingObject(en):{top:en,right:en,bottom:en,left:en}}function floating_ui_utils_rectToClientRect(en){return{...en,top:en.y,left:en.x,right:en.x+en.width,bottom:en.y+en.height}}function computeCoordsFromPlacement(en,ei,eo){let ea,{reference:es,floating:ed}
vendor: 5,197 bytes, line 52
52=en,eu=floating_ui_utils_getSideAxis(ei),ef=getAlignmentAxis(ei),ep=getAxisLength(ef),em=floating_ui_utils_getSide(ei),eg="y"===eu,ey=es.x+es.width/2-ed.width/2,eb=es.y+es.height/2-ed.height/2,eS=es[ep]/2-ed[ep]/2;switch(em){case"top":ea={x:ey,y:es.y-ed.height};break;case"bottom":ea={x:ey,y:es.y+es.height};break;case"right":ea={x:es.x+es.width,y:eb};break;case"left":ea={x:es.x-ed.width,y:eb};break;default:ea={x:es.x,y:es.y}}switch(floating_ui_utils_getAlignment(ei)){case"start":ea[ef]-=eS*(eo&&eg?-1:1);break;case"end":ea[ef]+=eS*(eo&&eg?-1:1)}return ea}let computePosition=async(en,ei,eo)=>{let{placement:ea="bottom",strategy:es="absolute",middleware:ed=[],platform:eu}=eo,ef=ed.filter(Boolean),ep=await (null==eu.isRTL?void 0:eu.isRTL(ei)),em=await eu.getElementRects({reference:en,floating:ei,strategy:es}),{x:eg,y:ey}=computeCoordsFromPlacement(em,ea,ep),eb=ea,eS={},e_=0;for(let eo=0;eo<ef.length;eo++){let{name:ed,fn:eR}=ef[eo],{x:eA,y:ew,data:eO,reset:eE}=await eR({x:eg,y:ey,initialPlacement:ea,placement:eb,strategy:es,middlewareData:eS,rects:em,platform:eu,elements:{reference:en,floating:ei}});eg=null!=eA?eA:eg,ey=null!=ew?ew:ey,eS={...eS,[ed]:{...eS[ed],...eO}},eE&&e_<=50&&(e_++,"object"==typeof eE&&(eE.placement&&(eb=eE.placement),eE.rects&&(em=!0===eE.rects?await eu.getElementRects({reference:en,floating:ei,strategy:es}):eE.rects),{x:eg,y:ey}=computeCoordsFromPlacement(em,eb,ep)),eo=-1)}return{x:eg,y:ey,placement:eb,strategy:es,middlewareData:eS}};async function detectOverflow(en,ei){var eo;void 0===ei&&(ei={});let{x:ea,y:es,platform:ed,rects:eu,elements:ef,strategy:ep}=en,{boundary:em="clippingAncestors",rootBoundary:eg="viewport",elementContext:ey="floating",altBoundary:eb=!1,padding:eS=0}=floating_ui_utils_evaluate(ei,en),e_=floating_ui_utils_getPaddingObject(eS),eR="floating"===ey?"reference":"floating",eA=ef[eb?eR:ey],ew=floating_ui_utils_rectToClientRect(await ed.getClippingRect({element:null==(eo=await (null==ed.isElement?void 0:ed.isElement(eA)))||eo?eA:eA.contextElement||await (null==ed.getDocumentElement?void 0:ed.getDocumentElement(ef.floating)),boundary:em,rootBoundary:eg,strategy:ep})),eO="floating"===ey?{...eu.floating,x:ea,y:es}:eu.reference,eE=await (null==ed.getOffsetParent?void 0:ed.getOffsetParent(ef.floating)),eP=await (null==ed.isElement?void 0:ed.isElement(eE))&&await (null==ed.getScale?void 0:ed.getScale(eE))||{x:1,y:1},eC=floating_ui_utils_rectToClientRect(ed.convertOffsetParentRelativeRectToViewportRelativeRect?await ed.convertOffsetParentRelativeRectToViewportRelativeRect({elements:ef,rect:eO,offsetParent:eE,strategy:ep}):eO);return{top:(ew.top-eC.top+e_.top)/eP.y,bottom:(eC.bottom-ew.bottom+e_.bottom)/eP.y,left:(ew.left-eC.left+e_.left)/eP.x,right:(eC.right-ew.right+e_.right)/eP.x}}let arrow=en=>({name:"arrow",options:en,async fn(ei){let{x:eo,y:ea,placement:es,rects:ed,platform:eu,elements:ef,middlewareData:ep}=ei,{element:em,padding:eg=0}=floating_ui_utils_evaluate(en,ei)||{};if(null==em)return{};let ey=floating_ui_utils_getPaddingObject(eg),eb={x:eo,y:ea},eS=getAlignmentAxis(es),e_=getAxisLength(eS),eR=await eu.getDimensions(em),ew="y"===eS,eO=ew?"top":"left",eE=ew?"bottom":"right",eP=ew?"clientHeight":"clientWidth",eC=ed.reference[e_]+ed.reference[eS]-eb[eS]-ed.floating[e_],eT=eb[eS]-ed.reference[eS],eB=await (null==eu.getOffsetParent?void 0:eu.getOffsetParent(em)),eN=eB?eB[eP]:0;eN&&await (null==eu.isElement?void 0:eu.isElement(eB))||(eN=ef.floating[eP]||ed.floating[e_]);let eI=eC/2-eT/2,ex=eN/2-eR[e_]/2-1,eM=eA(ey[eO],ex),eD=eA(ey[eE],ex),eU=eM,eL=eN-eR[e_]-eD,eJ=eN/2-eR[e_]/2+eI,eF=clamp(eU,eJ,eL),eH=!ep.arrow&&null!=floating_ui_utils_getAlignment(es)&&eJ!==eF&&ed.reference[e_]/2-(eJ<eU?eM:eD)-eR[e_]/2<0,eq=eH?eJ<eU?eJ-eU:eJ-eL:0;return{[eS]:eb[eS]+eq,data:{[eS]:eF,centerOffset:eJ-eF-eq,...eH&&{alignmentOffset:eq}},reset:eH}}}),flip=function(en){return void 0===en&&(en={}),{name:"flip",options:en,async fn(ei){var eo,ea,es,ed,eu;let{placement:ef,middlewareData:ep,rects:em,initialPlacement:eg,platform:ey,elements:eb}=ei,{mainAxis:eS=!0,crossAxis:e_=!0,fallbackPlacements:eR,fallbackStrategy:eA="bestFit",fallbackAxisSideDirection:ew="none",flipAlignment:eO=!0,...eE}=floating_ui_utils_evaluate(en,ei);if(null!=(eo=ep.arrow)&&eo.alignmentOffset)return{};let eP=floating_ui_utils_getSide(ef),eC=floating_ui_utils_getSide(eg)===eg,eT=await (null==ey.isRTL?void 0:ey.isRTL(eb.floating)),eB=eR||(eC||!eO?[getOppositePlacement(eg)]:getExpandedPlacements(eg));eR||"none"===ew||eB.push(...getOppositeAxisPlacements(eg,eO,ew,eT));let eN=[eg,...eB],eI=await detectOverflow(ei,eE),ex=[],eM=(null==(ea=ep.flip)?void 0:ea.overflows)||[];if(eS&&ex.push(eI[eP]),e_){let en=floating_ui_utils_getAlignmentSides(ef,em,eT);ex.push(eI[en[0]],eI[en[1]])}if(eM=[...eM,{placement:ef,overflows:ex}],!ex.every(en=>en<=0)){let en=((null==(es=ep.flip)?void 0:es.index)||0)+1,ei=eN[en];if(ei)return{data:{index:en,overflows:eM},reset:{placement:ei}};let eo=null==(ed=eM.filter(en=>en.overflows[0]<=0).sort((en,ei)=>en.overflows[1]-ei.overflows[1])[0])?void 0:ed.placement;if(!eo)switch(eA){case"bestFit":{let en=null==(eu=eM.map(en=>[en.placement,en.overflows.filter(en=>en>0).reduce((en,ei)=>en+ei,0)]).sort((en,ei)=>
52en[1]-ei[1])[0])?void 0:eu[0];en&&(eo=en);break}case"initialPlacement":eo=eg}if(ef!==eo)return{reset:{placement:eo}}}return{}}}};function getSideOffsets(en,ei){return{top:en.top-ei.height,right:en.right-ei.width,bottom:en.bottom-ei.height,left:en.left-ei.width}}function isAnySideFullyClipped(en){return eR.some(ei=>en[ei]>=0)}let hide=function(en){return void 0===en&&(en={}),{name:"hide",options:en,async fn(ei){let{rects:eo}=ei,{strategy:ea="referenceHidden",...es}=floating_ui_utils_evaluate(en,ei);switch(ea){case"referenceHidden":{let en=await detectOverflow(ei,{...es,elementContext:"reference"}),ea=getSideOffsets(en,eo.reference);return{data:{referenceHiddenOffsets:ea,referenceHidden:isAnySideFullyClipped(ea)}}}case"escaped":{let en=await detectOverflow(ei,{...es,altBoundary:!0}),ea=getSideOffsets(en,eo.floating);return{data:{escapedOffsets:ea,escaped:isAnySideFullyClipped(ea)}}}default:return{}}}}};async function convertValueToCoords(en,ei){let{placement:eo,platform:ea,elements:es}=en,ed=await (null==ea.isRTL?void 0:ea.isRTL(es.floating)),eu=floating_ui_utils_getSide(eo),ef=floating_ui_utils_getAlignment(eo),ep="y"===floating_ui_utils_getSideAxis(eo),em=["left","top"].includes(eu)?-1:1,eg=ed&&ep?-1:1,ey=floating_ui_utils_evaluate(ei,en),{mainAxis:eb,crossAxis:eS,alignmentAxis:e_}="number"==typeof ey?{mainAxis:ey,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ey};return ef&&"number"==typeof e_&&(eS="end"===ef?-1*e_:e_),ep?{x:eS*eg,y:eb*em}:{x:eb*em,y:eS*eg}}let offset=function(en){return void 0===en&&(en=0),{name:"offset",options:en,async fn(ei){var eo,ea;let{x:es,y:ed,placement:eu,middlewareData:ef}=ei,ep=await convertValueToCoords(ei,en);return eu===(null==(eo=ef.offset)?void 0:eo.placement)&&null!=(ea=ef.arrow)&&ea.alignmentOffset?{}:{x:es+ep.x,y:ed+ep.y,data:{...ep,placement:eu}}}}},shift=function(en){return void 0===en&&(en={}),{name:"shift",options:en,async fn(ei){let{x:eo,y:ea,placement:es}=ei,{mainAxis:ed=!0,crossAxis:eu=!1,limiter:ef={fn:en=>{let{x:ei,y:eo}=en;return{x:ei,y:eo}}},...ep}=floating_ui_utils_evaluate(en,ei),em={x:eo,y:ea},eg=await detectOverflow(ei,ep),ey=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(es)),eb=getOppositeAxis(ey),eS=em[eb],e_=em[ey];if(ed){let en="y"===eb?"top":"left",ei="y"===eb?"bottom":"right",eo=eS+eg[en],ea=eS-eg[ei];eS=clamp(eo,eS,ea)}if(eu){let en="y"===ey?"top":"left",ei="y"===ey?"bottom":"right",eo=e_+eg[en],ea=e_-eg[ei];e_=clamp(eo,e_,ea)}let eR=ef.fn({...ei,[eb]:eS,[ey]:e_});return{...eR,data:{x:eR.x-eo,y:eR.y-ea}}}}},limitShift=function(en){return void 0===en&&(en={}),{options:en,fn(ei){let{x:eo,y:ea,placement:es,rects:ed,middlewareData:eu}=ei,{offset:ef=0,mainAxis:ep=!0,crossAxis:em=!0}=floating_ui_utils_evaluate(en,ei),eg={x:eo,y:ea},ey=floating_ui_utils_getSideAxis(es),eb=getOppositeAxis(ey),eS=eg[eb],e_=eg[ey],eR=floating_ui_utils_evaluate(ef,ei),eA="number"==typeof eR?{mainAxis:eR,crossAxis:0}:{mainAxis:0,crossAxis:0,...eR};if(ep){let en="y"===eb?"height":"width",ei=ed.reference[eb]-ed.floating[en]+eA.mainAxis,eo=ed.reference[eb]+ed.reference[en]-eA.mainAxis;eS<ei?eS=ei:eS>eo&&(eS=eo)}if(em){var ew,eO;let en="y"===eb?"width":"height",ei=["top","left"].includes(floating_ui_utils_getSide(es)),eo=ed.reference[ey]-ed.floating[en]+(ei&&(null==(ew=eu.offset)?void 0:ew[ey])||0)+(ei?0:eA.crossAxis),ea=ed.reference[ey]+ed.reference[en]+(ei?0:(null==(eO=eu.offset)?void 0:eO[ey])||0)-(ei?eA.crossAxis:0);e_<eo?e_=eo:e_>ea&&(e_=ea)}return{[eb]:eS,[ey]:e_}}}},size=function(en){return void 0===en&&(en={}),{name:"size",options:en,async fn(ei){let eo,ea;let{placement:es,rects:ed,platform:eu,elements:ef}=ei,{apply:ep=()=>{},...em}=floating_ui_utils_evaluate(en,ei),eg=await detectOverflow(ei,em),ey=floating_ui_utils_getSide(es),eb=floating_ui_utils_getAlignment(es),eS="y"===floating_ui_utils_getSideAxis(es),{width:e_,height:eR}=ed.floating;"top"===ey||"bottom"===ey?(eo=ey,ea=eb===(await (null==eu.isRTL?void 0:eu.isRTL(ef.floating))?"start":"end")?"left":"right"):(ea=ey,eo="end"===eb?"top":"bottom");let eO=eR-eg[eo],eE=e_-eg[ea],eP=!ei.middlewareData.shift,eC=eO,eT=eE;if(eS){let en=e_-eg.left-eg.right;eT=eb||eP?eA(eE,en):en}else{let en=eR-eg.top-eg.bottom;eC=eb||eP?eA(eO,en):en}if(eP&&!eb){let en=ew(eg.left,0),ei=ew(eg.right,0),eo=ew(eg.top,0),ea=ew(eg.bottom,0);eS?eT=e_-2*(0!==en||0!==ei?en+ei:ew(eg.left,eg.right)):eC=eR-2*(0!==eo||0!==ea?eo+ea:ew(eg.top,eg.bottom))}await ep({...ei,availableWidth:eT,availableHeight:eC});let eB=await eu.getDimensions(ef.floating);return e_!==eB.width||eR!==eB.height?{reset:{rects:!0}}:{}}}};function getNodeName(en){return isNode(en)?(en.nodeName||"").toLowerCase():"#document"}function getWindow(en){var ei;return(null==en||null==(ei=en.ownerDocument)?void 0:ei.defaultView)||window}function getDocumentElement(en){var ei;return null==(ei=(isNode(en)?en.ownerDocument:en.document)||window.document)?void 0:ei.documentElement}function isNode(en){return en instanceof Node||en instanceof getWindow(en).Node}function isElement(en){return en instanceof Element||en instanceof getWindow(en).Element}function isHTMLElement(en){return en instanceof HTMLElement||en instanceof getWindow(en).HTMLElement}function isShadowRoot(en){return"undefined"!=typeof ShadowRoot&&(en instanceof ShadowRoot||en instanceof getWindow(en).ShadowRoot)}function isOverflowElement(en){let{overflow:ei,overflowX:eo,overflowY:ea,display:es}=getComputedStyle(en);return/auto|scroll|overlay|hidden|clip/.test(ei+ea+eo)&&!["inline","contents"].includes(es)}function isTableElement(en){return["table","td","th"].includes(getNodeName(en))}function isContainingBlock(en){let ei=isWebKit(),eo=getComputedStyle(en);return"none"!==eo.transform||"none"!==eo.perspective||!!eo.containerType&&"normal"!==eo.containerType||!ei&&!!eo.backdropFilter&&"none"!==eo.backdropFilter||!ei&&!!eo.filter&&"none"!==eo.filter||["transform","perspective","filter"].some(en=>(eo.willChange||"").includes(en))||["paint","layout","strict","content"].some(en=>(eo.contain||"").includes(en))}function getContainingBlock(en){let ei=getParentNode(en);for(;isHTMLElement(ei)&&!isLastTraversableNode(ei);){if(isContainingBlock(ei))return ei;ei=getParentNode(ei)}return null}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(en){return["html","body","#document"].includes(getNodeName(en))}function getComputedStyle(en){return getWindow(en).getComputedStyle(en)}function getNodeScroll(en){return isElement(en)?{scrollLeft:en.scrollLeft,scrollTop:en.scrollTop}:{scrollLeft:en.pageXOffset,scrollTop:en.pageYOffset}}function getParentNode(en){if("html"===getNodeName(en))return en;let ei=en.assignedSlot||en.parentNode||isShadowRoot(en)&&en.host||getDocumentElement(en);return isShadowRoot(ei)?ei.host:ei}function getNearestOverflowAncestor(en){let ei=getParentNode(en);return isLastTraversableNode(ei)?en.ownerDocument?en.ownerDocument.body:en.body:isHTMLElement(ei)&&isOverflowElement(ei)?ei:getNearestOverflowAncestor(ei)}function getOverflowAncestors(en,ei,eo){var ea;void 0===ei&&(ei=[]),void 0===eo&&(eo=!0);let es=getNearestOverflowAncestor(en),ed=es===(null==(ea=en.ownerDocument)?void 0:ea.body),eu=getWindow(es);
52return ed?ei.concat(eu,eu.visualViewport||[],isOverflowElement(es)?es:[],eu.frameElement&&eo?getOverflowAncestors(eu.frameElement):[]):ei.concat(es,getOverflowAncestors(es,[],eo))}function getCssDimensions(en){let ei=getComputedStyle(en),eo=parseFloat(ei.width)||0,ea=parseFloat(ei.height)||0,es=isHTMLElement(en),ed=es?en.offsetWidth:eo,eu=es?en.offsetHeight:ea,ef=eO(eo)!==ed||eO(ea)!==eu;return ef&&(eo=ed,ea=eu),{width:eo,height:ea,$:ef}}function unwrapElement(en){return isElement(en)?en:en.contextElement}function getScale(en){let ei=unwrapElement(en);if(!isHTMLElement(ei))return createCoords(1);let eo=ei.getBoundingClientRect(),{width:ea,height:es,$:ed}=getCssDimensions(ei),eu=(ed?eO(eo.width):eo.width)/ea,ef=(ed?eO(eo.height):eo.height)/es;return eu&&Number.isFinite(eu)||(eu=1),ef&&Number.isFinite(ef)||(ef=1),{x:eu,y:ef}}let eT=createCoords(0);function getVisualOffsets(en){let ei=getWindow(en);return isWebKit()&&ei.visualViewport?{x:ei.visualViewport.offsetLeft,y:ei.visualViewport.offsetTop}:eT}function shouldAddVisualOffsets(en,ei,eo){return void 0===ei&&(ei=!1),!!eo&&(!ei||eo===getWindow(en))&&ei}function getBoundingClientRect(en,ei,eo,ea){void 0===ei&&(ei=!1),void 0===eo&&(eo=!1);let es=en.getBoundingClientRect(),ed=unwrapElement(en),eu=createCoords(1);ei&&(ea?isElement(ea)&&(eu=getScale(ea)):eu=getScale(en));let ef=shouldAddVisualOffsets(ed,eo,ea)?getVisualOffsets(ed):createCoords(0),ep=(es.left+ef.x)/eu.x,em=(es.top+ef.y)/eu.y,eg=es.width/eu.x,ey=es.height/eu.y;if(ed){let en=getWindow(ed),ei=ea&&isElement(ea)?getWindow(ea):ea,eo=en,es=eo.frameElement;for(;es&&ea&&ei!==eo;){let en=getScale(es),ei=es.getBoundingClientRect(),ea=getComputedStyle(es),ed=ei.left+(es.clientLeft+parseFloat(ea.paddingLeft))*en.x,eu=ei.top+(es.clientTop+parseFloat(ea.paddingTop))*en.y;ep*=en.x,em*=en.y,eg*=en.x,ey*=en.y,ep+=ed,em+=eu,es=(eo=getWindow(es)).frameElement}}return floating_ui_utils_rectToClientRect({width:eg,height:ey,x:ep,y:em})}let eB=[":popover-open",":modal"];function isTopLayer(en){return eB.some(ei=>{try{return en.matches(ei)}catch(en){return!1}})}function convertOffsetParentRelativeRectToViewportRelativeRect(en){let{elements:ei,rect:eo,offsetParent:ea,strategy:es}=en,ed="fixed"===es,eu=getDocumentElement(ea),ef=!!ei&&isTopLayer(ei.floating);if(ea===eu||ef&&ed)return eo;let ep={scrollLeft:0,scrollTop:0},em=createCoords(1),eg=createCoords(0),ey=isHTMLElement(ea);if((ey||!ey&&!ed)&&(("body"!==getNodeName(ea)||isOverflowElement(eu))&&(ep=getNodeScroll(ea)),isHTMLElement(ea))){let en=getBoundingClientRect(ea);em=getScale(ea),eg.x=en.x+ea.clientLeft,eg.y=en.y+ea.clientTop}return{width:eo.width*em.x,height:eo.height*em.y,x:eo.x*em.x-ep.scrollLeft*em.x+eg.x,y:eo.y*em.y-ep.scrollTop*em.y+eg.y}}function getClientRects(en){return Array.from(en.getClientRects())}function getWindowScrollBarX(en){return getBoundingClientRect(getDocumentElement(en)).left+getNodeScroll(en).scrollLeft}function getDocumentRect(en){let ei=getDocumentElement(en),eo=getNodeScroll(en),ea=en.ownerDocument.body,es=ew(ei.scrollWidth,ei.clientWidth,ea.scrollWidth,ea.clientWidth),ed=ew(ei.scrollHeight,ei.clientHeight,ea.scrollHeight,ea.clientHeight),eu=-eo.scrollLeft+getWindowScrollBarX(en),ef=-eo.scrollTop;return"rtl"===getComputedStyle(ea).direction&&(eu+=ew(ei.clientWidth,ea.clientWidth)-es),{width:es,height:ed,x:eu,y:ef}}function getViewportRect(en,ei){let eo=getWindow(en),ea=getDocumentElement(en),es=eo.visualViewport,ed=ea.clientWidth,eu=ea.clientHeight,ef=0,ep=0;if(es){ed=es.width,eu=es.height;let en=isWebKit();(!en||en&&"fixed"===ei)&&(ef=es.offsetLeft,ep=es.offsetTop)}return{width:ed,height:eu,x:ef,y:ep}}function getInnerBoundingClientRect(en,ei){let eo=getBoundingClientRect(en,!0,"fixed"===ei),ea=eo.top+en.clientTop,es=eo.left+en.clientLeft,ed=isHTMLElement(en)?getScale(en):createCoords(1),eu=en.clientWidth*ed.x,ef=en.clientHeight*ed.y,ep=es*ed.x,em=ea*ed.y;return{width:eu,height:ef,x:ep,y:em}}function getClientRectFromClippingAncestor(en,ei,eo){let ea;if("viewport"===ei)ea=getViewportRect(en,eo);else if("document"===ei)ea=getDocumentRect(getDocumentElement(en));else if(isElement(ei))ea=getInnerBoundingClientRect(ei,eo);else{let eo=getVisualOffsets(en);ea={...ei,x:ei.x-eo.x,y:ei.y-eo.y}}return floating_ui_utils_rectToClientRect(ea)}function hasFixedPositionAncestor(en,ei){let eo=getParentNode(en);return!(eo===ei||!isElement(eo)||isLastTraversableNode(eo))&&("fixed"===getComputedStyle(eo).position||hasFixedPositionAncestor(eo,ei))}function getClippingElementAncestors(en,ei){let eo=ei.get(en);if(eo)return eo;let ea=getOverflowAncestors(en,[],!1).filter(en=>isElement(en)&&"body"!==getNodeName(en)),es=null,ed="fixed"===getComputedStyle(en).position,eu=ed?getParentNode(en):en;for(;isElement(eu)&&!isLastTraversableNode(eu);){let ei=getComputedStyle(eu),eo=isContainingBlock(eu);eo||"fixed"!==ei.position||(es=null);let ef=ed?!eo&&!es:!eo&&"static"===ei.position&&!!es&&["absolute","fixed"].includes(es.position)||isOverflowElement(eu)&&!eo&&hasFixedPositionAncestor(en,eu);ef?ea=ea.filter(en=>en!==eu):es=ei,eu=getParentNode(eu)}return ei.set(en,ea),ea}
52function getClippingRect(en){let{element:ei,boundary:eo,rootBoundary:ea,strategy:es}=en,ed="clippingAncestors"===eo?getClippingElementAncestors(ei,this._c):[].concat(eo),eu=[...ed,ea],ef=eu[0],ep=eu.reduce((en,eo)=>{let ea=getClientRectFromClippingAncestor(ei,eo,es);return en.top=ew(ea.top,en.top),en.right=eA(ea.right,en.right),en.bottom=eA(ea.bottom,en.bottom),en.left=ew(ea.left,en.left),en},getClientRectFromClippingAncestor(ei,ef,es));return{width:ep.right-ep.left,height:ep.bottom-ep.top,x:ep.left,y:ep.top}}function getDimensions(en){let{width:ei,height:eo}=getCssDimensions(en);return{width:ei,height:eo}}function getRectRelativeToOffsetParent(en,ei,eo){let ea=isHTMLElement(ei),es=getDocumentElement(ei),ed="fixed"===eo,eu=getBoundingClientRect(en,!0,ed,ei),ef={scrollLeft:0,scrollTop:0},ep=createCoords(0);if(ea||!ea&&!ed){if(("body"!==getNodeName(ei)||isOverflowElement(es))&&(ef=getNodeScroll(ei)),ea){let en=getBoundingClientRect(ei,!0,ed,ei);ep.x=en.x+ei.clientLeft,ep.y=en.y+ei.clientTop}else es&&(ep.x=getWindowScrollBarX(es))}let em=eu.left+ef.scrollLeft-ep.x,eg=eu.top+ef.scrollTop-ep.y;return{x:em,y:eg,width:eu.width,height:eu.height}}function getTrueOffsetParent(en,ei){return isHTMLElement(en)&&"fixed"!==getComputedStyle(en).position?ei?ei(en):en.offsetParent:null}function getOffsetParent(en,ei){let eo=getWindow(en);if(!isHTMLElement(en)||isTopLayer(en))return eo;let ea=getTrueOffsetParent(en,ei);for(;ea&&isTableElement(ea)&&"static"===getComputedStyle(ea).position;)ea=getTrueOffsetParent(ea,ei);return ea&&("html"===getNodeName(ea)||"body"===getNodeName(ea)&&"static"===getComputedStyle(ea).position&&!isContainingBlock(ea))?eo:ea||getContainingBlock(en)||eo}let getElementRects=async function(en){let ei=this.getOffsetParent||getOffsetParent,eo=this.getDimensions;return{reference:getRectRelativeToOffsetParent(en.reference,await ei(en.floating),en.strategy),floating:{x:0,y:0,...await eo(en.floating)}}};function isRTL(en){return"rtl"===getComputedStyle(en).direction}let eN={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement,isRTL};function observeMove(en,ei){let eo,ea=null,es=getDocumentElement(en);function cleanup(){var en;clearTimeout(eo),null==(en=ea)||en.disconnect(),ea=null}function refresh(ed,eu){void 0===ed&&(ed=!1),void 0===eu&&(eu=1),cleanup();let{left:ef,top:ep,width:em,height:eg}=en.getBoundingClientRect();if(ed||ei(),!em||!eg)return;let ey=eE(ep),eb=eE(es.clientWidth-(ef+em)),eS=eE(es.clientHeight-(ep+eg)),e_=eE(ef),eR=-ey+"px "+-eb+"px "+-eS+"px "+-e_+"px",eO={rootMargin:eR,threshold:ew(0,eA(1,eu))||1},eP=!0;function handleObserve(en){let ei=en[0].intersectionRatio;if(ei!==eu){if(!eP)return refresh();ei?refresh(!1,ei):eo=setTimeout(()=>{refresh(!1,1e-7)},100)}eP=!1}try{ea=new IntersectionObserver(handleObserve,{...eO,root:es.ownerDocument})}catch(en){ea=new IntersectionObserver(handleObserve,eO)}ea.observe(en)}return refresh(!0),cleanup}function autoUpdate(en,ei,eo,ea){let es;void 0===ea&&(ea={});let{ancestorScroll:ed=!0,ancestorResize:eu=!0,elementResize:ef="function"==typeof ResizeObserver,layoutShift:ep="function"==typeof IntersectionObserver,animationFrame:em=!1}=ea,eg=unwrapElement(en),ey=ed||eu?[...eg?getOverflowAncestors(eg):[],...getOverflowAncestors(ei)]:[];ey.forEach(en=>{ed&&en.addEventListener("scroll",eo,{passive:!0}),eu&&en.addEventListener("resize",eo)});let eb=eg&&ep?observeMove(eg,eo):null,eS=-1,e_=null;ef&&(e_=new ResizeObserver(en=>{let[ea]=en;ea&&ea.target===eg&&e_&&(e_.unobserve(ei),cancelAnimationFrame(eS),eS=requestAnimationFrame(()=>{var en;null==(en=e_)||en.observe(ei)})),eo()}),eg&&!em&&e_.observe(eg),e_.observe(ei));let eR=em?getBoundingClientRect(en):null;function frameLoop(){let ei=getBoundingClientRect(en);eR&&(ei.x!==eR.x||ei.y!==eR.y||ei.width!==eR.width||ei.height!==eR.height)&&eo(),eR=ei,es=requestAnimationFrame(frameLoop)}return em&&frameLoop(),eo(),()=>{var en;ey.forEach(en=>{ed&&en.removeEventListener("scroll",eo),eu&&en.removeEventListener("resize",eo)}),null==eb||eb(),null==(en=e_)||en.disconnect(),e_=null,em&&cancelAnimationFrame(es)}}let eI=shift,ex=flip,eM=size,eD=hide,eU=arrow,eL=limitShift,floating_ui_dom_computePosition=(en,ei,eo)=>{let ea=new Map,es={platform:eN,...eo},ed={...es.platform,_c:ea};return computePosition(en,ei,{...es,platform:ed})},floating_ui_react_dom_arrow=en=>{function isRef(en){return({}).hasOwnProperty.call(en,"current")}return{name:"arrow",options:en,fn(ei){let{element:eo,padding:ea}="function"==typeof en?en(ei):en;return eo&&isRef(eo)?null!=eo.current?eU({element:eo.current,padding:ea}).fn(ei):{}:eo?eU({element:eo,padding:ea}).fn(ei):{}}}};var eJ="undefined"!=typeof document?es.useLayoutEffect:es.useEffect;function deepEqual(en,ei){let eo,ea,es;if(en===ei)return!0;
52if(typeof en!=typeof ei)return!1;if("function"==typeof en&&en.toString()===ei.toString())return!0;if(en&&ei&&"object"==typeof en){if(Array.isArray(en)){if((eo=en.length)!==ei.length)return!1;for(ea=eo;0!=ea--;)if(!deepEqual(en[ea],ei[ea]))return!1;return!0}if((eo=(es=Object.keys(en)).length)!==Object.keys(ei).length)return!1;for(ea=eo;0!=ea--;)if(!({}).hasOwnProperty.call(ei,es[ea]))return!1;for(ea=eo;0!=ea--;){let eo=es[ea];if(("_owner"!==eo||!en.$$typeof)&&!deepEqual(en[eo],ei[eo]))return!1}return!0}return en!=en&&ei!=ei}function getDPR(en){if("undefined"==typeof window)return 1;let ei=en.ownerDocument.defaultView||window;return ei.devicePixelRatio||1}function roundByDPR(en,ei){let eo=getDPR(en);return Math.round(ei*eo)/eo}function useLatestRef(en){let ei=es.useRef(en);return eJ(()=>{ei.current=en}),ei}function useFloating(en){void 0===en&&(en={});let{placement:ei="bottom",strategy:eo="absolute",middleware:ea=[],platform:eu,elements:{reference:ef,floating:ep}={},transform:em=!0,whileElementsMounted:eg,open:ey}=en,[eb,eS]=es.useState({x:0,y:0,strategy:eo,placement:ei,middlewareData:{},isPositioned:!1}),[e_,eR]=es.useState(ea);deepEqual(e_,ea)||eR(ea);let[eA,ew]=es.useState(null),[eO,eE]=es.useState(null),eP=es.useCallback(en=>{en!==eN.current&&(eN.current=en,ew(en))},[]),eC=es.useCallback(en=>{en!==eI.current&&(eI.current=en,eE(en))},[]),eT=ef||eA,eB=ep||eO,eN=es.useRef(null),eI=es.useRef(null),ex=es.useRef(eb),eM=null!=eg,eD=useLatestRef(eg),eU=useLatestRef(eu),eL=es.useCallback(()=>{if(!eN.current||!eI.current)return;let en={placement:ei,strategy:eo,middleware:e_};eU.current&&(en.platform=eU.current),floating_ui_dom_computePosition(eN.current,eI.current,en).then(en=>{let ei={...en,isPositioned:!0};eF.current&&!deepEqual(ex.current,ei)&&(ex.current=ei,ed.flushSync(()=>{eS(ei)}))})},[e_,ei,eo,eU]);eJ(()=>{!1===ey&&ex.current.isPositioned&&(ex.current.isPositioned=!1,eS(en=>({...en,isPositioned:!1})))},[ey]);let eF=es.useRef(!1);eJ(()=>(eF.current=!0,()=>{eF.current=!1}),[]),eJ(()=>{if(eT&&(eN.current=eT),eB&&(eI.current=eB),eT&&eB){if(eD.current)return eD.current(eT,eB,eL);eL()}},[eT,eB,eL,eD,eM]);let eH=es.useMemo(()=>({reference:eN,floating:eI,setReference:eP,setFloating:eC}),[eP,eC]),eq=es.useMemo(()=>({reference:eT,floating:eB}),[eT,eB]),ej=es.useMemo(()=>{let en={position:eo,left:0,top:0};if(!eq.floating)return en;let ei=roundByDPR(eq.floating,eb.x),ea=roundByDPR(eq.floating,eb.y);return em?{...en,transform:"translate("+ei+"px, "+ea+"px)",...getDPR(eq.floating)>=1.5&&{willChange:"transform"}}:{position:eo,left:ei,top:ea}},[eo,em,eq.floating,eb.x,eb.y]);return es.useMemo(()=>({...eb,update:eL,refs:eH,elements:eq,floatingStyles:ej}),[eb,eL,eH,eq,ej])}var eF=eo(75320);let eH=(0,es.forwardRef)((en,ei)=>{let{children:eo,width:ed=10,height:eu=5,...ef}=en;return(0,es.createElement)(eF.WV.svg,(0,ea.Z)({},ef,{ref:ei,width:ed,height:eu,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),en.asChild?eo:(0,es.createElement)("polygon",{points:"0,0 30,0 15,10"}))}),eq=eH;var ej=eo(79698),eV=eo(9981);function $db6c3485150b8e66$export$1ab7ae714698c4b8(en){let[ei,eo]=(0,es.useState)(void 0);return(0,eV.b)(()=>{if(en){eo({width:en.offsetWidth,height:en.offsetHeight});let ei=new ResizeObserver(ei=>{let ea,es;if(!Array.isArray(ei)||!ei.length)return;let ed=ei[0];if("borderBoxSize"in ed){let en=ed.borderBoxSize,ei=Array.isArray(en)?en[0]:en;ea=ei.inlineSize,es=ei.blockSize}else ea=en.offsetWidth,es=en.offsetHeight;eo({width:ea,height:es})});return ei.observe(en,{box:"border-box"}),()=>ei.unobserve(en)}eo(void 0)},[en]),ei}let eW="Popper",[eG,eQ]=(0,em.b)(eW),[eK,eZ]=eG(eW),$cf1ac5d9fe0e8206$export$badac9ada3a0bdf9=en=>{let{__scopePopper:ei,children:eo}=en,[ea,ed]=(0,es.useState)(null);return(0,es.createElement)(eK,{scope:ei,anchor:ea,onAnchorChange:ed},eo)},ez="PopperAnchor",eY=(0,es.forwardRef)((en,ei)=>{let{__scopePopper:eo,virtualRef:ed,...eu}=en,ef=eZ(ez,eo),em=(0,es.useRef)(null),eg=(0,ep.e)(ei,em);return(0,es.useEffect)(()=>{ef.onAnchorChange((null==ed?void 0:ed.current)||em.current)}),ed?null:(0,es.createElement)(eF.WV.div,(0,ea.Z)({},eu,{ref:eg}))}),e$="PopperContent",[eX,e0]=eG(e$),e1=(0,es.forwardRef)((en,ei)=>{var eo,ed,eu,ef,em,eg,ey,eb;let{__scopePopper:eS,side:e_="bottom",sideOffset:eR=0,align:eA="center",alignOffset:ew=0,arrowPadding:eO=0,avoidCollisions:eE=!0,collisionBoundary:eP=[],collisionPadding:eC=0,sticky:eT="partial",hideWhenDetached:eB=!1,updatePositionStrategy:eN="optimized",onPlaced:eU,...eJ}=en,eH=eZ(e$,eS),[eq,eW]=(0,es.useState)(null),eG=(0,ep.e)(ei,en=>eW(en)),[eQ,eK]=(0,es.useState)(null),ez=$db6c3485150b8e66$export$1ab7ae714698c4b8(eQ),eY=null!==(eo=null==ez?void 0:ez.width)&&void 0!==eo?eo:0,e0=null!==(ed=null==ez?void 0:ez.height)&&void 0!==ed?ed:0,e1=e_+("center"!==eA?"-"+eA:""),e2="number"==typeof eC?eC:{top:0,right:0,bottom:0,left:0,...eC},e3=Array.isArray(eP)?eP:[eP],e6=e3.length>0,e5={padding:e2,boundary:e3.filter($cf1ac5d9fe0e8206$var$isNotNull),altBoundary:e6},{refs:e8,floatingStyles:e4,placement:e7,isPositioned:e9,middlewareData:tn}=useFloating({strategy:"fixed",placement:e1,whileElementsMounted:(...en)=>{let ei=autoUpdate(...en,{animationFrame:"always"===eN});return ei}
52,elements:{reference:eH.anchor},middleware:[offset({mainAxis:eR+e0,alignmentAxis:ew}),eE&&eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===eT?eL():void 0,...e5}),eE&&ex({...e5}),eM({...e5,apply:({elements:en,rects:ei,availableWidth:eo,availableHeight:ea})=>{let{width:es,height:ed}=ei.reference,eu=en.floating.style;eu.setProperty("--radix-popper-available-width",`${eo}px`),eu.setProperty("--radix-popper-available-height",`${ea}px`),eu.setProperty("--radix-popper-anchor-width",`${es}px`),eu.setProperty("--radix-popper-anchor-height",`${ed}px`)}}),eQ&&floating_ui_react_dom_arrow({element:eQ,padding:eO}),$cf1ac5d9fe0e8206$var$transformOrigin({arrowWidth:eY,arrowHeight:e0}),eB&&eD({strategy:"referenceHidden",...e5})]}),[ta,td]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(e7),tc=(0,ej.W)(eU);(0,eV.b)(()=>{e9&&(null==tc||tc())},[e9,tc]);let tu=null===(eu=tn.arrow)||void 0===eu?void 0:eu.x,tf=null===(ef=tn.arrow)||void 0===ef?void 0:ef.y,tp=(null===(em=tn.arrow)||void 0===em?void 0:em.centerOffset)!==0,[th,tm]=(0,es.useState)();return(0,eV.b)(()=>{eq&&tm(window.getComputedStyle(eq).zIndex)},[eq]),(0,es.createElement)("div",{ref:e8.setFloating,"data-radix-popper-content-wrapper":"",style:{...e4,transform:e9?e4.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:th,"--radix-popper-transform-origin":[null===(eg=tn.transformOrigin)||void 0===eg?void 0:eg.x,null===(ey=tn.transformOrigin)||void 0===ey?void 0:ey.y].join(" ")},dir:en.dir},(0,es.createElement)(eX,{scope:eS,placedSide:ta,onArrowChange:eK,arrowX:tu,arrowY:tf,shouldHideArrow:tp},(0,es.createElement)(eF.WV.div,(0,ea.Z)({"data-side":ta,"data-align":td},eJ,{ref:eG,style:{...eJ.style,animation:e9?void 0:"none",opacity:null!==(eb=tn.hide)&&void 0!==eb&&eb.referenceHidden?0:void 0}}))))}),e2="PopperArrow",e3={top:"bottom",right:"left",bottom:"top",left:"right"},e6=(0,es.forwardRef)(function(en,ei){let{__scopePopper:eo,...ed}=en,eu=e0(e2,eo),ef=e3[eu.placedSide];return(0,es.createElement)("span",{ref:eu.onArrowChange,style:{position:"absolute",left:eu.arrowX,top:eu.arrowY,[ef]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[eu.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[eu.placedSide],visibility:eu.shouldHideArrow?"hidden":void 0}},(0,es.createElement)(eq,(0,ea.Z)({},ed,{ref:ei,style:{...ed.style,display:"block"}})))});function $cf1ac5d9fe0e8206$var$isNotNull(en){return null!==en}let $cf1ac5d9fe0e8206$var$transformOrigin=en=>({name:"transformOrigin",options:en,fn(ei){var eo,ea,es,ed,eu;let{placement:ef,rects:ep,middlewareData:em}=ei,eg=(null===(eo=em.arrow)||void 0===eo?void 0:eo.centerOffset)!==0,ey=eg,eb=ey?0:en.arrowWidth,eS=ey?0:en.arrowHeight,[e_,eR]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(ef),eA={start:"0%",center:"50%",end:"100%"}[eR],ew=(null!==(ea=null===(es=em.arrow)||void 0===es?void 0:es.x)&&void 0!==ea?ea:0)+eb/2,eO=(null!==(ed=null===(eu=em.arrow)||void 0===eu?void 0:eu.y)&&void 0!==ed?ed:0)+eS/2,eE="",eP="";return"bottom"===e_?(eE=ey?eA:`${ew}px`,eP=`${-eS}px`):"top"===e_?(eE=ey?eA:`${ew}px`,eP=`${ep.floating.height+eS}px`):"right"===e_?(eE=`${-eS}px`,eP=ey?eA:`${eO}px`):"left"===e_&&(eE=`${ep.floating.width+eS}px`,eP=ey?eA:`${eO}px`),{data:{x:eE,y:eP}}}});function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(en){let[ei,eo="center"]=en.split("-");return[ei,eo]}let e5=$cf1ac5d9fe0e8206$export$badac9ada3a0bdf9,e8=eY,e4=e1;var e7=eo(42651),e9=eo(88426),tn=eo(77342);function $010c2913dbd2fe3d$export$5cae361ad82dce8b(en){let ei=(0,es.useRef)({value:en,previous:en});return(0,es.useMemo)(()=>(ei.current.value!==en&&(ei.current.previous=ei.current.value,ei.current.value=en),ei.current.previous),[en])}var ta=eo(96219),td=eo(23541),tc=eo(42026);let tu=[" ","Enter","ArrowUp","ArrowDown"],tf=[" ","Enter"],tp="Select",[th,tm,tg]=(0,ef.B)(tp),[ty,tv]=(0,em.b)(tp,[tg,eQ]),tS=eQ(),[t_,tR]=ty(tp),[tA,tw]=ty(tp),$cc7e05a45900e73f$export$ef9b1a59e592288f=en=>{let{__scopeSelect:ei,children:eo,open:ea,defaultOpen:ed,onOpenChange:eu,value:ef,defaultValue:ep,onValueChange:em,dir:eg,name:ey,autoComplete:eb,disabled:eS,required:eR}=en,eA=tS(ei),[ew,eO]=(0,es.useState)(null),[eE,eP]=(0,es.useState)(null),[eC,eT]=(0,es.useState)(!1),eB=$f631663db3294ace$export$b39126d51d94e6f3(eg),[eN=!1,eI]=(0,tn.T)({prop:ea,defaultProp:ed,onChange:eu}),[ex,eM]=(0,tn.T)({prop:ef,defaultProp:ep,onChange:em}),eD=(0,es.useRef)(null),eU=!ew||!!ew.closest("form"),[eL,eJ]=(0,es.useState)(new Set),eF=Array.from(eL).map(en=>en.props.value).join(";");return(0,es.createElement)(e5,eA,(0,es.createElement)(t_,{required:eR,scope:ei,trigger:ew,onTriggerChange:eO,valueNode:eE,onValueNodeChange:eP,valueNodeHasChildren:eC,onValueNodeHasChildrenChange:eT,contentId:(0,e_.M)(),value:ex,onValueChange:eM,open:eN,onOpenChange:eI,dir:eB,triggerPointerDownPosRef:eD,disabled:eS},(0,es.createElement)(th.Provider,{scope:ei},(0,es.createElement)(tA,{scope:en.__scopeSelect,onNativeOptionAdd:(0,es.useCallback)(en=>{eJ(ei=>new Set(ei).add(en))},[]),onNativeOptionRemove:(0,es.useCallback)(en=>{eJ(ei=>{let eo=new Set(ei);return eo.delete(en),eo})},[])},eo)),eU?(0,es.createElement)(rd,{key:eF,"aria-hidden":!0,required:eR,tabIndex:-1,name:ey,autoComplete:eb,value:ex,onChange:en=>eM(en.target.value),disabled:eS},void 0===ex?(0,es.createElement)("option",{value:""}):null,Array.from(eL)):null))},tO="SelectTrigger",tE=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,disabled:ed=!1,...ef}=en,em=tS(eo),eg=tR(tO,eo),ey=eg.disabled||ed,eb=(0,ep.e)(ei,eg.onTriggerChange),eS=tm(eo),[e_,eR,eA]=$cc7e05a45900e73f$var$useTypeaheadSearch(en=>{let ei=eS().filter(en=>!en.disabled),eo=ei.find(en=>en.value===eg.value),ea=$cc7e05a45900e73f$var$findNextItem(ei,en,eo);void 0!==ea&&eg.onValueChange(ea.value)}),handleOpen=()=>{ey||(eg.onOpenChange(!0),eA())};return(0,es.createElement)(e8,(0,ea.Z)({asChild:!0},em),(0,es.createElement)(eF.WV.button,(0,ea.Z)({type:"button",role:"combobox","aria-controls":eg.contentId,"aria-expanded":eg.open,"aria-required":eg.required,"aria-autocomplete":"none",dir:eg.dir,"data-state":eg.open?"open":"closed",disabled:ey,"data-disabled":ey?"":void 0,"data-placeholder":$cc7e05a45900e73f$var$shouldShowPlaceholder(eg.value)?"":void 0},ef,{ref:eb,onClick:(0,eu.M)(ef.onClick,en=>
52{en.currentTarget.focus()}),onPointerDown:(0,eu.M)(ef.onPointerDown,en=>{let ei=en.target;ei.hasPointerCapture(en.pointerId)&&ei.releasePointerCapture(en.pointerId),0===en.button&&!1===en.ctrlKey&&(handleOpen(),eg.triggerPointerDownPosRef.current={x:Math.round(en.pageX),y:Math.round(en.pageY)},en.preventDefault())}),onKeyDown:(0,eu.M)(ef.onKeyDown,en=>{let ei=""!==e_.current,eo=en.ctrlKey||en.altKey||en.metaKey;eo||1!==en.key.length||eR(en.key),(!ei||" "!==en.key)&&tu.includes(en.key)&&(handleOpen(),en.preventDefault())})})))}),tP="SelectValue",tC=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,className:ed,style:eu,children:ef,placeholder:em="",...eg}=en,ey=tR(tP,eo),{onValueNodeHasChildrenChange:eb}=ey,eS=void 0!==ef,e_=(0,ep.e)(ei,ey.onValueNodeChange);return(0,eV.b)(()=>{eb(eS)},[eb,eS]),(0,es.createElement)(eF.WV.span,(0,ea.Z)({},eg,{ref:e_,style:{pointerEvents:"none"}}),$cc7e05a45900e73f$var$shouldShowPlaceholder(ey.value)?(0,es.createElement)(es.Fragment,null,em):ef)}),tT=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,children:ed,...eu}=en;return(0,es.createElement)(eF.WV.span,(0,ea.Z)({"aria-hidden":!0},eu,{ref:ei}),ed||"▼")}),$cc7e05a45900e73f$export$b2af6c9944296213=en=>(0,es.createElement)(e7.h,(0,ea.Z)({asChild:!0},en)),tB="SelectContent",tN=(0,es.forwardRef)((en,ei)=>{let eo=tR(tB,en.__scopeSelect),[eu,ef]=(0,es.useState)();if((0,eV.b)(()=>{ef(new DocumentFragment)},[]),!eo.open){let ei=eu;return ei?(0,ed.createPortal)((0,es.createElement)(tM,{scope:en.__scopeSelect},(0,es.createElement)(th.Slot,{scope:en.__scopeSelect},(0,es.createElement)("div",null,en.children))),ei):null}return(0,es.createElement)(tU,(0,ea.Z)({},en,{ref:ei}))}),tI=10,[tM,tD]=ty(tB),tU=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,position:ed="item-aligned",onCloseAutoFocus:ef,onEscapeKeyDown:em,onPointerDownOutside:eg,side:e_,sideOffset:eR,align:eA,alignOffset:ew,arrowPadding:eO,collisionBoundary:eE,collisionPadding:eP,sticky:eC,hideWhenDetached:eT,avoidCollisions:eB,...eN}=en,eI=tR(tB,eo),[ex,eM]=(0,es.useState)(null),[eD,eU]=(0,es.useState)(null),eL=(0,ep.e)(ei,en=>eM(en)),[eJ,eF]=(0,es.useState)(null),[eH,eq]=(0,es.useState)(null),ej=tm(eo),[eV,eW]=(0,es.useState)(!1),eG=(0,es.useRef)(!1);(0,es.useEffect)(()=>{if(ex)return(0,td.Ry)(ex)},[ex]),(0,eb.EW)();let eQ=(0,es.useCallback)(en=>{let[ei,...eo]=ej().map(en=>en.ref.current),[ea]=eo.slice(-1),es=document.activeElement;for(let eo of en)if(eo===es||(null==eo||eo.scrollIntoView({block:"nearest"}),eo===ei&&eD&&(eD.scrollTop=0),eo===ea&&eD&&(eD.scrollTop=eD.scrollHeight),null==eo||eo.focus(),document.activeElement!==es))return},[ej,eD]),eK=(0,es.useCallback)(()=>eQ([eJ,ex]),[eQ,eJ,ex]);(0,es.useEffect)(()=>{eV&&eK()},[eV,eK]);let{onOpenChange:eZ,triggerPointerDownPosRef:ez}=eI;(0,es.useEffect)(()=>{if(ex){let en={x:0,y:0},handlePointerMove=ei=>{var eo,ea,es,ed;en={x:Math.abs(Math.round(ei.pageX)-(null!==(eo=null===(ea=ez.current)||void 0===ea?void 0:ea.x)&&void 0!==eo?eo:0)),y:Math.abs(Math.round(ei.pageY)-(null!==(es=null===(ed=ez.current)||void 0===ed?void 0:ed.y)&&void 0!==es?es:0))}},handlePointerUp=ei=>{en.x<=10&&en.y<=10?ei.preventDefault():ex.contains(ei.target)||eZ(!1),document.removeEventListener("pointermove",handlePointerMove),ez.current=null};return null!==ez.current&&(document.addEventListener("pointermove",handlePointerMove),document.addEventListener("pointerup",handlePointerUp,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",handlePointerMove),document.removeEventListener("pointerup",handlePointerUp,{capture:!0})}}},[ex,eZ,ez]),(0,es.useEffect)(()=>{let close=()=>eZ(!1);return window.addEventListener("blur",close),window.addEventListener("resize",close),()=>{window.removeEventListener("blur",close),window.removeEventListener("resize",close)}},[eZ]);let[eY,e$]=$cc7e05a45900e73f$var$useTypeaheadSearch(en=>{let ei=ej().filter(en=>!en.disabled),eo=ei.find(en=>en.ref.current===document.activeElement),ea=$cc7e05a45900e73f$var$findNextItem(ei,en,eo);ea&&setTimeout(()=>ea.ref.current.focus())}),eX=(0,es.useCallback)((en,ei,eo)=>{let ea=!eG.current&&!eo,es=void 0!==eI.value&&eI.value===ei;(es||ea)&&(eF(en),ea&&(eG.current=!0))},[eI.value]),e0=(0,es.useCallback)(()=>null==ex?void 0:ex.focus(),[ex]),e1=(0,es.useCallback)((en,ei,eo)=>{let ea=!eG.current&&!eo,es=void 0!==eI.value&&eI.value===ei;(es||ea)&&eq(en)},[eI.value]),e2="popper"===ed?tJ:tL,e3=e2===tJ?{side:e_,sideOffset:eR,align:eA,alignOffset:ew,arrowPadding:eO,collisionBoundary:eE,collisionPadding:eP,sticky:eC,hideWhenDetached:eT,avoidCollisions:eB}:{};return(0,es.createElement)(tM,{scope:eo,content:ex,viewport:eD,onViewportChange:eU,itemRefCallback:eX,selectedItem:eJ,onItemLeave:e0,itemTextRefCallback:e1,focusSelectedItem:eK,selectedItemText:eH,position:ed,isPositioned:eV,searchRef:eY},(0,es.createElement)(tc.Z,{as:e9.g7,allowPinchZoom:!0},(0,es.createElement)(eS.M,{asChild:!0,trapped:eI.open,onMountAutoFocus:en=>{en.preventDefault()},onUnmountAutoFocus:(0,eu.M)(ef,en=>{var ei;null===(ei=eI.trigger)||void 0===ei||ei.focus({preventScroll:!0}),en.preventDefault()})},(0,es.createElement)(ey.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:em,onPointerDownOutside:eg,onFocusOutside:en=>en.preventDefault(),onDismiss:()=>eI.onOpenChange(!1)},(0,es.createElement)(e2,(0,ea.Z)({role:"listbox",id:eI.contentId,"data-state":eI.open?"open":"closed",dir:eI.dir,onContextMenu:en=>en.preventDefault()},eN,e3,{onPlaced:()=>eW(!0),ref:eL,style:{display:"flex",flexDirection:"column",outline:"none",...eN.style},onKeyDown:(0,eu.M)(eN.onKeyDown,en=>{let ei=en.ctrlKey||en.altKey||en.metaKey;if("Tab"===en.key&&en.preventDefault(),ei||1!==en.key.length||e$(en.key),["ArrowUp","ArrowDown","Home","End"].includes(en.key)){let ei=ej().filter(en=>!en.disabled),eo=ei.map(en=>en.ref.current);if(["ArrowUp","End"].includes(en.key)&&(eo=eo.slice().reverse()),["ArrowUp","ArrowDown"].includes(en.key)){let ei=en.target,ea=eo.indexOf(ei);eo=eo.slice(ea+1)}setTimeout(()=>eQ(eo)),en.preventDefault()}})}))))))}),tL=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,onPlaced:ed,...eu}
52=en,ef=tR(tB,eo),em=tD(tB,eo),[eg,ey]=(0,es.useState)(null),[eb,eS]=(0,es.useState)(null),e_=(0,ep.e)(ei,en=>eS(en)),eR=tm(eo),eA=(0,es.useRef)(!1),ew=(0,es.useRef)(!0),{viewport:eO,selectedItem:eE,selectedItemText:eP,focusSelectedItem:eC}=em,eT=(0,es.useCallback)(()=>{if(ef.trigger&&ef.valueNode&&eg&&eb&&eO&&eE&&eP){let en=ef.trigger.getBoundingClientRect(),ei=eb.getBoundingClientRect(),eo=ef.valueNode.getBoundingClientRect(),ea=eP.getBoundingClientRect();if("rtl"!==ef.dir){let es=ea.left-ei.left,ed=eo.left-es,eu=en.left-ed,ef=en.width+eu,ep=Math.max(ef,ei.width),em=window.innerWidth-tI,ey=$ae6933e535247d3d$export$7d15b64cf5a3a4c4(ed,[tI,em-ep]);eg.style.minWidth=ef+"px",eg.style.left=ey+"px"}else{let es=ei.right-ea.right,ed=window.innerWidth-eo.right-es,eu=window.innerWidth-en.right-ed,ef=en.width+eu,ep=Math.max(ef,ei.width),em=window.innerWidth-tI,ey=$ae6933e535247d3d$export$7d15b64cf5a3a4c4(ed,[tI,em-ep]);eg.style.minWidth=ef+"px",eg.style.right=ey+"px"}let es=eR(),eu=window.innerHeight-2*tI,ep=eO.scrollHeight,em=window.getComputedStyle(eb),ey=parseInt(em.borderTopWidth,10),eS=parseInt(em.paddingTop,10),e_=parseInt(em.borderBottomWidth,10),ew=parseInt(em.paddingBottom,10),eC=ey+eS+ep+ew+e_,eT=Math.min(5*eE.offsetHeight,eC),eB=window.getComputedStyle(eO),eN=parseInt(eB.paddingTop,10),eI=parseInt(eB.paddingBottom,10),ex=en.top+en.height/2-tI,eM=eu-ex,eD=eE.offsetHeight/2,eU=eE.offsetTop+eD,eL=ey+eS+eU,eJ=eC-eL,eF=eL<=ex;if(eF){let en=eE===es[es.length-1].ref.current;eg.style.bottom="0px";let ei=eb.clientHeight-eO.offsetTop-eO.offsetHeight,eo=Math.max(eM,eD+(en?eI:0)+ei+e_),ea=eL+eo;eg.style.height=ea+"px"}else{let en=eE===es[0].ref.current;eg.style.top="0px";let ei=Math.max(ex,ey+eO.offsetTop+(en?eN:0)+eD),eo=ei+eJ;eg.style.height=eo+"px",eO.scrollTop=eL-ex+eO.offsetTop}eg.style.margin=`${tI}px 0`,eg.style.minHeight=eT+"px",eg.style.maxHeight=eu+"px",null==ed||ed(),requestAnimationFrame(()=>eA.current=!0)}},[eR,ef.trigger,ef.valueNode,eg,eb,eO,eE,eP,ef.dir,ed]);(0,eV.b)(()=>eT(),[eT]);let[eB,eN]=(0,es.useState)();(0,eV.b)(()=>{eb&&eN(window.getComputedStyle(eb).zIndex)},[eb]);let eI=(0,es.useCallback)(en=>{en&&!0===ew.current&&(eT(),null==eC||eC(),ew.current=!1)},[eT,eC]);return(0,es.createElement)(tF,{scope:eo,contentWrapper:eg,shouldExpandOnScrollRef:eA,onScrollButtonChange:eI},(0,es.createElement)("div",{ref:ey,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:eB}},(0,es.createElement)(eF.WV.div,(0,ea.Z)({},eu,{ref:e_,style:{boxSizing:"border-box",maxHeight:"100%",...eu.style}}))))}),tJ=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,align:ed="start",collisionPadding:eu=tI,...ef}=en,ep=tS(eo);return(0,es.createElement)(e4,(0,ea.Z)({},ep,ef,{ref:ei,align:ed,collisionPadding:eu,style:{boxSizing:"border-box",...ef.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[tF,tH]=ty(tB,{}),tq="SelectViewport",tj=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,...ed}=en,ef=tD(tq,eo),em=tH(tq,eo),eg=(0,ep.e)(ei,ef.onViewportChange),ey=(0,es.useRef)(0);return(0,es.createElement)(es.Fragment,null,(0,es.createElement)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),(0,es.createElement)(th.Slot,{scope:eo},(0,es.createElement)(eF.WV.div,(0,ea.Z)({"data-radix-select-viewport":"",role:"presentation"},ed,{ref:eg,style:{position:"relative",flex:1,overflow:"auto",...ed.style},onScroll:(0,eu.M)(ed.onScroll,en=>{let ei=en.currentTarget,{contentWrapper:eo,shouldExpandOnScrollRef:ea}=em;if(null!=ea&&ea.current&&eo){let en=Math.abs(ey.current-ei.scrollTop);if(en>0){let ea=window.innerHeight-2*tI,es=parseFloat(eo.style.minHeight),ed=parseFloat(eo.style.height),eu=Math.max(es,ed);if(eu<ea){let es=eu+en,ed=Math.min(ea,es),ef=es-ed;eo.style.height=ed+"px","0px"===eo.style.bottom&&(ei.scrollTop=ef>0?ef:0,eo.style.justifyContent="flex-end")}}}ey.current=ei.scrollTop})}))))}),tV="SelectGroup",[tW,tG]=ty(tV),tQ=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,...ed}=en,eu=(0,e_.M)();return(0,es.createElement)(tW,{scope:eo,id:eu},(0,es.createElement)(eF.WV.div,(0,ea.Z)({role:"group","aria-labelledby":eu},ed,{ref:ei})))}),tK="SelectLabel",tZ=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,...ed}=en,eu=tG(tK,eo);return(0,es.createElement)(eF.WV.div,(0,ea.Z)({id:eu.id},ed,{ref:ei}))}),tz="SelectItem",[tY,t$]=ty(tz),tX=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,value:ed,disabled:ef=!1,textValue:em,...eg}=en,ey=tR(tz,eo),eb=tD(tz,eo),eS=ey.value===ed,[eR,eA]=(0,es.useState)(null!=em?em:""),[ew,eO]=(0,es.useState)(!1),eE=(0,ep.e)(ei,en=>{var ei;return null===(ei=eb.itemRefCallback)||void 0===ei?void 0:ei.call(eb,en,ed,ef)}),eP=(0,e_.M)(),handleSelect=()=>{ef||(ey.onValueChange(ed),ey.onOpenChange(!1))};if(""===ed)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,es.createElement)(tY,{scope:eo,value:ed,disabled:ef,textId:eP,isSelected:eS,onItemTextChange:(0,es.useCallback)(en=>{eA(ei=>{var eo;return ei||(null!==(eo=null==en?void 0:en.textContent)&&void 0!==eo?eo:"").trim()})},[])},(0,es.createElement)(th.ItemSlot,{scope:eo,value:ed,disabled:ef,textValue:eR},(0,es.createElement)(eF.WV.div,(0,ea.Z)({role:"option","aria-labelledby":eP,"data-highlighted":ew?"":void 0,"aria-selected":eS&&ew,"data-state":eS?"checked":"unchecked","aria-disabled":ef||void 0,"data-disabled":ef?"":void 0,tabIndex:ef?void 0:-1},eg,{ref:eE,onFocus:(0,eu.M)(eg.onFocus,()=>eO(!0)),onBlur:(0,eu.M)(eg.onBlur,()=>eO(!1)),onPointerUp:(0,eu.M)(eg.onPointerUp,handleSelect),onPointerMove:(0,eu.M)(eg.onPointerMove,en=>
52{if(ef){var ei;null===(ei=eb.onItemLeave)||void 0===ei||ei.call(eb)}else en.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,eu.M)(eg.onPointerLeave,en=>{if(en.currentTarget===document.activeElement){var ei;null===(ei=eb.onItemLeave)||void 0===ei||ei.call(eb)}}),onKeyDown:(0,eu.M)(eg.onKeyDown,en=>{var ei;let eo=(null===(ei=eb.searchRef)||void 0===ei?void 0:ei.current)!=="";eo&&" "===en.key||(tf.includes(en.key)&&handleSelect()," "===en.key&&en.preventDefault())})}))))}),t3="SelectItemText",t6=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,className:eu,style:ef,...em}=en,eg=tR(t3,eo),ey=tD(t3,eo),eb=t$(t3,eo),eS=tw(t3,eo),[e_,eR]=(0,es.useState)(null),eA=(0,ep.e)(ei,en=>eR(en),eb.onItemTextChange,en=>{var ei;return null===(ei=ey.itemTextRefCallback)||void 0===ei?void 0:ei.call(ey,en,eb.value,eb.disabled)}),ew=null==e_?void 0:e_.textContent,eO=(0,es.useMemo)(()=>(0,es.createElement)("option",{key:eb.value,value:eb.value,disabled:eb.disabled},ew),[eb.disabled,eb.value,ew]),{onNativeOptionAdd:eE,onNativeOptionRemove:eP}=eS;return(0,eV.b)(()=>(eE(eO),()=>eP(eO)),[eE,eP,eO]),(0,es.createElement)(es.Fragment,null,(0,es.createElement)(eF.WV.span,(0,ea.Z)({id:eb.textId},em,{ref:eA})),eb.isSelected&&eg.valueNode&&!eg.valueNodeHasChildren?(0,ed.createPortal)(em.children,eg.valueNode):null)}),t5="SelectItemIndicator",t8=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,...ed}=en,eu=t$(t5,eo);return eu.isSelected?(0,es.createElement)(eF.WV.span,(0,ea.Z)({"aria-hidden":!0},ed,{ref:ei})):null}),t4="SelectScrollUpButton",t7=(0,es.forwardRef)((en,ei)=>{let eo=tD(t4,en.__scopeSelect),ed=tH(t4,en.__scopeSelect),[eu,ef]=(0,es.useState)(!1),em=(0,ep.e)(ei,ed.onScrollButtonChange);return(0,eV.b)(()=>{if(eo.viewport&&eo.isPositioned){let en=eo.viewport;function handleScroll(){let ei=en.scrollTop>0;ef(ei)}return handleScroll(),en.addEventListener("scroll",handleScroll),()=>en.removeEventListener("scroll",handleScroll)}},[eo.viewport,eo.isPositioned]),eu?(0,es.createElement)(ri,(0,ea.Z)({},en,{ref:em,onAutoScroll:()=>{let{viewport:en,selectedItem:ei}=eo;en&&ei&&(en.scrollTop=en.scrollTop-ei.offsetHeight)}})):null}),t9="SelectScrollDownButton",rn=(0,es.forwardRef)((en,ei)=>{let eo=tD(t9,en.__scopeSelect),ed=tH(t9,en.__scopeSelect),[eu,ef]=(0,es.useState)(!1),em=(0,ep.e)(ei,ed.onScrollButtonChange);return(0,eV.b)(()=>{if(eo.viewport&&eo.isPositioned){let en=eo.viewport;function handleScroll(){let ei=en.scrollHeight-en.clientHeight,eo=Math.ceil(en.scrollTop)<ei;ef(eo)}return handleScroll(),en.addEventListener("scroll",handleScroll),()=>en.removeEventListener("scroll",handleScroll)}},[eo.viewport,eo.isPositioned]),eu?(0,es.createElement)(ri,(0,ea.Z)({},en,{ref:em,onAutoScroll:()=>{let{viewport:en,selectedItem:ei}=eo;en&&ei&&(en.scrollTop=en.scrollTop+ei.offsetHeight)}})):null}),ri=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,onAutoScroll:ed,...ef}=en,ep=tD("SelectScrollButton",eo),em=(0,es.useRef)(null),eg=tm(eo),ey=(0,es.useCallback)(()=>{null!==em.current&&(window.clearInterval(em.current),em.current=null)},[]);return(0,es.useEffect)(()=>()=>ey(),[ey]),(0,eV.b)(()=>{var en;let ei=eg().find(en=>en.ref.current===document.activeElement);null==ei||null===(en=ei.ref.current)||void 0===en||en.scrollIntoView({block:"nearest"})},[eg]),(0,es.createElement)(eF.WV.div,(0,ea.Z)({"aria-hidden":!0},ef,{ref:ei,style:{flexShrink:0,...ef.style},onPointerDown:(0,eu.M)(ef.onPointerDown,()=>{null===em.current&&(em.current=window.setInterval(ed,50))}),onPointerMove:(0,eu.M)(ef.onPointerMove,()=>{var en;null===(en=ep.onItemLeave)||void 0===en||en.call(ep),null===em.current&&(em.current=window.setInterval(ed,50))}),onPointerLeave:(0,eu.M)(ef.onPointerLeave,()=>{ey()})}))}),ra=(0,es.forwardRef)((en,ei)=>{let{__scopeSelect:eo,...ed}=en;return(0,es.createElement)(eF.WV.div,(0,ea.Z)({"aria-hidden":!0},ed,{ref:ei}))});function $cc7e05a45900e73f$var$shouldShowPlaceholder(en){return""===en||void 0===en}let rd=(0,es.forwardRef)((en,ei)=>{let{value:eo,...ed}=en,eu=(0,es.useRef)(null),ef=(0,ep.e)(ei,eu),em=$010c2913dbd2fe3d$export$5cae361ad82dce8b(eo);return(0,es.useEffect)(()=>{let en=eu.current,ei=window.HTMLSelectElement.prototype,ea=Object.getOwnPropertyDescriptor(ei,"value"),es=ea.set;if(em!==eo&&es){let ei=new Event("change",{bubbles:!0});es.call(en,eo),en.dispatchEvent(ei)}},[em,eo]),(0,es.createElement)(ta.T,{asChild:!0},(0,es.createElement)("select",(0,ea.Z)({},ed,{ref:ef,defaultValue:eo})))});function $cc7e05a45900e73f$var$useTypeaheadSearch(en){let ei=(0,ej.W)(en),eo=(0,es.useRef)(""),ea=(0,es.useRef)(0),ed=(0,es.useCallback)(en=>{let es=eo.current+en;ei(es),function updateSearch(en){eo.current=en,window.clearTimeout(ea.current),""!==en&&(ea.current=window.setTimeout(()=>updateSearch(""),1e3))}(es)},[ei]),eu=(0,es.useCallback)(()=>{eo.current="",window.clearTimeout(ea.current)},[]);return(0,es.useEffect)(()=>()=>window.clearTimeout(ea.current),[]),[eo,ed,eu]}function $cc7e05a45900e73f$var$findNextItem(en,ei,eo){let ea=ei.length>1&&Array.from(ei).every(en=>en===ei[0]),es=ea?ei[0]:ei,ed=eo?en.indexOf(eo):-1,eu=$cc7e05a45900e73f$var$wrapArray(en,Math.max(ed,0)),ef=1===e
52s.length;ef&&(eu=eu.filter(en=>en!==eo));let ep=eu.find(en=>en.textValue.toLowerCase().startsWith(es.toLowerCase()));return ep!==eo?ep:void 0}function $cc7e05a45900e73f$var$wrapArray(en,ei){return en.map((eo,ea)=>en[(ei+ea)%en.length])}rd.displayName="BubbleSelect";let rc=$cc7e05a45900e73f$export$ef9b1a59e592288f,ru=tE,rf=tC,rp=tT,rm=$cc7e05a45900e73f$export$b2af6c9944296213,rg=tN,ry=tj,rv=tQ,rS=tZ,r_=tX,rR=t6,rA=t8,rw=t7,rk=rn,rO=ra},95260:function(en,ei,eo){"use strict";function Emitter(en){if(en)return mixin(en)}function mixin(en){for(var ei in Emitter.prototype)en[ei]=Emitter.prototype[ei];return en}eo.r(ei),eo.d(ei,{Emitter:function(){return Emitter}}),Emitter.prototype.on=Emitter.prototype.addEventListener=function(en,ei){return this._callbacks=this._callbacks||{},(this._callbacks["$"+en]=this._callbacks["$"+en]||[]).push(ei),this},Emitter.prototype.once=function(en,ei){function on(){this.off(en,on),ei.apply(this,arguments)}return on.fn=ei,this.on(en,on),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(en,ei){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var eo,ea=this._callbacks["$"+en];if(!ea)return this;if(1==arguments.length)return delete this._callbacks["$"+en],this;for(var es=0;es<ea.length;es++)if((eo=ea[es])===ei||eo.fn===ei){ea.splice(es,1);break}return 0===ea.length&&delete this._callbacks["$"+en],this},Emitter.prototype.emit=function(en){this._callbacks=this._callbacks||{};for(var ei=Array(arguments.length-1),eo=this._callbacks["$"+en],ea=1;ea<arguments.length;ea++)ei[ea-1]=arguments[ea];if(eo){eo=eo.slice(0);for(var ea=0,es=eo.length;ea<es;++ea)eo[ea].apply(this,ei)}return this},Emitter.prototype.emitReserved=Emitter.prototype.emit,Emitter.prototype.listeners=function(en){return this._callbacks=this._callbacks||{},this._callbacks["$"+en]||[]},Emitter.prototype.hasListeners=function(en){return!!this.listeners(en).length}},82892:function(en){"use strict";en.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"DepositReceiver","sourceName":"contracts/deposit-service/DepositReceiver.sol","abi":[{"inputs":[{"internalType":"bytes","name":"delegateData","type":"bytes"},{"internalType":"address","name":"refundAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"receive"}],"bytecode":"0x608060405234801561001057600080fd5b5060405161028f38038061028f83398101604081905261002f91610191565b6000336001600160a01b031663112e335c6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561006c57600080fd5b505af1158015610080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100a49190610250565b6001600160a01b0316836040516100bb9190610272565b600060405180830381855af49150503d80600081146100f6576040519150601f19603f3d011682016040523d82523d6000602084013e6100fb565b606091505b5050905080610111576040513d806000833e8082fd5b6001600160a01b038216610123573391505b816001600160a01b0316ff5b634e487b7160e01b600052604160045260246000fd5b60005b83811015610160578181015183820152602001610148565b8381111561016f576000848401525b50505050565b80516001600160a01b038116811461018c57600080fd5b919050565b600080604083850312156101a457600080fd5b82516001600160401b03808211156101bb57600080fd5b818501915085601f8301126101cf57600080fd5b8151818111156101e1576101e161012f565b604051601f8201601f19908116603f011681019083821181831017156102095761020961012f565b8160405282815288602084870101111561022257600080fd5b610233836020830160208801610145565b809650505050505061024760208401610175565b90509250929050565b60006020828403121561026257600080fd5b61026b82610175565b9392505050565b60008251610284818460208701610145565b919091019291505056fe","deployedBytecode":"0x608060405236600a57005b600080fdfea2646970667358221220647cec8bfe1585268ceed8d37cf1f8698e1ca3f1de0e4ed43c2c287253f936ef64736f6c63430008090033","linkReferences":{},"deployedLinkReferences":{}}')},34831:function(en){"use strict";en.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ReceiverImplementation","sourceName":"contracts/deposit-service/ReceiverImplementation.sol","abi":[{"input
52s":[{"internalType":"address","name":"gateway_","type":"address"},{"internalType":"string","name":"wrappedSymbol_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidStringLength","type":"error"},{"inputs":[],"name":"InvalidSymbol","type":"error"},{"inputs":[],"name":"NativeTransferFailed","type":"error"},{"inputs":[],"name":"NothingDeposited","type":"error"},{"inputs":[],"name":"TokenApproveFailed","type":"error"},{"inputs":[],"name":"TokenTransferFailed","type":"error"},{"inputs":[],"name":"UnwrapFailed","type":"error"},{"inputs":[],"name":"WrapFailed","type":"error"},{"inputs":[],"name":"gateway","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"refundAddress","type":"address"},{"internalType":"string","name":"destinationChain","type":"string"},{"internalType":"string","name":"destinationAddress","type":"string"}],"name":"receiveAndSendNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"refundAddress","type":"address"},{"internalType":"string","name":"destinationChain","type":"string"},{"internalType":"string","name":"destinationAddress","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"receiveAndSendToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"refundAddress","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"receiveAndUnwrapNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedSymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wrappedToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}],"bytecode":"0x60c06040523480156200001157600080fd5b50604051620014b8380380620014b8833981016040819052620000349162000217565b81816001600160a01b0382166200005e5760405163e6c4247b60e01b815260040160405180910390fd5b6001600160a01b03821660808190526040516349ad89fb60e11b81526000919063935b13f69062000094908590600401620002e5565b60206040518083038186803b158015620000ad57600080fd5b505afa158015620000c2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000e891906200031a565b6001600160a01b03161415620001115760405163010466f160e21b815260040160405180910390fd5b62000127816200013560201b62000b351760201c565b60a052506200036792505050565b8051600090829015806200014a5750601f8151115b156200016957604051638dc6ac0160e01b815260040160405180910390fd5b600062000176826200033f565b82516040805160ff9092169290921760208201819052925001604051602081830303815290604052620001a9906200033f565b949350505050565b80516001600160a01b0381168114620001c957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101562000201578181015183820152602001620001e7565b8381111562000211576000848401525b50505050565b600080604083850312156200022b57600080fd5b6200023683620001b1565b60208401519092506001600160401b03808211156200025457600080fd5b818501915085601f8301126200026957600080fd5b8151818111156200027e576200027e620001ce565b604051601f8201601f19908116603f01168101908382118183101715620002a957620002a9620001ce565b81604052828152886020848701011115620002c357600080fd5b620002d6836020830160208801620001e4565b80955050505050509250929050565b602081526000825180602084015262000306816040850160208701620001e4565b601f01601f19169190910160400192915050565b6000602082840312156200032d57600080fd5b6200033882620001b1565b9392505050565b8051602080830151919081101562000361576000198160200360031b1b821691505b50919050565b60805160a0516110f4620003c46000396000818161010d01528181610458015261072d015260008181607c0152818161041c0152818161065b015281816106ed015281816107ec015281816109f90152610ab501526110f46000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063a97a8d1611610050578063a97a8d16146100d8578063b28f104b146100eb578063fee8cf4e146100fe57600080fd5b8063116191b61461007757806388ccd044146100bb578063996c6cc3146100d0575b600080fd5b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b
526040516001600160a01b0390911681526020015b60405180910390f35b6100ce6100c9366004610d22565b610147565b005b61009e610418565b6100ce6100e6366004610da4565b6104f6565b6100ce6100f9366004610e27565b6107b9565b61013a604080518082019091527f000000000000000000000000000000000000000000000000000000000000000060ff81168252602082015290565b6040516100b29190610f2c565b6000610151610418565b90506000336001600160a01b0316635cb732be6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561019057600080fd5b505af11580156101a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c89190610f46565b90506001600160a01b03811615610276576001600160a01b0384166101eb573393505b6040516370a0823160e01b815230600482015261027090829086906001600160a01b038316906370a08231906024015b60206040518083038186803b15801561023357600080fd5b505afa158015610247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026b9190610f63565b610bc4565b50505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b1580156102b857600080fd5b505afa1580156102cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f09190610f63565b905080610310576040516369b95dc960e01b815260040160405180910390fd5b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b15801561036b57600080fd5b505af115801561037f573d6000803e3d6000fd5b505050506000846001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d0576040519150601f19603f3d011682016040523d82523d6000602084013e6103d5565b606091505b5050905080610410576040517ff4b3b1bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663935b13f6610485604080518082019091527f000000000000000000000000000000000000000000000000000000000000000060ff81168252602082015290565b6040518263ffffffff1660e01b81526004016104a19190610f2c565b60206040518083038186803b1580156104b957600080fd5b505afa1580156104cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f19190610f46565b905090565b6000336001600160a01b0316635cb732be6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056b9190610f46565b90506001600160a01b038116156105c8576001600160a01b03861661058e573395505b6040516370a0823160e01b81523060048201526105c290829088906001600160a01b038316906370a082319060240161021b565b506107b2565b60006105d2610418565b905047806105f3576040516369b95dc960e01b815260040160405180910390fd5b816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561062e57600080fd5b505af1158015610642573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690528616935063095ea7b392506044019050602060405180830381600087803b1580156106b257600080fd5b505af11580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea9190610f7c565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166326ef699d8888888861075a604080518082019091527f000000000000000000000000000000000000000000000000000000000000000060ff81168252602082015290565b876040518763ffffffff1660e01b815260040161077c96959493929190610fc7565b600060405180830381600087803b15801561079657600080fd5b505af11580156107aa573d6000803e3d6000fd5b505050505050505b5050505050565b6040517f935b13f60000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063935b13f6906108239086908690600401611016565b60206040518083038186803b15801561083b57600080fd5b505afa15801561084f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108739190610f46565b90506000336001600160a01b0316635cb732be6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156108b257600080fd5b505af11580156108c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ea9190610f46565b90506001600160a01b03811615610948576001600160a01b03891661090d573398505b6040516370a0823160e01b81523060048201526109419082908b906001600160a01b038316906370a082319060240161021b565b5050610b2c565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561098a57600080fd5b505afa15801561099e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c29190610f63565b9050806109e2576040516369b95dc960e01b815260040160405180910390fd5b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905284169063095ea7b390604401602060405180830381600087803b158015610a4c57600080fd5b505af1158015610a60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a849190610f7c565b506040517f26ef699d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906326ef699d90610af6908c908c908c908c908c908c908a9060040161102a565b600060405180830381600087803b158015610b1057600080fd5b505af1158015610b24573d6000803e3d6000fd5b505050505050505b50505050505050565b805160009082901580610b495750601f8151115b15610b80576040517f8dc6ac0100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b8b8261107b565b82516040805160ff9092169290921760208201819052925001604051602081830303815290604052610bbc9061107b565b949350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610c4e91906110a2565b6000604051808303816000865af19150503d8060008114610c8b576040519150601f19603f3d011682016040523d82523d6000602084013e610c90565b606091505b50915091506000828015610cbc575081511580610cbc575081806020019051810190610cbc9190610f7c565b9050801580610cd357506001600160a01b0386163b155b15610410576040517f045c4b0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0381168114610d1f57600080fd5b50565b60008060408385031215610d3557600080fd5b8235610d4081610d0a565b91506020830135610d5081610d0a565b809150509250929050565b60008083601f840112610d6d57600080fd5b50813567ffffffffffffffff811115610d8557600080fd5b602083019150836020828501011115610d9d57600080fd5b9250929050565b600080600080600060608688031215610dbc57600080fd5b8535610dc781610d0a565b9450602086013567ffffffffffffffff80821115610de457600080fd5b610df089838a01610d5b565b90965094506040880135915080821115610e0957600080fd5b50610e1688828901610d5b565b969995985093965092949392505050565b60008060008060008060006080888a031215610e4257600080fd5b8735610e4d81610d0a565b9650602088013567ffffffffffffffff80821115610e6a57600080fd5b610e768b838c01610d5b565b909850965060408a0135915080821115610e8f57600080fd5b610e9b8b838c01610d5b565b909650945060608a0135915080821115610eb457600080fd5b50610ec18a828b01610d5b565b989b979a50959850939692959293505050565b60005b83811015610eef578181015183820152602001610ed7565b838111156102705750506000910152565b60008151808452610f18816020860160208601610ed4565b601f01601f19169290920160200192915050565b602081526000610f3f602083
520184610f00565b9392505050565b600060208284031215610f5857600080fd5b8151610f3f81610d0a565b600060208284031215610f7557600080fd5b5051919050565b600060208284031215610f8e57600080fd5b81518015158114610f3f57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b608081526000610fdb60808301888a610f9e565b8281036020840152610fee818789610f9e565b905082810360408401526110028186610f00565b915050826060830152979650505050505050565b602081526000610bbc602083018486610f9e565b60808152600061103e60808301898b610f9e565b828103602084015261105181888a610f9e565b90508281036040840152611066818688610f9e565b91505082606083015298975050505050505050565b8051602080830151919081101561109c576000198160200360031b1b821691505b50919050565b600082516110b4818460208701610ed4565b919091019291505056fea26469706673582212203ff4690b62b03c0c5357a65bd25e163ca4912f9c2a670da46272b377e4fd49e564736f6c63430008090033","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106100725760003560e01c8063a97a8d1611610050578063a97a8d16146100d8578063b28f104b146100eb578063fee8cf4e146100fe57600080fd5b8063116191b61461007757806388ccd044146100bb578063996c6cc3146100d0575b600080fd5b61009e7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6100ce6100c9366004610d22565b610147565b005b61009e610418565b6100ce6100e6366004610da4565b6104f6565b6100ce6100f9366004610e27565b6107b9565b61013a604080518082019091527f000000000000000000000000000000000000000000000000000000000000000060ff81168252602082015290565b6040516100b29190610f2c565b6000610151610418565b90506000336001600160a01b0316635cb732be6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561019057600080fd5b505af11580156101a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101c89190610f46565b90506001600160a01b03811615610276576001600160a01b0384166101eb573393505b6040516370a0823160e01b815230600482015261027090829086906001600160a01b038316906370a08231906024015b60206040518083038186803b15801561023357600080fd5b505afa158015610247573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061026b9190610f63565b610bc4565b50505050565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b1580156102b857600080fd5b505afa1580156102cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f09190610f63565b905080610310576040516369b95dc960e01b815260040160405180910390fd5b6040517f2e1a7d4d000000000000000000000000000000000000000000000000000000008152600481018290526001600160a01b03841690632e1a7d4d90602401600060405180830381600087803b15801561036b57600080fd5b505af115801561037f573d6000803e3d6000fd5b505050506000846001600160a01b03168260405160006040518083038185875af1925050503d80600081146103d0576040519150601f19603f3d011682016040523d82523d6000602084013e6103d5565b606091505b5050905080610410576040517ff4b3b1bc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050505050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663935b13f6610485604080518082019091527f000000000000000000000000000000000000000000000000000000000000000060ff81168252602082015290565b6040518263ffffffff1660e01b81526004016104a19190610f2c565b60206040518083038186803b1580156104b957600080fd5b505afa1580156104cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f19190610f46565b905090565b6000336001600160a01b0316635cb732be6040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561053357600080fd5b505af1158015610547573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056b9190610f46565b90506001600160a01b038116156105c8576001600160a01b03861661058e573395505b6040516370a0823160e01b81523060048201526105c290829088906001600160a01b038316906370a082319060240161021b565b506107b2565b60006105d2610418565b905047806105f3576040516369b95dc960e01b815260040160405180910390fd5b816001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561062e57600080fd5b505af1158015610642573d6000803e3d6000fd5b505060405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018690528616935063095ea7b392506044019050602060405180830381600087803b1580156106b257600080fd5b505af11580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea9190610f7c565b507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166326ef699d8888888861075a604080518082019091527f000000000000000000000000000000000000000000000000000000000000000060ff81168252602082015290565b876040518763ffffffff1660e01b815260040161077c96959493929190610fc7565b600060405180830381600087803b15801561079657600080fd5b505af11580156107aa573d6000803e3d6000fd5b505050505050505b5050505050565b6040517f935b13f60000000000000000000000000000000000000000000000000000000081526000906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063935b13f6906108239086908690600401611016565b60206040518083038186803b15801561083b57600080fd5b505afa15801561084f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108739190610f46565b90506000336001600160a01b0316635cb732be6040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156108b257600080fd5b505af11580156108c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ea9190610f46565b90506001600160a01b03811615610948576001600160a01b03891661090d573398505b6040516370a0823160e01b81523060048201526109419082908b906001600160a01b038316906370a082319060240161021b565b5050610b2c565b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a082319060240160206040518083038186803b15801561098a57600080fd5b505afa15801561099e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c29190610f63565b9050806109e2576040516369b95dc960e01b815260040160405180910390fd5b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820183905284169063095ea7b390604401602060405180830381600087803b158015610a4c57600080fd5b505af1158015610a60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a849190610f7c565b506040517f26ef699d0000000000000000000000000000000000000000000000000000000081526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906326ef699d90610af6908c908c908c908c908c908c908a9060040161102a565b600060405180830381600087803b158015610b1057600080fd5b505af1158015610b24573d6000803e3d6000fd5b505050505050505b50505050505050565b805160009082901580610b495750601f8151115b15610b80576040517f8dc6ac0100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b8b8261107b565b82516040805160ff9092169290921760208201819052925001604051602081830303815290604052610bbc9061107b565b949350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691610c4e91906110a2565b6000604051808303816000865af19150503d8060008114610c8b576040519150601f19603f3d011682016040523d82523d6000602084013e610c90565b606091505b50915091506000828015610cbc575081511580610cbc575081806020019051810190610cbc9190610f7c565b9050801580610cd357506001600160a01b0386163b155b15610410576040517f045c4b0200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0381168114610d1f57600080fd5b50565b60008060408385031215610d3557600080fd5b8235610d4081610d0a565b91506020830135610d5081610d0a565b809150509250929050565b60008083601f840112610d6d57600080fd5b50813567ffffffffffffffff811115610d8557600080fd5b602083019150836020828501011115610d9d57600080fd5b9250929050565b600080600080600060608688031215610dbc57600080fd5b8535610dc781610d0a565b9450602086013567ffffffffffffffff80821115610de457600080fd5b610df089838a01610d5b565b90965094506040880135915080821115610e0957600080fd5b50610e1688828901610d5b565b969995985093965092949392505050565b60008060008060008060006080888a031215610e4257600080fd5b8735610e4d81610d0a565b9650602088013567ffffffffffffffff80821115610e6a57600080fd5b610e768b838c01610d5b565b909850965060408a0135915080821115610e8f57600080fd5b610e9b8b838c01610d5b565b909650945060608a0135915080821115610eb457600080fd5b50610ec18a828b01610d5b565b989b979a50959850939692959293505050565b60005b83811015610eef578181015183820152602001610ed7565b838111156102705750506000910152565b60008151808452610f18816020860160208601610ed4565b601f01601f19169290920160200192915050565b602081526000610f3f602083
520184610f00565b9392505050565b600060208284031215610f5857600080fd5b8151610f3f81610d0a565b600060208284031215610f7557600080fd5b5051919050565b600060208284031215610f8e57600080fd5b81518015158114610f3f57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b608081526000610fdb60808301888a610f9e565b8281036020840152610fee818789610f9e565b905082810360408401526110028186610f00565b915050826060830152979650505050505050565b602081526000610bbc602083018486610f9e565b60808152600061103e60808301898b610f9e565b828103602084015261105181888a610f9e565b90508281036040840152611066818688610f9e565b91505082606083015298975050505050505050565b8051602080830151919081101561109c576000198160200360031b1b821691505b50919050565b600082516110b4818460208701610ed4565b919091019291505056fea26469706673582212203ff4690b62b03c0c5357a65bd25e163ca4912f9c2a670da46272b377e4fd49e564736f6c63430008090033","linkReferences":{},"deployedLinkReferences":{}}')},82369:function(en){"use strict";en.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]')},88593:function(en){"use strict";en.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.
5219","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},18597:function(en){"use strict";en.exports={i8:"6.5.5"}},73184:function(en){"use strict";en.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.