From 95b0b79281cc02d3af255ff63413aca8efb11123 Mon Sep 17 00:00:00 2001 From: Austin Date: Fri, 29 Dec 2023 11:47:02 -0600 Subject: [PATCH] refactor: typescript update for batch query params --- .changeset/wild-donuts-clap.md | 5 + dist/index.d.ts | 264 +- dist/shadejs.cjs | 32 +- dist/shadejs.js | 5640 +++++++++--------- docs/queries/batch-query.md | 4 +- src/contracts/definitions/batchQuery.test.ts | 4 +- src/contracts/definitions/batchQuery.ts | 4 +- src/contracts/services/batchQuery.test.ts | 4 +- src/contracts/services/batchQuery.ts | 6 +- src/contracts/services/swap.ts | 11 +- src/types/contracts/batchQuery/model.ts | 4 +- src/types/contracts/batchQuery/response.ts | 4 +- 12 files changed, 3045 insertions(+), 2937 deletions(-) create mode 100644 .changeset/wild-donuts-clap.md diff --git a/.changeset/wild-donuts-clap.md b/.changeset/wild-donuts-clap.md new file mode 100644 index 0000000..1b18f40 --- /dev/null +++ b/.changeset/wild-donuts-clap.md @@ -0,0 +1,5 @@ +--- +"@shadeprotocol/shadejs": patch +--- + +update typescript for batch query params which is causing build issues in a front end app diff --git a/dist/index.d.ts b/dist/index.d.ts index fe9e2fa..05ab772 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -15,21 +15,28 @@ declare type AMMSettings = { shade_dao_fee: Fee; stable_lp_fee: Fee; stable_shade_dao_fee: Fee; - shade_dao_address: Contract; + shade_dao_address: ContractData; }; -declare type BalanceResponse = { +export declare type BalanceResponse = { balance: { amount: string; }; }; +declare type BatchPairConfig = { + pairContractAddress: string; + pairConfig: PairConfig; +}; + declare type BatchPairInfo = { pairContractAddress: string; pairInfo: PairInfo; }; -declare type BatchPairsInfo = BatchPairInfo[]; +export declare type BatchPairsConfig = BatchPairConfig[]; + +export declare type BatchPairsInfo = BatchPairInfo[]; /** * batch query of multiple contracts/message at a time @@ -39,18 +46,9 @@ export declare const batchQuery$: ({ contractAddress, codeHash, lcdEndpoint, cha codeHash?: string | undefined; lcdEndpoint?: string | undefined; chainId?: string | undefined; - queries: BatchQuery[]; + queries: BatchQueryParams[]; }) => Observable; -declare type BatchQuery = { - id: string | number; - contract: { - address: string; - codeHash: string; - }; - queryMsg: any; -}; - /** * batch query of multiple contracts/message at a time */ @@ -59,52 +57,83 @@ export declare function batchQuery({ contractAddress, codeHash, lcdEndpoint, cha codeHash?: string; lcdEndpoint?: string; chainId?: string; - queries: BatchQuery[]; + queries: BatchQueryParams[]; }): Promise; -declare type BatchQuery_2 = { - id: string; - contract: { - address: string; - code_hash: string; - }; - response: { - response: string; - }; -}; +/** + * query the config for multiple pairs at one time + */ +export declare function batchQueryPairsConfig$({ queryRouterContractAddress, queryRouterCodeHash, lcdEndpoint, chainId, pairsContracts, }: { + queryRouterContractAddress: string; + queryRouterCodeHash?: string; + lcdEndpoint?: string; + chainId?: string; + pairsContracts: Contract[]; +}): Observable; /** - * query the pair info for multiple pools at one time + * query the config for multiple pairs at one time + */ +export declare function batchQueryPairsConfig({ queryRouterContractAddress, queryRouterCodeHash, lcdEndpoint, chainId, pairsContracts, }: { + queryRouterContractAddress: string; + queryRouterCodeHash?: string; + lcdEndpoint?: string; + chainId?: string; + pairsContracts: Contract[]; +}): Promise; + +/** + * query the info for multiple pairs at one time */ export declare function batchQueryPairsInfo$({ queryRouterContractAddress, queryRouterCodeHash, lcdEndpoint, chainId, pairsContracts, }: { queryRouterContractAddress: string; queryRouterCodeHash?: string; lcdEndpoint?: string; chainId?: string; - pairsContracts: Contract_2[]; + pairsContracts: Contract[]; }): Observable; /** - * query the pair info for multiple pools at one time + * query the info for multiple pairs at one time */ export declare function batchQueryPairsInfo({ queryRouterContractAddress, queryRouterCodeHash, lcdEndpoint, chainId, pairsContracts, }: { queryRouterContractAddress: string; queryRouterCodeHash?: string; lcdEndpoint?: string; chainId?: string; - pairsContracts: Contract_2[]; + pairsContracts: Contract[]; }): Promise; -declare type BatchQueryParsedResponse = BatchQueryParsedResponseItem[]; +export declare type BatchQueryParams = { + id: string | number; + contract: { + address: string; + codeHash: string; + }; + queryMsg: any; +}; + +export declare type BatchQueryParsedResponse = BatchQueryParsedResponseItem[]; -declare type BatchQueryParsedResponseItem = { +export declare type BatchQueryParsedResponseItem = { id: string | number; response: any; }; -declare type BatchQueryResponse = { +export declare type BatchQueryResponse = { batch: { - responses: BatchQuery_2[]; + responses: BatchQueryResponseItem[]; + }; +}; + +declare type BatchQueryResponseItem = { + id: string; + contract: { + address: string; + code_hash: string; + }; + response: { + response: string; }; }; @@ -116,7 +145,7 @@ export declare function batchQueryStakingInfo$({ queryRouterContractAddress, que queryRouterCodeHash?: string; lcdEndpoint?: string; chainId?: string; - stakingContracts: Contract_2[]; + stakingContracts: Contract[]; }): Observable; /** @@ -127,15 +156,15 @@ export declare function batchQueryStakingInfo({ queryRouterContractAddress, quer queryRouterCodeHash?: string; lcdEndpoint?: string; chainId?: string; - stakingContracts: Contract_2[]; + stakingContracts: Contract[]; }): Promise; -declare type BatchSingleStakingInfo = { +export declare type BatchSingleStakingInfo = { stakingContractAddress: string; stakingInfo: StakingInfo; }; -declare type BatchStakingInfo = BatchSingleStakingInfo[]; +export declare type BatchStakingInfo = BatchSingleStakingInfo[]; /** * calculates the estimated output of swapping through a route given an input token amount @@ -149,7 +178,7 @@ export declare function calculateRoute({ inputTokenAmount, inputTokenContractAdd tokens: TokensConfig; }): Route; -declare type ClientData = { +export declare type ClientData = { client: SecretNetworkClient; endpoint: string; chainId: string; @@ -238,14 +267,14 @@ export declare function constantProductSwapToken1for0({ token0LiquidityAmount, t fee: BigNumber; }): BigNumber; -declare type Contract = { +export declare type Contract = { address: string; - code_hash: string; + codeHash: string; }; -declare type Contract_2 = { +export declare type ContractData = { address: string; - codeHash: string; + code_hash: string; }; declare type ContractInstantiationInfo = { @@ -301,45 +330,45 @@ export declare const decodeB64ToJson: (encodedData: string) => any; export declare const encodeJsonToB64: (toEncode: any) => string; -declare type FactoryConfig = { +export declare type FactoryConfig = { pairContractInstatiationInfo: ContractInstantiationInfo_2; lpTokenContractInstatiationInfo: ContractInstantiationInfo_2; - adminAuthContract: Contract_2; - authenticatorContract: Contract_2 | null; + adminAuthContract: Contract; + authenticatorContract: Contract | null; defaultPairSettings: { lpFee: number; daoFee: number; stableLpFee: number; stableDaoFee: number; - daoContract: Contract_2; + daoContract: Contract; }; }; -declare type FactoryConfigResponse = { +export declare type FactoryConfigResponse = { get_config: { pair_contract: ContractInstantiationInfo; amm_settings: AMMSettings; lp_token_contract: ContractInstantiationInfo; - authenticator: Contract | null; - admin_auth: Contract; + authenticator: ContractData | null; + admin_auth: ContractData; }; }; declare type FactoryPair = { - pairContract: Contract_2; - token0Contract: Contract_2; - token1Contract: Contract_2; + pairContract: Contract; + token0Contract: Contract; + token1Contract: Contract; isStable: boolean; isEnabled: boolean; }; -declare type FactoryPairs = { +export declare type FactoryPairs = { pairs: FactoryPair[]; startIndex: number; endIndex: number; }; -declare type FactoryPairsResponse = { +export declare type FactoryPairsResponse = { list_a_m_m_pairs: { amm_pairs: AMMPair[]; }; @@ -350,6 +379,11 @@ declare type Fee = { denom: number; }; +export declare enum GasMultiplier { + STABLE = 2.7, + CONSTANT_PRODUCT = 1 +} + /** * Generates random string of characters, used to add entropy to TX data * */ @@ -399,12 +433,12 @@ export declare const getSecretNetworkClient$: ({ lcdEndpoint, chainId, walletAcc walletAccount?: WalletAccount | undefined; }) => Observable; -declare type HandleMsg = Record; +export declare type HandleMsg = Record; /** * batch query multiple contracts/messages at one time */ -export declare const msgBatchQuery: (queries: BatchQuery[]) => { +export declare const msgBatchQuery: (queries: BatchQueryParams[]) => { batch: { queries: { id: string; @@ -490,7 +524,7 @@ export declare function msgSwap({ routerContractAddress, routerCodeHash, sendAmo path: Paths; }): HandleMsg; -declare type OraclePriceResponse = { +export declare type OraclePriceResponse = { key: string; data: { rate: string; @@ -499,34 +533,34 @@ declare type OraclePriceResponse = { }; }; -declare type OraclePricesResponse = OraclePriceResponse[]; +export declare type OraclePricesResponse = OraclePriceResponse[]; -declare type PairConfig = { - factoryContract: Contract_2 | null; - lpTokenContract: Contract_2 | null; - stakingContract: Contract_2 | null; - token0Contract: Contract_2; - token1Contract: Contract_2; +export declare type PairConfig = { + factoryContract: Contract | null; + lpTokenContract: Contract | null; + stakingContract: Contract | null; + token0Contract: Contract; + token1Contract: Contract; isStable: boolean; fee: CustomFee_2 | null; }; -declare type PairConfigResponse = { +export declare type PairConfigResponse = { get_config: { - factory_contract: Contract | null; - lp_token: Contract | null; - staking_contract: Contract | null; + factory_contract: ContractData | null; + lp_token: ContractData | null; + staking_contract: ContractData | null; pair: TokenPair; custom_fee: CustomFee | null; }; }; -declare type PairInfo = { +export declare type PairInfo = { lpTokenAmount: string; - lpTokenContract: Contract_2; - token0Contract: Contract_2; - token1Contract: Contract_2; - factoryContract: Contract_2 | null; + lpTokenContract: Contract; + token0Contract: Contract; + token1Contract: Contract; + factoryContract: Contract | null; daoContractAddress: string; isStable: boolean; token0Amount: string; @@ -537,10 +571,10 @@ declare type PairInfo = { contractVersion: number; }; -declare type PairInfoResponse = { +export declare type PairInfoResponse = { get_pair_info: { - liquidity_token: Contract; - factory: Contract | null; + liquidity_token: ContractData; + factory: ContractData | null; pair: TokenPair; amount_0: string; amount_1: string; @@ -564,6 +598,12 @@ export declare const parseBalance: (response: BalanceResponse) => string; */ export declare function parseBatchQuery(response: BatchQueryResponse): BatchQueryParsedResponse; +/** + * parses the pair config response from a batch query of + * multiple pair contracts + */ +export declare const parseBatchQueryPairConfigResponse: (response: BatchQueryParsedResponse) => BatchPairsConfig; + /** * parses the pair info reponse from a batch query of * multiple pair contracts @@ -576,18 +616,18 @@ export declare const parseBatchQueryPairInfoResponse: (response: BatchQueryParse */ export declare const parseBatchQueryStakingInfoResponse: (response: BatchQueryParsedResponse) => BatchStakingInfo; -declare type ParsedOraclePriceResponse = { +export declare type ParsedOraclePriceResponse = { oracleKey: string; rate: string; lastUpdatedBase: number; lastUpdatedQuote: number; }; -declare type ParsedOraclePricesResponse = { +export declare type ParsedOraclePricesResponse = { [oracleKey: string]: ParsedOraclePriceResponse; }; -declare type ParsedSwapResponse = { +export declare type ParsedSwapResponse = { txHash: string; inputTokenAddress: string | undefined; outputTokenAddress: string | undefined; @@ -641,12 +681,19 @@ export declare const parseSwapResponse: (response: TxResponse) => ParsedSwapResp export declare const parseTokenInfo: (response: TokenInfoResponse) => TokenInfo; -declare type Path = { +export declare type Path = { poolContractAddress: string; poolCodeHash: string; }; -declare type Paths = Path[]; +declare type PathContractFormatted = { + addr: string; + code_hash: string; +}; + +export declare type Paths = Path[]; + +export declare type PathsContractFormatted = PathContractFormatted[]; /** * query the factory config @@ -802,6 +849,14 @@ export declare function querySnip20TokenInfo({ snip20ContractAddress, snip20Code declare type RewardTokenInfo = { token: Contract; + rewardPerSecond: string; + rewardPerStakedToken: string; + validTo: number; + lastUpdated: number; +}; + +declare type RewardTokenInfoResponse = { + token: ContractData; decimals: number; reward_per_second: string; reward_per_staked_token: string; @@ -809,15 +864,7 @@ declare type RewardTokenInfo = { last_updated: number; }; -declare type RewardTokenInfo_2 = { - token: Contract_2; - rewardPerSecond: string; - rewardPerStakedToken: string; - validTo: number; - lastUpdated: number; -}; - -declare type Route = { +export declare type Route = { inputAmount: BigNumber; quoteOutputAmount: BigNumber; quoteShadeDaoFee: BigNumber; @@ -870,7 +917,7 @@ export declare const snip20: { }; }; -declare type Snip20MessageRequest = { +export declare type Snip20MessageRequest = { msg: HandleMsg; transferAmount?: Coin; }; @@ -880,7 +927,7 @@ declare type StableInfo = { a: string; gamma1: string; gamma2: string; - oracle: Contract; + oracle: ContractData; min_trade_size_x_for_y: string; min_trade_size_y_for_x: string; max_price_impact_allowed: string; @@ -896,7 +943,7 @@ declare type StableParams = { alpha: string; gamma1: string; gamma2: string; - oracle: Contract_2; + oracle: Contract; token0Data: StableTokenData_2; token1Data: StableTokenData_2; minTradeSizeXForY: string; @@ -943,6 +990,11 @@ export declare function stableReverseSwapToken1for0({ outputToken0Amount, poolTo priceImpactLimit: BigNumber; }): BigNumber; +export declare enum StableswapCalculationErrorType { + LIQUIDITY = "liquidity error", + MIN_TRADE_SIZE = "min trade size" +} + /** * returns price impact of a simulated swap of token0 for token1 * inputs token amounts must be passsed in as human readable form @@ -1029,22 +1081,22 @@ declare type StableTokenData_2 = { decimals: number; }; -declare type StakingConfigResponse = { - lp_token: Contract; +export declare type StakingConfigResponse = { + lp_token: ContractData; amm_pair: string; - admin_auth: Contract; - query_auth: Contract | null; + admin_auth: ContractData; + query_auth: ContractData | null; total_amount_staked: string; - reward_tokens: RewardTokenInfo[]; + reward_tokens: RewardTokenInfoResponse[]; }; -declare type StakingInfo = { - lpTokenContract: Contract_2; +export declare type StakingInfo = { + lpTokenContract: Contract; pairContractAddress: string; - adminAuthContract: Contract_2; - queryAuthContract: Contract_2 | null; + adminAuthContract: Contract; + queryAuthContract: Contract | null; totalStakedAmount: string; - rewardTokens: RewardTokenInfo_2[]; + rewardTokens: RewardTokenInfo[]; }; declare type TokenConfig = { @@ -1052,14 +1104,14 @@ declare type TokenConfig = { decimals: number; }; -declare type TokenInfo = { +export declare type TokenInfo = { name: string; symbol: string; decimals: number; totalSupply: string; }; -declare type TokenInfoResponse = { +export declare type TokenInfoResponse = { token_info: { name: string; symbol: string; @@ -1070,9 +1122,9 @@ declare type TokenInfoResponse = { declare type TokenPair = [CustomToken, CustomToken, boolean]; -declare type TokensConfig = TokenConfig[]; +export declare type TokensConfig = TokenConfig[]; -declare type WalletAccount = WalletSigner & WalletAddress; +export declare type WalletAccount = WalletSigner & WalletAddress; declare type WalletAddress = { walletAddress: string; diff --git a/dist/shadejs.cjs b/dist/shadejs.cjs index bf646fd..3f526c7 100644 --- a/dist/shadejs.cjs +++ b/dist/shadejs.cjs @@ -1,7 +1,7 @@ -"use strict";var ut=Object.defineProperty;var lt=(D,e,p)=>e in D?ut(D,e,{enumerable:!0,configurable:!0,writable:!0,value:p}):D[e]=p;var Fe=(D,e,p)=>(lt(D,typeof e!="symbol"?e+"":e,p),p);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var g=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},support={searchParams:"URLSearchParams"in g,iterable:"Symbol"in g&&"iterator"in Symbol,blob:"FileReader"in g&&"Blob"in g&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in g,arrayBuffer:"ArrayBuffer"in g};function isDataView(D){return D&&DataView.prototype.isPrototypeOf(D)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(D){return D&&viewClasses.indexOf(Object.prototype.toString.call(D))>-1};function normalizeName(D){if(typeof D!="string"&&(D=String(D)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(D)||D==="")throw new TypeError('Invalid character in header field name: "'+D+'"');return D.toLowerCase()}function normalizeValue(D){return typeof D!="string"&&(D=String(D)),D}function iteratorFor(D){var e={next:function(){var p=D.shift();return{done:p===void 0,value:p}}};return support.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Headers(D){this.map={},D instanceof Headers?D.forEach(function(e,p){this.append(p,e)},this):Array.isArray(D)?D.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):D&&Object.getOwnPropertyNames(D).forEach(function(e){this.append(e,D[e])},this)}Headers.prototype.append=function(D,e){D=normalizeName(D),e=normalizeValue(e);var p=this.map[D];this.map[D]=p?p+", "+e:e};Headers.prototype.delete=function(D){delete this.map[normalizeName(D)]};Headers.prototype.get=function(D){return D=normalizeName(D),this.has(D)?this.map[D]:null};Headers.prototype.has=function(D){return this.map.hasOwnProperty(normalizeName(D))};Headers.prototype.set=function(D,e){this.map[normalizeName(D)]=normalizeValue(e)};Headers.prototype.forEach=function(D,e){for(var p in this.map)this.map.hasOwnProperty(p)&&D.call(e,this.map[p],p,this)};Headers.prototype.keys=function(){var D=[];return this.forEach(function(e,p){D.push(p)}),iteratorFor(D)};Headers.prototype.values=function(){var D=[];return this.forEach(function(e){D.push(e)}),iteratorFor(D)};Headers.prototype.entries=function(){var D=[];return this.forEach(function(e,p){D.push([p,e])}),iteratorFor(D)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(D){if(!D._noBody){if(D.bodyUsed)return Promise.reject(new TypeError("Already read"));D.bodyUsed=!0}}function fileReaderReady(D){return new Promise(function(e,p){D.onload=function(){e(D.result)},D.onerror=function(){p(D.error)}})}function readBlobAsArrayBuffer(D){var e=new FileReader,p=fileReaderReady(e);return e.readAsArrayBuffer(D),p}function readBlobAsText(D){var e=new FileReader,p=fileReaderReady(e),w=/charset=([A-Za-z0-9_-]+)/.exec(D.type),O=w?w[1]:"utf-8";return e.readAsText(D,O),p}function readArrayBufferAsText(D){for(var e=new Uint8Array(D),p=new Array(e.length),w=0;w-1?e:D}function Request(D,e){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var p=e.body;if(D instanceof Request){if(D.bodyUsed)throw new TypeError("Already read");this.url=D.url,this.credentials=D.credentials,e.headers||(this.headers=new Headers(D.headers)),this.method=D.method,this.mode=D.mode,this.signal=D.signal,!p&&D._bodyInit!=null&&(p=D._bodyInit,D.bodyUsed=!0)}else this.url=String(D);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Headers(e.headers)),this.method=normalizeMethod(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in g){var k=new AbortController;return k.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&p)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(p),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var w=/([?&])_=[^&]*/;if(w.test(this.url))this.url=this.url.replace(w,"$1_="+new Date().getTime());else{var O=/\?/;this.url+=(O.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(D){var e=new FormData;return D.trim().split("&").forEach(function(p){if(p){var w=p.split("="),O=w.shift().replace(/\+/g," "),k=w.join("=").replace(/\+/g," ");e.append(decodeURIComponent(O),decodeURIComponent(k))}}),e}function parseHeaders(D){var e=new Headers,p=D.replace(/\r?\n[\t ]+/g," ");return p.split("\r").map(function(w){return w.indexOf(` -`)===0?w.substr(1,w.length):w}).forEach(function(w){var O=w.split(":"),k=O.shift().trim();if(k){var S=O.join(":").trim();try{e.append(k,S)}catch(a){console.warn("Response "+a.message)}}}),e}Body.call(Request.prototype);function Response(D,e){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new Headers(e.headers),this.url=e.url||"",this._initBody(D)}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 D=new Response(null,{status:200,statusText:""});return D.status=0,D.type="error",D};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(D,e){if(redirectStatuses.indexOf(e)===-1)throw new RangeError("Invalid status code");return new Response(null,{status:e,headers:{location:D}})};var DOMException=g.DOMException;try{new DOMException}catch{DOMException=function(e,p){this.message=e,this.name=p;var w=Error(e);this.stack=w.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$1(D,e){return new Promise(function(p,w){var O=new Request(D,e);if(O.signal&&O.signal.aborted)return w(new DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function S(){k.abort()}k.onload=function(){var c={statusText:k.statusText,headers:parseHeaders(k.getAllResponseHeaders()||"")};O.url.startsWith("file://")&&(k.status<200||k.status>599)?c.status=200:c.status=k.status,c.url="responseURL"in k?k.responseURL:c.headers.get("X-Request-URL");var u="response"in k?k.response:k.responseText;setTimeout(function(){p(new Response(u,c))},0)},k.onerror=function(){setTimeout(function(){w(new TypeError("Network request failed"))},0)},k.ontimeout=function(){setTimeout(function(){w(new TypeError("Network request timed out"))},0)},k.onabort=function(){setTimeout(function(){w(new DOMException("Aborted","AbortError"))},0)};function a(c){try{return c===""&&g.location.href?g.location.href:c}catch{return c}}if(k.open(O.method,a(O.url),!0),O.credentials==="include"?k.withCredentials=!0:O.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&(support.blob?k.responseType="blob":support.arrayBuffer&&(k.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof Headers||g.Headers&&e.headers instanceof g.Headers)){var t=[];Object.getOwnPropertyNames(e.headers).forEach(function(c){t.push(normalizeName(c)),k.setRequestHeader(c,normalizeValue(e.headers[c]))}),O.headers.forEach(function(c,u){t.indexOf(u)===-1&&k.setRequestHeader(u,c)})}else O.headers.forEach(function(c,u){k.setRequestHeader(u,c)});O.signal&&(O.signal.addEventListener("abort",S),k.onreadystatechange=function(){k.readyState===4&&O.signal.removeEventListener("abort",S)}),k.send(typeof O._bodyInit>"u"?null:O._bodyInit)})}fetch$1.polyfill=!0;g.fetch||(g.fetch=fetch$1,g.Headers=Headers,g.Request=Request,g.Response=Response);typeof window>"u"&&(global.window=globalThis);var isNumeric=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone(D){var e,p,w,O=h.prototype={constructor:h,toString:null,valueOf:null},k=new h(1),S=20,a=4,t=-7,c=21,u=-1e7,s=1e7,r=!1,n=1,o=0,i={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},f="0123456789abcdefghijklmnopqrstuvwxyz",d=!0;function h(M,N){var C,x,P,v,m,E,B,T,q=this;if(!(q instanceof h))return new h(M,N);if(N==null){if(M&&M._isBigNumber===!0){q.s=M.s,!M.c||M.e>s?q.c=q.e=null:M.e=10;m/=10,v++);v>s?q.c=q.e=null:(q.e=v,q.c=[M]);return}T=String(M)}else{if(!isNumeric.test(T=String(M)))return w(q,T,E);q.s=T.charCodeAt(0)==45?(T=T.slice(1),-1):1}(v=T.indexOf("."))>-1&&(T=T.replace(".","")),(m=T.search(/e/i))>0?(v<0&&(v=m),v+=+T.slice(m+1),T=T.substring(0,m)):v<0&&(v=T.length)}else{if(intCheck(N,2,f.length,"Base"),N==10&&d)return q=new h(M),l(q,S+q.e+1,a);if(T=String(M),E=typeof M=="number"){if(M*0!=0)return w(q,T,E,N);if(q.s=1/M<0?(T=T.slice(1),-1):1,h.DEBUG&&T.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+M)}else q.s=T.charCodeAt(0)===45?(T=T.slice(1),-1):1;for(C=f.slice(0,N),v=m=0,B=T.length;mv){v=B;continue}}else if(!P&&(T==T.toUpperCase()&&(T=T.toLowerCase())||T==T.toLowerCase()&&(T=T.toUpperCase()))){P=!0,m=-1,v=0;continue}return w(q,String(M),E,N)}E=!1,T=p(T,N,10,q.s),(v=T.indexOf("."))>-1?T=T.replace(".",""):v=T.length}for(m=0;T.charCodeAt(m)===48;m++);for(B=T.length;T.charCodeAt(--B)===48;);if(T=T.slice(m,++B)){if(B-=m,E&&h.DEBUG&&B>15&&(M>MAX_SAFE_INTEGER||M!==mathfloor(M)))throw Error(tooManyDigits+q.s*M);if((v=v-m-1)>s)q.c=q.e=null;else if(v=-MAX&&P<=MAX&&P===mathfloor(P)){if(x[0]===0){if(P===0&&x.length===1)return!0;break e}if(N=(P+1)%LOG_BASE,N<1&&(N+=LOG_BASE),String(x[0]).length==N){for(N=0;N=BASE||C!==mathfloor(C))break e;if(C!==0)return!0}}}else if(x===null&&P===null&&(v===null||v===1||v===-1))return!0;throw Error(bignumberError+"Invalid BigNumber: "+M)},h.maximum=h.max=function(){return b(arguments,-1)},h.minimum=h.min=function(){return b(arguments,1)},h.random=function(){var M=9007199254740992,N=Math.random()*M&2097151?function(){return mathfloor(Math.random()*M)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(C){var x,P,v,m,E,B=0,T=[],q=new h(k);if(C==null?C=S:intCheck(C,0,MAX),m=mathceil(C/LOG_BASE),r)if(crypto.getRandomValues){for(x=crypto.getRandomValues(new Uint32Array(m*=2));B>>11),E>=9e15?(P=crypto.getRandomValues(new Uint32Array(2)),x[B]=P[0],x[B+1]=P[1]):(T.push(E%1e14),B+=2);B=m/2}else if(crypto.randomBytes){for(x=crypto.randomBytes(m*=7);B=9e15?crypto.randomBytes(7).copy(x,B):(T.push(E%1e14),B+=7);B=m/7}else throw r=!1,Error(bignumberError+"crypto unavailable");if(!r)for(;B=10;E/=10,B++);BP-1&&(E[m+1]==null&&(E[m+1]=0),E[m+1]+=E[m]/P|0,E[m]%=P)}return E.reverse()}return function(C,x,P,v,m){var E,B,T,q,te,re,ie,J,ee=C.indexOf("."),G=S,$=a;for(ee>=0&&(q=o,o=0,C=C.replace(".",""),J=new h(x),re=J.pow(C.length-ee),o=q,J.c=N(toFixedPoint(coeffToString(re.c),re.e,"0"),10,P,M),J.e=J.c.length),ie=N(C,x,P,m?(E=f,M):(E=M,f)),T=q=ie.length;ie[--q]==0;ie.pop());if(!ie[0])return E.charAt(0);if(ee<0?--T:(re.c=ie,re.e=T,re.s=v,re=e(re,J,G,$,P),ie=re.c,te=re.r,T=re.e),B=T+G+1,ee=ie[B],q=P/2,te=te||B<0||ie[B+1]!=null,te=$<4?(ee!=null||te)&&($==0||$==(re.s<0?3:2)):ee>q||ee==q&&($==4||te||$==6&&ie[B-1]&1||$==(re.s<0?8:7)),B<1||!ie[0])C=te?toFixedPoint(E.charAt(1),-G,E.charAt(0)):E.charAt(0);else{if(ie.length=B,te)for(--P;++ie[--B]>P;)ie[B]=0,B||(++T,ie=[1].concat(ie));for(q=ie.length;!ie[--q];);for(ee=0,C="";ee<=q;C+=E.charAt(ie[ee++]));C=toFixedPoint(C,T,E.charAt(0))}return C}}(),e=function(){function M(x,P,v){var m,E,B,T,q=0,te=x.length,re=P%SQRT_BASE,ie=P/SQRT_BASE|0;for(x=x.slice();te--;)B=x[te]%SQRT_BASE,T=x[te]/SQRT_BASE|0,m=ie*B+T*re,E=re*B+m%SQRT_BASE*SQRT_BASE+q,q=(E/v|0)+(m/SQRT_BASE|0)+ie*T,x[te]=E%v;return q&&(x=[q].concat(x)),x}function N(x,P,v,m){var E,B;if(v!=m)B=v>m?1:-1;else for(E=B=0;EP[E]?1:-1;break}return B}function C(x,P,v,m){for(var E=0;v--;)x[v]-=E,E=x[v]1;x.splice(0,1));}return function(x,P,v,m,E){var B,T,q,te,re,ie,J,ee,G,$,W,Y,F,ae,he,le,ce,ve=x.s==P.s?1:-1,de=x.c,pe=P.c;if(!de||!de[0]||!pe||!pe[0])return new h(!x.s||!P.s||(de?pe&&de[0]==pe[0]:!pe)?NaN:de&&de[0]==0||!pe?ve*0:ve/0);for(ee=new h(ve),G=ee.c=[],T=x.e-P.e,ve=v+T+1,E||(E=BASE,T=bitFloor(x.e/LOG_BASE)-bitFloor(P.e/LOG_BASE),ve=ve/LOG_BASE|0),q=0;pe[q]==(de[q]||0);q++);if(pe[q]>(de[q]||0)&&T--,ve<0)G.push(1),te=!0;else{for(ae=de.length,le=pe.length,q=0,ve+=2,re=mathfloor(E/(pe[0]+1)),re>1&&(pe=M(pe,re,E),de=M(de,re,E),le=pe.length,ae=de.length),F=le,$=de.slice(0,le),W=$.length;W=E/2&&he++;do{if(re=0,B=N(pe,$,le,W),B<0){if(Y=$[0],le!=W&&(Y=Y*E+($[1]||0)),re=mathfloor(Y/he),re>1)for(re>=E&&(re=E-1),ie=M(pe,re,E),J=ie.length,W=$.length;N(ie,$,J,W)==1;)re--,C(ie,le=10;ve/=10,q++);l(ee,v+(ee.e=q+T*LOG_BASE-1)+1,m,te)}else ee.e=T,ee.r=+te;return ee}}();function _(M,N,C,x){var P,v,m,E,B;if(C==null?C=a:intCheck(C,0,8),!M.c)return M.toString();if(P=M.c[0],m=M.e,N==null)B=coeffToString(M.c),B=x==1||x==2&&(m<=t||m>=c)?toExponential(B,m):toFixedPoint(B,m,"0");else if(M=l(new h(M),N,C),v=M.e,B=coeffToString(M.c),E=B.length,x==1||x==2&&(N<=v||v<=t)){for(;EE){if(--N>0)for(B+=".";N--;B+="0");}else if(N+=v-E,N>0)for(v+1==E&&(B+=".");N--;B+="0");return M.s<0&&P?"-"+B:B}function b(M,N){for(var C,x,P=1,v=new h(M[0]);P=10;P/=10,x++);return(C=x+C*LOG_BASE-1)>s?M.c=M.e=null:C=10;E/=10,P++);if(v=N-P,v<0)v+=LOG_BASE,m=N,B=te[T=0],q=mathfloor(B/re[P-m-1]%10);else if(T=mathceil((v+1)/LOG_BASE),T>=te.length)if(x){for(;te.length<=T;te.push(0));B=q=0,P=1,v%=LOG_BASE,m=v-LOG_BASE+1}else break e;else{for(B=E=te[T],P=1;E>=10;E/=10,P++);v%=LOG_BASE,m=v-LOG_BASE+P,q=m<0?0:mathfloor(B/re[P-m-1]%10)}if(x=x||N<0||te[T+1]!=null||(m<0?B:B%re[P-m-1]),x=C<4?(q||x)&&(C==0||C==(M.s<0?3:2)):q>5||q==5&&(C==4||x||C==6&&(v>0?m>0?B/re[P-m]:0:te[T-1])%10&1||C==(M.s<0?8:7)),N<1||!te[0])return te.length=0,x?(N-=M.e+1,te[0]=re[(LOG_BASE-N%LOG_BASE)%LOG_BASE],M.e=-N||0):te[0]=M.e=0,M;if(v==0?(te.length=T,E=1,T--):(te.length=T+1,E=re[LOG_BASE-v],te[T]=m>0?mathfloor(B/re[P-m]%re[m])*E:0),x)for(;;)if(T==0){for(v=1,m=te[0];m>=10;m/=10,v++);for(m=te[0]+=E,E=1;m>=10;m/=10,E++);v!=E&&(M.e++,te[0]==BASE&&(te[0]=1));break}else{if(te[T]+=E,te[T]!=BASE)break;te[T--]=0,E=1}for(v=te.length;te[--v]===0;te.pop());}M.e>s?M.c=M.e=null:M.e=c?toExponential(N,C):toFixedPoint(N,C,"0"),M.s<0?"-"+N:N)}return O.absoluteValue=O.abs=function(){var M=new h(this);return M.s<0&&(M.s=1),M},O.comparedTo=function(M,N){return compare(this,new h(M,N))},O.decimalPlaces=O.dp=function(M,N){var C,x,P,v=this;if(M!=null)return intCheck(M,0,MAX),N==null?N=a:intCheck(N,0,8),l(new h(v),M+v.e+1,N);if(!(C=v.c))return null;if(x=((P=C.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,P=C[P])for(;P%10==0;P/=10,x--);return x<0&&(x=0),x},O.dividedBy=O.div=function(M,N){return e(this,new h(M,N),S,a)},O.dividedToIntegerBy=O.idiv=function(M,N){return e(this,new h(M,N),0,1)},O.exponentiatedBy=O.pow=function(M,N){var C,x,P,v,m,E,B,T,q,te=this;if(M=new h(M),M.c&&!M.isInteger())throw Error(bignumberError+"Exponent not an integer: "+j(M));if(N!=null&&(N=new h(N)),E=M.e>14,!te.c||!te.c[0]||te.c[0]==1&&!te.e&&te.c.length==1||!M.c||!M.c[0])return q=new h(Math.pow(+j(te),E?M.s*(2-isOdd(M)):+j(M))),N?q.mod(N):q;if(B=M.s<0,N){if(N.c?!N.c[0]:!N.s)return new h(NaN);x=!B&&te.isInteger()&&N.isInteger(),x&&(te=te.mod(N))}else{if(M.e>9&&(te.e>0||te.e<-1||(te.e==0?te.c[0]>1||E&&te.c[1]>=24e7:te.c[0]<8e13||E&&te.c[0]<=9999975e7)))return v=te.s<0&&isOdd(M)?-0:0,te.e>-1&&(v=1/v),new h(B?1/v:v);o&&(v=mathceil(o/LOG_BASE+2))}for(E?(C=new h(.5),B&&(M.s=1),T=isOdd(M)):(P=Math.abs(+j(M)),T=P%2),q=new h(k);;){if(T){if(q=q.times(te),!q.c)break;v?q.c.length>v&&(q.c.length=v):x&&(q=q.mod(N))}if(P){if(P=mathfloor(P/2),P===0)break;T=P%2}else if(M=M.times(C),l(M,M.e+1,1),M.e>14)T=isOdd(M);else{if(P=+j(M),P===0)break;T=P%2}te=te.times(te),v?te.c&&te.c.length>v&&(te.c.length=v):x&&(te=te.mod(N))}return x?q:(B&&(q=k.div(q)),N?q.mod(N):v?l(q,o,a,m):q)},O.integerValue=function(M){var N=new h(this);return M==null?M=a:intCheck(M,0,8),l(N,N.e+1,M)},O.isEqualTo=O.eq=function(M,N){return compare(this,new h(M,N))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(M,N){return compare(this,new h(M,N))>0},O.isGreaterThanOrEqualTo=O.gte=function(M,N){return(N=compare(this,new h(M,N)))===1||N===0},O.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},O.isLessThan=O.lt=function(M,N){return compare(this,new h(M,N))<0},O.isLessThanOrEqualTo=O.lte=function(M,N){return(N=compare(this,new h(M,N)))===-1||N===0},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&this.c[0]==0},O.minus=function(M,N){var C,x,P,v,m=this,E=m.s;if(M=new h(M,N),N=M.s,!E||!N)return new h(NaN);if(E!=N)return M.s=-N,m.plus(M);var B=m.e/LOG_BASE,T=M.e/LOG_BASE,q=m.c,te=M.c;if(!B||!T){if(!q||!te)return q?(M.s=-N,M):new h(te?m:NaN);if(!q[0]||!te[0])return te[0]?(M.s=-N,M):new h(q[0]?m:a==3?-0:0)}if(B=bitFloor(B),T=bitFloor(T),q=q.slice(),E=B-T){for((v=E<0)?(E=-E,P=q):(T=B,P=te),P.reverse(),N=E;N--;P.push(0));P.reverse()}else for(x=(v=(E=q.length)<(N=te.length))?E:N,E=N=0;N0)for(;N--;q[C++]=0);for(N=BASE-1;x>E;){if(q[--x]=0;){for(C=0,re=Y[P]%G,ie=Y[P]/G|0,m=B,v=P+m;v>P;)T=W[--m]%G,q=W[m]/G|0,E=ie*T+q*re,T=re*T+E%G*G+J[v]+C,C=(T/ee|0)+(E/G|0)+ie*q,J[v--]=T%ee;J[v]=C}return C?++x:J.splice(0,1),I(M,J,x)},O.negated=function(){var M=new h(this);return M.s=-M.s||null,M},O.plus=function(M,N){var C,x=this,P=x.s;if(M=new h(M,N),N=M.s,!P||!N)return new h(NaN);if(P!=N)return M.s=-N,x.minus(M);var v=x.e/LOG_BASE,m=M.e/LOG_BASE,E=x.c,B=M.c;if(!v||!m){if(!E||!B)return new h(P/0);if(!E[0]||!B[0])return B[0]?M:new h(E[0]?x:P*0)}if(v=bitFloor(v),m=bitFloor(m),E=E.slice(),P=v-m){for(P>0?(m=v,C=B):(P=-P,C=E),C.reverse();P--;C.push(0));C.reverse()}for(P=E.length,N=B.length,P-N<0&&(C=B,B=E,E=C,N=P),P=0;N;)P=(E[--N]=E[N]+B[N]+P)/BASE|0,E[N]=BASE===E[N]?0:E[N]%BASE;return P&&(E=[P].concat(E),++m),I(M,E,m)},O.precision=O.sd=function(M,N){var C,x,P,v=this;if(M!=null&&M!==!!M)return intCheck(M,1,MAX),N==null?N=a:intCheck(N,0,8),l(new h(v),M,N);if(!(C=v.c))return null;if(P=C.length-1,x=P*LOG_BASE+1,P=C[P]){for(;P%10==0;P/=10,x--);for(P=C[0];P>=10;P/=10,x++);}return M&&v.e+1>x&&(x=v.e+1),x},O.shiftedBy=function(M){return intCheck(M,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times("1e"+M)},O.squareRoot=O.sqrt=function(){var M,N,C,x,P,v=this,m=v.c,E=v.s,B=v.e,T=S+4,q=new h("0.5");if(E!==1||!m||!m[0])return new h(!E||E<0&&(!m||m[0])?NaN:m?v:1/0);if(E=Math.sqrt(+j(v)),E==0||E==1/0?(N=coeffToString(m),(N.length+B)%2==0&&(N+="0"),E=Math.sqrt(+N),B=bitFloor((B+1)/2)-(B<0||B%2),E==1/0?N="5e"+B:(N=E.toExponential(),N=N.slice(0,N.indexOf("e")+1)+B),C=new h(N)):C=new h(E+""),C.c[0]){for(B=C.e,E=B+T,E<3&&(E=0);;)if(P=C,C=q.times(P.plus(e(v,P,T,1))),coeffToString(P.c).slice(0,E)===(N=coeffToString(C.c)).slice(0,E))if(C.e0&&J>0){for(v=J%E||E,q=ie.substr(0,v);v0&&(q+=T+ie.slice(v)),re&&(q="-"+q)}x=te?q+(C.decimalSeparator||"")+((B=+C.fractionGroupSize)?te.replace(new RegExp("\\d{"+B+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):te):q}return(C.prefix||"")+x+(C.suffix||"")},O.toFraction=function(M){var N,C,x,P,v,m,E,B,T,q,te,re,ie=this,J=ie.c;if(M!=null&&(E=new h(M),!E.isInteger()&&(E.c||E.s!==1)||E.lt(k)))throw Error(bignumberError+"Argument "+(E.isInteger()?"out of range: ":"not an integer: ")+j(E));if(!J)return new h(ie);for(N=new h(k),T=C=new h(k),x=B=new h(k),re=coeffToString(J),v=N.e=re.length-ie.e-1,N.c[0]=POWS_TEN[(m=v%LOG_BASE)<0?LOG_BASE+m:m],M=!M||E.comparedTo(N)>0?v>0?N:T:E,m=s,s=1/0,E=new h(re),B.c[0]=0;q=e(E,N,0,1),P=C.plus(q.times(x)),P.comparedTo(M)!=1;)C=x,x=P,T=B.plus(q.times(P=T)),B=P,N=E.minus(q.times(P=N)),E=P;return P=e(M.minus(C),x,0,1),B=B.plus(P.times(T)),C=C.plus(P.times(x)),B.s=T.s=ie.s,v=v*2,te=e(T,x,v,a).minus(ie).abs().comparedTo(e(B,C,v,a).minus(ie).abs())<1?[T,x]:[B,C],s=m,te},O.toNumber=function(){return+j(this)},O.toPrecision=function(M,N){return M!=null&&intCheck(M,1,MAX),_(this,M,N,2)},O.toString=function(M){var N,C=this,x=C.s,P=C.e;return P===null?x?(N="Infinity",x<0&&(N="-"+N)):N="NaN":(M==null?N=P<=t||P>=c?toExponential(coeffToString(C.c),P):toFixedPoint(coeffToString(C.c),P,"0"):M===10&&d?(C=l(new h(C),S+P+1,a),N=toFixedPoint(coeffToString(C.c),C.e,"0")):(intCheck(M,2,f.length,"Base"),N=p(toFixedPoint(coeffToString(C.c),P,"0"),10,M,x,!0)),x<0&&C.c[0]&&(N="-"+N)),N},O.valueOf=O.toJSON=function(){return j(this)},O._isBigNumber=!0,O[Symbol.toStringTag]="BigNumber",O[Symbol.for("nodejs.util.inspect.custom")]=O.valueOf,D!=null&&h.set(D),h}function bitFloor(D){var e=D|0;return D>0||D===e?e:e-1}function coeffToString(D){for(var e,p,w=1,O=D.length,k=D[0]+"";wc^p?1:-1;for(a=(t=O.length)<(c=k.length)?t:c,S=0;Sk[S]^p?1:-1;return t==c?0:t>c^p?1:-1}function intCheck(D,e,p,w){if(Dp||D!==mathfloor(D))throw Error(bignumberError+(w||"Argument")+(typeof D=="number"?Dp?" out of range: ":" not an integer: ":" not a primitive number: ")+String(D))}function isOdd(D){var e=D.c.length-1;return bitFloor(D.e/LOG_BASE)==e&&D.c[e]%2!=0}function toExponential(D,e){return(D.length>1?D.charAt(0)+"."+D.slice(1):D)+(e<0?"e":"e+")+e}function toFixedPoint(D,e,p){var w,O;if(e<0){for(O=p+".";++e;O+=p);D=O+D}else if(w=D.length,++e>w){for(O=p,e-=w;--e;O+=p);D+=O}else eBuffer.from(JSON.stringify(D),"utf8").toString("base64"),decodeB64ToJson=D=>JSON.parse(Buffer.from(D,"base64").toString("utf8")),generatePadding=()=>{let D;(O=>{O[O.MAX=15]="MAX",O[O.MIN=8]="MIN"})(D||(D={}));const e=Math.floor(Math.random()*(15-8+1))+8;let p="";const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let O=0;O(BigNumber.config({DECIMAL_PLACES:18}),BigNumber(D).dividedBy(BigNumber(10).pow(e))),convertCoinToUDenom=(D,e)=>typeof D=="string"||typeof D=="number"?BigNumber(D).multipliedBy(BigNumber(10).pow(e)).toFixed(0):D.multipliedBy(BigNumber(10).pow(e)).toFixed(0);function getTokenDecimalsByTokenConfig(D,e){const p=e.filter(w=>w.tokenContractAddress===D);if(p.length===0)throw new Error(`token ${D} not available`);if(p.length>1)throw new Error(`Duplicate ${D} tokens found`);return p[0].decimals}const msgBatchQuery=D=>({batch:{queries:D.map(e=>({id:encodeJsonToB64(e.id),contract:{address:e.contract.address,code_hash:e.contract.codeHash},query:encodeJsonToB64(e.queryMsg)}))}}),msgQueryOraclePrice=D=>({get_price:{key:D}}),msgQueryOraclePrices=D=>({get_prices:{keys:D}}),snip20={queries:{getBalance(D,e){return{balance:{address:D,key:e}}},tokenInfo(){return{token_info:{}}}},messages:{send({recipient:D,recipientCodeHash:e,amount:p,handleMsg:w,padding:O}){return{msg:{send:{recipient:D,recipient_code_hash:e,amount:p,msg:w!==null?encodeJsonToB64(w):null,padding:O}}}},transfer({recipient:D,amount:e,padding:p}){return{msg:{transfer:{recipient:D,amount:e,padding:p}}}},deposit(D,e){return{msg:{deposit:{}},transferAmount:{amount:D,denom:e}}},redeem({amount:D,denom:e,padding:p}){return{msg:{redeem:{amount:D,denom:e,padding:p}}}},increaseAllowance({spender:D,amount:e,expiration:p,padding:w}){return{msg:{increase_allowance:{spender:D,amount:e,expiration:p,padding:w}}}},createViewingKey(D,e){return{msg:{set_viewing_key:{key:D,padding:e}}}}}},msgQueryFactoryConfig=()=>({get_config:{}}),msgQueryFactoryPairs=(D,e)=>({list_a_m_m_pairs:{pagination:{start:D,limit:e}}}),msgQueryPairConfig=()=>({get_config:{}}),msgQueryPairInfo=()=>({get_pair_info:{}}),msgQueryStakingConfig=()=>({get_config:{}});function msgSwap({routerContractAddress:D,routerCodeHash:e,sendAmount:p,minExpectedReturnAmount:w,path:O}){const k=O.map(a=>({addr:a.poolContractAddress,code_hash:a.poolCodeHash})),S={swap_tokens_for_exact:{expected_return:w,path:k}};return snip20.messages.send({recipient:D,recipientCodeHash:e,amount:p,handleMsg:S,padding:generatePadding()}).msg}var extendStatics=function(D,e){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,w){p.__proto__=w}||function(p,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(p[O]=w[O])},extendStatics(D,e)};function __extends(D,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");extendStatics(D,e);function p(){this.constructor=D}D.prototype=e===null?Object.create(e):(p.prototype=e.prototype,new p)}function __awaiter(D,e,p,w){function O(k){return k instanceof p?k:new p(function(S){S(k)})}return new(p||(p=Promise))(function(k,S){function a(u){try{c(w.next(u))}catch(s){S(s)}}function t(u){try{c(w.throw(u))}catch(s){S(s)}}function c(u){u.done?k(u.value):O(u.value).then(a,t)}c((w=w.apply(D,e||[])).next())})}function __generator(D,e){var p={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},w,O,k,S;return S={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function a(c){return function(u){return t([c,u])}}function t(c){if(w)throw new TypeError("Generator is already executing.");for(;S&&(S=0,c[0]&&(p=0)),p;)try{if(w=1,O&&(k=c[0]&2?O.return:c[0]?O.throw||((k=O.return)&&k.call(O),0):O.next)&&!(k=k.call(O,c[1])).done)return k;switch(O=0,k&&(c=[c[0]&2,k.value]),c[0]){case 0:case 1:k=c;break;case 4:return p.label++,{value:c[1],done:!1};case 5:p.label++,O=c[1],c=[0];continue;case 7:c=p.ops.pop(),p.trys.pop();continue;default:if(k=p.trys,!(k=k.length>0&&k[k.length-1])&&(c[0]===6||c[0]===2)){p=0;continue}if(c[0]===3&&(!k||c[1]>k[0]&&c[1]=D.length&&(D=void 0),{value:D&&D[w++],done:!D}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(D,e){var p=typeof Symbol=="function"&&D[Symbol.iterator];if(!p)return D;var w=p.call(D),O,k=[],S;try{for(;(e===void 0||e-- >0)&&!(O=w.next()).done;)k.push(O.value)}catch(a){S={error:a}}finally{try{O&&!O.done&&(p=w.return)&&p.call(w)}finally{if(S)throw S.error}}return k}function __spreadArray(D,e,p){if(p||arguments.length===2)for(var w=0,O=e.length,k;w1||a(r,n)})})}function a(r,n){try{t(w[r](n))}catch(o){s(k[0][3],o)}}function t(r){r.value instanceof __await?Promise.resolve(r.value.v).then(c,u):s(k[0][2],r)}function c(r){a("next",r)}function u(r){a("throw",r)}function s(r,n){r(n),k.shift(),k.length&&a(k[0][0],k[0][1])}}function __asyncValues(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=D[Symbol.asyncIterator],p;return e?e.call(D):(D=typeof __values=="function"?__values(D):D[Symbol.iterator](),p={},w("next"),w("throw"),w("return"),p[Symbol.asyncIterator]=function(){return this},p);function w(k){p[k]=D[k]&&function(S){return new Promise(function(a,t){S=D[k](S),O(a,t,S.done,S.value)})}}function O(k,S,a,t){Promise.resolve(t).then(function(c){k({value:c,done:a})},S)}}typeof SuppressedError=="function"&&SuppressedError;function isFunction(D){return typeof D=="function"}function createErrorClass(D){var e=function(w){Error.call(w),w.stack=new Error().stack},p=D(e);return p.prototype=Object.create(Error.prototype),p.prototype.constructor=p,p}var UnsubscriptionError=createErrorClass(function(D){return function(p){D(this),this.message=p?p.length+` errors occurred during unsubscription: -`+p.map(function(w,O){return O+1+") "+w.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=p}});function arrRemove(D,e){if(D){var p=D.indexOf(e);0<=p&&D.splice(p,1)}}var Subscription=function(){function D(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return D.prototype.unsubscribe=function(){var e,p,w,O,k;if(!this.closed){this.closed=!0;var S=this._parentage;if(S)if(this._parentage=null,Array.isArray(S))try{for(var a=__values(S),t=a.next();!t.done;t=a.next()){var c=t.value;c.remove(this)}}catch(i){e={error:i}}finally{try{t&&!t.done&&(p=a.return)&&p.call(a)}finally{if(e)throw e.error}}else S.remove(this);var u=this.initialTeardown;if(isFunction(u))try{u()}catch(i){k=i instanceof UnsubscriptionError?i.errors:[i]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var r=__values(s),n=r.next();!n.done;n=r.next()){var o=n.value;try{execFinalizer(o)}catch(i){k=k??[],i instanceof UnsubscriptionError?k=__spreadArray(__spreadArray([],__read(k)),__read(i.errors)):k.push(i)}}}catch(i){w={error:i}}finally{try{n&&!n.done&&(O=r.return)&&O.call(r)}finally{if(w)throw w.error}}}if(k)throw new UnsubscriptionError(k)}},D.prototype.add=function(e){var p;if(e&&e!==this)if(this.closed)execFinalizer(e);else{if(e instanceof D){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(p=this._finalizers)!==null&&p!==void 0?p:[]).push(e)}},D.prototype._hasParent=function(e){var p=this._parentage;return p===e||Array.isArray(p)&&p.includes(e)},D.prototype._addParent=function(e){var p=this._parentage;this._parentage=Array.isArray(p)?(p.push(e),p):p?[p,e]:e},D.prototype._removeParent=function(e){var p=this._parentage;p===e?this._parentage=null:Array.isArray(p)&&arrRemove(p,e)},D.prototype.remove=function(e){var p=this._finalizers;p&&arrRemove(p,e),e instanceof D&&e._removeParent(this)},D.EMPTY=function(){var e=new D;return e.closed=!0,e}(),D}();Subscription.EMPTY;function isSubscription(D){return D instanceof Subscription||D&&"closed"in D&&isFunction(D.remove)&&isFunction(D.add)&&isFunction(D.unsubscribe)}function execFinalizer(D){isFunction(D)?D():D.unsubscribe()}var config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout:function(D,e){for(var p=[],w=2;w=2;return function(w){return w.pipe(D?filter(function(O,k){return D(O,k,w)}):identity,take(1),p?defaultIfEmpty(e):throwIfEmpty(function(){return new EmptyError}))}}function switchMap(D,e){return operate(function(p,w){var O=null,k=0,S=!1,a=function(){return S&&!O&&w.complete()};p.subscribe(createOperatorSubscriber(w,function(t){O==null||O.unsubscribe();var c=0,u=k++;innerFrom(D(t,u)).subscribe(O=createOperatorSubscriber(w,function(s){return w.next(e?e(t,s,u,c++):s)},function(){O=null,a()}))},function(){S=!0,a()}))})}function tap(D,e,p){var w=isFunction(D)||e||p?{next:D,error:e,complete:p}:D;return w?operate(function(O,k){var S;(S=w.subscribe)===null||S===void 0||S.call(w);var a=!0;O.subscribe(createOperatorSubscriber(k,function(t){var c;(c=w.next)===null||c===void 0||c.call(w,t),k.next(t)},function(){var t;a=!1,(t=w.complete)===null||t===void 0||t.call(w),k.complete()},function(t){var c;a=!1,(c=w.error)===null||c===void 0||c.call(w,t),k.error(t)},function(){var t,c;a&&((t=w.unsubscribe)===null||t===void 0||t.call(w)),(c=w.finalize)===null||c===void 0||c.call(w)}))}):identity}function createFetchClient(D){return D.pipe(switchMap(e=>of(e)),first(),catchError(e=>{throw e}))}function identifyQueryResponseErrors(D){if(typeof D=="string"&&(D.includes("error")||D.includes("Error")))throw new Error(D);if(typeof D=="object"&&"includes"in D&&D.includes("parse_err"))throw new Error(D)}const secretClientContractQuery$=({queryMsg:D,client:e,contractAddress:p,codeHash:w})=>createFetchClient(defer(()=>from(e.query.compute.queryContract({contract_address:p,code_hash:w,query:D})))),sendSecretClientContractQuery$=({queryMsg:D,client:e,contractAddress:p,codeHash:w})=>secretClientContractQuery$({queryMsg:D,client:e,contractAddress:p,codeHash:w}).pipe(tap(O=>identifyQueryResponseErrors(O)),first());var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},browser={exports:{}};/*! For license information please see browser.js.LICENSE.txt */(function(module,exports){(function(D,e){module.exports=e()})(commonjsGlobal,()=>(()=>{var __webpack_modules__={7768:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromAscii=e.toAscii=void 0,e.toAscii=function(p){return Uint8Array.from(p.split("").map(w=>{const O=w.charCodeAt(0);if(O<32||O>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+O);return O}))},e.fromAscii=function(p){return(w=Array.from(p),w.map(O=>{if(O<32||O>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+O);return String.fromCharCode(O)})).join("");var w}},3431:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.fromBase64=e.toBase64=void 0;const S=k(p(9742));e.toBase64=function(a){return S.fromByteArray(a)},e.fromBase64=function(a){if(!a.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return S.toByteArray(a)}},5438:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Bech32=void 0;const S=k(p(3235));e.Bech32=class{static encode(a,t,c){return S.encode(a,S.toWords(t),c)}static decode(a,t=1/0){const c=S.decode(a,t);return{prefix:c.prefix,data:new Uint8Array(S.fromWords(c.words))}}}},6135:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromHex=e.toHex=void 0,e.toHex=function(p){let w="";for(const O of p)w+=("0"+O.toString(16)).slice(-2);return w},e.fromHex=function(p){if(p.length%2!=0)throw new Error("hex string length must be a multiple of 2");const w=[];for(let O=0;O{Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=e.toRfc3339=e.fromRfc3339=e.toHex=e.fromHex=e.Bech32=e.toBase64=e.fromBase64=e.toAscii=e.fromAscii=void 0;var w=p(7768);Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return w.fromAscii}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return w.toAscii}});var O=p(3431);Object.defineProperty(e,"fromBase64",{enumerable:!0,get:function(){return O.fromBase64}}),Object.defineProperty(e,"toBase64",{enumerable:!0,get:function(){return O.toBase64}});var k=p(5438);Object.defineProperty(e,"Bech32",{enumerable:!0,get:function(){return k.Bech32}});var S=p(6135);Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return S.fromHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return S.toHex}});var a=p(7310);Object.defineProperty(e,"fromRfc3339",{enumerable:!0,get:function(){return a.fromRfc3339}}),Object.defineProperty(e,"toRfc3339",{enumerable:!0,get:function(){return a.toRfc3339}});var t=p(6081);Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return t.fromUtf8}}),Object.defineProperty(e,"toUtf8",{enumerable:!0,get:function(){return t.toUtf8}})},7310:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toRfc3339=e.fromRfc3339=void 0;const p=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function w(O,k=2){const S="00000"+O.toString();return S.substring(S.length-k)}e.fromRfc3339=function(O){const k=p.exec(O);if(!k)throw new Error("Date string is not in RFC3339 format");const S=+k[1],a=+k[2],t=+k[3],c=+k[4],u=+k[5],s=+k[6],r=k[7]?Math.floor(1e3*+k[7]):0;let n,o,i;k[8]==="Z"?(n=1,o=0,i=0):(n=k[8].substring(0,1)==="-"?-1:1,o=+k[8].substring(1,3),i=+k[8].substring(4,6));const f=n*(60*o+i)*60,d=Date.UTC(S,a-1,t,c,u,s,r)-1e3*f;return new Date(d)},e.toRfc3339=function(O){return`${O.getUTCFullYear()}-${w(O.getUTCMonth()+1)}-${w(O.getUTCDate())}T${w(O.getUTCHours())}:${w(O.getUTCMinutes())}:${w(O.getUTCSeconds())}.${w(O.getUTCMilliseconds(),3)}Z`}},6081:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromUtf8=e.toUtf8=void 0,e.toUtf8=function(p){return new TextEncoder().encode(p)},e.fromUtf8=function(p){return new TextDecoder("utf-8",{fatal:!0}).decode(p)}},3235:D=>{for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",p={},w=0;w<32;w++){var O=e.charAt(w);if(p[O]!==void 0)throw new TypeError(O+" is ambiguous");p[O]=w}function k(c){var u=c>>25;return(33554431&c)<<5^996825010&-(u>>0&1)^642813549&-(u>>1&1)^513874426&-(u>>2&1)^1027748829&-(u>>3&1)^705979059&-(u>>4&1)}function S(c){for(var u=1,s=0;s126)return"Invalid prefix ("+c+")";u=k(u)^r>>5}for(u=k(u),s=0;su)return"Exceeds length limit";var s=c.toLowerCase(),r=c.toUpperCase();if(c!==s&&c!==r)return"Mixed-case string "+c;var n=(c=s).lastIndexOf("1");if(n===-1)return"No separator character for "+c;if(n===0)return"Missing prefix for "+c;var o=c.slice(0,n),i=c.slice(n+1);if(i.length<6)return"Data too short";var f=S(o);if(typeof f=="string")return f;for(var d=[],h=0;h=i.length||d.push(b)}return f!==1?"Invalid checksum for "+c:{prefix:o,words:d}}function t(c,u,s,r){for(var n=0,o=0,i=(1<=s;)o-=s,f.push(n>>o&i);if(r)o>0&&f.push(n<=u)return"Excess padding";if(n<s)throw new TypeError("Exceeds length limit");var r=S(c=c.toLowerCase());if(typeof r=="string")throw new Error(r);for(var n=c+"1",o=0;o>5)throw new Error("Non 5-bit word");r=k(r)^i,n+=e.charAt(i)}for(o=0;o<6;++o)r=k(r);for(r^=1,o=0;o<6;++o)n+=e.charAt(r>>5*(5-o)&31);return n},toWordsUnsafe:function(c){var u=t(c,8,5,!0);if(Array.isArray(u))return u},toWords:function(c){var u=t(c,8,5,!0);if(Array.isArray(u))return u;throw new Error(u)},fromWordsUnsafe:function(c){var u=t(c,5,8,!1);if(Array.isArray(u))return u},fromWords:function(c){var u=t(c,5,8,!1);if(Array.isArray(u))return u;throw new Error(u)}}},7505:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const w=p(8089);class O extends w.Hash{constructor(S,a,t,c){super(),this.blockLen=S,this.outputLen=a,this.padOffset=t,this.isLE=c,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(S),this.view=(0,w.createView)(this.buffer)}update(S){if(this.destroyed)throw new Error("instance is destroyed");const{view:a,buffer:t,blockLen:c,finished:u}=this;if(u)throw new Error("digest() was already called");const s=(S=(0,w.toBytes)(S)).length;for(let r=0;rc-s&&(this.process(t,0),s=0);for(let n=s;n>d&h),b=Number(i&h),I=f?4:0,l=f?0:4;n.setUint32(o+I,_,f),n.setUint32(o+l,b,f)})(t,c-8,BigInt(8*this.length),u),this.process(t,0);const r=(0,w.createView)(S);this.get().forEach((n,o)=>r.setUint32(4*o,n,u))}digest(){const{buffer:S,outputLen:a}=this;this.digestInto(S);const t=S.slice(0,a);return this.destroy(),t}_cloneInto(S){S||(S=new this.constructor),S.set(...this.get());const{blockLen:a,buffer:t,length:c,finished:u,destroyed:s,pos:r}=this;return S.length=c,S.pos=r,S.finished=u,S.destroyed=s,c%a&&S.buffer.set(t),S}}e.SHA2=O},6873:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.add5H=e.add5L=e.add4H=e.add4L=e.add3H=e.add3L=e.add=e.rotlBL=e.rotlBH=e.rotlSL=e.rotlSH=e.rotr32L=e.rotr32H=e.rotrBL=e.rotrBH=e.rotrSL=e.rotrSH=e.shrSL=e.shrSH=e.toBig=e.split=e.fromBig=void 0;const p=BigInt(2**32-1),w=BigInt(32);function O(k,S=!1){return S?{h:Number(k&p),l:Number(k>>w&p)}:{h:0|Number(k>>w&p),l:0|Number(k&p)}}e.fromBig=O,e.split=function(k,S=!1){let a=new Uint32Array(k.length),t=new Uint32Array(k.length);for(let c=0;cBigInt(k>>>0)<>>0),e.shrSH=(k,S,a)=>k>>>a,e.shrSL=(k,S,a)=>k<<32-a|S>>>a,e.rotrSH=(k,S,a)=>k>>>a|S<<32-a,e.rotrSL=(k,S,a)=>k<<32-a|S>>>a,e.rotrBH=(k,S,a)=>k<<64-a|S>>>a-32,e.rotrBL=(k,S,a)=>k>>>a-32|S<<64-a,e.rotr32H=(k,S)=>S,e.rotr32L=(k,S)=>k,e.rotlSH=(k,S,a)=>k<>>32-a,e.rotlSL=(k,S,a)=>S<>>32-a,e.rotlBH=(k,S,a)=>S<>>64-a,e.rotlBL=(k,S,a)=>k<>>64-a,e.add=function(k,S,a,t){const c=(S>>>0)+(t>>>0);return{h:k+a+(c/4294967296|0)|0,l:0|c}},e.add3L=(k,S,a)=>(k>>>0)+(S>>>0)+(a>>>0),e.add3H=(k,S,a,t)=>S+a+t+(k/4294967296|0)|0,e.add4L=(k,S,a,t)=>(k>>>0)+(S>>>0)+(a>>>0)+(t>>>0),e.add4H=(k,S,a,t,c)=>S+a+t+c+(k/4294967296|0)|0,e.add5L=(k,S,a,t,c)=>(k>>>0)+(S>>>0)+(a>>>0)+(t>>>0)+(c>>>0),e.add5H=(k,S,a,t,c,u)=>S+a+t+c+u+(k/4294967296|0)|0},4421:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0}},4330:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=e.expand=e.extract=void 0;const w=p(8089),O=p(9569);function k(c,u,s){return(0,w.assertHash)(c),s===void 0&&(s=new Uint8Array(c.outputLen)),(0,O.hmac)(c,(0,w.toBytes)(s),(0,w.toBytes)(u))}e.extract=k;const S=new Uint8Array([0]),a=new Uint8Array;function t(c,u,s,r=32){if((0,w.assertHash)(c),(0,w.assertNumber)(r),r>255*c.outputLen)throw new Error("Length should be <= 255*HashLen");const n=Math.ceil(r/c.outputLen);s===void 0&&(s=a);const o=new Uint8Array(n*c.outputLen),i=O.hmac.create(c,u),f=i._cloneInto(),d=new Uint8Array(i.outputLen);for(let h=0;ht(c,k(c,u,s),r,n)},9569:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const w=p(8089);class O extends w.Hash{constructor(S,a){super(),this.finished=!1,this.destroyed=!1,(0,w.assertHash)(S);const t=(0,w.toBytes)(a);if(this.iHash=S.create(),!(this.iHash instanceof w.Hash))throw new TypeError("Expected instance of class which extends utils.Hash");const c=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const u=new Uint8Array(c);u.set(t.length>this.iHash.blockLen?S.create().update(t).digest():t);for(let s=0;snew O(k,S).update(a).digest(),e.hmac.create=(k,S)=>new O(k,S)},830:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=e.RIPEMD160=void 0;const w=p(7505),O=p(8089),k=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),S=Uint8Array.from({length:16},(_,b)=>b),a=S.map(_=>(9*_+5)%16);let t=[S],c=[a];for(let _=0;_<4;_++)for(let b of[t,c])b.push(b[_].map(I=>k[I]));const u=[[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(_=>new Uint8Array(_)),s=t.map((_,b)=>_.map(I=>u[b][I])),r=c.map((_,b)=>_.map(I=>u[b][I])),n=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),o=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),i=(_,b)=>_<>>32-b;function f(_,b,I,l){return _===0?b^I^l:_===1?b&I|~b&l:_===2?(b|~I)^l:_===3?b&l|I&~l:b^(I|~l)}const d=new Uint32Array(16);class h extends w.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:b,h1:I,h2:l,h3:j,h4:M}=this;return[b,I,l,j,M]}set(b,I,l,j,M){this.h0=0|b,this.h1=0|I,this.h2=0|l,this.h3=0|j,this.h4=0|M}process(b,I){for(let B=0;B<16;B++,I+=4)d[B]=b.getUint32(I,!0);let l=0|this.h0,j=l,M=0|this.h1,N=M,C=0|this.h2,x=C,P=0|this.h3,v=P,m=0|this.h4,E=m;for(let B=0;B<5;B++){const T=4-B,q=n[B],te=o[B],re=t[B],ie=c[B],J=s[B],ee=r[B];for(let G=0;G<16;G++){const $=i(l+f(B,M,C,P)+d[re[G]]+q,J[G])+m|0;l=m,m=P,P=0|i(C,10),C=M,M=$}for(let G=0;G<16;G++){const $=i(j+f(T,N,x,v)+d[ie[G]]+te,ee[G])+E|0;j=E,E=v,v=0|i(x,10),x=N,N=$}}this.set(this.h1+C+v|0,this.h2+P+E|0,this.h3+m+j|0,this.h4+l+N|0,this.h0+M+x|0)}roundClean(){d.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}e.RIPEMD160=h,e.ripemd160=(0,O.wrapConstructor)(()=>new h)},3061:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sha256=void 0;const w=p(7505),O=p(8089),k=(u,s,r)=>u&s^u&r^s&r,S=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]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t=new Uint32Array(64);class c extends w.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:s,B:r,C:n,D:o,E:i,F:f,G:d,H:h}=this;return[s,r,n,o,i,f,d,h]}set(s,r,n,o,i,f,d,h){this.A=0|s,this.B=0|r,this.C=0|n,this.D=0|o,this.E=0|i,this.F=0|f,this.G=0|d,this.H=0|h}process(s,r){for(let l=0;l<16;l++,r+=4)t[l]=s.getUint32(r,!1);for(let l=16;l<64;l++){const j=t[l-15],M=t[l-2],N=(0,O.rotr)(j,7)^(0,O.rotr)(j,18)^j>>>3,C=(0,O.rotr)(M,17)^(0,O.rotr)(M,19)^M>>>10;t[l]=C+t[l-7]+N+t[l-16]|0}let{A:n,B:o,C:i,D:f,E:d,F:h,G:_,H:b}=this;for(let l=0;l<64;l++){const j=b+((0,O.rotr)(d,6)^(0,O.rotr)(d,11)^(0,O.rotr)(d,25))+((I=d)&h^~I&_)+S[l]+t[l]|0,M=((0,O.rotr)(n,2)^(0,O.rotr)(n,13)^(0,O.rotr)(n,22))+k(n,o,i)|0;b=_,_=h,h=d,d=f+j|0,f=i,i=o,o=n,n=j+M|0}var I;n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,f=f+this.D|0,d=d+this.E|0,h=h+this.F|0,_=_+this.G|0,b=b+this.H|0,this.set(n,o,i,f,d,h,_,b)}roundClean(){t.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}e.sha256=(0,O.wrapConstructor)(()=>new c)},5426:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(N,C,x,P){P===void 0&&(P=x),Object.defineProperty(N,P,{enumerable:!0,get:function(){return C[x]}})}:function(N,C,x,P){P===void 0&&(P=x),N[P]=C[x]}),O=this&&this.__setModuleDefault||(Object.create?function(N,C){Object.defineProperty(N,"default",{enumerable:!0,value:C})}:function(N,C){N.default=C}),k=this&&this.__importStar||function(N){if(N&&N.__esModule)return N;var C={};if(N!=null)for(var x in N)x!=="default"&&Object.prototype.hasOwnProperty.call(N,x)&&w(C,N,x);return O(C,N),C};Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const S=k(p(6873)),a=p(8089),[t,c,u]=[[],[],[]],s=BigInt(0),r=BigInt(1),n=BigInt(2),o=BigInt(7),i=BigInt(256),f=BigInt(113);for(let N=0,C=r,x=1,P=0;N<24;N++){[x,P]=[P,(2*x+3*P)%5],t.push(2*(5*P+x)),c.push((N+1)*(N+2)/2%64);let v=s;for(let m=0;m<7;m++)C=(C<>o)*f)%i,C&n&&(v^=r<<(r<x>32?S.rotlBH(N,C,x):S.rotlSH(N,C,x),b=(N,C,x)=>x>32?S.rotlBL(N,C,x):S.rotlSL(N,C,x);function I(N,C=24){const x=new Uint32Array(10);for(let P=24-C;P<24;P++){for(let E=0;E<10;E++)x[E]=N[E]^N[E+10]^N[E+20]^N[E+30]^N[E+40];for(let E=0;E<10;E+=2){const B=(E+8)%10,T=(E+2)%10,q=x[T],te=x[T+1],re=_(q,te,1)^x[B],ie=b(q,te,1)^x[B+1];for(let J=0;J<50;J+=10)N[E+J]^=re,N[E+J+1]^=ie}let v=N[2],m=N[3];for(let E=0;E<24;E++){const B=c[E],T=_(v,m,B),q=b(v,m,B),te=t[E];v=N[te],m=N[te+1],N[te]=T,N[te+1]=q}for(let E=0;E<50;E+=10){for(let B=0;B<10;B++)x[B]=N[E+B];for(let B=0;B<10;B++)N[E+B]^=~x[(B+2)%10]&x[(B+4)%10]}N[0]^=d[P],N[1]^=h[P]}x.fill(0)}e.keccakP=I;class l extends a.Hash{constructor(C,x,P,v=!1,m=24){if(super(),this.blockLen=C,this.suffix=x,this.outputLen=P,this.enableXOF=v,this.rounds=m,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,a.assertNumber)(P),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){I(this.state32,this.rounds),this.posOut=0,this.pos=0}update(C){if(this.destroyed)throw new Error("instance is destroyed");if(this.finished)throw new Error("digest() was already called");const{blockLen:x,state:P}=this,v=(C=(0,a.toBytes)(C)).length;for(let m=0;m=this.blockLen&&this.keccak();const v=Math.min(this.blockLen-this.posOut,P-x);C.set(this.state.subarray(this.posOut,this.posOut+v),x),this.posOut+=v,x+=v}return C}xofInto(C){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(C)}xof(C){return(0,a.assertNumber)(C),this.xofInto(new Uint8Array(C))}digestInto(C){if(C.length(0,a.wrapConstructor)(()=>new l(C,N,x));e.sha3_224=j(6,144,28),e.sha3_256=j(6,136,32),e.sha3_384=j(6,104,48),e.sha3_512=j(6,72,64),e.keccak_224=j(1,144,28),e.keccak_256=j(1,136,32),e.keccak_384=j(1,104,48),e.keccak_512=j(1,72,64);const M=(N,C,x)=>(0,a.wrapConstructorWithOpts)((P={})=>new l(C,N,P.dkLen!==void 0?P.dkLen:x,!0));e.shake128=M(31,168,16),e.shake256=M(31,136,32)},8089:(D,e,p)=>{D=p.nmd(D),Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.assertHash=e.assertBytes=e.assertBool=e.assertNumber=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const w=p(4421);if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,c)=>t<<32-c|t>>>c,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const O=Array.from({length:256},(t,c)=>c.toString(16).padStart(2,"0"));function k(t){if(typeof t!="string")throw new TypeError("utf8ToBytes expected string, got "+typeof t);return new TextEncoder().encode(t)}function S(t){if(typeof t=="string"&&(t=k(t)),!(t instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof t})`);return t}function a(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}e.bytesToHex=function(t){let c="";for(let u=0;u{const t=typeof D.require=="function"&&D.require.bind(D);try{if(t){const{setImmediate:c}=t("timers");return()=>new Promise(u=>c(u))}}catch{}return()=>new Promise(c=>setTimeout(c,0))})(),e.asyncLoop=async function(t,c,u){let s=Date.now();for(let r=0;r=0&&ns instanceof Uint8Array))throw new Error("Uint8Array list expected");if(t.length===1)return t[0];const c=t.reduce((s,r)=>s+r.length,0),u=new Uint8Array(c);for(let s=0,r=0;st().update(S(s)).digest(),u=t();return c.outputLen=u.outputLen,c.blockLen=u.blockLen,c.create=()=>t(),c},e.wrapConstructorWithOpts=function(t){const c=(s,r)=>t(r).update(S(s)).digest(),u=t({});return c.outputLen=u.outputLen,c.blockLen=u.blockLen,c.create=s=>t(s),c},e.randomBytes=function(t=32){if(w.crypto.web)return w.crypto.web.getRandomValues(new Uint8Array(t));if(w.crypto.node)return new Uint8Array(w.crypto.node.randomBytes(t).buffer);throw new Error("The environment doesn't have randomBytes function")}},9656:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.schnorr=e.verify=e.signSync=e.sign=e.getSharedSecret=e.recoverPublicKey=e.getPublicKey=e.Signature=e.Point=e.CURVE=void 0;const w=p(9159),O=BigInt(0),k=BigInt(1),S=BigInt(2),a=BigInt(3),t=BigInt(8),c=Object.freeze({a:O,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:k,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function u(X){const{a:Q,b:Z}=c,se=E(X*X),ue=E(se*X);return E(ue+Q*X+Z)}e.CURVE=c;const s=c.a===O;class r extends Error{constructor(Q){super(Q)}}class n{constructor(Q,Z,se){this.x=Q,this.y=Z,this.z=se}static fromAffine(Q){if(!(Q instanceof i))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new n(Q.x,Q.y,k)}static toAffineBatch(Q){const Z=function(se,ue=c.P){const fe=new Array(se.length),me=T(se.reduce((ge,be,_e)=>be===O?ge:(fe[_e]=ge,E(ge*be,ue)),k),ue);return se.reduceRight((ge,be,_e)=>be===O?ge:(fe[_e]=E(ge*fe[_e],ue),E(ge*be,ue)),me),fe}(Q.map(se=>se.z));return Q.map((se,ue)=>se.toAffine(Z[ue]))}static normalizeZ(Q){return n.toAffineBatch(Q).map(n.fromAffine)}equals(Q){if(!(Q instanceof n))throw new TypeError("JacobianPoint expected");const{x:Z,y:se,z:ue}=this,{x:fe,y:me,z:ge}=Q,be=E(ue*ue),_e=E(ge*ge),we=E(Z*_e),Ee=E(fe*be),xe=E(E(se*ge)*_e),Se=E(E(me*ue)*be);return we===Ee&&xe===Se}negate(){return new n(this.x,E(-this.y),this.z)}double(){const{x:Q,y:Z,z:se}=this,ue=E(Q*Q),fe=E(Z*Z),me=E(fe*fe),ge=Q+fe,be=E(S*(E(ge*ge)-ue-me)),_e=E(a*ue),we=E(_e*_e),Ee=E(we-S*be),xe=E(_e*(be-Ee)-t*me),Se=E(S*Z*se);return new n(Ee,xe,Se)}add(Q){if(!(Q instanceof n))throw new TypeError("JacobianPoint expected");const{x:Z,y:se,z:ue}=this,{x:fe,y:me,z:ge}=Q;if(fe===O||me===O)return this;if(Z===O||se===O)return Q;const be=E(ue*ue),_e=E(ge*ge),we=E(Z*_e),Ee=E(fe*be),xe=E(E(se*ge)*_e),Se=E(E(me*ue)*be),ke=E(Ee-we),Re=E(Se-xe);if(ke===O)return Re===O?this.double():n.ZERO;const Oe=E(ke*ke),Pe=E(ke*Oe),Me=E(we*Oe),Ae=E(Re*Re-Pe-S*Me),Ne=E(Re*(Me-Ae)-xe*Pe),Te=E(ue*ge*ke);return new n(Ae,Ne,Te)}subtract(Q){return this.add(Q.negate())}multiplyUnsafe(Q){const Z=n.ZERO;if(typeof Q=="bigint"&&Q===O)return Z;let se=m(Q);if(se===k)return this;if(!s){let Ee=Z,xe=this;for(;se>O;)se&k&&(Ee=Ee.add(xe)),xe=xe.double(),se>>=k;return Ee}let{k1neg:ue,k1:fe,k2neg:me,k2:ge}=re(se),be=Z,_e=Z,we=this;for(;fe>O||ge>O;)fe&k&&(be=be.add(we)),ge&k&&(_e=_e.add(we)),we=we.double(),fe>>=k,ge>>=k;return ue&&(be=be.negate()),me&&(_e=_e.negate()),_e=new n(E(_e.x*c.beta),_e.y,_e.z),be.add(_e)}precomputeWindow(Q){const Z=s?128/Q+1:256/Q+1,se=[];let ue=this,fe=ue;for(let me=0;me>=Ee,ke>be&&(ke-=we,Q+=k),ke===0){let Re=ue[Se];xe%2&&(Re=Re.negate()),me=me.add(Re)}else{let Re=ue[Se+Math.abs(ke)-1];ke<0&&(Re=Re.negate()),fe=fe.add(Re)}}return{p:fe,f:me}}multiply(Q,Z){let se,ue,fe=m(Q);if(s){const{k1neg:me,k1:ge,k2neg:be,k2:_e}=re(fe);let{p:we,f:Ee}=this.wNAF(ge,Z),{p:xe,f:Se}=this.wNAF(_e,Z);me&&(we=we.negate()),be&&(xe=xe.negate()),xe=new n(E(xe.x*c.beta),xe.y,xe.z),se=we.add(xe),ue=Ee.add(Se)}else{const{p:me,f:ge}=this.wNAF(fe,Z);se=me,ue=ge}return n.normalizeZ([se,ue])[0]}toAffine(Q=T(this.z)){const{x:Z,y:se,z:ue}=this,fe=Q,me=E(fe*fe),ge=E(me*fe),be=E(Z*me),_e=E(se*ge);if(E(ue*fe)!==k)throw new Error("invZ was invalid");return new i(be,_e)}}n.BASE=new n(c.Gx,c.Gy,k),n.ZERO=new n(O,k,O);const o=new WeakMap;class i{constructor(Q,Z){this.x=Q,this.y=Z}_setWindowSize(Q){this._WINDOW_SIZE=Q,o.delete(this)}hasEvenY(){return this.y%S===O}static fromCompressedHex(Q){const Z=Q.length===32,se=P(Z?Q:Q.subarray(1));if(!W(se))throw new Error("Point is not on curve");let ue=function(ge){const{P:be}=c,_e=BigInt(6),we=BigInt(11),Ee=BigInt(22),xe=BigInt(23),Se=BigInt(44),ke=BigInt(88),Re=ge*ge*ge%be,Oe=Re*Re*ge%be,Pe=B(Oe,a)*Oe%be,Me=B(Pe,a)*Oe%be,Ae=B(Me,S)*Re%be,Ne=B(Ae,we)*Ae%be,Te=B(Ne,Ee)*Ne%be,Ce=B(Te,Se)*Te%be,Ie=B(Ce,ke)*Ce%be,De=B(Ie,Se)*Te%be,je=B(De,a)*Oe%be,Ue=B(je,xe)*Ne%be,ze=B(Ue,_e)*Re%be;return B(ze,S)}(u(se));const fe=(ue&k)===k;Z?fe&&(ue=E(-ue)):(1&Q[0])==1!==fe&&(ue=E(-ue));const me=new i(se,ue);return me.assertValidity(),me}static fromUncompressedHex(Q){const Z=P(Q.subarray(1,33)),se=P(Q.subarray(33,65)),ue=new i(Z,se);return ue.assertValidity(),ue}static fromHex(Q){const Z=v(Q),se=Z.length,ue=Z[0];if(se===32||se===33&&(ue===2||ue===3))return this.fromCompressedHex(Z);if(se===65&&ue===4)return this.fromUncompressedHex(Z);throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${se}`)}static fromPrivateKey(Q){return i.BASE.multiply(F(Q))}static fromSignature(Q,Z,se){const ue=ie(Q=v(Q)),{r:fe,s:me}=he(Z);if(se!==0&&se!==1)throw new Error("Cannot recover signature: invalid recovery bit");const ge=1&se?"03":"02",be=i.fromHex(ge+j(fe)),{n:_e}=c,we=T(fe,_e),Ee=E(-ue*we,_e),xe=E(me*we,_e),Se=i.BASE.multiplyAndAddUnsafe(be,Ee,xe);if(!Se)throw new Error("Cannot recover signature: point at infinify");return Se.assertValidity(),Se}toRawBytes(Q=!1){return x(this.toHex(Q))}toHex(Q=!1){const Z=j(this.x);return Q?`${this.hasEvenY()?"02":"03"}${Z}`:`04${Z}${j(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const Q="Point is not on elliptic curve",{x:Z,y:se}=this;if(!W(Z)||!W(se))throw new Error(Q);const ue=E(se*se);if(E(ue-u(Z))!==O)throw new Error(Q)}equals(Q){return this.x===Q.x&&this.y===Q.y}negate(){return new i(this.x,E(-this.y))}double(){return n.fromAffine(this).double().toAffine()}add(Q){return n.fromAffine(this).add(n.fromAffine(Q)).toAffine()}subtract(Q){return this.add(Q.negate())}multiply(Q){return n.fromAffine(this).multiply(Q,this).toAffine()}multiplyAndAddUnsafe(Q,Z,se){const ue=n.fromAffine(this),fe=Z===O||Z===k||this!==i.BASE?ue.multiplyUnsafe(Z):ue.multiply(Z),me=n.fromAffine(Q).multiplyUnsafe(se),ge=fe.add(me);return ge.equals(n.ZERO)?void 0:ge.toAffine()}}function f(X){return Number.parseInt(X[0],16)>=8?"00"+X:X}function d(X){if(X.length<2||X[0]!==2)throw new Error(`Invalid signature integer tag: ${I(X)}`);const Q=X[1],Z=X.subarray(2,Q+2);if(!Q||Z.length!==Q)throw new Error("Invalid signature integer: wrong length");if(Z[0]===0&&Z[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:P(Z),left:X.subarray(Q+2)}}e.Point=i,i.BASE=new i(c.Gx,c.Gy),i.ZERO=new i(O,O);class h{constructor(Q,Z){this.r=Q,this.s=Z,this.assertValidity()}static fromCompact(Q){const Z=Q instanceof Uint8Array,se="Signature.fromCompact";if(typeof Q!="string"&&!Z)throw new TypeError(`${se}: Expected string or Uint8Array`);const ue=Z?I(Q):Q;if(ue.length!==128)throw new Error(`${se}: Expected 64-byte hex`);return new h(C(ue.slice(0,64)),C(ue.slice(64,128)))}static fromDER(Q){const Z=Q instanceof Uint8Array;if(typeof Q!="string"&&!Z)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:se,s:ue}=function(fe){if(fe.length<2||fe[0]!=48)throw new Error(`Invalid signature tag: ${I(fe)}`);if(fe[1]!==fe.length-2)throw new Error("Invalid signature: incorrect length");const{data:me,left:ge}=d(fe.subarray(2)),{data:be,left:_e}=d(ge);if(_e.length)throw new Error(`Invalid signature: left bytes after parsing: ${I(_e)}`);return{r:me,s:be}}(Z?Q:x(Q));return new h(se,ue)}static fromHex(Q){return this.fromDER(Q)}assertValidity(){const{r:Q,s:Z}=this;if(!$(Q))throw new Error("Invalid Signature: r must be 0 < r < n");if(!$(Z))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const Q=c.n>>k;return this.s>Q}normalizeS(){return this.hasHighS()?new h(this.r,c.n-this.s):this}toDERRawBytes(Q=!1){return x(this.toDERHex(Q))}toDERHex(Q=!1){const Z=f(N(this.s));if(Q)return Z;const se=f(N(this.r)),ue=N(se.length/2),fe=N(Z.length/2);return`30${N(se.length/2+Z.length/2+4)}02${ue}${se}02${fe}${Z}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return x(this.toCompactHex())}toCompactHex(){return j(this.r)+j(this.s)}}function _(...X){if(!X.every(se=>se instanceof Uint8Array))throw new Error("Uint8Array list expected");if(X.length===1)return X[0];const Q=X.reduce((se,ue)=>se+ue.length,0),Z=new Uint8Array(Q);for(let se=0,ue=0;seQ.toString(16).padStart(2,"0"));function I(X){if(!(X instanceof Uint8Array))throw new Error("Expected Uint8Array");let Q="";for(let Z=0;Z0)return BigInt(X);if(typeof X=="bigint"&&$(X))return X;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function E(X,Q=c.P){const Z=X%Q;return Z>=O?Z:Q+Z}function B(X,Q){const{P:Z}=c;let se=X;for(;Q-- >O;)se*=se,se%=Z;return se}function T(X,Q=c.P){if(X===O||Q<=O)throw new Error(`invert: expected positive integers, got n=${X} mod=${Q}`);let Z=E(X,Q),se=Q,ue=O,fe=k;for(;Z!==O;){const me=se/Z,ge=se%Z,be=ue-fe*me;se=Z,Z=ge,ue=fe,fe=be}if(se!==k)throw new Error("invert: does not exist");return E(ue,Q)}const q=(X,Q)=>(X+Q/S)/Q,te={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-k*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function re(X){const{n:Q}=c,{a1:Z,b1:se,a2:ue,b2:fe,POW_2_128:me}=te,ge=q(fe*X,Q),be=q(-se*X,Q);let _e=E(X-ge*Z-be*ue,Q),we=E(-ge*se-be*fe,Q);const Ee=_e>me,xe=we>me;if(Ee&&(_e=Q-_e),xe&&(we=Q-we),_e>me||we>me)throw new Error("splitScalarEndo: Endomorphism failed, k="+X);return{k1neg:Ee,k1:_e,k2neg:xe,k2:we}}function ie(X){const{n:Q}=c,Z=8*X.length-256;let se=P(X);return Z>0&&(se>>=BigInt(Z)),se>=Q&&(se-=Q),se}let J,ee;class G{constructor(){this.v=new Uint8Array(32).fill(1),this.k=new Uint8Array(32).fill(0),this.counter=0}hmac(...Q){return e.utils.hmacSha256(this.k,...Q)}hmacSync(...Q){return ee(this.k,...Q)}checkSync(){if(typeof ee!="function")throw new r("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(Q=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),Q),this.v=await this.hmac(this.v),Q.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),Q),this.v=await this.hmac(this.v))}reseedSync(Q=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),Q),this.v=this.hmacSync(this.v),Q.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),Q),this.v=this.hmacSync(this.v))}async generate(){return this.incr(),this.v=await this.hmac(this.v),this.v}generateSync(){return this.checkSync(),this.incr(),this.v=this.hmacSync(this.v),this.v}}function $(X){return O0)Q=BigInt(X);else if(typeof X=="string"){if(X.length!==64)throw new Error("Expected 32 bytes of private key");Q=C(X)}else{if(!(X instanceof Uint8Array))throw new TypeError("Expected valid private key");if(X.length!==32)throw new Error("Expected 32 bytes of private key");Q=P(X)}if(!$(Q))throw new Error("Expected private key: 0 < key < n");return Q}function ae(X){return X instanceof i?(X.assertValidity(),X):i.fromHex(X)}function he(X){if(X instanceof h)return X.assertValidity(),X;try{return h.fromDER(X)}catch{return h.fromCompact(X)}}function le(X){const Q=X instanceof Uint8Array,Z=typeof X=="string",se=(Q||Z)&&X.length;return Q?se===33||se===65:Z?se===66||se===130:X instanceof i}function ce(X){return P(X.length>32?X.slice(0,32):X)}function ve(X){const Q=ce(X),Z=E(Q,c.n);return de(Z{if((X=v(X)).length<40||X.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return M(E(P(X),c.n-k)+k)},randomBytes:(X=32)=>{if(ne.web)return ne.web.getRandomValues(new Uint8Array(X));if(ne.node){const{randomBytes:Q}=ne.node;return Uint8Array.from(Q(X))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>e.utils.hashToPrivateKey(e.utils.randomBytes(40)),sha256:async(...X)=>{if(ne.web){const Q=await ne.web.subtle.digest("SHA-256",_(...X));return new Uint8Array(Q)}if(ne.node){const{createHash:Q}=ne.node,Z=Q("sha256");return X.forEach(se=>Z.update(se)),Uint8Array.from(Z.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(X,...Q)=>{if(ne.web){const Z=await ne.web.subtle.importKey("raw",X,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),se=_(...Q),ue=await ne.web.subtle.sign("HMAC",Z,se);return new Uint8Array(ue)}if(ne.node){const{createHmac:Z}=ne.node,se=Z("sha256",X);return Q.forEach(ue=>se.update(ue)),Uint8Array.from(se.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(X,...Q)=>{let Z=K[X];if(Z===void 0){const se=await e.utils.sha256(Uint8Array.from(X,ue=>ue.charCodeAt(0)));Z=_(se,se),K[X]=Z}return e.utils.sha256(Z,...Q)},taggedHashSync:(X,...Q)=>{if(typeof J!="function")throw new r("sha256Sync is undefined, you need to set it");let Z=K[X];if(Z===void 0){const se=J(Uint8Array.from(X,ue=>ue.charCodeAt(0)));Z=_(se,se),K[X]=Z}return J(Z,...Q)},precompute(X=8,Q=i.BASE){const Z=Q===i.BASE?Q:new i(Q.x,Q.y);return Z._setWindowSize(X),Z.multiply(a),Z}},Object.defineProperties(e.utils,{sha256Sync:{configurable:!1,get:()=>J,set(X){J||(J=X)}},hmacSha256Sync:{configurable:!1,get:()=>ee,set(X){ee||(ee=X)}}})},4537:D=>{D.exports=function(e,p){for(var w=new Array(arguments.length-1),O=0,k=2,S=!0;k{var p=e;p.length=function(a){var t=a.length;if(!t)return 0;for(var c=0;--t%4>1&&a.charAt(t)==="=";)++c;return Math.ceil(3*a.length)/4-c};for(var w=new Array(64),O=new Array(123),k=0;k<64;)O[w[k]=k<26?k+65:k<52?k+71:k<62?k-4:k-59|43]=k++;p.encode=function(a,t,c){for(var u,s=null,r=[],n=0,o=0;t>2],u=(3&i)<<4,o=1;break;case 1:r[n++]=w[u|i>>4],u=(15&i)<<2,o=2;break;case 2:r[n++]=w[u|i>>6],r[n++]=w[63&i],o=0}n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,r)),n=0)}return o&&(r[n++]=w[u],r[n++]=61,o===1&&(r[n++]=61)),s?(n&&s.push(String.fromCharCode.apply(String,r.slice(0,n))),s.join("")):String.fromCharCode.apply(String,r.slice(0,n))};var S="invalid encoding";p.decode=function(a,t,c){for(var u,s=c,r=0,n=0;n1)break;if((o=O[o])===void 0)throw Error(S);switch(r){case 0:u=o,r=1;break;case 1:t[c++]=u<<2|(48&o)>>4,u=o,r=2;break;case 2:t[c++]=(15&u)<<4|(60&o)>>2,u=o,r=3;break;case 3:t[c++]=(3&u)<<6|o,r=0}}if(r===1)throw Error(S);return c-s},p.test=function(a){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a)}},9211:D=>{function e(){this._listeners={}}D.exports=e,e.prototype.on=function(p,w,O){return(this._listeners[p]||(this._listeners[p]=[])).push({fn:w,ctx:O||this}),this},e.prototype.off=function(p,w){if(p===void 0)this._listeners={};else if(w===void 0)this._listeners[p]=[];else for(var O=this._listeners[p],k=0;k{function e(S){return typeof Float32Array<"u"?function(){var a=new Float32Array([-0]),t=new Uint8Array(a.buffer),c=t[3]===128;function u(o,i,f){a[0]=o,i[f]=t[0],i[f+1]=t[1],i[f+2]=t[2],i[f+3]=t[3]}function s(o,i,f){a[0]=o,i[f]=t[3],i[f+1]=t[2],i[f+2]=t[1],i[f+3]=t[0]}function r(o,i){return t[0]=o[i],t[1]=o[i+1],t[2]=o[i+2],t[3]=o[i+3],a[0]}function n(o,i){return t[3]=o[i],t[2]=o[i+1],t[1]=o[i+2],t[0]=o[i+3],a[0]}S.writeFloatLE=c?u:s,S.writeFloatBE=c?s:u,S.readFloatLE=c?r:n,S.readFloatBE=c?n:r}():function(){function a(c,u,s,r){var n=u<0?1:0;if(n&&(u=-u),u===0)c(1/u>0?0:2147483648,s,r);else if(isNaN(u))c(2143289344,s,r);else if(u>34028234663852886e22)c((n<<31|2139095040)>>>0,s,r);else if(u<11754943508222875e-54)c((n<<31|Math.round(u/1401298464324817e-60))>>>0,s,r);else{var o=Math.floor(Math.log(u)/Math.LN2);c((n<<31|o+127<<23|8388607&Math.round(u*Math.pow(2,-o)*8388608))>>>0,s,r)}}function t(c,u,s){var r=c(u,s),n=2*(r>>31)+1,o=r>>>23&255,i=8388607&r;return o===255?i?NaN:n*(1/0):o===0?1401298464324817e-60*n*i:n*Math.pow(2,o-150)*(i+8388608)}S.writeFloatLE=a.bind(null,p),S.writeFloatBE=a.bind(null,w),S.readFloatLE=t.bind(null,O),S.readFloatBE=t.bind(null,k)}(),typeof Float64Array<"u"?function(){var a=new Float64Array([-0]),t=new Uint8Array(a.buffer),c=t[7]===128;function u(o,i,f){a[0]=o,i[f]=t[0],i[f+1]=t[1],i[f+2]=t[2],i[f+3]=t[3],i[f+4]=t[4],i[f+5]=t[5],i[f+6]=t[6],i[f+7]=t[7]}function s(o,i,f){a[0]=o,i[f]=t[7],i[f+1]=t[6],i[f+2]=t[5],i[f+3]=t[4],i[f+4]=t[3],i[f+5]=t[2],i[f+6]=t[1],i[f+7]=t[0]}function r(o,i){return t[0]=o[i],t[1]=o[i+1],t[2]=o[i+2],t[3]=o[i+3],t[4]=o[i+4],t[5]=o[i+5],t[6]=o[i+6],t[7]=o[i+7],a[0]}function n(o,i){return t[7]=o[i],t[6]=o[i+1],t[5]=o[i+2],t[4]=o[i+3],t[3]=o[i+4],t[2]=o[i+5],t[1]=o[i+6],t[0]=o[i+7],a[0]}S.writeDoubleLE=c?u:s,S.writeDoubleBE=c?s:u,S.readDoubleLE=c?r:n,S.readDoubleBE=c?n:r}():function(){function a(c,u,s,r,n,o){var i=r<0?1:0;if(i&&(r=-r),r===0)c(0,n,o+u),c(1/r>0?0:2147483648,n,o+s);else if(isNaN(r))c(0,n,o+u),c(2146959360,n,o+s);else if(r>17976931348623157e292)c(0,n,o+u),c((i<<31|2146435072)>>>0,n,o+s);else{var f;if(r<22250738585072014e-324)c((f=r/5e-324)>>>0,n,o+u),c((i<<31|f/4294967296)>>>0,n,o+s);else{var d=Math.floor(Math.log(r)/Math.LN2);d===1024&&(d=1023),c(4503599627370496*(f=r*Math.pow(2,-d))>>>0,n,o+u),c((i<<31|d+1023<<20|1048576*f&1048575)>>>0,n,o+s)}}}function t(c,u,s,r,n){var o=c(r,n+u),i=c(r,n+s),f=2*(i>>31)+1,d=i>>>20&2047,h=4294967296*(1048575&i)+o;return d===2047?h?NaN:f*(1/0):d===0?5e-324*f*h:f*Math.pow(2,d-1075)*(h+4503599627370496)}S.writeDoubleLE=a.bind(null,p,0,4),S.writeDoubleBE=a.bind(null,w,4,0),S.readDoubleLE=t.bind(null,O,0,4),S.readDoubleBE=t.bind(null,k,4,0)}(),S}function p(S,a,t){a[t]=255&S,a[t+1]=S>>>8&255,a[t+2]=S>>>16&255,a[t+3]=S>>>24}function w(S,a,t){a[t]=S>>>24,a[t+1]=S>>>16&255,a[t+2]=S>>>8&255,a[t+3]=255&S}function O(S,a){return(S[a]|S[a+1]<<8|S[a+2]<<16|S[a+3]<<24)>>>0}function k(S,a){return(S[a]<<24|S[a+1]<<16|S[a+2]<<8|S[a+3])>>>0}D.exports=e(e)},7199:module=>{function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(D){}return null}module.exports=inquire},6662:D=>{D.exports=function(e,p,w){var O=w||8192,k=O>>>1,S=null,a=O;return function(t){if(t<1||t>k)return e(t);a+t>O&&(S=e(O),a=0);var c=p.call(S,a,a+=t);return 7&a&&(a=1+(7|a)),c}}},4997:(D,e)=>{var p=e;p.length=function(w){for(var O=0,k=0,S=0;S191&&S<224?t[c++]=(31&S)<<6|63&w[O++]:S>239&&S<365?(S=((7&S)<<18|(63&w[O++])<<12|(63&w[O++])<<6|63&w[O++])-65536,t[c++]=55296+(S>>10),t[c++]=56320+(1023&S)):t[c++]=(15&S)<<12|(63&w[O++])<<6|63&w[O++],c>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,t)),c=0);return a?(c&&a.push(String.fromCharCode.apply(String,t.slice(0,c))),a.join("")):String.fromCharCode.apply(String,t.slice(0,c))},p.write=function(w,O,k){for(var S,a,t=k,c=0;c>6|192,O[k++]=63&S|128):(64512&S)==55296&&(64512&(a=w.charCodeAt(c+1)))==56320?(S=65536+((1023&S)<<10)+(1023&a),++c,O[k++]=S>>18|240,O[k++]=S>>12&63|128,O[k++]=S>>6&63|128,O[k++]=63&S|128):(O[k++]=S>>12|224,O[k++]=S>>6&63|128,O[k++]=63&S|128);return k-t}},9282:(D,e,p)=>{var w=p(4155),O=p(5108);function k(G){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},k(G)}function S(G,$){for(var W=0;W<$.length;W++){var Y=$[W];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(G,(F=function(ae,he){if(k(ae)!=="object"||ae===null)return ae;var le=ae[Symbol.toPrimitive];if(le!==void 0){var ce=le.call(ae,"string");if(k(ce)!=="object")return ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ae)}(Y.key),k(F)==="symbol"?F:String(F)),Y)}var F}function a(G,$,W){return $&&S(G.prototype,$),W&&S(G,W),Object.defineProperty(G,"prototype",{writable:!1}),G}var t,c,u=p(2136).codes,s=u.ERR_AMBIGUOUS_ARGUMENT,r=u.ERR_INVALID_ARG_TYPE,n=u.ERR_INVALID_ARG_VALUE,o=u.ERR_INVALID_RETURN_VALUE,i=u.ERR_MISSING_ARGS,f=p(5961),d=p(9539).inspect,h=p(9539).types,_=h.isPromise,b=h.isRegExp,I=p(8162)(),l=p(5624)(),j=p(1924)("RegExp.prototype.test");function M(){var G=p(9158);t=G.isDeepEqual,c=G.isDeepStrictEqual}var N=!1,C=D.exports=m,x={};function P(G){throw G.message instanceof Error?G.message:new f(G)}function v(G,$,W,Y){if(!W){var F=!1;if($===0)F=!0,Y="No value argument passed to `assert.ok()`";else if(Y instanceof Error)throw Y;var ae=new f({actual:W,expected:!0,message:Y,operator:"==",stackStartFn:G});throw ae.generatedMessage=F,ae}}function m(){for(var G=arguments.length,$=new Array(G),W=0;We in D?ut(D,e,{enumerable:!0,configurable:!0,writable:!0,value:h}):D[e]=h;var Fe=(D,e,h)=>(lt(D,typeof e!="symbol"?e+"":e,h),h);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var g=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},support={searchParams:"URLSearchParams"in g,iterable:"Symbol"in g&&"iterator"in Symbol,blob:"FileReader"in g&&"Blob"in g&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in g,arrayBuffer:"ArrayBuffer"in g};function isDataView(D){return D&&DataView.prototype.isPrototypeOf(D)}if(support.arrayBuffer)var viewClasses=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],isArrayBufferView=ArrayBuffer.isView||function(D){return D&&viewClasses.indexOf(Object.prototype.toString.call(D))>-1};function normalizeName(D){if(typeof D!="string"&&(D=String(D)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(D)||D==="")throw new TypeError('Invalid character in header field name: "'+D+'"');return D.toLowerCase()}function normalizeValue(D){return typeof D!="string"&&(D=String(D)),D}function iteratorFor(D){var e={next:function(){var h=D.shift();return{done:h===void 0,value:h}}};return support.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Headers(D){this.map={},D instanceof Headers?D.forEach(function(e,h){this.append(h,e)},this):Array.isArray(D)?D.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):D&&Object.getOwnPropertyNames(D).forEach(function(e){this.append(e,D[e])},this)}Headers.prototype.append=function(D,e){D=normalizeName(D),e=normalizeValue(e);var h=this.map[D];this.map[D]=h?h+", "+e:e};Headers.prototype.delete=function(D){delete this.map[normalizeName(D)]};Headers.prototype.get=function(D){return D=normalizeName(D),this.has(D)?this.map[D]:null};Headers.prototype.has=function(D){return this.map.hasOwnProperty(normalizeName(D))};Headers.prototype.set=function(D,e){this.map[normalizeName(D)]=normalizeValue(e)};Headers.prototype.forEach=function(D,e){for(var h in this.map)this.map.hasOwnProperty(h)&&D.call(e,this.map[h],h,this)};Headers.prototype.keys=function(){var D=[];return this.forEach(function(e,h){D.push(h)}),iteratorFor(D)};Headers.prototype.values=function(){var D=[];return this.forEach(function(e){D.push(e)}),iteratorFor(D)};Headers.prototype.entries=function(){var D=[];return this.forEach(function(e,h){D.push([h,e])}),iteratorFor(D)};support.iterable&&(Headers.prototype[Symbol.iterator]=Headers.prototype.entries);function consumed(D){if(!D._noBody){if(D.bodyUsed)return Promise.reject(new TypeError("Already read"));D.bodyUsed=!0}}function fileReaderReady(D){return new Promise(function(e,h){D.onload=function(){e(D.result)},D.onerror=function(){h(D.error)}})}function readBlobAsArrayBuffer(D){var e=new FileReader,h=fileReaderReady(e);return e.readAsArrayBuffer(D),h}function readBlobAsText(D){var e=new FileReader,h=fileReaderReady(e),w=/charset=([A-Za-z0-9_-]+)/.exec(D.type),O=w?w[1]:"utf-8";return e.readAsText(D,O),h}function readArrayBufferAsText(D){for(var e=new Uint8Array(D),h=new Array(e.length),w=0;w-1?e:D}function Request(D,e){if(!(this instanceof Request))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var h=e.body;if(D instanceof Request){if(D.bodyUsed)throw new TypeError("Already read");this.url=D.url,this.credentials=D.credentials,e.headers||(this.headers=new Headers(D.headers)),this.method=D.method,this.mode=D.mode,this.signal=D.signal,!h&&D._bodyInit!=null&&(h=D._bodyInit,D.bodyUsed=!0)}else this.url=String(D);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Headers(e.headers)),this.method=normalizeMethod(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in g){var k=new AbortController;return k.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&h)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(h),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var w=/([?&])_=[^&]*/;if(w.test(this.url))this.url=this.url.replace(w,"$1_="+new Date().getTime());else{var O=/\?/;this.url+=(O.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})};function decode(D){var e=new FormData;return D.trim().split("&").forEach(function(h){if(h){var w=h.split("="),O=w.shift().replace(/\+/g," "),k=w.join("=").replace(/\+/g," ");e.append(decodeURIComponent(O),decodeURIComponent(k))}}),e}function parseHeaders(D){var e=new Headers,h=D.replace(/\r?\n[\t ]+/g," ");return h.split("\r").map(function(w){return w.indexOf(` +`)===0?w.substr(1,w.length):w}).forEach(function(w){var O=w.split(":"),k=O.shift().trim();if(k){var S=O.join(":").trim();try{e.append(k,S)}catch(a){console.warn("Response "+a.message)}}}),e}Body.call(Request.prototype);function Response(D,e){if(!(this instanceof Response))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new Headers(e.headers),this.url=e.url||"",this._initBody(D)}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 D=new Response(null,{status:200,statusText:""});return D.status=0,D.type="error",D};var redirectStatuses=[301,302,303,307,308];Response.redirect=function(D,e){if(redirectStatuses.indexOf(e)===-1)throw new RangeError("Invalid status code");return new Response(null,{status:e,headers:{location:D}})};var DOMException=g.DOMException;try{new DOMException}catch{DOMException=function(e,h){this.message=e,this.name=h;var w=Error(e);this.stack=w.stack},DOMException.prototype=Object.create(Error.prototype),DOMException.prototype.constructor=DOMException}function fetch$1(D,e){return new Promise(function(h,w){var O=new Request(D,e);if(O.signal&&O.signal.aborted)return w(new DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function S(){k.abort()}k.onload=function(){var c={statusText:k.statusText,headers:parseHeaders(k.getAllResponseHeaders()||"")};O.url.startsWith("file://")&&(k.status<200||k.status>599)?c.status=200:c.status=k.status,c.url="responseURL"in k?k.responseURL:c.headers.get("X-Request-URL");var u="response"in k?k.response:k.responseText;setTimeout(function(){h(new Response(u,c))},0)},k.onerror=function(){setTimeout(function(){w(new TypeError("Network request failed"))},0)},k.ontimeout=function(){setTimeout(function(){w(new TypeError("Network request timed out"))},0)},k.onabort=function(){setTimeout(function(){w(new DOMException("Aborted","AbortError"))},0)};function a(c){try{return c===""&&g.location.href?g.location.href:c}catch{return c}}if(k.open(O.method,a(O.url),!0),O.credentials==="include"?k.withCredentials=!0:O.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&(support.blob?k.responseType="blob":support.arrayBuffer&&(k.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof Headers||g.Headers&&e.headers instanceof g.Headers)){var t=[];Object.getOwnPropertyNames(e.headers).forEach(function(c){t.push(normalizeName(c)),k.setRequestHeader(c,normalizeValue(e.headers[c]))}),O.headers.forEach(function(c,u){t.indexOf(u)===-1&&k.setRequestHeader(u,c)})}else O.headers.forEach(function(c,u){k.setRequestHeader(u,c)});O.signal&&(O.signal.addEventListener("abort",S),k.onreadystatechange=function(){k.readyState===4&&O.signal.removeEventListener("abort",S)}),k.send(typeof O._bodyInit>"u"?null:O._bodyInit)})}fetch$1.polyfill=!0;g.fetch||(g.fetch=fetch$1,g.Headers=Headers,g.Request=Request,g.Response=Response);typeof window>"u"&&(global.window=globalThis);var isNumeric=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,mathceil=Math.ceil,mathfloor=Math.floor,bignumberError="[BigNumber Error] ",tooManyDigits=bignumberError+"Number primitive has more than 15 significant digits: ",BASE=1e14,LOG_BASE=14,MAX_SAFE_INTEGER=9007199254740991,POWS_TEN=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],SQRT_BASE=1e7,MAX=1e9;function clone(D){var e,h,w,O=p.prototype={constructor:p,toString:null,valueOf:null},k=new p(1),S=20,a=4,t=-7,c=21,u=-1e7,s=1e7,r=!1,n=1,o=0,i={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},f="0123456789abcdefghijklmnopqrstuvwxyz",d=!0;function p(M,N){var C,x,P,v,m,E,B,T,q=this;if(!(q instanceof p))return new p(M,N);if(N==null){if(M&&M._isBigNumber===!0){q.s=M.s,!M.c||M.e>s?q.c=q.e=null:M.e=10;m/=10,v++);v>s?q.c=q.e=null:(q.e=v,q.c=[M]);return}T=String(M)}else{if(!isNumeric.test(T=String(M)))return w(q,T,E);q.s=T.charCodeAt(0)==45?(T=T.slice(1),-1):1}(v=T.indexOf("."))>-1&&(T=T.replace(".","")),(m=T.search(/e/i))>0?(v<0&&(v=m),v+=+T.slice(m+1),T=T.substring(0,m)):v<0&&(v=T.length)}else{if(intCheck(N,2,f.length,"Base"),N==10&&d)return q=new p(M),l(q,S+q.e+1,a);if(T=String(M),E=typeof M=="number"){if(M*0!=0)return w(q,T,E,N);if(q.s=1/M<0?(T=T.slice(1),-1):1,p.DEBUG&&T.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+M)}else q.s=T.charCodeAt(0)===45?(T=T.slice(1),-1):1;for(C=f.slice(0,N),v=m=0,B=T.length;mv){v=B;continue}}else if(!P&&(T==T.toUpperCase()&&(T=T.toLowerCase())||T==T.toLowerCase()&&(T=T.toUpperCase()))){P=!0,m=-1,v=0;continue}return w(q,String(M),E,N)}E=!1,T=h(T,N,10,q.s),(v=T.indexOf("."))>-1?T=T.replace(".",""):v=T.length}for(m=0;T.charCodeAt(m)===48;m++);for(B=T.length;T.charCodeAt(--B)===48;);if(T=T.slice(m,++B)){if(B-=m,E&&p.DEBUG&&B>15&&(M>MAX_SAFE_INTEGER||M!==mathfloor(M)))throw Error(tooManyDigits+q.s*M);if((v=v-m-1)>s)q.c=q.e=null;else if(v=-MAX&&P<=MAX&&P===mathfloor(P)){if(x[0]===0){if(P===0&&x.length===1)return!0;break e}if(N=(P+1)%LOG_BASE,N<1&&(N+=LOG_BASE),String(x[0]).length==N){for(N=0;N=BASE||C!==mathfloor(C))break e;if(C!==0)return!0}}}else if(x===null&&P===null&&(v===null||v===1||v===-1))return!0;throw Error(bignumberError+"Invalid BigNumber: "+M)},p.maximum=p.max=function(){return b(arguments,-1)},p.minimum=p.min=function(){return b(arguments,1)},p.random=function(){var M=9007199254740992,N=Math.random()*M&2097151?function(){return mathfloor(Math.random()*M)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(C){var x,P,v,m,E,B=0,T=[],q=new p(k);if(C==null?C=S:intCheck(C,0,MAX),m=mathceil(C/LOG_BASE),r)if(crypto.getRandomValues){for(x=crypto.getRandomValues(new Uint32Array(m*=2));B>>11),E>=9e15?(P=crypto.getRandomValues(new Uint32Array(2)),x[B]=P[0],x[B+1]=P[1]):(T.push(E%1e14),B+=2);B=m/2}else if(crypto.randomBytes){for(x=crypto.randomBytes(m*=7);B=9e15?crypto.randomBytes(7).copy(x,B):(T.push(E%1e14),B+=7);B=m/7}else throw r=!1,Error(bignumberError+"crypto unavailable");if(!r)for(;B=10;E/=10,B++);BP-1&&(E[m+1]==null&&(E[m+1]=0),E[m+1]+=E[m]/P|0,E[m]%=P)}return E.reverse()}return function(C,x,P,v,m){var E,B,T,q,te,re,ie,J,ee=C.indexOf("."),G=S,$=a;for(ee>=0&&(q=o,o=0,C=C.replace(".",""),J=new p(x),re=J.pow(C.length-ee),o=q,J.c=N(toFixedPoint(coeffToString(re.c),re.e,"0"),10,P,M),J.e=J.c.length),ie=N(C,x,P,m?(E=f,M):(E=M,f)),T=q=ie.length;ie[--q]==0;ie.pop());if(!ie[0])return E.charAt(0);if(ee<0?--T:(re.c=ie,re.e=T,re.s=v,re=e(re,J,G,$,P),ie=re.c,te=re.r,T=re.e),B=T+G+1,ee=ie[B],q=P/2,te=te||B<0||ie[B+1]!=null,te=$<4?(ee!=null||te)&&($==0||$==(re.s<0?3:2)):ee>q||ee==q&&($==4||te||$==6&&ie[B-1]&1||$==(re.s<0?8:7)),B<1||!ie[0])C=te?toFixedPoint(E.charAt(1),-G,E.charAt(0)):E.charAt(0);else{if(ie.length=B,te)for(--P;++ie[--B]>P;)ie[B]=0,B||(++T,ie=[1].concat(ie));for(q=ie.length;!ie[--q];);for(ee=0,C="";ee<=q;C+=E.charAt(ie[ee++]));C=toFixedPoint(C,T,E.charAt(0))}return C}}(),e=function(){function M(x,P,v){var m,E,B,T,q=0,te=x.length,re=P%SQRT_BASE,ie=P/SQRT_BASE|0;for(x=x.slice();te--;)B=x[te]%SQRT_BASE,T=x[te]/SQRT_BASE|0,m=ie*B+T*re,E=re*B+m%SQRT_BASE*SQRT_BASE+q,q=(E/v|0)+(m/SQRT_BASE|0)+ie*T,x[te]=E%v;return q&&(x=[q].concat(x)),x}function N(x,P,v,m){var E,B;if(v!=m)B=v>m?1:-1;else for(E=B=0;EP[E]?1:-1;break}return B}function C(x,P,v,m){for(var E=0;v--;)x[v]-=E,E=x[v]1;x.splice(0,1));}return function(x,P,v,m,E){var B,T,q,te,re,ie,J,ee,G,$,W,Y,F,ae,he,le,ce,ve=x.s==P.s?1:-1,de=x.c,pe=P.c;if(!de||!de[0]||!pe||!pe[0])return new p(!x.s||!P.s||(de?pe&&de[0]==pe[0]:!pe)?NaN:de&&de[0]==0||!pe?ve*0:ve/0);for(ee=new p(ve),G=ee.c=[],T=x.e-P.e,ve=v+T+1,E||(E=BASE,T=bitFloor(x.e/LOG_BASE)-bitFloor(P.e/LOG_BASE),ve=ve/LOG_BASE|0),q=0;pe[q]==(de[q]||0);q++);if(pe[q]>(de[q]||0)&&T--,ve<0)G.push(1),te=!0;else{for(ae=de.length,le=pe.length,q=0,ve+=2,re=mathfloor(E/(pe[0]+1)),re>1&&(pe=M(pe,re,E),de=M(de,re,E),le=pe.length,ae=de.length),F=le,$=de.slice(0,le),W=$.length;W=E/2&&he++;do{if(re=0,B=N(pe,$,le,W),B<0){if(Y=$[0],le!=W&&(Y=Y*E+($[1]||0)),re=mathfloor(Y/he),re>1)for(re>=E&&(re=E-1),ie=M(pe,re,E),J=ie.length,W=$.length;N(ie,$,J,W)==1;)re--,C(ie,le=10;ve/=10,q++);l(ee,v+(ee.e=q+T*LOG_BASE-1)+1,m,te)}else ee.e=T,ee.r=+te;return ee}}();function _(M,N,C,x){var P,v,m,E,B;if(C==null?C=a:intCheck(C,0,8),!M.c)return M.toString();if(P=M.c[0],m=M.e,N==null)B=coeffToString(M.c),B=x==1||x==2&&(m<=t||m>=c)?toExponential(B,m):toFixedPoint(B,m,"0");else if(M=l(new p(M),N,C),v=M.e,B=coeffToString(M.c),E=B.length,x==1||x==2&&(N<=v||v<=t)){for(;EE){if(--N>0)for(B+=".";N--;B+="0");}else if(N+=v-E,N>0)for(v+1==E&&(B+=".");N--;B+="0");return M.s<0&&P?"-"+B:B}function b(M,N){for(var C,x,P=1,v=new p(M[0]);P=10;P/=10,x++);return(C=x+C*LOG_BASE-1)>s?M.c=M.e=null:C=10;E/=10,P++);if(v=N-P,v<0)v+=LOG_BASE,m=N,B=te[T=0],q=mathfloor(B/re[P-m-1]%10);else if(T=mathceil((v+1)/LOG_BASE),T>=te.length)if(x){for(;te.length<=T;te.push(0));B=q=0,P=1,v%=LOG_BASE,m=v-LOG_BASE+1}else break e;else{for(B=E=te[T],P=1;E>=10;E/=10,P++);v%=LOG_BASE,m=v-LOG_BASE+P,q=m<0?0:mathfloor(B/re[P-m-1]%10)}if(x=x||N<0||te[T+1]!=null||(m<0?B:B%re[P-m-1]),x=C<4?(q||x)&&(C==0||C==(M.s<0?3:2)):q>5||q==5&&(C==4||x||C==6&&(v>0?m>0?B/re[P-m]:0:te[T-1])%10&1||C==(M.s<0?8:7)),N<1||!te[0])return te.length=0,x?(N-=M.e+1,te[0]=re[(LOG_BASE-N%LOG_BASE)%LOG_BASE],M.e=-N||0):te[0]=M.e=0,M;if(v==0?(te.length=T,E=1,T--):(te.length=T+1,E=re[LOG_BASE-v],te[T]=m>0?mathfloor(B/re[P-m]%re[m])*E:0),x)for(;;)if(T==0){for(v=1,m=te[0];m>=10;m/=10,v++);for(m=te[0]+=E,E=1;m>=10;m/=10,E++);v!=E&&(M.e++,te[0]==BASE&&(te[0]=1));break}else{if(te[T]+=E,te[T]!=BASE)break;te[T--]=0,E=1}for(v=te.length;te[--v]===0;te.pop());}M.e>s?M.c=M.e=null:M.e=c?toExponential(N,C):toFixedPoint(N,C,"0"),M.s<0?"-"+N:N)}return O.absoluteValue=O.abs=function(){var M=new p(this);return M.s<0&&(M.s=1),M},O.comparedTo=function(M,N){return compare(this,new p(M,N))},O.decimalPlaces=O.dp=function(M,N){var C,x,P,v=this;if(M!=null)return intCheck(M,0,MAX),N==null?N=a:intCheck(N,0,8),l(new p(v),M+v.e+1,N);if(!(C=v.c))return null;if(x=((P=C.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,P=C[P])for(;P%10==0;P/=10,x--);return x<0&&(x=0),x},O.dividedBy=O.div=function(M,N){return e(this,new p(M,N),S,a)},O.dividedToIntegerBy=O.idiv=function(M,N){return e(this,new p(M,N),0,1)},O.exponentiatedBy=O.pow=function(M,N){var C,x,P,v,m,E,B,T,q,te=this;if(M=new p(M),M.c&&!M.isInteger())throw Error(bignumberError+"Exponent not an integer: "+j(M));if(N!=null&&(N=new p(N)),E=M.e>14,!te.c||!te.c[0]||te.c[0]==1&&!te.e&&te.c.length==1||!M.c||!M.c[0])return q=new p(Math.pow(+j(te),E?M.s*(2-isOdd(M)):+j(M))),N?q.mod(N):q;if(B=M.s<0,N){if(N.c?!N.c[0]:!N.s)return new p(NaN);x=!B&&te.isInteger()&&N.isInteger(),x&&(te=te.mod(N))}else{if(M.e>9&&(te.e>0||te.e<-1||(te.e==0?te.c[0]>1||E&&te.c[1]>=24e7:te.c[0]<8e13||E&&te.c[0]<=9999975e7)))return v=te.s<0&&isOdd(M)?-0:0,te.e>-1&&(v=1/v),new p(B?1/v:v);o&&(v=mathceil(o/LOG_BASE+2))}for(E?(C=new p(.5),B&&(M.s=1),T=isOdd(M)):(P=Math.abs(+j(M)),T=P%2),q=new p(k);;){if(T){if(q=q.times(te),!q.c)break;v?q.c.length>v&&(q.c.length=v):x&&(q=q.mod(N))}if(P){if(P=mathfloor(P/2),P===0)break;T=P%2}else if(M=M.times(C),l(M,M.e+1,1),M.e>14)T=isOdd(M);else{if(P=+j(M),P===0)break;T=P%2}te=te.times(te),v?te.c&&te.c.length>v&&(te.c.length=v):x&&(te=te.mod(N))}return x?q:(B&&(q=k.div(q)),N?q.mod(N):v?l(q,o,a,m):q)},O.integerValue=function(M){var N=new p(this);return M==null?M=a:intCheck(M,0,8),l(N,N.e+1,M)},O.isEqualTo=O.eq=function(M,N){return compare(this,new p(M,N))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(M,N){return compare(this,new p(M,N))>0},O.isGreaterThanOrEqualTo=O.gte=function(M,N){return(N=compare(this,new p(M,N)))===1||N===0},O.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},O.isLessThan=O.lt=function(M,N){return compare(this,new p(M,N))<0},O.isLessThanOrEqualTo=O.lte=function(M,N){return(N=compare(this,new p(M,N)))===-1||N===0},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&this.c[0]==0},O.minus=function(M,N){var C,x,P,v,m=this,E=m.s;if(M=new p(M,N),N=M.s,!E||!N)return new p(NaN);if(E!=N)return M.s=-N,m.plus(M);var B=m.e/LOG_BASE,T=M.e/LOG_BASE,q=m.c,te=M.c;if(!B||!T){if(!q||!te)return q?(M.s=-N,M):new p(te?m:NaN);if(!q[0]||!te[0])return te[0]?(M.s=-N,M):new p(q[0]?m:a==3?-0:0)}if(B=bitFloor(B),T=bitFloor(T),q=q.slice(),E=B-T){for((v=E<0)?(E=-E,P=q):(T=B,P=te),P.reverse(),N=E;N--;P.push(0));P.reverse()}else for(x=(v=(E=q.length)<(N=te.length))?E:N,E=N=0;N0)for(;N--;q[C++]=0);for(N=BASE-1;x>E;){if(q[--x]=0;){for(C=0,re=Y[P]%G,ie=Y[P]/G|0,m=B,v=P+m;v>P;)T=W[--m]%G,q=W[m]/G|0,E=ie*T+q*re,T=re*T+E%G*G+J[v]+C,C=(T/ee|0)+(E/G|0)+ie*q,J[v--]=T%ee;J[v]=C}return C?++x:J.splice(0,1),I(M,J,x)},O.negated=function(){var M=new p(this);return M.s=-M.s||null,M},O.plus=function(M,N){var C,x=this,P=x.s;if(M=new p(M,N),N=M.s,!P||!N)return new p(NaN);if(P!=N)return M.s=-N,x.minus(M);var v=x.e/LOG_BASE,m=M.e/LOG_BASE,E=x.c,B=M.c;if(!v||!m){if(!E||!B)return new p(P/0);if(!E[0]||!B[0])return B[0]?M:new p(E[0]?x:P*0)}if(v=bitFloor(v),m=bitFloor(m),E=E.slice(),P=v-m){for(P>0?(m=v,C=B):(P=-P,C=E),C.reverse();P--;C.push(0));C.reverse()}for(P=E.length,N=B.length,P-N<0&&(C=B,B=E,E=C,N=P),P=0;N;)P=(E[--N]=E[N]+B[N]+P)/BASE|0,E[N]=BASE===E[N]?0:E[N]%BASE;return P&&(E=[P].concat(E),++m),I(M,E,m)},O.precision=O.sd=function(M,N){var C,x,P,v=this;if(M!=null&&M!==!!M)return intCheck(M,1,MAX),N==null?N=a:intCheck(N,0,8),l(new p(v),M,N);if(!(C=v.c))return null;if(P=C.length-1,x=P*LOG_BASE+1,P=C[P]){for(;P%10==0;P/=10,x--);for(P=C[0];P>=10;P/=10,x++);}return M&&v.e+1>x&&(x=v.e+1),x},O.shiftedBy=function(M){return intCheck(M,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times("1e"+M)},O.squareRoot=O.sqrt=function(){var M,N,C,x,P,v=this,m=v.c,E=v.s,B=v.e,T=S+4,q=new p("0.5");if(E!==1||!m||!m[0])return new p(!E||E<0&&(!m||m[0])?NaN:m?v:1/0);if(E=Math.sqrt(+j(v)),E==0||E==1/0?(N=coeffToString(m),(N.length+B)%2==0&&(N+="0"),E=Math.sqrt(+N),B=bitFloor((B+1)/2)-(B<0||B%2),E==1/0?N="5e"+B:(N=E.toExponential(),N=N.slice(0,N.indexOf("e")+1)+B),C=new p(N)):C=new p(E+""),C.c[0]){for(B=C.e,E=B+T,E<3&&(E=0);;)if(P=C,C=q.times(P.plus(e(v,P,T,1))),coeffToString(P.c).slice(0,E)===(N=coeffToString(C.c)).slice(0,E))if(C.e0&&J>0){for(v=J%E||E,q=ie.substr(0,v);v0&&(q+=T+ie.slice(v)),re&&(q="-"+q)}x=te?q+(C.decimalSeparator||"")+((B=+C.fractionGroupSize)?te.replace(new RegExp("\\d{"+B+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):te):q}return(C.prefix||"")+x+(C.suffix||"")},O.toFraction=function(M){var N,C,x,P,v,m,E,B,T,q,te,re,ie=this,J=ie.c;if(M!=null&&(E=new p(M),!E.isInteger()&&(E.c||E.s!==1)||E.lt(k)))throw Error(bignumberError+"Argument "+(E.isInteger()?"out of range: ":"not an integer: ")+j(E));if(!J)return new p(ie);for(N=new p(k),T=C=new p(k),x=B=new p(k),re=coeffToString(J),v=N.e=re.length-ie.e-1,N.c[0]=POWS_TEN[(m=v%LOG_BASE)<0?LOG_BASE+m:m],M=!M||E.comparedTo(N)>0?v>0?N:T:E,m=s,s=1/0,E=new p(re),B.c[0]=0;q=e(E,N,0,1),P=C.plus(q.times(x)),P.comparedTo(M)!=1;)C=x,x=P,T=B.plus(q.times(P=T)),B=P,N=E.minus(q.times(P=N)),E=P;return P=e(M.minus(C),x,0,1),B=B.plus(P.times(T)),C=C.plus(P.times(x)),B.s=T.s=ie.s,v=v*2,te=e(T,x,v,a).minus(ie).abs().comparedTo(e(B,C,v,a).minus(ie).abs())<1?[T,x]:[B,C],s=m,te},O.toNumber=function(){return+j(this)},O.toPrecision=function(M,N){return M!=null&&intCheck(M,1,MAX),_(this,M,N,2)},O.toString=function(M){var N,C=this,x=C.s,P=C.e;return P===null?x?(N="Infinity",x<0&&(N="-"+N)):N="NaN":(M==null?N=P<=t||P>=c?toExponential(coeffToString(C.c),P):toFixedPoint(coeffToString(C.c),P,"0"):M===10&&d?(C=l(new p(C),S+P+1,a),N=toFixedPoint(coeffToString(C.c),C.e,"0")):(intCheck(M,2,f.length,"Base"),N=h(toFixedPoint(coeffToString(C.c),P,"0"),10,M,x,!0)),x<0&&C.c[0]&&(N="-"+N)),N},O.valueOf=O.toJSON=function(){return j(this)},O._isBigNumber=!0,O[Symbol.toStringTag]="BigNumber",O[Symbol.for("nodejs.util.inspect.custom")]=O.valueOf,D!=null&&p.set(D),p}function bitFloor(D){var e=D|0;return D>0||D===e?e:e-1}function coeffToString(D){for(var e,h,w=1,O=D.length,k=D[0]+"";wc^h?1:-1;for(a=(t=O.length)<(c=k.length)?t:c,S=0;Sk[S]^h?1:-1;return t==c?0:t>c^h?1:-1}function intCheck(D,e,h,w){if(Dh||D!==mathfloor(D))throw Error(bignumberError+(w||"Argument")+(typeof D=="number"?Dh?" out of range: ":" not an integer: ":" not a primitive number: ")+String(D))}function isOdd(D){var e=D.c.length-1;return bitFloor(D.e/LOG_BASE)==e&&D.c[e]%2!=0}function toExponential(D,e){return(D.length>1?D.charAt(0)+"."+D.slice(1):D)+(e<0?"e":"e+")+e}function toFixedPoint(D,e,h){var w,O;if(e<0){for(O=h+".";++e;O+=h);D=O+D}else if(w=D.length,++e>w){for(O=h,e-=w;--e;O+=h);D+=O}else eBuffer.from(JSON.stringify(D),"utf8").toString("base64"),decodeB64ToJson=D=>JSON.parse(Buffer.from(D,"base64").toString("utf8")),generatePadding=()=>{let D;(O=>{O[O.MAX=15]="MAX",O[O.MIN=8]="MIN"})(D||(D={}));const e=Math.floor(Math.random()*(15-8+1))+8;let h="";const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let O=0;O(BigNumber.config({DECIMAL_PLACES:18}),BigNumber(D).dividedBy(BigNumber(10).pow(e))),convertCoinToUDenom=(D,e)=>typeof D=="string"||typeof D=="number"?BigNumber(D).multipliedBy(BigNumber(10).pow(e)).toFixed(0):D.multipliedBy(BigNumber(10).pow(e)).toFixed(0);function getTokenDecimalsByTokenConfig(D,e){const h=e.filter(w=>w.tokenContractAddress===D);if(h.length===0)throw new Error(`token ${D} not available`);if(h.length>1)throw new Error(`Duplicate ${D} tokens found`);return h[0].decimals}const msgBatchQuery=D=>({batch:{queries:D.map(e=>({id:encodeJsonToB64(e.id),contract:{address:e.contract.address,code_hash:e.contract.codeHash},query:encodeJsonToB64(e.queryMsg)}))}}),msgQueryOraclePrice=D=>({get_price:{key:D}}),msgQueryOraclePrices=D=>({get_prices:{keys:D}}),snip20={queries:{getBalance(D,e){return{balance:{address:D,key:e}}},tokenInfo(){return{token_info:{}}}},messages:{send({recipient:D,recipientCodeHash:e,amount:h,handleMsg:w,padding:O}){return{msg:{send:{recipient:D,recipient_code_hash:e,amount:h,msg:w!==null?encodeJsonToB64(w):null,padding:O}}}},transfer({recipient:D,amount:e,padding:h}){return{msg:{transfer:{recipient:D,amount:e,padding:h}}}},deposit(D,e){return{msg:{deposit:{}},transferAmount:{amount:D,denom:e}}},redeem({amount:D,denom:e,padding:h}){return{msg:{redeem:{amount:D,denom:e,padding:h}}}},increaseAllowance({spender:D,amount:e,expiration:h,padding:w}){return{msg:{increase_allowance:{spender:D,amount:e,expiration:h,padding:w}}}},createViewingKey(D,e){return{msg:{set_viewing_key:{key:D,padding:e}}}}}},msgQueryFactoryConfig=()=>({get_config:{}}),msgQueryFactoryPairs=(D,e)=>({list_a_m_m_pairs:{pagination:{start:D,limit:e}}}),msgQueryPairConfig=()=>({get_config:{}}),msgQueryPairInfo=()=>({get_pair_info:{}}),msgQueryStakingConfig=()=>({get_config:{}});function msgSwap({routerContractAddress:D,routerCodeHash:e,sendAmount:h,minExpectedReturnAmount:w,path:O}){const k=O.map(a=>({addr:a.poolContractAddress,code_hash:a.poolCodeHash})),S={swap_tokens_for_exact:{expected_return:w,path:k}};return snip20.messages.send({recipient:D,recipientCodeHash:e,amount:h,handleMsg:S,padding:generatePadding()}).msg}var extendStatics=function(D,e){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,w){h.__proto__=w}||function(h,w){for(var O in w)Object.prototype.hasOwnProperty.call(w,O)&&(h[O]=w[O])},extendStatics(D,e)};function __extends(D,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");extendStatics(D,e);function h(){this.constructor=D}D.prototype=e===null?Object.create(e):(h.prototype=e.prototype,new h)}function __awaiter(D,e,h,w){function O(k){return k instanceof h?k:new h(function(S){S(k)})}return new(h||(h=Promise))(function(k,S){function a(u){try{c(w.next(u))}catch(s){S(s)}}function t(u){try{c(w.throw(u))}catch(s){S(s)}}function c(u){u.done?k(u.value):O(u.value).then(a,t)}c((w=w.apply(D,e||[])).next())})}function __generator(D,e){var h={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},w,O,k,S;return S={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function a(c){return function(u){return t([c,u])}}function t(c){if(w)throw new TypeError("Generator is already executing.");for(;S&&(S=0,c[0]&&(h=0)),h;)try{if(w=1,O&&(k=c[0]&2?O.return:c[0]?O.throw||((k=O.return)&&k.call(O),0):O.next)&&!(k=k.call(O,c[1])).done)return k;switch(O=0,k&&(c=[c[0]&2,k.value]),c[0]){case 0:case 1:k=c;break;case 4:return h.label++,{value:c[1],done:!1};case 5:h.label++,O=c[1],c=[0];continue;case 7:c=h.ops.pop(),h.trys.pop();continue;default:if(k=h.trys,!(k=k.length>0&&k[k.length-1])&&(c[0]===6||c[0]===2)){h=0;continue}if(c[0]===3&&(!k||c[1]>k[0]&&c[1]=D.length&&(D=void 0),{value:D&&D[w++],done:!D}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(D,e){var h=typeof Symbol=="function"&&D[Symbol.iterator];if(!h)return D;var w=h.call(D),O,k=[],S;try{for(;(e===void 0||e-- >0)&&!(O=w.next()).done;)k.push(O.value)}catch(a){S={error:a}}finally{try{O&&!O.done&&(h=w.return)&&h.call(w)}finally{if(S)throw S.error}}return k}function __spreadArray(D,e,h){if(h||arguments.length===2)for(var w=0,O=e.length,k;w1||a(r,n)})})}function a(r,n){try{t(w[r](n))}catch(o){s(k[0][3],o)}}function t(r){r.value instanceof __await?Promise.resolve(r.value.v).then(c,u):s(k[0][2],r)}function c(r){a("next",r)}function u(r){a("throw",r)}function s(r,n){r(n),k.shift(),k.length&&a(k[0][0],k[0][1])}}function __asyncValues(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=D[Symbol.asyncIterator],h;return e?e.call(D):(D=typeof __values=="function"?__values(D):D[Symbol.iterator](),h={},w("next"),w("throw"),w("return"),h[Symbol.asyncIterator]=function(){return this},h);function w(k){h[k]=D[k]&&function(S){return new Promise(function(a,t){S=D[k](S),O(a,t,S.done,S.value)})}}function O(k,S,a,t){Promise.resolve(t).then(function(c){k({value:c,done:a})},S)}}typeof SuppressedError=="function"&&SuppressedError;function isFunction(D){return typeof D=="function"}function createErrorClass(D){var e=function(w){Error.call(w),w.stack=new Error().stack},h=D(e);return h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h}var UnsubscriptionError=createErrorClass(function(D){return function(h){D(this),this.message=h?h.length+` errors occurred during unsubscription: +`+h.map(function(w,O){return O+1+") "+w.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=h}});function arrRemove(D,e){if(D){var h=D.indexOf(e);0<=h&&D.splice(h,1)}}var Subscription=function(){function D(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return D.prototype.unsubscribe=function(){var e,h,w,O,k;if(!this.closed){this.closed=!0;var S=this._parentage;if(S)if(this._parentage=null,Array.isArray(S))try{for(var a=__values(S),t=a.next();!t.done;t=a.next()){var c=t.value;c.remove(this)}}catch(i){e={error:i}}finally{try{t&&!t.done&&(h=a.return)&&h.call(a)}finally{if(e)throw e.error}}else S.remove(this);var u=this.initialTeardown;if(isFunction(u))try{u()}catch(i){k=i instanceof UnsubscriptionError?i.errors:[i]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var r=__values(s),n=r.next();!n.done;n=r.next()){var o=n.value;try{execFinalizer(o)}catch(i){k=k??[],i instanceof UnsubscriptionError?k=__spreadArray(__spreadArray([],__read(k)),__read(i.errors)):k.push(i)}}}catch(i){w={error:i}}finally{try{n&&!n.done&&(O=r.return)&&O.call(r)}finally{if(w)throw w.error}}}if(k)throw new UnsubscriptionError(k)}},D.prototype.add=function(e){var h;if(e&&e!==this)if(this.closed)execFinalizer(e);else{if(e instanceof D){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(h=this._finalizers)!==null&&h!==void 0?h:[]).push(e)}},D.prototype._hasParent=function(e){var h=this._parentage;return h===e||Array.isArray(h)&&h.includes(e)},D.prototype._addParent=function(e){var h=this._parentage;this._parentage=Array.isArray(h)?(h.push(e),h):h?[h,e]:e},D.prototype._removeParent=function(e){var h=this._parentage;h===e?this._parentage=null:Array.isArray(h)&&arrRemove(h,e)},D.prototype.remove=function(e){var h=this._finalizers;h&&arrRemove(h,e),e instanceof D&&e._removeParent(this)},D.EMPTY=function(){var e=new D;return e.closed=!0,e}(),D}();Subscription.EMPTY;function isSubscription(D){return D instanceof Subscription||D&&"closed"in D&&isFunction(D.remove)&&isFunction(D.add)&&isFunction(D.unsubscribe)}function execFinalizer(D){isFunction(D)?D():D.unsubscribe()}var config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},timeoutProvider={setTimeout:function(D,e){for(var h=[],w=2;w=2;return function(w){return w.pipe(D?filter(function(O,k){return D(O,k,w)}):identity,take(1),h?defaultIfEmpty(e):throwIfEmpty(function(){return new EmptyError}))}}function switchMap(D,e){return operate(function(h,w){var O=null,k=0,S=!1,a=function(){return S&&!O&&w.complete()};h.subscribe(createOperatorSubscriber(w,function(t){O==null||O.unsubscribe();var c=0,u=k++;innerFrom(D(t,u)).subscribe(O=createOperatorSubscriber(w,function(s){return w.next(e?e(t,s,u,c++):s)},function(){O=null,a()}))},function(){S=!0,a()}))})}function tap(D,e,h){var w=isFunction(D)||e||h?{next:D,error:e,complete:h}:D;return w?operate(function(O,k){var S;(S=w.subscribe)===null||S===void 0||S.call(w);var a=!0;O.subscribe(createOperatorSubscriber(k,function(t){var c;(c=w.next)===null||c===void 0||c.call(w,t),k.next(t)},function(){var t;a=!1,(t=w.complete)===null||t===void 0||t.call(w),k.complete()},function(t){var c;a=!1,(c=w.error)===null||c===void 0||c.call(w,t),k.error(t)},function(){var t,c;a&&((t=w.unsubscribe)===null||t===void 0||t.call(w)),(c=w.finalize)===null||c===void 0||c.call(w)}))}):identity}function createFetchClient(D){return D.pipe(switchMap(e=>of(e)),first(),catchError(e=>{throw e}))}function identifyQueryResponseErrors(D){if(typeof D=="string"&&(D.includes("error")||D.includes("Error")))throw new Error(D);if(typeof D=="object"&&"includes"in D&&D.includes("parse_err"))throw new Error(D)}const secretClientContractQuery$=({queryMsg:D,client:e,contractAddress:h,codeHash:w})=>createFetchClient(defer(()=>from(e.query.compute.queryContract({contract_address:h,code_hash:w,query:D})))),sendSecretClientContractQuery$=({queryMsg:D,client:e,contractAddress:h,codeHash:w})=>secretClientContractQuery$({queryMsg:D,client:e,contractAddress:h,codeHash:w}).pipe(tap(O=>identifyQueryResponseErrors(O)),first());var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},browser={exports:{}};/*! For license information please see browser.js.LICENSE.txt */(function(module,exports){(function(D,e){module.exports=e()})(commonjsGlobal,()=>(()=>{var __webpack_modules__={7768:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromAscii=e.toAscii=void 0,e.toAscii=function(h){return Uint8Array.from(h.split("").map(w=>{const O=w.charCodeAt(0);if(O<32||O>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+O);return O}))},e.fromAscii=function(h){return(w=Array.from(h),w.map(O=>{if(O<32||O>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+O);return String.fromCharCode(O)})).join("");var w}},3431:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.fromBase64=e.toBase64=void 0;const S=k(h(9742));e.toBase64=function(a){return S.fromByteArray(a)},e.fromBase64=function(a){if(!a.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return S.toByteArray(a)}},5438:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Bech32=void 0;const S=k(h(3235));e.Bech32=class{static encode(a,t,c){return S.encode(a,S.toWords(t),c)}static decode(a,t=1/0){const c=S.decode(a,t);return{prefix:c.prefix,data:new Uint8Array(S.fromWords(c.words))}}}},6135:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromHex=e.toHex=void 0,e.toHex=function(h){let w="";for(const O of h)w+=("0"+O.toString(16)).slice(-2);return w},e.fromHex=function(h){if(h.length%2!=0)throw new Error("hex string length must be a multiple of 2");const w=[];for(let O=0;O{Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8=e.fromUtf8=e.toRfc3339=e.fromRfc3339=e.toHex=e.fromHex=e.Bech32=e.toBase64=e.fromBase64=e.toAscii=e.fromAscii=void 0;var w=h(7768);Object.defineProperty(e,"fromAscii",{enumerable:!0,get:function(){return w.fromAscii}}),Object.defineProperty(e,"toAscii",{enumerable:!0,get:function(){return w.toAscii}});var O=h(3431);Object.defineProperty(e,"fromBase64",{enumerable:!0,get:function(){return O.fromBase64}}),Object.defineProperty(e,"toBase64",{enumerable:!0,get:function(){return O.toBase64}});var k=h(5438);Object.defineProperty(e,"Bech32",{enumerable:!0,get:function(){return k.Bech32}});var S=h(6135);Object.defineProperty(e,"fromHex",{enumerable:!0,get:function(){return S.fromHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return S.toHex}});var a=h(7310);Object.defineProperty(e,"fromRfc3339",{enumerable:!0,get:function(){return a.fromRfc3339}}),Object.defineProperty(e,"toRfc3339",{enumerable:!0,get:function(){return a.toRfc3339}});var t=h(6081);Object.defineProperty(e,"fromUtf8",{enumerable:!0,get:function(){return t.fromUtf8}}),Object.defineProperty(e,"toUtf8",{enumerable:!0,get:function(){return t.toUtf8}})},7310:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toRfc3339=e.fromRfc3339=void 0;const h=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function w(O,k=2){const S="00000"+O.toString();return S.substring(S.length-k)}e.fromRfc3339=function(O){const k=h.exec(O);if(!k)throw new Error("Date string is not in RFC3339 format");const S=+k[1],a=+k[2],t=+k[3],c=+k[4],u=+k[5],s=+k[6],r=k[7]?Math.floor(1e3*+k[7]):0;let n,o,i;k[8]==="Z"?(n=1,o=0,i=0):(n=k[8].substring(0,1)==="-"?-1:1,o=+k[8].substring(1,3),i=+k[8].substring(4,6));const f=n*(60*o+i)*60,d=Date.UTC(S,a-1,t,c,u,s,r)-1e3*f;return new Date(d)},e.toRfc3339=function(O){return`${O.getUTCFullYear()}-${w(O.getUTCMonth()+1)}-${w(O.getUTCDate())}T${w(O.getUTCHours())}:${w(O.getUTCMinutes())}:${w(O.getUTCSeconds())}.${w(O.getUTCMilliseconds(),3)}Z`}},6081:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromUtf8=e.toUtf8=void 0,e.toUtf8=function(h){return new TextEncoder().encode(h)},e.fromUtf8=function(h){return new TextDecoder("utf-8",{fatal:!0}).decode(h)}},3235:D=>{for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",h={},w=0;w<32;w++){var O=e.charAt(w);if(h[O]!==void 0)throw new TypeError(O+" is ambiguous");h[O]=w}function k(c){var u=c>>25;return(33554431&c)<<5^996825010&-(u>>0&1)^642813549&-(u>>1&1)^513874426&-(u>>2&1)^1027748829&-(u>>3&1)^705979059&-(u>>4&1)}function S(c){for(var u=1,s=0;s126)return"Invalid prefix ("+c+")";u=k(u)^r>>5}for(u=k(u),s=0;su)return"Exceeds length limit";var s=c.toLowerCase(),r=c.toUpperCase();if(c!==s&&c!==r)return"Mixed-case string "+c;var n=(c=s).lastIndexOf("1");if(n===-1)return"No separator character for "+c;if(n===0)return"Missing prefix for "+c;var o=c.slice(0,n),i=c.slice(n+1);if(i.length<6)return"Data too short";var f=S(o);if(typeof f=="string")return f;for(var d=[],p=0;p=i.length||d.push(b)}return f!==1?"Invalid checksum for "+c:{prefix:o,words:d}}function t(c,u,s,r){for(var n=0,o=0,i=(1<=s;)o-=s,f.push(n>>o&i);if(r)o>0&&f.push(n<=u)return"Excess padding";if(n<s)throw new TypeError("Exceeds length limit");var r=S(c=c.toLowerCase());if(typeof r=="string")throw new Error(r);for(var n=c+"1",o=0;o>5)throw new Error("Non 5-bit word");r=k(r)^i,n+=e.charAt(i)}for(o=0;o<6;++o)r=k(r);for(r^=1,o=0;o<6;++o)n+=e.charAt(r>>5*(5-o)&31);return n},toWordsUnsafe:function(c){var u=t(c,8,5,!0);if(Array.isArray(u))return u},toWords:function(c){var u=t(c,8,5,!0);if(Array.isArray(u))return u;throw new Error(u)},fromWordsUnsafe:function(c){var u=t(c,5,8,!1);if(Array.isArray(u))return u},fromWords:function(c){var u=t(c,5,8,!1);if(Array.isArray(u))return u;throw new Error(u)}}},7505:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2=void 0;const w=h(8089);class O extends w.Hash{constructor(S,a,t,c){super(),this.blockLen=S,this.outputLen=a,this.padOffset=t,this.isLE=c,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(S),this.view=(0,w.createView)(this.buffer)}update(S){if(this.destroyed)throw new Error("instance is destroyed");const{view:a,buffer:t,blockLen:c,finished:u}=this;if(u)throw new Error("digest() was already called");const s=(S=(0,w.toBytes)(S)).length;for(let r=0;rc-s&&(this.process(t,0),s=0);for(let n=s;n>d&p),b=Number(i&p),I=f?4:0,l=f?0:4;n.setUint32(o+I,_,f),n.setUint32(o+l,b,f)})(t,c-8,BigInt(8*this.length),u),this.process(t,0);const r=(0,w.createView)(S);this.get().forEach((n,o)=>r.setUint32(4*o,n,u))}digest(){const{buffer:S,outputLen:a}=this;this.digestInto(S);const t=S.slice(0,a);return this.destroy(),t}_cloneInto(S){S||(S=new this.constructor),S.set(...this.get());const{blockLen:a,buffer:t,length:c,finished:u,destroyed:s,pos:r}=this;return S.length=c,S.pos=r,S.finished=u,S.destroyed=s,c%a&&S.buffer.set(t),S}}e.SHA2=O},6873:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.add5H=e.add5L=e.add4H=e.add4L=e.add3H=e.add3L=e.add=e.rotlBL=e.rotlBH=e.rotlSL=e.rotlSH=e.rotr32L=e.rotr32H=e.rotrBL=e.rotrBH=e.rotrSL=e.rotrSH=e.shrSL=e.shrSH=e.toBig=e.split=e.fromBig=void 0;const h=BigInt(2**32-1),w=BigInt(32);function O(k,S=!1){return S?{h:Number(k&h),l:Number(k>>w&h)}:{h:0|Number(k>>w&h),l:0|Number(k&h)}}e.fromBig=O,e.split=function(k,S=!1){let a=new Uint32Array(k.length),t=new Uint32Array(k.length);for(let c=0;cBigInt(k>>>0)<>>0),e.shrSH=(k,S,a)=>k>>>a,e.shrSL=(k,S,a)=>k<<32-a|S>>>a,e.rotrSH=(k,S,a)=>k>>>a|S<<32-a,e.rotrSL=(k,S,a)=>k<<32-a|S>>>a,e.rotrBH=(k,S,a)=>k<<64-a|S>>>a-32,e.rotrBL=(k,S,a)=>k>>>a-32|S<<64-a,e.rotr32H=(k,S)=>S,e.rotr32L=(k,S)=>k,e.rotlSH=(k,S,a)=>k<>>32-a,e.rotlSL=(k,S,a)=>S<>>32-a,e.rotlBH=(k,S,a)=>S<>>64-a,e.rotlBL=(k,S,a)=>k<>>64-a,e.add=function(k,S,a,t){const c=(S>>>0)+(t>>>0);return{h:k+a+(c/4294967296|0)|0,l:0|c}},e.add3L=(k,S,a)=>(k>>>0)+(S>>>0)+(a>>>0),e.add3H=(k,S,a,t)=>S+a+t+(k/4294967296|0)|0,e.add4L=(k,S,a,t)=>(k>>>0)+(S>>>0)+(a>>>0)+(t>>>0),e.add4H=(k,S,a,t,c)=>S+a+t+c+(k/4294967296|0)|0,e.add5L=(k,S,a,t,c)=>(k>>>0)+(S>>>0)+(a>>>0)+(t>>>0)+(c>>>0),e.add5H=(k,S,a,t,c,u)=>S+a+t+c+u+(k/4294967296|0)|0},4421:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0,e.crypto={node:void 0,web:typeof self=="object"&&"crypto"in self?self.crypto:void 0}},4330:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hkdf=e.expand=e.extract=void 0;const w=h(8089),O=h(9569);function k(c,u,s){return(0,w.assertHash)(c),s===void 0&&(s=new Uint8Array(c.outputLen)),(0,O.hmac)(c,(0,w.toBytes)(s),(0,w.toBytes)(u))}e.extract=k;const S=new Uint8Array([0]),a=new Uint8Array;function t(c,u,s,r=32){if((0,w.assertHash)(c),(0,w.assertNumber)(r),r>255*c.outputLen)throw new Error("Length should be <= 255*HashLen");const n=Math.ceil(r/c.outputLen);s===void 0&&(s=a);const o=new Uint8Array(n*c.outputLen),i=O.hmac.create(c,u),f=i._cloneInto(),d=new Uint8Array(i.outputLen);for(let p=0;pt(c,k(c,u,s),r,n)},9569:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.hmac=void 0;const w=h(8089);class O extends w.Hash{constructor(S,a){super(),this.finished=!1,this.destroyed=!1,(0,w.assertHash)(S);const t=(0,w.toBytes)(a);if(this.iHash=S.create(),!(this.iHash instanceof w.Hash))throw new TypeError("Expected instance of class which extends utils.Hash");const c=this.blockLen=this.iHash.blockLen;this.outputLen=this.iHash.outputLen;const u=new Uint8Array(c);u.set(t.length>this.iHash.blockLen?S.create().update(t).digest():t);for(let s=0;snew O(k,S).update(a).digest(),e.hmac.create=(k,S)=>new O(k,S)},830:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ripemd160=e.RIPEMD160=void 0;const w=h(7505),O=h(8089),k=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),S=Uint8Array.from({length:16},(_,b)=>b),a=S.map(_=>(9*_+5)%16);let t=[S],c=[a];for(let _=0;_<4;_++)for(let b of[t,c])b.push(b[_].map(I=>k[I]));const u=[[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(_=>new Uint8Array(_)),s=t.map((_,b)=>_.map(I=>u[b][I])),r=c.map((_,b)=>_.map(I=>u[b][I])),n=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),o=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),i=(_,b)=>_<>>32-b;function f(_,b,I,l){return _===0?b^I^l:_===1?b&I|~b&l:_===2?(b|~I)^l:_===3?b&l|I&~l:b^(I|~l)}const d=new Uint32Array(16);class p extends w.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:b,h1:I,h2:l,h3:j,h4:M}=this;return[b,I,l,j,M]}set(b,I,l,j,M){this.h0=0|b,this.h1=0|I,this.h2=0|l,this.h3=0|j,this.h4=0|M}process(b,I){for(let B=0;B<16;B++,I+=4)d[B]=b.getUint32(I,!0);let l=0|this.h0,j=l,M=0|this.h1,N=M,C=0|this.h2,x=C,P=0|this.h3,v=P,m=0|this.h4,E=m;for(let B=0;B<5;B++){const T=4-B,q=n[B],te=o[B],re=t[B],ie=c[B],J=s[B],ee=r[B];for(let G=0;G<16;G++){const $=i(l+f(B,M,C,P)+d[re[G]]+q,J[G])+m|0;l=m,m=P,P=0|i(C,10),C=M,M=$}for(let G=0;G<16;G++){const $=i(j+f(T,N,x,v)+d[ie[G]]+te,ee[G])+E|0;j=E,E=v,v=0|i(x,10),x=N,N=$}}this.set(this.h1+C+v|0,this.h2+P+E|0,this.h3+m+j|0,this.h4+l+N|0,this.h0+M+x|0)}roundClean(){d.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}e.RIPEMD160=p,e.ripemd160=(0,O.wrapConstructor)(()=>new p)},3061:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sha256=void 0;const w=h(7505),O=h(8089),k=(u,s,r)=>u&s^u&r^s&r,S=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]),a=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),t=new Uint32Array(64);class c extends w.SHA2{constructor(){super(64,32,8,!1),this.A=0|a[0],this.B=0|a[1],this.C=0|a[2],this.D=0|a[3],this.E=0|a[4],this.F=0|a[5],this.G=0|a[6],this.H=0|a[7]}get(){const{A:s,B:r,C:n,D:o,E:i,F:f,G:d,H:p}=this;return[s,r,n,o,i,f,d,p]}set(s,r,n,o,i,f,d,p){this.A=0|s,this.B=0|r,this.C=0|n,this.D=0|o,this.E=0|i,this.F=0|f,this.G=0|d,this.H=0|p}process(s,r){for(let l=0;l<16;l++,r+=4)t[l]=s.getUint32(r,!1);for(let l=16;l<64;l++){const j=t[l-15],M=t[l-2],N=(0,O.rotr)(j,7)^(0,O.rotr)(j,18)^j>>>3,C=(0,O.rotr)(M,17)^(0,O.rotr)(M,19)^M>>>10;t[l]=C+t[l-7]+N+t[l-16]|0}let{A:n,B:o,C:i,D:f,E:d,F:p,G:_,H:b}=this;for(let l=0;l<64;l++){const j=b+((0,O.rotr)(d,6)^(0,O.rotr)(d,11)^(0,O.rotr)(d,25))+((I=d)&p^~I&_)+S[l]+t[l]|0,M=((0,O.rotr)(n,2)^(0,O.rotr)(n,13)^(0,O.rotr)(n,22))+k(n,o,i)|0;b=_,_=p,p=d,d=f+j|0,f=i,i=o,o=n,n=j+M|0}var I;n=n+this.A|0,o=o+this.B|0,i=i+this.C|0,f=f+this.D|0,d=d+this.E|0,p=p+this.F|0,_=_+this.G|0,b=b+this.H|0,this.set(n,o,i,f,d,p,_,b)}roundClean(){t.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}e.sha256=(0,O.wrapConstructor)(()=>new c)},5426:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(N,C,x,P){P===void 0&&(P=x),Object.defineProperty(N,P,{enumerable:!0,get:function(){return C[x]}})}:function(N,C,x,P){P===void 0&&(P=x),N[P]=C[x]}),O=this&&this.__setModuleDefault||(Object.create?function(N,C){Object.defineProperty(N,"default",{enumerable:!0,value:C})}:function(N,C){N.default=C}),k=this&&this.__importStar||function(N){if(N&&N.__esModule)return N;var C={};if(N!=null)for(var x in N)x!=="default"&&Object.prototype.hasOwnProperty.call(N,x)&&w(C,N,x);return O(C,N),C};Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=e.keccakP=void 0;const S=k(h(6873)),a=h(8089),[t,c,u]=[[],[],[]],s=BigInt(0),r=BigInt(1),n=BigInt(2),o=BigInt(7),i=BigInt(256),f=BigInt(113);for(let N=0,C=r,x=1,P=0;N<24;N++){[x,P]=[P,(2*x+3*P)%5],t.push(2*(5*P+x)),c.push((N+1)*(N+2)/2%64);let v=s;for(let m=0;m<7;m++)C=(C<>o)*f)%i,C&n&&(v^=r<<(r<x>32?S.rotlBH(N,C,x):S.rotlSH(N,C,x),b=(N,C,x)=>x>32?S.rotlBL(N,C,x):S.rotlSL(N,C,x);function I(N,C=24){const x=new Uint32Array(10);for(let P=24-C;P<24;P++){for(let E=0;E<10;E++)x[E]=N[E]^N[E+10]^N[E+20]^N[E+30]^N[E+40];for(let E=0;E<10;E+=2){const B=(E+8)%10,T=(E+2)%10,q=x[T],te=x[T+1],re=_(q,te,1)^x[B],ie=b(q,te,1)^x[B+1];for(let J=0;J<50;J+=10)N[E+J]^=re,N[E+J+1]^=ie}let v=N[2],m=N[3];for(let E=0;E<24;E++){const B=c[E],T=_(v,m,B),q=b(v,m,B),te=t[E];v=N[te],m=N[te+1],N[te]=T,N[te+1]=q}for(let E=0;E<50;E+=10){for(let B=0;B<10;B++)x[B]=N[E+B];for(let B=0;B<10;B++)N[E+B]^=~x[(B+2)%10]&x[(B+4)%10]}N[0]^=d[P],N[1]^=p[P]}x.fill(0)}e.keccakP=I;class l extends a.Hash{constructor(C,x,P,v=!1,m=24){if(super(),this.blockLen=C,this.suffix=x,this.outputLen=P,this.enableXOF=v,this.rounds=m,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,a.assertNumber)(P),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,a.u32)(this.state)}keccak(){I(this.state32,this.rounds),this.posOut=0,this.pos=0}update(C){if(this.destroyed)throw new Error("instance is destroyed");if(this.finished)throw new Error("digest() was already called");const{blockLen:x,state:P}=this,v=(C=(0,a.toBytes)(C)).length;for(let m=0;m=this.blockLen&&this.keccak();const v=Math.min(this.blockLen-this.posOut,P-x);C.set(this.state.subarray(this.posOut,this.posOut+v),x),this.posOut+=v,x+=v}return C}xofInto(C){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(C)}xof(C){return(0,a.assertNumber)(C),this.xofInto(new Uint8Array(C))}digestInto(C){if(C.length(0,a.wrapConstructor)(()=>new l(C,N,x));e.sha3_224=j(6,144,28),e.sha3_256=j(6,136,32),e.sha3_384=j(6,104,48),e.sha3_512=j(6,72,64),e.keccak_224=j(1,144,28),e.keccak_256=j(1,136,32),e.keccak_384=j(1,104,48),e.keccak_512=j(1,72,64);const M=(N,C,x)=>(0,a.wrapConstructorWithOpts)((P={})=>new l(C,N,P.dkLen!==void 0?P.dkLen:x,!0));e.shake128=M(31,168,16),e.shake256=M(31,136,32)},8089:(D,e,h)=>{D=h.nmd(D),Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=e.wrapConstructorWithOpts=e.wrapConstructor=e.checkOpts=e.Hash=e.assertHash=e.assertBytes=e.assertBool=e.assertNumber=e.concatBytes=e.toBytes=e.utf8ToBytes=e.asyncLoop=e.nextTick=e.hexToBytes=e.bytesToHex=e.isLE=e.rotr=e.createView=e.u32=e.u8=void 0;const w=h(4421);if(e.u8=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),e.u32=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),e.createView=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),e.rotr=(t,c)=>t<<32-c|t>>>c,e.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!e.isLE)throw new Error("Non little-endian hardware is not supported");const O=Array.from({length:256},(t,c)=>c.toString(16).padStart(2,"0"));function k(t){if(typeof t!="string")throw new TypeError("utf8ToBytes expected string, got "+typeof t);return new TextEncoder().encode(t)}function S(t){if(typeof t=="string"&&(t=k(t)),!(t instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof t})`);return t}function a(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}e.bytesToHex=function(t){let c="";for(let u=0;u{const t=typeof D.require=="function"&&D.require.bind(D);try{if(t){const{setImmediate:c}=t("timers");return()=>new Promise(u=>c(u))}}catch{}return()=>new Promise(c=>setTimeout(c,0))})(),e.asyncLoop=async function(t,c,u){let s=Date.now();for(let r=0;r=0&&ns instanceof Uint8Array))throw new Error("Uint8Array list expected");if(t.length===1)return t[0];const c=t.reduce((s,r)=>s+r.length,0),u=new Uint8Array(c);for(let s=0,r=0;st().update(S(s)).digest(),u=t();return c.outputLen=u.outputLen,c.blockLen=u.blockLen,c.create=()=>t(),c},e.wrapConstructorWithOpts=function(t){const c=(s,r)=>t(r).update(S(s)).digest(),u=t({});return c.outputLen=u.outputLen,c.blockLen=u.blockLen,c.create=s=>t(s),c},e.randomBytes=function(t=32){if(w.crypto.web)return w.crypto.web.getRandomValues(new Uint8Array(t));if(w.crypto.node)return new Uint8Array(w.crypto.node.randomBytes(t).buffer);throw new Error("The environment doesn't have randomBytes function")}},9656:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.schnorr=e.verify=e.signSync=e.sign=e.getSharedSecret=e.recoverPublicKey=e.getPublicKey=e.Signature=e.Point=e.CURVE=void 0;const w=h(9159),O=BigInt(0),k=BigInt(1),S=BigInt(2),a=BigInt(3),t=BigInt(8),c=Object.freeze({a:O,b:BigInt(7),P:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:k,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee")});function u(X){const{a:Q,b:Z}=c,se=E(X*X),ue=E(se*X);return E(ue+Q*X+Z)}e.CURVE=c;const s=c.a===O;class r extends Error{constructor(Q){super(Q)}}class n{constructor(Q,Z,se){this.x=Q,this.y=Z,this.z=se}static fromAffine(Q){if(!(Q instanceof i))throw new TypeError("JacobianPoint#fromAffine: expected Point");return new n(Q.x,Q.y,k)}static toAffineBatch(Q){const Z=function(se,ue=c.P){const fe=new Array(se.length),me=T(se.reduce((ge,be,_e)=>be===O?ge:(fe[_e]=ge,E(ge*be,ue)),k),ue);return se.reduceRight((ge,be,_e)=>be===O?ge:(fe[_e]=E(ge*fe[_e],ue),E(ge*be,ue)),me),fe}(Q.map(se=>se.z));return Q.map((se,ue)=>se.toAffine(Z[ue]))}static normalizeZ(Q){return n.toAffineBatch(Q).map(n.fromAffine)}equals(Q){if(!(Q instanceof n))throw new TypeError("JacobianPoint expected");const{x:Z,y:se,z:ue}=this,{x:fe,y:me,z:ge}=Q,be=E(ue*ue),_e=E(ge*ge),we=E(Z*_e),Ee=E(fe*be),xe=E(E(se*ge)*_e),Se=E(E(me*ue)*be);return we===Ee&&xe===Se}negate(){return new n(this.x,E(-this.y),this.z)}double(){const{x:Q,y:Z,z:se}=this,ue=E(Q*Q),fe=E(Z*Z),me=E(fe*fe),ge=Q+fe,be=E(S*(E(ge*ge)-ue-me)),_e=E(a*ue),we=E(_e*_e),Ee=E(we-S*be),xe=E(_e*(be-Ee)-t*me),Se=E(S*Z*se);return new n(Ee,xe,Se)}add(Q){if(!(Q instanceof n))throw new TypeError("JacobianPoint expected");const{x:Z,y:se,z:ue}=this,{x:fe,y:me,z:ge}=Q;if(fe===O||me===O)return this;if(Z===O||se===O)return Q;const be=E(ue*ue),_e=E(ge*ge),we=E(Z*_e),Ee=E(fe*be),xe=E(E(se*ge)*_e),Se=E(E(me*ue)*be),ke=E(Ee-we),Re=E(Se-xe);if(ke===O)return Re===O?this.double():n.ZERO;const Oe=E(ke*ke),Pe=E(ke*Oe),Me=E(we*Oe),Ae=E(Re*Re-Pe-S*Me),Ne=E(Re*(Me-Ae)-xe*Pe),Te=E(ue*ge*ke);return new n(Ae,Ne,Te)}subtract(Q){return this.add(Q.negate())}multiplyUnsafe(Q){const Z=n.ZERO;if(typeof Q=="bigint"&&Q===O)return Z;let se=m(Q);if(se===k)return this;if(!s){let Ee=Z,xe=this;for(;se>O;)se&k&&(Ee=Ee.add(xe)),xe=xe.double(),se>>=k;return Ee}let{k1neg:ue,k1:fe,k2neg:me,k2:ge}=re(se),be=Z,_e=Z,we=this;for(;fe>O||ge>O;)fe&k&&(be=be.add(we)),ge&k&&(_e=_e.add(we)),we=we.double(),fe>>=k,ge>>=k;return ue&&(be=be.negate()),me&&(_e=_e.negate()),_e=new n(E(_e.x*c.beta),_e.y,_e.z),be.add(_e)}precomputeWindow(Q){const Z=s?128/Q+1:256/Q+1,se=[];let ue=this,fe=ue;for(let me=0;me>=Ee,ke>be&&(ke-=we,Q+=k),ke===0){let Re=ue[Se];xe%2&&(Re=Re.negate()),me=me.add(Re)}else{let Re=ue[Se+Math.abs(ke)-1];ke<0&&(Re=Re.negate()),fe=fe.add(Re)}}return{p:fe,f:me}}multiply(Q,Z){let se,ue,fe=m(Q);if(s){const{k1neg:me,k1:ge,k2neg:be,k2:_e}=re(fe);let{p:we,f:Ee}=this.wNAF(ge,Z),{p:xe,f:Se}=this.wNAF(_e,Z);me&&(we=we.negate()),be&&(xe=xe.negate()),xe=new n(E(xe.x*c.beta),xe.y,xe.z),se=we.add(xe),ue=Ee.add(Se)}else{const{p:me,f:ge}=this.wNAF(fe,Z);se=me,ue=ge}return n.normalizeZ([se,ue])[0]}toAffine(Q=T(this.z)){const{x:Z,y:se,z:ue}=this,fe=Q,me=E(fe*fe),ge=E(me*fe),be=E(Z*me),_e=E(se*ge);if(E(ue*fe)!==k)throw new Error("invZ was invalid");return new i(be,_e)}}n.BASE=new n(c.Gx,c.Gy,k),n.ZERO=new n(O,k,O);const o=new WeakMap;class i{constructor(Q,Z){this.x=Q,this.y=Z}_setWindowSize(Q){this._WINDOW_SIZE=Q,o.delete(this)}hasEvenY(){return this.y%S===O}static fromCompressedHex(Q){const Z=Q.length===32,se=P(Z?Q:Q.subarray(1));if(!W(se))throw new Error("Point is not on curve");let ue=function(ge){const{P:be}=c,_e=BigInt(6),we=BigInt(11),Ee=BigInt(22),xe=BigInt(23),Se=BigInt(44),ke=BigInt(88),Re=ge*ge*ge%be,Oe=Re*Re*ge%be,Pe=B(Oe,a)*Oe%be,Me=B(Pe,a)*Oe%be,Ae=B(Me,S)*Re%be,Ne=B(Ae,we)*Ae%be,Te=B(Ne,Ee)*Ne%be,Ce=B(Te,Se)*Te%be,Ie=B(Ce,ke)*Ce%be,De=B(Ie,Se)*Te%be,je=B(De,a)*Oe%be,Ue=B(je,xe)*Ne%be,ze=B(Ue,_e)*Re%be;return B(ze,S)}(u(se));const fe=(ue&k)===k;Z?fe&&(ue=E(-ue)):(1&Q[0])==1!==fe&&(ue=E(-ue));const me=new i(se,ue);return me.assertValidity(),me}static fromUncompressedHex(Q){const Z=P(Q.subarray(1,33)),se=P(Q.subarray(33,65)),ue=new i(Z,se);return ue.assertValidity(),ue}static fromHex(Q){const Z=v(Q),se=Z.length,ue=Z[0];if(se===32||se===33&&(ue===2||ue===3))return this.fromCompressedHex(Z);if(se===65&&ue===4)return this.fromUncompressedHex(Z);throw new Error(`Point.fromHex: received invalid point. Expected 32-33 compressed bytes or 65 uncompressed bytes, not ${se}`)}static fromPrivateKey(Q){return i.BASE.multiply(F(Q))}static fromSignature(Q,Z,se){const ue=ie(Q=v(Q)),{r:fe,s:me}=he(Z);if(se!==0&&se!==1)throw new Error("Cannot recover signature: invalid recovery bit");const ge=1&se?"03":"02",be=i.fromHex(ge+j(fe)),{n:_e}=c,we=T(fe,_e),Ee=E(-ue*we,_e),xe=E(me*we,_e),Se=i.BASE.multiplyAndAddUnsafe(be,Ee,xe);if(!Se)throw new Error("Cannot recover signature: point at infinify");return Se.assertValidity(),Se}toRawBytes(Q=!1){return x(this.toHex(Q))}toHex(Q=!1){const Z=j(this.x);return Q?`${this.hasEvenY()?"02":"03"}${Z}`:`04${Z}${j(this.y)}`}toHexX(){return this.toHex(!0).slice(2)}toRawX(){return this.toRawBytes(!0).slice(1)}assertValidity(){const Q="Point is not on elliptic curve",{x:Z,y:se}=this;if(!W(Z)||!W(se))throw new Error(Q);const ue=E(se*se);if(E(ue-u(Z))!==O)throw new Error(Q)}equals(Q){return this.x===Q.x&&this.y===Q.y}negate(){return new i(this.x,E(-this.y))}double(){return n.fromAffine(this).double().toAffine()}add(Q){return n.fromAffine(this).add(n.fromAffine(Q)).toAffine()}subtract(Q){return this.add(Q.negate())}multiply(Q){return n.fromAffine(this).multiply(Q,this).toAffine()}multiplyAndAddUnsafe(Q,Z,se){const ue=n.fromAffine(this),fe=Z===O||Z===k||this!==i.BASE?ue.multiplyUnsafe(Z):ue.multiply(Z),me=n.fromAffine(Q).multiplyUnsafe(se),ge=fe.add(me);return ge.equals(n.ZERO)?void 0:ge.toAffine()}}function f(X){return Number.parseInt(X[0],16)>=8?"00"+X:X}function d(X){if(X.length<2||X[0]!==2)throw new Error(`Invalid signature integer tag: ${I(X)}`);const Q=X[1],Z=X.subarray(2,Q+2);if(!Q||Z.length!==Q)throw new Error("Invalid signature integer: wrong length");if(Z[0]===0&&Z[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:P(Z),left:X.subarray(Q+2)}}e.Point=i,i.BASE=new i(c.Gx,c.Gy),i.ZERO=new i(O,O);class p{constructor(Q,Z){this.r=Q,this.s=Z,this.assertValidity()}static fromCompact(Q){const Z=Q instanceof Uint8Array,se="Signature.fromCompact";if(typeof Q!="string"&&!Z)throw new TypeError(`${se}: Expected string or Uint8Array`);const ue=Z?I(Q):Q;if(ue.length!==128)throw new Error(`${se}: Expected 64-byte hex`);return new p(C(ue.slice(0,64)),C(ue.slice(64,128)))}static fromDER(Q){const Z=Q instanceof Uint8Array;if(typeof Q!="string"&&!Z)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");const{r:se,s:ue}=function(fe){if(fe.length<2||fe[0]!=48)throw new Error(`Invalid signature tag: ${I(fe)}`);if(fe[1]!==fe.length-2)throw new Error("Invalid signature: incorrect length");const{data:me,left:ge}=d(fe.subarray(2)),{data:be,left:_e}=d(ge);if(_e.length)throw new Error(`Invalid signature: left bytes after parsing: ${I(_e)}`);return{r:me,s:be}}(Z?Q:x(Q));return new p(se,ue)}static fromHex(Q){return this.fromDER(Q)}assertValidity(){const{r:Q,s:Z}=this;if(!$(Q))throw new Error("Invalid Signature: r must be 0 < r < n");if(!$(Z))throw new Error("Invalid Signature: s must be 0 < s < n")}hasHighS(){const Q=c.n>>k;return this.s>Q}normalizeS(){return this.hasHighS()?new p(this.r,c.n-this.s):this}toDERRawBytes(Q=!1){return x(this.toDERHex(Q))}toDERHex(Q=!1){const Z=f(N(this.s));if(Q)return Z;const se=f(N(this.r)),ue=N(se.length/2),fe=N(Z.length/2);return`30${N(se.length/2+Z.length/2+4)}02${ue}${se}02${fe}${Z}`}toRawBytes(){return this.toDERRawBytes()}toHex(){return this.toDERHex()}toCompactRawBytes(){return x(this.toCompactHex())}toCompactHex(){return j(this.r)+j(this.s)}}function _(...X){if(!X.every(se=>se instanceof Uint8Array))throw new Error("Uint8Array list expected");if(X.length===1)return X[0];const Q=X.reduce((se,ue)=>se+ue.length,0),Z=new Uint8Array(Q);for(let se=0,ue=0;seQ.toString(16).padStart(2,"0"));function I(X){if(!(X instanceof Uint8Array))throw new Error("Expected Uint8Array");let Q="";for(let Z=0;Z0)return BigInt(X);if(typeof X=="bigint"&&$(X))return X;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function E(X,Q=c.P){const Z=X%Q;return Z>=O?Z:Q+Z}function B(X,Q){const{P:Z}=c;let se=X;for(;Q-- >O;)se*=se,se%=Z;return se}function T(X,Q=c.P){if(X===O||Q<=O)throw new Error(`invert: expected positive integers, got n=${X} mod=${Q}`);let Z=E(X,Q),se=Q,ue=O,fe=k;for(;Z!==O;){const me=se/Z,ge=se%Z,be=ue-fe*me;se=Z,Z=ge,ue=fe,fe=be}if(se!==k)throw new Error("invert: does not exist");return E(ue,Q)}const q=(X,Q)=>(X+Q/S)/Q,te={a1:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),b1:-k*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a2:BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),b2:BigInt("0x3086d221a7d46bcde86c90e49284eb15"),POW_2_128:BigInt("0x100000000000000000000000000000000")};function re(X){const{n:Q}=c,{a1:Z,b1:se,a2:ue,b2:fe,POW_2_128:me}=te,ge=q(fe*X,Q),be=q(-se*X,Q);let _e=E(X-ge*Z-be*ue,Q),we=E(-ge*se-be*fe,Q);const Ee=_e>me,xe=we>me;if(Ee&&(_e=Q-_e),xe&&(we=Q-we),_e>me||we>me)throw new Error("splitScalarEndo: Endomorphism failed, k="+X);return{k1neg:Ee,k1:_e,k2neg:xe,k2:we}}function ie(X){const{n:Q}=c,Z=8*X.length-256;let se=P(X);return Z>0&&(se>>=BigInt(Z)),se>=Q&&(se-=Q),se}let J,ee;class G{constructor(){this.v=new Uint8Array(32).fill(1),this.k=new Uint8Array(32).fill(0),this.counter=0}hmac(...Q){return e.utils.hmacSha256(this.k,...Q)}hmacSync(...Q){return ee(this.k,...Q)}checkSync(){if(typeof ee!="function")throw new r("hmacSha256Sync needs to be set")}incr(){if(this.counter>=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}async reseed(Q=new Uint8Array){this.k=await this.hmac(this.v,Uint8Array.from([0]),Q),this.v=await this.hmac(this.v),Q.length!==0&&(this.k=await this.hmac(this.v,Uint8Array.from([1]),Q),this.v=await this.hmac(this.v))}reseedSync(Q=new Uint8Array){this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),Q),this.v=this.hmacSync(this.v),Q.length!==0&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),Q),this.v=this.hmacSync(this.v))}async generate(){return this.incr(),this.v=await this.hmac(this.v),this.v}generateSync(){return this.checkSync(),this.incr(),this.v=this.hmacSync(this.v),this.v}}function $(X){return O0)Q=BigInt(X);else if(typeof X=="string"){if(X.length!==64)throw new Error("Expected 32 bytes of private key");Q=C(X)}else{if(!(X instanceof Uint8Array))throw new TypeError("Expected valid private key");if(X.length!==32)throw new Error("Expected 32 bytes of private key");Q=P(X)}if(!$(Q))throw new Error("Expected private key: 0 < key < n");return Q}function ae(X){return X instanceof i?(X.assertValidity(),X):i.fromHex(X)}function he(X){if(X instanceof p)return X.assertValidity(),X;try{return p.fromDER(X)}catch{return p.fromCompact(X)}}function le(X){const Q=X instanceof Uint8Array,Z=typeof X=="string",se=(Q||Z)&&X.length;return Q?se===33||se===65:Z?se===66||se===130:X instanceof i}function ce(X){return P(X.length>32?X.slice(0,32):X)}function ve(X){const Q=ce(X),Z=E(Q,c.n);return de(Z{if((X=v(X)).length<40||X.length>1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return M(E(P(X),c.n-k)+k)},randomBytes:(X=32)=>{if(ne.web)return ne.web.getRandomValues(new Uint8Array(X));if(ne.node){const{randomBytes:Q}=ne.node;return Uint8Array.from(Q(X))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:()=>e.utils.hashToPrivateKey(e.utils.randomBytes(40)),sha256:async(...X)=>{if(ne.web){const Q=await ne.web.subtle.digest("SHA-256",_(...X));return new Uint8Array(Q)}if(ne.node){const{createHash:Q}=ne.node,Z=Q("sha256");return X.forEach(se=>Z.update(se)),Uint8Array.from(Z.digest())}throw new Error("The environment doesn't have sha256 function")},hmacSha256:async(X,...Q)=>{if(ne.web){const Z=await ne.web.subtle.importKey("raw",X,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),se=_(...Q),ue=await ne.web.subtle.sign("HMAC",Z,se);return new Uint8Array(ue)}if(ne.node){const{createHmac:Z}=ne.node,se=Z("sha256",X);return Q.forEach(ue=>se.update(ue)),Uint8Array.from(se.digest())}throw new Error("The environment doesn't have hmac-sha256 function")},sha256Sync:void 0,hmacSha256Sync:void 0,taggedHash:async(X,...Q)=>{let Z=K[X];if(Z===void 0){const se=await e.utils.sha256(Uint8Array.from(X,ue=>ue.charCodeAt(0)));Z=_(se,se),K[X]=Z}return e.utils.sha256(Z,...Q)},taggedHashSync:(X,...Q)=>{if(typeof J!="function")throw new r("sha256Sync is undefined, you need to set it");let Z=K[X];if(Z===void 0){const se=J(Uint8Array.from(X,ue=>ue.charCodeAt(0)));Z=_(se,se),K[X]=Z}return J(Z,...Q)},precompute(X=8,Q=i.BASE){const Z=Q===i.BASE?Q:new i(Q.x,Q.y);return Z._setWindowSize(X),Z.multiply(a),Z}},Object.defineProperties(e.utils,{sha256Sync:{configurable:!1,get:()=>J,set(X){J||(J=X)}},hmacSha256Sync:{configurable:!1,get:()=>ee,set(X){ee||(ee=X)}}})},4537:D=>{D.exports=function(e,h){for(var w=new Array(arguments.length-1),O=0,k=2,S=!0;k{var h=e;h.length=function(a){var t=a.length;if(!t)return 0;for(var c=0;--t%4>1&&a.charAt(t)==="=";)++c;return Math.ceil(3*a.length)/4-c};for(var w=new Array(64),O=new Array(123),k=0;k<64;)O[w[k]=k<26?k+65:k<52?k+71:k<62?k-4:k-59|43]=k++;h.encode=function(a,t,c){for(var u,s=null,r=[],n=0,o=0;t>2],u=(3&i)<<4,o=1;break;case 1:r[n++]=w[u|i>>4],u=(15&i)<<2,o=2;break;case 2:r[n++]=w[u|i>>6],r[n++]=w[63&i],o=0}n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,r)),n=0)}return o&&(r[n++]=w[u],r[n++]=61,o===1&&(r[n++]=61)),s?(n&&s.push(String.fromCharCode.apply(String,r.slice(0,n))),s.join("")):String.fromCharCode.apply(String,r.slice(0,n))};var S="invalid encoding";h.decode=function(a,t,c){for(var u,s=c,r=0,n=0;n1)break;if((o=O[o])===void 0)throw Error(S);switch(r){case 0:u=o,r=1;break;case 1:t[c++]=u<<2|(48&o)>>4,u=o,r=2;break;case 2:t[c++]=(15&u)<<4|(60&o)>>2,u=o,r=3;break;case 3:t[c++]=(3&u)<<6|o,r=0}}if(r===1)throw Error(S);return c-s},h.test=function(a){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a)}},9211:D=>{function e(){this._listeners={}}D.exports=e,e.prototype.on=function(h,w,O){return(this._listeners[h]||(this._listeners[h]=[])).push({fn:w,ctx:O||this}),this},e.prototype.off=function(h,w){if(h===void 0)this._listeners={};else if(w===void 0)this._listeners[h]=[];else for(var O=this._listeners[h],k=0;k{function e(S){return typeof Float32Array<"u"?function(){var a=new Float32Array([-0]),t=new Uint8Array(a.buffer),c=t[3]===128;function u(o,i,f){a[0]=o,i[f]=t[0],i[f+1]=t[1],i[f+2]=t[2],i[f+3]=t[3]}function s(o,i,f){a[0]=o,i[f]=t[3],i[f+1]=t[2],i[f+2]=t[1],i[f+3]=t[0]}function r(o,i){return t[0]=o[i],t[1]=o[i+1],t[2]=o[i+2],t[3]=o[i+3],a[0]}function n(o,i){return t[3]=o[i],t[2]=o[i+1],t[1]=o[i+2],t[0]=o[i+3],a[0]}S.writeFloatLE=c?u:s,S.writeFloatBE=c?s:u,S.readFloatLE=c?r:n,S.readFloatBE=c?n:r}():function(){function a(c,u,s,r){var n=u<0?1:0;if(n&&(u=-u),u===0)c(1/u>0?0:2147483648,s,r);else if(isNaN(u))c(2143289344,s,r);else if(u>34028234663852886e22)c((n<<31|2139095040)>>>0,s,r);else if(u<11754943508222875e-54)c((n<<31|Math.round(u/1401298464324817e-60))>>>0,s,r);else{var o=Math.floor(Math.log(u)/Math.LN2);c((n<<31|o+127<<23|8388607&Math.round(u*Math.pow(2,-o)*8388608))>>>0,s,r)}}function t(c,u,s){var r=c(u,s),n=2*(r>>31)+1,o=r>>>23&255,i=8388607&r;return o===255?i?NaN:n*(1/0):o===0?1401298464324817e-60*n*i:n*Math.pow(2,o-150)*(i+8388608)}S.writeFloatLE=a.bind(null,h),S.writeFloatBE=a.bind(null,w),S.readFloatLE=t.bind(null,O),S.readFloatBE=t.bind(null,k)}(),typeof Float64Array<"u"?function(){var a=new Float64Array([-0]),t=new Uint8Array(a.buffer),c=t[7]===128;function u(o,i,f){a[0]=o,i[f]=t[0],i[f+1]=t[1],i[f+2]=t[2],i[f+3]=t[3],i[f+4]=t[4],i[f+5]=t[5],i[f+6]=t[6],i[f+7]=t[7]}function s(o,i,f){a[0]=o,i[f]=t[7],i[f+1]=t[6],i[f+2]=t[5],i[f+3]=t[4],i[f+4]=t[3],i[f+5]=t[2],i[f+6]=t[1],i[f+7]=t[0]}function r(o,i){return t[0]=o[i],t[1]=o[i+1],t[2]=o[i+2],t[3]=o[i+3],t[4]=o[i+4],t[5]=o[i+5],t[6]=o[i+6],t[7]=o[i+7],a[0]}function n(o,i){return t[7]=o[i],t[6]=o[i+1],t[5]=o[i+2],t[4]=o[i+3],t[3]=o[i+4],t[2]=o[i+5],t[1]=o[i+6],t[0]=o[i+7],a[0]}S.writeDoubleLE=c?u:s,S.writeDoubleBE=c?s:u,S.readDoubleLE=c?r:n,S.readDoubleBE=c?n:r}():function(){function a(c,u,s,r,n,o){var i=r<0?1:0;if(i&&(r=-r),r===0)c(0,n,o+u),c(1/r>0?0:2147483648,n,o+s);else if(isNaN(r))c(0,n,o+u),c(2146959360,n,o+s);else if(r>17976931348623157e292)c(0,n,o+u),c((i<<31|2146435072)>>>0,n,o+s);else{var f;if(r<22250738585072014e-324)c((f=r/5e-324)>>>0,n,o+u),c((i<<31|f/4294967296)>>>0,n,o+s);else{var d=Math.floor(Math.log(r)/Math.LN2);d===1024&&(d=1023),c(4503599627370496*(f=r*Math.pow(2,-d))>>>0,n,o+u),c((i<<31|d+1023<<20|1048576*f&1048575)>>>0,n,o+s)}}}function t(c,u,s,r,n){var o=c(r,n+u),i=c(r,n+s),f=2*(i>>31)+1,d=i>>>20&2047,p=4294967296*(1048575&i)+o;return d===2047?p?NaN:f*(1/0):d===0?5e-324*f*p:f*Math.pow(2,d-1075)*(p+4503599627370496)}S.writeDoubleLE=a.bind(null,h,0,4),S.writeDoubleBE=a.bind(null,w,4,0),S.readDoubleLE=t.bind(null,O,0,4),S.readDoubleBE=t.bind(null,k,4,0)}(),S}function h(S,a,t){a[t]=255&S,a[t+1]=S>>>8&255,a[t+2]=S>>>16&255,a[t+3]=S>>>24}function w(S,a,t){a[t]=S>>>24,a[t+1]=S>>>16&255,a[t+2]=S>>>8&255,a[t+3]=255&S}function O(S,a){return(S[a]|S[a+1]<<8|S[a+2]<<16|S[a+3]<<24)>>>0}function k(S,a){return(S[a]<<24|S[a+1]<<16|S[a+2]<<8|S[a+3])>>>0}D.exports=e(e)},7199:module=>{function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(D){}return null}module.exports=inquire},6662:D=>{D.exports=function(e,h,w){var O=w||8192,k=O>>>1,S=null,a=O;return function(t){if(t<1||t>k)return e(t);a+t>O&&(S=e(O),a=0);var c=h.call(S,a,a+=t);return 7&a&&(a=1+(7|a)),c}}},4997:(D,e)=>{var h=e;h.length=function(w){for(var O=0,k=0,S=0;S191&&S<224?t[c++]=(31&S)<<6|63&w[O++]:S>239&&S<365?(S=((7&S)<<18|(63&w[O++])<<12|(63&w[O++])<<6|63&w[O++])-65536,t[c++]=55296+(S>>10),t[c++]=56320+(1023&S)):t[c++]=(15&S)<<12|(63&w[O++])<<6|63&w[O++],c>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,t)),c=0);return a?(c&&a.push(String.fromCharCode.apply(String,t.slice(0,c))),a.join("")):String.fromCharCode.apply(String,t.slice(0,c))},h.write=function(w,O,k){for(var S,a,t=k,c=0;c>6|192,O[k++]=63&S|128):(64512&S)==55296&&(64512&(a=w.charCodeAt(c+1)))==56320?(S=65536+((1023&S)<<10)+(1023&a),++c,O[k++]=S>>18|240,O[k++]=S>>12&63|128,O[k++]=S>>6&63|128,O[k++]=63&S|128):(O[k++]=S>>12|224,O[k++]=S>>6&63|128,O[k++]=63&S|128);return k-t}},9282:(D,e,h)=>{var w=h(4155),O=h(5108);function k(G){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($){return typeof $}:function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},k(G)}function S(G,$){for(var W=0;W<$.length;W++){var Y=$[W];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(G,(F=function(ae,he){if(k(ae)!=="object"||ae===null)return ae;var le=ae[Symbol.toPrimitive];if(le!==void 0){var ce=le.call(ae,"string");if(k(ce)!=="object")return ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ae)}(Y.key),k(F)==="symbol"?F:String(F)),Y)}var F}function a(G,$,W){return $&&S(G.prototype,$),W&&S(G,W),Object.defineProperty(G,"prototype",{writable:!1}),G}var t,c,u=h(2136).codes,s=u.ERR_AMBIGUOUS_ARGUMENT,r=u.ERR_INVALID_ARG_TYPE,n=u.ERR_INVALID_ARG_VALUE,o=u.ERR_INVALID_RETURN_VALUE,i=u.ERR_MISSING_ARGS,f=h(5961),d=h(9539).inspect,p=h(9539).types,_=p.isPromise,b=p.isRegExp,I=h(8162)(),l=h(5624)(),j=h(1924)("RegExp.prototype.test");function M(){var G=h(9158);t=G.isDeepEqual,c=G.isDeepStrictEqual}var N=!1,C=D.exports=m,x={};function P(G){throw G.message instanceof Error?G.message:new f(G)}function v(G,$,W,Y){if(!W){var F=!1;if($===0)F=!0,Y="No value argument passed to `assert.ok()`";else if(Y instanceof Error)throw Y;var ae=new f({actual:W,expected:!0,message:Y,operator:"==",stackStartFn:G});throw ae.generatedMessage=F,ae}}function m(){for(var G=arguments.length,$=new Array(G),W=0;W{var w=p(4155);function O(x,P){var v=Object.keys(x);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(x);P&&(m=m.filter(function(E){return Object.getOwnPropertyDescriptor(x,E).enumerable})),v.push.apply(v,m)}return v}function k(x){for(var P=1;P"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n(x,P){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,m){return v.__proto__=m,v},n(x,P)}function o(x){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},o(x)}function i(x){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},i(x)}var f=p(9539).inspect,d=p(2136).codes.ERR_INVALID_ARG_TYPE;function h(x,P,v){return(v===void 0||v>x.length)&&(v=x.length),x.substring(v-P.length,v)===P}var _="",b="",I="",l="",j={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function M(x){var P=Object.keys(x),v=Object.create(Object.getPrototypeOf(x));return P.forEach(function(m){v[m]=x[m]}),Object.defineProperty(v,"message",{value:x.message}),v}function N(x){return f(x,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var C=function(x,P){(function(te,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function");te.prototype=Object.create(re&&re.prototype,{constructor:{value:te,writable:!0,configurable:!0}}),Object.defineProperty(te,"prototype",{writable:!1}),re&&n(te,re)})(q,x);var v,m,E,B,T=(v=q,m=r(),function(){var te,re=o(v);if(m){var ie=o(this).constructor;te=Reflect.construct(re,arguments,ie)}else te=re.apply(this,arguments);return t(this,te)});function q(te){var re;if(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")}(this,q),i(te)!=="object"||te===null)throw new d("options","Object",te);var ie=te.message,J=te.operator,ee=te.stackStartFn,G=te.actual,$=te.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,ie!=null)re=T.call(this,String(ie));else if(w.stderr&&w.stderr.isTTY&&(w.stderr&&w.stderr.getColorDepth&&w.stderr.getColorDepth()!==1?(_="\x1B[34m",b="\x1B[32m",l="\x1B[39m",I="\x1B[31m"):(_="",b="",l="",I="")),i(G)==="object"&&G!==null&&i($)==="object"&&$!==null&&"stack"in G&&G instanceof Error&&"stack"in $&&$ instanceof Error&&(G=M(G),$=M($)),J==="deepStrictEqual"||J==="strictEqual")re=T.call(this,function(ce,ve,de){var pe="",ye="",V=0,y="",A=!1,R=N(ce),U=R.split(` +`))}throw Y}},C.match=function G($,W,Y){J($,W,Y,G,"match")},C.doesNotMatch=function G($,W,Y){J($,W,Y,G,"doesNotMatch")},C.strict=I(ee,C,{equal:C.strictEqual,deepEqual:C.deepStrictEqual,notEqual:C.notStrictEqual,notDeepEqual:C.notDeepStrictEqual}),C.strict.strict=C.strict},5961:(D,e,h)=>{var w=h(4155);function O(x,P){var v=Object.keys(x);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(x);P&&(m=m.filter(function(E){return Object.getOwnPropertyDescriptor(x,E).enumerable})),v.push.apply(v,m)}return v}function k(x){for(var P=1;P"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n(x,P){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,m){return v.__proto__=m,v},n(x,P)}function o(x){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},o(x)}function i(x){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},i(x)}var f=h(9539).inspect,d=h(2136).codes.ERR_INVALID_ARG_TYPE;function p(x,P,v){return(v===void 0||v>x.length)&&(v=x.length),x.substring(v-P.length,v)===P}var _="",b="",I="",l="",j={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function M(x){var P=Object.keys(x),v=Object.create(Object.getPrototypeOf(x));return P.forEach(function(m){v[m]=x[m]}),Object.defineProperty(v,"message",{value:x.message}),v}function N(x){return f(x,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var C=function(x,P){(function(te,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function");te.prototype=Object.create(re&&re.prototype,{constructor:{value:te,writable:!0,configurable:!0}}),Object.defineProperty(te,"prototype",{writable:!1}),re&&n(te,re)})(q,x);var v,m,E,B,T=(v=q,m=r(),function(){var te,re=o(v);if(m){var ie=o(this).constructor;te=Reflect.construct(re,arguments,ie)}else te=re.apply(this,arguments);return t(this,te)});function q(te){var re;if(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")}(this,q),i(te)!=="object"||te===null)throw new d("options","Object",te);var ie=te.message,J=te.operator,ee=te.stackStartFn,G=te.actual,$=te.expected,W=Error.stackTraceLimit;if(Error.stackTraceLimit=0,ie!=null)re=T.call(this,String(ie));else if(w.stderr&&w.stderr.isTTY&&(w.stderr&&w.stderr.getColorDepth&&w.stderr.getColorDepth()!==1?(_="\x1B[34m",b="\x1B[32m",l="\x1B[39m",I="\x1B[31m"):(_="",b="",l="",I="")),i(G)==="object"&&G!==null&&i($)==="object"&&$!==null&&"stack"in G&&G instanceof Error&&"stack"in $&&$ instanceof Error&&(G=M(G),$=M($)),J==="deepStrictEqual"||J==="strictEqual")re=T.call(this,function(ce,ve,de){var pe="",ye="",V=0,y="",A=!1,R=N(ce),U=R.split(` `),z=N(ve).split(` `),L=0,H="";if(de==="strictEqual"&&i(ce)==="object"&&i(ve)==="object"&&ce!==null&&ve!==null&&(de="strictEqualObject"),U.length===1&&z.length===1&&U[0]!==z[0]){var ne=U[0].length+z[0].length;if(ne<=10){if(!(i(ce)==="object"&&ce!==null||i(ve)==="object"&&ve!==null||ce===0&&ve===0))return"".concat(j[de],` @@ -33,7 +33,7 @@ `.concat(_,"...").concat(l),A=!0):fe>3&&(ye+=` `.concat(U[L-2]),Z++),ye+=` `.concat(U[L-1]),Z++),V=L,ye+=` -`.concat(b,"+").concat(l," ").concat(U[L]),Z++;else{var me=z[L],ge=U[L],be=ge!==me&&(!h(ge,",")||ge.slice(0,-1)!==me);be&&h(me,",")&&me.slice(0,-1)===ge&&(be=!1,ge+=","),be?(fe>1&&L>2&&(fe>4?(ye+=` +`.concat(b,"+").concat(l," ").concat(U[L]),Z++;else{var me=z[L],ge=U[L],be=ge!==me&&(!p(ge,",")||ge.slice(0,-1)!==me);be&&p(me,",")&&me.slice(0,-1)===ge&&(be=!1,ge+=","),be?(fe>1&&L>2&&(fe>4?(ye+=` `.concat(_,"...").concat(l),A=!0):fe>3&&(ye+=` `.concat(U[L-2]),Z++),ye+=` `.concat(U[L-1]),Z++),V=L,ye+=` @@ -56,20 +56,20 @@ should equal -`):he=" ".concat(J," ").concat(he)),re=T.call(this,"".concat(ae).concat(he))}return Error.stackTraceLimit=W,re.generatedMessage=!ie,Object.defineProperty(c(re),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),re.code="ERR_ASSERTION",re.actual=G,re.expected=$,re.operator=J,Error.captureStackTrace&&Error.captureStackTrace(c(re),ee),re.stack,re.name="AssertionError",t(re)}return E=q,(B=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:P,value:function(te,re){return f(this,k(k({},re),{},{customInspect:!1,depth:0}))}}])&&S(E.prototype,B),Object.defineProperty(E,"prototype",{writable:!1}),q}(u(Error),f.custom);D.exports=C},2136:(D,e,p)=>{function w(s){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},w(s)}function O(s,r){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},O(s,r)}function k(s){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(s)}var S,a,t={};function c(s,r,n){n||(n=Error);var o=function(i){(function(I,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(l&&l.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),l&&O(I,l)})(b,i);var f,d,h,_=(d=b,h=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var I,l=k(d);if(h){var j=k(this).constructor;I=Reflect.construct(l,arguments,j)}else I=l.apply(this,arguments);return function(M,N){if(N&&(w(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(M)}(this,I)});function b(I,l,j){var M;return function(N,C){if(!(N instanceof C))throw new TypeError("Cannot call a class as a function")}(this,b),M=_.call(this,function(N,C,x){return typeof r=="string"?r:r(N,C,x)}(I,l,j)),M.code=s,M}return f=b,Object.defineProperty(f,"prototype",{writable:!1}),f}(n);t[s]=o}function u(s,r){if(Array.isArray(s)){var n=s.length;return s=s.map(function(o){return String(o)}),n>2?"one of ".concat(r," ").concat(s.slice(0,n-1).join(", "),", or ")+s[n-1]:n===2?"one of ".concat(r," ").concat(s[0]," or ").concat(s[1]):"of ".concat(r," ").concat(s[0])}return"of ".concat(r," ").concat(String(s))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(s,r,n){var o,i,f,d,h;if(S===void 0&&(S=p(9282)),S(typeof s=="string","'name' must be a string"),typeof r=="string"&&(i="not ",r.substr(0,4)===i)?(o="must not be",r=r.replace(/^not /,"")):o="must be",function(b,I,l){return(l===void 0||l>b.length)&&(l=b.length),b.substring(l-9,l)===I}(s," argument"))f="The ".concat(s," ").concat(o," ").concat(u(r,"type"));else{var _=(typeof h!="number"&&(h=0),h+1>(d=s).length||d.indexOf(".",h)===-1?"argument":"property");f='The "'.concat(s,'" ').concat(_," ").concat(o," ").concat(u(r,"type"))}return f+". Received type ".concat(w(n))},TypeError),c("ERR_INVALID_ARG_VALUE",function(s,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=p(9539));var o=a.inspect(r);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(s,"' ").concat(n,". Received ").concat(o)},TypeError),c("ERR_INVALID_RETURN_VALUE",function(s,r,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(w(n)),"Expected ".concat(s,' to be returned from the "').concat(r,'"')+" function but got ".concat(o,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var s=arguments.length,r=new Array(s),n=0;n0,"At least one arg needs to be specified");var o="The ",i=r.length;switch(r=r.map(function(f){return'"'.concat(f,'"')}),i){case 1:o+="".concat(r[0]," argument");break;case 2:o+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:o+=r.slice(0,i-1).join(", "),o+=", and ".concat(r[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),D.exports.codes=t},9158:(D,e,p)=>{function w(le,ce){return function(ve){if(Array.isArray(ve))return ve}(le)||function(ve,de){var pe=ve==null?null:typeof Symbol<"u"&&ve[Symbol.iterator]||ve["@@iterator"];if(pe!=null){var ye,V,y,A,R=[],U=!0,z=!1;try{if(y=(pe=pe.call(ve)).next,de===0){if(Object(pe)!==pe)return;U=!1}else for(;!(U=(ye=y.call(pe)).done)&&(R.push(ye.value),R.length!==de);U=!0);}catch(L){z=!0,V=L}finally{try{if(!U&&pe.return!=null&&(A=pe.return(),Object(A)!==A))return}finally{if(z)throw V}}return R}}(le,ce)||function(ve,de){if(ve){if(typeof ve=="string")return O(ve,de);var pe=Object.prototype.toString.call(ve).slice(8,-1);return pe==="Object"&&ve.constructor&&(pe=ve.constructor.name),pe==="Map"||pe==="Set"?Array.from(ve):pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe)?O(ve,de):void 0}}(le,ce)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function O(le,ce){(ce==null||ce>le.length)&&(ce=le.length);for(var ve=0,de=new Array(ce);ve10)return!0;for(var ce=0;ce57)return!0}return le.length===10&&le>=Math.pow(2,32)}function T(le){return Object.keys(le).filter(B).concat(u(le).filter(Object.prototype.propertyIsEnumerable.bind(le)))}function q(le,ce){if(le===ce)return 0;for(var ve=le.length,de=ce.length,pe=0,ye=Math.min(ve,de);pe{var w=p(9509).Buffer;D.exports=function(O){if(O.length>=255)throw new TypeError("Alphabet too long");for(var k=new Uint8Array(256),S=0;S>>0,b=new Uint8Array(_);i[f];){var I=k[i.charCodeAt(f)];if(I===255)return;for(var l=0,j=_-1;(I!==0||l>>0,b[j]=I%256>>>0,I=I/256>>>0;if(I!==0)throw new Error("Non-zero carry");h=l,f++}for(var M=_-h;M!==_&&b[M]===0;)M++;var N=w.allocUnsafe(d+(_-M));N.fill(0,0,d);for(var C=d;M!==_;)N[C++]=b[M++];return N}return{encode:function(i){if((Array.isArray(i)||i instanceof Uint8Array)&&(i=w.from(i)),!w.isBuffer(i))throw new TypeError("Expected Buffer");if(i.length===0)return"";for(var f=0,d=0,h=0,_=i.length;h!==_&&i[h]===0;)h++,f++;for(var b=(_-h)*n+1>>>0,I=new Uint8Array(b);h!==_;){for(var l=i[h],j=0,M=b-1;(l!==0||j>>0,I[M]=l%u>>>0,l=l/u>>>0;if(l!==0)throw new Error("Non-zero carry");d=j,h++}for(var N=b-d;N!==b&&I[N]===0;)N++;for(var C=s.repeat(f);N{e.byteLength=function(c){var u=a(c),s=u[0],r=u[1];return 3*(s+r)/4-r},e.toByteArray=function(c){var u,s,r=a(c),n=r[0],o=r[1],i=new O(function(h,_,b){return 3*(_+b)/4-b}(0,n,o)),f=0,d=o>0?n-4:n;for(s=0;s>16&255,i[f++]=u>>8&255,i[f++]=255&u;return o===2&&(u=w[c.charCodeAt(s)]<<2|w[c.charCodeAt(s+1)]>>4,i[f++]=255&u),o===1&&(u=w[c.charCodeAt(s)]<<10|w[c.charCodeAt(s+1)]<<4|w[c.charCodeAt(s+2)]>>2,i[f++]=u>>8&255,i[f++]=255&u),i},e.fromByteArray=function(c){for(var u,s=c.length,r=s%3,n=[],o=16383,i=0,f=s-r;if?f:i+o));return r===1?(u=c[s-1],n.push(p[u>>2]+p[u<<4&63]+"==")):r===2&&(u=(c[s-2]<<8)+c[s-1],n.push(p[u>>10]+p[u>>4&63]+p[u<<2&63]+"=")),n.join("")};for(var p=[],w=[],O=typeof Uint8Array<"u"?Uint8Array:Array,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0;S<64;++S)p[S]=k[S],w[k.charCodeAt(S)]=S;function a(c){var u=c.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=c.indexOf("=");return s===-1&&(s=u),[s,s===u?0:4-s%4]}function t(c,u,s){for(var r,n,o=[],i=u;i>18&63]+p[n>>12&63]+p[n>>6&63]+p[63&n]);return o.join("")}w["-".charCodeAt(0)]=62,w["_".charCodeAt(0)]=63},7715:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bech32m=e.bech32=void 0;const p="qpzry9x8gf2tvdw0s3jn54khce6mua7l",w={};for(let s=0;s<32;s++){const r=p.charAt(s);w[r]=s}function O(s){const r=s>>25;return(33554431&s)<<5^996825010&-(r>>0&1)^642813549&-(r>>1&1)^513874426&-(r>>2&1)^1027748829&-(r>>3&1)^705979059&-(r>>4&1)}function k(s){let r=1;for(let n=0;n126)return"Invalid prefix ("+s+")";r=O(r)^o>>5}r=O(r);for(let n=0;n=n;)f-=n,h.push(i>>f&d);if(o)f>0&&h.push(i<=r)return"Excess padding";if(i<i)return"Exceeds length limit";const f=o.toLowerCase(),d=o.toUpperCase();if(o!==f&&o!==d)return"Mixed-case string "+o;const h=(o=f).lastIndexOf("1");if(h===-1)return"No separator character for "+o;if(h===0)return"Missing prefix for "+o;const _=o.slice(0,h),b=o.slice(h+1);if(b.length<6)return"Data too short";let I=k(_);if(typeof I=="string")return I;const l=[];for(let j=0;j=b.length||l.push(N)}return I!==r?"Invalid checksum for "+o:{prefix:_,words:l}}return r=s==="bech32"?1:734539939,{decodeUnsafe:function(o,i){const f=n(o,i);if(typeof f=="object")return f},decode:function(o,i){const f=n(o,i);if(typeof f=="object")return f;throw new Error(f)},encode:function(o,i,f){if(f=f||90,o.length+7+i.length>f)throw new TypeError("Exceeds length limit");let d=k(o=o.toLowerCase());if(typeof d=="string")throw new Error(d);let h=o+"1";for(let _=0;_>5)throw new Error("Non 5-bit word");d=O(d)^b,h+=p.charAt(b)}for(let _=0;_<6;++_)d=O(d);d^=r;for(let _=0;_<6;++_)h+=p.charAt(d>>5*(5-_)&31);return h},toWords:a,fromWordsUnsafe:t,fromWords:c}}e.bech32=u("bech32"),e.bech32m=u("bech32m")},4736:(D,e,p)=>{var w;D=p.nmd(D);var O=function(k){var S=1e7,a=7,t=9007199254740992,c=d(t),u="0123456789abcdefghijklmnopqrstuvwxyz",s=typeof BigInt=="function";function r(U,z,L,H){return U===void 0?r[0]:z===void 0||+z==10&&!L?A(U):de(U,z,L,H)}function n(U,z){this.value=U,this.sign=z,this.isSmall=!1}function o(U){this.value=U,this.sign=U<0,this.isSmall=!0}function i(U){this.value=U}function f(U){return-t0?Math.floor(U):Math.ceil(U)}function l(U,z){var L,H,ne=U.length,oe=z.length,K=new Array(ne),X=0,Q=S;for(H=0;H=Q?1:0,K[H]=L-X*Q;for(;H0&&K.push(X),K}function j(U,z){return U.length>=z.length?l(U,z):l(z,U)}function M(U,z){var L,H,ne=U.length,oe=new Array(ne),K=S;for(H=0;H0;)oe[H++]=z%K,z=Math.floor(z/K);return oe}function N(U,z){var L,H,ne=U.length,oe=z.length,K=new Array(ne),X=0,Q=S;for(L=0;L0;)oe[H++]=X%K,X=Math.floor(X/K);return oe}function v(U,z){for(var L=[];z-- >0;)L.push(0);return L.concat(U)}function m(U,z){var L=Math.max(U.length,z.length);if(L<=30)return x(U,z);L=Math.ceil(L/2);var H=U.slice(L),ne=U.slice(0,L),oe=z.slice(L),K=z.slice(0,L),X=m(ne,K),Q=m(H,oe),Z=m(j(ne,H),j(K,oe)),se=j(j(X,v(N(N(Z,X),Q),L)),v(Q,2*L));return _(se),se}function E(U,z,L){return new n(U=0;--L)ne=(oe=ne*Q+U[L])-(H=I(oe/z))*z,X[L]=0|H;return[X,0|ne]}function q(U,z){var L,H=A(z);if(s)return[new i(U.value/H.value),new i(U.value%H.value)];var ne,oe=U.value,K=H.value;if(K===0)throw new Error("Cannot divide by zero");if(U.isSmall)return H.isSmall?[new o(I(oe/K)),new o(oe%K)]:[r[0],U];if(H.isSmall){if(K===1)return[U,r[0]];if(K==-1)return[U.negate(),r[0]];var X=Math.abs(K);if(X=0;_e--){for(be=Pe-1,Te[_e+Oe]!==Ae&&(be=Math.floor((Te[_e+Oe]*Pe+Te[_e+Oe-1])/Ae)),we=0,Ee=0,Se=Ce.length,xe=0;xeke&&(we=(we+1)*Pe),be=Math.ceil(we/Ee);do{if(te(xe=P(ge,be),Oe)<=0)break;be--}while(be);Re.push(be),Oe=N(Oe,xe)}return Re.reverse(),[h(Re),h(Oe)]}(oe,K),ne=L[0];var se=U.sign!==H.sign,ue=L[1],fe=U.sign;return typeof ne=="number"?(se&&(ne=-ne),ne=new o(ne)):ne=new n(ne,se),typeof ue=="number"?(fe&&(ue=-ue),ue=new o(ue)):ue=new n(ue,fe),[ne,ue]}function te(U,z){if(U.length!==z.length)return U.length>z.length?1:-1;for(var L=U.length-1;L>=0;L--)if(U[L]!==z[L])return U[L]>z[L]?1:-1;return 0}function re(U){var z=U.abs();return!z.isUnit()&&(!!(z.equals(2)||z.equals(3)||z.equals(5))||!(z.isEven()||z.isDivisibleBy(3)||z.isDivisibleBy(5))&&(!!z.lesser(49)||void 0))}function ie(U,z){for(var L,H,ne,oe=U.prev(),K=oe,X=0;K.isEven();)K=K.divide(2),X++;e:for(H=0;H=0?X=N(ne,oe):(X=N(oe,ne),K=!K),typeof(X=h(X))=="number"?(K&&(X=-X),new o(X)):new n(X,K)}(L,H,this.sign)},n.prototype.minus=n.prototype.subtract,o.prototype.subtract=function(U){var z=A(U),L=this.value;if(L<0!==z.sign)return this.add(z.negate());var H=z.value;return z.isSmall?new o(L-H):C(H,Math.abs(L),L>=0)},o.prototype.minus=o.prototype.subtract,i.prototype.subtract=function(U){return new i(this.value-A(U).value)},i.prototype.minus=i.prototype.subtract,n.prototype.negate=function(){return new n(this.value,!this.sign)},o.prototype.negate=function(){var U=this.sign,z=new o(-this.value);return z.sign=!U,z},i.prototype.negate=function(){return new i(-this.value)},n.prototype.abs=function(){return new n(this.value,!1)},o.prototype.abs=function(){return new o(Math.abs(this.value))},i.prototype.abs=function(){return new i(this.value>=0?this.value:-this.value)},n.prototype.multiply=function(U){var z,L,H,ne=A(U),oe=this.value,K=ne.value,X=this.sign!==ne.sign;if(ne.isSmall){if(K===0)return r[0];if(K===1)return this;if(K===-1)return this.negate();if((z=Math.abs(K))0?m(oe,K):x(oe,K),X)},n.prototype.times=n.prototype.multiply,o.prototype._multiplyBySmall=function(U){return f(U.value*this.value)?new o(U.value*this.value):E(Math.abs(U.value),d(Math.abs(this.value)),this.sign!==U.sign)},n.prototype._multiplyBySmall=function(U){return U.value===0?r[0]:U.value===1?this:U.value===-1?this.negate():E(Math.abs(U.value),this.value,this.sign!==U.sign)},o.prototype.multiply=function(U){return A(U)._multiplyBySmall(this)},o.prototype.times=o.prototype.multiply,i.prototype.multiply=function(U){return new i(this.value*A(U).value)},i.prototype.times=i.prototype.multiply,n.prototype.square=function(){return new n(B(this.value),!1)},o.prototype.square=function(){var U=this.value*this.value;return f(U)?new o(U):new n(B(d(Math.abs(this.value))),!1)},i.prototype.square=function(U){return new i(this.value*this.value)},n.prototype.divmod=function(U){var z=q(this,U);return{quotient:z[0],remainder:z[1]}},i.prototype.divmod=o.prototype.divmod=n.prototype.divmod,n.prototype.divide=function(U){return q(this,U)[0]},i.prototype.over=i.prototype.divide=function(U){return new i(this.value/A(U).value)},o.prototype.over=o.prototype.divide=n.prototype.over=n.prototype.divide,n.prototype.mod=function(U){return q(this,U)[1]},i.prototype.mod=i.prototype.remainder=function(U){return new i(this.value%A(U).value)},o.prototype.remainder=o.prototype.mod=n.prototype.remainder=n.prototype.mod,n.prototype.pow=function(U){var z,L,H,ne=A(U),oe=this.value,K=ne.value;if(K===0)return r[1];if(oe===0)return r[0];if(oe===1)return r[1];if(oe===-1)return ne.isEven()?r[1]:r[-1];if(ne.sign)return r[0];if(!ne.isSmall)throw new Error("The exponent "+ne.toString()+" is too large.");if(this.isSmall&&f(z=Math.pow(oe,K)))return new o(I(z));for(L=this,H=r[1];!0&K&&(H=H.times(L),--K),K!==0;)K/=2,L=L.square();return H},o.prototype.pow=n.prototype.pow,i.prototype.pow=function(U){var z=A(U),L=this.value,H=z.value,ne=BigInt(0),oe=BigInt(1),K=BigInt(2);if(H===ne)return r[1];if(L===ne)return r[0];if(L===oe)return r[1];if(L===BigInt(-1))return z.isEven()?r[1]:r[-1];if(z.isNegative())return new i(ne);for(var X=this,Q=r[1];(H&oe)===oe&&(Q=Q.times(X),--H),H!==ne;)H/=K,X=X.square();return Q},n.prototype.modPow=function(U,z){if(U=A(U),(z=A(z)).isZero())throw new Error("Cannot take modPow with modulus 0");var L=r[1],H=this.mod(z);for(U.isNegative()&&(U=U.multiply(r[-1]),H=H.modInv(z));U.isPositive();){if(H.isZero())return r[0];U.isOdd()&&(L=L.multiply(H).mod(z)),U=U.divide(2),H=H.square().mod(z)}return L},i.prototype.modPow=o.prototype.modPow=n.prototype.modPow,n.prototype.compareAbs=function(U){var z=A(U),L=this.value,H=z.value;return z.isSmall?1:te(L,H)},o.prototype.compareAbs=function(U){var z=A(U),L=Math.abs(this.value),H=z.value;return z.isSmall?L===(H=Math.abs(H))?0:L>H?1:-1:-1},i.prototype.compareAbs=function(U){var z=this.value,L=A(U).value;return(z=z>=0?z:-z)===(L=L>=0?L:-L)?0:z>L?1:-1},n.prototype.compare=function(U){if(U===1/0)return-1;if(U===-1/0)return 1;var z=A(U),L=this.value,H=z.value;return this.sign!==z.sign?z.sign?1:-1:z.isSmall?this.sign?-1:1:te(L,H)*(this.sign?-1:1)},n.prototype.compareTo=n.prototype.compare,o.prototype.compare=function(U){if(U===1/0)return-1;if(U===-1/0)return 1;var z=A(U),L=this.value,H=z.value;return z.isSmall?L==H?0:L>H?1:-1:L<0!==z.sign?L<0?-1:1:L<0?1:-1},o.prototype.compareTo=o.prototype.compare,i.prototype.compare=function(U){if(U===1/0)return-1;if(U===-1/0)return 1;var z=this.value,L=A(U).value;return z===L?0:z>L?1:-1},i.prototype.compareTo=i.prototype.compare,n.prototype.equals=function(U){return this.compare(U)===0},i.prototype.eq=i.prototype.equals=o.prototype.eq=o.prototype.equals=n.prototype.eq=n.prototype.equals,n.prototype.notEquals=function(U){return this.compare(U)!==0},i.prototype.neq=i.prototype.notEquals=o.prototype.neq=o.prototype.notEquals=n.prototype.neq=n.prototype.notEquals,n.prototype.greater=function(U){return this.compare(U)>0},i.prototype.gt=i.prototype.greater=o.prototype.gt=o.prototype.greater=n.prototype.gt=n.prototype.greater,n.prototype.lesser=function(U){return this.compare(U)<0},i.prototype.lt=i.prototype.lesser=o.prototype.lt=o.prototype.lesser=n.prototype.lt=n.prototype.lesser,n.prototype.greaterOrEquals=function(U){return this.compare(U)>=0},i.prototype.geq=i.prototype.greaterOrEquals=o.prototype.geq=o.prototype.greaterOrEquals=n.prototype.geq=n.prototype.greaterOrEquals,n.prototype.lesserOrEquals=function(U){return this.compare(U)<=0},i.prototype.leq=i.prototype.lesserOrEquals=o.prototype.leq=o.prototype.lesserOrEquals=n.prototype.leq=n.prototype.lesserOrEquals,n.prototype.isEven=function(){return(1&this.value[0])==0},o.prototype.isEven=function(){return(1&this.value)==0},i.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},n.prototype.isOdd=function(){return(1&this.value[0])==1},o.prototype.isOdd=function(){return(1&this.value)==1},i.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},n.prototype.isPositive=function(){return!this.sign},o.prototype.isPositive=function(){return this.value>0},i.prototype.isPositive=o.prototype.isPositive,n.prototype.isNegative=function(){return this.sign},o.prototype.isNegative=function(){return this.value<0},i.prototype.isNegative=o.prototype.isNegative,n.prototype.isUnit=function(){return!1},o.prototype.isUnit=function(){return Math.abs(this.value)===1},i.prototype.isUnit=function(){return this.abs().value===BigInt(1)},n.prototype.isZero=function(){return!1},o.prototype.isZero=function(){return this.value===0},i.prototype.isZero=function(){return this.value===BigInt(0)},n.prototype.isDivisibleBy=function(U){var z=A(U);return!z.isZero()&&(!!z.isUnit()||(z.compareAbs(2)===0?this.isEven():this.mod(z).isZero()))},i.prototype.isDivisibleBy=o.prototype.isDivisibleBy=n.prototype.isDivisibleBy,n.prototype.isPrime=function(U){var z=re(this);if(z!==k)return z;var L=this.abs(),H=L.bitLength();if(H<=64)return ie(L,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var ne=Math.log(2)*H.toJSNumber(),oe=Math.ceil(U===!0?2*Math.pow(ne,2):ne),K=[],X=0;X-t?new o(U-1):new n(c,!0)},i.prototype.prev=function(){return new i(this.value-BigInt(1))};for(var J=[1];2*J[J.length-1]<=S;)J.push(2*J[J.length-1]);var ee=J.length,G=J[ee-1];function $(U){return Math.abs(U)<=S}function W(U,z,L){z=A(z);for(var H=U.isNegative(),ne=z.isNegative(),oe=H?U.not():U,K=ne?z.not():z,X=0,Q=0,Z=null,se=null,ue=[];!oe.isZero()||!K.isZero();)X=(Z=q(oe,G))[1].toJSNumber(),H&&(X=G-1-X),Q=(se=q(K,G))[1].toJSNumber(),ne&&(Q=G-1-Q),oe=Z[0],K=se[0],ue.push(L(X,Q));for(var fe=L(H?1:0,ne?1:0)!==0?O(-1):O(0),me=ue.length-1;me>=0;me-=1)fe=fe.multiply(G).add(O(ue[me]));return fe}n.prototype.shiftLeft=function(U){var z=A(U).toJSNumber();if(!$(z))throw new Error(String(z)+" is too large for shifting.");if(z<0)return this.shiftRight(-z);var L=this;if(L.isZero())return L;for(;z>=ee;)L=L.multiply(G),z-=ee-1;return L.multiply(J[z])},i.prototype.shiftLeft=o.prototype.shiftLeft=n.prototype.shiftLeft,n.prototype.shiftRight=function(U){var z,L=A(U).toJSNumber();if(!$(L))throw new Error(String(L)+" is too large for shifting.");if(L<0)return this.shiftLeft(-L);for(var H=this;L>=ee;){if(H.isZero()||H.isNegative()&&H.isUnit())return H;H=(z=q(H,G))[1].isNegative()?z[0].prev():z[0],L-=ee-1}return(z=q(H,J[L]))[1].isNegative()?z[0].prev():z[0]},i.prototype.shiftRight=o.prototype.shiftRight=n.prototype.shiftRight,n.prototype.not=function(){return this.negate().prev()},i.prototype.not=o.prototype.not=n.prototype.not,n.prototype.and=function(U){return W(this,U,function(z,L){return z&L})},i.prototype.and=o.prototype.and=n.prototype.and,n.prototype.or=function(U){return W(this,U,function(z,L){return z|L})},i.prototype.or=o.prototype.or=n.prototype.or,n.prototype.xor=function(U){return W(this,U,function(z,L){return z^L})},i.prototype.xor=o.prototype.xor=n.prototype.xor;var Y=1<<30,F=(S&-S)*(S&-S)|Y;function ae(U){var z=U.value,L=typeof z=="number"?z|Y:typeof z=="bigint"?z|BigInt(Y):z[0]+z[1]*S|F;return L&-L}function he(U,z){if(z.compareTo(U)<=0){var L=he(U,z.square(z)),H=L.p,ne=L.e,oe=H.multiply(z);return oe.compareTo(U)<=0?{p:oe,e:2*ne+1}:{p:H,e:2*ne}}return{p:O(1),e:0}}function le(U,z){return U=A(U),z=A(z),U.greater(z)?U:z}function ce(U,z){return U=A(U),z=A(z),U.lesser(z)?U:z}function ve(U,z){if(U=A(U).abs(),z=A(z).abs(),U.equals(z))return U;if(U.isZero())return z;if(z.isZero())return U;for(var L,H,ne=r[1];U.isEven()&&z.isEven();)L=ce(ae(U),ae(z)),U=U.divide(L),z=z.divide(L),ne=ne.multiply(L);for(;U.isEven();)U=U.divide(ae(U));do{for(;z.isEven();)z=z.divide(ae(z));U.greater(z)&&(H=z,z=U,U=H),z=z.subtract(U)}while(!z.isZero());return ne.isUnit()?U:U.multiply(ne)}n.prototype.bitLength=function(){var U=this;return U.compareTo(O(0))<0&&(U=U.negate().subtract(O(1))),U.compareTo(O(0))===0?O(0):O(he(U,O(2)).e).add(O(1))},i.prototype.bitLength=o.prototype.bitLength=n.prototype.bitLength;var de=function(U,z,L,H){L=L||u,U=String(U),H||(U=U.toLowerCase(),L=L.toLowerCase());var ne,oe=U.length,K=Math.abs(z),X={};for(ne=0;ne=K){if(se==="1"&&K===1)continue;throw new Error(se+" is not a valid digit in base "+z+".")}z=A(z);var Q=[],Z=U[0]==="-";for(ne=Z?1:0;ne"&&ne=0;H--)ne=ne.add(U[H].times(oe)),oe=oe.times(z);return L?ne.negate():ne}function ye(U,z){if((z=O(z)).isZero()){if(U.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(z.equals(-1)){if(U.isZero())return{value:[0],isNegative:!1};if(U.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-U.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var L=Array.apply(null,Array(U.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return L.unshift([1]),{value:[].concat.apply([],L),isNegative:!1}}var H=!1;if(U.isNegative()&&z.isPositive()&&(H=!0,U=U.abs()),z.isUnit())return U.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(U.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:H};for(var ne,oe=[],K=U;K.isNegative()||K.compareAbs(z)>=0;){ne=K.divmod(z),K=ne.quotient;var X=ne.remainder;X.isNegative()&&(X=z.minus(X).abs(),K=K.next()),oe.push(X.toJSNumber())}return oe.push(K.toJSNumber()),{value:oe.reverse(),isNegative:H}}function V(U,z,L){var H=ye(U,z);return(H.isNegative?"-":"")+H.value.map(function(ne){return function(oe,K){return oe<(K=K||u).length?K[oe]:"<"+oe+">"}(ne,L)}).join("")}function y(U){if(f(+U)){var z=+U;if(z===I(z))return s?new i(BigInt(z)):new o(z);throw new Error("Invalid integer: "+U)}var L=U[0]==="-";L&&(U=U.slice(1));var H=U.split(/e/i);if(H.length>2)throw new Error("Invalid integer: "+H.join("e"));if(H.length===2){var ne=H[1];if(ne[0]==="+"&&(ne=ne.slice(1)),(ne=+ne)!==I(ne)||!f(ne))throw new Error("Invalid integer: "+ne+" is not a valid exponent.");var oe=H[0],K=oe.indexOf(".");if(K>=0&&(ne-=oe.length-K-1,oe=oe.slice(0,K)+oe.slice(K+1)),ne<0)throw new Error("Cannot include negative exponent part for integers");U=oe+=new Array(ne+1).join("0")}if(!/^([0-9][0-9]*)$/.test(U))throw new Error("Invalid integer: "+U);if(s)return new i(BigInt(L?"-"+U:U));for(var X=[],Q=U.length,Z=a,se=Q-Z;Q>0;)X.push(+U.slice(se,Q)),(se-=Z)<0&&(se=0),Q-=Z;return _(X),new n(X,L)}function A(U){return typeof U=="number"?function(z){if(s)return new i(BigInt(z));if(f(z)){if(z!==I(z))throw new Error(z+" is not an integer.");return new o(z)}return y(z.toString())}(U):typeof U=="string"?y(U):typeof U=="bigint"?new i(U):U}n.prototype.toArray=function(U){return ye(this,U)},o.prototype.toArray=function(U){return ye(this,U)},i.prototype.toArray=function(U){return ye(this,U)},n.prototype.toString=function(U,z){if(U===k&&(U=10),U!==10)return V(this,U,z);for(var L,H=this.value,ne=H.length,oe=String(H[--ne]);--ne>=0;)L=String(H[ne]),oe+="0000000".slice(L.length)+L;return(this.sign?"-":"")+oe},o.prototype.toString=function(U,z){return U===k&&(U=10),U!=10?V(this,U,z):String(this.value)},i.prototype.toString=o.prototype.toString,i.prototype.toJSON=n.prototype.toJSON=o.prototype.toJSON=function(){return this.toString()},n.prototype.valueOf=function(){return parseInt(this.toString(),10)},n.prototype.toJSNumber=n.prototype.valueOf,o.prototype.valueOf=function(){return this.value},o.prototype.toJSNumber=o.prototype.valueOf,i.prototype.valueOf=i.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var R=0;R<1e3;R++)r[R]=A(R),R>0&&(r[-R]=A(-R));return r.one=r[1],r.zero=r[0],r.minusOne=r[-1],r.max=le,r.min=ce,r.gcd=ve,r.lcm=function(U,z){return U=A(U).abs(),z=A(z).abs(),U.divide(ve(U,z)).multiply(z)},r.isInstance=function(U){return U instanceof n||U instanceof o||U instanceof i},r.randBetween=function(U,z,L){U=A(U),z=A(z);var H=L||Math.random,ne=ce(U,z),oe=le(U,z).subtract(ne).add(1);if(oe.isSmall)return ne.add(Math.floor(H()*oe));for(var K=ye(oe,S).value,X=[],Q=!0,Z=0;Z0||M===N?N:N-1}function h(M){for(var N,C,x=1,P=M.length,v=M[0]+"";xT^C?1:-1;for(E=(B=P.length)<(T=v.length)?B:T,m=0;mv[m]^C?1:-1;return B==T?0:B>T^C?1:-1}function b(M,N,C,x){if(MC||M!==t(M))throw Error(c+(x||"Argument")+(typeof M=="number"?MC?" out of range: ":" not an integer: ":" not a primitive number: ")+String(M))}function I(M){var N=M.c.length-1;return d(M.e/r)==N&&M.c[N]%2!=0}function l(M,N){return(M.length>1?M.charAt(0)+"."+M.slice(1):M)+(N<0?"e":"e+")+N}function j(M,N,C){var x,P;if(N<0){for(P=C+".";++N;P+=C);M=P+M}else if(++N>(x=M.length)){for(P=C,N-=x;--N;P+=C);M+=P}else NY?Z.c=Z.e=null:R.e=10;oe/=10,ne++);return void(ne>Y?Z.c=Z.e=null:(Z.e=ne,Z.c=[R]))}Q=String(R)}else{if(!S.test(Q=String(R)))return P(Z,Q,K);Z.s=Q.charCodeAt(0)==45?(Q=Q.slice(1),-1):1}(ne=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(oe=Q.search(/e/i))>0?(ne<0&&(ne=oe),ne+=+Q.slice(oe+1),Q=Q.substring(0,oe)):ne<0&&(ne=Q.length)}else{if(b(U,2,ce.length,"Base"),U==10&&ve)return y(Z=new de(R),J+Z.e+1,ee);if(Q=String(R),K=typeof R=="number"){if(0*R!=0)return P(Z,Q,K,U);if(Z.s=1/R<0?(Q=Q.slice(1),-1):1,de.DEBUG&&Q.replace(/^0\.0*|\./,"").length>15)throw Error(u+R)}else Z.s=Q.charCodeAt(0)===45?(Q=Q.slice(1),-1):1;for(z=ce.slice(0,U),ne=oe=0,X=Q.length;oene){ne=X;continue}}else if(!H&&(Q==Q.toUpperCase()&&(Q=Q.toLowerCase())||Q==Q.toLowerCase()&&(Q=Q.toUpperCase()))){H=!0,oe=-1,ne=0;continue}return P(Z,String(R),K,U)}K=!1,(ne=(Q=x(Q,U,10,Z.s)).indexOf("."))>-1?Q=Q.replace(".",""):ne=Q.length}for(oe=0;Q.charCodeAt(oe)===48;oe++);for(X=Q.length;Q.charCodeAt(--X)===48;);if(Q=Q.slice(oe,++X)){if(X-=oe,K&&de.DEBUG&&X>15&&(R>n||R!==t(R)))throw Error(u+Z.s*R);if((ne=ne-oe-1)>Y)Z.c=Z.e=null;else if(ne=$)?l(X,oe):j(X,oe,"0");else if(ne=(R=y(new de(R),U,z)).e,K=(X=h(R.c)).length,L==1||L==2&&(U<=ne||ne<=G)){for(;KK){if(--U>0)for(X+=".";U--;X+="0");}else if((U+=ne-K)>0)for(ne+1==K&&(X+=".");U--;X+="0");return R.s<0&&H?"-"+X:X}function ye(R,U){for(var z,L=1,H=new de(R[0]);L=10;H/=10,L++);return(z=L+z*r-1)>Y?R.c=R.e=null:z=10;K/=10,H++);if((ne=U-H)<0)ne+=r,oe=U,Z=(X=se[Q=0])/ue[H-oe-1]%10|0;else if((Q=a((ne+1)/r))>=se.length){if(!L)break e;for(;se.length<=Q;se.push(0));X=Z=0,H=1,oe=(ne%=r)-r+1}else{for(X=K=se[Q],H=1;K>=10;K/=10,H++);Z=(oe=(ne%=r)-r+H)<0?0:X/ue[H-oe-1]%10|0}if(L=L||U<0||se[Q+1]!=null||(oe<0?X:X%ue[H-oe-1]),L=z<4?(Z||L)&&(z==0||z==(R.s<0?3:2)):Z>5||Z==5&&(z==4||L||z==6&&(ne>0?oe>0?X/ue[H-oe]:0:se[Q-1])%10&1||z==(R.s<0?8:7)),U<1||!se[0])return se.length=0,L?(U-=R.e+1,se[0]=ue[(r-U%r)%r],R.e=-U||0):se[0]=R.e=0,R;if(ne==0?(se.length=Q,K=1,Q--):(se.length=Q+1,K=ue[r-ne],se[Q]=oe>0?t(X/ue[H-oe]%ue[oe])*K:0),L)for(;;){if(Q==0){for(ne=1,oe=se[0];oe>=10;oe/=10,ne++);for(oe=se[0]+=K,K=1;oe>=10;oe/=10,K++);ne!=K&&(R.e++,se[0]==s&&(se[0]=1));break}if(se[Q]+=K,se[Q]!=s)break;se[Q--]=0,K=1}for(ne=se.length;se[--ne]===0;se.pop());}R.e>Y?R.c=R.e=null:R.e=$?l(U,z):j(U,z,"0"),R.s<0?"-"+U:U)}return de.clone=M,de.ROUND_UP=0,de.ROUND_DOWN=1,de.ROUND_CEIL=2,de.ROUND_FLOOR=3,de.ROUND_HALF_UP=4,de.ROUND_HALF_DOWN=5,de.ROUND_HALF_EVEN=6,de.ROUND_HALF_CEIL=7,de.ROUND_HALF_FLOOR=8,de.EUCLID=9,de.config=de.set=function(R){var U,z;if(R!=null){if(typeof R!="object")throw Error(c+"Object expected: "+R);if(R.hasOwnProperty(U="DECIMAL_PLACES")&&(b(z=R[U],0,f,U),J=z),R.hasOwnProperty(U="ROUNDING_MODE")&&(b(z=R[U],0,8,U),ee=z),R.hasOwnProperty(U="EXPONENTIAL_AT")&&((z=R[U])&&z.pop?(b(z[0],-f,0,U),b(z[1],0,f,U),G=z[0],$=z[1]):(b(z,-f,f,U),G=-($=z<0?-z:z))),R.hasOwnProperty(U="RANGE"))if((z=R[U])&&z.pop)b(z[0],-f,-1,U),b(z[1],1,f,U),W=z[0],Y=z[1];else{if(b(z,-f,f,U),!z)throw Error(c+U+" cannot be zero: "+z);W=-(Y=z<0?-z:z)}if(R.hasOwnProperty(U="CRYPTO")){if((z=R[U])!==!!z)throw Error(c+U+" not true or false: "+z);if(z){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!z,Error(c+"crypto unavailable");F=z}else F=z}if(R.hasOwnProperty(U="MODULO_MODE")&&(b(z=R[U],0,9,U),ae=z),R.hasOwnProperty(U="POW_PRECISION")&&(b(z=R[U],0,f,U),he=z),R.hasOwnProperty(U="FORMAT")){if(typeof(z=R[U])!="object")throw Error(c+U+" not an object: "+z);le=z}if(R.hasOwnProperty(U="ALPHABET")){if(typeof(z=R[U])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(z))throw Error(c+U+" invalid: "+z);ve=z.slice(0,10)=="0123456789",ce=z}}return{DECIMAL_PLACES:J,ROUNDING_MODE:ee,EXPONENTIAL_AT:[G,$],RANGE:[W,Y],CRYPTO:F,MODULO_MODE:ae,POW_PRECISION:he,FORMAT:le,ALPHABET:ce}},de.isBigNumber=function(R){if(!R||R._isBigNumber!==!0)return!1;if(!de.DEBUG)return!0;var U,z,L=R.c,H=R.e,ne=R.s;e:if({}.toString.call(L)=="[object Array]"){if((ne===1||ne===-1)&&H>=-f&&H<=f&&H===t(H)){if(L[0]===0){if(H===0&&L.length===1)return!0;break e}if((U=(H+1)%r)<1&&(U+=r),String(L[0]).length==U){for(U=0;U=s||z!==t(z))break e;if(z!==0)return!0}}}else if(L===null&&H===null&&(ne===null||ne===1||ne===-1))return!0;throw Error(c+"Invalid BigNumber: "+R)},de.maximum=de.max=function(){return ye(arguments,re.lt)},de.minimum=de.min=function(){return ye(arguments,re.gt)},de.random=(v=9007199254740992,m=Math.random()*v&2097151?function(){return t(Math.random()*v)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(R){var U,z,L,H,ne,oe=0,K=[],X=new de(ie);if(R==null?R=J:b(R,0,f),H=a(R/r),F)if(crypto.getRandomValues){for(U=crypto.getRandomValues(new Uint32Array(H*=2));oe>>11))>=9e15?(z=crypto.getRandomValues(new Uint32Array(2)),U[oe]=z[0],U[oe+1]=z[1]):(K.push(ne%1e14),oe+=2);oe=H/2}else{if(!crypto.randomBytes)throw F=!1,Error(c+"crypto unavailable");for(U=crypto.randomBytes(H*=7);oe=9e15?crypto.randomBytes(7).copy(U,oe):(K.push(ne%1e14),oe+=7);oe=H/7}if(!F)for(;oe=10;ne/=10,oe++);oeH-1&&(X[oe+1]==null&&(X[oe+1]=0),X[oe+1]+=X[oe]/H|0,X[oe]%=H)}return X.reverse()}return function(z,L,H,ne,oe){var K,X,Q,Z,se,ue,fe,me,ge=z.indexOf("."),be=J,_e=ee;for(ge>=0&&(Z=he,he=0,z=z.replace(".",""),ue=(me=new de(L)).pow(z.length-ge),he=Z,me.c=U(j(h(ue.c),ue.e,"0"),10,H,R),me.e=me.c.length),Q=Z=(fe=U(z,L,H,oe?(K=ce,R):(K=R,ce))).length;fe[--Z]==0;fe.pop());if(!fe[0])return K.charAt(0);if(ge<0?--Q:(ue.c=fe,ue.e=Q,ue.s=ne,fe=(ue=C(ue,me,be,_e,H)).c,se=ue.r,Q=ue.e),ge=fe[X=Q+be+1],Z=H/2,se=se||X<0||fe[X+1]!=null,se=_e<4?(ge!=null||se)&&(_e==0||_e==(ue.s<0?3:2)):ge>Z||ge==Z&&(_e==4||se||_e==6&&1&fe[X-1]||_e==(ue.s<0?8:7)),X<1||!fe[0])z=se?j(K.charAt(1),-be,K.charAt(0)):K.charAt(0);else{if(fe.length=X,se)for(--H;++fe[--X]>H;)fe[X]=0,X||(++Q,fe=[1].concat(fe));for(Z=fe.length;!fe[--Z];);for(ge=0,z="";ge<=Z;z+=K.charAt(fe[ge++]));z=j(z,Q,K.charAt(0))}return z}}(),C=function(){function R(L,H,ne){var oe,K,X,Q,Z=0,se=L.length,ue=H%i,fe=H/i|0;for(L=L.slice();se--;)Z=((K=ue*(X=L[se]%i)+(oe=fe*X+(Q=L[se]/i|0)*ue)%i*i+Z)/ne|0)+(oe/i|0)+fe*Q,L[se]=K%ne;return Z&&(L=[Z].concat(L)),L}function U(L,H,ne,oe){var K,X;if(ne!=oe)X=ne>oe?1:-1;else for(K=X=0;KH[K]?1:-1;break}return X}function z(L,H,ne,oe){for(var K=0;ne--;)L[ne]-=K,K=L[ne]1;L.splice(0,1));}return function(L,H,ne,oe,K){var X,Q,Z,se,ue,fe,me,ge,be,_e,we,Ee,xe,Se,ke,Re,Oe,Pe=L.s==H.s?1:-1,Me=L.c,Ae=H.c;if(!(Me&&Me[0]&&Ae&&Ae[0]))return new de(L.s&&H.s&&(Me?!Ae||Me[0]!=Ae[0]:Ae)?Me&&Me[0]==0||!Ae?0*Pe:Pe/0:NaN);for(be=(ge=new de(Pe)).c=[],Pe=ne+(Q=L.e-H.e)+1,K||(K=s,Q=d(L.e/r)-d(H.e/r),Pe=Pe/r|0),Z=0;Ae[Z]==(Me[Z]||0);Z++);if(Ae[Z]>(Me[Z]||0)&&Q--,Pe<0)be.push(1),se=!0;else{for(Se=Me.length,Re=Ae.length,Z=0,Pe+=2,(ue=t(K/(Ae[0]+1)))>1&&(Ae=R(Ae,ue,K),Me=R(Me,ue,K),Re=Ae.length,Se=Me.length),xe=Re,we=(_e=Me.slice(0,Re)).length;we=K/2&&ke++;do{if(ue=0,(X=U(Ae,_e,Re,we))<0){if(Ee=_e[0],Re!=we&&(Ee=Ee*K+(_e[1]||0)),(ue=t(Ee/ke))>1)for(ue>=K&&(ue=K-1),me=(fe=R(Ae,ue,K)).length,we=_e.length;U(fe,_e,me,we)==1;)ue--,z(fe,Re=10;Pe/=10,Z++);y(ge,ne+(ge.e=Z+Q*r-1)+1,oe,se)}else ge.e=Q,ge.r=+se;return ge}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,T=/^\.([^.]+)$/,q=/^-?(Infinity|NaN)$/,te=/^\s*\+(?=[\w.])|^\s+|\s+$/g,P=function(R,U,z,L){var H,ne=z?U:U.replace(te,"");if(q.test(ne))R.s=isNaN(ne)?null:ne<0?-1:1;else{if(!z&&(ne=ne.replace(E,function(oe,K,X){return H=(X=X.toLowerCase())=="x"?16:X=="b"?2:8,L&&L!=H?oe:K}),L&&(H=L,ne=ne.replace(B,"$1").replace(T,"0.$1")),U!=ne))return new de(ne,H);if(de.DEBUG)throw Error(c+"Not a"+(L?" base "+L:"")+" number: "+U);R.s=null}R.c=R.e=null},re.absoluteValue=re.abs=function(){var R=new de(this);return R.s<0&&(R.s=1),R},re.comparedTo=function(R,U){return _(this,new de(R,U))},re.decimalPlaces=re.dp=function(R,U){var z,L,H,ne=this;if(R!=null)return b(R,0,f),U==null?U=ee:b(U,0,8),y(new de(ne),R+ne.e+1,U);if(!(z=ne.c))return null;if(L=((H=z.length-1)-d(this.e/r))*r,H=z[H])for(;H%10==0;H/=10,L--);return L<0&&(L=0),L},re.dividedBy=re.div=function(R,U){return C(this,new de(R,U),J,ee)},re.dividedToIntegerBy=re.idiv=function(R,U){return C(this,new de(R,U),0,1)},re.exponentiatedBy=re.pow=function(R,U){var z,L,H,ne,oe,K,X,Q,Z=this;if((R=new de(R)).c&&!R.isInteger())throw Error(c+"Exponent not an integer: "+A(R));if(U!=null&&(U=new de(U)),oe=R.e>14,!Z.c||!Z.c[0]||Z.c[0]==1&&!Z.e&&Z.c.length==1||!R.c||!R.c[0])return Q=new de(Math.pow(+A(Z),oe?2-I(R):+A(R))),U?Q.mod(U):Q;if(K=R.s<0,U){if(U.c?!U.c[0]:!U.s)return new de(NaN);(L=!K&&Z.isInteger()&&U.isInteger())&&(Z=Z.mod(U))}else{if(R.e>9&&(Z.e>0||Z.e<-1||(Z.e==0?Z.c[0]>1||oe&&Z.c[1]>=24e7:Z.c[0]<8e13||oe&&Z.c[0]<=9999975e7)))return ne=Z.s<0&&I(R)?-0:0,Z.e>-1&&(ne=1/ne),new de(K?1/ne:ne);he&&(ne=a(he/r+2))}for(oe?(z=new de(.5),K&&(R.s=1),X=I(R)):X=(H=Math.abs(+A(R)))%2,Q=new de(ie);;){if(X){if(!(Q=Q.times(Z)).c)break;ne?Q.c.length>ne&&(Q.c.length=ne):L&&(Q=Q.mod(U))}if(H){if((H=t(H/2))===0)break;X=H%2}else if(y(R=R.times(z),R.e+1,1),R.e>14)X=I(R);else{if((H=+A(R))==0)break;X=H%2}Z=Z.times(Z),ne?Z.c&&Z.c.length>ne&&(Z.c.length=ne):L&&(Z=Z.mod(U))}return L?Q:(K&&(Q=ie.div(Q)),U?Q.mod(U):ne?y(Q,he,ee,void 0):Q)},re.integerValue=function(R){var U=new de(this);return R==null?R=ee:b(R,0,8),y(U,U.e+1,R)},re.isEqualTo=re.eq=function(R,U){return _(this,new de(R,U))===0},re.isFinite=function(){return!!this.c},re.isGreaterThan=re.gt=function(R,U){return _(this,new de(R,U))>0},re.isGreaterThanOrEqualTo=re.gte=function(R,U){return(U=_(this,new de(R,U)))===1||U===0},re.isInteger=function(){return!!this.c&&d(this.e/r)>this.c.length-2},re.isLessThan=re.lt=function(R,U){return _(this,new de(R,U))<0},re.isLessThanOrEqualTo=re.lte=function(R,U){return(U=_(this,new de(R,U)))===-1||U===0},re.isNaN=function(){return!this.s},re.isNegative=function(){return this.s<0},re.isPositive=function(){return this.s>0},re.isZero=function(){return!!this.c&&this.c[0]==0},re.minus=function(R,U){var z,L,H,ne,oe=this,K=oe.s;if(U=(R=new de(R,U)).s,!K||!U)return new de(NaN);if(K!=U)return R.s=-U,oe.plus(R);var X=oe.e/r,Q=R.e/r,Z=oe.c,se=R.c;if(!X||!Q){if(!Z||!se)return Z?(R.s=-U,R):new de(se?oe:NaN);if(!Z[0]||!se[0])return se[0]?(R.s=-U,R):new de(Z[0]?oe:ee==3?-0:0)}if(X=d(X),Q=d(Q),Z=Z.slice(),K=X-Q){for((ne=K<0)?(K=-K,H=Z):(Q=X,H=se),H.reverse(),U=K;U--;H.push(0));H.reverse()}else for(L=(ne=(K=Z.length)<(U=se.length))?K:U,K=U=0;U0)for(;U--;Z[z++]=0);for(U=s-1;L>K;){if(Z[--L]=0;){for(z=0,ue=Ee[H]%be,fe=Ee[H]/be|0,ne=H+(oe=X);ne>H;)z=((Q=ue*(Q=we[--oe]%be)+(K=fe*Q+(Z=we[oe]/be|0)*ue)%be*be+me[ne]+z)/ge|0)+(K/be|0)+fe*Z,me[ne--]=Q%ge;me[ne]=z}return z?++L:me.splice(0,1),V(R,me,L)},re.negated=function(){var R=new de(this);return R.s=-R.s||null,R},re.plus=function(R,U){var z,L=this,H=L.s;if(U=(R=new de(R,U)).s,!H||!U)return new de(NaN);if(H!=U)return R.s=-U,L.minus(R);var ne=L.e/r,oe=R.e/r,K=L.c,X=R.c;if(!ne||!oe){if(!K||!X)return new de(H/0);if(!K[0]||!X[0])return X[0]?R:new de(K[0]?L:0*H)}if(ne=d(ne),oe=d(oe),K=K.slice(),H=ne-oe){for(H>0?(oe=ne,z=X):(H=-H,z=K),z.reverse();H--;z.push(0));z.reverse()}for((H=K.length)-(U=X.length)<0&&(z=X,X=K,K=z,U=H),H=0;U;)H=(K[--U]=K[U]+X[U]+H)/s|0,K[U]=s===K[U]?0:K[U]%s;return H&&(K=[H].concat(K),++oe),V(R,K,oe)},re.precision=re.sd=function(R,U){var z,L,H,ne=this;if(R!=null&&R!==!!R)return b(R,1,f),U==null?U=ee:b(U,0,8),y(new de(ne),R,U);if(!(z=ne.c))return null;if(L=(H=z.length-1)*r+1,H=z[H]){for(;H%10==0;H/=10,L--);for(H=z[0];H>=10;H/=10,L++);}return R&&ne.e+1>L&&(L=ne.e+1),L},re.shiftedBy=function(R){return b(R,-9007199254740991,n),this.times("1e"+R)},re.squareRoot=re.sqrt=function(){var R,U,z,L,H,ne=this,oe=ne.c,K=ne.s,X=ne.e,Q=J+4,Z=new de("0.5");if(K!==1||!oe||!oe[0])return new de(!K||K<0&&(!oe||oe[0])?NaN:oe?ne:1/0);if((K=Math.sqrt(+A(ne)))==0||K==1/0?(((U=h(oe)).length+X)%2==0&&(U+="0"),K=Math.sqrt(+U),X=d((X+1)/2)-(X<0||X%2),z=new de(U=K==1/0?"5e"+X:(U=K.toExponential()).slice(0,U.indexOf("e")+1)+X)):z=new de(K+""),z.c[0]){for((K=(X=z.e)+Q)<3&&(K=0);;)if(H=z,z=Z.times(H.plus(C(ne,H,Q,1))),h(H.c).slice(0,K)===(U=h(z.c)).slice(0,K)){if(z.e0&&me>0){for(ne=me%K||K,Z=fe.substr(0,ne);ne0&&(Z+=Q+fe.slice(ne)),ue&&(Z="-"+Z)}L=se?Z+(z.decimalSeparator||"")+((X=+z.fractionGroupSize)?se.replace(new RegExp("\\d{"+X+"}\\B","g"),"$&"+(z.fractionGroupSeparator||"")):se):Z}return(z.prefix||"")+L+(z.suffix||"")},re.toFraction=function(R){var U,z,L,H,ne,oe,K,X,Q,Z,se,ue,fe=this,me=fe.c;if(R!=null&&(!(K=new de(R)).isInteger()&&(K.c||K.s!==1)||K.lt(ie)))throw Error(c+"Argument "+(K.isInteger()?"out of range: ":"not an integer: ")+A(K));if(!me)return new de(fe);for(U=new de(ie),Q=z=new de(ie),L=X=new de(ie),ue=h(me),ne=U.e=ue.length-fe.e-1,U.c[0]=o[(oe=ne%r)<0?r+oe:oe],R=!R||K.comparedTo(U)>0?ne>0?U:Q:K,oe=Y,Y=1/0,K=new de(ue),X.c[0]=0;Z=C(K,U,0,1),(H=z.plus(Z.times(L))).comparedTo(R)!=1;)z=L,L=H,Q=X.plus(Z.times(H=Q)),X=H,U=K.minus(Z.times(H=U)),K=H;return H=C(R.minus(z),L,0,1),X=X.plus(H.times(Q)),z=z.plus(H.times(L)),X.s=Q.s=fe.s,se=C(Q,L,ne*=2,ee).minus(fe).abs().comparedTo(C(X,z,ne,ee).minus(fe).abs())<1?[Q,L]:[X,z],Y=oe,se},re.toNumber=function(){return+A(this)},re.toPrecision=function(R,U){return R!=null&&b(R,1,f),pe(this,R,U,2)},re.toString=function(R){var U,z=this,L=z.s,H=z.e;return H===null?L?(U="Infinity",L<0&&(U="-"+U)):U="NaN":(R==null?U=H<=G||H>=$?l(h(z.c),H):j(h(z.c),H,"0"):R===10&&ve?U=j(h((z=y(new de(z),J+H+1,ee)).c),z.e,"0"):(b(R,2,ce.length,"Base"),U=x(j(h(z.c),H,"0"),10,R,L,!0)),L<0&&z.c[0]&&(U="-"+U)),U},re.valueOf=re.toJSON=function(){return A(this)},re._isBigNumber=!0,N!=null&&de.set(N),de}(),k.default=k.BigNumber=k,(w=(function(){return k}).call(e,p,e,D))===void 0||(D.exports=w)})()},4090:(D,e,p)=>{var w=p(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});const O=p(6903),k=p(8334),S=p(5892),a=p(2401),t=p(9898),c=a.BufferN(32),u=a.compile({wif:a.UInt8,bip32:{public:a.UInt32,private:a.UInt32}}),s={messagePrefix:`Bitcoin Signed Message: -`,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},r=2147483648,n=Math.pow(2,31)-1;function o(b){return a.String(b)&&b.match(/^(m\/)?(\d+'?\/)*\d+'?$/)!==null}function i(b){return a.UInt32(b)&&b<=n}class f{constructor(I,l,j,M,N=0,C=0,x=0){this.__D=I,this.__Q=l,this.chainCode=j,this.network=M,this.__DEPTH=N,this.__INDEX=C,this.__PARENT_FINGERPRINT=x,a(u,M),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return this.__Q===void 0&&(this.__Q=S.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return O.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return this.__D===void 0}neutered(){return _(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const I=this.network,l=this.isNeutered()?I.bip32.public:I.bip32.private,j=w.allocUnsafe(78);return j.writeUInt32BE(l,0),j.writeUInt8(this.depth,4),j.writeUInt32BE(this.parentFingerprint,5),j.writeUInt32BE(this.index,9),this.chainCode.copy(j,13),this.isNeutered()?this.publicKey.copy(j,45):(j.writeUInt8(0,45),this.privateKey.copy(j,46)),k.encode(j)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return t.encode(this.network.wif,this.privateKey,!0)}derive(I){a(a.UInt32,I);const l=I>=r,j=w.allocUnsafe(37);if(l){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");j[0]=0,this.privateKey.copy(j,1),j.writeUInt32BE(I,33)}else this.publicKey.copy(j,0),j.writeUInt32BE(I,33);const M=O.hmacSHA512(this.chainCode,j),N=M.slice(0,32),C=M.slice(32);if(!S.isPrivate(N))return this.derive(I+1);let x;if(this.isNeutered()){const P=S.pointAddScalar(this.publicKey,N,!0);if(P===null)return this.derive(I+1);x=_(P,C,this.network,this.depth+1,I,this.fingerprint.readUInt32BE(0))}else{const P=S.privateAdd(this.privateKey,N);if(P==null)return this.derive(I+1);x=h(P,C,this.network,this.depth+1,I,this.fingerprint.readUInt32BE(0))}return x}deriveHardened(I){return a(i,I),this.derive(I+r)}derivePath(I){a(o,I);let l=I.split("/");if(l[0]==="m"){if(this.parentFingerprint)throw new TypeError("Expected master, got child");l=l.slice(1)}return l.reduce((j,M)=>{let N;return M.slice(-1)==="'"?(N=parseInt(M.slice(0,-1),10),j.deriveHardened(N)):(N=parseInt(M,10),j.derive(N))},this)}sign(I,l){if(!this.privateKey)throw new Error("Missing private key");if(l===void 0&&(l=this.lowR),l===!1)return S.sign(I,this.privateKey);{let j=S.sign(I,this.privateKey);const M=w.alloc(32,0);let N=0;for(;j[0]>127;)N++,M.writeUIntLE(N,0,6),j=S.signWithEntropy(I,this.privateKey,M);return j}}verify(I,l){return S.verify(I,this.publicKey,l)}}function d(b,I,l){return h(b,I,l)}function h(b,I,l,j,M,N){if(a({privateKey:c,chainCode:c},{privateKey:b,chainCode:I}),l=l||s,!S.isPrivate(b))throw new TypeError("Private key not in range [1, n)");return new f(b,void 0,I,l,j,M,N)}function _(b,I,l,j,M,N){if(a({publicKey:a.BufferN(33),chainCode:c},{publicKey:b,chainCode:I}),l=l||s,!S.isPoint(b))throw new TypeError("Point is not on the curve");return new f(void 0,b,I,l,j,M,N)}e.fromBase58=function(b,I){const l=k.decode(b);if(l.length!==78)throw new TypeError("Invalid buffer length");I=I||s;const j=l.readUInt32BE(0);if(j!==I.bip32.private&&j!==I.bip32.public)throw new TypeError("Invalid network version");const M=l[4],N=l.readUInt32BE(5);if(M===0&&N!==0)throw new TypeError("Invalid parent fingerprint");const C=l.readUInt32BE(9);if(M===0&&C!==0)throw new TypeError("Invalid index");const x=l.slice(13,45);let P;if(j===I.bip32.private){if(l.readUInt8(45)!==0)throw new TypeError("Invalid private key");P=h(l.slice(46,78),x,I,M,C,N)}else P=_(l.slice(45,78),x,I,M,C,N);return P},e.fromPrivateKey=d,e.fromPublicKey=function(b,I,l){return _(b,I,l)},e.fromSeed=function(b,I){if(a(a.Buffer,b),b.length<16)throw new TypeError("Seed should be at least 128 bits");if(b.length>64)throw new TypeError("Seed should be at most 512 bits");I=I||s;const l=O.hmacSHA512(w.from("Bitcoin seed","utf8"),b);return d(l.slice(0,32),l.slice(32),I)}},6903:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0});const w=p(3482),O=p(8355);e.hash160=function(k){const S=w("sha256").update(k).digest();try{return w("rmd160").update(S).digest()}catch{return w("ripemd160").update(S).digest()}},e.hmacSHA512=function(k,S){return O("sha512",k).update(S).digest()}},7786:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0});var w=p(4090);e.fromSeed=w.fromSeed,e.fromBase58=w.fromBase58,e.fromPublicKey=w.fromPublicKey,e.fromPrivateKey=w.fromPrivateKey},2314:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0});const w={};let O;e.wordlists=w,e._default=O;try{e._default=O=p(32),w.czech=O}catch{}try{e._default=O=p(6996),w.chinese_simplified=O}catch{}try{e._default=O=p(4262),w.chinese_traditional=O}catch{}try{e._default=O=p(8013),w.korean=O}catch{}try{e._default=O=p(1848),w.french=O}catch{}try{e._default=O=p(2841),w.italian=O}catch{}try{e._default=O=p(659),w.spanish=O}catch{}try{e._default=O=p(4472),w.japanese=O,w.JA=O}catch{}try{e._default=O=p(1945),w.portuguese=O}catch{}try{e._default=O=p(4573),w.english=O,w.EN=O}catch{}},2153:(D,e,p)=>{var w=p(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});const O=p(3482),k=p(5632),S=p(1798),a=p(2314);let t=a._default;const c="Invalid mnemonic",u="Invalid entropy",s=`A wordlist is required but a default could not be found. -Please pass a 2048 word array explicitly.`;function r(I){return(I||"").normalize("NFKD")}function n(I,l,j){for(;I.lengthn(l.toString(2),"0",8)).join("")}function f(I){const l=8*I.length/32,j=O("sha256").update(I).digest();return i(Array.from(j)).slice(0,l)}function d(I){return"mnemonic"+(I||"")}function h(I,l){if(!(l=l||t))throw new Error(s);const j=r(I).split(" ");if(j.length%3!=0)throw new Error(c);const M=j.map(m=>{const E=l.indexOf(m);if(E===-1)throw new Error(c);return n(E.toString(2),"0",11)}).join(""),N=32*Math.floor(M.length/33),C=M.slice(0,N),x=M.slice(N),P=C.match(/(.{1,8})/g).map(o);if(P.length<16)throw new Error(u);if(P.length>32)throw new Error(u);if(P.length%4!=0)throw new Error(u);const v=w.from(P);if(f(v)!==x)throw new Error("Invalid mnemonic checksum");return v.toString("hex")}function _(I,l){if(w.isBuffer(I)||(I=w.from(I,"hex")),!(l=l||t))throw new Error(s);if(I.length<16)throw new TypeError(u);if(I.length>32)throw new TypeError(u);if(I.length%4!=0)throw new TypeError(u);const j=(i(Array.from(I))+f(I)).match(/(.{1,11})/g).map(M=>{const N=o(M);return l[N]});return l[0]==="あいこくしん"?j.join(" "):j.join(" ")}e.mnemonicToSeedSync=function(I,l){const j=w.from(r(I),"utf8"),M=w.from(d(r(l)),"utf8");return k.pbkdf2Sync(j,M,2048,64,"sha512")},e.mnemonicToSeed=function(I,l){return Promise.resolve().then(()=>function(j,M,N,C,x){return Promise.resolve().then(()=>new Promise((P,v)=>{k.pbkdf2(j,M,2048,64,"sha512",(m,E)=>m?v(m):P(E))}))}(w.from(r(I),"utf8"),w.from(d(r(l)),"utf8")))},e.mnemonicToEntropy=h,e.entropyToMnemonic=_,e.generateMnemonic=function(I,l,j){if((I=I||128)%32!=0)throw new TypeError(u);return _((l=l||S)(I/8),j)},e.validateMnemonic=function(I,l){try{h(I,l)}catch{return!1}return!0},e.setDefaultWordlist=function(I){const l=a.wordlists[I];if(!l)throw new Error('Could not find wordlist for language "'+I+'"');t=l},e.getDefaultWordlist=function(){if(!t)throw new Error("No Default Wordlist set");return Object.keys(a.wordlists).filter(I=>I!=="JA"&&I!=="EN"&&a.wordlists[I].every((l,j)=>l===t[j]))[0]};var b=p(2314);e.wordlists=b.wordlists},3550:function(D,e,p){(function(w,O){function k(x,P){if(!x)throw new Error(P||"Assertion failed")}function S(x,P){x.super_=P;var v=function(){};v.prototype=P.prototype,x.prototype=new v,x.prototype.constructor=x}function a(x,P,v){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&(P!=="le"&&P!=="be"||(v=P,P=10),this._init(x||0,P||10,v||"be"))}var t;typeof w=="object"?w.exports=a:O.BN=a,a.BN=a,a.wordSize=26;try{t=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:p(6601).Buffer}catch{}function c(x,P){var v=x.charCodeAt(P);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function u(x,P,v){var m=c(x,v);return v-1>=P&&(m|=c(x,v-1)<<4),m}function s(x,P,v,m){for(var E=0,B=Math.min(x.length,v),T=P;T=49?q-49+10:q>=17?q-17+10:q}return E}a.isBN=function(x){return x instanceof a||x!==null&&typeof x=="object"&&x.constructor.wordSize===a.wordSize&&Array.isArray(x.words)},a.max=function(x,P){return x.cmp(P)>0?x:P},a.min=function(x,P){return x.cmp(P)<0?x:P},a.prototype._init=function(x,P,v){if(typeof x=="number")return this._initNumber(x,P,v);if(typeof x=="object")return this._initArray(x,P,v);P==="hex"&&(P=16),k(P===(0|P)&&P>=2&&P<=36);var m=0;(x=x.toString().replace(/\s+/g,""))[0]==="-"&&(m++,this.negative=1),m=0;m-=3)B=x[m]|x[m-1]<<8|x[m-2]<<16,this.words[E]|=B<>>26-T&67108863,(T+=24)>=26&&(T-=26,E++);else if(v==="le")for(m=0,E=0;m>>26-T&67108863,(T+=24)>=26&&(T-=26,E++);return this.strip()},a.prototype._parseHex=function(x,P,v){this.length=Math.ceil((x.length-P)/6),this.words=new Array(this.length);for(var m=0;m=P;m-=2)E=u(x,P,m)<=18?(B-=18,T+=1,this.words[T]|=E>>>26):B+=8;else for(m=(x.length-P)%2==0?P+1:P;m=18?(B-=18,T+=1,this.words[T]|=E>>>26):B+=8;this.strip()},a.prototype._parseBase=function(x,P,v){this.words=[0],this.length=1;for(var m=0,E=1;E<=67108863;E*=P)m++;m--,E=E/P|0;for(var B=x.length-v,T=B%m,q=Math.min(B,B-T)+v,te=0,re=v;re1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var r=["","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"],n=[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],o=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function i(x,P,v){v.negative=P.negative^x.negative;var m=x.length+P.length|0;v.length=m,m=m-1|0;var E=0|x.words[0],B=0|P.words[0],T=E*B,q=67108863&T,te=T/67108864|0;v.words[0]=q;for(var re=1;re>>26,J=67108863&te,ee=Math.min(re,P.length-1),G=Math.max(0,re-x.length+1);G<=ee;G++){var $=re-G|0;ie+=(T=(E=0|x.words[$])*(B=0|P.words[G])+J)/67108864|0,J=67108863&T}v.words[re]=0|J,te=0|ie}return te!==0?v.words[re]=0|te:v.length--,v.strip()}a.prototype.toString=function(x,P){var v;if(P=0|P||1,(x=x||10)===16||x==="hex"){v="";for(var m=0,E=0,B=0;B>>24-m&16777215)!=0||B!==this.length-1?r[6-q.length]+q+v:q+v,(m+=2)>=26&&(m-=26,B--)}for(E!==0&&(v=E.toString(16)+v);v.length%P!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(x===(0|x)&&x>=2&&x<=36){var te=n[x],re=o[x];v="";var ie=this.clone();for(ie.negative=0;!ie.isZero();){var J=ie.modn(re).toString(x);v=(ie=ie.idivn(re)).isZero()?J+v:r[te-J.length]+J+v}for(this.isZero()&&(v="0"+v);v.length%P!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}k(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var x=this.words[0];return this.length===2?x+=67108864*this.words[1]:this.length===3&&this.words[2]===1?x+=4503599627370496+67108864*this.words[1]:this.length>2&&k(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-x:x},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(x,P){return k(t!==void 0),this.toArrayLike(t,x,P)},a.prototype.toArray=function(x,P){return this.toArrayLike(Array,x,P)},a.prototype.toArrayLike=function(x,P,v){var m=this.byteLength(),E=v||Math.max(1,m);k(m<=E,"byte array longer than desired length"),k(E>0,"Requested array length <= 0"),this.strip();var B,T,q=P==="le",te=new x(E),re=this.clone();if(q){for(T=0;!re.isZero();T++)B=re.andln(255),re.iushrn(8),te[T]=B;for(;T=4096&&(v+=13,P>>>=13),P>=64&&(v+=7,P>>>=7),P>=8&&(v+=4,P>>>=4),P>=2&&(v+=2,P>>>=2),v+P},a.prototype._zeroBits=function(x){if(x===0)return 26;var P=x,v=0;return!(8191&P)&&(v+=13,P>>>=13),!(127&P)&&(v+=7,P>>>=7),!(15&P)&&(v+=4,P>>>=4),!(3&P)&&(v+=2,P>>>=2),!(1&P)&&v++,v},a.prototype.bitLength=function(){var x=this.words[this.length-1],P=this._countBits(x);return 26*(this.length-1)+P},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var x=0,P=0;Px.length?this.clone().ior(x):x.clone().ior(this)},a.prototype.uor=function(x){return this.length>x.length?this.clone().iuor(x):x.clone().iuor(this)},a.prototype.iuand=function(x){var P;P=this.length>x.length?x:this;for(var v=0;vx.length?this.clone().iand(x):x.clone().iand(this)},a.prototype.uand=function(x){return this.length>x.length?this.clone().iuand(x):x.clone().iuand(this)},a.prototype.iuxor=function(x){var P,v;this.length>x.length?(P=this,v=x):(P=x,v=this);for(var m=0;mx.length?this.clone().ixor(x):x.clone().ixor(this)},a.prototype.uxor=function(x){return this.length>x.length?this.clone().iuxor(x):x.clone().iuxor(this)},a.prototype.inotn=function(x){k(typeof x=="number"&&x>=0);var P=0|Math.ceil(x/26),v=x%26;this._expand(P),v>0&&P--;for(var m=0;m0&&(this.words[m]=~this.words[m]&67108863>>26-v),this.strip()},a.prototype.notn=function(x){return this.clone().inotn(x)},a.prototype.setn=function(x,P){k(typeof x=="number"&&x>=0);var v=x/26|0,m=x%26;return this._expand(v+1),this.words[v]=P?this.words[v]|1<x.length?(v=this,m=x):(v=x,m=this);for(var E=0,B=0;B>>26;for(;E!==0&&B>>26;if(this.length=v.length,E!==0)this.words[this.length]=E,this.length++;else if(v!==this)for(;Bx.length?this.clone().iadd(x):x.clone().iadd(this)},a.prototype.isub=function(x){if(x.negative!==0){x.negative=0;var P=this.iadd(x);return x.negative=1,P._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(x),this.negative=1,this._normSign();var v,m,E=this.cmp(x);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(v=this,m=x):(v=x,m=this);for(var B=0,T=0;T>26,this.words[T]=67108863&P;for(;B!==0&&T>26,this.words[T]=67108863&P;if(B===0&&T>>13,G=0|T[1],$=8191&G,W=G>>>13,Y=0|T[2],F=8191&Y,ae=Y>>>13,he=0|T[3],le=8191&he,ce=he>>>13,ve=0|T[4],de=8191&ve,pe=ve>>>13,ye=0|T[5],V=8191&ye,y=ye>>>13,A=0|T[6],R=8191&A,U=A>>>13,z=0|T[7],L=8191&z,H=z>>>13,ne=0|T[8],oe=8191&ne,K=ne>>>13,X=0|T[9],Q=8191&X,Z=X>>>13,se=0|q[0],ue=8191&se,fe=se>>>13,me=0|q[1],ge=8191&me,be=me>>>13,_e=0|q[2],we=8191&_e,Ee=_e>>>13,xe=0|q[3],Se=8191&xe,ke=xe>>>13,Re=0|q[4],Oe=8191&Re,Pe=Re>>>13,Me=0|q[5],Ae=8191&Me,Ne=Me>>>13,Te=0|q[6],Ce=8191&Te,Ie=Te>>>13,De=0|q[7],je=8191&De,Ue=De>>>13,ze=0|q[8],Be=8191&ze,Je=ze>>>13,dt=0|q[9],qe=8191&dt,Le=dt>>>13;v.negative=x.negative^P.negative,v.length=19;var We=(re+(m=Math.imul(J,ue))|0)+((8191&(E=(E=Math.imul(J,fe))+Math.imul(ee,ue)|0))<<13)|0;re=((B=Math.imul(ee,fe))+(E>>>13)|0)+(We>>>26)|0,We&=67108863,m=Math.imul($,ue),E=(E=Math.imul($,fe))+Math.imul(W,ue)|0,B=Math.imul(W,fe);var Ge=(re+(m=m+Math.imul(J,ge)|0)|0)+((8191&(E=(E=E+Math.imul(J,be)|0)+Math.imul(ee,ge)|0))<<13)|0;re=((B=B+Math.imul(ee,be)|0)+(E>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(F,ue),E=(E=Math.imul(F,fe))+Math.imul(ae,ue)|0,B=Math.imul(ae,fe),m=m+Math.imul($,ge)|0,E=(E=E+Math.imul($,be)|0)+Math.imul(W,ge)|0,B=B+Math.imul(W,be)|0;var He=(re+(m=m+Math.imul(J,we)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ee)|0)+Math.imul(ee,we)|0))<<13)|0;re=((B=B+Math.imul(ee,Ee)|0)+(E>>>13)|0)+(He>>>26)|0,He&=67108863,m=Math.imul(le,ue),E=(E=Math.imul(le,fe))+Math.imul(ce,ue)|0,B=Math.imul(ce,fe),m=m+Math.imul(F,ge)|0,E=(E=E+Math.imul(F,be)|0)+Math.imul(ae,ge)|0,B=B+Math.imul(ae,be)|0,m=m+Math.imul($,we)|0,E=(E=E+Math.imul($,Ee)|0)+Math.imul(W,we)|0,B=B+Math.imul(W,Ee)|0;var Ve=(re+(m=m+Math.imul(J,Se)|0)|0)+((8191&(E=(E=E+Math.imul(J,ke)|0)+Math.imul(ee,Se)|0))<<13)|0;re=((B=B+Math.imul(ee,ke)|0)+(E>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,m=Math.imul(de,ue),E=(E=Math.imul(de,fe))+Math.imul(pe,ue)|0,B=Math.imul(pe,fe),m=m+Math.imul(le,ge)|0,E=(E=E+Math.imul(le,be)|0)+Math.imul(ce,ge)|0,B=B+Math.imul(ce,be)|0,m=m+Math.imul(F,we)|0,E=(E=E+Math.imul(F,Ee)|0)+Math.imul(ae,we)|0,B=B+Math.imul(ae,Ee)|0,m=m+Math.imul($,Se)|0,E=(E=E+Math.imul($,ke)|0)+Math.imul(W,Se)|0,B=B+Math.imul(W,ke)|0;var $e=(re+(m=m+Math.imul(J,Oe)|0)|0)+((8191&(E=(E=E+Math.imul(J,Pe)|0)+Math.imul(ee,Oe)|0))<<13)|0;re=((B=B+Math.imul(ee,Pe)|0)+(E>>>13)|0)+($e>>>26)|0,$e&=67108863,m=Math.imul(V,ue),E=(E=Math.imul(V,fe))+Math.imul(y,ue)|0,B=Math.imul(y,fe),m=m+Math.imul(de,ge)|0,E=(E=E+Math.imul(de,be)|0)+Math.imul(pe,ge)|0,B=B+Math.imul(pe,be)|0,m=m+Math.imul(le,we)|0,E=(E=E+Math.imul(le,Ee)|0)+Math.imul(ce,we)|0,B=B+Math.imul(ce,Ee)|0,m=m+Math.imul(F,Se)|0,E=(E=E+Math.imul(F,ke)|0)+Math.imul(ae,Se)|0,B=B+Math.imul(ae,ke)|0,m=m+Math.imul($,Oe)|0,E=(E=E+Math.imul($,Pe)|0)+Math.imul(W,Oe)|0,B=B+Math.imul(W,Pe)|0;var Qe=(re+(m=m+Math.imul(J,Ae)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ne)|0)+Math.imul(ee,Ae)|0))<<13)|0;re=((B=B+Math.imul(ee,Ne)|0)+(E>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,m=Math.imul(R,ue),E=(E=Math.imul(R,fe))+Math.imul(U,ue)|0,B=Math.imul(U,fe),m=m+Math.imul(V,ge)|0,E=(E=E+Math.imul(V,be)|0)+Math.imul(y,ge)|0,B=B+Math.imul(y,be)|0,m=m+Math.imul(de,we)|0,E=(E=E+Math.imul(de,Ee)|0)+Math.imul(pe,we)|0,B=B+Math.imul(pe,Ee)|0,m=m+Math.imul(le,Se)|0,E=(E=E+Math.imul(le,ke)|0)+Math.imul(ce,Se)|0,B=B+Math.imul(ce,ke)|0,m=m+Math.imul(F,Oe)|0,E=(E=E+Math.imul(F,Pe)|0)+Math.imul(ae,Oe)|0,B=B+Math.imul(ae,Pe)|0,m=m+Math.imul($,Ae)|0,E=(E=E+Math.imul($,Ne)|0)+Math.imul(W,Ae)|0,B=B+Math.imul(W,Ne)|0;var Ke=(re+(m=m+Math.imul(J,Ce)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ie)|0)+Math.imul(ee,Ce)|0))<<13)|0;re=((B=B+Math.imul(ee,Ie)|0)+(E>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,m=Math.imul(L,ue),E=(E=Math.imul(L,fe))+Math.imul(H,ue)|0,B=Math.imul(H,fe),m=m+Math.imul(R,ge)|0,E=(E=E+Math.imul(R,be)|0)+Math.imul(U,ge)|0,B=B+Math.imul(U,be)|0,m=m+Math.imul(V,we)|0,E=(E=E+Math.imul(V,Ee)|0)+Math.imul(y,we)|0,B=B+Math.imul(y,Ee)|0,m=m+Math.imul(de,Se)|0,E=(E=E+Math.imul(de,ke)|0)+Math.imul(pe,Se)|0,B=B+Math.imul(pe,ke)|0,m=m+Math.imul(le,Oe)|0,E=(E=E+Math.imul(le,Pe)|0)+Math.imul(ce,Oe)|0,B=B+Math.imul(ce,Pe)|0,m=m+Math.imul(F,Ae)|0,E=(E=E+Math.imul(F,Ne)|0)+Math.imul(ae,Ae)|0,B=B+Math.imul(ae,Ne)|0,m=m+Math.imul($,Ce)|0,E=(E=E+Math.imul($,Ie)|0)+Math.imul(W,Ce)|0,B=B+Math.imul(W,Ie)|0;var Ze=(re+(m=m+Math.imul(J,je)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ue)|0)+Math.imul(ee,je)|0))<<13)|0;re=((B=B+Math.imul(ee,Ue)|0)+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,m=Math.imul(oe,ue),E=(E=Math.imul(oe,fe))+Math.imul(K,ue)|0,B=Math.imul(K,fe),m=m+Math.imul(L,ge)|0,E=(E=E+Math.imul(L,be)|0)+Math.imul(H,ge)|0,B=B+Math.imul(H,be)|0,m=m+Math.imul(R,we)|0,E=(E=E+Math.imul(R,Ee)|0)+Math.imul(U,we)|0,B=B+Math.imul(U,Ee)|0,m=m+Math.imul(V,Se)|0,E=(E=E+Math.imul(V,ke)|0)+Math.imul(y,Se)|0,B=B+Math.imul(y,ke)|0,m=m+Math.imul(de,Oe)|0,E=(E=E+Math.imul(de,Pe)|0)+Math.imul(pe,Oe)|0,B=B+Math.imul(pe,Pe)|0,m=m+Math.imul(le,Ae)|0,E=(E=E+Math.imul(le,Ne)|0)+Math.imul(ce,Ae)|0,B=B+Math.imul(ce,Ne)|0,m=m+Math.imul(F,Ce)|0,E=(E=E+Math.imul(F,Ie)|0)+Math.imul(ae,Ce)|0,B=B+Math.imul(ae,Ie)|0,m=m+Math.imul($,je)|0,E=(E=E+Math.imul($,Ue)|0)+Math.imul(W,je)|0,B=B+Math.imul(W,Ue)|0;var Ye=(re+(m=m+Math.imul(J,Be)|0)|0)+((8191&(E=(E=E+Math.imul(J,Je)|0)+Math.imul(ee,Be)|0))<<13)|0;re=((B=B+Math.imul(ee,Je)|0)+(E>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,m=Math.imul(Q,ue),E=(E=Math.imul(Q,fe))+Math.imul(Z,ue)|0,B=Math.imul(Z,fe),m=m+Math.imul(oe,ge)|0,E=(E=E+Math.imul(oe,be)|0)+Math.imul(K,ge)|0,B=B+Math.imul(K,be)|0,m=m+Math.imul(L,we)|0,E=(E=E+Math.imul(L,Ee)|0)+Math.imul(H,we)|0,B=B+Math.imul(H,Ee)|0,m=m+Math.imul(R,Se)|0,E=(E=E+Math.imul(R,ke)|0)+Math.imul(U,Se)|0,B=B+Math.imul(U,ke)|0,m=m+Math.imul(V,Oe)|0,E=(E=E+Math.imul(V,Pe)|0)+Math.imul(y,Oe)|0,B=B+Math.imul(y,Pe)|0,m=m+Math.imul(de,Ae)|0,E=(E=E+Math.imul(de,Ne)|0)+Math.imul(pe,Ae)|0,B=B+Math.imul(pe,Ne)|0,m=m+Math.imul(le,Ce)|0,E=(E=E+Math.imul(le,Ie)|0)+Math.imul(ce,Ce)|0,B=B+Math.imul(ce,Ie)|0,m=m+Math.imul(F,je)|0,E=(E=E+Math.imul(F,Ue)|0)+Math.imul(ae,je)|0,B=B+Math.imul(ae,Ue)|0,m=m+Math.imul($,Be)|0,E=(E=E+Math.imul($,Je)|0)+Math.imul(W,Be)|0,B=B+Math.imul(W,Je)|0;var Xe=(re+(m=m+Math.imul(J,qe)|0)|0)+((8191&(E=(E=E+Math.imul(J,Le)|0)+Math.imul(ee,qe)|0))<<13)|0;re=((B=B+Math.imul(ee,Le)|0)+(E>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(Q,ge),E=(E=Math.imul(Q,be))+Math.imul(Z,ge)|0,B=Math.imul(Z,be),m=m+Math.imul(oe,we)|0,E=(E=E+Math.imul(oe,Ee)|0)+Math.imul(K,we)|0,B=B+Math.imul(K,Ee)|0,m=m+Math.imul(L,Se)|0,E=(E=E+Math.imul(L,ke)|0)+Math.imul(H,Se)|0,B=B+Math.imul(H,ke)|0,m=m+Math.imul(R,Oe)|0,E=(E=E+Math.imul(R,Pe)|0)+Math.imul(U,Oe)|0,B=B+Math.imul(U,Pe)|0,m=m+Math.imul(V,Ae)|0,E=(E=E+Math.imul(V,Ne)|0)+Math.imul(y,Ae)|0,B=B+Math.imul(y,Ne)|0,m=m+Math.imul(de,Ce)|0,E=(E=E+Math.imul(de,Ie)|0)+Math.imul(pe,Ce)|0,B=B+Math.imul(pe,Ie)|0,m=m+Math.imul(le,je)|0,E=(E=E+Math.imul(le,Ue)|0)+Math.imul(ce,je)|0,B=B+Math.imul(ce,Ue)|0,m=m+Math.imul(F,Be)|0,E=(E=E+Math.imul(F,Je)|0)+Math.imul(ae,Be)|0,B=B+Math.imul(ae,Je)|0;var et=(re+(m=m+Math.imul($,qe)|0)|0)+((8191&(E=(E=E+Math.imul($,Le)|0)+Math.imul(W,qe)|0))<<13)|0;re=((B=B+Math.imul(W,Le)|0)+(E>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(Q,we),E=(E=Math.imul(Q,Ee))+Math.imul(Z,we)|0,B=Math.imul(Z,Ee),m=m+Math.imul(oe,Se)|0,E=(E=E+Math.imul(oe,ke)|0)+Math.imul(K,Se)|0,B=B+Math.imul(K,ke)|0,m=m+Math.imul(L,Oe)|0,E=(E=E+Math.imul(L,Pe)|0)+Math.imul(H,Oe)|0,B=B+Math.imul(H,Pe)|0,m=m+Math.imul(R,Ae)|0,E=(E=E+Math.imul(R,Ne)|0)+Math.imul(U,Ae)|0,B=B+Math.imul(U,Ne)|0,m=m+Math.imul(V,Ce)|0,E=(E=E+Math.imul(V,Ie)|0)+Math.imul(y,Ce)|0,B=B+Math.imul(y,Ie)|0,m=m+Math.imul(de,je)|0,E=(E=E+Math.imul(de,Ue)|0)+Math.imul(pe,je)|0,B=B+Math.imul(pe,Ue)|0,m=m+Math.imul(le,Be)|0,E=(E=E+Math.imul(le,Je)|0)+Math.imul(ce,Be)|0,B=B+Math.imul(ce,Je)|0;var tt=(re+(m=m+Math.imul(F,qe)|0)|0)+((8191&(E=(E=E+Math.imul(F,Le)|0)+Math.imul(ae,qe)|0))<<13)|0;re=((B=B+Math.imul(ae,Le)|0)+(E>>>13)|0)+(tt>>>26)|0,tt&=67108863,m=Math.imul(Q,Se),E=(E=Math.imul(Q,ke))+Math.imul(Z,Se)|0,B=Math.imul(Z,ke),m=m+Math.imul(oe,Oe)|0,E=(E=E+Math.imul(oe,Pe)|0)+Math.imul(K,Oe)|0,B=B+Math.imul(K,Pe)|0,m=m+Math.imul(L,Ae)|0,E=(E=E+Math.imul(L,Ne)|0)+Math.imul(H,Ae)|0,B=B+Math.imul(H,Ne)|0,m=m+Math.imul(R,Ce)|0,E=(E=E+Math.imul(R,Ie)|0)+Math.imul(U,Ce)|0,B=B+Math.imul(U,Ie)|0,m=m+Math.imul(V,je)|0,E=(E=E+Math.imul(V,Ue)|0)+Math.imul(y,je)|0,B=B+Math.imul(y,Ue)|0,m=m+Math.imul(de,Be)|0,E=(E=E+Math.imul(de,Je)|0)+Math.imul(pe,Be)|0,B=B+Math.imul(pe,Je)|0;var rt=(re+(m=m+Math.imul(le,qe)|0)|0)+((8191&(E=(E=E+Math.imul(le,Le)|0)+Math.imul(ce,qe)|0))<<13)|0;re=((B=B+Math.imul(ce,Le)|0)+(E>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(Q,Oe),E=(E=Math.imul(Q,Pe))+Math.imul(Z,Oe)|0,B=Math.imul(Z,Pe),m=m+Math.imul(oe,Ae)|0,E=(E=E+Math.imul(oe,Ne)|0)+Math.imul(K,Ae)|0,B=B+Math.imul(K,Ne)|0,m=m+Math.imul(L,Ce)|0,E=(E=E+Math.imul(L,Ie)|0)+Math.imul(H,Ce)|0,B=B+Math.imul(H,Ie)|0,m=m+Math.imul(R,je)|0,E=(E=E+Math.imul(R,Ue)|0)+Math.imul(U,je)|0,B=B+Math.imul(U,Ue)|0,m=m+Math.imul(V,Be)|0,E=(E=E+Math.imul(V,Je)|0)+Math.imul(y,Be)|0,B=B+Math.imul(y,Je)|0;var nt=(re+(m=m+Math.imul(de,qe)|0)|0)+((8191&(E=(E=E+Math.imul(de,Le)|0)+Math.imul(pe,qe)|0))<<13)|0;re=((B=B+Math.imul(pe,Le)|0)+(E>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(Q,Ae),E=(E=Math.imul(Q,Ne))+Math.imul(Z,Ae)|0,B=Math.imul(Z,Ne),m=m+Math.imul(oe,Ce)|0,E=(E=E+Math.imul(oe,Ie)|0)+Math.imul(K,Ce)|0,B=B+Math.imul(K,Ie)|0,m=m+Math.imul(L,je)|0,E=(E=E+Math.imul(L,Ue)|0)+Math.imul(H,je)|0,B=B+Math.imul(H,Ue)|0,m=m+Math.imul(R,Be)|0,E=(E=E+Math.imul(R,Je)|0)+Math.imul(U,Be)|0,B=B+Math.imul(U,Je)|0;var ot=(re+(m=m+Math.imul(V,qe)|0)|0)+((8191&(E=(E=E+Math.imul(V,Le)|0)+Math.imul(y,qe)|0))<<13)|0;re=((B=B+Math.imul(y,Le)|0)+(E>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(Q,Ce),E=(E=Math.imul(Q,Ie))+Math.imul(Z,Ce)|0,B=Math.imul(Z,Ie),m=m+Math.imul(oe,je)|0,E=(E=E+Math.imul(oe,Ue)|0)+Math.imul(K,je)|0,B=B+Math.imul(K,Ue)|0,m=m+Math.imul(L,Be)|0,E=(E=E+Math.imul(L,Je)|0)+Math.imul(H,Be)|0,B=B+Math.imul(H,Je)|0;var it=(re+(m=m+Math.imul(R,qe)|0)|0)+((8191&(E=(E=E+Math.imul(R,Le)|0)+Math.imul(U,qe)|0))<<13)|0;re=((B=B+Math.imul(U,Le)|0)+(E>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(Q,je),E=(E=Math.imul(Q,Ue))+Math.imul(Z,je)|0,B=Math.imul(Z,Ue),m=m+Math.imul(oe,Be)|0,E=(E=E+Math.imul(oe,Je)|0)+Math.imul(K,Be)|0,B=B+Math.imul(K,Je)|0;var at=(re+(m=m+Math.imul(L,qe)|0)|0)+((8191&(E=(E=E+Math.imul(L,Le)|0)+Math.imul(H,qe)|0))<<13)|0;re=((B=B+Math.imul(H,Le)|0)+(E>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(Q,Be),E=(E=Math.imul(Q,Je))+Math.imul(Z,Be)|0,B=Math.imul(Z,Je);var st=(re+(m=m+Math.imul(oe,qe)|0)|0)+((8191&(E=(E=E+Math.imul(oe,Le)|0)+Math.imul(K,qe)|0))<<13)|0;re=((B=B+Math.imul(K,Le)|0)+(E>>>13)|0)+(st>>>26)|0,st&=67108863;var ct=(re+(m=Math.imul(Q,qe))|0)+((8191&(E=(E=Math.imul(Q,Le))+Math.imul(Z,qe)|0))<<13)|0;return re=((B=Math.imul(Z,Le))+(E>>>13)|0)+(ct>>>26)|0,ct&=67108863,te[0]=We,te[1]=Ge,te[2]=He,te[3]=Ve,te[4]=$e,te[5]=Qe,te[6]=Ke,te[7]=Ze,te[8]=Ye,te[9]=Xe,te[10]=et,te[11]=tt,te[12]=rt,te[13]=nt,te[14]=ot,te[15]=it,te[16]=at,te[17]=st,te[18]=ct,re!==0&&(te[19]=re,v.length++),v};function d(x,P,v){return new h().mulp(x,P,v)}function h(x,P){this.x=x,this.y=P}Math.imul||(f=i),a.prototype.mulTo=function(x,P){var v,m=this.length+x.length;return v=this.length===10&&x.length===10?f(this,x,P):m<63?i(this,x,P):m<1024?function(E,B,T){T.negative=B.negative^E.negative,T.length=E.length+B.length;for(var q=0,te=0,re=0;re>>26)|0)>>>26,ie&=67108863}T.words[re]=J,q=ie,ie=te}return q!==0?T.words[re]=q:T.length--,T.strip()}(this,x,P):d(this,x,P),v},h.prototype.makeRBT=function(x){for(var P=new Array(x),v=a.prototype._countBits(x)-1,m=0;m>=1;return m},h.prototype.permute=function(x,P,v,m,E,B){for(var T=0;T>>=1)E++;return 1<>>=13,v[2*B+1]=8191&E,E>>>=13;for(B=2*P;B>=26,P+=m/67108864|0,P+=E>>>26,this.words[v]=67108863&E}return P!==0&&(this.words[v]=P,this.length++),this},a.prototype.muln=function(x){return this.clone().imuln(x)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(x){var P=function(B){for(var T=new Array(B.bitLength()),q=0;q>>re}return T}(x);if(P.length===0)return new a(1);for(var v=this,m=0;m=0);var P,v=x%26,m=(x-v)/26,E=67108863>>>26-v<<26-v;if(v!==0){var B=0;for(P=0;P>>26-v}B&&(this.words[P]=B,this.length++)}if(m!==0){for(P=this.length-1;P>=0;P--)this.words[P+m]=this.words[P];for(P=0;P=0),m=P?(P-P%26)/26:0;var E=x%26,B=Math.min((x-E)/26,this.length),T=67108863^67108863>>>E<B)for(this.length-=B,te=0;te=0&&(re!==0||te>=m);te--){var ie=0|this.words[te];this.words[te]=re<<26-E|ie>>>E,re=ie&T}return q&&re!==0&&(q.words[q.length++]=re),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(x,P,v){return k(this.negative===0),this.iushrn(x,P,v)},a.prototype.shln=function(x){return this.clone().ishln(x)},a.prototype.ushln=function(x){return this.clone().iushln(x)},a.prototype.shrn=function(x){return this.clone().ishrn(x)},a.prototype.ushrn=function(x){return this.clone().iushrn(x)},a.prototype.testn=function(x){k(typeof x=="number"&&x>=0);var P=x%26,v=(x-P)/26,m=1<=0);var P=x%26,v=(x-P)/26;if(k(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(P!==0&&v++,this.length=Math.min(v,this.length),P!==0){var m=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},a.prototype.isubn=function(x){if(k(typeof x=="number"),k(x<67108864),x<0)return this.iaddn(-x);if(this.negative!==0)return this.negative=0,this.iaddn(x),this.negative=1,this;if(this.words[0]-=x,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(q/67108864|0),this.words[m+v]=67108863&E}for(;m>26,this.words[m+v]=67108863&E;if(T===0)return this.strip();for(k(T===-1),T=0,m=0;m>26,this.words[m]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(x,P){var v=(this.length,x.length),m=this.clone(),E=x,B=0|E.words[E.length-1];(v=26-this._countBits(B))!=0&&(E=E.ushln(v),m.iushln(v),B=0|E.words[E.length-1]);var T,q=m.length-E.length;if(P!=="mod"){(T=new a(null)).length=q+1,T.words=new Array(T.length);for(var te=0;te=0;ie--){var J=67108864*(0|m.words[E.length+ie])+(0|m.words[E.length+ie-1]);for(J=Math.min(J/B|0,67108863),m._ishlnsubmul(E,J,ie);m.negative!==0;)J--,m.negative=0,m._ishlnsubmul(E,1,ie),m.isZero()||(m.negative^=1);T&&(T.words[ie]=J)}return T&&T.strip(),m.strip(),P!=="div"&&v!==0&&m.iushrn(v),{div:T||null,mod:m}},a.prototype.divmod=function(x,P,v){return k(!x.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&x.negative===0?(B=this.neg().divmod(x,P),P!=="mod"&&(m=B.div.neg()),P!=="div"&&(E=B.mod.neg(),v&&E.negative!==0&&E.iadd(x)),{div:m,mod:E}):this.negative===0&&x.negative!==0?(B=this.divmod(x.neg(),P),P!=="mod"&&(m=B.div.neg()),{div:m,mod:B.mod}):this.negative&x.negative?(B=this.neg().divmod(x.neg(),P),P!=="div"&&(E=B.mod.neg(),v&&E.negative!==0&&E.isub(x)),{div:B.div,mod:E}):x.length>this.length||this.cmp(x)<0?{div:new a(0),mod:this}:x.length===1?P==="div"?{div:this.divn(x.words[0]),mod:null}:P==="mod"?{div:null,mod:new a(this.modn(x.words[0]))}:{div:this.divn(x.words[0]),mod:new a(this.modn(x.words[0]))}:this._wordDiv(x,P);var m,E,B},a.prototype.div=function(x){return this.divmod(x,"div",!1).div},a.prototype.mod=function(x){return this.divmod(x,"mod",!1).mod},a.prototype.umod=function(x){return this.divmod(x,"mod",!0).mod},a.prototype.divRound=function(x){var P=this.divmod(x);if(P.mod.isZero())return P.div;var v=P.div.negative!==0?P.mod.isub(x):P.mod,m=x.ushrn(1),E=x.andln(1),B=v.cmp(m);return B<0||E===1&&B===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},a.prototype.modn=function(x){k(x<=67108863);for(var P=67108864%x,v=0,m=this.length-1;m>=0;m--)v=(P*v+(0|this.words[m]))%x;return v},a.prototype.idivn=function(x){k(x<=67108863);for(var P=0,v=this.length-1;v>=0;v--){var m=(0|this.words[v])+67108864*P;this.words[v]=m/x|0,P=m%x}return this.strip()},a.prototype.divn=function(x){return this.clone().idivn(x)},a.prototype.egcd=function(x){k(x.negative===0),k(!x.isZero());var P=this,v=x.clone();P=P.negative!==0?P.umod(x):P.clone();for(var m=new a(1),E=new a(0),B=new a(0),T=new a(1),q=0;P.isEven()&&v.isEven();)P.iushrn(1),v.iushrn(1),++q;for(var te=v.clone(),re=P.clone();!P.isZero();){for(var ie=0,J=1;!(P.words[0]&J)&&ie<26;++ie,J<<=1);if(ie>0)for(P.iushrn(ie);ie-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(te),E.isub(re)),m.iushrn(1),E.iushrn(1);for(var ee=0,G=1;!(v.words[0]&G)&&ee<26;++ee,G<<=1);if(ee>0)for(v.iushrn(ee);ee-- >0;)(B.isOdd()||T.isOdd())&&(B.iadd(te),T.isub(re)),B.iushrn(1),T.iushrn(1);P.cmp(v)>=0?(P.isub(v),m.isub(B),E.isub(T)):(v.isub(P),B.isub(m),T.isub(E))}return{a:B,b:T,gcd:v.iushln(q)}},a.prototype._invmp=function(x){k(x.negative===0),k(!x.isZero());var P=this,v=x.clone();P=P.negative!==0?P.umod(x):P.clone();for(var m,E=new a(1),B=new a(0),T=v.clone();P.cmpn(1)>0&&v.cmpn(1)>0;){for(var q=0,te=1;!(P.words[0]&te)&&q<26;++q,te<<=1);if(q>0)for(P.iushrn(q);q-- >0;)E.isOdd()&&E.iadd(T),E.iushrn(1);for(var re=0,ie=1;!(v.words[0]&ie)&&re<26;++re,ie<<=1);if(re>0)for(v.iushrn(re);re-- >0;)B.isOdd()&&B.iadd(T),B.iushrn(1);P.cmp(v)>=0?(P.isub(v),E.isub(B)):(v.isub(P),B.isub(E))}return(m=P.cmpn(1)===0?E:B).cmpn(0)<0&&m.iadd(x),m},a.prototype.gcd=function(x){if(this.isZero())return x.abs();if(x.isZero())return this.abs();var P=this.clone(),v=x.clone();P.negative=0,v.negative=0;for(var m=0;P.isEven()&&v.isEven();m++)P.iushrn(1),v.iushrn(1);for(;;){for(;P.isEven();)P.iushrn(1);for(;v.isEven();)v.iushrn(1);var E=P.cmp(v);if(E<0){var B=P;P=v,v=B}else if(E===0||v.cmpn(1)===0)break;P.isub(v)}return v.iushln(m)},a.prototype.invm=function(x){return this.egcd(x).a.umod(x)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(x){return this.words[0]&x},a.prototype.bincn=function(x){k(typeof x=="number");var P=x%26,v=(x-P)/26,m=1<>>26,T&=67108863,this.words[B]=T}return E!==0&&(this.words[B]=E,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(x){var P,v=x<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;if(this.strip(),this.length>1)P=1;else{v&&(x=-x),k(x<=67108863,"Number is too big");var m=0|this.words[0];P=m===x?0:mx.length)return 1;if(this.length=0;v--){var m=0|this.words[v],E=0|x.words[v];if(m!==E){mE&&(P=1);break}}return P},a.prototype.gtn=function(x){return this.cmpn(x)===1},a.prototype.gt=function(x){return this.cmp(x)===1},a.prototype.gten=function(x){return this.cmpn(x)>=0},a.prototype.gte=function(x){return this.cmp(x)>=0},a.prototype.ltn=function(x){return this.cmpn(x)===-1},a.prototype.lt=function(x){return this.cmp(x)===-1},a.prototype.lten=function(x){return this.cmpn(x)<=0},a.prototype.lte=function(x){return this.cmp(x)<=0},a.prototype.eqn=function(x){return this.cmpn(x)===0},a.prototype.eq=function(x){return this.cmp(x)===0},a.red=function(x){return new N(x)},a.prototype.toRed=function(x){return k(!this.red,"Already a number in reduction context"),k(this.negative===0,"red works only with positives"),x.convertTo(this)._forceRed(x)},a.prototype.fromRed=function(){return k(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(x){return this.red=x,this},a.prototype.forceRed=function(x){return k(!this.red,"Already a number in reduction context"),this._forceRed(x)},a.prototype.redAdd=function(x){return k(this.red,"redAdd works only with red numbers"),this.red.add(this,x)},a.prototype.redIAdd=function(x){return k(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,x)},a.prototype.redSub=function(x){return k(this.red,"redSub works only with red numbers"),this.red.sub(this,x)},a.prototype.redISub=function(x){return k(this.red,"redISub works only with red numbers"),this.red.isub(this,x)},a.prototype.redShl=function(x){return k(this.red,"redShl works only with red numbers"),this.red.shl(this,x)},a.prototype.redMul=function(x){return k(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.mul(this,x)},a.prototype.redIMul=function(x){return k(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.imul(this,x)},a.prototype.redSqr=function(){return k(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return k(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return k(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return k(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return k(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(x){return k(this.red&&!x.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,x)};var _={k256:null,p224:null,p192:null,p25519:null};function b(x,P){this.name=x,this.p=new a(P,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function I(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function l(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(x){if(typeof x=="string"){var P=a._prime(x);this.m=P.p,this.prime=P}else k(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function C(x){N.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}b.prototype._tmp=function(){var x=new a(null);return x.words=new Array(Math.ceil(this.n/13)),x},b.prototype.ireduce=function(x){var P,v=x;do this.split(v,this.tmp),P=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength();while(P>this.n);var m=P0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},b.prototype.split=function(x,P){x.iushrn(this.n,0,P)},b.prototype.imulK=function(x){return x.imul(this.k)},S(I,b),I.prototype.split=function(x,P){for(var v=4194303,m=Math.min(x.length,9),E=0;E>>22,B=T}B>>>=22,x.words[E-10]=B,B===0&&x.length>10?x.length-=10:x.length-=9},I.prototype.imulK=function(x){x.words[x.length]=0,x.words[x.length+1]=0,x.length+=2;for(var P=0,v=0;v>>=26,x.words[v]=E,P=m}return P!==0&&(x.words[x.length++]=P),x},a._prime=function(x){if(_[x])return _[x];var P;if(x==="k256")P=new I;else if(x==="p224")P=new l;else if(x==="p192")P=new j;else{if(x!=="p25519")throw new Error("Unknown prime "+x);P=new M}return _[x]=P,P},N.prototype._verify1=function(x){k(x.negative===0,"red works only with positives"),k(x.red,"red works only with red numbers")},N.prototype._verify2=function(x,P){k((x.negative|P.negative)==0,"red works only with positives"),k(x.red&&x.red===P.red,"red works only with red numbers")},N.prototype.imod=function(x){return this.prime?this.prime.ireduce(x)._forceRed(this):x.umod(this.m)._forceRed(this)},N.prototype.neg=function(x){return x.isZero()?x.clone():this.m.sub(x)._forceRed(this)},N.prototype.add=function(x,P){this._verify2(x,P);var v=x.add(P);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},N.prototype.iadd=function(x,P){this._verify2(x,P);var v=x.iadd(P);return v.cmp(this.m)>=0&&v.isub(this.m),v},N.prototype.sub=function(x,P){this._verify2(x,P);var v=x.sub(P);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},N.prototype.isub=function(x,P){this._verify2(x,P);var v=x.isub(P);return v.cmpn(0)<0&&v.iadd(this.m),v},N.prototype.shl=function(x,P){return this._verify1(x),this.imod(x.ushln(P))},N.prototype.imul=function(x,P){return this._verify2(x,P),this.imod(x.imul(P))},N.prototype.mul=function(x,P){return this._verify2(x,P),this.imod(x.mul(P))},N.prototype.isqr=function(x){return this.imul(x,x.clone())},N.prototype.sqr=function(x){return this.mul(x,x)},N.prototype.sqrt=function(x){if(x.isZero())return x.clone();var P=this.m.andln(3);if(k(P%2==1),P===3){var v=this.m.add(new a(1)).iushrn(2);return this.pow(x,v)}for(var m=this.m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);k(!m.isZero());var B=new a(1).toRed(this),T=B.redNeg(),q=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new a(2*te*te).toRed(this);this.pow(te,q).cmp(T)!==0;)te.redIAdd(T);for(var re=this.pow(te,m),ie=this.pow(x,m.addn(1).iushrn(1)),J=this.pow(x,m),ee=E;J.cmp(B)!==0;){for(var G=J,$=0;G.cmp(B)!==0;$++)G=G.redSqr();k($=0;m--){for(var te=P.words[m],re=q-1;re>=0;re--){var ie=te>>re&1;E!==v[0]&&(E=this.sqr(E)),ie!==0||B!==0?(B<<=1,B|=ie,(++T==4||m===0&&re===0)&&(E=this.mul(E,v[B]),T=0,B=0)):T=0}q=26}return E},N.prototype.convertTo=function(x){var P=x.umod(this.m);return P===x?P.clone():P},N.prototype.convertFrom=function(x){var P=x.clone();return P.red=null,P},a.mont=function(x){return new C(x)},S(C,N),C.prototype.convertTo=function(x){return this.imod(x.ushln(this.shift))},C.prototype.convertFrom=function(x){var P=this.imod(x.mul(this.rinv));return P.red=null,P},C.prototype.imul=function(x,P){if(x.isZero()||P.isZero())return x.words[0]=0,x.length=1,x;var v=x.imul(P),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=v.isub(m).iushrn(this.shift),B=E;return E.cmp(this.m)>=0?B=E.isub(this.m):E.cmpn(0)<0&&(B=E.iadd(this.m)),B._forceRed(this)},C.prototype.mul=function(x,P){if(x.isZero()||P.isZero())return new a(0)._forceRed(this);var v=x.mul(P),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=v.isub(m).iushrn(this.shift),B=E;return E.cmp(this.m)>=0?B=E.isub(this.m):E.cmpn(0)<0&&(B=E.iadd(this.m)),B._forceRed(this)},C.prototype.invm=function(x){return this.imod(x._invmp(this.m).mul(this.r2))._forceRed(this)}})(D=p.nmd(D),this)},9931:(D,e,p)=>{var w;function O(S){this.rand=S}if(D.exports=function(S){return w||(w=new O(null)),w.generate(S)},D.exports.Rand=O,O.prototype.generate=function(S){return this._rand(S)},O.prototype._rand=function(S){if(this.rand.getBytes)return this.rand.getBytes(S);for(var a=new Uint8Array(S),t=0;t{var w=p(2338);D.exports=w("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},3310:(D,e,p)=>{var w=p(7191),O=p(9509).Buffer;D.exports=function(k){function S(a){var t=a.slice(0,-4),c=a.slice(-4),u=k(t);if(!(c[0]^u[0]|c[1]^u[1]|c[2]^u[2]|c[3]^u[3]))return t}return{encode:function(a){var t=k(a);return w.encode(O.concat([a,t],a.length+4))},decode:function(a){var t=S(w.decode(a));if(!t)throw new Error("Invalid checksum");return t},decodeUnsafe:function(a){var t=w.decodeUnsafe(a);if(t)return S(t)}}}},8334:(D,e,p)=>{var w=p(3482),O=p(3310);D.exports=O(function(k){var S=w("sha256").update(k).digest();return w("sha256").update(S).digest()})},8764:(D,e,p)=>{var w=p(5108);const O=p(9742),k=p(645),S=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(A){return+A!=A&&(A=0),c.alloc(+A)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function t(A){if(A>a)throw new RangeError('The value "'+A+'" is invalid for option "size"');const R=new Uint8Array(A);return Object.setPrototypeOf(R,c.prototype),R}function c(A,R,U){if(typeof A=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r(A)}return u(A,R,U)}function u(A,R,U){if(typeof A=="string")return function(H,ne){if(typeof ne=="string"&&ne!==""||(ne="utf8"),!c.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);const oe=0|f(H,ne);let K=t(oe);const X=K.write(H,ne);return X!==oe&&(K=K.slice(0,X)),K}(A,R);if(ArrayBuffer.isView(A))return function(H){if(de(H,Uint8Array)){const ne=new Uint8Array(H);return o(ne.buffer,ne.byteOffset,ne.byteLength)}return n(H)}(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(de(A,ArrayBuffer)||A&&de(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(A,SharedArrayBuffer)||A&&de(A.buffer,SharedArrayBuffer)))return o(A,R,U);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const z=A.valueOf&&A.valueOf();if(z!=null&&z!==A)return c.from(z,R,U);const L=function(H){if(c.isBuffer(H)){const ne=0|i(H.length),oe=t(ne);return oe.length===0||H.copy(oe,0,0,ne),oe}return H.length!==void 0?typeof H.length!="number"||pe(H.length)?t(0):n(H):H.type==="Buffer"&&Array.isArray(H.data)?n(H.data):void 0}(A);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return c.from(A[Symbol.toPrimitive]("string"),R,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function s(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function r(A){return s(A),t(A<0?0:0|i(A))}function n(A){const R=A.length<0?0:0|i(A.length),U=t(R);for(let z=0;z=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|A}function f(A,R){if(c.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||de(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);const U=A.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&U===0)return 0;let L=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return le(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return ce(A).length;default:if(L)return z?-1:le(A).length;R=(""+R).toLowerCase(),L=!0}}function d(A,R,U){let z=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(R>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return E(this,R,U);case"utf8":case"utf-8":return x(this,R,U);case"ascii":return v(this,R,U);case"latin1":case"binary":return m(this,R,U);case"base64":return C(this,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,R,U);default:if(z)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),z=!0}}function h(A,R,U){const z=A[R];A[R]=A[U],A[U]=z}function _(A,R,U,z,L){if(A.length===0)return-1;if(typeof U=="string"?(z=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),pe(U=+U)&&(U=L?0:A.length-1),U<0&&(U=A.length+U),U>=A.length){if(L)return-1;U=A.length-1}else if(U<0){if(!L)return-1;U=0}if(typeof R=="string"&&(R=c.from(R,z)),c.isBuffer(R))return R.length===0?-1:b(A,R,U,z,L);if(typeof R=="number")return R&=255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(A,R,U):Uint8Array.prototype.lastIndexOf.call(A,R,U):b(A,[R],U,z,L);throw new TypeError("val must be string, number or Buffer")}function b(A,R,U,z,L){let H,ne=1,oe=A.length,K=R.length;if(z!==void 0&&((z=String(z).toLowerCase())==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(A.length<2||R.length<2)return-1;ne=2,oe/=2,K/=2,U/=2}function X(Q,Z){return ne===1?Q[Z]:Q.readUInt16BE(Z*ne)}if(L){let Q=-1;for(H=U;Hoe&&(U=oe-K),H=U;H>=0;H--){let Q=!0;for(let Z=0;ZL&&(z=L):z=L;const H=R.length;let ne;for(z>H/2&&(z=H/2),ne=0;ne>8,K=ne%256,X.push(K),X.push(oe);return X}(R,A.length-U),A,U,z)}function C(A,R,U){return R===0&&U===A.length?O.fromByteArray(A):O.fromByteArray(A.slice(R,U))}function x(A,R,U){U=Math.min(A.length,U);const z=[];let L=R;for(;L239?4:H>223?3:H>191?2:1;if(L+oe<=U){let K,X,Q,Z;switch(oe){case 1:H<128&&(ne=H);break;case 2:K=A[L+1],(192&K)==128&&(Z=(31&H)<<6|63&K,Z>127&&(ne=Z));break;case 3:K=A[L+1],X=A[L+2],(192&K)==128&&(192&X)==128&&(Z=(15&H)<<12|(63&K)<<6|63&X,Z>2047&&(Z<55296||Z>57343)&&(ne=Z));break;case 4:K=A[L+1],X=A[L+2],Q=A[L+3],(192&K)==128&&(192&X)==128&&(192&Q)==128&&(Z=(15&H)<<18|(63&K)<<12|(63&X)<<6|63&Q,Z>65535&&Z<1114112&&(ne=Z))}}ne===null?(ne=65533,oe=1):ne>65535&&(ne-=65536,z.push(ne>>>10&1023|55296),ne=56320|1023&ne),z.push(ne),L+=oe}return function(H){const ne=H.length;if(ne<=P)return String.fromCharCode.apply(String,H);let oe="",K=0;for(;Kz.length?(c.isBuffer(H)||(H=c.from(H)),H.copy(z,L)):Uint8Array.prototype.set.call(z,H,L);else{if(!c.isBuffer(H))throw new TypeError('"list" argument must be an Array of Buffers');H.copy(z,L)}L+=H.length}return z},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;RR&&(A+=" ... "),""},S&&(c.prototype[S]=c.prototype.inspect),c.prototype.compare=function(A,R,U,z,L){if(de(A,Uint8Array)&&(A=c.from(A,A.offset,A.byteLength)),!c.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(R===void 0&&(R=0),U===void 0&&(U=A?A.length:0),z===void 0&&(z=0),L===void 0&&(L=this.length),R<0||U>A.length||z<0||L>this.length)throw new RangeError("out of range index");if(z>=L&&R>=U)return 0;if(z>=L)return-1;if(R>=U)return 1;if(this===A)return 0;let H=(L>>>=0)-(z>>>=0),ne=(U>>>=0)-(R>>>=0);const oe=Math.min(H,ne),K=this.slice(z,L),X=A.slice(R,U);for(let Q=0;Q>>=0,isFinite(U)?(U>>>=0,z===void 0&&(z="utf8")):(z=U,U=void 0)}const L=this.length-R;if((U===void 0||U>L)&&(U=L),A.length>0&&(U<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let H=!1;for(;;)switch(z){case"hex":return I(this,A,R,U);case"utf8":case"utf-8":return l(this,A,R,U);case"ascii":case"latin1":case"binary":return j(this,A,R,U);case"base64":return M(this,A,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,A,R,U);default:if(H)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),H=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function v(A,R,U){let z="";U=Math.min(A.length,U);for(let L=R;Lz)&&(U=z);let L="";for(let H=R;HU)throw new RangeError("Trying to access beyond buffer length")}function q(A,R,U,z,L,H){if(!c.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>L||RA.length)throw new RangeError("Index out of range")}function te(A,R,U,z,L){Y(R,z,L,A,U,7);let H=Number(R&BigInt(4294967295));A[U++]=H,H>>=8,A[U++]=H,H>>=8,A[U++]=H,H>>=8,A[U++]=H;let ne=Number(R>>BigInt(32)&BigInt(4294967295));return A[U++]=ne,ne>>=8,A[U++]=ne,ne>>=8,A[U++]=ne,ne>>=8,A[U++]=ne,U}function re(A,R,U,z,L){Y(R,z,L,A,U,7);let H=Number(R&BigInt(4294967295));A[U+7]=H,H>>=8,A[U+6]=H,H>>=8,A[U+5]=H,H>>=8,A[U+4]=H;let ne=Number(R>>BigInt(32)&BigInt(4294967295));return A[U+3]=ne,ne>>=8,A[U+2]=ne,ne>>=8,A[U+1]=ne,ne>>=8,A[U]=ne,U+8}function ie(A,R,U,z,L,H){if(U+z>A.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function J(A,R,U,z,L){return R=+R,U>>>=0,L||ie(A,0,U,4),k.write(A,R,U,z,23,4),U+4}function ee(A,R,U,z,L){return R=+R,U>>>=0,L||ie(A,0,U,8),k.write(A,R,U,z,52,8),U+8}c.prototype.slice=function(A,R){const U=this.length;(A=~~A)<0?(A+=U)<0&&(A=0):A>U&&(A=U),(R=R===void 0?U:~~R)<0?(R+=U)<0&&(R=0):R>U&&(R=U),R>>=0,R>>>=0,U||T(A,R,this.length);let z=this[A],L=1,H=0;for(;++H>>=0,R>>>=0,U||T(A,R,this.length);let z=this[A+--R],L=1;for(;R>0&&(L*=256);)z+=this[A+--R]*L;return z},c.prototype.readUint8=c.prototype.readUInt8=function(A,R){return A>>>=0,R||T(A,1,this.length),this[A]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(A,R){return A>>>=0,R||T(A,2,this.length),this[A]|this[A+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(A,R){return A>>>=0,R||T(A,2,this.length),this[A]<<8|this[A+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(A,R){return A>>>=0,R||T(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(A,R){return A>>>=0,R||T(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},c.prototype.readBigUInt64LE=V(function(A){F(A>>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=R+256*this[++A]+65536*this[++A]+this[++A]*2**24,L=this[++A]+256*this[++A]+65536*this[++A]+U*2**24;return BigInt(z)+(BigInt(L)<>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=R*2**24+65536*this[++A]+256*this[++A]+this[++A],L=this[++A]*2**24+65536*this[++A]+256*this[++A]+U;return(BigInt(z)<>>=0,R>>>=0,U||T(A,R,this.length);let z=this[A],L=1,H=0;for(;++H=L&&(z-=Math.pow(2,8*R)),z},c.prototype.readIntBE=function(A,R,U){A>>>=0,R>>>=0,U||T(A,R,this.length);let z=R,L=1,H=this[A+--z];for(;z>0&&(L*=256);)H+=this[A+--z]*L;return L*=128,H>=L&&(H-=Math.pow(2,8*R)),H},c.prototype.readInt8=function(A,R){return A>>>=0,R||T(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},c.prototype.readInt16LE=function(A,R){A>>>=0,R||T(A,2,this.length);const U=this[A]|this[A+1]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt16BE=function(A,R){A>>>=0,R||T(A,2,this.length);const U=this[A+1]|this[A]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt32LE=function(A,R){return A>>>=0,R||T(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},c.prototype.readInt32BE=function(A,R){return A>>>=0,R||T(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},c.prototype.readBigInt64LE=V(function(A){F(A>>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=this[A+4]+256*this[A+5]+65536*this[A+6]+(U<<24);return(BigInt(z)<>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=(R<<24)+65536*this[++A]+256*this[++A]+this[++A];return(BigInt(z)<>>=0,R||T(A,4,this.length),k.read(this,A,!0,23,4)},c.prototype.readFloatBE=function(A,R){return A>>>=0,R||T(A,4,this.length),k.read(this,A,!1,23,4)},c.prototype.readDoubleLE=function(A,R){return A>>>=0,R||T(A,8,this.length),k.read(this,A,!0,52,8)},c.prototype.readDoubleBE=function(A,R){return A>>>=0,R||T(A,8,this.length),k.read(this,A,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(A,R,U,z){A=+A,R>>>=0,U>>>=0,z||q(this,A,R,U,Math.pow(2,8*U)-1,0);let L=1,H=0;for(this[R]=255&A;++H>>=0,U>>>=0,z||q(this,A,R,U,Math.pow(2,8*U)-1,0);let L=U-1,H=1;for(this[R+L]=255&A;--L>=0&&(H*=256);)this[R+L]=A/H&255;return R+U},c.prototype.writeUint8=c.prototype.writeUInt8=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,1,255,0),this[R]=255&A,R+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,65535,0),this[R]=255&A,this[R+1]=A>>>8,R+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,65535,0),this[R]=A>>>8,this[R+1]=255&A,R+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,4294967295,0),this[R+3]=A>>>24,this[R+2]=A>>>16,this[R+1]=A>>>8,this[R]=255&A,R+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,4294967295,0),this[R]=A>>>24,this[R+1]=A>>>16,this[R+2]=A>>>8,this[R+3]=255&A,R+4},c.prototype.writeBigUInt64LE=V(function(A,R=0){return te(this,A,R,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=V(function(A,R=0){return re(this,A,R,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(A,R,U,z){if(A=+A,R>>>=0,!z){const oe=Math.pow(2,8*U-1);q(this,A,R,U,oe-1,-oe)}let L=0,H=1,ne=0;for(this[R]=255&A;++L>0)-ne&255;return R+U},c.prototype.writeIntBE=function(A,R,U,z){if(A=+A,R>>>=0,!z){const oe=Math.pow(2,8*U-1);q(this,A,R,U,oe-1,-oe)}let L=U-1,H=1,ne=0;for(this[R+L]=255&A;--L>=0&&(H*=256);)A<0&&ne===0&&this[R+L+1]!==0&&(ne=1),this[R+L]=(A/H>>0)-ne&255;return R+U},c.prototype.writeInt8=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,1,127,-128),A<0&&(A=255+A+1),this[R]=255&A,R+1},c.prototype.writeInt16LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,32767,-32768),this[R]=255&A,this[R+1]=A>>>8,R+2},c.prototype.writeInt16BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,32767,-32768),this[R]=A>>>8,this[R+1]=255&A,R+2},c.prototype.writeInt32LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,2147483647,-2147483648),this[R]=255&A,this[R+1]=A>>>8,this[R+2]=A>>>16,this[R+3]=A>>>24,R+4},c.prototype.writeInt32BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[R]=A>>>24,this[R+1]=A>>>16,this[R+2]=A>>>8,this[R+3]=255&A,R+4},c.prototype.writeBigInt64LE=V(function(A,R=0){return te(this,A,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=V(function(A,R=0){return re(this,A,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(A,R,U){return J(this,A,R,!0,U)},c.prototype.writeFloatBE=function(A,R,U){return J(this,A,R,!1,U)},c.prototype.writeDoubleLE=function(A,R,U){return ee(this,A,R,!0,U)},c.prototype.writeDoubleBE=function(A,R,U){return ee(this,A,R,!1,U)},c.prototype.copy=function(A,R,U,z){if(!c.isBuffer(A))throw new TypeError("argument should be a Buffer");if(U||(U=0),z||z===0||(z=this.length),R>=A.length&&(R=A.length),R||(R=0),z>0&&z=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),A.length-R>>=0,U=U===void 0?this.length:U>>>0,A||(A=0),typeof A=="number")for(L=R;L=z+4;U-=3)R=`_${A.slice(U-3,U)}${R}`;return`${A.slice(0,U)}${R}`}function Y(A,R,U,z,L,H){if(A>U||A3?R===0||R===BigInt(0)?`>= 0${ne} and < 2${ne} ** ${8*(H+1)}${ne}`:`>= -(2${ne} ** ${8*(H+1)-1}${ne}) and < 2 ** ${8*(H+1)-1}${ne}`:`>= ${R}${ne} and <= ${U}${ne}`,new G.ERR_OUT_OF_RANGE("value",oe,A)}(function(ne,oe,K){F(oe,"offset"),ne[oe]!==void 0&&ne[oe+K]!==void 0||ae(oe,ne.length-(K+1))})(z,L,H)}function F(A,R){if(typeof A!="number")throw new G.ERR_INVALID_ARG_TYPE(R,"number",A)}function ae(A,R,U){throw Math.floor(A)!==A?(F(A,U),new G.ERR_OUT_OF_RANGE(U||"offset","an integer",A)):R<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE(U||"offset",`>= ${U?1:0} and <= ${R}`,A)}$("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),$("ERR_INVALID_ARG_TYPE",function(A,R){return`The "${A}" argument must be of type number. Received type ${typeof R}`},TypeError),$("ERR_OUT_OF_RANGE",function(A,R,U){let z=`The value of "${A}" is out of range.`,L=U;return Number.isInteger(U)&&Math.abs(U)>4294967296?L=W(String(U)):typeof U=="bigint"&&(L=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(L=W(L)),L+="n"),z+=` It must be ${R}. Received ${L}`,z},RangeError);const he=/[^+/0-9A-Za-z-_]/g;function le(A,R){let U;R=R||1/0;const z=A.length;let L=null;const H=[];for(let ne=0;ne55295&&U<57344){if(!L){if(U>56319){(R-=3)>-1&&H.push(239,191,189);continue}if(ne+1===z){(R-=3)>-1&&H.push(239,191,189);continue}L=U;continue}if(U<56320){(R-=3)>-1&&H.push(239,191,189),L=U;continue}U=65536+(L-55296<<10|U-56320)}else L&&(R-=3)>-1&&H.push(239,191,189);if(L=null,U<128){if((R-=1)<0)break;H.push(U)}else if(U<2048){if((R-=2)<0)break;H.push(U>>6|192,63&U|128)}else if(U<65536){if((R-=3)<0)break;H.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;H.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return H}function ce(A){return O.toByteArray(function(R){if((R=(R=R.split("=")[0]).trim().replace(he,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(A))}function ve(A,R,U,z){let L;for(L=0;L=R.length||L>=A.length);++L)R[L+U]=A[L];return L}function de(A,R){return A instanceof R||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===R.name}function pe(A){return A!=A}const ye=function(){const A="0123456789abcdef",R=new Array(256);for(let U=0;U<16;++U){const z=16*U;for(let L=0;L<16;++L)R[z+L]=A[U]+A[L]}return R}();function V(A){return typeof BigInt>"u"?y:A}function y(){throw new Error("BigInt not supported")}},1924:(D,e,p)=>{var w=p(210),O=p(5559),k=O(w("String.prototype.indexOf"));D.exports=function(S,a){var t=w(S,!!a);return typeof t=="function"&&k(S,".prototype.")>-1?O(t):t}},5559:(D,e,p)=>{var w=p(8612),O=p(210),k=O("%Function.prototype.apply%"),S=O("%Function.prototype.call%"),a=O("%Reflect.apply%",!0)||w.call(S,k),t=O("%Object.getOwnPropertyDescriptor%",!0),c=O("%Object.defineProperty%",!0),u=O("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}D.exports=function(r){var n=a(w,S,arguments);return t&&c&&t(n,"length").configurable&&c(n,"length",{value:1+u(0,r.length-(arguments.length-1))}),n};var s=function(){return a(w,k,arguments)};c?c(D.exports,"apply",{value:s}):D.exports.apply=s},1027:(D,e,p)=>{var w=p(9509).Buffer,O=p(2830).Transform,k=p(2553).s;function S(a){O.call(this),this.hashMode=typeof a=="string",this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(5717)(S,O),S.prototype.update=function(a,t,c){typeof a=="string"&&(a=w.from(a,t));var u=this._update(a);return this.hashMode?this:(c&&(u=this._toString(u,c)),u)},S.prototype.setAutoPadding=function(){},S.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},S.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},S.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},S.prototype._transform=function(a,t,c){var u;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(s){u=s}finally{c(u)}},S.prototype._flush=function(a){var t;try{this.push(this.__final())}catch(c){t=c}a(t)},S.prototype._finalOrDigest=function(a){var t=this.__final()||w.alloc(0);return a&&(t=this._toString(t,a,!0)),t},S.prototype._toString=function(a,t,c){if(this._decoder||(this._decoder=new k(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var u=this._decoder.write(a);return c&&(u+=this._decoder.end()),u},D.exports=S},5108:(D,e,p)=>{var w=p(9539),O=p(9282);function k(){return new Date().getTime()}var S,a=Array.prototype.slice,t={};S=p.g!==void 0&&p.g.console?p.g.console:typeof window<"u"&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){S.log.apply(S,arguments)},"info"],[function(){S.log.apply(S,arguments)},"warn"],[function(){S.warn.apply(S,arguments)},"error"],[function(o){t[o]=k()},"time"],[function(o){var i=t[o];if(!i)throw new Error("No such label: "+o);delete t[o];var f=k()-i;S.log(o+": "+f+"ms")},"timeEnd"],[function(){var o=new Error;o.name="Trace",o.message=w.format.apply(null,arguments),S.error(o.stack)},"trace"],[function(o){S.log(w.inspect(o)+` -`)},"dir"],[function(o){if(!o){var i=a.call(arguments,1);O.ok(!1,w.format.apply(null,i))}},"assert"]],u=0;u{var w=p(5717),O=p(2318),k=p(9785),S=p(9072),a=p(1027);function t(c){a.call(this,"digest"),this._hash=c}w(t,a),t.prototype._update=function(c){this._hash.update(c)},t.prototype._final=function(){return this._hash.digest()},D.exports=function(c){return(c=c.toLowerCase())==="md5"?new O:c==="rmd160"||c==="ripemd160"?new k:new t(S(c))}},8028:(D,e,p)=>{var w=p(2318);D.exports=function(O){return new w().update(O).digest()}},8355:(D,e,p)=>{var w=p(5717),O=p(1031),k=p(1027),S=p(9509).Buffer,a=p(8028),t=p(9785),c=p(9072),u=S.alloc(128);function s(r,n){k.call(this,"digest"),typeof n=="string"&&(n=S.from(n));var o=r==="sha512"||r==="sha384"?128:64;this._alg=r,this._key=n,n.length>o?n=(r==="rmd160"?new t:c(r)).update(n).digest():n.length{var w=p(5717),O=p(9509).Buffer,k=p(1027),S=O.alloc(128),a=64;function t(c,u){k.call(this,"digest"),typeof u=="string"&&(u=O.from(u)),this._alg=c,this._key=u,u.length>a?u=c(u):u.length-1};function o(v){if(typeof v!="string"&&(v=String(v)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(v))throw new TypeError("Invalid character in header field name");return v.toLowerCase()}function i(v){return typeof v!="string"&&(v=String(v)),v}function f(v){var m={next:function(){var E=v.shift();return{done:E===void 0,value:E}}};return t&&(m[Symbol.iterator]=function(){return m}),m}function d(v){this.map={},v instanceof d?v.forEach(function(m,E){this.append(E,m)},this):Array.isArray(v)?v.forEach(function(m){this.append(m[0],m[1])},this):v&&Object.getOwnPropertyNames(v).forEach(function(m){this.append(m,v[m])},this)}function h(v){if(v.bodyUsed)return Promise.reject(new TypeError("Already read"));v.bodyUsed=!0}function _(v){return new Promise(function(m,E){v.onload=function(){m(v.result)},v.onerror=function(){E(v.error)}})}function b(v){var m=new FileReader,E=_(m);return m.readAsArrayBuffer(v),E}function I(v){if(v.slice)return v.slice(0);var m=new Uint8Array(v.byteLength);return m.set(new Uint8Array(v)),m.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(v){var m;this._bodyInit=v,v?typeof v=="string"?this._bodyText=v:c&&Blob.prototype.isPrototypeOf(v)?this._bodyBlob=v:u&&FormData.prototype.isPrototypeOf(v)?this._bodyFormData=v:a&&URLSearchParams.prototype.isPrototypeOf(v)?this._bodyText=v.toString():s&&c&&(m=v)&&DataView.prototype.isPrototypeOf(m)?(this._bodyArrayBuffer=I(v.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(v)||n(v))?this._bodyArrayBuffer=I(v):this._bodyText=v=Object.prototype.toString.call(v):this._bodyText="",this.headers.get("content-type")||(typeof v=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a&&URLSearchParams.prototype.isPrototypeOf(v)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var v=h(this);if(v)return v;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var v,m,E,B=h(this);if(B)return B;if(this._bodyBlob)return v=this._bodyBlob,E=_(m=new FileReader),m.readAsText(v),E;if(this._bodyArrayBuffer)return Promise.resolve(function(T){for(var q=new Uint8Array(T),te=new Array(q.length),re=0;re-1?B:E),this.mode=m.mode||this.mode||null,this.signal=m.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(T)}function N(v){var m=new FormData;return v.trim().split("&").forEach(function(E){if(E){var B=E.split("="),T=B.shift().replace(/\+/g," "),q=B.join("=").replace(/\+/g," ");m.append(decodeURIComponent(T),decodeURIComponent(q))}}),m}function C(v,m){m||(m={}),this.type="default",this.status=m.status===void 0?200:m.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in m?m.statusText:"OK",this.headers=new d(m.headers),this.url=m.url||"",this._initBody(v)}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})},l.call(M.prototype),l.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},C.error=function(){var v=new C(null,{status:0,statusText:""});return v.type="error",v};var x=[301,302,303,307,308];C.redirect=function(v,m){if(x.indexOf(m)===-1)throw new RangeError("Invalid status code");return new C(null,{status:m,headers:{location:v}})},S.DOMException=k.DOMException;try{new S.DOMException}catch{S.DOMException=function(m,E){this.message=m,this.name=E;var B=Error(m);this.stack=B.stack},S.DOMException.prototype=Object.create(Error.prototype),S.DOMException.prototype.constructor=S.DOMException}function P(v,m){return new Promise(function(E,B){var T=new M(v,m);if(T.signal&&T.signal.aborted)return B(new S.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function te(){q.abort()}q.onload=function(){var re,ie,J={status:q.status,statusText:q.statusText,headers:(re=q.getAllResponseHeaders()||"",ie=new d,re.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(G){var $=G.split(":"),W=$.shift().trim();if(W){var Y=$.join(":").trim();ie.append(W,Y)}}),ie)};J.url="responseURL"in q?q.responseURL:J.headers.get("X-Request-URL");var ee="response"in q?q.response:q.responseText;E(new C(ee,J))},q.onerror=function(){B(new TypeError("Network request failed"))},q.ontimeout=function(){B(new TypeError("Network request failed"))},q.onabort=function(){B(new S.DOMException("Aborted","AbortError"))},q.open(T.method,T.url,!0),T.credentials==="include"?q.withCredentials=!0:T.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&c&&(q.responseType="blob"),T.headers.forEach(function(re,ie){q.setRequestHeader(ie,re)}),T.signal&&(T.signal.addEventListener("abort",te),q.onreadystatechange=function(){q.readyState===4&&T.signal.removeEventListener("abort",te)}),q.send(T._bodyInit===void 0?null:T._bodyInit)})}P.polyfill=!0,k.fetch||(k.fetch=P,k.Headers=d,k.Request=M,k.Response=C),S.Headers=d,S.Request=M,S.Response=C,S.fetch=P,Object.defineProperty(S,"__esModule",{value:!0})})({})})(w),w.fetch.ponyfill=!0,delete w.fetch.polyfill;var O=w;(e=O.fetch).default=O.fetch,e.fetch=O.fetch,e.Headers=O.Headers,e.Request=O.Request,e.Response=O.Response,D.exports=e},4063:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0});let p=new Uint8Array(32);function w($){var W,Y=new Float64Array(16);if($)for(W=0;W<$.length;W++)Y[W]=$[W];return Y}p[0]=9;const O=w(),k=w([1]),S=w([56129,1]),a=w([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),t=w([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),c=w([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),u=w([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),s=w([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function r($,W,Y,F){$[W]=Y>>24&255,$[W+1]=Y>>16&255,$[W+2]=Y>>8&255,$[W+3]=255&Y,$[W+4]=F>>24&255,$[W+5]=F>>16&255,$[W+6]=F>>8&255,$[W+7]=255&F}function n($,W,Y,F){return function(ae,he,le,ce,ve){var de,pe=0;for(de=0;de<32;de++)pe|=ae[he+de]^le[ce+de];return(1&pe-1>>>8)-1}($,W,Y,F)}function o($,W){var Y;for(Y=0;Y<16;Y++)$[Y]=0|W[Y]}function i($){var W,Y,F=1;for(W=0;W<16;W++)Y=$[W]+F+65535,F=Math.floor(Y/65536),$[W]=Y-65536*F;$[0]+=F-1+37*(F-1)}function f($,W,Y){for(var F,ae=~(Y-1),he=0;he<16;he++)F=ae&($[he]^W[he]),$[he]^=F,W[he]^=F}function d($,W){var Y,F,ae,he=w(),le=w();for(Y=0;Y<16;Y++)le[Y]=W[Y];for(i(le),i(le),i(le),F=0;F<2;F++){for(he[0]=le[0]-65517,Y=1;Y<15;Y++)he[Y]=le[Y]-65535-(he[Y-1]>>16&1),he[Y-1]&=65535;he[15]=le[15]-32767-(he[14]>>16&1),ae=he[15]>>16&1,he[14]&=65535,f(le,he,1-ae)}for(Y=0;Y<16;Y++)$[2*Y]=255&le[Y],$[2*Y+1]=le[Y]>>8}function h($,W){var Y=new Uint8Array(32),F=new Uint8Array(32);return d(Y,$),d(F,W),n(Y,0,F,0)}function _($){var W=new Uint8Array(32);return d(W,$),1&W[0]}function b($,W){var Y;for(Y=0;Y<16;Y++)$[Y]=W[2*Y]+(W[2*Y+1]<<8);$[15]&=32767}function I($,W,Y){for(var F=0;F<16;F++)$[F]=W[F]+Y[F]}function l($,W,Y){for(var F=0;F<16;F++)$[F]=W[F]-Y[F]}function j($,W,Y){var F,ae,he=0,le=0,ce=0,ve=0,de=0,pe=0,ye=0,V=0,y=0,A=0,R=0,U=0,z=0,L=0,H=0,ne=0,oe=0,K=0,X=0,Q=0,Z=0,se=0,ue=0,fe=0,me=0,ge=0,be=0,_e=0,we=0,Ee=0,xe=0,Se=Y[0],ke=Y[1],Re=Y[2],Oe=Y[3],Pe=Y[4],Me=Y[5],Ae=Y[6],Ne=Y[7],Te=Y[8],Ce=Y[9],Ie=Y[10],De=Y[11],je=Y[12],Ue=Y[13],ze=Y[14],Be=Y[15];he+=(F=W[0])*Se,le+=F*ke,ce+=F*Re,ve+=F*Oe,de+=F*Pe,pe+=F*Me,ye+=F*Ae,V+=F*Ne,y+=F*Te,A+=F*Ce,R+=F*Ie,U+=F*De,z+=F*je,L+=F*Ue,H+=F*ze,ne+=F*Be,le+=(F=W[1])*Se,ce+=F*ke,ve+=F*Re,de+=F*Oe,pe+=F*Pe,ye+=F*Me,V+=F*Ae,y+=F*Ne,A+=F*Te,R+=F*Ce,U+=F*Ie,z+=F*De,L+=F*je,H+=F*Ue,ne+=F*ze,oe+=F*Be,ce+=(F=W[2])*Se,ve+=F*ke,de+=F*Re,pe+=F*Oe,ye+=F*Pe,V+=F*Me,y+=F*Ae,A+=F*Ne,R+=F*Te,U+=F*Ce,z+=F*Ie,L+=F*De,H+=F*je,ne+=F*Ue,oe+=F*ze,K+=F*Be,ve+=(F=W[3])*Se,de+=F*ke,pe+=F*Re,ye+=F*Oe,V+=F*Pe,y+=F*Me,A+=F*Ae,R+=F*Ne,U+=F*Te,z+=F*Ce,L+=F*Ie,H+=F*De,ne+=F*je,oe+=F*Ue,K+=F*ze,X+=F*Be,de+=(F=W[4])*Se,pe+=F*ke,ye+=F*Re,V+=F*Oe,y+=F*Pe,A+=F*Me,R+=F*Ae,U+=F*Ne,z+=F*Te,L+=F*Ce,H+=F*Ie,ne+=F*De,oe+=F*je,K+=F*Ue,X+=F*ze,Q+=F*Be,pe+=(F=W[5])*Se,ye+=F*ke,V+=F*Re,y+=F*Oe,A+=F*Pe,R+=F*Me,U+=F*Ae,z+=F*Ne,L+=F*Te,H+=F*Ce,ne+=F*Ie,oe+=F*De,K+=F*je,X+=F*Ue,Q+=F*ze,Z+=F*Be,ye+=(F=W[6])*Se,V+=F*ke,y+=F*Re,A+=F*Oe,R+=F*Pe,U+=F*Me,z+=F*Ae,L+=F*Ne,H+=F*Te,ne+=F*Ce,oe+=F*Ie,K+=F*De,X+=F*je,Q+=F*Ue,Z+=F*ze,se+=F*Be,V+=(F=W[7])*Se,y+=F*ke,A+=F*Re,R+=F*Oe,U+=F*Pe,z+=F*Me,L+=F*Ae,H+=F*Ne,ne+=F*Te,oe+=F*Ce,K+=F*Ie,X+=F*De,Q+=F*je,Z+=F*Ue,se+=F*ze,ue+=F*Be,y+=(F=W[8])*Se,A+=F*ke,R+=F*Re,U+=F*Oe,z+=F*Pe,L+=F*Me,H+=F*Ae,ne+=F*Ne,oe+=F*Te,K+=F*Ce,X+=F*Ie,Q+=F*De,Z+=F*je,se+=F*Ue,ue+=F*ze,fe+=F*Be,A+=(F=W[9])*Se,R+=F*ke,U+=F*Re,z+=F*Oe,L+=F*Pe,H+=F*Me,ne+=F*Ae,oe+=F*Ne,K+=F*Te,X+=F*Ce,Q+=F*Ie,Z+=F*De,se+=F*je,ue+=F*Ue,fe+=F*ze,me+=F*Be,R+=(F=W[10])*Se,U+=F*ke,z+=F*Re,L+=F*Oe,H+=F*Pe,ne+=F*Me,oe+=F*Ae,K+=F*Ne,X+=F*Te,Q+=F*Ce,Z+=F*Ie,se+=F*De,ue+=F*je,fe+=F*Ue,me+=F*ze,ge+=F*Be,U+=(F=W[11])*Se,z+=F*ke,L+=F*Re,H+=F*Oe,ne+=F*Pe,oe+=F*Me,K+=F*Ae,X+=F*Ne,Q+=F*Te,Z+=F*Ce,se+=F*Ie,ue+=F*De,fe+=F*je,me+=F*Ue,ge+=F*ze,be+=F*Be,z+=(F=W[12])*Se,L+=F*ke,H+=F*Re,ne+=F*Oe,oe+=F*Pe,K+=F*Me,X+=F*Ae,Q+=F*Ne,Z+=F*Te,se+=F*Ce,ue+=F*Ie,fe+=F*De,me+=F*je,ge+=F*Ue,be+=F*ze,_e+=F*Be,L+=(F=W[13])*Se,H+=F*ke,ne+=F*Re,oe+=F*Oe,K+=F*Pe,X+=F*Me,Q+=F*Ae,Z+=F*Ne,se+=F*Te,ue+=F*Ce,fe+=F*Ie,me+=F*De,ge+=F*je,be+=F*Ue,_e+=F*ze,we+=F*Be,H+=(F=W[14])*Se,ne+=F*ke,oe+=F*Re,K+=F*Oe,X+=F*Pe,Q+=F*Me,Z+=F*Ae,se+=F*Ne,ue+=F*Te,fe+=F*Ce,me+=F*Ie,ge+=F*De,be+=F*je,_e+=F*Ue,we+=F*ze,Ee+=F*Be,ne+=(F=W[15])*Se,le+=38*(K+=F*Re),ce+=38*(X+=F*Oe),ve+=38*(Q+=F*Pe),de+=38*(Z+=F*Me),pe+=38*(se+=F*Ae),ye+=38*(ue+=F*Ne),V+=38*(fe+=F*Te),y+=38*(me+=F*Ce),A+=38*(ge+=F*Ie),R+=38*(be+=F*De),U+=38*(_e+=F*je),z+=38*(we+=F*Ue),L+=38*(Ee+=F*ze),H+=38*(xe+=F*Be),he=(F=(he+=38*(oe+=F*ke))+(ae=1)+65535)-65536*(ae=Math.floor(F/65536)),le=(F=le+ae+65535)-65536*(ae=Math.floor(F/65536)),ce=(F=ce+ae+65535)-65536*(ae=Math.floor(F/65536)),ve=(F=ve+ae+65535)-65536*(ae=Math.floor(F/65536)),de=(F=de+ae+65535)-65536*(ae=Math.floor(F/65536)),pe=(F=pe+ae+65535)-65536*(ae=Math.floor(F/65536)),ye=(F=ye+ae+65535)-65536*(ae=Math.floor(F/65536)),V=(F=V+ae+65535)-65536*(ae=Math.floor(F/65536)),y=(F=y+ae+65535)-65536*(ae=Math.floor(F/65536)),A=(F=A+ae+65535)-65536*(ae=Math.floor(F/65536)),R=(F=R+ae+65535)-65536*(ae=Math.floor(F/65536)),U=(F=U+ae+65535)-65536*(ae=Math.floor(F/65536)),z=(F=z+ae+65535)-65536*(ae=Math.floor(F/65536)),L=(F=L+ae+65535)-65536*(ae=Math.floor(F/65536)),H=(F=H+ae+65535)-65536*(ae=Math.floor(F/65536)),ne=(F=ne+ae+65535)-65536*(ae=Math.floor(F/65536)),he=(F=(he+=ae-1+37*(ae-1))+(ae=1)+65535)-65536*(ae=Math.floor(F/65536)),le=(F=le+ae+65535)-65536*(ae=Math.floor(F/65536)),ce=(F=ce+ae+65535)-65536*(ae=Math.floor(F/65536)),ve=(F=ve+ae+65535)-65536*(ae=Math.floor(F/65536)),de=(F=de+ae+65535)-65536*(ae=Math.floor(F/65536)),pe=(F=pe+ae+65535)-65536*(ae=Math.floor(F/65536)),ye=(F=ye+ae+65535)-65536*(ae=Math.floor(F/65536)),V=(F=V+ae+65535)-65536*(ae=Math.floor(F/65536)),y=(F=y+ae+65535)-65536*(ae=Math.floor(F/65536)),A=(F=A+ae+65535)-65536*(ae=Math.floor(F/65536)),R=(F=R+ae+65535)-65536*(ae=Math.floor(F/65536)),U=(F=U+ae+65535)-65536*(ae=Math.floor(F/65536)),z=(F=z+ae+65535)-65536*(ae=Math.floor(F/65536)),L=(F=L+ae+65535)-65536*(ae=Math.floor(F/65536)),H=(F=H+ae+65535)-65536*(ae=Math.floor(F/65536)),ne=(F=ne+ae+65535)-65536*(ae=Math.floor(F/65536)),he+=ae-1+37*(ae-1),$[0]=he,$[1]=le,$[2]=ce,$[3]=ve,$[4]=de,$[5]=pe,$[6]=ye,$[7]=V,$[8]=y,$[9]=A,$[10]=R,$[11]=U,$[12]=z,$[13]=L,$[14]=H,$[15]=ne}function M($,W){j($,W,W)}function N($,W){var Y,F=w();for(Y=0;Y<16;Y++)F[Y]=W[Y];for(Y=253;Y>=0;Y--)M(F,F),Y!==2&&Y!==4&&j(F,F,W);for(Y=0;Y<16;Y++)$[Y]=F[Y]}function C($,W,Y){var F,ae,he=new Uint8Array(32),le=new Float64Array(80),ce=w(),ve=w(),de=w(),pe=w(),ye=w(),V=w();for(ae=0;ae<31;ae++)he[ae]=W[ae];for(he[31]=127&W[31]|64,he[0]&=248,b(le,Y),ae=0;ae<16;ae++)ve[ae]=le[ae],pe[ae]=ce[ae]=de[ae]=0;for(ce[0]=pe[0]=1,ae=254;ae>=0;--ae)f(ce,ve,F=he[ae>>>3]>>>(7&ae)&1),f(de,pe,F),I(ye,ce,de),l(ce,ce,de),I(de,ve,pe),l(ve,ve,pe),M(pe,ye),M(V,ce),j(ce,de,ce),j(de,ve,ye),I(ye,ce,de),l(ce,ce,de),M(ve,ce),l(de,pe,V),j(ce,de,S),I(ce,ce,pe),j(de,de,ce),j(ce,pe,V),j(pe,ve,le),M(ve,ye),f(ce,ve,F),f(de,pe,F);for(ae=0;ae<16;ae++)le[ae+16]=ce[ae],le[ae+32]=de[ae],le[ae+48]=ve[ae],le[ae+64]=pe[ae];var y=le.subarray(32),A=le.subarray(16);return N(y,y),j(A,A,y),d($,A),0}var x=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function P($,W,Y,F){for(var ae,he,le,ce,ve,de,pe,ye,V,y,A,R,U,z,L,H,ne,oe,K,X,Q,Z,se,ue,fe,me,ge=new Int32Array(16),be=new Int32Array(16),_e=$[0],we=$[1],Ee=$[2],xe=$[3],Se=$[4],ke=$[5],Re=$[6],Oe=$[7],Pe=W[0],Me=W[1],Ae=W[2],Ne=W[3],Te=W[4],Ce=W[5],Ie=W[6],De=W[7],je=0;F>=128;){for(K=0;K<16;K++)X=8*K+je,ge[K]=Y[X+0]<<24|Y[X+1]<<16|Y[X+2]<<8|Y[X+3],be[K]=Y[X+4]<<24|Y[X+5]<<16|Y[X+6]<<8|Y[X+7];for(K=0;K<80;K++)if(ae=_e,he=we,le=Ee,ce=xe,ve=Se,de=ke,pe=Re,V=Pe,y=Me,A=Ae,R=Ne,U=Te,z=Ce,L=Ie,se=65535&(Z=De),ue=Z>>>16,fe=65535&(Q=Oe),me=Q>>>16,se+=65535&(Z=(Te>>>14|Se<<18)^(Te>>>18|Se<<14)^(Se>>>9|Te<<23)),ue+=Z>>>16,fe+=65535&(Q=(Se>>>14|Te<<18)^(Se>>>18|Te<<14)^(Te>>>9|Se<<23)),me+=Q>>>16,se+=65535&(Z=Te&Ce^~Te&Ie),ue+=Z>>>16,fe+=65535&(Q=Se&ke^~Se&Re),me+=Q>>>16,Q=x[2*K],se+=65535&(Z=x[2*K+1]),ue+=Z>>>16,fe+=65535&Q,me+=Q>>>16,Q=ge[K%16],ue+=(Z=be[K%16])>>>16,fe+=65535&Q,me+=Q>>>16,fe+=(ue+=(se+=65535&Z)>>>16)>>>16,se=65535&(Z=oe=65535&se|ue<<16),ue=Z>>>16,fe=65535&(Q=ne=65535&fe|(me+=fe>>>16)<<16),me=Q>>>16,se+=65535&(Z=(Pe>>>28|_e<<4)^(_e>>>2|Pe<<30)^(_e>>>7|Pe<<25)),ue+=Z>>>16,fe+=65535&(Q=(_e>>>28|Pe<<4)^(Pe>>>2|_e<<30)^(Pe>>>7|_e<<25)),me+=Q>>>16,ue+=(Z=Pe&Me^Pe&Ae^Me&Ae)>>>16,fe+=65535&(Q=_e&we^_e&Ee^we&Ee),me+=Q>>>16,ye=65535&(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)|(me+=fe>>>16)<<16,H=65535&se|ue<<16,se=65535&(Z=R),ue=Z>>>16,fe=65535&(Q=ce),me=Q>>>16,ue+=(Z=oe)>>>16,fe+=65535&(Q=ne),me+=Q>>>16,we=ae,Ee=he,xe=le,Se=ce=65535&(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)|(me+=fe>>>16)<<16,ke=ve,Re=de,Oe=pe,_e=ye,Me=V,Ae=y,Ne=A,Te=R=65535&se|ue<<16,Ce=U,Ie=z,De=L,Pe=H,K%16==15)for(X=0;X<16;X++)Q=ge[X],se=65535&(Z=be[X]),ue=Z>>>16,fe=65535&Q,me=Q>>>16,Q=ge[(X+9)%16],se+=65535&(Z=be[(X+9)%16]),ue+=Z>>>16,fe+=65535&Q,me+=Q>>>16,ne=ge[(X+1)%16],se+=65535&(Z=((oe=be[(X+1)%16])>>>1|ne<<31)^(oe>>>8|ne<<24)^(oe>>>7|ne<<25)),ue+=Z>>>16,fe+=65535&(Q=(ne>>>1|oe<<31)^(ne>>>8|oe<<24)^ne>>>7),me+=Q>>>16,ne=ge[(X+14)%16],ue+=(Z=((oe=be[(X+14)%16])>>>19|ne<<13)^(ne>>>29|oe<<3)^(oe>>>6|ne<<26))>>>16,fe+=65535&(Q=(ne>>>19|oe<<13)^(oe>>>29|ne<<3)^ne>>>6),me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,ge[X]=65535&fe|me<<16,be[X]=65535&se|ue<<16;se=65535&(Z=Pe),ue=Z>>>16,fe=65535&(Q=_e),me=Q>>>16,Q=$[0],ue+=(Z=W[0])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[0]=_e=65535&fe|me<<16,W[0]=Pe=65535&se|ue<<16,se=65535&(Z=Me),ue=Z>>>16,fe=65535&(Q=we),me=Q>>>16,Q=$[1],ue+=(Z=W[1])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[1]=we=65535&fe|me<<16,W[1]=Me=65535&se|ue<<16,se=65535&(Z=Ae),ue=Z>>>16,fe=65535&(Q=Ee),me=Q>>>16,Q=$[2],ue+=(Z=W[2])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[2]=Ee=65535&fe|me<<16,W[2]=Ae=65535&se|ue<<16,se=65535&(Z=Ne),ue=Z>>>16,fe=65535&(Q=xe),me=Q>>>16,Q=$[3],ue+=(Z=W[3])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[3]=xe=65535&fe|me<<16,W[3]=Ne=65535&se|ue<<16,se=65535&(Z=Te),ue=Z>>>16,fe=65535&(Q=Se),me=Q>>>16,Q=$[4],ue+=(Z=W[4])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[4]=Se=65535&fe|me<<16,W[4]=Te=65535&se|ue<<16,se=65535&(Z=Ce),ue=Z>>>16,fe=65535&(Q=ke),me=Q>>>16,Q=$[5],ue+=(Z=W[5])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[5]=ke=65535&fe|me<<16,W[5]=Ce=65535&se|ue<<16,se=65535&(Z=Ie),ue=Z>>>16,fe=65535&(Q=Re),me=Q>>>16,Q=$[6],ue+=(Z=W[6])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[6]=Re=65535&fe|me<<16,W[6]=Ie=65535&se|ue<<16,se=65535&(Z=De),ue=Z>>>16,fe=65535&(Q=Oe),me=Q>>>16,Q=$[7],ue+=(Z=W[7])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[7]=Oe=65535&fe|me<<16,W[7]=De=65535&se|ue<<16,je+=128,F-=128}return F}function v($,W,Y){var F,ae=new Int32Array(8),he=new Int32Array(8),le=new Uint8Array(256),ce=Y;for(ae[0]=1779033703,ae[1]=3144134277,ae[2]=1013904242,ae[3]=2773480762,ae[4]=1359893119,ae[5]=2600822924,ae[6]=528734635,ae[7]=1541459225,he[0]=4089235720,he[1]=2227873595,he[2]=4271175723,he[3]=1595750129,he[4]=2917565137,he[5]=725511199,he[6]=4215389547,he[7]=327033209,P(ae,he,W,Y),Y%=128,F=0;F=0;--ae)E($,W,F=Y[ae/8|0]>>(7&ae)&1),m(W,$),m($,$),E($,W,F)}function q($,W){var Y=[w(),w(),w(),w()];o(Y[0],c),o(Y[1],u),o(Y[2],k),j(Y[3],c,u),T($,Y,W)}var te=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function re($,W){var Y,F,ae,he;for(F=63;F>=32;--F){for(Y=0,ae=F-32,he=F-12;ae>8,W[ae]-=256*Y;W[ae]+=Y,W[F]=0}for(Y=0,ae=0;ae<32;ae++)W[ae]+=Y-(W[31]>>4)*te[ae],Y=W[ae]>>8,W[ae]&=255;for(ae=0;ae<32;ae++)W[ae]-=Y*te[ae];for(F=0;F<32;F++)W[F+1]+=W[F]>>8,$[F]=255&W[F]}function ie($){var W,Y=new Float64Array(64);for(W=0;W<64;W++)Y[W]=$[W];for(W=0;W<64;W++)$[W]=0;re($,Y)}function J($,W,Y,F,ae){for(var he=new Uint8Array(64),le=[w(),w(),w(),w()],ce=0;ce<32;ce++)he[ce]=F[ce];he[0]&=248,he[31]&=127,he[31]|=64,q(le,he),B(he.subarray(32),le);var ve,de=128&he[63];return ve=ae?function(pe,ye,V,y,A){var R,U,z=new Uint8Array(64),L=new Uint8Array(64),H=new Float64Array(64),ne=[w(),w(),w(),w()];for(pe[0]=254,R=1;R<32;R++)pe[R]=255;for(R=0;R<32;R++)pe[32+R]=y[R];for(R=0;R=0;Z--)M(se,se),Z!==1&&j(se,se,Q);for(Z=0;Z<16;Z++)X[Z]=se[Z]}(U,U),j(U,U,L),j(U,U,H),j(U,U,H),j(A[0],U,H),M(z,A[0]),j(z,z,H),h(z,L)&&j(A[0],A[0],s),M(z,A[0]),j(z,z,H),h(z,L)?-1:(_(A[0])===R[31]>>7&&l(A[0],O,A[0]),j(A[3],A[0],A[1]),0)}(y,ve))return-1;for(de=0;de=0},e.generateKeyPair=function($){if(G($),$.length!==32)throw new Error("wrong seed length");for(var W=new Uint8Array(32),Y=new Uint8Array(32),F=0;F<32;F++)W[F]=$[F];return C(Y,W,p),W[0]&=248,W[31]&=127,W[31]|=64,Y[31]&=127,{public:Y,private:W}},e.default={}},2296:(D,e,p)=>{var w=p(1044)(),O=p(210),k=w&&O("%Object.defineProperty%",!0);if(k)try{k({},"a",{value:1})}catch{k=!1}var S=O("%SyntaxError%"),a=O("%TypeError%"),t=p(7296);D.exports=function(c,u,s){if(!c||typeof c!="object"&&typeof c!="function")throw new a("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new a("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,i=arguments.length>6&&arguments[6],f=!!t&&t(c,u);if(k)k(c,u,{configurable:o===null&&f?f.configurable:!o,enumerable:r===null&&f?f.enumerable:!r,value:s,writable:n===null&&f?f.writable:!n});else{if(!i&&(r||n||o))throw new S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");c[u]=s}}},4289:(D,e,p)=>{var w=p(2215),O=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",k=Object.prototype.toString,S=Array.prototype.concat,a=p(2296),t=p(1044)(),c=function(s,r,n,o){if(r in s){if(o===!0){if(s[r]===n)return}else if(typeof(i=o)!="function"||k.call(i)!=="[object Function]"||!o())return}var i;t?a(s,r,n,!0):a(s,r,n)},u=function(s,r){var n=arguments.length>2?arguments[2]:{},o=w(r);O&&(o=S.call(o,Object.getOwnPropertySymbols(r)));for(var i=0;i{var w=e;w.version=p(8597).i8,w.utils=p(953),w.rand=p(9931),w.curve=p(8254),w.curves=p(5427),w.ec=p(7954),w.eddsa=p(5980)},4918:(D,e,p)=>{var w=p(3550),O=p(953),k=O.getNAF,S=O.getJSF,a=O.assert;function t(u,s){this.type=u,this.p=new w(s.p,16),this.red=s.prime?w.red(s.prime):w.mont(this.p),this.zero=new w(0).toRed(this.red),this.one=new w(1).toRed(this.red),this.two=new w(2).toRed(this.red),this.n=s.n&&new w(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(u,s){this.curve=u,this.type=s,this.precomputed=null}D.exports=t,t.prototype.point=function(){throw new Error("Not implemented")},t.prototype.validate=function(){throw new Error("Not implemented")},t.prototype._fixedNafMul=function(u,s){a(u.precomputed);var r=u._getDoubles(),n=k(s,1,this._bitLength),o=(1<=i;h--)f=(f<<1)+n[h];d.push(f)}for(var _=this.jpoint(null,null,null),b=this.jpoint(null,null,null),I=o;I>0;I--){for(i=0;i=0;d--){for(var h=0;d>=0&&i[d]===0;d--)h++;if(d>=0&&h++,f=f.dblp(h),d<0)break;var _=i[d];a(_!==0),f=u.type==="affine"?_>0?f.mixedAdd(o[_-1>>1]):f.mixedAdd(o[-_-1>>1].neg()):_>0?f.add(o[_-1>>1]):f.add(o[-_-1>>1].neg())}return u.type==="affine"?f.toP():f},t.prototype._wnafMulAdd=function(u,s,r,n,o){var i,f,d,h=this._wnafT1,_=this._wnafT2,b=this._wnafT3,I=0;for(i=0;i=1;i-=2){var j=i-1,M=i;if(h[j]===1&&h[M]===1){var N=[s[j],null,null,s[M]];s[j].y.cmp(s[M].y)===0?(N[1]=s[j].add(s[M]),N[2]=s[j].toJ().mixedAdd(s[M].neg())):s[j].y.cmp(s[M].y.redNeg())===0?(N[1]=s[j].toJ().mixedAdd(s[M]),N[2]=s[j].add(s[M].neg())):(N[1]=s[j].toJ().mixedAdd(s[M]),N[2]=s[j].toJ().mixedAdd(s[M].neg()));var C=[-3,-1,-5,-7,0,7,5,1,3],x=S(r[j],r[M]);for(I=Math.max(x[0].length,I),b[j]=new Array(I),b[M]=new Array(I),f=0;f=0;i--){for(var B=0;i>=0;){var T=!0;for(f=0;f=0&&B++,m=m.dblp(B),i<0)break;for(f=0;f0?d=_[f][q-1>>1]:q<0&&(d=_[f][-q-1>>1].neg()),m=d.type==="affine"?m.mixedAdd(d):m.add(d))}}for(i=0;i=Math.ceil((u.bitLength()+1)/s.step)},c.prototype._getDoubles=function(u,s){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o{var w=p(953),O=p(3550),k=p(5717),S=p(4918),a=w.assert;function t(u){this.twisted=(0|u.a)!=1,this.mOneA=this.twisted&&(0|u.a)==-1,this.extended=this.mOneA,S.call(this,"edwards",u),this.a=new O(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new O(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new O(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|u.c)==1}function c(u,s,r,n,o){S.BasePoint.call(this,u,"projective"),s===null&&r===null&&n===null?(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 O(s,16),this.y=new O(r,16),this.z=n?new O(n,16):this.curve.one,this.t=o&&new O(o,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()))))}k(t,S),D.exports=t,t.prototype._mulA=function(u){return this.mOneA?u.redNeg():this.a.redMul(u)},t.prototype._mulC=function(u){return this.oneC?u:this.c.redMul(u)},t.prototype.jpoint=function(u,s,r,n){return this.point(u,s,r,n)},t.prototype.pointFromX=function(u,s){(u=new O(u,16)).red||(u=u.toRed(this.red));var r=u.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),i=n.redMul(o.redInvm()),f=i.redSqrt();if(f.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var d=f.fromRed().isOdd();return(s&&!d||!s&&d)&&(f=f.redNeg()),this.point(u,f)},t.prototype.pointFromY=function(u,s){(u=new O(u,16)).red||(u=u.toRed(this.red));var r=u.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),i=n.redMul(o.redInvm());if(i.cmp(this.zero)===0){if(s)throw new Error("invalid point");return this.point(this.zero,u)}var f=i.redSqrt();if(f.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");return f.fromRed().isOdd()!==s&&(f=f.redNeg()),this.point(f,u)},t.prototype.validate=function(u){if(u.isInfinity())return!0;u.normalize();var s=u.x.redSqr(),r=u.y.redSqr(),n=s.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(r)));return n.cmp(o)===0},k(c,S.BasePoint),t.prototype.pointFromJSON=function(u){return c.fromJSON(this,u)},t.prototype.point=function(u,s,r,n){return new c(this,u,s,r,n)},c.fromJSON=function(u,s){return new c(u,s[0],s[1],s[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var u=this.x.redSqr(),s=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(u),o=this.x.redAdd(this.y).redSqr().redISub(u).redISub(s),i=n.redAdd(s),f=i.redSub(r),d=n.redSub(s),h=o.redMul(f),_=i.redMul(d),b=o.redMul(d),I=f.redMul(i);return this.curve.point(h,_,I,b)},c.prototype._projDbl=function(){var u,s,r,n,o,i,f=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),h=this.y.redSqr();if(this.curve.twisted){var _=(n=this.curve._mulA(d)).redAdd(h);this.zOne?(u=f.redSub(d).redSub(h).redMul(_.redSub(this.curve.two)),s=_.redMul(n.redSub(h)),r=_.redSqr().redSub(_).redSub(_)):(o=this.z.redSqr(),i=_.redSub(o).redISub(o),u=f.redSub(d).redISub(h).redMul(i),s=_.redMul(n.redSub(h)),r=_.redMul(i))}else n=d.redAdd(h),o=this.curve._mulC(this.z).redSqr(),i=n.redSub(o).redSub(o),u=this.curve._mulC(f.redISub(n)).redMul(i),s=this.curve._mulC(n).redMul(d.redISub(h)),r=n.redMul(i);return this.curve.point(u,s,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(u){var s=this.y.redSub(this.x).redMul(u.y.redSub(u.x)),r=this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)),n=this.t.redMul(this.curve.dd).redMul(u.t),o=this.z.redMul(u.z.redAdd(u.z)),i=r.redSub(s),f=o.redSub(n),d=o.redAdd(n),h=r.redAdd(s),_=i.redMul(f),b=d.redMul(h),I=i.redMul(h),l=f.redMul(d);return this.curve.point(_,b,l,I)},c.prototype._projAdd=function(u){var s,r,n=this.z.redMul(u.z),o=n.redSqr(),i=this.x.redMul(u.x),f=this.y.redMul(u.y),d=this.curve.d.redMul(i).redMul(f),h=o.redSub(d),_=o.redAdd(d),b=this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(i).redISub(f),I=n.redMul(h).redMul(b);return this.curve.twisted?(s=n.redMul(_).redMul(f.redSub(this.curve._mulA(i))),r=h.redMul(_)):(s=n.redMul(_).redMul(f.redSub(i)),r=this.curve._mulC(h).redMul(_)),this.curve.point(I,s,r)},c.prototype.add=function(u){return this.isInfinity()?u:u.isInfinity()?this:this.curve.extended?this._extAdd(u):this._projAdd(u)},c.prototype.mul=function(u){return this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve._wnafMul(this,u)},c.prototype.mulAdd=function(u,s,r){return this.curve._wnafMulAdd(1,[this,s],[u,r],2,!1)},c.prototype.jmulAdd=function(u,s,r){return this.curve._wnafMulAdd(1,[this,s],[u,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var u=this.z.redInvm();return this.x=this.x.redMul(u),this.y=this.y.redMul(u),this.t&&(this.t=this.t.redMul(u)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(u){return this===u||this.getX().cmp(u.getX())===0&&this.getY().cmp(u.getY())===0},c.prototype.eqXToP=function(u){var s=u.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(s)===0)return!0;for(var r=u.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(s.redIAdd(n),this.x.cmp(s)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},8254:(D,e,p)=>{var w=e;w.base=p(4918),w.short=p(6673),w.mont=p(2881),w.edwards=p(1138)},2881:(D,e,p)=>{var w=p(3550),O=p(5717),k=p(4918),S=p(953);function a(c){k.call(this,"mont",c),this.a=new w(c.a,16).toRed(this.red),this.b=new w(c.b,16).toRed(this.red),this.i4=new w(4).toRed(this.red).redInvm(),this.two=new w(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function t(c,u,s){k.BasePoint.call(this,c,"projective"),u===null&&s===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new w(u,16),this.z=new w(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}O(a,k),D.exports=a,a.prototype.validate=function(c){var u=c.normalize().x,s=u.redSqr(),r=s.redMul(u).redAdd(s.redMul(this.a)).redAdd(u);return r.redSqrt().redSqr().cmp(r)===0},O(t,k.BasePoint),a.prototype.decodePoint=function(c,u){return this.point(S.toArray(c,u),1)},a.prototype.point=function(c,u){return new t(this,c,u)},a.prototype.pointFromJSON=function(c){return t.fromJSON(this,c)},t.prototype.precompute=function(){},t.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},t.fromJSON=function(c,u){return new t(c,u[0],u[1]||c.one)},t.prototype.inspect=function(){return this.isInfinity()?"":""},t.prototype.isInfinity=function(){return this.z.cmpn(0)===0},t.prototype.dbl=function(){var c=this.x.redAdd(this.z).redSqr(),u=this.x.redSub(this.z).redSqr(),s=c.redSub(u),r=c.redMul(u),n=s.redMul(u.redAdd(this.curve.a24.redMul(s)));return this.curve.point(r,n)},t.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.diffAdd=function(c,u){var s=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=c.x.redAdd(c.z),o=c.x.redSub(c.z).redMul(s),i=n.redMul(r),f=u.z.redMul(o.redAdd(i).redSqr()),d=u.x.redMul(o.redISub(i).redSqr());return this.curve.point(f,d)},t.prototype.mul=function(c){for(var u=c.clone(),s=this,r=this.curve.point(null,null),n=[];u.cmpn(0)!==0;u.iushrn(1))n.push(u.andln(1));for(var o=n.length-1;o>=0;o--)n[o]===0?(s=s.diffAdd(r,this),r=r.dbl()):(r=s.diffAdd(r,this),s=s.dbl());return r},t.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},t.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},t.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(D,e,p)=>{var w=p(953),O=p(3550),k=p(5717),S=p(4918),a=w.assert;function t(s){S.call(this,"short",s),this.a=new O(s.a,16).toRed(this.red),this.b=new O(s.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(s,r,n,o){S.BasePoint.call(this,s,"affine"),r===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new O(r,16),this.y=new O(n,16),o&&(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 u(s,r,n,o){S.BasePoint.call(this,s,"jacobian"),r===null&&n===null&&o===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new O(0)):(this.x=new O(r,16),this.y=new O(n,16),this.z=new O(o,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}k(t,S),D.exports=t,t.prototype._getEndomorphism=function(s){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var r,n;if(s.beta)r=new O(s.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);r=(r=o[0].cmp(o[1])<0?o[0]:o[1]).toRed(this.red)}if(s.lambda)n=new O(s.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(r))===0?n=i[0]:(n=i[1],a(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}return{beta:r,lambda:n,basis:s.basis?s.basis.map(function(f){return{a:new O(f.a,16),b:new O(f.b,16)}}):this._getEndoBasis(n)}}},t.prototype._getEndoRoots=function(s){var r=s===this.p?this.red:O.mont(s),n=new O(2).toRed(r).redInvm(),o=n.redNeg(),i=new O(3).toRed(r).redNeg().redSqrt().redMul(n);return[o.redAdd(i).fromRed(),o.redSub(i).fromRed()]},t.prototype._getEndoBasis=function(s){for(var r,n,o,i,f,d,h,_,b,I=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=s,j=this.n.clone(),M=new O(1),N=new O(0),C=new O(0),x=new O(1),P=0;l.cmpn(0)!==0;){var v=j.div(l);_=j.sub(v.mul(l)),b=C.sub(v.mul(M));var m=x.sub(v.mul(N));if(!o&&_.cmp(I)<0)r=h.neg(),n=M,o=_.neg(),i=b;else if(o&&++P==2)break;h=_,j=l,l=_,C=M,M=b,x=N,N=m}f=_.neg(),d=b;var E=o.sqr().add(i.sqr());return f.sqr().add(d.sqr()).cmp(E)>=0&&(f=r,d=n),o.negative&&(o=o.neg(),i=i.neg()),f.negative&&(f=f.neg(),d=d.neg()),[{a:o,b:i},{a:f,b:d}]},t.prototype._endoSplit=function(s){var r=this.endo.basis,n=r[0],o=r[1],i=o.b.mul(s).divRound(this.n),f=n.b.neg().mul(s).divRound(this.n),d=i.mul(n.a),h=f.mul(o.a),_=i.mul(n.b),b=f.mul(o.b);return{k1:s.sub(d).sub(h),k2:_.add(b).neg()}},t.prototype.pointFromX=function(s,r){(s=new O(s,16)).red||(s=s.toRed(this.red));var n=s.redSqr().redMul(s).redIAdd(s.redMul(this.a)).redIAdd(this.b),o=n.redSqrt();if(o.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=o.fromRed().isOdd();return(r&&!i||!r&&i)&&(o=o.redNeg()),this.point(s,o)},t.prototype.validate=function(s){if(s.inf)return!0;var r=s.x,n=s.y,o=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(o).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0},t.prototype._endoWnafMulAdd=function(s,r,n){for(var o=this._endoWnafT1,i=this._endoWnafT2,f=0;f":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(s){if(this.inf)return s;if(s.inf)return this;if(this.eq(s))return this.dbl();if(this.neg().eq(s))return this.curve.point(null,null);if(this.x.cmp(s.x)===0)return this.curve.point(null,null);var r=this.y.redSub(s.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(s.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(s.x),o=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,o)},c.prototype.dbl=function(){if(this.inf)return this;var s=this.y.redAdd(this.y);if(s.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),o=s.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(o),f=i.redSqr().redISub(this.x.redAdd(this.x)),d=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,d)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(s){return s=new O(s,16),this.isInfinity()?this:this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve.endo?this.curve._endoWnafMulAdd([this],[s]):this.curve._wnafMul(this,s)},c.prototype.mulAdd=function(s,r,n){var o=[this,r],i=[s,n];return this.curve.endo?this.curve._endoWnafMulAdd(o,i):this.curve._wnafMulAdd(1,o,i,2)},c.prototype.jmulAdd=function(s,r,n){var o=[this,r],i=[s,n];return this.curve.endo?this.curve._endoWnafMulAdd(o,i,!0):this.curve._wnafMulAdd(1,o,i,2,!0)},c.prototype.eq=function(s){return this===s||this.inf===s.inf&&(this.inf||this.x.cmp(s.x)===0&&this.y.cmp(s.y)===0)},c.prototype.neg=function(s){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(s&&this.precomputed){var n=this.precomputed,o=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(o)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(o)}}}return r},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},k(u,S.BasePoint),t.prototype.jpoint=function(s,r,n){return new u(this,s,r,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var s=this.z.redInvm(),r=s.redSqr(),n=this.x.redMul(r),o=this.y.redMul(r).redMul(s);return this.curve.point(n,o)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(s){if(this.isInfinity())return s;if(s.isInfinity())return this;var r=s.z.redSqr(),n=this.z.redSqr(),o=this.x.redMul(r),i=s.x.redMul(n),f=this.y.redMul(r.redMul(s.z)),d=s.y.redMul(n.redMul(this.z)),h=o.redSub(i),_=f.redSub(d);if(h.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=h.redSqr(),I=b.redMul(h),l=o.redMul(b),j=_.redSqr().redIAdd(I).redISub(l).redISub(l),M=_.redMul(l.redISub(j)).redISub(f.redMul(I)),N=this.z.redMul(s.z).redMul(h);return this.curve.jpoint(j,M,N)},u.prototype.mixedAdd=function(s){if(this.isInfinity())return s.toJ();if(s.isInfinity())return this;var r=this.z.redSqr(),n=this.x,o=s.x.redMul(r),i=this.y,f=s.y.redMul(r).redMul(this.z),d=n.redSub(o),h=i.redSub(f);if(d.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=d.redSqr(),b=_.redMul(d),I=n.redMul(_),l=h.redSqr().redIAdd(b).redISub(I).redISub(I),j=h.redMul(I.redISub(l)).redISub(i.redMul(b)),M=this.z.redMul(d);return this.curve.jpoint(l,j,M)},u.prototype.dblp=function(s){if(s===0)return this;if(this.isInfinity())return this;if(!s)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},5427:(D,e,p)=>{var w,O=e,k=p(3715),S=p(8254),a=p(953).assert;function t(u){u.type==="short"?this.curve=new S.short(u):u.type==="edwards"?this.curve=new S.edwards(u):this.curve=new S.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(u,s){Object.defineProperty(O,u,{configurable:!0,enumerable:!0,get:function(){var r=new t(s);return Object.defineProperty(O,u,{configurable:!0,enumerable:!0,value:r}),r}})}O.PresetCurve=t,c("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:k.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:k.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:k.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:k.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"]}),c("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:k.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:k.sha256,gRed:!1,g:["9"]}),c("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:k.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{w=p(1037)}catch{w=void 0}c("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:k.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",w]})},7954:(D,e,p)=>{var w=p(3550),O=p(2156),k=p(953),S=p(5427),a=p(9931),t=k.assert,c=p(1251),u=p(611);function s(r){if(!(this instanceof s))return new s(r);typeof r=="string"&&(t(Object.prototype.hasOwnProperty.call(S,r),"Unknown curve "+r),r=S[r]),r instanceof S.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}D.exports=s,s.prototype.keyPair=function(r){return new c(this,r)},s.prototype.keyFromPrivate=function(r,n){return c.fromPrivate(this,r,n)},s.prototype.keyFromPublic=function(r,n){return c.fromPublic(this,r,n)},s.prototype.genKeyPair=function(r){r||(r={});for(var n=new O({hash:this.hash,pers:r.pers,persEnc:r.persEnc||"utf8",entropy:r.entropy||a(this.hash.hmacStrength),entropyEnc:r.entropy&&r.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),i=this.n.sub(new w(2));;){var f=new w(n.generate(o));if(!(f.cmp(i)>0))return f.iaddn(1),this.keyFromPrivate(f)}},s.prototype._truncateToN=function(r,n){var o=8*r.byteLength()-this.n.bitLength();return o>0&&(r=r.ushrn(o)),!n&&r.cmp(this.n)>=0?r.sub(this.n):r},s.prototype.sign=function(r,n,o,i){typeof o=="object"&&(i=o,o=null),i||(i={}),n=this.keyFromPrivate(n,o),r=this._truncateToN(new w(r,16));for(var f=this.n.byteLength(),d=n.getPrivate().toArray("be",f),h=r.toArray("be",f),_=new O({hash:this.hash,entropy:d,nonce:h,pers:i.pers,persEnc:i.persEnc||"utf8"}),b=this.n.sub(new w(1)),I=0;;I++){var l=i.k?i.k(I):new w(_.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(b)>=0)){var j=this.g.mul(l);if(!j.isInfinity()){var M=j.getX(),N=M.umod(this.n);if(N.cmpn(0)!==0){var C=l.invm(this.n).mul(N.mul(n.getPrivate()).iadd(r));if((C=C.umod(this.n)).cmpn(0)!==0){var x=(j.getY().isOdd()?1:0)|(M.cmp(N)!==0?2:0);return i.canonical&&C.cmp(this.nh)>0&&(C=this.n.sub(C),x^=1),new u({r:N,s:C,recoveryParam:x})}}}}}},s.prototype.verify=function(r,n,o,i){r=this._truncateToN(new w(r,16)),o=this.keyFromPublic(o,i);var f=(n=new u(n,"hex")).r,d=n.s;if(f.cmpn(1)<0||f.cmp(this.n)>=0||d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;var h,_=d.invm(this.n),b=_.mul(r).umod(this.n),I=_.mul(f).umod(this.n);return this.curve._maxwellTrick?!(h=this.g.jmulAdd(b,o.getPublic(),I)).isInfinity()&&h.eqXToP(f):!(h=this.g.mulAdd(b,o.getPublic(),I)).isInfinity()&&h.getX().umod(this.n).cmp(f)===0},s.prototype.recoverPubKey=function(r,n,o,i){t((3&o)===o,"The recovery param is more than two bits"),n=new u(n,i);var f=this.n,d=new w(r),h=n.r,_=n.s,b=1&o,I=o>>1;if(h.cmp(this.curve.p.umod(this.curve.n))>=0&&I)throw new Error("Unable to find sencond key candinate");h=I?this.curve.pointFromX(h.add(this.curve.n),b):this.curve.pointFromX(h,b);var l=n.r.invm(f),j=f.sub(d).mul(l).umod(f),M=_.mul(l).umod(f);return this.g.mulAdd(j,h,M)},s.prototype.getKeyRecoveryParam=function(r,n,o,i){if((n=new u(n,i)).recoveryParam!==null)return n.recoveryParam;for(var f=0;f<4;f++){var d;try{d=this.recoverPubKey(r,n,f)}catch{continue}if(d.eq(o))return f}throw new Error("Unable to find valid recovery factor")}},1251:(D,e,p)=>{var w=p(3550),O=p(953).assert;function k(S,a){this.ec=S,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}D.exports=k,k.fromPublic=function(S,a,t){return a instanceof k?a:new k(S,{pub:a,pubEnc:t})},k.fromPrivate=function(S,a,t){return a instanceof k?a:new k(S,{priv:a,privEnc:t})},k.prototype.validate=function(){var S=this.getPublic();return S.isInfinity()?{result:!1,reason:"Invalid public key"}:S.validate()?S.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"}},k.prototype.getPublic=function(S,a){return typeof S=="string"&&(a=S,S=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),a?this.pub.encode(a,S):this.pub},k.prototype.getPrivate=function(S){return S==="hex"?this.priv.toString(16,2):this.priv},k.prototype._importPrivate=function(S,a){this.priv=new w(S,a||16),this.priv=this.priv.umod(this.ec.curve.n)},k.prototype._importPublic=function(S,a){if(S.x||S.y)return this.ec.curve.type==="mont"?O(S.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||O(S.x&&S.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(S.x,S.y));this.pub=this.ec.curve.decodePoint(S,a)},k.prototype.derive=function(S){return S.validate()||O(S.validate(),"public point not validated"),S.mul(this.priv).getX()},k.prototype.sign=function(S,a,t){return this.ec.sign(S,this,a,t)},k.prototype.verify=function(S,a){return this.ec.verify(S,a,this)},k.prototype.inspect=function(){return""}},611:(D,e,p)=>{var w=p(3550),O=p(953),k=O.assert;function S(s,r){if(s instanceof S)return s;this._importDER(s,r)||(k(s.r&&s.s,"Signature without r or s"),this.r=new w(s.r,16),this.s=new w(s.s,16),s.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=s.recoveryParam)}function a(){this.place=0}function t(s,r){var n=s[r.place++];if(!(128&n))return n;var o=15&n;if(o===0||o>4)return!1;for(var i=0,f=0,d=r.place;f>>=0;return!(i<=127)&&(r.place=d,i)}function c(s){for(var r=0,n=s.length-1;!s[r]&&!(128&s[r+1])&&r>>3);for(s.push(128|n);--n;)s.push(r>>>(n<<3)&255);s.push(r)}}D.exports=S,S.prototype._importDER=function(s,r){s=O.toArray(s,r);var n=new a;if(s[n.place++]!==48)return!1;var o=t(s,n);if(o===!1||o+n.place!==s.length||s[n.place++]!==2)return!1;var i=t(s,n);if(i===!1)return!1;var f=s.slice(n.place,i+n.place);if(n.place+=i,s[n.place++]!==2)return!1;var d=t(s,n);if(d===!1||s.length!==d+n.place)return!1;var h=s.slice(n.place,d+n.place);if(f[0]===0){if(!(128&f[1]))return!1;f=f.slice(1)}if(h[0]===0){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new w(f),this.s=new w(h),this.recoveryParam=null,!0},S.prototype.toDER=function(s){var r=this.r.toArray(),n=this.s.toArray();for(128&r[0]&&(r=[0].concat(r)),128&n[0]&&(n=[0].concat(n)),r=c(r),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var o=[2];u(o,r.length),(o=o.concat(r)).push(2),u(o,n.length);var i=o.concat(n),f=[48];return u(f,i.length),f=f.concat(i),O.encode(f,s)}},5980:(D,e,p)=>{var w=p(3715),O=p(5427),k=p(953),S=k.assert,a=k.parseBytes,t=p(9087),c=p(3622);function u(s){if(S(s==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(s);s=O[s].curve,this.curve=s,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=w.sha512}D.exports=u,u.prototype.sign=function(s,r){s=a(s);var n=this.keyFromSecret(r),o=this.hashInt(n.messagePrefix(),s),i=this.g.mul(o),f=this.encodePoint(i),d=this.hashInt(f,n.pubBytes(),s).mul(n.priv()),h=o.add(d).umod(this.curve.n);return this.makeSignature({R:i,S:h,Rencoded:f})},u.prototype.verify=function(s,r,n){s=a(s),r=this.makeSignature(r);var o=this.keyFromPublic(n),i=this.hashInt(r.Rencoded(),o.pubBytes(),s),f=this.g.mul(r.S());return r.R().add(o.pub().mul(i)).eq(f)},u.prototype.hashInt=function(){for(var s=this.hash(),r=0;r{var w=p(953),O=w.assert,k=w.parseBytes,S=w.cachedProperty;function a(t,c){this.eddsa=t,this._secret=k(c.secret),t.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=k(c.pub)}a.fromPublic=function(t,c){return c instanceof a?c:new a(t,{pub:c})},a.fromSecret=function(t,c){return c instanceof a?c:new a(t,{secret:c})},a.prototype.secret=function(){return this._secret},S(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),S(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),S(a,"privBytes",function(){var t=this.eddsa,c=this.hash(),u=t.encodingLength-1,s=c.slice(0,t.encodingLength);return s[0]&=248,s[u]&=127,s[u]|=64,s}),S(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),S(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),S(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return O(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,c){return this.eddsa.verify(t,c,this)},a.prototype.getSecret=function(t){return O(this._secret,"KeyPair is public only"),w.encode(this.secret(),t)},a.prototype.getPublic=function(t){return w.encode(this.pubBytes(),t)},D.exports=a},3622:(D,e,p)=>{var w=p(3550),O=p(953),k=O.assert,S=O.cachedProperty,a=O.parseBytes;function t(c,u){this.eddsa=c,typeof u!="object"&&(u=a(u)),Array.isArray(u)&&(u={R:u.slice(0,c.encodingLength),S:u.slice(c.encodingLength)}),k(u.R&&u.S,"Signature without R or S"),c.isPoint(u.R)&&(this._R=u.R),u.S instanceof w&&(this._S=u.S),this._Rencoded=Array.isArray(u.R)?u.R:u.Rencoded,this._Sencoded=Array.isArray(u.S)?u.S:u.Sencoded}S(t,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),S(t,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),S(t,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),S(t,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),t.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},t.prototype.toHex=function(){return O.encode(this.toBytes(),"hex").toUpperCase()},D.exports=t},1037:D=>{D.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"]]}}},953:(D,e,p)=>{var w=e,O=p(3550),k=p(9746),S=p(4504);w.assert=k,w.toArray=S.toArray,w.zero2=S.zero2,w.toHex=S.toHex,w.encode=S.encode,w.getNAF=function(a,t,c){var u=new Array(Math.max(a.bitLength(),c)+1);u.fill(0);for(var s=1<(s>>1)-1?(s>>1)-i:i,r.isubn(o)):o=0,u[n]=o,r.iushrn(1)}return u},w.getJSF=function(a,t){var c=[[],[]];a=a.clone(),t=t.clone();for(var u,s=0,r=0;a.cmpn(-s)>0||t.cmpn(-r)>0;){var n,o,i=a.andln(3)+s&3,f=t.andln(3)+r&3;i===3&&(i=-1),f===3&&(f=-1),n=1&i?(u=a.andln(7)+s&7)!=3&&u!==5||f!==2?i:-i:0,c[0].push(n),o=1&f?(u=t.andln(7)+r&7)!=3&&u!==5||i!==2?f:-f:0,c[1].push(o),2*s===n+1&&(s=1-s),2*r===o+1&&(r=1-r),a.iushrn(1),t.iushrn(1)}return c},w.cachedProperty=function(a,t,c){var u="_"+t;a.prototype[t]=function(){return this[u]!==void 0?this[u]:this[u]=c.call(this)}},w.parseBytes=function(a){return typeof a=="string"?w.toArray(a,"hex"):a},w.intFromLE=function(a){return new O(a,"hex","le")}},7187:(D,e,p)=>{var w,O=p(5108),k=typeof Reflect=="object"?Reflect:null,S=k&&typeof k.apply=="function"?k.apply:function(_,b,I){return Function.prototype.apply.call(_,b,I)};w=k&&typeof k.ownKeys=="function"?k.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var a=Number.isNaN||function(_){return _!=_};function t(){t.init.call(this)}D.exports=t,D.exports.once=function(_,b){return new Promise(function(I,l){function j(N){_.removeListener(b,M),l(N)}function M(){typeof _.removeListener=="function"&&_.removeListener("error",j),I([].slice.call(arguments))}h(_,b,M,{once:!0}),b!=="error"&&function(N,C,x){typeof N.on=="function"&&h(N,"error",C,{once:!0})}(_,j)})},t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var c=10;function u(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function s(_){return _._maxListeners===void 0?t.defaultMaxListeners:_._maxListeners}function r(_,b,I,l){var j,M,N,C;if(u(I),(M=_._events)===void 0?(M=_._events=Object.create(null),_._eventsCount=0):(M.newListener!==void 0&&(_.emit("newListener",b,I.listener?I.listener:I),M=_._events),N=M[b]),N===void 0)N=M[b]=I,++_._eventsCount;else if(typeof N=="function"?N=M[b]=l?[I,N]:[N,I]:l?N.unshift(I):N.push(I),(j=s(_))>0&&N.length>j&&!N.warned){N.warned=!0;var x=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(b)+" listeners added. Use emitter.setMaxListeners() to increase limit");x.name="MaxListenersExceededWarning",x.emitter=_,x.type=b,x.count=N.length,C=x,O&&O.warn&&O.warn(C)}return _}function n(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function o(_,b,I){var l={fired:!1,wrapFn:void 0,target:_,type:b,listener:I},j=n.bind(l);return j.listener=I,l.wrapFn=j,j}function i(_,b,I){var l=_._events;if(l===void 0)return[];var j=l[b];return j===void 0?[]:typeof j=="function"?I?[j.listener||j]:[j]:I?function(M){for(var N=new Array(M.length),C=0;C0&&(M=b[0]),M instanceof Error)throw M;var N=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw N.context=M,N}var C=j[_];if(C===void 0)return!1;if(typeof C=="function")S(C,this,b);else{var x=C.length,P=d(C,x);for(I=0;I=0;M--)if(I[M]===b||I[M].listener===b){N=I[M].listener,j=M;break}if(j<0)return this;j===0?I.shift():function(C,x){for(;x+1=0;l--)this.removeListener(_,b[l]);return this},t.prototype.listeners=function(_){return i(this,_,!0)},t.prototype.rawListeners=function(_){return i(this,_,!1)},t.listenerCount=function(_,b){return typeof _.listenerCount=="function"?_.listenerCount(b):f.call(_,b)},t.prototype.listenerCount=f,t.prototype.eventNames=function(){return this._eventsCount>0?w(this._events):[]}},4029:(D,e,p)=>{var w=p(5320),O=Object.prototype.toString,k=Object.prototype.hasOwnProperty;D.exports=function(S,a,t){if(!w(a))throw new TypeError("iterator must be a function");var c;arguments.length>=3&&(c=t),O.call(S)==="[object Array]"?function(u,s,r){for(var n=0,o=u.length;n{var e=Object.prototype.toString,p=Math.max,w=function(O,k){for(var S=[],a=0;a{var w=p(7648);D.exports=Function.prototype.bind||w},210:(D,e,p)=>{var w,O=SyntaxError,k=Function,S=TypeError,a=function(m){try{return k('"use strict"; return ('+m+").constructor;")()}catch{}},t=Object.getOwnPropertyDescriptor;if(t)try{t({},"")}catch{t=null}var c=function(){throw new S},u=t?function(){try{return c}catch{try{return t(arguments,"callee").get}catch{return c}}}():c,s=p(1405)(),r=p(8185)(),n=Object.getPrototypeOf||(r?function(m){return m.__proto__}:null),o={},i=typeof Uint8Array<"u"&&n?n(Uint8Array):w,f={"%AggregateError%":typeof AggregateError>"u"?w:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?w:ArrayBuffer,"%ArrayIteratorPrototype%":s&&n?n([][Symbol.iterator]()):w,"%AsyncFromSyncIteratorPrototype%":w,"%AsyncFunction%":o,"%AsyncGenerator%":o,"%AsyncGeneratorFunction%":o,"%AsyncIteratorPrototype%":o,"%Atomics%":typeof Atomics>"u"?w:Atomics,"%BigInt%":typeof BigInt>"u"?w:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?w:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?w:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?w:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?w:Float32Array,"%Float64Array%":typeof Float64Array>"u"?w:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?w:FinalizationRegistry,"%Function%":k,"%GeneratorFunction%":o,"%Int8Array%":typeof Int8Array>"u"?w:Int8Array,"%Int16Array%":typeof Int16Array>"u"?w:Int16Array,"%Int32Array%":typeof Int32Array>"u"?w:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s&&n?n(n([][Symbol.iterator]())):w,"%JSON%":typeof JSON=="object"?JSON:w,"%Map%":typeof Map>"u"?w:Map,"%MapIteratorPrototype%":typeof Map<"u"&&s&&n?n(new Map()[Symbol.iterator]()):w,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?w:Promise,"%Proxy%":typeof Proxy>"u"?w:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?w:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?w:Set,"%SetIteratorPrototype%":typeof Set<"u"&&s&&n?n(new Set()[Symbol.iterator]()):w,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?w:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s&&n?n(""[Symbol.iterator]()):w,"%Symbol%":s?Symbol:w,"%SyntaxError%":O,"%ThrowTypeError%":u,"%TypedArray%":i,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?w:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?w:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?w:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?w:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?w:WeakMap,"%WeakRef%":typeof WeakRef>"u"?w:WeakRef,"%WeakSet%":typeof WeakSet>"u"?w:WeakSet};if(n)try{null.error}catch(m){var d=n(n(m));f["%Error.prototype%"]=d}var h=function m(E){var B;if(E==="%AsyncFunction%")B=a("async function () {}");else if(E==="%GeneratorFunction%")B=a("function* () {}");else if(E==="%AsyncGeneratorFunction%")B=a("async function* () {}");else if(E==="%AsyncGenerator%"){var T=m("%AsyncGeneratorFunction%");T&&(B=T.prototype)}else if(E==="%AsyncIteratorPrototype%"){var q=m("%AsyncGenerator%");q&&n&&(B=n(q.prototype))}return f[E]=B,B},_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=p(8612),I=p(7642),l=b.call(Function.call,Array.prototype.concat),j=b.call(Function.apply,Array.prototype.splice),M=b.call(Function.call,String.prototype.replace),N=b.call(Function.call,String.prototype.slice),C=b.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,v=function(m,E){var B,T=m;if(I(_,T)&&(T="%"+(B=_[T])[0]+"%"),I(f,T)){var q=f[T];if(q===o&&(q=h(T)),q===void 0&&!E)throw new S("intrinsic "+m+" exists, but is not available. Please file an issue!");return{alias:B,name:T,value:q}}throw new O("intrinsic "+m+" does not exist!")};D.exports=function(m,E){if(typeof m!="string"||m.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof E!="boolean")throw new S('"allowMissing" argument must be a boolean');if(C(/^%?[^%]*%?$/,m)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=function(ae){var he=N(ae,0,1),le=N(ae,-1);if(he==="%"&&le!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(le==="%"&&he!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var ce=[];return M(ae,x,function(ve,de,pe,ye){ce[ce.length]=pe?M(ye,P,"$1"):de||ve}),ce}(m),T=B.length>0?B[0]:"",q=v("%"+T+"%",E),te=q.name,re=q.value,ie=!1,J=q.alias;J&&(T=J[0],j(B,l([0,1],J)));for(var ee=1,G=!0;ee=B.length){var F=t(re,$);re=(G=!!F)&&"get"in F&&!("originalValue"in F.get)?F.get:re[$]}else G=I(re,$),re=re[$];G&&!ie&&(f[te]=re)}}return re}},7296:(D,e,p)=>{var w=p(210)("%Object.getOwnPropertyDescriptor%",!0);if(w)try{w([],"length")}catch{w=null}D.exports=w},1044:(D,e,p)=>{var w=p(210)("%Object.defineProperty%",!0),O=function(){if(w)try{return w({},"a",{value:1}),!0}catch{return!1}return!1};O.hasArrayLengthDefineBug=function(){if(!O())return null;try{return w([],"length",{value:1}).length!==1}catch{return!0}},D.exports=O},8185:D=>{var e={foo:{}},p=Object;D.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof p)}},1405:(D,e,p)=>{var w=typeof Symbol<"u"&&Symbol,O=p(5419);D.exports=function(){return typeof w=="function"&&typeof Symbol=="function"&&typeof w("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&O()}},5419:D=>{D.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},p=Symbol("test"),w=Object(p);if(typeof p=="string"||Object.prototype.toString.call(p)!=="[object Symbol]"||Object.prototype.toString.call(w)!=="[object Symbol]")return!1;for(p in e[p]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var O=Object.getOwnPropertySymbols(e);if(O.length!==1||O[0]!==p||!Object.prototype.propertyIsEnumerable.call(e,p))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var k=Object.getOwnPropertyDescriptor(e,p);if(k.value!==42||k.enumerable!==!0)return!1}return!0}},6410:(D,e,p)=>{var w=p(5419);D.exports=function(){return w()&&!!Symbol.toStringTag}},7642:D=>{var e={}.hasOwnProperty,p=Function.prototype.call;D.exports=p.bind?p.bind(e):function(w,O){return p.call(e,w,O)}},3349:(D,e,p)=>{var w=p(9509).Buffer,O=p(8473).Transform;function k(S){O.call(this),this._block=w.allocUnsafe(S),this._blockSize=S,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(5717)(k,O),k.prototype._transform=function(S,a,t){var c=null;try{this.update(S,a)}catch(u){c=u}t(c)},k.prototype._flush=function(S){var a=null;try{this.push(this.digest())}catch(t){a=t}S(a)},k.prototype.update=function(S,a){if(function(n,o){if(!w.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer")}(S),this._finalized)throw new Error("Digest already called");w.isBuffer(S)||(S=w.from(S,a));for(var t=this._block,c=0;this._blockOffset+S.length-c>=this._blockSize;){for(var u=this._blockOffset;u0;++s)this._length[s]+=r,(r=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*r);return this},k.prototype._update=function(){throw new Error("_update is not implemented")},k.prototype.digest=function(S){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var a=this._digest();S!==void 0&&(a=a.toString(S)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return a},k.prototype._digest=function(){throw new Error("_digest is not implemented")},D.exports=k},3715:(D,e,p)=>{var w=e;w.utils=p(6436),w.common=p(5772),w.sha=p(9041),w.ripemd=p(2949),w.hmac=p(2344),w.sha1=w.sha.sha1,w.sha256=w.sha.sha256,w.sha224=w.sha.sha224,w.sha384=w.sha.sha384,w.sha512=w.sha.sha512,w.ripemd160=w.ripemd.ripemd160},5772:(D,e,p)=>{var w=p(6436),O=p(9746);function k(){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}e.BlockHash=k,k.prototype.update=function(S,a){if(S=w.toArray(S,a),this.pending?this.pending=this.pending.concat(S):this.pending=S,this.pendingTotal+=S.length,this.pending.length>=this._delta8){var t=(S=this.pending).length%this._delta8;this.pending=S.slice(S.length-t,S.length),this.pending.length===0&&(this.pending=null),S=w.join32(S,0,S.length-t,this.endian);for(var c=0;c>>24&255,c[u++]=S>>>16&255,c[u++]=S>>>8&255,c[u++]=255&S}else for(c[u++]=255&S,c[u++]=S>>>8&255,c[u++]=S>>>16&255,c[u++]=S>>>24&255,c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=0,s=8;s{var w=p(6436),O=p(9746);function k(S,a,t){if(!(this instanceof k))return new k(S,a,t);this.Hash=S,this.blockSize=S.blockSize/8,this.outSize=S.outSize/8,this.inner=null,this.outer=null,this._init(w.toArray(a,t))}D.exports=k,k.prototype._init=function(S){S.length>this.blockSize&&(S=new this.Hash().update(S).digest()),O(S.length<=this.blockSize);for(var a=S.length;a{var w=p(6436),O=p(5772),k=w.rotl32,S=w.sum32,a=w.sum32_3,t=w.sum32_4,c=O.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(h,_,b,I){return h<=15?_^b^I:h<=31?_&b|~_&I:h<=47?(_|~b)^I:h<=63?_&I|b&~I:_^(b|~I)}function r(h){return h<=15?0:h<=31?1518500249:h<=47?1859775393:h<=63?2400959708:2840853838}function n(h){return h<=15?1352829926:h<=31?1548603684:h<=47?1836072691:h<=63?2053994217:0}w.inherits(u,c),e.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(h,_){for(var b=this.h[0],I=this.h[1],l=this.h[2],j=this.h[3],M=this.h[4],N=b,C=I,x=l,P=j,v=M,m=0;m<80;m++){var E=S(k(t(b,s(m,I,l,j),h[o[m]+_],r(m)),f[m]),M);b=M,M=j,j=k(l,10),l=I,I=E,E=S(k(t(N,s(79-m,C,x,P),h[i[m]+_],n(m)),d[m]),v),N=v,v=P,P=k(x,10),x=C,C=E}E=a(this.h[1],l,P),this.h[1]=a(this.h[2],j,v),this.h[2]=a(this.h[3],M,N),this.h[3]=a(this.h[4],b,C),this.h[4]=a(this.h[0],I,x),this.h[0]=E},u.prototype._digest=function(h){return h==="hex"?w.toHex32(this.h,"little"):w.split32(this.h,"little")};var o=[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],i=[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],f=[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],d=[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]},9041:(D,e,p)=>{e.sha1=p(4761),e.sha224=p(799),e.sha256=p(9344),e.sha384=p(772),e.sha512=p(5900)},4761:(D,e,p)=>{var w=p(6436),O=p(5772),k=p(7038),S=w.rotl32,a=w.sum32,t=w.sum32_5,c=k.ft_1,u=O.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function r(){if(!(this instanceof r))return new r;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}w.inherits(r,u),D.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(n,o){for(var i=this.W,f=0;f<16;f++)i[f]=n[o+f];for(;f{var w=p(6436),O=p(9344);function k(){if(!(this instanceof k))return new k;O.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}w.inherits(k,O),D.exports=k,k.blockSize=512,k.outSize=224,k.hmacStrength=192,k.padLength=64,k.prototype._digest=function(S){return S==="hex"?w.toHex32(this.h.slice(0,7),"big"):w.split32(this.h.slice(0,7),"big")}},9344:(D,e,p)=>{var w=p(6436),O=p(5772),k=p(7038),S=p(9746),a=w.sum32,t=w.sum32_4,c=w.sum32_5,u=k.ch32,s=k.maj32,r=k.s0_256,n=k.s1_256,o=k.g0_256,i=k.g1_256,f=O.BlockHash,d=[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 h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=d,this.W=new Array(64)}w.inherits(h,f),D.exports=h,h.blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(_,b){for(var I=this.W,l=0;l<16;l++)I[l]=_[b+l];for(;l{var w=p(6436),O=p(5900);function k(){if(!(this instanceof k))return new k;O.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}w.inherits(k,O),D.exports=k,k.blockSize=1024,k.outSize=384,k.hmacStrength=192,k.padLength=128,k.prototype._digest=function(S){return S==="hex"?w.toHex32(this.h.slice(0,12),"big"):w.split32(this.h.slice(0,12),"big")}},5900:(D,e,p)=>{var w=p(6436),O=p(5772),k=p(9746),S=w.rotr64_hi,a=w.rotr64_lo,t=w.shr64_hi,c=w.shr64_lo,u=w.sum64,s=w.sum64_hi,r=w.sum64_lo,n=w.sum64_4_hi,o=w.sum64_4_lo,i=w.sum64_5_hi,f=w.sum64_5_lo,d=O.BlockHash,h=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function _(){if(!(this instanceof _))return new _;d.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=h,this.W=new Array(160)}function b(m,E,B,T,q){var te=m&B^~m&q;return te<0&&(te+=4294967296),te}function I(m,E,B,T,q,te){var re=E&T^~E&te;return re<0&&(re+=4294967296),re}function l(m,E,B,T,q){var te=m&B^m&q^B&q;return te<0&&(te+=4294967296),te}function j(m,E,B,T,q,te){var re=E&T^E&te^T&te;return re<0&&(re+=4294967296),re}function M(m,E){var B=S(m,E,28)^S(E,m,2)^S(E,m,7);return B<0&&(B+=4294967296),B}function N(m,E){var B=a(m,E,28)^a(E,m,2)^a(E,m,7);return B<0&&(B+=4294967296),B}function C(m,E){var B=a(m,E,14)^a(m,E,18)^a(E,m,9);return B<0&&(B+=4294967296),B}function x(m,E){var B=S(m,E,1)^S(m,E,8)^t(m,E,7);return B<0&&(B+=4294967296),B}function P(m,E){var B=a(m,E,1)^a(m,E,8)^c(m,E,7);return B<0&&(B+=4294967296),B}function v(m,E){var B=a(m,E,19)^a(E,m,29)^c(m,E,6);return B<0&&(B+=4294967296),B}w.inherits(_,d),D.exports=_,_.blockSize=1024,_.outSize=512,_.hmacStrength=192,_.padLength=128,_.prototype._prepareBlock=function(m,E){for(var B=this.W,T=0;T<32;T++)B[T]=m[E+T];for(;T{var w=p(6436).rotr32;function O(a,t,c){return a&t^~a&c}function k(a,t,c){return a&t^a&c^t&c}function S(a,t,c){return a^t^c}e.ft_1=function(a,t,c,u){return a===0?O(t,c,u):a===1||a===3?S(t,c,u):a===2?k(t,c,u):void 0},e.ch32=O,e.maj32=k,e.p32=S,e.s0_256=function(a){return w(a,2)^w(a,13)^w(a,22)},e.s1_256=function(a){return w(a,6)^w(a,11)^w(a,25)},e.g0_256=function(a){return w(a,7)^w(a,18)^a>>>3},e.g1_256=function(a){return w(a,17)^w(a,19)^a>>>10}},6436:(D,e,p)=>{var w=p(9746),O=p(5717);function k(c,u){return(64512&c.charCodeAt(u))==55296&&!(u<0||u+1>=c.length)&&(64512&c.charCodeAt(u+1))==56320}function S(c){return(c>>>24|c>>>8&65280|c<<8&16711680|(255&c)<<24)>>>0}function a(c){return c.length===1?"0"+c:c}function t(c){return c.length===7?"0"+c:c.length===6?"00"+c:c.length===5?"000"+c:c.length===4?"0000"+c:c.length===3?"00000"+c:c.length===2?"000000"+c:c.length===1?"0000000"+c:c}e.inherits=O,e.toArray=function(c,u){if(Array.isArray(c))return c.slice();if(!c)return[];var s=[];if(typeof c=="string")if(u){if(u==="hex")for((c=c.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(c="0"+c),n=0;n>6|192,s[r++]=63&o|128):k(c,n)?(o=65536+((1023&o)<<10)+(1023&c.charCodeAt(++n)),s[r++]=o>>18|240,s[r++]=o>>12&63|128,s[r++]=o>>6&63|128,s[r++]=63&o|128):(s[r++]=o>>12|224,s[r++]=o>>6&63|128,s[r++]=63&o|128)}else for(n=0;n>>0}return o},e.split32=function(c,u){for(var s=new Array(4*c.length),r=0,n=0;r>>24,s[n+1]=o>>>16&255,s[n+2]=o>>>8&255,s[n+3]=255&o):(s[n+3]=o>>>24,s[n+2]=o>>>16&255,s[n+1]=o>>>8&255,s[n]=255&o)}return s},e.rotr32=function(c,u){return c>>>u|c<<32-u},e.rotl32=function(c,u){return c<>>32-u},e.sum32=function(c,u){return c+u>>>0},e.sum32_3=function(c,u,s){return c+u+s>>>0},e.sum32_4=function(c,u,s,r){return c+u+s+r>>>0},e.sum32_5=function(c,u,s,r,n){return c+u+s+r+n>>>0},e.sum64=function(c,u,s,r){var n=c[u],o=r+c[u+1]>>>0,i=(o>>0,c[u+1]=o},e.sum64_hi=function(c,u,s,r){return(u+r>>>0>>0},e.sum64_lo=function(c,u,s,r){return u+r>>>0},e.sum64_4_hi=function(c,u,s,r,n,o,i,f){var d=0,h=u;return d+=(h=h+r>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(c,u,s,r,n,o,i,f){return u+r+o+f>>>0},e.sum64_5_hi=function(c,u,s,r,n,o,i,f,d,h){var _=0,b=u;return _+=(b=b+r>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(c,u,s,r,n,o,i,f,d,h){return u+r+o+f+h>>>0},e.rotr64_hi=function(c,u,s){return(u<<32-s|c>>>s)>>>0},e.rotr64_lo=function(c,u,s){return(c<<32-s|u>>>s)>>>0},e.shr64_hi=function(c,u,s){return c>>>s},e.shr64_lo=function(c,u,s){return(c<<32-s|u>>>s)>>>0}},2156:(D,e,p)=>{var w=p(3715),O=p(4504),k=p(9746);function S(a){if(!(this instanceof S))return new S(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=O.toArray(a.entropy,a.entropyEnc||"hex"),c=O.toArray(a.nonce,a.nonceEnc||"hex"),u=O.toArray(a.pers,a.persEnc||"hex");k(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,c,u)}D.exports=S,S.prototype._init=function(a,t,c){var u=a.concat(t).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(c||[])),this._reseed=1},S.prototype.generate=function(a,t,c,u){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(u=c,c=t,t=null),c&&(c=O.toArray(c,u||"hex"),this._update(c));for(var s=[];s.length{e.read=function(p,w,O,k,S){var a,t,c=8*S-k-1,u=(1<>1,r=-7,n=O?S-1:0,o=O?-1:1,i=p[w+n];for(n+=o,a=i&(1<<-r)-1,i>>=-r,r+=c;r>0;a=256*a+p[w+n],n+=o,r-=8);for(t=a&(1<<-r)-1,a>>=-r,r+=k;r>0;t=256*t+p[w+n],n+=o,r-=8);if(a===0)a=1-s;else{if(a===u)return t?NaN:1/0*(i?-1:1);t+=Math.pow(2,k),a-=s}return(i?-1:1)*t*Math.pow(2,a-k)},e.write=function(p,w,O,k,S,a){var t,c,u,s=8*a-S-1,r=(1<>1,o=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=k?0:a-1,f=k?1:-1,d=w<0||w===0&&1/w<0?1:0;for(w=Math.abs(w),isNaN(w)||w===1/0?(c=isNaN(w)?1:0,t=r):(t=Math.floor(Math.log(w)/Math.LN2),w*(u=Math.pow(2,-t))<1&&(t--,u*=2),(w+=t+n>=1?o/u:o*Math.pow(2,1-n))*u>=2&&(t++,u/=2),t+n>=r?(c=0,t=r):t+n>=1?(c=(w*u-1)*Math.pow(2,S),t+=n):(c=w*Math.pow(2,n-1)*Math.pow(2,S),t=0));S>=8;p[O+i]=255&c,i+=f,c/=256,S-=8);for(t=t<0;p[O+i]=255&t,i+=f,t/=256,s-=8);p[O+i-f]|=128*d}},5717:D=>{typeof Object.create=="function"?D.exports=function(e,p){p&&(e.super_=p,e.prototype=Object.create(p.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(e,p){if(p){e.super_=p;var w=function(){};w.prototype=p.prototype,e.prototype=new w,e.prototype.constructor=e}}},2584:(D,e,p)=>{var w=p(6410)(),O=p(1924)("Object.prototype.toString"),k=function(t){return!(w&&t&&typeof t=="object"&&Symbol.toStringTag in t)&&O(t)==="[object Arguments]"},S=function(t){return!!k(t)||t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&O(t)!=="[object Array]"&&O(t.callee)==="[object Function]"},a=function(){return k(arguments)}();k.isLegacyArguments=S,D.exports=a?k:S},5320:D=>{var e,p,w=Function.prototype.toString,O=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof O=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw p}}),p={},O(function(){throw 42},null,e)}catch(n){n!==p&&(O=null)}else O=null;var k=/^\s*class\b/,S=function(n){try{var o=w.call(n);return k.test(o)}catch{return!1}},a=function(n){try{return!S(n)&&(w.call(n),!0)}catch{return!1}},t=Object.prototype.toString,c=typeof Symbol=="function"&&!!Symbol.toStringTag,u=!(0 in[,]),s=function(){return!1};if(typeof document=="object"){var r=document.all;t.call(r)===t.call(document.all)&&(s=function(n){if((u||!n)&&(n===void 0||typeof n=="object"))try{var o=t.call(n);return(o==="[object HTMLAllCollection]"||o==="[object HTML document.all class]"||o==="[object HTMLCollection]"||o==="[object Object]")&&n("")==null}catch{}return!1})}D.exports=O?function(n){if(s(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{O(n,null,e)}catch(o){if(o!==p)return!1}return!S(n)&&a(n)}:function(n){if(s(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(c)return a(n);if(S(n))return!1;var o=t.call(n);return!(o!=="[object Function]"&&o!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(o))&&a(n)}},8662:(D,e,p)=>{var w,O=Object.prototype.toString,k=Function.prototype.toString,S=/^\s*(?:function)?\*/,a=p(6410)(),t=Object.getPrototypeOf;D.exports=function(c){if(typeof c!="function")return!1;if(S.test(k.call(c)))return!0;if(!a)return O.call(c)==="[object GeneratorFunction]";if(!t)return!1;if(w===void 0){var u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}}();w=!!u&&t(u)}return t(c)===w}},8611:D=>{D.exports=function(e){return e!=e}},360:(D,e,p)=>{var w=p(5559),O=p(4289),k=p(8611),S=p(9415),a=p(3194),t=w(S(),Number);O(t,{getPolyfill:S,implementation:k,shim:a}),D.exports=t},9415:(D,e,p)=>{var w=p(8611);D.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:w}},3194:(D,e,p)=>{var w=p(4289),O=p(9415);D.exports=function(){var k=O();return w(Number,{isNaN:k},{isNaN:function(){return Number.isNaN!==k}}),k}},5692:(D,e,p)=>{var w=p(6430);D.exports=function(O){return!!w(O)}},3720:D=>{D.exports=p;var e=null;try{e=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{}function p(N,C,x){this.low=0|N,this.high=0|C,this.unsigned=!!x}function w(N){return(N&&N.__isLong__)===!0}p.prototype.__isLong__,Object.defineProperty(p.prototype,"__isLong__",{value:!0}),p.isLong=w;var O={},k={};function S(N,C){var x,P,v;return C?(v=0<=(N>>>=0)&&N<256)&&(P=k[N])?P:(x=t(N,(0|N)<0?-1:0,!0),v&&(k[N]=x),x):(v=-128<=(N|=0)&&N<128)&&(P=O[N])?P:(x=t(N,N<0?-1:0,!1),v&&(O[N]=x),x)}function a(N,C){if(isNaN(N))return C?d:f;if(C){if(N<0)return d;if(N>=n)return l}else{if(N<=-o)return j;if(N+1>=o)return I}return N<0?a(-N,C).neg():t(N%r|0,N/r|0,C)}function t(N,C,x){return new p(N,C,x)}p.fromInt=S,p.fromNumber=a,p.fromBits=t;var c=Math.pow;function u(N,C,x){if(N.length===0)throw Error("empty string");if(N==="NaN"||N==="Infinity"||N==="+Infinity"||N==="-Infinity")return f;if(typeof C=="number"?(x=C,C=!1):C=!!C,(x=x||10)<2||360)throw Error("interior hyphen");if(P===0)return u(N.substring(1),C,x).neg();for(var v=a(c(x,8)),m=f,E=0;E>>0:this.low},M.toNumber=function(){return this.unsigned?(this.high>>>0)*r+(this.low>>>0):this.high*r+(this.low>>>0)},M.toString=function(N){if((N=N||10)<2||36>>0).toString(N);if((m=B).isZero())return T+E;for(;T.length<6;)T="0"+T;E=""+T+E}},M.getHighBits=function(){return this.high},M.getHighBitsUnsigned=function(){return this.high>>>0},M.getLowBits=function(){return this.low},M.getLowBitsUnsigned=function(){return this.low>>>0},M.getNumBitsAbs=function(){if(this.isNegative())return this.eq(j)?64:this.neg().getNumBitsAbs();for(var N=this.high!=0?this.high:this.low,C=31;C>0&&!(N&1<=0},M.isOdd=function(){return(1&this.low)==1},M.isEven=function(){return(1&this.low)==0},M.equals=function(N){return w(N)||(N=s(N)),(this.unsigned===N.unsigned||this.high>>>31!=1||N.high>>>31!=1)&&this.high===N.high&&this.low===N.low},M.eq=M.equals,M.notEquals=function(N){return!this.eq(N)},M.neq=M.notEquals,M.ne=M.notEquals,M.lessThan=function(N){return this.comp(N)<0},M.lt=M.lessThan,M.lessThanOrEqual=function(N){return this.comp(N)<=0},M.lte=M.lessThanOrEqual,M.le=M.lessThanOrEqual,M.greaterThan=function(N){return this.comp(N)>0},M.gt=M.greaterThan,M.greaterThanOrEqual=function(N){return this.comp(N)>=0},M.gte=M.greaterThanOrEqual,M.ge=M.greaterThanOrEqual,M.compare=function(N){if(w(N)||(N=s(N)),this.eq(N))return 0;var C=this.isNegative(),x=N.isNegative();return C&&!x?-1:!C&&x?1:this.unsigned?N.high>>>0>this.high>>>0||N.high===this.high&&N.low>>>0>this.low>>>0?-1:1:this.sub(N).isNegative()?-1:1},M.comp=M.compare,M.negate=function(){return!this.unsigned&&this.eq(j)?j:this.not().add(h)},M.neg=M.negate,M.add=function(N){w(N)||(N=s(N));var C=this.high>>>16,x=65535&this.high,P=this.low>>>16,v=65535&this.low,m=N.high>>>16,E=65535&N.high,B=N.low>>>16,T=0,q=0,te=0,re=0;return te+=(re+=v+(65535&N.low))>>>16,q+=(te+=P+B)>>>16,T+=(q+=x+E)>>>16,T+=C+m,t((te&=65535)<<16|(re&=65535),(T&=65535)<<16|(q&=65535),this.unsigned)},M.subtract=function(N){return w(N)||(N=s(N)),this.add(N.neg())},M.sub=M.subtract,M.multiply=function(N){if(this.isZero())return f;if(w(N)||(N=s(N)),e)return t(e.mul(this.low,this.high,N.low,N.high),e.get_high(),this.unsigned);if(N.isZero())return f;if(this.eq(j))return N.isOdd()?j:f;if(N.eq(j))return this.isOdd()?j:f;if(this.isNegative())return N.isNegative()?this.neg().mul(N.neg()):this.neg().mul(N).neg();if(N.isNegative())return this.mul(N.neg()).neg();if(this.lt(i)&&N.lt(i))return a(this.toNumber()*N.toNumber(),this.unsigned);var C=this.high>>>16,x=65535&this.high,P=this.low>>>16,v=65535&this.low,m=N.high>>>16,E=65535&N.high,B=N.low>>>16,T=65535&N.low,q=0,te=0,re=0,ie=0;return re+=(ie+=v*T)>>>16,te+=(re+=P*T)>>>16,re&=65535,te+=(re+=v*B)>>>16,q+=(te+=x*T)>>>16,te&=65535,q+=(te+=P*B)>>>16,te&=65535,q+=(te+=v*E)>>>16,q+=C*T+x*B+P*E+v*m,t((re&=65535)<<16|(ie&=65535),(q&=65535)<<16|(te&=65535),this.unsigned)},M.mul=M.multiply,M.divide=function(N){if(w(N)||(N=s(N)),N.isZero())throw Error("division by zero");var C,x,P;if(e)return this.unsigned||this.high!==-2147483648||N.low!==-1||N.high!==-1?t((this.unsigned?e.div_u:e.div_s)(this.low,this.high,N.low,N.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?d:f;if(this.unsigned){if(N.unsigned||(N=N.toUnsigned()),N.gt(this))return d;if(N.gt(this.shru(1)))return _;P=d}else{if(this.eq(j))return N.eq(h)||N.eq(b)?j:N.eq(j)?h:(C=this.shr(1).div(N).shl(1)).eq(f)?N.isNegative()?h:b:(x=this.sub(N.mul(C)),P=C.add(x.div(N)));if(N.eq(j))return this.unsigned?d:f;if(this.isNegative())return N.isNegative()?this.neg().div(N.neg()):this.neg().div(N).neg();if(N.isNegative())return this.div(N.neg()).neg();P=f}for(x=this;x.gte(N);){C=Math.max(1,Math.floor(x.toNumber()/N.toNumber()));for(var v=Math.ceil(Math.log(C)/Math.LN2),m=v<=48?1:c(2,v-48),E=a(C),B=E.mul(N);B.isNegative()||B.gt(x);)B=(E=a(C-=m,this.unsigned)).mul(N);E.isZero()&&(E=h),P=P.add(E),x=x.sub(B)}return P},M.div=M.divide,M.modulo=function(N){return w(N)||(N=s(N)),e?t((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,N.low,N.high),e.get_high(),this.unsigned):this.sub(this.div(N).mul(N))},M.mod=M.modulo,M.rem=M.modulo,M.not=function(){return t(~this.low,~this.high,this.unsigned)},M.and=function(N){return w(N)||(N=s(N)),t(this.low&N.low,this.high&N.high,this.unsigned)},M.or=function(N){return w(N)||(N=s(N)),t(this.low|N.low,this.high|N.high,this.unsigned)},M.xor=function(N){return w(N)||(N=s(N)),t(this.low^N.low,this.high^N.high,this.unsigned)},M.shiftLeft=function(N){return w(N)&&(N=N.toInt()),(N&=63)==0?this:N<32?t(this.low<>>32-N,this.unsigned):t(0,this.low<>>N|this.high<<32-N,this.high>>N,this.unsigned):t(this.high>>N-32,this.high>=0?0:-1,this.unsigned)},M.shr=M.shiftRight,M.shiftRightUnsigned=function(N){if(w(N)&&(N=N.toInt()),(N&=63)==0)return this;var C=this.high;return N<32?t(this.low>>>N|C<<32-N,C>>>N,this.unsigned):t(N===32?C:C>>>N-32,0,this.unsigned)},M.shru=M.shiftRightUnsigned,M.shr_u=M.shiftRightUnsigned,M.toSigned=function(){return this.unsigned?t(this.low,this.high,!1):this},M.toUnsigned=function(){return this.unsigned?this:t(this.low,this.high,!0)},M.toBytes=function(N){return N?this.toBytesLE():this.toBytesBE()},M.toBytesLE=function(){var N=this.high,C=this.low;return[255&C,C>>>8&255,C>>>16&255,C>>>24,255&N,N>>>8&255,N>>>16&255,N>>>24]},M.toBytesBE=function(){var N=this.high,C=this.low;return[N>>>24,N>>>16&255,N>>>8&255,255&N,C>>>24,C>>>16&255,C>>>8&255,255&C]},p.fromBytes=function(N,C,x){return x?p.fromBytesLE(N,C):p.fromBytesBE(N,C)},p.fromBytesLE=function(N,C){return new p(N[0]|N[1]<<8|N[2]<<16|N[3]<<24,N[4]|N[5]<<8|N[6]<<16|N[7]<<24,C)},p.fromBytesBE=function(N,C){return new p(N[4]<<24|N[5]<<16|N[6]<<8|N[7],N[0]<<24|N[1]<<16|N[2]<<8|N[3],C)}},2318:(D,e,p)=>{var w=p(5717),O=p(3349),k=p(9509).Buffer,S=new Array(16);function a(){O.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function t(n,o){return n<>>32-o}function c(n,o,i,f,d,h,_){return t(n+(o&i|~o&f)+d+h|0,_)+o|0}function u(n,o,i,f,d,h,_){return t(n+(o&f|i&~f)+d+h|0,_)+o|0}function s(n,o,i,f,d,h,_){return t(n+(o^i^f)+d+h|0,_)+o|0}function r(n,o,i,f,d,h,_){return t(n+(i^(o|~f))+d+h|0,_)+o|0}w(a,O),a.prototype._update=function(){for(var n=S,o=0;o<16;++o)n[o]=this._block.readInt32LE(4*o);var i=this._a,f=this._b,d=this._c,h=this._d;i=c(i,f,d,h,n[0],3614090360,7),h=c(h,i,f,d,n[1],3905402710,12),d=c(d,h,i,f,n[2],606105819,17),f=c(f,d,h,i,n[3],3250441966,22),i=c(i,f,d,h,n[4],4118548399,7),h=c(h,i,f,d,n[5],1200080426,12),d=c(d,h,i,f,n[6],2821735955,17),f=c(f,d,h,i,n[7],4249261313,22),i=c(i,f,d,h,n[8],1770035416,7),h=c(h,i,f,d,n[9],2336552879,12),d=c(d,h,i,f,n[10],4294925233,17),f=c(f,d,h,i,n[11],2304563134,22),i=c(i,f,d,h,n[12],1804603682,7),h=c(h,i,f,d,n[13],4254626195,12),d=c(d,h,i,f,n[14],2792965006,17),i=u(i,f=c(f,d,h,i,n[15],1236535329,22),d,h,n[1],4129170786,5),h=u(h,i,f,d,n[6],3225465664,9),d=u(d,h,i,f,n[11],643717713,14),f=u(f,d,h,i,n[0],3921069994,20),i=u(i,f,d,h,n[5],3593408605,5),h=u(h,i,f,d,n[10],38016083,9),d=u(d,h,i,f,n[15],3634488961,14),f=u(f,d,h,i,n[4],3889429448,20),i=u(i,f,d,h,n[9],568446438,5),h=u(h,i,f,d,n[14],3275163606,9),d=u(d,h,i,f,n[3],4107603335,14),f=u(f,d,h,i,n[8],1163531501,20),i=u(i,f,d,h,n[13],2850285829,5),h=u(h,i,f,d,n[2],4243563512,9),d=u(d,h,i,f,n[7],1735328473,14),i=s(i,f=u(f,d,h,i,n[12],2368359562,20),d,h,n[5],4294588738,4),h=s(h,i,f,d,n[8],2272392833,11),d=s(d,h,i,f,n[11],1839030562,16),f=s(f,d,h,i,n[14],4259657740,23),i=s(i,f,d,h,n[1],2763975236,4),h=s(h,i,f,d,n[4],1272893353,11),d=s(d,h,i,f,n[7],4139469664,16),f=s(f,d,h,i,n[10],3200236656,23),i=s(i,f,d,h,n[13],681279174,4),h=s(h,i,f,d,n[0],3936430074,11),d=s(d,h,i,f,n[3],3572445317,16),f=s(f,d,h,i,n[6],76029189,23),i=s(i,f,d,h,n[9],3654602809,4),h=s(h,i,f,d,n[12],3873151461,11),d=s(d,h,i,f,n[15],530742520,16),i=r(i,f=s(f,d,h,i,n[2],3299628645,23),d,h,n[0],4096336452,6),h=r(h,i,f,d,n[7],1126891415,10),d=r(d,h,i,f,n[14],2878612391,15),f=r(f,d,h,i,n[5],4237533241,21),i=r(i,f,d,h,n[12],1700485571,6),h=r(h,i,f,d,n[3],2399980690,10),d=r(d,h,i,f,n[10],4293915773,15),f=r(f,d,h,i,n[1],2240044497,21),i=r(i,f,d,h,n[8],1873313359,6),h=r(h,i,f,d,n[15],4264355552,10),d=r(d,h,i,f,n[6],2734768916,15),f=r(f,d,h,i,n[13],1309151649,21),i=r(i,f,d,h,n[4],4149444226,6),h=r(h,i,f,d,n[11],3174756917,10),d=r(d,h,i,f,n[2],718787259,15),f=r(f,d,h,i,n[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+f|0,this._c=this._c+d|0,this._d=this._d+h|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var n=k.allocUnsafe(16);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n},D.exports=a},9746:D=>{function e(p,w){if(!p)throw new Error(w||"Assertion failed")}D.exports=e,e.equal=function(p,w,O){if(p!=w)throw new Error(O||"Assertion failed: "+p+" != "+w)}},4504:(D,e)=>{var p=e;function w(k){return k.length===1?"0"+k:k}function O(k){for(var S="",a=0;a>8,s=255&c;u?a.push(u,s):a.push(s)}return a},p.zero2=w,p.toHex=O,p.encode=function(k,S){return S==="hex"?O(k):k}},45:function(D,e,p){var w=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){f.done?s(f.value):new c(function(d){d(f.value)}).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=p(3555),k=p(8982);class S{static importKey(t,c,u=new O.WebCryptoProvider){return w(this,void 0,void 0,function*(){return new S(yield k.SIV.importKey(t,c,u))})}constructor(t){this._siv=t}seal(t,c,u=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._siv.seal(t,[u,c])})}open(t,c,u=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._siv.open(t,[u,c])})}clear(){return this._siv.clear(),this}}e.AEAD=S},4870:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0});class p extends Error{constructor(k){super(k),Object.setPrototypeOf(this,p.prototype)}}e.IntegrityError=p;class w extends Error{constructor(k){super(k),Object.setPrototypeOf(this,w.prototype)}}e.NotImplementedError=w},9463:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(u){for(var s in u)e.hasOwnProperty(s)||(e[s]=u[s])}(p(4870));var w=p(45);e.AEAD=w.AEAD;var O=p(8982);e.SIV=O.SIV;var k=p(8711);e.StreamEncryptor=k.StreamEncryptor,e.StreamDecryptor=k.StreamDecryptor;var S=p(8572);e.CMAC=S.CMAC;var a=p(8462);e.PMAC=a.PMAC;var t=p(3511);e.PolyfillCryptoProvider=t.PolyfillCryptoProvider;var c=p(3555);e.WebCryptoProvider=c.WebCryptoProvider},3618:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0});const w=p(8877),O=p(3082);class k{constructor(){this.data=new Uint8Array(k.SIZE)}clear(){O.wipe(this.data)}clone(){const a=new k;return a.copy(this),a}copy(a){this.data.set(a.data)}dbl(){let a=0;for(let t=k.SIZE-1;t>=0;t--){const c=this.data[t]>>>7&255;this.data[t]=this.data[t]<<1|a,a=c}this.data[k.SIZE-1]^=w.select(a,k.R,0),a=0}}k.SIZE=16,k.R=135,e.default=k},8877:(D,e)=>{function p(w,O){if(w.length!==O.length)return 0;let k=0;for(let S=0;S>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(w,O,k){return~(w-1)&O|w-1&k},e.compare=p,e.equal=function(w,O){return w.length!==0&&O.length!==0&&p(w,O)!==0}},2104:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0});const p=new Uint8Array([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0]);e.ctz=function(w){return p[w]}},3082:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(p){for(let w=0;w{Object.defineProperty(e,"__esModule",{value:!0}),e.xor=function(p,w){for(let O=0;Oc){for(let r=0;rO.default.SIZE;){for(let r=0;r0;d--){const h=k.select(1&i.data[d-1],128,0);i.data[d]=i.data[d]>>>1|h}return i.data[0]>>>=1,i.data[0]^=k.select(f,128,0),i.data[O.default.SIZE-1]^=k.select(f,O.default.R>>>1,0),new t(r,o,i)})}reset(){return this._buffer.clear(),this._bufferPos=0,this._counter=0,this._offset.clear(),this._tag.clear(),this._finished=!1,this}clear(){this.reset(),this._cipher.clear()}update(u){return w(this,void 0,void 0,function*(){if(this._finished)throw new Error("pmac: already finished");const s=O.default.SIZE-this._bufferPos;let r=0,n=u.length;for(n>s&&(this._buffer.data.set(u.slice(0,s),this._bufferPos),r+=s,n-=s,yield this._processBuffer());n>O.default.SIZE;)this._buffer.data.set(u.slice(r,r+O.default.SIZE)),r+=O.default.SIZE,n-=O.default.SIZE,yield this._processBuffer();return n>0&&(this._buffer.data.set(u.slice(r,r+n),this._bufferPos),this._bufferPos+=n),this})}finish(){return w(this,void 0,void 0,function*(){if(this._finished)throw new Error("pmac: already finished");return this._bufferPos===O.default.SIZE?(a.xor(this._tag.data,this._buffer.data),a.xor(this._tag.data,this._LInv.data)):(a.xor(this._tag.data,this._buffer.data.slice(0,this._bufferPos)),this._tag.data[this._bufferPos]^=128),yield this._cipher.encryptBlock(this._tag),this._finished=!0,this._tag.clone().data})}_processBuffer(){return w(this,void 0,void 0,function*(){a.xor(this._offset.data,this._L[S.ctz(this._counter+1)].data),a.xor(this._buffer.data,this._offset.data),this._counter++,yield this._cipher.encryptBlock(this._buffer),a.xor(this._tag.data,this._buffer.data),this._bufferPos=0})}}e.PMAC=t},3511:function(D,e,p){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){i.done?u(i.value):new t(function(f){f(i.value)}).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=p(4274),k=p(3056);e.PolyfillCryptoProvider=class{constructor(){}importBlockCipherKey(S){return w(this,void 0,void 0,function*(){return new O.default(S)})}importCTRKey(S){return w(this,void 0,void 0,function*(){return new k.default(new O.default(S))})}}},4274:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0});const w=p(3082),O=new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47]),k=new Uint8Array([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]),S=new Uint8Array([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]);let a,t,c,u,s,r,n,o,i=!1;function f(_,b=0){return(_[b]<<24|_[b+1]<<16|_[b+2]<<8|_[b+3])>>>0}function d(_,b=new Uint8Array(4),I=0){return b[I+0]=_>>>24,b[I+1]=_>>>16,b[I+2]=_>>>8,b[I+3]=_>>>0,b}function h(_){return k[_>>>24&255]<<24|k[_>>>16&255]<<16|k[_>>>8&255]<<8|k[255&_]}e.default=class{constructor(_){if(i||function(){function b(l,j){let M=l,N=j,C=0;for(let x=1;x<256&&N!==0;x<<=1)N&x&&(C^=M,N^=x),M<<=1,256&M&&(M^=283);return C}const I=l=>l<<24|l>>>8;a=new Uint32Array(256),t=new Uint32Array(256),c=new Uint32Array(256),u=new Uint32Array(256);for(let l=0;l<256;l++){const j=k[l];let M=b(j,2)<<24|j<<16|j<<8|b(j,3);a[l]=M,M=I(M),t[l]=M,M=I(M),c[l]=M,M=I(M),u[l]=M,M=I(M)}s=new Uint32Array(256),r=new Uint32Array(256),n=new Uint32Array(256),o=new Uint32Array(256);for(let l=0;l<256;l++){const j=S[l];let M=b(j,14)<<24|b(j,9)<<16|b(j,13)<<8|b(j,11);s[l]=M,M=I(M),r[l]=M,M=I(M),n[l]=M,M=I(M),o[l]=M,M=I(M)}i=!0}(),_.length!==16&&_.length!==32)throw new Error(`Miscreant: invalid key length: ${_.length} (expected 16 or 32 bytes)`);this._encKey=function(b){const I=new Uint32Array(b.length+28),l=b.length/4|0,j=I.length;for(let N=0;N>>24)^O[N/l-1]<<24:l>6&&N%l==4&&(C=h(C)),I[N]=I[N-l]^C}var M;return I}(_),this._emptyPromise=Promise.resolve(this)}clear(){return this._encKey&&w.wipe(this._encKey),this}encryptBlock(_){const b=_.data,I=_.data;let l=f(b,0),j=f(b,4),M=f(b,8),N=f(b,12);l^=this._encKey[0],j^=this._encKey[1],M^=this._encKey[2],N^=this._encKey[3];let C=0,x=0,P=0,v=0;const m=this._encKey.length/4-2;let E=4;for(let B=0;B>>24&255]^t[j>>>16&255]^c[M>>>8&255]^u[255&N],x=this._encKey[E+1]^a[j>>>24&255]^t[M>>>16&255]^c[N>>>8&255]^u[255&l],P=this._encKey[E+2]^a[M>>>24&255]^t[N>>>16&255]^c[l>>>8&255]^u[255&j],v=this._encKey[E+3]^a[N>>>24&255]^t[l>>>16&255]^c[j>>>8&255]^u[255&M],E+=4,l=C,j=x,M=P,N=v;return l=k[C>>>24]<<24|k[x>>>16&255]<<16|k[P>>>8&255]<<8|k[255&v],j=k[x>>>24]<<24|k[P>>>16&255]<<16|k[v>>>8&255]<<8|k[255&C],M=k[P>>>24]<<24|k[v>>>16&255]<<16|k[C>>>8&255]<<8|k[255&x],N=k[v>>>24]<<24|k[C>>>16&255]<<16|k[x>>>8&255]<<8|k[255&P],l^=this._encKey[E+0],j^=this._encKey[E+1],M^=this._encKey[E+2],N^=this._encKey[E+3],d(l,I,0),d(j,I,4),d(M,I,8),d(N,I,12),this._emptyPromise}}},3056:function(D,e,p){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){i.done?u(i.value):new t(function(f){f(i.value)}).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=p(3618);function k(S){let a=1;for(let t=O.default.SIZE-1;t>=0;t--)a+=255&S.data[t]|0,S.data[t]=255&a,a>>>=8}e.default=class{constructor(S){this._cipher=S,this._counter=new O.default,this._buffer=new O.default}clear(){return this._buffer.clear(),this._counter.clear(),this._cipher.clear(),this}encryptCtr(S,a){return w(this,void 0,void 0,function*(){if(S.length!==O.default.SIZE)throw new Error("CTR: iv length must be equal to cipher block size");this._counter.data.set(S);let t=O.default.SIZE;const c=new Uint8Array(a.length);for(let u=0;ue.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");const d=t.default.SIZE+i.length,h=new Uint8Array(d),_=yield this._s2v(f,i);return h.set(_),n(_),h.set(yield this._ctr.encryptCtr(_,i),_.length),h})}open(i,f){return w(this,void 0,void 0,function*(){if(f.length>e.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");if(i.length=t.default.SIZE){const d=f.length-t.default.SIZE;this._tmp1.data.set(f.subarray(d)),yield this._mac.update(f.subarray(0,d))}else this._tmp1.data.set(f),this._tmp1.data[f.length]=128,this._tmp2.dbl();return S.xor(this._tmp1.data,this._tmp2.data),yield this._mac.update(this._tmp1.data),this._mac.finish()})}}function n(o){o[o.length-8]&=127,o[o.length-4]&=127}e.SIV=r},8711:function(D,e,p){var w=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{d(r.next(h))}catch(_){o(_)}}function f(h){try{d(r.throw(h))}catch(_){o(_)}}function d(h){h.done?n(h.value):new s(function(_){_(h.value)}).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=p(45),k=p(3555);e.NONCE_SIZE=8,e.LAST_BLOCK_FLAG=1,e.COUNTER_MAX=4294967295;class S{static importKey(u,s,r,n=new k.WebCryptoProvider){return w(this,void 0,void 0,function*(){return new S(yield O.AEAD.importKey(u,r,n),s)})}constructor(u,s){this._aead=u,this._nonce_encoder=new t(s)}seal(u,s=!1,r=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._aead.seal(u,this._nonce_encoder.next(s),r)})}clear(){return this._aead.clear(),this}}e.StreamEncryptor=S;class a{static importKey(u,s,r,n=new k.WebCryptoProvider){return w(this,void 0,void 0,function*(){return new a(yield O.AEAD.importKey(u,r,n),s)})}constructor(u,s){this._aead=u,this._nonce_encoder=new t(s)}open(u,s=!1,r=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._aead.open(u,this._nonce_encoder.next(s),r)})}clear(){return this._aead.clear(),this}}e.StreamDecryptor=a;class t{constructor(u){if(u.length!==e.NONCE_SIZE)throw new Error(`STREAM: nonce must be 8-bits (got ${u.length}`);this.buffer=new ArrayBuffer(e.NONCE_SIZE+4+1),this.view=new DataView(this.buffer),this.array=new Uint8Array(this.buffer),this.array.set(u),this.counter=0,this.finished=!1}next(u){if(this.finished)throw new Error("STREAM: already finished");if(this.view.setInt32(8,this.counter,!1),u)this.view.setInt8(12,e.LAST_BLOCK_FLAG),this.finished=!0;else if(this.counter+=1,this.counter>e.COUNTER_MAX)throw new Error("STREAM counter overflowed");return this.array}}},4244:D=>{var e=function(p){return p!=p};D.exports=function(p,w){return p===0&&w===0?1/p==1/w:p===w||!(!e(p)||!e(w))}},609:(D,e,p)=>{var w=p(4289),O=p(5559),k=p(4244),S=p(5624),a=p(2281),t=O(S(),Object);w(t,{getPolyfill:S,implementation:k,shim:a}),D.exports=t},5624:(D,e,p)=>{var w=p(4244);D.exports=function(){return typeof Object.is=="function"?Object.is:w}},2281:(D,e,p)=>{var w=p(5624),O=p(4289);D.exports=function(){var k=w();return O(Object,{is:k},{is:function(){return Object.is!==k}}),k}},8987:(D,e,p)=>{var w;if(!Object.keys){var O=Object.prototype.hasOwnProperty,k=Object.prototype.toString,S=p(1414),a=Object.prototype.propertyIsEnumerable,t=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(o){var i=o.constructor;return i&&i.prototype===o},r={$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},n=function(){if(typeof window>"u")return!1;for(var o in window)try{if(!r["$"+o]&&O.call(window,o)&&window[o]!==null&&typeof window[o]=="object")try{s(window[o])}catch{return!0}}catch{return!0}return!1}();w=function(o){var i=o!==null&&typeof o=="object",f=k.call(o)==="[object Function]",d=S(o),h=i&&k.call(o)==="[object String]",_=[];if(!i&&!f&&!d)throw new TypeError("Object.keys called on a non-object");var b=c&&f;if(h&&o.length>0&&!O.call(o,0))for(var I=0;I0)for(var l=0;l"u"||!n)return s(C);try{return s(C)}catch{return!1}}(o),N=0;N{var w=Array.prototype.slice,O=p(1414),k=Object.keys,S=k?function(t){return k(t)}:p(8987),a=Object.keys;S.shim=function(){if(Object.keys){var t=function(){var c=Object.keys(arguments);return c&&c.length===arguments.length}(1,2);t||(Object.keys=function(c){return O(c)?a(w.call(c)):a(c)})}else Object.keys=S;return Object.keys||S},D.exports=S},1414:D=>{var e=Object.prototype.toString;D.exports=function(p){var w=e.call(p),O=w==="[object Arguments]";return O||(O=w!=="[object Array]"&&p!==null&&typeof p=="object"&&typeof p.length=="number"&&p.length>=0&&e.call(p.callee)==="[object Function]"),O}},2837:(D,e,p)=>{var w=p(2215),O=p(5419)(),k=p(1924),S=Object,a=k("Array.prototype.push"),t=k("Object.prototype.propertyIsEnumerable"),c=O?Object.getOwnPropertySymbols:null;D.exports=function(u,s){if(u==null)throw new TypeError("target must be an object");var r=S(u);if(arguments.length===1)return r;for(var n=1;n{var w=p(2837);D.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var O="abcdefghijklmnopqrst",k=O.split(""),S={},a=0;a{const{Deflate:w,deflate:O,deflateRaw:k,gzip:S}=p(4555),{Inflate:a,inflate:t,inflateRaw:c,ungzip:u}=p(8843),s=p(1619);D.exports.Deflate=w,D.exports.deflate=O,D.exports.deflateRaw=k,D.exports.gzip=S,D.exports.Inflate=a,D.exports.inflate=t,D.exports.inflateRaw=c,D.exports.ungzip=u,D.exports.constants=s},4555:(D,e,p)=>{const w=p(405),O=p(4236),k=p(9373),S=p(8898),a=p(2292),t=Object.prototype.toString,{Z_NO_FLUSH:c,Z_SYNC_FLUSH:u,Z_FULL_FLUSH:s,Z_FINISH:r,Z_OK:n,Z_STREAM_END:o,Z_DEFAULT_COMPRESSION:i,Z_DEFAULT_STRATEGY:f,Z_DEFLATED:d}=p(1619);function h(b){this.options=O.assign({level:i,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f},b||{});let I=this.options;I.raw&&I.windowBits>0?I.windowBits=-I.windowBits:I.gzip&&I.windowBits>0&&I.windowBits<16&&(I.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let l=w.deflateInit2(this.strm,I.level,I.method,I.windowBits,I.memLevel,I.strategy);if(l!==n)throw new Error(S[l]);if(I.header&&w.deflateSetHeader(this.strm,I.header),I.dictionary){let j;if(j=typeof I.dictionary=="string"?k.string2buf(I.dictionary):t.call(I.dictionary)==="[object ArrayBuffer]"?new Uint8Array(I.dictionary):I.dictionary,l=w.deflateSetDictionary(this.strm,j),l!==n)throw new Error(S[l]);this._dict_set=!0}}function _(b,I){const l=new h(I);if(l.push(b,!0),l.err)throw l.msg||S[l.err];return l.result}h.prototype.push=function(b,I){const l=this.strm,j=this.options.chunkSize;let M,N;if(this.ended)return!1;for(N=I===~~I?I:I===!0?r:c,typeof b=="string"?l.input=k.string2buf(b):t.call(b)==="[object ArrayBuffer]"?l.input=new Uint8Array(b):l.input=b,l.next_in=0,l.avail_in=l.input.length;;)if(l.avail_out===0&&(l.output=new Uint8Array(j),l.next_out=0,l.avail_out=j),(N===u||N===s)&&l.avail_out<=6)this.onData(l.output.subarray(0,l.next_out)),l.avail_out=0;else{if(M=w.deflate(l,N),M===o)return l.next_out>0&&this.onData(l.output.subarray(0,l.next_out)),M=w.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===n;if(l.avail_out!==0){if(N>0&&l.next_out>0)this.onData(l.output.subarray(0,l.next_out)),l.avail_out=0;else if(l.avail_in===0)break}else this.onData(l.output)}return!0},h.prototype.onData=function(b){this.chunks.push(b)},h.prototype.onEnd=function(b){b===n&&(this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},D.exports.Deflate=h,D.exports.deflate=_,D.exports.deflateRaw=function(b,I){return(I=I||{}).raw=!0,_(b,I)},D.exports.gzip=function(b,I){return(I=I||{}).gzip=!0,_(b,I)},D.exports.constants=p(1619)},8843:(D,e,p)=>{const w=p(6351),O=p(4236),k=p(9373),S=p(8898),a=p(2292),t=p(188),c=Object.prototype.toString,{Z_NO_FLUSH:u,Z_FINISH:s,Z_OK:r,Z_STREAM_END:n,Z_NEED_DICT:o,Z_STREAM_ERROR:i,Z_DATA_ERROR:f,Z_MEM_ERROR:d}=p(1619);function h(b){this.options=O.assign({chunkSize:65536,windowBits:15,to:""},b||{});const I=this.options;I.raw&&I.windowBits>=0&&I.windowBits<16&&(I.windowBits=-I.windowBits,I.windowBits===0&&(I.windowBits=-15)),!(I.windowBits>=0&&I.windowBits<16)||b&&b.windowBits||(I.windowBits+=32),I.windowBits>15&&I.windowBits<48&&!(15&I.windowBits)&&(I.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let l=w.inflateInit2(this.strm,I.windowBits);if(l!==r)throw new Error(S[l]);if(this.header=new t,w.inflateGetHeader(this.strm,this.header),I.dictionary&&(typeof I.dictionary=="string"?I.dictionary=k.string2buf(I.dictionary):c.call(I.dictionary)==="[object ArrayBuffer]"&&(I.dictionary=new Uint8Array(I.dictionary)),I.raw&&(l=w.inflateSetDictionary(this.strm,I.dictionary),l!==r)))throw new Error(S[l])}function _(b,I){const l=new h(I);if(l.push(b),l.err)throw l.msg||S[l.err];return l.result}h.prototype.push=function(b,I){const l=this.strm,j=this.options.chunkSize,M=this.options.dictionary;let N,C,x;if(this.ended)return!1;for(C=I===~~I?I:I===!0?s:u,c.call(b)==="[object ArrayBuffer]"?l.input=new Uint8Array(b):l.input=b,l.next_in=0,l.avail_in=l.input.length;;){for(l.avail_out===0&&(l.output=new Uint8Array(j),l.next_out=0,l.avail_out=j),N=w.inflate(l,C),N===o&&M&&(N=w.inflateSetDictionary(l,M),N===r?N=w.inflate(l,C):N===f&&(N=o));l.avail_in>0&&N===n&&l.state.wrap>0&&b[l.next_in]!==0;)w.inflateReset(l),N=w.inflate(l,C);switch(N){case i:case f:case o:case d:return this.onEnd(N),this.ended=!0,!1}if(x=l.avail_out,l.next_out&&(l.avail_out===0||N===n))if(this.options.to==="string"){let P=k.utf8border(l.output,l.next_out),v=l.next_out-P,m=k.buf2string(l.output,P);l.next_out=v,l.avail_out=j-v,v&&l.output.set(l.output.subarray(P,P+v),0),this.onData(m)}else this.onData(l.output.length===l.next_out?l.output:l.output.subarray(0,l.next_out));if(N!==r||x!==0){if(N===n)return N=w.inflateEnd(this.strm),this.onEnd(N),this.ended=!0,!0;if(l.avail_in===0)break}}return!0},h.prototype.onData=function(b){this.chunks.push(b)},h.prototype.onEnd=function(b){b===r&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},D.exports.Inflate=h,D.exports.inflate=_,D.exports.inflateRaw=function(b,I){return(I=I||{}).raw=!0,_(b,I)},D.exports.ungzip=_,D.exports.constants=p(1619)},4236:D=>{const e=(p,w)=>Object.prototype.hasOwnProperty.call(p,w);D.exports.assign=function(p){const w=Array.prototype.slice.call(arguments,1);for(;w.length;){const O=w.shift();if(O){if(typeof O!="object")throw new TypeError(O+"must be non-object");for(const k in O)e(O,k)&&(p[k]=O[k])}}return p},D.exports.flattenChunks=p=>{let w=0;for(let k=0,S=p.length;k{let e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{e=!1}const p=new Uint8Array(256);for(let w=0;w<256;w++)p[w]=w>=252?6:w>=248?5:w>=240?4:w>=224?3:w>=192?2:1;p[254]=p[254]=1,D.exports.string2buf=w=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(w);let O,k,S,a,t,c=w.length,u=0;for(a=0;a>>6,O[t++]=128|63&k):k<65536?(O[t++]=224|k>>>12,O[t++]=128|k>>>6&63,O[t++]=128|63&k):(O[t++]=240|k>>>18,O[t++]=128|k>>>12&63,O[t++]=128|k>>>6&63,O[t++]=128|63&k);return O},D.exports.buf2string=(w,O)=>{const k=O||w.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(w.subarray(0,O));let S,a;const t=new Array(2*k);for(a=0,S=0;S4)t[a++]=65533,S+=u-1;else{for(c&=u===2?31:u===3?15:7;u>1&&S1?t[a++]=65533:c<65536?t[a++]=c:(c-=65536,t[a++]=55296|c>>10&1023,t[a++]=56320|1023&c)}}return((c,u)=>{if(u<65534&&c.subarray&&e)return String.fromCharCode.apply(null,c.length===u?c:c.subarray(0,u));let s="";for(let r=0;r{(O=O||w.length)>w.length&&(O=w.length);let k=O-1;for(;k>=0&&(192&w[k])==128;)k--;return k<0||k===0?O:k+p[w[k]]>O?k:O}},6069:D=>{D.exports=(e,p,w,O)=>{let k=65535&e|0,S=e>>>16&65535|0,a=0;for(;w!==0;){a=w>2e3?2e3:w,w-=a;do k=k+p[O++]|0,S=S+k|0;while(--a);k%=65521,S%=65521}return k|S<<16|0}},1619:D=>{D.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},2869:D=>{const e=new Uint32Array((()=>{let p,w=[];for(var O=0;O<256;O++){p=O;for(var k=0;k<8;k++)p=1&p?3988292384^p>>>1:p>>>1;w[O]=p}return w})());D.exports=(p,w,O,k)=>{const S=e,a=k+O;p^=-1;for(let t=k;t>>8^S[255&(p^w[t])];return-1^p}},405:(D,e,p)=>{const{_tr_init:w,_tr_stored_block:O,_tr_flush_block:k,_tr_tally:S,_tr_align:a}=p(342),t=p(6069),c=p(2869),u=p(8898),{Z_NO_FLUSH:s,Z_PARTIAL_FLUSH:r,Z_FULL_FLUSH:n,Z_FINISH:o,Z_BLOCK:i,Z_OK:f,Z_STREAM_END:d,Z_STREAM_ERROR:h,Z_DATA_ERROR:_,Z_BUF_ERROR:b,Z_DEFAULT_COMPRESSION:I,Z_FILTERED:l,Z_HUFFMAN_ONLY:j,Z_RLE:M,Z_FIXED:N,Z_DEFAULT_STRATEGY:C,Z_UNKNOWN:x,Z_DEFLATED:P}=p(1619),v=258,m=262,E=103,B=113,T=666,q=(V,y)=>(V.msg=u[y],y),te=V=>(V<<1)-(V>4?9:0),re=V=>{let y=V.length;for(;--y>=0;)V[y]=0};let ie=(V,y,A)=>(y<{const y=V.state;let A=y.pending;A>V.avail_out&&(A=V.avail_out),A!==0&&(V.output.set(y.pending_buf.subarray(y.pending_out,y.pending_out+A),V.next_out),V.next_out+=A,y.pending_out+=A,V.total_out+=A,V.avail_out-=A,y.pending-=A,y.pending===0&&(y.pending_out=0))},ee=(V,y)=>{k(V,V.block_start>=0?V.block_start:-1,V.strstart-V.block_start,y),V.block_start=V.strstart,J(V.strm)},G=(V,y)=>{V.pending_buf[V.pending++]=y},$=(V,y)=>{V.pending_buf[V.pending++]=y>>>8&255,V.pending_buf[V.pending++]=255&y},W=(V,y,A,R)=>{let U=V.avail_in;return U>R&&(U=R),U===0?0:(V.avail_in-=U,y.set(V.input.subarray(V.next_in,V.next_in+U),A),V.state.wrap===1?V.adler=t(V.adler,y,U,A):V.state.wrap===2&&(V.adler=c(V.adler,y,U,A)),V.next_in+=U,V.total_in+=U,U)},Y=(V,y)=>{let A,R,U=V.max_chain_length,z=V.strstart,L=V.prev_length,H=V.nice_match;const ne=V.strstart>V.w_size-m?V.strstart-(V.w_size-m):0,oe=V.window,K=V.w_mask,X=V.prev,Q=V.strstart+v;let Z=oe[z+L-1],se=oe[z+L];V.prev_length>=V.good_match&&(U>>=2),H>V.lookahead&&(H=V.lookahead);do if(A=y,oe[A+L]===se&&oe[A+L-1]===Z&&oe[A]===oe[z]&&oe[++A]===oe[z+1]){z+=2,A++;do;while(oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&zL){if(V.match_start=y,L=R,R>=H)break;Z=oe[z+L-1],se=oe[z+L]}}while((y=X[y&K])>ne&&--U!=0);return L<=V.lookahead?L:V.lookahead},F=V=>{const y=V.w_size;let A,R,U,z,L;do{if(z=V.window_size-V.lookahead-V.strstart,V.strstart>=y+(y-m)){V.window.set(V.window.subarray(y,y+y),0),V.match_start-=y,V.strstart-=y,V.block_start-=y,R=V.hash_size,A=R;do U=V.head[--A],V.head[A]=U>=y?U-y:0;while(--R);R=y,A=R;do U=V.prev[--A],V.prev[A]=U>=y?U-y:0;while(--R);z+=y}if(V.strm.avail_in===0)break;if(R=W(V.strm,V.window,V.strstart+V.lookahead,z),V.lookahead+=R,V.lookahead+V.insert>=3)for(L=V.strstart-V.insert,V.ins_h=V.window[L],V.ins_h=ie(V,V.ins_h,V.window[L+1]);V.insert&&(V.ins_h=ie(V,V.ins_h,V.window[L+3-1]),V.prev[L&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=L,L++,V.insert--,!(V.lookahead+V.insert<3)););}while(V.lookahead{let A,R;for(;;){if(V.lookahead=3&&(V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),A!==0&&V.strstart-A<=V.w_size-m&&(V.match_length=Y(V,A)),V.match_length>=3)if(R=S(V,V.strstart-V.match_start,V.match_length-3),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=3){V.match_length--;do V.strstart++,V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart;while(--V.match_length!=0);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=ie(V,V.ins_h,V.window[V.strstart+1]);else R=S(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(R&&(ee(V,!1),V.strm.avail_out===0))return 1}return V.insert=V.strstart<2?V.strstart:2,y===o?(ee(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(ee(V,!1),V.strm.avail_out===0)?1:2},he=(V,y)=>{let A,R,U;for(;;){if(V.lookahead=3&&(V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),V.prev_length=V.match_length,V.prev_match=V.match_start,V.match_length=2,A!==0&&V.prev_length4096)&&(V.match_length=2)),V.prev_length>=3&&V.match_length<=V.prev_length){U=V.strstart+V.lookahead-3,R=S(V,V.strstart-1-V.prev_match,V.prev_length-3),V.lookahead-=V.prev_length-1,V.prev_length-=2;do++V.strstart<=U&&(V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);while(--V.prev_length!=0);if(V.match_available=0,V.match_length=2,V.strstart++,R&&(ee(V,!1),V.strm.avail_out===0))return 1}else if(V.match_available){if(R=S(V,0,V.window[V.strstart-1]),R&&ee(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return 1}else V.match_available=1,V.strstart++,V.lookahead--}return V.match_available&&(R=S(V,0,V.window[V.strstart-1]),V.match_available=0),V.insert=V.strstart<2?V.strstart:2,y===o?(ee(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(ee(V,!1),V.strm.avail_out===0)?1:2};function le(V,y,A,R,U){this.good_length=V,this.max_lazy=y,this.nice_length=A,this.max_chain=R,this.func=U}const ce=[new le(0,0,0,0,(V,y)=>{let A=65535;for(A>V.pending_buf_size-5&&(A=V.pending_buf_size-5);;){if(V.lookahead<=1){if(F(V),V.lookahead===0&&y===s)return 1;if(V.lookahead===0)break}V.strstart+=V.lookahead,V.lookahead=0;const R=V.block_start+A;if((V.strstart===0||V.strstart>=R)&&(V.lookahead=V.strstart-R,V.strstart=R,ee(V,!1),V.strm.avail_out===0)||V.strstart-V.block_start>=V.w_size-m&&(ee(V,!1),V.strm.avail_out===0))return 1}return V.insert=0,y===o?(ee(V,!0),V.strm.avail_out===0?3:4):(V.strstart>V.block_start&&(ee(V,!1),V.strm.avail_out),1)}),new le(4,4,8,4,ae),new le(4,5,16,8,ae),new le(4,6,32,32,ae),new le(4,4,16,16,he),new le(8,16,32,32,he),new le(8,16,128,128,he),new le(8,32,128,256,he),new le(32,128,258,1024,he),new le(32,258,258,4096,he)];function ve(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=P,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),re(this.dyn_ltree),re(this.dyn_dtree),re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const de=V=>{if(!V||!V.state)return q(V,h);V.total_in=V.total_out=0,V.data_type=x;const y=V.state;return y.pending=0,y.pending_out=0,y.wrap<0&&(y.wrap=-y.wrap),y.status=y.wrap?42:B,V.adler=y.wrap===2?0:1,y.last_flush=s,w(y),f},pe=V=>{const y=de(V);var A;return y===f&&((A=V.state).window_size=2*A.w_size,re(A.head),A.max_lazy_match=ce[A.level].max_lazy,A.good_match=ce[A.level].good_length,A.nice_match=ce[A.level].nice_length,A.max_chain_length=ce[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=2,A.match_available=0,A.ins_h=0),y},ye=(V,y,A,R,U,z)=>{if(!V)return h;let L=1;if(y===I&&(y=6),R<0?(L=0,R=-R):R>15&&(L=2,R-=16),U<1||U>9||A!==P||R<8||R>15||y<0||y>9||z<0||z>N)return q(V,h);R===8&&(R=9);const H=new ve;return V.state=H,H.strm=V,H.wrap=L,H.gzhead=null,H.w_bits=R,H.w_size=1<ye(V,y,P,15,8,C),D.exports.deflateInit2=ye,D.exports.deflateReset=pe,D.exports.deflateResetKeep=de,D.exports.deflateSetHeader=(V,y)=>V&&V.state?V.state.wrap!==2?h:(V.state.gzhead=y,f):h,D.exports.deflate=(V,y)=>{let A,R;if(!V||!V.state||y>i||y<0)return V?q(V,h):h;const U=V.state;if(!V.output||!V.input&&V.avail_in!==0||U.status===T&&y!==o)return q(V,V.avail_out===0?b:h);U.strm=V;const z=U.last_flush;if(U.last_flush=y,U.status===42)if(U.wrap===2)V.adler=0,G(U,31),G(U,139),G(U,8),U.gzhead?(G(U,(U.gzhead.text?1:0)+(U.gzhead.hcrc?2:0)+(U.gzhead.extra?4:0)+(U.gzhead.name?8:0)+(U.gzhead.comment?16:0)),G(U,255&U.gzhead.time),G(U,U.gzhead.time>>8&255),G(U,U.gzhead.time>>16&255),G(U,U.gzhead.time>>24&255),G(U,U.level===9?2:U.strategy>=j||U.level<2?4:0),G(U,255&U.gzhead.os),U.gzhead.extra&&U.gzhead.extra.length&&(G(U,255&U.gzhead.extra.length),G(U,U.gzhead.extra.length>>8&255)),U.gzhead.hcrc&&(V.adler=c(V.adler,U.pending_buf,U.pending,0)),U.gzindex=0,U.status=69):(G(U,0),G(U,0),G(U,0),G(U,0),G(U,0),G(U,U.level===9?2:U.strategy>=j||U.level<2?4:0),G(U,3),U.status=B);else{let L=P+(U.w_bits-8<<4)<<8,H=-1;H=U.strategy>=j||U.level<2?0:U.level<6?1:U.level===6?2:3,L|=H<<6,U.strstart!==0&&(L|=32),L+=31-L%31,U.status=B,$(U,L),U.strstart!==0&&($(U,V.adler>>>16),$(U,65535&V.adler)),V.adler=1}if(U.status===69)if(U.gzhead.extra){for(A=U.pending;U.gzindex<(65535&U.gzhead.extra.length)&&(U.pending!==U.pending_buf_size||(U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),J(V),A=U.pending,U.pending!==U.pending_buf_size));)G(U,255&U.gzhead.extra[U.gzindex]),U.gzindex++;U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),U.gzindex===U.gzhead.extra.length&&(U.gzindex=0,U.status=73)}else U.status=73;if(U.status===73)if(U.gzhead.name){A=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),J(V),A=U.pending,U.pending===U.pending_buf_size)){R=1;break}R=U.gzindexA&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),R===0&&(U.gzindex=0,U.status=91)}else U.status=91;if(U.status===91)if(U.gzhead.comment){A=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),J(V),A=U.pending,U.pending===U.pending_buf_size)){R=1;break}R=U.gzindexA&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),R===0&&(U.status=E)}else U.status=E;if(U.status===E&&(U.gzhead.hcrc?(U.pending+2>U.pending_buf_size&&J(V),U.pending+2<=U.pending_buf_size&&(G(U,255&V.adler),G(U,V.adler>>8&255),V.adler=0,U.status=B)):U.status=B),U.pending!==0){if(J(V),V.avail_out===0)return U.last_flush=-1,f}else if(V.avail_in===0&&te(y)<=te(z)&&y!==o)return q(V,b);if(U.status===T&&V.avail_in!==0)return q(V,b);if(V.avail_in!==0||U.lookahead!==0||y!==s&&U.status!==T){let L=U.strategy===j?((H,ne)=>{let oe;for(;;){if(H.lookahead===0&&(F(H),H.lookahead===0)){if(ne===s)return 1;break}if(H.match_length=0,oe=S(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,oe&&(ee(H,!1),H.strm.avail_out===0))return 1}return H.insert=0,ne===o?(ee(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(ee(H,!1),H.strm.avail_out===0)?1:2})(U,y):U.strategy===M?((H,ne)=>{let oe,K,X,Q;const Z=H.window;for(;;){if(H.lookahead<=v){if(F(H),H.lookahead<=v&&ne===s)return 1;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=3&&H.strstart>0&&(X=H.strstart-1,K=Z[X],K===Z[++X]&&K===Z[++X]&&K===Z[++X])){Q=H.strstart+v;do;while(K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&XH.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=3?(oe=S(H,1,H.match_length-3),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(oe=S(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),oe&&(ee(H,!1),H.strm.avail_out===0))return 1}return H.insert=0,ne===o?(ee(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(ee(H,!1),H.strm.avail_out===0)?1:2})(U,y):ce[U.level].func(U,y);if(L!==3&&L!==4||(U.status=T),L===1||L===3)return V.avail_out===0&&(U.last_flush=-1),f;if(L===2&&(y===r?a(U):y!==i&&(O(U,0,0,!1),y===n&&(re(U.head),U.lookahead===0&&(U.strstart=0,U.block_start=0,U.insert=0))),J(V),V.avail_out===0))return U.last_flush=-1,f}return y!==o?f:U.wrap<=0?d:(U.wrap===2?(G(U,255&V.adler),G(U,V.adler>>8&255),G(U,V.adler>>16&255),G(U,V.adler>>24&255),G(U,255&V.total_in),G(U,V.total_in>>8&255),G(U,V.total_in>>16&255),G(U,V.total_in>>24&255)):($(U,V.adler>>>16),$(U,65535&V.adler)),J(V),U.wrap>0&&(U.wrap=-U.wrap),U.pending!==0?f:d)},D.exports.deflateEnd=V=>{if(!V||!V.state)return h;const y=V.state.status;return y!==42&&y!==69&&y!==73&&y!==91&&y!==E&&y!==B&&y!==T?q(V,h):(V.state=null,y===B?q(V,_):f)},D.exports.deflateSetDictionary=(V,y)=>{let A=y.length;if(!V||!V.state)return h;const R=V.state,U=R.wrap;if(U===2||U===1&&R.status!==42||R.lookahead)return h;if(U===1&&(V.adler=t(V.adler,y,A,0)),R.wrap=0,A>=R.w_size){U===0&&(re(R.head),R.strstart=0,R.block_start=0,R.insert=0);let ne=new Uint8Array(R.w_size);ne.set(y.subarray(A-R.w_size,A),0),y=ne,A=R.w_size}const z=V.avail_in,L=V.next_in,H=V.input;for(V.avail_in=A,V.next_in=0,V.input=y,F(R);R.lookahead>=3;){let ne=R.strstart,oe=R.lookahead-2;do R.ins_h=ie(R,R.ins_h,R.window[ne+3-1]),R.prev[ne&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=ne,ne++;while(--oe);R.strstart=ne,R.lookahead=2,F(R)}return R.strstart+=R.lookahead,R.block_start=R.strstart,R.insert=R.lookahead,R.lookahead=0,R.match_length=R.prev_length=2,R.match_available=0,V.next_in=L,V.input=H,V.avail_in=z,R.wrap=U,f},D.exports.deflateInfo="pako deflate (from Nodeca project)"},188:D=>{D.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},4264:D=>{D.exports=function(e,p){let w,O,k,S,a,t,c,u,s,r,n,o,i,f,d,h,_,b,I,l,j,M,N,C;const x=e.state;w=e.next_in,N=e.input,O=w+(e.avail_in-5),k=e.next_out,C=e.output,S=k-(p-e.avail_out),a=k+(e.avail_out-257),t=x.dmax,c=x.wsize,u=x.whave,s=x.wnext,r=x.window,n=x.hold,o=x.bits,i=x.lencode,f=x.distcode,d=(1<>>24,n>>>=b,o-=b,b=_>>>16&255,b===0)C[k++]=65535&_;else{if(!(16&b)){if(!(64&b)){_=i[(65535&_)+(n&(1<>>=b,o-=b),o<15&&(n+=N[w++]<>>24,n>>>=b,o-=b,b=_>>>16&255,!(16&b)){if(!(64&b)){_=f[(65535&_)+(n&(1<t){e.msg="invalid distance too far back",x.mode=30;break e}if(n>>>=b,o-=b,b=k-S,l>b){if(b=l-b,b>u&&x.sane){e.msg="invalid distance too far back",x.mode=30;break e}if(j=0,M=r,s===0){if(j+=c-b,b2;)C[k++]=M[j++],C[k++]=M[j++],C[k++]=M[j++],I-=3;I&&(C[k++]=M[j++],I>1&&(C[k++]=M[j++]))}else{j=k-l;do C[k++]=C[j++],C[k++]=C[j++],C[k++]=C[j++],I-=3;while(I>2);I&&(C[k++]=C[j++],I>1&&(C[k++]=C[j++]))}break}}break}}while(w>3,w-=I,o-=I<<3,n&=(1<{const w=p(6069),O=p(2869),k=p(4264),S=p(9241),{Z_FINISH:a,Z_BLOCK:t,Z_TREES:c,Z_OK:u,Z_STREAM_END:s,Z_NEED_DICT:r,Z_STREAM_ERROR:n,Z_DATA_ERROR:o,Z_MEM_ERROR:i,Z_BUF_ERROR:f,Z_DEFLATED:d}=p(1619),h=12,_=30,b=E=>(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24);function I(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const l=E=>{if(!E||!E.state)return n;const B=E.state;return E.total_in=E.total_out=B.total=0,E.msg="",B.wrap&&(E.adler=1&B.wrap),B.mode=1,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new Int32Array(852),B.distcode=B.distdyn=new Int32Array(592),B.sane=1,B.back=-1,u},j=E=>{if(!E||!E.state)return n;const B=E.state;return B.wsize=0,B.whave=0,B.wnext=0,l(E)},M=(E,B)=>{let T;if(!E||!E.state)return n;const q=E.state;return B<0?(T=0,B=-B):(T=1+(B>>4),B<48&&(B&=15)),B&&(B<8||B>15)?n:(q.window!==null&&q.wbits!==B&&(q.window=null),q.wrap=T,q.wbits=B,j(E))},N=(E,B)=>{if(!E)return n;const T=new I;E.state=T,T.window=null;const q=M(E,B);return q!==u&&(E.state=null),q};let C,x,P=!0;const v=E=>{if(P){C=new Int32Array(512),x=new Int32Array(32);let B=0;for(;B<144;)E.lens[B++]=8;for(;B<256;)E.lens[B++]=9;for(;B<280;)E.lens[B++]=7;for(;B<288;)E.lens[B++]=8;for(S(1,E.lens,0,288,C,0,E.work,{bits:9}),B=0;B<32;)E.lens[B++]=5;S(2,E.lens,0,32,x,0,E.work,{bits:5}),P=!1}E.lencode=C,E.lenbits=9,E.distcode=x,E.distbits=5},m=(E,B,T,q)=>{let te;const re=E.state;return re.window===null&&(re.wsize=1<=re.wsize?(re.window.set(B.subarray(T-re.wsize,T),0),re.wnext=0,re.whave=re.wsize):(te=re.wsize-re.wnext,te>q&&(te=q),re.window.set(B.subarray(T-q,T-q+te),re.wnext),(q-=te)?(re.window.set(B.subarray(T-q,T),0),re.wnext=q,re.whave=re.wsize):(re.wnext+=te,re.wnext===re.wsize&&(re.wnext=0),re.whaveN(E,15),D.exports.inflateInit2=N,D.exports.inflate=(E,B)=>{let T,q,te,re,ie,J,ee,G,$,W,Y,F,ae,he,le,ce,ve,de,pe,ye,V,y,A=0;const R=new Uint8Array(4);let U,z;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return n;T=E.state,T.mode===h&&(T.mode=13),ie=E.next_out,te=E.output,ee=E.avail_out,re=E.next_in,q=E.input,J=E.avail_in,G=T.hold,$=T.bits,W=J,Y=ee,y=u;e:for(;;)switch(T.mode){case 1:if(T.wrap===0){T.mode=13;break}for(;$<16;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(2&T.wrap&&G===35615){T.check=0,R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0),G=0,$=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&G)<<8)+(G>>8))%31){E.msg="incorrect header check",T.mode=_;break}if((15&G)!==d){E.msg="unknown compression method",T.mode=_;break}if(G>>>=4,$-=4,V=8+(15&G),T.wbits===0)T.wbits=V;else if(V>T.wbits){E.msg="invalid window size",T.mode=_;break}T.dmax=1<>8&1),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0)),G=0,$=0,T.mode=3;case 3:for(;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}T.head&&(T.head.time=G),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,R[2]=G>>>16&255,R[3]=G>>>24&255,T.check=O(T.check,R,4,0)),G=0,$=0,T.mode=4;case 4:for(;$<16;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}T.head&&(T.head.xflags=255&G,T.head.os=G>>8),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0)),G=0,$=0,T.mode=5;case 5:if(1024&T.flags){for(;$<16;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}T.length=G,T.head&&(T.head.extra_len=G),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0)),G=0,$=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(F=T.length,F>J&&(F=J),F&&(T.head&&(V=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Uint8Array(T.head.extra_len)),T.head.extra.set(q.subarray(re,re+F),V)),512&T.flags&&(T.check=O(T.check,q,F,re)),J-=F,re+=F,T.length-=F),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(J===0)break e;F=0;do V=q[re+F++],T.head&&V&&T.length<65536&&(T.head.name+=String.fromCharCode(V));while(V&&F>9&1,T.head.done=!0),E.adler=T.check=0,T.mode=h;break;case 10:for(;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}E.adler=T.check=b(G),G=0,$=0,T.mode=11;case 11:if(T.havedict===0)return E.next_out=ie,E.avail_out=ee,E.next_in=re,E.avail_in=J,T.hold=G,T.bits=$,r;E.adler=T.check=1,T.mode=h;case h:if(B===t||B===c)break e;case 13:if(T.last){G>>>=7&$,$-=7&$,T.mode=27;break}for(;$<3;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}switch(T.last=1&G,G>>>=1,$-=1,3&G){case 0:T.mode=14;break;case 1:if(v(T),T.mode=20,B===c){G>>>=2,$-=2;break e}break;case 2:T.mode=17;break;case 3:E.msg="invalid block type",T.mode=_}G>>>=2,$-=2;break;case 14:for(G>>>=7&$,$-=7&$;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if((65535&G)!=(G>>>16^65535)){E.msg="invalid stored block lengths",T.mode=_;break}if(T.length=65535&G,G=0,$=0,T.mode=15,B===c)break e;case 15:T.mode=16;case 16:if(F=T.length,F){if(F>J&&(F=J),F>ee&&(F=ee),F===0)break e;te.set(q.subarray(re,re+F),ie),J-=F,re+=F,ee-=F,ie+=F,T.length-=F;break}T.mode=h;break;case 17:for(;$<14;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(T.nlen=257+(31&G),G>>>=5,$-=5,T.ndist=1+(31&G),G>>>=5,$-=5,T.ncode=4+(15&G),G>>>=4,$-=4,T.nlen>286||T.ndist>30){E.msg="too many length or distance symbols",T.mode=_;break}T.have=0,T.mode=18;case 18:for(;T.have>>=3,$-=3}for(;T.have<19;)T.lens[L[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,U={bits:T.lenbits},y=S(0,T.lens,0,19,T.lencode,0,T.work,U),T.lenbits=U.bits,y){E.msg="invalid code lengths set",T.mode=_;break}T.have=0,T.mode=19;case 19:for(;T.have>>24,ce=A>>>16&255,ve=65535&A,!(le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(ve<16)G>>>=le,$-=le,T.lens[T.have++]=ve;else{if(ve===16){for(z=le+2;$>>=le,$-=le,T.have===0){E.msg="invalid bit length repeat",T.mode=_;break}V=T.lens[T.have-1],F=3+(3&G),G>>>=2,$-=2}else if(ve===17){for(z=le+3;$>>=le,$-=le,V=0,F=3+(7&G),G>>>=3,$-=3}else{for(z=le+7;$>>=le,$-=le,V=0,F=11+(127&G),G>>>=7,$-=7}if(T.have+F>T.nlen+T.ndist){E.msg="invalid bit length repeat",T.mode=_;break}for(;F--;)T.lens[T.have++]=V}}if(T.mode===_)break;if(T.lens[256]===0){E.msg="invalid code -- missing end-of-block",T.mode=_;break}if(T.lenbits=9,U={bits:T.lenbits},y=S(1,T.lens,0,T.nlen,T.lencode,0,T.work,U),T.lenbits=U.bits,y){E.msg="invalid literal/lengths set",T.mode=_;break}if(T.distbits=6,T.distcode=T.distdyn,U={bits:T.distbits},y=S(2,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,U),T.distbits=U.bits,y){E.msg="invalid distances set",T.mode=_;break}if(T.mode=20,B===c)break e;case 20:T.mode=21;case 21:if(J>=6&&ee>=258){E.next_out=ie,E.avail_out=ee,E.next_in=re,E.avail_in=J,T.hold=G,T.bits=$,k(E,Y),ie=E.next_out,te=E.output,ee=E.avail_out,re=E.next_in,q=E.input,J=E.avail_in,G=T.hold,$=T.bits,T.mode===h&&(T.back=-1);break}for(T.back=0;A=T.lencode[G&(1<>>24,ce=A>>>16&255,ve=65535&A,!(le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(ce&&!(240&ce)){for(de=le,pe=ce,ye=ve;A=T.lencode[ye+((G&(1<>de)],le=A>>>24,ce=A>>>16&255,ve=65535&A,!(de+le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}G>>>=de,$-=de,T.back+=de}if(G>>>=le,$-=le,T.back+=le,T.length=ve,ce===0){T.mode=26;break}if(32&ce){T.back=-1,T.mode=h;break}if(64&ce){E.msg="invalid literal/length code",T.mode=_;break}T.extra=15&ce,T.mode=22;case 22:if(T.extra){for(z=T.extra;$>>=T.extra,$-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;A=T.distcode[G&(1<>>24,ce=A>>>16&255,ve=65535&A,!(le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(!(240&ce)){for(de=le,pe=ce,ye=ve;A=T.distcode[ye+((G&(1<>de)],le=A>>>24,ce=A>>>16&255,ve=65535&A,!(de+le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}G>>>=de,$-=de,T.back+=de}if(G>>>=le,$-=le,T.back+=le,64&ce){E.msg="invalid distance code",T.mode=_;break}T.offset=ve,T.extra=15&ce,T.mode=24;case 24:if(T.extra){for(z=T.extra;$>>=T.extra,$-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){E.msg="invalid distance too far back",T.mode=_;break}T.mode=25;case 25:if(ee===0)break e;if(F=Y-ee,T.offset>F){if(F=T.offset-F,F>T.whave&&T.sane){E.msg="invalid distance too far back",T.mode=_;break}F>T.wnext?(F-=T.wnext,ae=T.wsize-F):ae=T.wnext-F,F>T.length&&(F=T.length),he=T.window}else he=te,ae=ie-T.offset,F=T.length;F>ee&&(F=ee),ee-=F,T.length-=F;do te[ie++]=he[ae++];while(--F);T.length===0&&(T.mode=21);break;case 26:if(ee===0)break e;te[ie++]=T.length,ee--,T.mode=21;break;case 27:if(T.wrap){for(;$<32;){if(J===0)break e;J--,G|=q[re++]<<$,$+=8}if(Y-=ee,E.total_out+=Y,T.total+=Y,Y&&(E.adler=T.check=T.flags?O(T.check,te,Y,ie-Y):w(T.check,te,Y,ie-Y)),Y=ee,(T.flags?G:b(G))!==T.check){E.msg="incorrect data check",T.mode=_;break}G=0,$=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(G!==(4294967295&T.total)){E.msg="incorrect length check",T.mode=_;break}G=0,$=0}T.mode=29;case 29:y=s;break e;case _:y=o;break e;case 31:return i;default:return n}return E.next_out=ie,E.avail_out=ee,E.next_in=re,E.avail_in=J,T.hold=G,T.bits=$,(T.wsize||Y!==E.avail_out&&T.mode<_&&(T.mode<27||B!==a))&&m(E,E.output,E.next_out,Y-E.avail_out)?(T.mode=31,i):(W-=E.avail_in,Y-=E.avail_out,E.total_in+=W,E.total_out+=Y,T.total+=Y,T.wrap&&Y&&(E.adler=T.check=T.flags?O(T.check,te,Y,E.next_out-Y):w(T.check,te,Y,E.next_out-Y)),E.data_type=T.bits+(T.last?64:0)+(T.mode===h?128:0)+(T.mode===20||T.mode===15?256:0),(W===0&&Y===0||B===a)&&y===u&&(y=f),y)},D.exports.inflateEnd=E=>{if(!E||!E.state)return n;let B=E.state;return B.window&&(B.window=null),E.state=null,u},D.exports.inflateGetHeader=(E,B)=>{if(!E||!E.state)return n;const T=E.state;return 2&T.wrap?(T.head=B,B.done=!1,u):n},D.exports.inflateSetDictionary=(E,B)=>{const T=B.length;let q,te,re;return E&&E.state?(q=E.state,q.wrap!==0&&q.mode!==11?n:q.mode===11&&(te=1,te=w(te,B,T,0),te!==q.check)?o:(re=m(E,B,T,T),re?(q.mode=31,i):(q.havedict=1,u))):n},D.exports.inflateInfo="pako inflate (from Nodeca project)"},9241:D=>{const e=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),p=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),w=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),O=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);D.exports=(k,S,a,t,c,u,s,r)=>{const n=r.bits;let o,i,f,d,h,_,b=0,I=0,l=0,j=0,M=0,N=0,C=0,x=0,P=0,v=0,m=null,E=0;const B=new Uint16Array(16),T=new Uint16Array(16);let q,te,re,ie=null,J=0;for(b=0;b<=15;b++)B[b]=0;for(I=0;I=1&&B[j]===0;j--);if(M>j&&(M=j),j===0)return c[u++]=20971520,c[u++]=20971520,r.bits=1,0;for(l=1;l0&&(k===0||j!==1))return-1;for(T[1]=0,b=1;b<15;b++)T[b+1]=T[b]+B[b];for(I=0;I852||k===2&&P>592)return 1;for(;;){q=b-C,s[I]<_?(te=0,re=s[I]):s[I]>_?(te=ie[J+s[I]],re=m[E+s[I]]):(te=96,re=0),o=1<>C)+i]=q<<24|te<<16|re|0;while(i!==0);for(o=1<>=1;if(o!==0?(v&=o-1,v+=o):v=0,I++,--B[b]==0){if(b===j)break;b=S[a+s[I]]}if(b>M&&(v&d)!==f){for(C===0&&(C=M),h+=l,N=b-C,x=1<852||k===2&&P>592)return 1;f=v&d,c[f]=M<<24|N<<16|h-u|0}}return v!==0&&(c[h+v]=b-C<<24|4194304|0),r.bits=M,0}},8898:D=>{D.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},342:D=>{function e(T){let q=T.length;for(;--q>=0;)T[q]=0}const p=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),w=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),O=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),S=new Array(576);e(S);const a=new Array(60);e(a);const t=new Array(512);e(t);const c=new Array(256);e(c);const u=new Array(29);e(u);const s=new Array(30);function r(T,q,te,re,ie){this.static_tree=T,this.extra_bits=q,this.extra_base=te,this.elems=re,this.max_length=ie,this.has_stree=T&&T.length}let n,o,i;function f(T,q){this.dyn_tree=T,this.max_code=0,this.stat_desc=q}e(s);const d=T=>T<256?t[T]:t[256+(T>>>7)],h=(T,q)=>{T.pending_buf[T.pending++]=255&q,T.pending_buf[T.pending++]=q>>>8&255},_=(T,q,te)=>{T.bi_valid>16-te?(T.bi_buf|=q<>16-T.bi_valid,T.bi_valid+=te-16):(T.bi_buf|=q<{_(T,te[2*q],te[2*q+1])},I=(T,q)=>{let te=0;do te|=1&T,T>>>=1,te<<=1;while(--q>0);return te>>>1},l=(T,q,te)=>{const re=new Array(16);let ie,J,ee=0;for(ie=1;ie<=15;ie++)re[ie]=ee=ee+te[ie-1]<<1;for(J=0;J<=q;J++){let G=T[2*J+1];G!==0&&(T[2*J]=I(re[G]++,G))}},j=T=>{let q;for(q=0;q<286;q++)T.dyn_ltree[2*q]=0;for(q=0;q<30;q++)T.dyn_dtree[2*q]=0;for(q=0;q<19;q++)T.bl_tree[2*q]=0;T.dyn_ltree[512]=1,T.opt_len=T.static_len=0,T.last_lit=T.matches=0},M=T=>{T.bi_valid>8?h(T,T.bi_buf):T.bi_valid>0&&(T.pending_buf[T.pending++]=T.bi_buf),T.bi_buf=0,T.bi_valid=0},N=(T,q,te,re)=>{const ie=2*q,J=2*te;return T[ie]{const re=T.heap[te];let ie=te<<1;for(;ie<=T.heap_len&&(ie{let re,ie,J,ee,G=0;if(T.last_lit!==0)do re=T.pending_buf[T.d_buf+2*G]<<8|T.pending_buf[T.d_buf+2*G+1],ie=T.pending_buf[T.l_buf+G],G++,re===0?b(T,ie,q):(J=c[ie],b(T,J+256+1,q),ee=p[J],ee!==0&&(ie-=u[J],_(T,ie,ee)),re--,J=d(re),b(T,J,te),ee=w[J],ee!==0&&(re-=s[J],_(T,re,ee)));while(G{const te=q.dyn_tree,re=q.stat_desc.static_tree,ie=q.stat_desc.has_stree,J=q.stat_desc.elems;let ee,G,$,W=-1;for(T.heap_len=0,T.heap_max=573,ee=0;ee>1;ee>=1;ee--)C(T,te,ee);$=J;do ee=T.heap[1],T.heap[1]=T.heap[T.heap_len--],C(T,te,1),G=T.heap[1],T.heap[--T.heap_max]=ee,T.heap[--T.heap_max]=G,te[2*$]=te[2*ee]+te[2*G],T.depth[$]=(T.depth[ee]>=T.depth[G]?T.depth[ee]:T.depth[G])+1,te[2*ee+1]=te[2*G+1]=$,T.heap[1]=$++,C(T,te,1);while(T.heap_len>=2);T.heap[--T.heap_max]=T.heap[1],((Y,F)=>{const ae=F.dyn_tree,he=F.max_code,le=F.stat_desc.static_tree,ce=F.stat_desc.has_stree,ve=F.stat_desc.extra_bits,de=F.stat_desc.extra_base,pe=F.stat_desc.max_length;let ye,V,y,A,R,U,z=0;for(A=0;A<=15;A++)Y.bl_count[A]=0;for(ae[2*Y.heap[Y.heap_max]+1]=0,ye=Y.heap_max+1;ye<573;ye++)V=Y.heap[ye],A=ae[2*ae[2*V+1]+1]+1,A>pe&&(A=pe,z++),ae[2*V+1]=A,V>he||(Y.bl_count[A]++,R=0,V>=de&&(R=ve[V-de]),U=ae[2*V],Y.opt_len+=U*(A+R),ce&&(Y.static_len+=U*(le[2*V+1]+R)));if(z!==0){do{for(A=pe-1;Y.bl_count[A]===0;)A--;Y.bl_count[A]--,Y.bl_count[A+1]+=2,Y.bl_count[pe]--,z-=2}while(z>0);for(A=pe;A!==0;A--)for(V=Y.bl_count[A];V!==0;)y=Y.heap[--ye],y>he||(ae[2*y+1]!==A&&(Y.opt_len+=(A-ae[2*y+1])*ae[2*y],ae[2*y+1]=A),V--)}})(T,q),l(te,W,T.bl_count)},v=(T,q,te)=>{let re,ie,J=-1,ee=q[1],G=0,$=7,W=4;for(ee===0&&($=138,W=3),q[2*(te+1)+1]=65535,re=0;re<=te;re++)ie=ee,ee=q[2*(re+1)+1],++G<$&&ie===ee||(G{let re,ie,J=-1,ee=q[1],G=0,$=7,W=4;for(ee===0&&($=138,W=3),re=0;re<=te;re++)if(ie=ee,ee=q[2*(re+1)+1],!(++G<$&&ie===ee)){if(G{_(T,0+(re?1:0),3),((ie,J,ee,G)=>{M(ie),h(ie,ee),h(ie,~ee),ie.pending_buf.set(ie.window.subarray(J,J+ee),ie.pending),ie.pending+=ee})(T,q,te)};D.exports._tr_init=T=>{E||((()=>{let q,te,re,ie,J;const ee=new Array(16);for(re=0,ie=0;ie<28;ie++)for(u[ie]=re,q=0;q<1<>=7;ie<30;ie++)for(s[ie]=J<<7,q=0;q<1<{let ie,J,ee=0;T.level>0?(T.strm.data_type===2&&(T.strm.data_type=(G=>{let $,W=4093624447;for($=0;$<=31;$++,W>>>=1)if(1&W&&G.dyn_ltree[2*$]!==0)return 0;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return 1;for($=32;$<256;$++)if(G.dyn_ltree[2*$]!==0)return 1;return 0})(T)),P(T,T.l_desc),P(T,T.d_desc),ee=(G=>{let $;for(v(G,G.dyn_ltree,G.l_desc.max_code),v(G,G.dyn_dtree,G.d_desc.max_code),P(G,G.bl_desc),$=18;$>=3&&G.bl_tree[2*k[$]+1]===0;$--);return G.opt_len+=3*($+1)+5+5+4,$})(T),ie=T.opt_len+3+7>>>3,J=T.static_len+3+7>>>3,J<=ie&&(ie=J)):ie=J=te+5,te+4<=ie&&q!==-1?B(T,q,te,re):T.strategy===4||J===ie?(_(T,2+(re?1:0),3),x(T,S,a)):(_(T,4+(re?1:0),3),((G,$,W,Y)=>{let F;for(_(G,$-257,5),_(G,W-1,5),_(G,Y-4,4),F=0;F(T.pending_buf[T.d_buf+2*T.last_lit]=q>>>8&255,T.pending_buf[T.d_buf+2*T.last_lit+1]=255&q,T.pending_buf[T.l_buf+T.last_lit]=255&te,T.last_lit++,q===0?T.dyn_ltree[2*te]++:(T.matches++,q--,T.dyn_ltree[2*(c[te]+256+1)]++,T.dyn_dtree[2*d(q)]++),T.last_lit===T.lit_bufsize-1),D.exports._tr_align=T=>{_(T,2,3),b(T,256,S),(q=>{q.bi_valid===16?(h(q,q.bi_buf),q.bi_buf=0,q.bi_valid=0):q.bi_valid>=8&&(q.pending_buf[q.pending++]=255&q.bi_buf,q.bi_buf>>=8,q.bi_valid-=8)})(T)}},2292:D=>{D.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},5632:(D,e,p)=>{e.pbkdf2=p(8638),e.pbkdf2Sync=p(1257)},8638:(D,e,p)=>{var w,O,k=p(9509).Buffer,S=p(7357),a=p(2368),t=p(1257),c=p(7777),u=p.g.crypto&&p.g.crypto.subtle,s={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},r=[];function n(){return O||(O=p.g.process&&p.g.process.nextTick?p.g.process.nextTick:p.g.queueMicrotask?p.g.queueMicrotask:p.g.setImmediate?p.g.setImmediate:p.g.setTimeout)}function o(i,f,d,h,_){return u.importKey("raw",i,{name:"PBKDF2"},!1,["deriveBits"]).then(function(b){return u.deriveBits({name:"PBKDF2",salt:f,iterations:d,hash:{name:_}},b,h<<3)}).then(function(b){return k.from(b)})}D.exports=function(i,f,d,h,_,b){typeof _=="function"&&(b=_,_=void 0);var I=s[(_=_||"sha1").toLowerCase()];if(I&&typeof p.g.Promise=="function"){if(S(d,h),i=c(i,a,"Password"),f=c(f,a,"Salt"),typeof b!="function")throw new Error("No callback provided to pbkdf2");(function(l,j){l.then(function(M){n()(function(){j(null,M)})},function(M){n()(function(){j(M)})})})(function(l){if(p.g.process&&!p.g.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(r[l]!==void 0)return r[l];var j=o(w=w||k.alloc(8),w,10,128,l).then(function(){return!0}).catch(function(){return!1});return r[l]=j,j}(I).then(function(l){return l?o(i,f,d,h,I):t(i,f,d,h,_)}),b)}else n()(function(){var l;try{l=t(i,f,d,h,_)}catch(j){return b(j)}b(null,l)})}},2368:(D,e,p)=>{var w,O=p(4155);w=p.g.process&&p.g.process.browser?"utf-8":p.g.process&&p.g.process.version?parseInt(O.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",D.exports=w},7357:D=>{var e=Math.pow(2,30)-1;D.exports=function(p,w){if(typeof p!="number")throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if(typeof w!="number")throw new TypeError("Key length not a number");if(w<0||w>e||w!=w)throw new TypeError("Bad key length")}},1257:(D,e,p)=>{var w=p(8028),O=p(9785),k=p(9072),S=p(9509).Buffer,a=p(7357),t=p(2368),c=p(7777),u=S.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function r(n,o,i){var f=function(l){return l==="rmd160"||l==="ripemd160"?function(j){return new O().update(j).digest()}:l==="md5"?w:function(j){return k(l).update(j).digest()}}(n),d=n==="sha512"||n==="sha384"?128:64;o.length>d?o=f(o):o.length{var w=p(9509).Buffer;D.exports=function(O,k,S){if(w.isBuffer(O))return O;if(typeof O=="string")return w.from(O,k);if(ArrayBuffer.isView(O))return w.from(O.buffer);throw new TypeError(S+" must be a string, a Buffer, a typed array or a DataView")}},4155:D=>{var e,p,w=D.exports={};function O(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}function S(i){if(e===setTimeout)return setTimeout(i,0);if((e===O||!e)&&setTimeout)return e=setTimeout,setTimeout(i,0);try{return e(i,0)}catch{try{return e.call(null,i,0)}catch{return e.call(this,i,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:O}catch{e=O}try{p=typeof clearTimeout=="function"?clearTimeout:k}catch{p=k}})();var a,t=[],c=!1,u=-1;function s(){c&&a&&(c=!1,a.length?t=a.concat(t):u=-1,t.length&&r())}function r(){if(!c){var i=S(s);c=!0;for(var f=t.length;f;){for(a=t,t=[];++u1)for(var d=1;d{D.exports=p(9482)},9482:(D,e,p)=>{var w=e;function O(){w.util._configure(),w.Writer._configure(w.BufferWriter),w.Reader._configure(w.BufferReader)}w.build="minimal",w.Writer=p(1173),w.BufferWriter=p(3155),w.Reader=p(1408),w.BufferReader=p(593),w.util=p(9693),w.rpc=p(5994),w.roots=p(5054),w.configure=O,O()},1408:(D,e,p)=>{D.exports=t;var w,O=p(9693),k=O.LongBits,S=O.utf8;function a(i,f){return RangeError("index out of range: "+i.pos+" + "+(f||1)+" > "+i.len)}function t(i){this.buf=i,this.pos=0,this.len=i.length}var c,u=typeof Uint8Array<"u"?function(i){if(i instanceof Uint8Array||Array.isArray(i))return new t(i);throw Error("illegal buffer")}:function(i){if(Array.isArray(i))return new t(i);throw Error("illegal buffer")},s=function(){return O.Buffer?function(i){return(t.create=function(f){return O.Buffer.isBuffer(f)?new w(f):u(f)})(i)}:u};function r(){var i=new k(0,0),f=0;if(!(this.len-this.pos>4)){for(;f<3;++f){if(this.pos>=this.len)throw a(this);if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*f)>>>0,this.buf[this.pos++]<128)return i}return i.lo=(i.lo|(127&this.buf[this.pos++])<<7*f)>>>0,i}for(;f<4;++f)if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*f)>>>0,this.buf[this.pos++]<128)return i;if(i.lo=(i.lo|(127&this.buf[this.pos])<<28)>>>0,i.hi=(i.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return i;if(f=0,this.len-this.pos>4){for(;f<5;++f)if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*f+3)>>>0,this.buf[this.pos++]<128)return i}else for(;f<5;++f){if(this.pos>=this.len)throw a(this);if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*f+3)>>>0,this.buf[this.pos++]<128)return i}throw Error("invalid varint encoding")}function n(i,f){return(i[f-4]|i[f-3]<<8|i[f-2]<<16|i[f-1]<<24)>>>0}function o(){if(this.pos+8>this.len)throw a(this,8);return new k(n(this.buf,this.pos+=4),n(this.buf,this.pos+=4))}t.create=s(),t.prototype._slice=O.Array.prototype.subarray||O.Array.prototype.slice,t.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),t.prototype.int32=function(){return 0|this.uint32()},t.prototype.sint32=function(){var i=this.uint32();return i>>>1^-(1&i)|0},t.prototype.bool=function(){return this.uint32()!==0},t.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return n(this.buf,this.pos+=4)},t.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|n(this.buf,this.pos+=4)},t.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var i=O.float.readFloatLE(this.buf,this.pos);return this.pos+=4,i},t.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var i=O.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,i},t.prototype.bytes=function(){var i=this.uint32(),f=this.pos,d=this.pos+i;if(d>this.len)throw a(this,i);if(this.pos+=i,Array.isArray(this.buf))return this.buf.slice(f,d);if(f===d){var h=O.Buffer;return h?h.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,f,d)},t.prototype.string=function(){var i=this.bytes();return S.read(i,0,i.length)},t.prototype.skip=function(i){if(typeof i=="number"){if(this.pos+i>this.len)throw a(this,i);this.pos+=i}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},t.prototype.skipType=function(i){switch(i){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(i=7&this.uint32())!=4;)this.skipType(i);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+i+" at offset "+this.pos)}return this},t._configure=function(i){w=i,t.create=s(),w._configure();var f=O.Long?"toLong":"toNumber";O.merge(t.prototype,{int64:function(){return r.call(this)[f](!1)},uint64:function(){return r.call(this)[f](!0)},sint64:function(){return r.call(this).zzDecode()[f](!1)},fixed64:function(){return o.call(this)[f](!0)},sfixed64:function(){return o.call(this)[f](!1)}})}},593:(D,e,p)=>{D.exports=k;var w=p(1408);(k.prototype=Object.create(w.prototype)).constructor=k;var O=p(9693);function k(S){w.call(this,S)}k._configure=function(){O.Buffer&&(k.prototype._slice=O.Buffer.prototype.slice)},k.prototype.string=function(){var S=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+S,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+S,this.len))},k._configure()},5054:D=>{D.exports={}},5994:(D,e,p)=>{e.Service=p(7948)},7948:(D,e,p)=>{D.exports=O;var w=p(9693);function O(k,S,a){if(typeof k!="function")throw TypeError("rpcImpl must be a function");w.EventEmitter.call(this),this.rpcImpl=k,this.requestDelimited=!!S,this.responseDelimited=!!a}(O.prototype=Object.create(w.EventEmitter.prototype)).constructor=O,O.prototype.rpcCall=function k(S,a,t,c,u){if(!c)throw TypeError("request must be specified");var s=this;if(!u)return w.asPromise(k,s,S,a,t,c);if(s.rpcImpl)try{return s.rpcImpl(S,a[s.requestDelimited?"encodeDelimited":"encode"](c).finish(),function(r,n){if(r)return s.emit("error",r,S),u(r);if(n!==null){if(!(n instanceof t))try{n=t[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(o){return s.emit("error",o,S),u(o)}return s.emit("data",n,S),u(null,n)}s.end(!0)})}catch(r){return s.emit("error",r,S),void setTimeout(function(){u(r)},0)}else setTimeout(function(){u(Error("already ended"))},0)},O.prototype.end=function(k){return this.rpcImpl&&(k||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2630:(D,e,p)=>{D.exports=O;var w=p(9693);function O(t,c){this.lo=t>>>0,this.hi=c>>>0}var k=O.zero=new O(0,0);k.toNumber=function(){return 0},k.zzEncode=k.zzDecode=function(){return this},k.length=function(){return 1};var S=O.zeroHash="\0\0\0\0\0\0\0\0";O.fromNumber=function(t){if(t===0)return k;var c=t<0;c&&(t=-t);var u=t>>>0,s=(t-u)/4294967296>>>0;return c&&(s=~s>>>0,u=~u>>>0,++u>4294967295&&(u=0,++s>4294967295&&(s=0))),new O(u,s)},O.from=function(t){if(typeof t=="number")return O.fromNumber(t);if(w.isString(t)){if(!w.Long)return O.fromNumber(parseInt(t,10));t=w.Long.fromString(t)}return t.low||t.high?new O(t.low>>>0,t.high>>>0):k},O.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var c=1+~this.lo>>>0,u=~this.hi>>>0;return c||(u=u+1>>>0),-(c+4294967296*u)}return this.lo+4294967296*this.hi},O.prototype.toLong=function(t){return w.Long?new w.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var a=String.prototype.charCodeAt;O.fromHash=function(t){return t===S?k:new O((a.call(t,0)|a.call(t,1)<<8|a.call(t,2)<<16|a.call(t,3)<<24)>>>0,(a.call(t,4)|a.call(t,5)<<8|a.call(t,6)<<16|a.call(t,7)<<24)>>>0)},O.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)},O.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},O.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},O.prototype.length=function(){var t=this.lo,c=(this.lo>>>28|this.hi<<4)>>>0,u=this.hi>>>24;return u===0?c===0?t<16384?t<128?1:2:t<2097152?3:4:c<16384?c<128?5:6:c<2097152?7:8:u<128?9:10}},9693:function(D,e,p){var w=e;function O(S,a,t){for(var c=Object.keys(a),u=0;u0)},w.Buffer=function(){try{var S=w.inquire("buffer").Buffer;return S.prototype.utf8Write?S:null}catch{return null}}(),w._Buffer_from=null,w._Buffer_allocUnsafe=null,w.newBuffer=function(S){return typeof S=="number"?w.Buffer?w._Buffer_allocUnsafe(S):new w.Array(S):w.Buffer?w._Buffer_from(S):typeof Uint8Array>"u"?S:new Uint8Array(S)},w.Array=typeof Uint8Array<"u"?Uint8Array:Array,w.Long=w.global.dcodeIO&&w.global.dcodeIO.Long||w.global.Long||w.inquire("long"),w.key2Re=/^true|false|0|1$/,w.key32Re=/^-?(?:0|[1-9][0-9]*)$/,w.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,w.longToHash=function(S){return S?w.LongBits.from(S).toHash():w.LongBits.zeroHash},w.longFromHash=function(S,a){var t=w.LongBits.fromHash(S);return w.Long?w.Long.fromBits(t.lo,t.hi,a):t.toNumber(!!a)},w.merge=O,w.lcFirst=function(S){return S.charAt(0).toLowerCase()+S.substring(1)},w.newError=k,w.ProtocolError=k("ProtocolError"),w.oneOfGetter=function(S){for(var a={},t=0;t-1;--u)if(a[c[u]]===1&&this[c[u]]!==void 0&&this[c[u]]!==null)return c[u]}},w.oneOfSetter=function(S){return function(a){for(var t=0;t{D.exports=s;var w,O=p(9693),k=O.LongBits,S=O.base64,a=O.utf8;function t(h,_,b){this.fn=h,this.len=_,this.next=void 0,this.val=b}function c(){}function u(h){this.head=h.head,this.tail=h.tail,this.len=h.len,this.next=h.states}function s(){this.len=0,this.head=new t(c,0,0),this.tail=this.head,this.states=null}var r=function(){return O.Buffer?function(){return(s.create=function(){return new w})()}:function(){return new s}};function n(h,_,b){_[b]=255&h}function o(h,_){this.len=h,this.next=void 0,this.val=_}function i(h,_,b){for(;h.hi;)_[b++]=127&h.lo|128,h.lo=(h.lo>>>7|h.hi<<25)>>>0,h.hi>>>=7;for(;h.lo>127;)_[b++]=127&h.lo|128,h.lo=h.lo>>>7;_[b++]=h.lo}function f(h,_,b){_[b]=255&h,_[b+1]=h>>>8&255,_[b+2]=h>>>16&255,_[b+3]=h>>>24}s.create=r(),s.alloc=function(h){return new O.Array(h)},O.Array!==Array&&(s.alloc=O.pool(s.alloc,O.Array.prototype.subarray)),s.prototype._push=function(h,_,b){return this.tail=this.tail.next=new t(h,_,b),this.len+=_,this},o.prototype=Object.create(t.prototype),o.prototype.fn=function(h,_,b){for(;h>127;)_[b++]=127&h|128,h>>>=7;_[b]=h},s.prototype.uint32=function(h){return this.len+=(this.tail=this.tail.next=new o((h>>>=0)<128?1:h<16384?2:h<2097152?3:h<268435456?4:5,h)).len,this},s.prototype.int32=function(h){return h<0?this._push(i,10,k.fromNumber(h)):this.uint32(h)},s.prototype.sint32=function(h){return this.uint32((h<<1^h>>31)>>>0)},s.prototype.uint64=function(h){var _=k.from(h);return this._push(i,_.length(),_)},s.prototype.int64=s.prototype.uint64,s.prototype.sint64=function(h){var _=k.from(h).zzEncode();return this._push(i,_.length(),_)},s.prototype.bool=function(h){return this._push(n,1,h?1:0)},s.prototype.fixed32=function(h){return this._push(f,4,h>>>0)},s.prototype.sfixed32=s.prototype.fixed32,s.prototype.fixed64=function(h){var _=k.from(h);return this._push(f,4,_.lo)._push(f,4,_.hi)},s.prototype.sfixed64=s.prototype.fixed64,s.prototype.float=function(h){return this._push(O.float.writeFloatLE,4,h)},s.prototype.double=function(h){return this._push(O.float.writeDoubleLE,8,h)};var d=O.Array.prototype.set?function(h,_,b){_.set(h,b)}:function(h,_,b){for(var I=0;I>>0;if(!_)return this._push(n,1,0);if(O.isString(h)){var b=s.alloc(_=S.length(h));S.decode(h,b,0),h=b}return this.uint32(_)._push(d,_,h)},s.prototype.string=function(h){var _=a.length(h);return _?this.uint32(_)._push(a.write,_,h):this._push(n,1,0)},s.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new t(c,0,0),this.len=0,this},s.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 t(c,0,0),this.len=0),this},s.prototype.ldelim=function(){var h=this.head,_=this.tail,b=this.len;return this.reset().uint32(b),b&&(this.tail.next=h.next,this.tail=_,this.len+=b),this},s.prototype.finish=function(){for(var h=this.head.next,_=this.constructor.alloc(this.len),b=0;h;)h.fn(h.val,_,b),b+=h.len,h=h.next;return _},s._configure=function(h){w=h,s.create=r(),w._configure()}},3155:(D,e,p)=>{D.exports=k;var w=p(1173);(k.prototype=Object.create(w.prototype)).constructor=k;var O=p(9693);function k(){w.call(this)}function S(a,t,c){a.length<40?O.utf8.write(a,t,c):t.utf8Write?t.utf8Write(a,c):t.write(a,c)}k._configure=function(){k.alloc=O._Buffer_allocUnsafe,k.writeBytesBuffer=O.Buffer&&O.Buffer.prototype instanceof Uint8Array&&O.Buffer.prototype.set.name==="set"?function(a,t,c){t.set(a,c)}:function(a,t,c){if(a.copy)a.copy(t,c,0,a.length);else for(var u=0;u>>0;return this.uint32(t),t&&this._push(k.writeBytesBuffer,t,a),this},k.prototype.string=function(a){var t=O.Buffer.byteLength(a);return this.uint32(t),t&&this._push(S,t,a),this},k._configure()},1798:(D,e,p)=>{var w=p(4155),O=65536,k=p(9509).Buffer,S=p.g.crypto||p.g.msCrypto;S&&S.getRandomValues?D.exports=function(a,t){if(a>4294967295)throw new RangeError("requested too many random bytes");var c=k.allocUnsafe(a);if(a>0)if(a>O)for(var u=0;u{var e={};function p(O,k,S){S||(S=Error);var a=function(t){var c,u;function s(r,n,o){return t.call(this,function(i,f,d){return typeof k=="string"?k:k(i,f,d)}(r,n,o))||this}return u=t,(c=s).prototype=Object.create(u.prototype),c.prototype.constructor=c,c.__proto__=u,s}(S);a.prototype.name=S.name,a.prototype.code=O,e[O]=a}function w(O,k){if(Array.isArray(O)){var S=O.length;return O=O.map(function(a){return String(a)}),S>2?"one of ".concat(k," ").concat(O.slice(0,S-1).join(", "),", or ")+O[S-1]:S===2?"one of ".concat(k," ").concat(O[0]," or ").concat(O[1]):"of ".concat(k," ").concat(O[0])}return"of ".concat(k," ").concat(String(O))}p("ERR_INVALID_OPT_VALUE",function(O,k){return'The value "'+k+'" is invalid for option "'+O+'"'},TypeError),p("ERR_INVALID_ARG_TYPE",function(O,k,S){var a,t,c,u,s;if(typeof k=="string"&&(t="not ",k.substr(0,4)===t)?(a="must not be",k=k.replace(/^not /,"")):a="must be",function(n,o,i){return(i===void 0||i>n.length)&&(i=n.length),n.substring(i-9,i)===o}(O," argument"))c="The ".concat(O," ").concat(a," ").concat(w(k,"type"));else{var r=(typeof s!="number"&&(s=0),s+1>(u=O).length||u.indexOf(".",s)===-1?"argument":"property");c='The "'.concat(O,'" ').concat(r," ").concat(a," ").concat(w(k,"type"))}return c+". Received type ".concat(typeof S)},TypeError),p("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),p("ERR_METHOD_NOT_IMPLEMENTED",function(O){return"The "+O+" method is not implemented"}),p("ERR_STREAM_PREMATURE_CLOSE","Premature close"),p("ERR_STREAM_DESTROYED",function(O){return"Cannot call "+O+" after a stream was destroyed"}),p("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),p("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),p("ERR_STREAM_WRITE_AFTER_END","write after end"),p("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),p("ERR_UNKNOWN_ENCODING",function(O){return"Unknown encoding: "+O},TypeError),p("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),D.exports.q=e},6753:(D,e,p)=>{var w=p(4155),O=Object.keys||function(n){var o=[];for(var i in n)o.push(i);return o};D.exports=u;var k=p(9481),S=p(4229);p(5717)(u,k);for(var a=O(S.prototype),t=0;t{D.exports=O;var w=p(4605);function O(k){if(!(this instanceof O))return new O(k);w.call(this,k)}p(5717)(O,w),O.prototype._transform=function(k,S,a){a(null,k)}},9481:(D,e,p)=>{var w,O=p(4155);D.exports=N,N.ReadableState=M,p(7187).EventEmitter;var k,S=function(W,Y){return W.listeners(Y).length},a=p(2503),t=p(8764).Buffer,c=(p.g!==void 0?p.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},u=p(4616);k=u&&u.debuglog?u.debuglog("stream"):function(){};var s,r,n,o=p(7327),i=p(1195),f=p(2457).getHighWaterMark,d=p(4281).q,h=d.ERR_INVALID_ARG_TYPE,_=d.ERR_STREAM_PUSH_AFTER_EOF,b=d.ERR_METHOD_NOT_IMPLEMENTED,I=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(5717)(N,a);var l=i.errorOrDestroy,j=["error","close","destroy","pause","resume"];function M(W,Y,F){w=w||p(6753),W=W||{},typeof F!="boolean"&&(F=Y instanceof w),this.objectMode=!!W.objectMode,F&&(this.objectMode=this.objectMode||!!W.readableObjectMode),this.highWaterMark=f(this,W,"readableHighWaterMark",F),this.buffer=new o,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=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(s||(s=p(2553).s),this.decoder=new s(W.encoding),this.encoding=W.encoding)}function N(W){if(w=w||p(6753),!(this instanceof N))return new N(W);var Y=this instanceof w;this._readableState=new M(W,this,Y),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),a.call(this)}function C(W,Y,F,ae,he){k("readableAddChunk",Y);var le,ce=W._readableState;if(Y===null)ce.reading=!1,function(ve,de){if(k("onEofChunk"),!de.ended){if(de.decoder){var pe=de.decoder.end();pe&&pe.length&&(de.buffer.push(pe),de.length+=de.objectMode?1:pe.length)}de.ended=!0,de.sync?m(ve):(de.needReadable=!1,de.emittedReadable||(de.emittedReadable=!0,E(ve)))}}(W,ce);else if(he||(le=function(ve,de){var pe,ye;return ye=de,t.isBuffer(ye)||ye instanceof c||typeof de=="string"||de===void 0||ve.objectMode||(pe=new h("chunk",["string","Buffer","Uint8Array"],de)),pe}(ce,Y)),le)l(W,le);else if(ce.objectMode||Y&&Y.length>0)if(typeof Y=="string"||ce.objectMode||Object.getPrototypeOf(Y)===t.prototype||(Y=function(ve){return t.from(ve)}(Y)),ae)ce.endEmitted?l(W,new I):x(W,ce,Y,!0);else if(ce.ended)l(W,new _);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!F?(Y=ce.decoder.write(Y),ce.objectMode||Y.length!==0?x(W,ce,Y,!1):B(W,ce)):x(W,ce,Y,!1)}else ae||(ce.reading=!1,B(W,ce));return!ce.ended&&(ce.lengthY.highWaterMark&&(Y.highWaterMark=function(F){return F>=P?F=P:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}(W)),W<=Y.length?W:Y.ended?Y.length:(Y.needReadable=!0,0))}function m(W){var Y=W._readableState;k("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(k("emitReadable",Y.flowing),Y.emittedReadable=!0,O.nextTick(E,W))}function E(W){var Y=W._readableState;k("emitReadable_",Y.destroyed,Y.length,Y.ended),Y.destroyed||!Y.length&&!Y.ended||(W.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,ie(W)}function B(W,Y){Y.readingMore||(Y.readingMore=!0,O.nextTick(T,W,Y))}function T(W,Y){for(;!Y.reading&&!Y.ended&&(Y.length0,Y.resumeScheduled&&!Y.paused?Y.flowing=!0:W.listenerCount("data")>0&&W.resume()}function te(W){k("readable nexttick read 0"),W.read(0)}function re(W,Y){k("resume",Y.reading),Y.reading||W.read(0),Y.resumeScheduled=!1,W.emit("resume"),ie(W),Y.flowing&&!Y.reading&&W.read(0)}function ie(W){var Y=W._readableState;for(k("flow",Y.flowing);Y.flowing&&W.read()!==null;);}function J(W,Y){return Y.length===0?null:(Y.objectMode?F=Y.buffer.shift():!W||W>=Y.length?(F=Y.decoder?Y.buffer.join(""):Y.buffer.length===1?Y.buffer.first():Y.buffer.concat(Y.length),Y.buffer.clear()):F=Y.buffer.consume(W,Y.decoder),F);var F}function ee(W){var Y=W._readableState;k("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,O.nextTick(G,Y,W))}function G(W,Y){if(k("endReadableNT",W.endEmitted,W.length),!W.endEmitted&&W.length===0&&(W.endEmitted=!0,Y.readable=!1,Y.emit("end"),W.autoDestroy)){var F=Y._writableState;(!F||F.autoDestroy&&F.finished)&&Y.destroy()}}function $(W,Y){for(var F=0,ae=W.length;F=Y.highWaterMark:Y.length>0)||Y.ended))return k("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?ee(this):m(this),null;if((W=v(W,Y))===0&&Y.ended)return Y.length===0&&ee(this),null;var ae,he=Y.needReadable;return k("need readable",he),(Y.length===0||Y.length-W0?J(W,Y):null)===null?(Y.needReadable=Y.length<=Y.highWaterMark,W=0):(Y.length-=W,Y.awaitDrain=0),Y.length===0&&(Y.ended||(Y.needReadable=!0),F!==W&&Y.ended&&ee(this)),ae!==null&&this.emit("data",ae),ae},N.prototype._read=function(W){l(this,new b("_read()"))},N.prototype.pipe=function(W,Y){var F=this,ae=this._readableState;switch(ae.pipesCount){case 0:ae.pipes=W;break;case 1:ae.pipes=[ae.pipes,W];break;default:ae.pipes.push(W)}ae.pipesCount+=1,k("pipe count=%d opts=%j",ae.pipesCount,Y);var he=Y&&Y.end===!1||W===O.stdout||W===O.stderr?y:le;function le(){k("onend"),W.end()}ae.endEmitted?O.nextTick(he):F.once("end",he),W.on("unpipe",function A(R,U){k("onunpipe"),R===F&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,k("cleanup"),W.removeListener("close",ye),W.removeListener("finish",V),W.removeListener("drain",ce),W.removeListener("error",pe),W.removeListener("unpipe",A),F.removeListener("end",le),F.removeListener("end",y),F.removeListener("data",de),ve=!0,!ae.awaitDrain||W._writableState&&!W._writableState.needDrain||ce())});var ce=function(A){return function(){var R=A._readableState;k("pipeOnDrain",R.awaitDrain),R.awaitDrain&&R.awaitDrain--,R.awaitDrain===0&&S(A,"data")&&(R.flowing=!0,ie(A))}}(F);W.on("drain",ce);var ve=!1;function de(A){k("ondata");var R=W.write(A);k("dest.write",R),R===!1&&((ae.pipesCount===1&&ae.pipes===W||ae.pipesCount>1&&$(ae.pipes,W)!==-1)&&!ve&&(k("false write response, pause",ae.awaitDrain),ae.awaitDrain++),F.pause())}function pe(A){k("onerror",A),y(),W.removeListener("error",pe),S(W,"error")===0&&l(W,A)}function ye(){W.removeListener("finish",V),y()}function V(){k("onfinish"),W.removeListener("close",ye),y()}function y(){k("unpipe"),F.unpipe(W)}return F.on("data",de),function(A,R,U){if(typeof A.prependListener=="function")return A.prependListener(R,U);A._events&&A._events[R]?Array.isArray(A._events[R])?A._events[R].unshift(U):A._events[R]=[U,A._events[R]]:A.on(R,U)}(W,"error",pe),W.once("close",ye),W.once("finish",V),W.emit("pipe",F),ae.flowing||(k("pipe resume"),F.resume()),W},N.prototype.unpipe=function(W){var Y=this._readableState,F={hasUnpiped:!1};if(Y.pipesCount===0)return this;if(Y.pipesCount===1)return W&&W!==Y.pipes||(W||(W=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,W&&W.emit("unpipe",this,F)),this;if(!W){var ae=Y.pipes,he=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var le=0;le0,ae.flowing!==!1&&this.resume()):W==="readable"&&(ae.endEmitted||ae.readableListening||(ae.readableListening=ae.needReadable=!0,ae.flowing=!1,ae.emittedReadable=!1,k("on readable",ae.length,ae.reading),ae.length?m(this):ae.reading||O.nextTick(te,this))),F},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(W,Y){var F=a.prototype.removeListener.call(this,W,Y);return W==="readable"&&O.nextTick(q,this),F},N.prototype.removeAllListeners=function(W){var Y=a.prototype.removeAllListeners.apply(this,arguments);return W!=="readable"&&W!==void 0||O.nextTick(q,this),Y},N.prototype.resume=function(){var W=this._readableState;return W.flowing||(k("resume"),W.flowing=!W.readableListening,function(Y,F){F.resumeScheduled||(F.resumeScheduled=!0,O.nextTick(re,Y,F))}(this,W)),W.paused=!1,this},N.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(W){var Y=this,F=this._readableState,ae=!1;for(var he in W.on("end",function(){if(k("wrapped end"),F.decoder&&!F.ended){var ce=F.decoder.end();ce&&ce.length&&Y.push(ce)}Y.push(null)}),W.on("data",function(ce){k("wrapped data"),F.decoder&&(ce=F.decoder.write(ce)),F.objectMode&&ce==null||(F.objectMode||ce&&ce.length)&&(Y.push(ce)||(ae=!0,W.pause()))}),W)this[he]===void 0&&typeof W[he]=="function"&&(this[he]=function(ce){return function(){return W[ce].apply(W,arguments)}}(he));for(var le=0;le{D.exports=u;var w=p(4281).q,O=w.ERR_METHOD_NOT_IMPLEMENTED,k=w.ERR_MULTIPLE_CALLBACK,S=w.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=w.ERR_TRANSFORM_WITH_LENGTH_0,t=p(6753);function c(n,o){var i=this._transformState;i.transforming=!1;var f=i.writecb;if(f===null)return this.emit("error",new k);i.writechunk=null,i.writecb=null,o!=null&&this.push(o),f(n);var d=this._readableState;d.reading=!1,(d.needReadable||d.length{var w,O=p(4155);function k(B){var T=this;this.next=null,this.entry=null,this.finish=function(){(function(q,te,re){var ie=q.entry;for(q.entry=null;ie;){var J=ie.callback;te.pendingcb--,J(void 0),ie=ie.next}te.corkedRequestsFree.next=q})(T,B)}}D.exports=N,N.WritableState=M;var S,a={deprecate:p(4927)},t=p(2503),c=p(8764).Buffer,u=(p.g!==void 0?p.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},s=p(1195),r=p(2457).getHighWaterMark,n=p(4281).q,o=n.ERR_INVALID_ARG_TYPE,i=n.ERR_METHOD_NOT_IMPLEMENTED,f=n.ERR_MULTIPLE_CALLBACK,d=n.ERR_STREAM_CANNOT_PIPE,h=n.ERR_STREAM_DESTROYED,_=n.ERR_STREAM_NULL_VALUES,b=n.ERR_STREAM_WRITE_AFTER_END,I=n.ERR_UNKNOWN_ENCODING,l=s.errorOrDestroy;function j(){}function M(B,T,q){w=w||p(6753),B=B||{},typeof q!="boolean"&&(q=T instanceof w),this.objectMode=!!B.objectMode,q&&(this.objectMode=this.objectMode||!!B.writableObjectMode),this.highWaterMark=r(this,B,"writableHighWaterMark",q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var te=B.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){(function(ie,J){var ee=ie._writableState,G=ee.sync,$=ee.writecb;if(typeof $!="function")throw new f;if(function(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}(ee),J)(function(Y,F,ae,he,le){--F.pendingcb,ae?(O.nextTick(le,he),O.nextTick(E,Y,F),Y._writableState.errorEmitted=!0,l(Y,he)):(le(he),Y._writableState.errorEmitted=!0,l(Y,he),E(Y,F))})(ie,ee,G,J,$);else{var W=v(ee)||ie.destroyed;W||ee.corked||ee.bufferProcessing||!ee.bufferedRequest||P(ie,ee),G?O.nextTick(x,ie,ee,W,$):x(ie,ee,W,$)}})(T,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new k(this)}function N(B){var T=this instanceof(w=w||p(6753));if(!T&&!S.call(N,this))return new N(B);this._writableState=new M(B,this,T),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),t.call(this)}function C(B,T,q,te,re,ie,J){T.writelen=te,T.writecb=J,T.writing=!0,T.sync=!0,T.destroyed?T.onwrite(new h("write")):q?B._writev(re,T.onwrite):B._write(re,ie,T.onwrite),T.sync=!1}function x(B,T,q,te){q||function(re,ie){ie.length===0&&ie.needDrain&&(ie.needDrain=!1,re.emit("drain"))}(B,T),T.pendingcb--,te(),E(B,T)}function P(B,T){T.bufferProcessing=!0;var q=T.bufferedRequest;if(B._writev&&q&&q.next){var te=T.bufferedRequestCount,re=new Array(te),ie=T.corkedRequestsFree;ie.entry=q;for(var J=0,ee=!0;q;)re[J]=q,q.isBuf||(ee=!1),q=q.next,J+=1;re.allBuffers=ee,C(B,T,!0,T.length,re,"",ie.finish),T.pendingcb++,T.lastBufferedRequest=null,ie.next?(T.corkedRequestsFree=ie.next,ie.next=null):T.corkedRequestsFree=new k(T),T.bufferedRequestCount=0}else{for(;q;){var G=q.chunk,$=q.encoding,W=q.callback;if(C(B,T,!1,T.objectMode?1:G.length,G,$,W),q=q.next,T.bufferedRequestCount--,T.writing)break}q===null&&(T.lastBufferedRequest=null)}T.bufferedRequest=q,T.bufferProcessing=!1}function v(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function m(B,T){B._final(function(q){T.pendingcb--,q&&l(B,q),T.prefinished=!0,B.emit("prefinish"),E(B,T)})}function E(B,T){var q=v(T);if(q&&(function(re,ie){ie.prefinished||ie.finalCalled||(typeof re._final!="function"||ie.destroyed?(ie.prefinished=!0,re.emit("prefinish")):(ie.pendingcb++,ie.finalCalled=!0,O.nextTick(m,re,ie)))}(B,T),T.pendingcb===0&&(T.finished=!0,B.emit("finish"),T.autoDestroy))){var te=B._readableState;(!te||te.autoDestroy&&te.endEmitted)&&B.destroy()}return q}p(5717)(N,t),M.prototype.getBuffer=function(){for(var B=this.bufferedRequest,T=[];B;)T.push(B),B=B.next;return T},function(){try{Object.defineProperty(M.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(B){return!!S.call(this,B)||this===N&&B&&B._writableState instanceof M}})):S=function(B){return B instanceof this},N.prototype.pipe=function(){l(this,new d)},N.prototype.write=function(B,T,q){var te,re=this._writableState,ie=!1,J=!re.objectMode&&(te=B,c.isBuffer(te)||te instanceof u);return J&&!c.isBuffer(B)&&(B=function(ee){return c.from(ee)}(B)),typeof T=="function"&&(q=T,T=null),J?T="buffer":T||(T=re.defaultEncoding),typeof q!="function"&&(q=j),re.ending?function(ee,G){var $=new b;l(ee,$),O.nextTick(G,$)}(this,q):(J||function(ee,G,$,W){var Y;return $===null?Y=new _:typeof $=="string"||G.objectMode||(Y=new o("chunk",["string","Buffer"],$)),!Y||(l(ee,Y),O.nextTick(W,Y),!1)}(this,re,B,q))&&(re.pendingcb++,ie=function(ee,G,$,W,Y,F){if(!$){var ae=function(ve,de,pe){return ve.objectMode||ve.decodeStrings===!1||typeof de!="string"||(de=c.from(de,pe)),de}(G,W,Y);W!==ae&&($=!0,Y="buffer",W=ae)}var he=G.objectMode?1:W.length;G.length+=he;var le=G.length-1))throw new I(B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(B,T,q){q(new i("_write()"))},N.prototype._writev=null,N.prototype.end=function(B,T,q){var te=this._writableState;return typeof B=="function"?(q=B,B=null,T=null):typeof T=="function"&&(q=T,T=null),B!=null&&this.write(B,T),te.corked&&(te.corked=1,this.uncork()),te.ending||function(re,ie,J){ie.ending=!0,E(re,ie),J&&(ie.finished?O.nextTick(J):re.once("finish",J)),ie.ended=!0,re.writable=!1}(this,te,q),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),N.prototype.destroy=s.destroy,N.prototype._undestroy=s.undestroy,N.prototype._destroy=function(B,T){T(B)}},5850:(D,e,p)=>{var w,O=p(4155);function k(_,b,I){return(b=function(l){var j=function(M,N){if(typeof M!="object"||M===null)return M;var C=M[Symbol.toPrimitive];if(C!==void 0){var x=C.call(M,"string");if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(l);return typeof j=="symbol"?j:String(j)}(b))in _?Object.defineProperty(_,b,{value:I,enumerable:!0,configurable:!0,writable:!0}):_[b]=I,_}var S=p(8610),a=Symbol("lastResolve"),t=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),s=Symbol("lastPromise"),r=Symbol("handlePromise"),n=Symbol("stream");function o(_,b){return{value:_,done:b}}function i(_){var b=_[a];if(b!==null){var I=_[n].read();I!==null&&(_[s]=null,_[a]=null,_[t]=null,b(o(I,!1)))}}function f(_){O.nextTick(i,_)}var d=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((k(w={get stream(){return this[n]},next:function(){var _=this,b=this[c];if(b!==null)return Promise.reject(b);if(this[u])return Promise.resolve(o(void 0,!0));if(this[n].destroyed)return new Promise(function(M,N){O.nextTick(function(){_[c]?N(_[c]):M(o(void 0,!0))})});var I,l=this[s];if(l)I=new Promise(function(M,N){return function(C,x){M.then(function(){N[u]?C(o(void 0,!0)):N[r](C,x)},x)}}(l,this));else{var j=this[n].read();if(j!==null)return Promise.resolve(o(j,!1));I=new Promise(this[r])}return this[s]=I,I}},Symbol.asyncIterator,function(){return this}),k(w,"return",function(){var _=this;return new Promise(function(b,I){_[n].destroy(null,function(l){l?I(l):b(o(void 0,!0))})})}),w),d);D.exports=function(_){var b,I=Object.create(h,(k(b={},n,{value:_,writable:!0}),k(b,a,{value:null,writable:!0}),k(b,t,{value:null,writable:!0}),k(b,c,{value:null,writable:!0}),k(b,u,{value:_._readableState.endEmitted,writable:!0}),k(b,r,{value:function(l,j){var M=I[n].read();M?(I[s]=null,I[a]=null,I[t]=null,l(o(M,!1))):(I[a]=l,I[t]=j)},writable:!0}),b));return I[s]=null,S(_,function(l){if(l&&l.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=I[t];return j!==null&&(I[s]=null,I[a]=null,I[t]=null,j(l)),void(I[c]=l)}var M=I[a];M!==null&&(I[s]=null,I[a]=null,I[t]=null,M(o(void 0,!0))),I[u]=!0}),_.on("readable",f.bind(null,I)),I}},7327:(D,e,p)=>{function w(s,r){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);r&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,o)}return n}function O(s){for(var r=1;r0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(o){var i={data:o,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(o){if(this.length===0)return"";for(var i=this.head,f=""+i.data;i=i.next;)f+=o+i.data;return f}},{key:"concat",value:function(o){if(this.length===0)return t.alloc(0);for(var i,f,d,h=t.allocUnsafe(o>>>0),_=this.head,b=0;_;)i=_.data,f=h,d=b,t.prototype.copy.call(i,f,d),b+=_.data.length,_=_.next;return h}},{key:"consume",value:function(o,i){var f;return oh.length?h.length:o;if(_===h.length?d+=h:d+=h.slice(0,o),(o-=_)==0){_===h.length?(++f,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=h.slice(_));break}++f}return this.length-=f,d}},{key:"_getBuffer",value:function(o){var i=t.allocUnsafe(o),f=this.head,d=1;for(f.data.copy(i),o-=f.data.length;f=f.next;){var h=f.data,_=o>h.length?h.length:o;if(h.copy(i,i.length-o,0,_),(o-=_)==0){_===h.length?(++d,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=h.slice(_));break}++d}return this.length-=d,i}},{key:u,value:function(o,i){return c(this,O(O({},i),{},{depth:0,customInspect:!1}))}}])&&S(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),s}()},1195:(D,e,p)=>{var w=p(4155);function O(a,t){S(a,t),k(a)}function k(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function S(a,t){a.emit("error",t)}D.exports={destroy:function(a,t){var c=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?(t?t(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,w.nextTick(S,this,a)):w.nextTick(S,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(r){!t&&r?c._writableState?c._writableState.errorEmitted?w.nextTick(k,c):(c._writableState.errorEmitted=!0,w.nextTick(O,c,r)):w.nextTick(O,c,r):t?(w.nextTick(k,c),t(r)):w.nextTick(k,c)}),this)},undestroy:function(){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)},errorOrDestroy:function(a,t){var c=a._readableState,u=a._writableState;c&&c.autoDestroy||u&&u.autoDestroy?a.destroy(t):a.emit("error",t)}}},8610:(D,e,p)=>{var w=p(4281).q.ERR_STREAM_PREMATURE_CLOSE;function O(){}D.exports=function k(S,a,t){if(typeof a=="function")return k(S,null,a);a||(a={}),t=function(_){var b=!1;return function(){if(!b){b=!0;for(var I=arguments.length,l=new Array(I),j=0;j{D.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(D,e,p)=>{var w,O=p(4281).q,k=O.ERR_MISSING_ARGS,S=O.ERR_STREAM_DESTROYED;function a(u){if(u)throw u}function t(u){u()}function c(u,s){return u.pipe(s)}D.exports=function(){for(var u=arguments.length,s=new Array(u),r=0;r0,function(_){n||(n=_),_&&i.forEach(t),h||(i.forEach(t),o(n))})});return s.reduce(c)}},2457:(D,e,p)=>{var w=p(4281).q.ERR_INVALID_OPT_VALUE;D.exports={getHighWaterMark:function(O,k,S,a){var t=function(c,u,s){return c.highWaterMark!=null?c.highWaterMark:u?c[s]:null}(k,a,S);if(t!=null){if(!isFinite(t)||Math.floor(t)!==t||t<0)throw new w(a?S:"highWaterMark",t);return Math.floor(t)}return O.objectMode?16:16384}}},2503:(D,e,p)=>{D.exports=p(7187).EventEmitter},8473:(D,e,p)=>{(e=D.exports=p(9481)).Stream=e,e.Readable=e,e.Writable=p(4229),e.Duplex=p(6753),e.Transform=p(4605),e.PassThrough=p(2725),e.finished=p(8610),e.pipeline=p(9946)},9785:(D,e,p)=>{var w=p(8764).Buffer,O=p(5717),k=p(3349),S=new Array(16),a=[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],t=[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],c=[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],u=[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],s=[0,1518500249,1859775393,2400959708,2840853838],r=[1352829926,1548603684,1836072691,2053994217,0];function n(){k.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function o(b,I){return b<>>32-I}function i(b,I,l,j,M,N,C,x){return o(b+(I^l^j)+N+C|0,x)+M|0}function f(b,I,l,j,M,N,C,x){return o(b+(I&l|~I&j)+N+C|0,x)+M|0}function d(b,I,l,j,M,N,C,x){return o(b+((I|~l)^j)+N+C|0,x)+M|0}function h(b,I,l,j,M,N,C,x){return o(b+(I&j|l&~j)+N+C|0,x)+M|0}function _(b,I,l,j,M,N,C,x){return o(b+(I^(l|~j))+N+C|0,x)+M|0}O(n,k),n.prototype._update=function(){for(var b=S,I=0;I<16;++I)b[I]=this._block.readInt32LE(4*I);for(var l=0|this._a,j=0|this._b,M=0|this._c,N=0|this._d,C=0|this._e,x=0|this._a,P=0|this._b,v=0|this._c,m=0|this._d,E=0|this._e,B=0;B<80;B+=1){var T,q;B<16?(T=i(l,j,M,N,C,b[a[B]],s[0],c[B]),q=_(x,P,v,m,E,b[t[B]],r[0],u[B])):B<32?(T=f(l,j,M,N,C,b[a[B]],s[1],c[B]),q=h(x,P,v,m,E,b[t[B]],r[1],u[B])):B<48?(T=d(l,j,M,N,C,b[a[B]],s[2],c[B]),q=d(x,P,v,m,E,b[t[B]],r[2],u[B])):B<64?(T=h(l,j,M,N,C,b[a[B]],s[3],c[B]),q=f(x,P,v,m,E,b[t[B]],r[3],u[B])):(T=_(l,j,M,N,C,b[a[B]],s[4],c[B]),q=i(x,P,v,m,E,b[t[B]],r[4],u[B])),l=C,C=N,N=o(M,10),M=j,j=T,x=E,E=m,m=o(v,10),v=P,P=q}var te=this._b+M+m|0;this._b=this._c+N+E|0,this._c=this._d+C+x|0,this._d=this._e+l+P|0,this._e=this._a+j+v|0,this._a=te},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var b=w.alloc?w.alloc(20):new w(20);return b.writeInt32LE(this._a,0),b.writeInt32LE(this._b,4),b.writeInt32LE(this._c,8),b.writeInt32LE(this._d,12),b.writeInt32LE(this._e,16),b},D.exports=n},9509:(D,e,p)=>{var w=p(8764),O=w.Buffer;function k(a,t){for(var c in a)t[c]=a[c]}function S(a,t,c){return O(a,t,c)}O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow?D.exports=w:(k(w,e),e.Buffer=S),S.prototype=Object.create(O.prototype),k(O,S),S.from=function(a,t,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return O(a,t,c)},S.alloc=function(a,t,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=O(a);return t!==void 0?typeof c=="string"?u.fill(t,c):u.fill(t):u.fill(0),u},S.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return O(a)},S.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(a)}},64:function(D,e,p){var w,O=p(4155),k=p(8764).Buffer;(function(S){function a(t,c){if(c=c||{type:"Array"},O!==void 0&&typeof O.pid=="number"&&O.versions&&O.versions.node)return function(u,s){var r=p(3954).randomBytes(u);switch(s.type){case"Array":return[].slice.call(r);case"Buffer":return r;case"Uint8Array":for(var n=new Uint8Array(u),o=0;o{var w=p(9509).Buffer;function O(k,S){this._block=w.alloc(k),this._finalSize=S,this._blockSize=k,this._len=0}O.prototype.update=function(k,S){typeof k=="string"&&(S=S||"utf8",k=w.from(k,S));for(var a=this._block,t=this._blockSize,c=k.length,u=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var t=(4294967295&a)>>>0,c=(a-t)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(t,this._blockSize-4)}this._update(this._block);var u=this._hash();return k?u.toString(k):u},O.prototype._update=function(){throw new Error("_update must be implemented by subclass")},D.exports=O},9072:(D,e,p)=>{var w=D.exports=function(O){O=O.toLowerCase();var k=w[O];if(!k)throw new Error(O+" is not supported (we accept pull requests)");return new k};w.sha=p(4448),w.sha1=p(8336),w.sha224=p(8432),w.sha256=p(7499),w.sha384=p(1686),w.sha512=p(7816)},4448:(D,e,p)=>{var w=p(5717),O=p(4189),k=p(9509).Buffer,S=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function t(){this.init(),this._w=a,O.call(this,64,56)}function c(s){return s<<30|s>>>2}function u(s,r,n,o){return s===0?r&n|~r&o:s===2?r&n|r&o|n&o:r^n^o}w(t,O),t.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},t.prototype._update=function(s){for(var r,n=this._w,o=0|this._a,i=0|this._b,f=0|this._c,d=0|this._d,h=0|this._e,_=0;_<16;++_)n[_]=s.readInt32BE(4*_);for(;_<80;++_)n[_]=n[_-3]^n[_-8]^n[_-14]^n[_-16];for(var b=0;b<80;++b){var I=~~(b/20),l=0|((r=o)<<5|r>>>27)+u(I,i,f,d)+h+n[b]+S[I];h=d,d=f,f=c(i),i=o,o=l}this._a=o+this._a|0,this._b=i+this._b|0,this._c=f+this._c|0,this._d=d+this._d|0,this._e=h+this._e|0},t.prototype._hash=function(){var s=k.allocUnsafe(20);return s.writeInt32BE(0|this._a,0),s.writeInt32BE(0|this._b,4),s.writeInt32BE(0|this._c,8),s.writeInt32BE(0|this._d,12),s.writeInt32BE(0|this._e,16),s},D.exports=t},8336:(D,e,p)=>{var w=p(5717),O=p(4189),k=p(9509).Buffer,S=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function t(){this.init(),this._w=a,O.call(this,64,56)}function c(r){return r<<5|r>>>27}function u(r){return r<<30|r>>>2}function s(r,n,o,i){return r===0?n&o|~n&i:r===2?n&o|n&i|o&i:n^o^i}w(t,O),t.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},t.prototype._update=function(r){for(var n,o=this._w,i=0|this._a,f=0|this._b,d=0|this._c,h=0|this._d,_=0|this._e,b=0;b<16;++b)o[b]=r.readInt32BE(4*b);for(;b<80;++b)o[b]=(n=o[b-3]^o[b-8]^o[b-14]^o[b-16])<<1|n>>>31;for(var I=0;I<80;++I){var l=~~(I/20),j=c(i)+s(l,f,d,h)+_+o[I]+S[l]|0;_=h,h=d,d=u(f),f=i,i=j}this._a=i+this._a|0,this._b=f+this._b|0,this._c=d+this._c|0,this._d=h+this._d|0,this._e=_+this._e|0},t.prototype._hash=function(){var r=k.allocUnsafe(20);return r.writeInt32BE(0|this._a,0),r.writeInt32BE(0|this._b,4),r.writeInt32BE(0|this._c,8),r.writeInt32BE(0|this._d,12),r.writeInt32BE(0|this._e,16),r},D.exports=t},8432:(D,e,p)=>{var w=p(5717),O=p(7499),k=p(4189),S=p(9509).Buffer,a=new Array(64);function t(){this.init(),this._w=a,k.call(this,64,56)}w(t,O),t.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},t.prototype._hash=function(){var c=S.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},D.exports=t},7499:(D,e,p)=>{var w=p(5717),O=p(4189),k=p(9509).Buffer,S=[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],a=new Array(64);function t(){this.init(),this._w=a,O.call(this,64,56)}function c(o,i,f){return f^o&(i^f)}function u(o,i,f){return o&i|f&(o|i)}function s(o){return(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10)}function r(o){return(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7)}function n(o){return(o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3}w(t,O),t.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},t.prototype._update=function(o){for(var i,f=this._w,d=0|this._a,h=0|this._b,_=0|this._c,b=0|this._d,I=0|this._e,l=0|this._f,j=0|this._g,M=0|this._h,N=0;N<16;++N)f[N]=o.readInt32BE(4*N);for(;N<64;++N)f[N]=0|(((i=f[N-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)+f[N-7]+n(f[N-15])+f[N-16];for(var C=0;C<64;++C){var x=M+r(I)+c(I,l,j)+S[C]+f[C]|0,P=s(d)+u(d,h,_)|0;M=j,j=l,l=I,I=b+x|0,b=_,_=h,h=d,d=x+P|0}this._a=d+this._a|0,this._b=h+this._b|0,this._c=_+this._c|0,this._d=b+this._d|0,this._e=I+this._e|0,this._f=l+this._f|0,this._g=j+this._g|0,this._h=M+this._h|0},t.prototype._hash=function(){var o=k.allocUnsafe(32);return o.writeInt32BE(this._a,0),o.writeInt32BE(this._b,4),o.writeInt32BE(this._c,8),o.writeInt32BE(this._d,12),o.writeInt32BE(this._e,16),o.writeInt32BE(this._f,20),o.writeInt32BE(this._g,24),o.writeInt32BE(this._h,28),o},D.exports=t},1686:(D,e,p)=>{var w=p(5717),O=p(7816),k=p(4189),S=p(9509).Buffer,a=new Array(160);function t(){this.init(),this._w=a,k.call(this,128,112)}w(t,O),t.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},t.prototype._hash=function(){var c=S.allocUnsafe(48);function u(s,r,n){c.writeInt32BE(s,n),c.writeInt32BE(r,n+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),c},D.exports=t},7816:(D,e,p)=>{var w=p(5717),O=p(4189),k=p(9509).Buffer,S=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function t(){this.init(),this._w=a,O.call(this,128,112)}function c(h,_,b){return b^h&(_^b)}function u(h,_,b){return h&_|b&(h|_)}function s(h,_){return(h>>>28|_<<4)^(_>>>2|h<<30)^(_>>>7|h<<25)}function r(h,_){return(h>>>14|_<<18)^(h>>>18|_<<14)^(_>>>9|h<<23)}function n(h,_){return(h>>>1|_<<31)^(h>>>8|_<<24)^h>>>7}function o(h,_){return(h>>>1|_<<31)^(h>>>8|_<<24)^(h>>>7|_<<25)}function i(h,_){return(h>>>19|_<<13)^(_>>>29|h<<3)^h>>>6}function f(h,_){return(h>>>19|_<<13)^(_>>>29|h<<3)^(h>>>6|_<<26)}function d(h,_){return h>>>0<_>>>0?1:0}w(t,O),t.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},t.prototype._update=function(h){for(var _=this._w,b=0|this._ah,I=0|this._bh,l=0|this._ch,j=0|this._dh,M=0|this._eh,N=0|this._fh,C=0|this._gh,x=0|this._hh,P=0|this._al,v=0|this._bl,m=0|this._cl,E=0|this._dl,B=0|this._el,T=0|this._fl,q=0|this._gl,te=0|this._hl,re=0;re<32;re+=2)_[re]=h.readInt32BE(4*re),_[re+1]=h.readInt32BE(4*re+4);for(;re<160;re+=2){var ie=_[re-30],J=_[re-30+1],ee=n(ie,J),G=o(J,ie),$=i(ie=_[re-4],J=_[re-4+1]),W=f(J,ie),Y=_[re-14],F=_[re-14+1],ae=_[re-32],he=_[re-32+1],le=G+F|0,ce=ee+Y+d(le,G)|0;ce=(ce=ce+$+d(le=le+W|0,W)|0)+ae+d(le=le+he|0,he)|0,_[re]=ce,_[re+1]=le}for(var ve=0;ve<160;ve+=2){ce=_[ve],le=_[ve+1];var de=u(b,I,l),pe=u(P,v,m),ye=s(b,P),V=s(P,b),y=r(M,B),A=r(B,M),R=S[ve],U=S[ve+1],z=c(M,N,C),L=c(B,T,q),H=te+A|0,ne=x+y+d(H,te)|0;ne=(ne=(ne=ne+z+d(H=H+L|0,L)|0)+R+d(H=H+U|0,U)|0)+ce+d(H=H+le|0,le)|0;var oe=V+pe|0,K=ye+de+d(oe,V)|0;x=C,te=q,C=N,q=T,N=M,T=B,M=j+ne+d(B=E+H|0,E)|0,j=l,E=m,l=I,m=v,I=b,v=P,b=ne+K+d(P=H+oe|0,H)|0}this._al=this._al+P|0,this._bl=this._bl+v|0,this._cl=this._cl+m|0,this._dl=this._dl+E|0,this._el=this._el+B|0,this._fl=this._fl+T|0,this._gl=this._gl+q|0,this._hl=this._hl+te|0,this._ah=this._ah+b+d(this._al,P)|0,this._bh=this._bh+I+d(this._bl,v)|0,this._ch=this._ch+l+d(this._cl,m)|0,this._dh=this._dh+j+d(this._dl,E)|0,this._eh=this._eh+M+d(this._el,B)|0,this._fh=this._fh+N+d(this._fl,T)|0,this._gh=this._gh+C+d(this._gl,q)|0,this._hh=this._hh+x+d(this._hl,te)|0},t.prototype._hash=function(){var h=k.allocUnsafe(64);function _(b,I,l){h.writeInt32BE(b,l),h.writeInt32BE(I,l+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),_(this._gh,this._gl,48),_(this._hh,this._hl,56),h},D.exports=t},2830:(D,e,p)=>{D.exports=O;var w=p(7187).EventEmitter;function O(){w.call(this)}p(5717)(O,w),O.Readable=p(9481),O.Writable=p(4229),O.Duplex=p(6753),O.Transform=p(4605),O.PassThrough=p(2725),O.finished=p(8610),O.pipeline=p(9946),O.Stream=O,O.prototype.pipe=function(k,S){var a=this;function t(i){k.writable&&k.write(i)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",t),k.on("drain",c),k._isStdio||S&&S.end===!1||(a.on("end",s),a.on("close",r));var u=!1;function s(){u||(u=!0,k.end())}function r(){u||(u=!0,typeof k.destroy=="function"&&k.destroy())}function n(i){if(o(),w.listenerCount(this,"error")===0)throw i}function o(){a.removeListener("data",t),k.removeListener("drain",c),a.removeListener("end",s),a.removeListener("close",r),a.removeListener("error",n),k.removeListener("error",n),a.removeListener("end",o),a.removeListener("close",o),k.removeListener("close",o)}return a.on("error",n),k.on("error",n),a.on("end",o),a.on("close",o),k.on("close",o),k.emit("pipe",a),k}},2553:(D,e,p)=>{var w=p(9509).Buffer,O=w.isEncoding||function(o){switch((o=""+o)&&o.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 k(o){var i;switch(this.encoding=function(f){var d=function(h){if(!h)return"utf8";for(var _;;)switch(h){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 h;default:if(_)return;h=(""+h).toLowerCase(),_=!0}}(f);if(typeof d!="string"&&(w.isEncoding===O||!O(f)))throw new Error("Unknown encoding: "+f);return d||f}(o),this.encoding){case"utf16le":this.text=t,this.end=c,i=4;break;case"utf8":this.fillLast=a,i=4;break;case"base64":this.text=u,this.end=s,i=3;break;default:return this.write=r,void(this.end=n)}this.lastNeed=0,this.lastTotal=0,this.lastChar=w.allocUnsafe(i)}function S(o){return o<=127?0:o>>5==6?2:o>>4==14?3:o>>3==30?4:o>>6==2?-1:-2}function a(o){var i=this.lastTotal-this.lastNeed,f=function(d,h,_){if((192&h[0])!=128)return d.lastNeed=0,"�";if(d.lastNeed>1&&h.length>1){if((192&h[1])!=128)return d.lastNeed=1,"�";if(d.lastNeed>2&&h.length>2&&(192&h[2])!=128)return d.lastNeed=2,"�"}}(this,o);return f!==void 0?f:this.lastNeed<=o.length?(o.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(o.copy(this.lastChar,i,0,o.length),void(this.lastNeed-=o.length))}function t(o,i){if((o.length-i)%2==0){var f=o.toString("utf16le",i);if(f){var d=f.charCodeAt(f.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",i,o.length-1)}function c(o){var i=o&&o.length?this.write(o):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,f)}return i}function u(o,i){var f=(o.length-i)%3;return f===0?o.toString("base64",i):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",i,o.length-f))}function s(o){var i=o&&o.length?this.write(o):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function r(o){return o.toString(this.encoding)}function n(o){return o&&o.length?this.write(o):""}e.s=k,k.prototype.write=function(o){if(o.length===0)return"";var i,f;if(this.lastNeed){if((i=this.fillLast(o))===void 0)return"";f=this.lastNeed,this.lastNeed=0}else f=0;return f=0?(l>0&&(h.lastNeed=l-1),l):--I=0?(l>0&&(h.lastNeed=l-2),l):--I=0?(l>0&&(l===2?l=0:h.lastNeed=l-3),l):0}(this,o,i);if(!this.lastNeed)return o.toString("utf8",i);this.lastTotal=f;var d=o.length-(f-this.lastNeed);return o.copy(this.lastChar,0,d),o.toString("utf8",i,d)},k.prototype.fillLast=function(o){if(this.lastNeed<=o.length)return o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,o.length),this.lastNeed-=o.length}},5892:(D,e,p)=>{var w=p(8764).Buffer;const O=p(3550),k=new(p(6266)).ec("secp256k1"),S=p(4142),a=w.alloc(32,0),t=w.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),c=w.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),u=k.curve.n,s=u.shrn(1),r=k.curve.g,n="Expected Private",o="Expected Point",i="Expected Tweak",f="Expected Hash";function d(P){return w.isBuffer(P)&&P.length===32}function h(P){return!!d(P)&&P.compare(t)<0}function _(P){if(!w.isBuffer(P)||P.length<33)return!1;const v=P[0],m=P.slice(1,33);if(m.compare(a)===0||m.compare(c)>=0)return!1;if((v===2||v===3)&&P.length===33){try{N(P)}catch{return!1}return!0}const E=P.slice(33);return E.compare(a)!==0&&!(E.compare(c)>=0)&&v===4&&P.length===65}function b(P){return P[0]!==4}function I(P){return!!d(P)&&P.compare(a)>0&&P.compare(t)<0}function l(P,v){return P===void 0&&v!==void 0?b(v):P===void 0||P}function j(P){return new O(P)}function M(P){return P.toArrayLike(w,"be",32)}function N(P){return k.curve.decodePoint(P)}function C(P,v){return w.from(P._encode(v))}function x(P,v,m){if(!d(P))throw new TypeError(f);if(!I(v))throw new TypeError(n);if(m!==void 0&&!d(m))throw new TypeError("Expected Extra Data (32 bytes)");const E=j(v),B=j(P);let T,q;S(P,v,function(re){const ie=j(re),J=r.mul(ie);return!J.isInfinity()&&(T=J.x.umod(u),T.isZero()!==0&&(q=ie.invm(u).mul(B.add(E.mul(T))).umod(u),q.isZero()!==0))},I,m),q.cmp(s)>0&&(q=u.sub(q));const te=w.allocUnsafe(64);return M(T).copy(te,0),M(q).copy(te,32),te}D.exports={isPoint:_,isPointCompressed:function(P){return!!_(P)&&b(P)},isPrivate:I,pointAdd:function(P,v,m){if(!_(P))throw new TypeError(o);if(!_(v))throw new TypeError(o);const E=N(P),B=N(v),T=E.add(B);return T.isInfinity()?null:C(T,l(m,P))},pointAddScalar:function(P,v,m){if(!_(P))throw new TypeError(o);if(!h(v))throw new TypeError(i);const E=l(m,P),B=N(P);if(v.compare(a)===0)return C(B,E);const T=j(v),q=r.mul(T),te=B.add(q);return te.isInfinity()?null:C(te,E)},pointCompress:function(P,v){if(!_(P))throw new TypeError(o);const m=N(P);if(m.isInfinity())throw new TypeError(o);return C(m,l(v,P))},pointFromScalar:function(P,v){if(!I(P))throw new TypeError(n);const m=j(P),E=r.mul(m);return E.isInfinity()?null:C(E,l(v))},pointMultiply:function(P,v,m){if(!_(P))throw new TypeError(o);if(!h(v))throw new TypeError(i);const E=l(m,P),B=N(P),T=j(v),q=B.mul(T);return q.isInfinity()?null:C(q,E)},privateAdd:function(P,v){if(!I(P))throw new TypeError(n);if(!h(v))throw new TypeError(i);const m=j(P),E=j(v),B=M(m.add(E).umod(u));return I(B)?B:null},privateSub:function(P,v){if(!I(P))throw new TypeError(n);if(!h(v))throw new TypeError(i);const m=j(P),E=j(v),B=M(m.sub(E).umod(u));return I(B)?B:null},sign:function(P,v){return x(P,v)},signWithEntropy:function(P,v,m){return x(P,v,m)},verify:function(P,v,m,E){if(!d(P))throw new TypeError(f);if(!_(v))throw new TypeError(o);if(!function(G){const $=G.slice(0,32),W=G.slice(32,64);return w.isBuffer(G)&&G.length===64&&$.compare(t)<0&&W.compare(t)<0}(m))throw new TypeError("Expected Signature");const B=N(v),T=j(m.slice(0,32)),q=j(m.slice(32,64));if(E&&q.cmp(s)>0||T.gtn(0)<=0||q.gtn(0)<=0)return!1;const te=j(P),re=q.invm(u),ie=te.mul(re).umod(u),J=T.mul(re).umod(u),ee=r.mulAdd(ie,B,J);return!ee.isInfinity()&&ee.x.umod(u).eq(T)}}},4142:(D,e,p)=>{var w=p(8764).Buffer;const O=p(8355),k=w.alloc(1,1),S=w.alloc(1,0);D.exports=function(a,t,c,u,s){let r=w.alloc(32,0),n=w.alloc(32,1);r=O("sha256",r).update(n).update(S).update(t).update(a).update(s||"").digest(),n=O("sha256",r).update(n).digest(),r=O("sha256",r).update(n).update(k).update(t).update(a).update(s||"").digest(),n=O("sha256",r).update(n).digest(),n=O("sha256",r).update(n).digest();let o=n;for(;!u(o)||!c(o);)r=O("sha256",r).update(n).update(S).digest(),n=O("sha256",r).update(n).digest(),n=O("sha256",r).update(n).digest(),o=n;return o}},8136:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(b,I,l,j){j===void 0&&(j=l),Object.defineProperty(b,j,{enumerable:!0,get:function(){return I[l]}})}:function(b,I,l,j){j===void 0&&(j=l),b[j]=I[l]}),O=this&&this.__setModuleDefault||(Object.create?function(b,I){Object.defineProperty(b,"default",{enumerable:!0,value:I})}:function(b,I){b.default=I}),k=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var I={};if(b!=null)for(var l in b)l!=="default"&&Object.prototype.hasOwnProperty.call(b,l)&&w(I,b,l);return O(I,b),I},S=this&&this.__awaiter||function(b,I,l,j){return new(l||(l=Promise))(function(M,N){function C(v){try{P(j.next(v))}catch(m){N(m)}}function x(v){try{P(j.throw(v))}catch(m){N(m)}}function P(v){var m;v.done?M(v.value):(m=v.value,m instanceof l?m:new l(function(E){E(m)})).then(C,x)}P((j=j.apply(b,I||[])).next())})},a=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.EncryptionUtilsImpl=void 0;const t=p(8972),c=p(4330),u=p(3061),s=p(4063),r=k(p(9463)),n=a(p(64)),o=p(6402),i=new r.PolyfillCryptoProvider,f=(0,t.fromHex)("000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"),d=(0,t.fromBase64)("79++5YOHfm0SwhlpUDClv7cuCjq9xBZlWqSjDJWkRG8="),h=new Set(["secret-2","secret-3","secret-4"]);class _{constructor(I,l,j){if(this.url=I,this.consensusIoPubKey=new Uint8Array,l){if(l.length!==32)throw new Error("encryptionSeed must be a Uint8Array of length 32");this.seed=l}else this.seed=_.GenerateNewSeed();const{privkey:M,pubkey:N}=_.GenerateNewKeyPairFromSeed(this.seed);this.privkey=M,this.pubkey=N,j&&h.has(j)&&(this.consensusIoPubKey=d)}static GenerateNewKeyPair(){return _.GenerateNewKeyPairFromSeed(_.GenerateNewSeed())}static GenerateNewSeed(){return(0,n.default)(32,{type:"Uint8Array"})}static GenerateNewKeyPairFromSeed(I){const{private:l,public:j}=(0,s.generateKeyPair)(I);return{privkey:l,pubkey:j}}getConsensusIoPubKey(){return S(this,void 0,void 0,function*(){if(this.consensusIoPubKey.length===32)return this.consensusIoPubKey;const{key:I}=yield o.Query.TxKey({},{pathPrefix:this.url});return this.consensusIoPubKey=(0,t.fromBase64)(I),this.consensusIoPubKey})}getTxEncryptionKey(I){return S(this,void 0,void 0,function*(){const l=yield this.getConsensusIoPubKey(),j=(0,s.sharedKey)(this.privkey,l);return(0,c.hkdf)(u.sha256,Uint8Array.from([...j,...I]),f,"",32)})}encrypt(I,l){return S(this,void 0,void 0,function*(){const j=(0,n.default)(32,{type:"Uint8Array"}),M=yield this.getTxEncryptionKey(j),N=yield r.SIV.importKey(M,"AES-SIV",i),C=(0,t.toUtf8)(I+JSON.stringify(l)),x=yield N.seal(C,[new Uint8Array]);return Uint8Array.from([...j,...this.pubkey,...x])})}decrypt(I,l){return S(this,void 0,void 0,function*(){if(!(I!=null&&I.length))return new Uint8Array;const j=yield this.getTxEncryptionKey(l);return yield(yield r.SIV.importKey(j,"AES-SIV",i)).open(I,[new Uint8Array])})}getPubkey(){return Promise.resolve(this.pubkey)}}e.EncryptionUtilsImpl=_},7061:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(p(7131),e),O(p(8680),e)},7131:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(_,b,I,l){l===void 0&&(l=I),Object.defineProperty(_,l,{enumerable:!0,get:function(){return b[I]}})}:function(_,b,I,l){l===void 0&&(l=I),_[l]=b[I]}),O=this&&this.__setModuleDefault||(Object.create?function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}:function(_,b){_.default=b}),k=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var I in _)I!=="default"&&Object.prototype.hasOwnProperty.call(_,I)&&w(b,_,I);return O(b,_),b},S=this&&this.__awaiter||function(_,b,I,l){return new(I||(I=Promise))(function(j,M){function N(P){try{x(l.next(P))}catch(v){M(v)}}function C(P){try{x(l.throw(P))}catch(v){M(v)}}function x(P){var v;P.done?j(P.value):(v=P.value,v instanceof I?v:new I(function(m){m(v)})).then(N,C)}x((l=l.apply(_,b||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.validatePermit=e.newPermit=e.newSignDoc=e.PermissionNotInPermit=e.SignerIsNotAddress=e.SignatureInvalid=e.ContractNotInPermit=e.PermitError=void 0;const a=p(8972),t=p(3061),c=k(p(9656)),u=p(7715),s=p(3607),r=p(5360);class n extends Error{constructor(b){super(b),this.type="PermitError",this.name="PermitError"}}e.PermitError=n;class o extends n{constructor(b,I){super(`Contract ${b} is not allowed for this permit`),this.name="ContractNotInPermit",this.contract=b,this.allowed_contracts=I}}e.ContractNotInPermit=o;class i extends n{constructor(b,I){super("Signature invalid"),this.name="SignatureInvalid",this.key=I,this.signature=b}}e.SignatureInvalid=i;class f extends n{constructor(b,I){super(`Address ${I} is not the permit signer`),this.name="SignerIsNotAddress",this.address=I,this.publicKey=b}}e.SignerIsNotAddress=f;class d extends n{constructor(b,I){super("Permit does not contain required the permissions"),this.name="PermissionNotInPermit",this.permission=b,this.permissionsInContract=I}}e.PermissionNotInPermit=d,e.newSignDoc=(_,b,I,l)=>({chain_id:_,account_number:"0",sequence:"0",fee:{amount:(0,s.stringToCoins)("0uscrt"),gas:"1"},msgs:[{type:"query_permit",value:{permit_name:b,allowed_tokens:I,permissions:l}}],memo:""}),e.newPermit=(_,b,I,l,j,M,N)=>S(void 0,void 0,void 0,function*(){let C;if(N){if(!(window!=null&&window.keplr))throw new Error("Cannot sign with Keplr - extension not enabled; enable Keplr or change signing mode");({signature:C}=yield window.keplr.signAmino(I,b,{chain_id:I,account_number:"0",sequence:"0",fee:{amount:(0,s.stringToCoins)("0uscrt"),gas:"1"},msgs:[{type:"query_permit",value:{permit_name:l,allowed_tokens:j,permissions:M}}],memo:""},{preferNoSetFee:!0,preferNoSetMemo:!0}))}else C=typeof _.signPermit=="function"?(yield _.signPermit(b,(0,e.newSignDoc)(I,l,j,M))).signature:(yield _.signAmino(b,(0,e.newSignDoc)(I,l,j,M))).signature;return{params:{chain_id:I,permit_name:l,allowed_tokens:j,permissions:M},signature:C}}),e.validatePermit=(_,b,I,l,j=!0)=>{if(!_.params.allowed_tokens.includes(I)){if(!j)return!1;throw new o(I,_.params.allowed_tokens)}if(!_.params.permissions.find(x=>l.includes(x))){if(!j)return!1;throw new d(l,_.params.permissions)}let M="";try{M=u.bech32.decode(b).prefix}catch{throw new Error(`Address address=${b} must be a valid bech32 address`)}let N="";try{N=(0,s.base64PubkeyToAddress)(_.signature.pub_key.value,M)}catch{throw new n("Pubkey invalid")}if(N!==b){if(!j)return!1;throw new f(_.signature.pub_key,b)}let C=!1;try{C=h(_)}catch{if(!j)return!1;throw new i(_.signature.signature,_.signature.pub_key.value)}if(!C){if(!j)return!1;throw new i(_.signature.signature,_.signature.pub_key.value)}return!0};const h=_=>{let b=(0,e.newSignDoc)(_.params.chain_id,_.params.permit_name,_.params.allowed_tokens,_.params.permissions);const I=(0,t.sha256)((0,r.serializeStdSignDoc)(b));let l=c.Signature.fromCompact((0,a.fromBase64)(_.signature.signature));return c.verify(l,I,(0,a.fromBase64)(_.signature.pub_key.value))}},3117:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PermitSigner=e.DirectSignerUnsupported=void 0;const w=p(7131);class O extends w.PermitError{constructor(){super("Only amino signer is supported for permits")}}e.DirectSignerUnsupported=O,e.PermitSigner=class{constructor(k){this.isAminoSigner=S=>"signAmino"in S,this.signer=k}_checkSigner(){if(!this.isAminoSigner(this.signer))throw new O}sign(k,S,a,t,c,u=!0){return this._checkSigner(),(0,w.newPermit)(this.signer,k,S,a,t,c,u)}verify(k,S,a,t){return(0,w.validatePermit)(k,S,a,t)}verifyNoExcept(k,S,a,t){return(0,w.validatePermit)(k,S,a,t,!1)}}},8680:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1610:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateViewingKey=e.MsgSetViewingKey=void 0;const w=p(3745);class O extends w.MsgExecuteContract{}e.MsgSetViewingKey=O;class k extends w.MsgExecuteContract{}e.MsgCreateViewingKey=k},4447:function(D,e,p){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?u(i.value):(f=i.value,f instanceof t?f:new t(function(d){d(f)})).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip1155Querier=void 0;const O=p(9150);class k extends O.ComputeQuerier{constructor(){super(...arguments),this.getBalance=({contract:a,token_id:t,owner:c,auth:u})=>w(this,void 0,void 0,function*(){if(u.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{balance:{token_id:t,owner:c,viewer:u.viewer.address,key:u.viewer.viewing_key}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{balance:{token_id:t,owner:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetBalance")}),this.getAllBalances=({contract:a,auth:t,owner:c,tx_history_page:u,tx_history_page_size:s})=>w(this,void 0,void 0,function*(){if(t.viewer&&c){if(t.viewer.address!==c)throw new Error("only owner can query all balances");return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{all_balances:{owner:c,key:t.viewer.viewing_key,tx_history_page:u,tx_history_page_size:s}}})}if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:t.permit,query:{all_balances:{tx_history_page:u,tx_history_page_size:s}}}}});throw new Error("Empty auth parameter for authenticated query: GetAllBalances")}),this.getTransactionHistory=({contract:a,auth:t,page_size:c,page:u})=>w(this,void 0,void 0,function*(){if(t.viewer)return this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transaction_history:{key:t.viewer.viewing_key,address:t.viewer.address,page_size:c,page:u}}});if(t.permit)return this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:t.permit,query:{transaction_history:{page_size:c,page:u}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")}),this.getPublicTokenInfo=({contract:a,token_id:t})=>w(this,void 0,void 0,function*(){return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_id_public_info:{token_id:t}}})}),this.getPrivateTokenInfo=({contract:a,token_id:t,auth:c})=>w(this,void 0,void 0,function*(){if(c.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_id_private_info:{token_id:t,address:c.viewer.address,key:c.viewer.viewing_key}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{token_id_private_info:{token_id:t}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")})}}e.Snip1155Querier=k},7350:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip1155ChangeMetadata=e.MsgSnip1155RemoveMinter=e.MsgSnipAddMinter=e.MsgSnip1155BatchTransfer=e.MsgSnip1155Transfer=e.MsgSnip1155Burn=e.MsgSnip1155Mint=e.MsgSnip1155BatchSend=e.MsgSnip1155Send=e.MsgSnip1155RemoveCurator=e.MsgSnip1155AddCurator=e.MsgSnip1155CurateTokens=e.MsgSnip1155RemoveAdmin=e.MsgSnip1155ChangeAdmin=void 0;const w=p(3745);class O extends w.MsgExecuteContract{}e.MsgSnip1155ChangeAdmin=O;class k extends w.MsgExecuteContract{}e.MsgSnip1155RemoveAdmin=k;class S extends w.MsgExecuteContract{}e.MsgSnip1155CurateTokens=S;class a extends w.MsgExecuteContract{}e.MsgSnip1155AddCurator=a;class t extends w.MsgExecuteContract{}e.MsgSnip1155RemoveCurator=t;class c extends w.MsgExecuteContract{}e.MsgSnip1155Send=c;class u extends w.MsgExecuteContract{}e.MsgSnip1155BatchSend=u;class s extends w.MsgExecuteContract{}e.MsgSnip1155Mint=s;class r extends w.MsgExecuteContract{}e.MsgSnip1155Burn=r;class n extends w.MsgExecuteContract{}e.MsgSnip1155Transfer=n;class o extends w.MsgExecuteContract{}e.MsgSnip1155BatchTransfer=o;class i extends w.MsgExecuteContract{}e.MsgSnipAddMinter=i;class f extends w.MsgExecuteContract{}e.MsgSnip1155RemoveMinter=f;class d extends w.MsgExecuteContract{}e.MsgSnip1155ChangeMetadata=d},8471:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(p(3655),e),O(p(1047),e)},3655:function(D,e,p){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?u(i.value):(f=i.value,f instanceof t?f:new t(function(d){d(f)})).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip20Querier=void 0;const O=p(3607);class k extends O.ComputeQuerier{constructor(){super(...arguments),this.getSnip20Params=({contract:a})=>w(this,void 0,void 0,function*(){return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_info:{}}})}),this.getBalance=({contract:a,address:t,auth:c})=>w(this,void 0,void 0,function*(){if(c.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{balance:{address:t,key:c.key}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{balance:{}}}}});throw new Error("Empty auth parameter for authenticated query: GetBalance")}),this.getTransferHistory=({contract:a,address:t,auth:c,page:u,page_size:s,should_filter_decoys:r})=>w(this,void 0,void 0,function*(){if(c.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transfer_history:{address:t,key:c.key,page:u,page_size:s,should_filter_decoys:r}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{transfer_history:{page:u,page_size:s,should_filter_decoys:r}}}}});throw new Error("Empty auth parameter for authenticated query: getTransferHistory")}),this.getTransactionHistory=({contract:a,address:t,auth:c,page:u,page_size:s,should_filter_decoys:r})=>w(this,void 0,void 0,function*(){if(c.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transaction_history:{address:t,key:c.key,page:u,page_size:s,should_filter_decoys:r}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{transaction_history:{page:u,page_size:s,should_filter_decoys:r}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")}),this.GetAllowance=({contract:a,owner:t,spender:c,auth:u})=>w(this,void 0,void 0,function*(){if(u.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{allowance:{owner:t,spender:c,key:u.key}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{allowance:{owner:t,spender:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetAllowance")})}}e.Snip20Querier=k},1047:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip20SetViewingKey=e.MsgSnip20DecreaseAllowance=e.MsgSnip20IncreaseAllowance=e.MsgSnip20Transfer=e.MsgSnip20Send=void 0;const w=p(3745);class O extends w.MsgExecuteContract{}e.MsgSnip20Send=O;class k extends w.MsgExecuteContract{}e.MsgSnip20Transfer=k;class S extends w.MsgExecuteContract{}e.MsgSnip20IncreaseAllowance=S;class a extends w.MsgExecuteContract{}e.MsgSnip20DecreaseAllowance=a;class t extends w.MsgExecuteContract{}e.MsgSnip20SetViewingKey=t},2412:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(p(3449),e),O(p(4539),e)},3449:function(D,e,p){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?u(i.value):(f=i.value,f instanceof t?f:new t(function(d){d(f)})).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip721Querier=void 0;const O=p(9150);class k extends O.ComputeQuerier{constructor(){super(...arguments),this.GetTokenInfo=({contract:a,auth:t,token_id:c})=>w(this,void 0,void 0,function*(){if(t.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{all_nft_info:{token_id:c,viewer:t.viewer}}});if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{with_permit:{permit:t.permit,query:{all_nft_info:{token_id:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetTokenInfo")}),this.GetOwnedTokens=({contract:a,auth:t,owner:c})=>w(this,void 0,void 0,function*(){if(t.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{tokens:{owner:c,viewing_key:t.viewer.viewing_key}}});if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{with_permit:{permit:t.permit,query:{tokens:{owner:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetOwnedTokens")})}}e.Snip721Querier=k},4539:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip721Mint=e.MsgSnip721AddMinter=e.MsgSnip721Send=void 0;const w=p(3745);class O extends w.MsgExecuteContract{}e.MsgSnip721Send=O;class k extends w.MsgExecuteContract{}e.MsgSnip721AddMinter=k;class S extends w.MsgExecuteContract{}e.MsgSnip721Mint=S},3004:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Accounts(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/accounts?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Account(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/accounts/${a.address}?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ModuleAccountByName(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/module_accounts/${a.name}?${S.renderURLSearchParams(a,["name"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},3704:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Grants(a,t){return S.fetchReq(`/cosmos/authz/v1beta1/grants?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GranterGrants(a,t){return S.fetchReq(`/cosmos/authz/v1beta1/grants/granter/${a.granter}?${S.renderURLSearchParams(a,["granter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GranteeGrants(a,t){return S.fetchReq(`/cosmos/authz/v1beta1/grants/grantee/${a.grantee}?${S.renderURLSearchParams(a,["grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1926:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Balance(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}/by_denom?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllBalances(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SpendableBalances(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/spendable_balances/${a.address}?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalSupply(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/supply?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SupplyOf(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/supply/${a.denom}?${S.renderURLSearchParams(a,["denom"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomMetadata(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata/${a.denom}?${S.renderURLSearchParams(a,["denom"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomsMetadata(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4210:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;const S=k(p(1704));e.Service=class{static Config(a,t){return S.fetchReq(`/cosmos/base/node/v1beta1/config?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},2390:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;const S=k(p(1704));e.Service=class{static GetNodeInfo(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/node_info?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetSyncing(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/syncing?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetLatestBlock(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/latest?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetBlockByHeight(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/${a.height}?${S.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetLatestValidatorSet(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/latest?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetValidatorSetByHeight(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/${a.height}?${S.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},406:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorOutstandingRewards(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/outstanding_rewards?${S.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorCommission(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/commission?${S.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorSlashes(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/slashes?${S.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegationRewards(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards/${a.validator_address}?${S.renderURLSearchParams(a,["delegator_address","validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegationTotalRewards(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards?${S.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidators(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/validators?${S.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorWithdrawAddress(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/withdraw_address?${S.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CommunityPool(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/community_pool?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FoundationTax(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/foundation_tax?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RestakeThreshold(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/restake_threshold?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RestakingEntries(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/restake_entries?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6898:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Evidence(a,t){return S.fetchReq(`/cosmos/evidence/v1beta1/evidence/${a.evidence_hash}?${S.renderURLSearchParams(a,["evidence_hash"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllEvidence(a,t){return S.fetchReq(`/cosmos/evidence/v1beta1/evidence?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},876:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Allowance(a,t){return S.fetchReq(`/cosmos/feegrant/v1beta1/allowance/${a.granter}/${a.grantee}?${S.renderURLSearchParams(a,["granter","grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Allowances(a,t){return S.fetchReq(`/cosmos/feegrant/v1beta1/allowances/${a.grantee}?${S.renderURLSearchParams(a,["grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllowancesByGranter(a,t){return S.fetchReq(`/cosmos/feegrant/v1beta1/issued/${a.granter}?${S.renderURLSearchParams(a,["granter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},7331:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Proposal(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Proposals(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Vote(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes/${a.voter}?${S.renderURLSearchParams(a,["proposal_id","voter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Votes(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/params/${a.params_type}?${S.renderURLSearchParams(a,["params_type"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Deposit(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits/${a.depositor}?${S.renderURLSearchParams(a,["proposal_id","depositor"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Deposits(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TallyResult(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/tally?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},468:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/mint/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Inflation(a,t){return S.fetchReq(`/cosmos/mint/v1beta1/inflation?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AnnualProvisions(a,t){return S.fetchReq(`/cosmos/mint/v1beta1/annual_provisions?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5440:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/params/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1575:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/slashing/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SigningInfo(a,t){return S.fetchReq(`/cosmos/slashing/v1beta1/signing_infos/${a.cons_address}?${S.renderURLSearchParams(a,["cons_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SigningInfos(a,t){return S.fetchReq(`/cosmos/slashing/v1beta1/signing_infos?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4066:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Validators(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Validator(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}?${S.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations?${S.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorUnbondingDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/unbonding_delegations?${S.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Delegation(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}?${S.renderURLSearchParams(a,["validator_addr","delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnbondingDelegation(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}/unbonding_delegation?${S.renderURLSearchParams(a,["validator_addr","delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegations/${a.delegator_addr}?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorUnbondingDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/unbonding_delegations?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Redelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/redelegations?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidators(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidator(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators/${a.validator_addr}?${S.renderURLSearchParams(a,["delegator_addr","validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static HistoricalInfo(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/historical_info/${a.height}?${S.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Pool(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/pool?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6519:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=e.BroadcastMode=e.OrderBy=void 0;const S=k(p(1704));var a,t;(t=e.OrderBy||(e.OrderBy={})).ORDER_BY_UNSPECIFIED="ORDER_BY_UNSPECIFIED",t.ORDER_BY_ASC="ORDER_BY_ASC",t.ORDER_BY_DESC="ORDER_BY_DESC",(a=e.BroadcastMode||(e.BroadcastMode={})).BROADCAST_MODE_UNSPECIFIED="BROADCAST_MODE_UNSPECIFIED",a.BROADCAST_MODE_BLOCK="BROADCAST_MODE_BLOCK",a.BROADCAST_MODE_SYNC="BROADCAST_MODE_SYNC",a.BROADCAST_MODE_ASYNC="BROADCAST_MODE_ASYNC",e.Service=class{static Simulate(c,u){return S.fetchReq("/cosmos/tx/v1beta1/simulate",Object.assign(Object.assign({},u),{method:"POST",body:JSON.stringify(c,S.replacer)}))}static GetTx(c,u){return S.fetchReq(`/cosmos/tx/v1beta1/txs/${c.hash}?${S.renderURLSearchParams(c,["hash"])}`,Object.assign(Object.assign({},u),{method:"GET"}))}static BroadcastTx(c,u){return S.fetchReq("/cosmos/tx/v1beta1/txs",Object.assign(Object.assign({},u),{method:"POST",body:JSON.stringify(c,S.replacer)}))}static GetTxsEvent(c,u){return S.fetchReq(`/cosmos/tx/v1beta1/txs?${S.renderURLSearchParams(c,[])}`,Object.assign(Object.assign({},u),{method:"GET"}))}static GetBlockWithTxs(c,u){return S.fetchReq(`/cosmos/tx/v1beta1/txs/block/${c.height}?${S.renderURLSearchParams(c,["height"])}`,Object.assign(Object.assign({},u),{method:"GET"}))}}},2265:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static CurrentPlan(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/current_plan?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AppliedPlan(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/applied_plan/${a.name}?${S.renderURLSearchParams(a,["name"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedConsensusState(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/upgraded_consensus_state/${a.last_height}?${S.renderURLSearchParams(a,["last_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ModuleVersions(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/module_versions?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1704:function(D,e){var p=this&&this.__awaiter||function(u,s,r,n){return new(r||(r=Promise))(function(o,i){function f(_){try{h(n.next(_))}catch(b){i(b)}}function d(_){try{h(n.throw(_))}catch(b){i(b)}}function h(_){var b;_.done?o(_.value):(b=_.value,b instanceof r?b:new r(function(I){I(b)})).then(f,d)}h((n=n.apply(u,s||[])).next())})},w=this&&this.__rest||function(u,s){var r={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&s.indexOf(n)<0&&(r[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(n=Object.getOwnPropertySymbols(u);o>2],i=(3&h)<<4,d=1;break;case 1:o[f++]=O[i|h>>4],i=(15&h)<<2,d=2;break;case 2:o[f++]=O[i|h>>6],o[f++]=O[63&h],d=0}f>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),f=0)}return d&&(o[f++]=O[i],o[f++]=61,d===1&&(o[f++]=61)),n?(f&&n.push(String.fromCharCode.apply(String,o.slice(0,f))),n.join("")):String.fromCharCode.apply(String,o.slice(0,f))}e.b64Encode=S;const a="invalid encoding";function t(u){return["string","number","boolean"].some(s=>typeof u===s)}function c(u,s=""){return Object.keys(u).reduce((r,n)=>{const o=u[n],i=s?[s,n].join("."):n,f=Array.isArray(o)&&o.every(_=>t(_))&&o.length>0,d=t(o)&&!function(_){return _===!1||_===0||_===""}(o);let h={};return function(_){const b=Object.prototype.toString.call(_).slice(8,-1)==="Object";if(_===null||!b||!b)return!1;const I=Object.getPrototypeOf(_);return typeof I=="object"&&I.constructor===Object.prototype.constructor}(o)?h=c(o,i):o&&o.constructor===Uint8Array?h={[i]:S(o,0,o.length)}:(d||f)&&(h={[i]:o}),Object.assign(Object.assign({},r),h)},{})}e.b64Decode=function(u){const s=[];let r,n=0,o=0;for(let i=0;i1)break;if((f=k[f])===void 0)throw Error(a);switch(o){case 0:r=f,o=1;break;case 1:s[n++]=r<<2|(48&f)>>4,r=f,o=2;break;case 2:s[n++]=(15&r)<<4|(60&f)>>2,r=f,o=3;break;case 3:s[n++]=(3&r)<<6|f,o=0}}if(o===1)throw Error(a);return new Uint8Array(s)},e.replacer=function(u,s){return s&&s.constructor===Uint8Array?S(s,0,s.length):s},e.fetchReq=function(u,s){const r=s||{},{pathPrefix:n}=r,o=w(r,["pathPrefix"]);return fetch(n?`${n}${u}`:u,o).then(i=>i.json().then(f=>{if(!i.ok)throw f;return f}))},e.fetchStreamingRequest=function(u,s,r){return p(this,void 0,void 0,function*(){const n=r||{},{pathPrefix:o}=n,i=w(n,["pathPrefix"]),f=o?`${o}${u}`:u,d=yield fetch(f,i);if(!d.ok){const _=yield d.json(),b=_.error&&_.error.message?_.error.message:"";throw new Error(b)}if(!d.body)throw new Error("response doesnt have a body");var h;yield d.body.pipeThrough(new TextDecoderStream).pipeThrough(new TransformStream({start(_){_.buf="",_.pos=0},transform(_,b){for(b.buf===void 0&&(b.buf=""),b.pos===void 0&&(b.pos=0),b.buf+=_;b.pos{s&&s(_)},new WritableStream({write(_){h(_)}})))})},e.renderURLSearchParams=function(u,s=[]){const r=c(u);return Object.keys(r).reduce((n,o)=>{const i=r[o];return s.find(f=>f===o)?n:Array.isArray(i)?[...n,...i.map(f=>[o,f.toString()])]:n=[...n,[o,i.toString()]]},[]).map(n=>new URLSearchParams({[n[0]]:n[1]}).toString()).join("&")}},187:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static IncentivizedPackets(a,t){return S.fetchReq(`/ibc/apps/fee/v1/incentivized_packets?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static IncentivizedPacket(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/incentivized_packet?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static IncentivizedPacketsForChannel(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/incentivized_packets?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalRecvFees(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_recv_fees?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalAckFees(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_ack_fees?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalTimeoutFees(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_timeout_fees?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Payee(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/payee?${S.renderURLSearchParams(a,["channel_id","relayer"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CounterpartyPayee(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/counterparty_payee?${S.renderURLSearchParams(a,["channel_id","relayer"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FeeEnabledChannels(a,t){return S.fetchReq(`/ibc/apps/fee/v1/fee_enabled?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FeeEnabledChannel(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/fee_enabled?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},2847:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static InterchainAccount(a,t){return S.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/owners/${a.owner}/connections/${a.connection_id}?${S.renderURLSearchParams(a,["owner","connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1154:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/ibc/apps/interchain_accounts/host/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1692:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/ibc/apps/router/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4921:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static DenomTrace(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/denom_traces/${a.hash}?${S.renderURLSearchParams(a,["hash"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomTraces(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/denom_traces?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomHash(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/denom_hashes/${a.trace}?${S.renderURLSearchParams(a,["trace"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static EscrowAddress(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/channels/${a.channel_id}/ports/${a.port_id}/escrow_address?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6409:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Channel(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Channels(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionChannels(a,t){return S.fetchReq(`/ibc/core/channel/v1/connections/${a.connection}/channels?${S.renderURLSearchParams(a,["connection"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ChannelClientState(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/client_state?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ChannelConsensusState(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${S.renderURLSearchParams(a,["channel_id","port_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketCommitment(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.sequence}?${S.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketCommitments(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketReceipt(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_receipts/${a.sequence}?${S.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketAcknowledgement(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acks/${a.sequence}?${S.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketAcknowledgements(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acknowledgements?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnreceivedPackets(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_commitment_sequences}/unreceived_packets?${S.renderURLSearchParams(a,["channel_id","port_id","packet_commitment_sequences"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnreceivedAcks(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_ack_sequences}/unreceived_acks?${S.renderURLSearchParams(a,["channel_id","port_id","packet_ack_sequences"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static NextSequenceReceive(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/next_sequence?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},301:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static ClientState(a,t){return S.fetchReq(`/ibc/core/client/v1/client_states/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientStates(a,t){return S.fetchReq(`/ibc/core/client/v1/client_states?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusState(a,t){return S.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/revision/${a.revision_number}/height/${a.revision_height}?${S.renderURLSearchParams(a,["client_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusStates(a,t){return S.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusStateHeights(a,t){return S.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/heights?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientStatus(a,t){return S.fetchReq(`/ibc/core/client/v1/client_status/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientParams(a,t){return S.fetchReq(`/ibc/client/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedClientState(a,t){return S.fetchReq(`/ibc/core/client/v1/upgraded_client_states?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedConsensusState(a,t){return S.fetchReq(`/ibc/core/client/v1/upgraded_consensus_states?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5258:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Connection(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}?${S.renderURLSearchParams(a,["connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Connections(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientConnections(a,t){return S.fetchReq(`/ibc/core/connection/v1/client_connections/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionClientState(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/client_state?${S.renderURLSearchParams(a,["connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionConsensusState(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${S.renderURLSearchParams(a,["connection_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5250:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static ContractInfo(a,t){return S.fetchReq(`/compute/v1beta1/info/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ContractsByCodeId(a,t){return S.fetchReq(`/compute/v1beta1/contracts/${a.code_id}?${S.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static QuerySecretContract(a,t){return S.fetchReq(`/compute/v1beta1/query/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Code(a,t){return S.fetchReq(`/compute/v1beta1/code/${a.code_id}?${S.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Codes(a,t){return S.fetchReq(`/compute/v1beta1/codes?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CodeHashByContractAddress(a,t){return S.fetchReq(`/compute/v1beta1/code_hash/by_contract_address/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CodeHashByCodeId(a,t){return S.fetchReq(`/compute/v1beta1/code_hash/by_code_id/${a.code_id}?${S.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static LabelByAddress(a,t){return S.fetchReq(`/compute/v1beta1/label/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AddressByLabel(a,t){return S.fetchReq(`/compute/v1beta1/contract_address/${a.label}?${S.renderURLSearchParams(a,["label"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ContractHistory(a,t){return S.fetchReq(`/compute/v1beta1/contract_history/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},71:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/emergencybutton/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},9743:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static InterchainAccountFromAddress(a,t){return S.fetchReq(`/mauth/interchain_account/owner/${a.owner}/connection/${a.connection_id}?${S.renderURLSearchParams(a,["owner","connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6402:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(p(1704));e.Query=class{static TxKey(a,t){return S.fetchReq(`/registration/v1beta1/tx-key?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RegistrationKey(a,t){return S.fetchReq(`/registration/v1beta1/registration-key?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static EncryptedSeed(a,t){return S.fetchReq(`/registration/v1beta1/encrypted-seed/${a.pub_key}?${S.renderURLSearchParams(a,["pub_key"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},3607:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(t,c,u,s){s===void 0&&(s=u),Object.defineProperty(t,s,{enumerable:!0,get:function(){return c[u]}})}:function(t,c,u,s){s===void 0&&(s=u),t[s]=c[u]}),O=this&&this.__exportStar||function(t,c){for(var u in t)u==="default"||Object.prototype.hasOwnProperty.call(c,u)||w(c,t,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgExecuteContractResponse=e.MsgInstantiateContractResponse=e.MsgStoreCodeResponse=e.MetaMaskWallet=e.Wallet=void 0,typeof BigInt>"u"&&(p.g.BigInt=p(4736)),O(p(8972),e),O(p(8136),e),O(p(9150),e),O(p(1972),e),O(p(3745),e),O(p(8593),e);var k=p(1049);Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return k.Wallet}});var S=p(1444);Object.defineProperty(e,"MetaMaskWallet",{enumerable:!0,get:function(){return S.MetaMaskWallet}}),O(p(8471),e),O(p(2412),e),O(p(7061),e);var a=p(2896);Object.defineProperty(e,"MsgStoreCodeResponse",{enumerable:!0,get:function(){return a.MsgStoreCodeResponse}}),Object.defineProperty(e,"MsgInstantiateContractResponse",{enumerable:!0,get:function(){return a.MsgInstantiateContractResponse}}),Object.defineProperty(e,"MsgExecuteContractResponse",{enumerable:!0,get:function(){return a.MsgExecuteContractResponse}})},6578:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(P,v,m,E){E===void 0&&(E=m),Object.defineProperty(P,E,{enumerable:!0,get:function(){return v[m]}})}:function(P,v,m,E){E===void 0&&(E=m),P[E]=v[m]}),O=this&&this.__setModuleDefault||(Object.create?function(P,v){Object.defineProperty(P,"default",{enumerable:!0,value:v})}:function(P,v){P.default=v}),k=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var v={};if(P!=null)for(var m in P)m!=="default"&&Object.prototype.hasOwnProperty.call(P,m)&&w(v,P,m);return O(v,P),v},S=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(e,"__esModule",{value:!0}),e.CompressedNonExistenceProof=e.CompressedExistenceProof=e.CompressedBatchEntry=e.CompressedBatchProof=e.BatchEntry=e.BatchProof=e.InnerSpec=e.ProofSpec=e.InnerOp=e.LeafOp=e.CommitmentProof=e.NonExistenceProof=e.ExistenceProof=e.lengthOpToJSON=e.lengthOpFromJSON=e.LengthOp=e.hashOpToJSON=e.hashOpFromJSON=e.HashOp=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));var c,u;function s(P){switch(P){case 0:case"NO_HASH":return c.NO_HASH;case 1:case"SHA256":return c.SHA256;case 2:case"SHA512":return c.SHA512;case 3:case"KECCAK":return c.KECCAK;case 4:case"RIPEMD160":return c.RIPEMD160;case 5:case"BITCOIN":return c.BITCOIN;default:return c.UNRECOGNIZED}}function r(P){switch(P){case c.NO_HASH:return"NO_HASH";case c.SHA256:return"SHA256";case c.SHA512:return"SHA512";case c.KECCAK:return"KECCAK";case c.RIPEMD160:return"RIPEMD160";case c.BITCOIN:return"BITCOIN";default:return"UNKNOWN"}}function n(P){switch(P){case 0:case"NO_PREFIX":return u.NO_PREFIX;case 1:case"VAR_PROTO":return u.VAR_PROTO;case 2:case"VAR_RLP":return u.VAR_RLP;case 3:case"FIXED32_BIG":return u.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return u.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return u.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return u.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return u.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return u.REQUIRE_64_BYTES;default:return u.UNRECOGNIZED}}function o(P){switch(P){case u.NO_PREFIX:return"NO_PREFIX";case u.VAR_PROTO:return"VAR_PROTO";case u.VAR_RLP:return"VAR_RLP";case u.FIXED32_BIG:return"FIXED32_BIG";case u.FIXED32_LITTLE:return"FIXED32_LITTLE";case u.FIXED64_BIG:return"FIXED64_BIG";case u.FIXED64_LITTLE:return"FIXED64_LITTLE";case u.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case u.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";default:return"UNKNOWN"}}function i(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function f(){return{key:new Uint8Array,left:void 0,right:void 0}}function d(){return{hash:0,prehash_key:0,prehash_value:0,length:0,prefix:new Uint8Array}}function h(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}function _(){return{child_order:[],child_size:0,min_prefix_length:0,max_prefix_length:0,empty_child:new Uint8Array,hash:0}}function b(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function I(){return{key:new Uint8Array,left:void 0,right:void 0}}e.protobufPackage="ics23",function(P){P[P.NO_HASH=0]="NO_HASH",P[P.SHA256=1]="SHA256",P[P.SHA512=2]="SHA512",P[P.KECCAK=3]="KECCAK",P[P.RIPEMD160=4]="RIPEMD160",P[P.BITCOIN=5]="BITCOIN",P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=e.HashOp||(e.HashOp={})),e.hashOpFromJSON=s,e.hashOpToJSON=r,function(P){P[P.NO_PREFIX=0]="NO_PREFIX",P[P.VAR_PROTO=1]="VAR_PROTO",P[P.VAR_RLP=2]="VAR_RLP",P[P.FIXED32_BIG=3]="FIXED32_BIG",P[P.FIXED32_LITTLE=4]="FIXED32_LITTLE",P[P.FIXED64_BIG=5]="FIXED64_BIG",P[P.FIXED64_LITTLE=6]="FIXED64_LITTLE",P[P.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",P[P.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.LengthOp||(e.LengthOp={})),e.lengthOpFromJSON=n,e.lengthOpToJSON=o,e.ExistenceProof={encode(P,v=t.Writer.create()){P.key.length!==0&&v.uint32(10).bytes(P.key),P.value.length!==0&&v.uint32(18).bytes(P.value),P.leaf!==void 0&&e.LeafOp.encode(P.leaf,v.uint32(26).fork()).ldelim();for(const m of P.path)e.InnerOp.encode(m,v.uint32(34).fork()).ldelim();return v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=i();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.value=m.bytes();break;case 3:B.leaf=e.LeafOp.decode(m,m.uint32());break;case 4:B.path.push(e.InnerOp.decode(m,m.uint32()));break;default:m.skipType(7&T)}}return B},fromJSON:P=>({key:x(P.key)?M(P.key):new Uint8Array,value:x(P.value)?M(P.value):new Uint8Array,leaf:x(P.leaf)?e.LeafOp.fromJSON(P.leaf):void 0,path:Array.isArray(P==null?void 0:P.path)?P.path.map(v=>e.InnerOp.fromJSON(v)):[]}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.value!==void 0&&(v.value=C(P.value!==void 0?P.value:new Uint8Array)),P.leaf!==void 0&&(v.leaf=P.leaf?e.LeafOp.toJSON(P.leaf):void 0),P.path?v.path=P.path.map(m=>m?e.InnerOp.toJSON(m):void 0):v.path=[],v},fromPartial(P){var v,m,E;const B=i();return B.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,B.value=(m=P.value)!==null&&m!==void 0?m:new Uint8Array,B.leaf=P.leaf!==void 0&&P.leaf!==null?e.LeafOp.fromPartial(P.leaf):void 0,B.path=((E=P.path)===null||E===void 0?void 0:E.map(T=>e.InnerOp.fromPartial(T)))||[],B}},e.NonExistenceProof={encode:(P,v=t.Writer.create())=>(P.key.length!==0&&v.uint32(10).bytes(P.key),P.left!==void 0&&e.ExistenceProof.encode(P.left,v.uint32(18).fork()).ldelim(),P.right!==void 0&&e.ExistenceProof.encode(P.right,v.uint32(26).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=f();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.left=e.ExistenceProof.decode(m,m.uint32());break;case 3:B.right=e.ExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({key:x(P.key)?M(P.key):new Uint8Array,left:x(P.left)?e.ExistenceProof.fromJSON(P.left):void 0,right:x(P.right)?e.ExistenceProof.fromJSON(P.right):void 0}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.left!==void 0&&(v.left=P.left?e.ExistenceProof.toJSON(P.left):void 0),P.right!==void 0&&(v.right=P.right?e.ExistenceProof.toJSON(P.right):void 0),v},fromPartial(P){var v;const m=f();return m.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,m.left=P.left!==void 0&&P.left!==null?e.ExistenceProof.fromPartial(P.left):void 0,m.right=P.right!==void 0&&P.right!==null?e.ExistenceProof.fromPartial(P.right):void 0,m}},e.CommitmentProof={encode:(P,v=t.Writer.create())=>(P.exist!==void 0&&e.ExistenceProof.encode(P.exist,v.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.NonExistenceProof.encode(P.nonexist,v.uint32(18).fork()).ldelim(),P.batch!==void 0&&e.BatchProof.encode(P.batch,v.uint32(26).fork()).ldelim(),P.compressed!==void 0&&e.CompressedBatchProof.encode(P.compressed,v.uint32(34).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0};for(;m.pos>>3){case 1:B.exist=e.ExistenceProof.decode(m,m.uint32());break;case 2:B.nonexist=e.NonExistenceProof.decode(m,m.uint32());break;case 3:B.batch=e.BatchProof.decode(m,m.uint32());break;case 4:B.compressed=e.CompressedBatchProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({exist:x(P.exist)?e.ExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.NonExistenceProof.fromJSON(P.nonexist):void 0,batch:x(P.batch)?e.BatchProof.fromJSON(P.batch):void 0,compressed:x(P.compressed)?e.CompressedBatchProof.fromJSON(P.compressed):void 0}),toJSON(P){const v={};return P.exist!==void 0&&(v.exist=P.exist?e.ExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(v.nonexist=P.nonexist?e.NonExistenceProof.toJSON(P.nonexist):void 0),P.batch!==void 0&&(v.batch=P.batch?e.BatchProof.toJSON(P.batch):void 0),P.compressed!==void 0&&(v.compressed=P.compressed?e.CompressedBatchProof.toJSON(P.compressed):void 0),v},fromPartial(P){const v={exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0};return v.exist=P.exist!==void 0&&P.exist!==null?e.ExistenceProof.fromPartial(P.exist):void 0,v.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.NonExistenceProof.fromPartial(P.nonexist):void 0,v.batch=P.batch!==void 0&&P.batch!==null?e.BatchProof.fromPartial(P.batch):void 0,v.compressed=P.compressed!==void 0&&P.compressed!==null?e.CompressedBatchProof.fromPartial(P.compressed):void 0,v}},e.LeafOp={encode:(P,v=t.Writer.create())=>(P.hash!==0&&v.uint32(8).int32(P.hash),P.prehash_key!==0&&v.uint32(16).int32(P.prehash_key),P.prehash_value!==0&&v.uint32(24).int32(P.prehash_value),P.length!==0&&v.uint32(32).int32(P.length),P.prefix.length!==0&&v.uint32(42).bytes(P.prefix),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=d();for(;m.pos>>3){case 1:B.hash=m.int32();break;case 2:B.prehash_key=m.int32();break;case 3:B.prehash_value=m.int32();break;case 4:B.length=m.int32();break;case 5:B.prefix=m.bytes();break;default:m.skipType(7&T)}}return B},fromJSON:P=>({hash:x(P.hash)?s(P.hash):0,prehash_key:x(P.prehash_key)?s(P.prehash_key):0,prehash_value:x(P.prehash_value)?s(P.prehash_value):0,length:x(P.length)?n(P.length):0,prefix:x(P.prefix)?M(P.prefix):new Uint8Array}),toJSON(P){const v={};return P.hash!==void 0&&(v.hash=r(P.hash)),P.prehash_key!==void 0&&(v.prehash_key=r(P.prehash_key)),P.prehash_value!==void 0&&(v.prehash_value=r(P.prehash_value)),P.length!==void 0&&(v.length=o(P.length)),P.prefix!==void 0&&(v.prefix=C(P.prefix!==void 0?P.prefix:new Uint8Array)),v},fromPartial(P){var v,m,E,B,T;const q=d();return q.hash=(v=P.hash)!==null&&v!==void 0?v:0,q.prehash_key=(m=P.prehash_key)!==null&&m!==void 0?m:0,q.prehash_value=(E=P.prehash_value)!==null&&E!==void 0?E:0,q.length=(B=P.length)!==null&&B!==void 0?B:0,q.prefix=(T=P.prefix)!==null&&T!==void 0?T:new Uint8Array,q}},e.InnerOp={encode:(P,v=t.Writer.create())=>(P.hash!==0&&v.uint32(8).int32(P.hash),P.prefix.length!==0&&v.uint32(18).bytes(P.prefix),P.suffix.length!==0&&v.uint32(26).bytes(P.suffix),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=h();for(;m.pos>>3){case 1:B.hash=m.int32();break;case 2:B.prefix=m.bytes();break;case 3:B.suffix=m.bytes();break;default:m.skipType(7&T)}}return B},fromJSON:P=>({hash:x(P.hash)?s(P.hash):0,prefix:x(P.prefix)?M(P.prefix):new Uint8Array,suffix:x(P.suffix)?M(P.suffix):new Uint8Array}),toJSON(P){const v={};return P.hash!==void 0&&(v.hash=r(P.hash)),P.prefix!==void 0&&(v.prefix=C(P.prefix!==void 0?P.prefix:new Uint8Array)),P.suffix!==void 0&&(v.suffix=C(P.suffix!==void 0?P.suffix:new Uint8Array)),v},fromPartial(P){var v,m,E;const B=h();return B.hash=(v=P.hash)!==null&&v!==void 0?v:0,B.prefix=(m=P.prefix)!==null&&m!==void 0?m:new Uint8Array,B.suffix=(E=P.suffix)!==null&&E!==void 0?E:new Uint8Array,B}},e.ProofSpec={encode:(P,v=t.Writer.create())=>(P.leaf_spec!==void 0&&e.LeafOp.encode(P.leaf_spec,v.uint32(10).fork()).ldelim(),P.inner_spec!==void 0&&e.InnerSpec.encode(P.inner_spec,v.uint32(18).fork()).ldelim(),P.max_depth!==0&&v.uint32(24).int32(P.max_depth),P.min_depth!==0&&v.uint32(32).int32(P.min_depth),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={leaf_spec:void 0,inner_spec:void 0,max_depth:0,min_depth:0};for(;m.pos>>3){case 1:B.leaf_spec=e.LeafOp.decode(m,m.uint32());break;case 2:B.inner_spec=e.InnerSpec.decode(m,m.uint32());break;case 3:B.max_depth=m.int32();break;case 4:B.min_depth=m.int32();break;default:m.skipType(7&T)}}return B},fromJSON:P=>({leaf_spec:x(P.leaf_spec)?e.LeafOp.fromJSON(P.leaf_spec):void 0,inner_spec:x(P.inner_spec)?e.InnerSpec.fromJSON(P.inner_spec):void 0,max_depth:x(P.max_depth)?Number(P.max_depth):0,min_depth:x(P.min_depth)?Number(P.min_depth):0}),toJSON(P){const v={};return P.leaf_spec!==void 0&&(v.leaf_spec=P.leaf_spec?e.LeafOp.toJSON(P.leaf_spec):void 0),P.inner_spec!==void 0&&(v.inner_spec=P.inner_spec?e.InnerSpec.toJSON(P.inner_spec):void 0),P.max_depth!==void 0&&(v.max_depth=Math.round(P.max_depth)),P.min_depth!==void 0&&(v.min_depth=Math.round(P.min_depth)),v},fromPartial(P){var v,m;const E={leaf_spec:void 0,inner_spec:void 0,max_depth:0,min_depth:0};return E.leaf_spec=P.leaf_spec!==void 0&&P.leaf_spec!==null?e.LeafOp.fromPartial(P.leaf_spec):void 0,E.inner_spec=P.inner_spec!==void 0&&P.inner_spec!==null?e.InnerSpec.fromPartial(P.inner_spec):void 0,E.max_depth=(v=P.max_depth)!==null&&v!==void 0?v:0,E.min_depth=(m=P.min_depth)!==null&&m!==void 0?m:0,E}},e.InnerSpec={encode(P,v=t.Writer.create()){v.uint32(10).fork();for(const m of P.child_order)v.int32(m);return v.ldelim(),P.child_size!==0&&v.uint32(16).int32(P.child_size),P.min_prefix_length!==0&&v.uint32(24).int32(P.min_prefix_length),P.max_prefix_length!==0&&v.uint32(32).int32(P.max_prefix_length),P.empty_child.length!==0&&v.uint32(42).bytes(P.empty_child),P.hash!==0&&v.uint32(48).int32(P.hash),v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=_();for(;m.pos>>3){case 1:if((7&T)==2){const q=m.uint32()+m.pos;for(;m.pos({child_order:Array.isArray(P==null?void 0:P.child_order)?P.child_order.map(v=>Number(v)):[],child_size:x(P.child_size)?Number(P.child_size):0,min_prefix_length:x(P.min_prefix_length)?Number(P.min_prefix_length):0,max_prefix_length:x(P.max_prefix_length)?Number(P.max_prefix_length):0,empty_child:x(P.empty_child)?M(P.empty_child):new Uint8Array,hash:x(P.hash)?s(P.hash):0}),toJSON(P){const v={};return P.child_order?v.child_order=P.child_order.map(m=>Math.round(m)):v.child_order=[],P.child_size!==void 0&&(v.child_size=Math.round(P.child_size)),P.min_prefix_length!==void 0&&(v.min_prefix_length=Math.round(P.min_prefix_length)),P.max_prefix_length!==void 0&&(v.max_prefix_length=Math.round(P.max_prefix_length)),P.empty_child!==void 0&&(v.empty_child=C(P.empty_child!==void 0?P.empty_child:new Uint8Array)),P.hash!==void 0&&(v.hash=r(P.hash)),v},fromPartial(P){var v,m,E,B,T,q;const te=_();return te.child_order=((v=P.child_order)===null||v===void 0?void 0:v.map(re=>re))||[],te.child_size=(m=P.child_size)!==null&&m!==void 0?m:0,te.min_prefix_length=(E=P.min_prefix_length)!==null&&E!==void 0?E:0,te.max_prefix_length=(B=P.max_prefix_length)!==null&&B!==void 0?B:0,te.empty_child=(T=P.empty_child)!==null&&T!==void 0?T:new Uint8Array,te.hash=(q=P.hash)!==null&&q!==void 0?q:0,te}},e.BatchProof={encode(P,v=t.Writer.create()){for(const m of P.entries)e.BatchEntry.encode(m,v.uint32(10).fork()).ldelim();return v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={entries:[]};for(;m.pos>>3==1?B.entries.push(e.BatchEntry.decode(m,m.uint32())):m.skipType(7&T)}return B},fromJSON:P=>({entries:Array.isArray(P==null?void 0:P.entries)?P.entries.map(v=>e.BatchEntry.fromJSON(v)):[]}),toJSON(P){const v={};return P.entries?v.entries=P.entries.map(m=>m?e.BatchEntry.toJSON(m):void 0):v.entries=[],v},fromPartial(P){var v;const m={entries:[]};return m.entries=((v=P.entries)===null||v===void 0?void 0:v.map(E=>e.BatchEntry.fromPartial(E)))||[],m}},e.BatchEntry={encode:(P,v=t.Writer.create())=>(P.exist!==void 0&&e.ExistenceProof.encode(P.exist,v.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.NonExistenceProof.encode(P.nonexist,v.uint32(18).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={exist:void 0,nonexist:void 0};for(;m.pos>>3){case 1:B.exist=e.ExistenceProof.decode(m,m.uint32());break;case 2:B.nonexist=e.NonExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({exist:x(P.exist)?e.ExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.NonExistenceProof.fromJSON(P.nonexist):void 0}),toJSON(P){const v={};return P.exist!==void 0&&(v.exist=P.exist?e.ExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(v.nonexist=P.nonexist?e.NonExistenceProof.toJSON(P.nonexist):void 0),v},fromPartial(P){const v={exist:void 0,nonexist:void 0};return v.exist=P.exist!==void 0&&P.exist!==null?e.ExistenceProof.fromPartial(P.exist):void 0,v.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.NonExistenceProof.fromPartial(P.nonexist):void 0,v}},e.CompressedBatchProof={encode(P,v=t.Writer.create()){for(const m of P.entries)e.CompressedBatchEntry.encode(m,v.uint32(10).fork()).ldelim();for(const m of P.lookup_inners)e.InnerOp.encode(m,v.uint32(18).fork()).ldelim();return v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={entries:[],lookup_inners:[]};for(;m.pos>>3){case 1:B.entries.push(e.CompressedBatchEntry.decode(m,m.uint32()));break;case 2:B.lookup_inners.push(e.InnerOp.decode(m,m.uint32()));break;default:m.skipType(7&T)}}return B},fromJSON:P=>({entries:Array.isArray(P==null?void 0:P.entries)?P.entries.map(v=>e.CompressedBatchEntry.fromJSON(v)):[],lookup_inners:Array.isArray(P==null?void 0:P.lookup_inners)?P.lookup_inners.map(v=>e.InnerOp.fromJSON(v)):[]}),toJSON(P){const v={};return P.entries?v.entries=P.entries.map(m=>m?e.CompressedBatchEntry.toJSON(m):void 0):v.entries=[],P.lookup_inners?v.lookup_inners=P.lookup_inners.map(m=>m?e.InnerOp.toJSON(m):void 0):v.lookup_inners=[],v},fromPartial(P){var v,m;const E={entries:[],lookup_inners:[]};return E.entries=((v=P.entries)===null||v===void 0?void 0:v.map(B=>e.CompressedBatchEntry.fromPartial(B)))||[],E.lookup_inners=((m=P.lookup_inners)===null||m===void 0?void 0:m.map(B=>e.InnerOp.fromPartial(B)))||[],E}},e.CompressedBatchEntry={encode:(P,v=t.Writer.create())=>(P.exist!==void 0&&e.CompressedExistenceProof.encode(P.exist,v.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.CompressedNonExistenceProof.encode(P.nonexist,v.uint32(18).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={exist:void 0,nonexist:void 0};for(;m.pos>>3){case 1:B.exist=e.CompressedExistenceProof.decode(m,m.uint32());break;case 2:B.nonexist=e.CompressedNonExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({exist:x(P.exist)?e.CompressedExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.CompressedNonExistenceProof.fromJSON(P.nonexist):void 0}),toJSON(P){const v={};return P.exist!==void 0&&(v.exist=P.exist?e.CompressedExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(v.nonexist=P.nonexist?e.CompressedNonExistenceProof.toJSON(P.nonexist):void 0),v},fromPartial(P){const v={exist:void 0,nonexist:void 0};return v.exist=P.exist!==void 0&&P.exist!==null?e.CompressedExistenceProof.fromPartial(P.exist):void 0,v.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.CompressedNonExistenceProof.fromPartial(P.nonexist):void 0,v}},e.CompressedExistenceProof={encode(P,v=t.Writer.create()){P.key.length!==0&&v.uint32(10).bytes(P.key),P.value.length!==0&&v.uint32(18).bytes(P.value),P.leaf!==void 0&&e.LeafOp.encode(P.leaf,v.uint32(26).fork()).ldelim(),v.uint32(34).fork();for(const m of P.path)v.int32(m);return v.ldelim(),v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=b();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.value=m.bytes();break;case 3:B.leaf=e.LeafOp.decode(m,m.uint32());break;case 4:if((7&T)==2){const q=m.uint32()+m.pos;for(;m.pos({key:x(P.key)?M(P.key):new Uint8Array,value:x(P.value)?M(P.value):new Uint8Array,leaf:x(P.leaf)?e.LeafOp.fromJSON(P.leaf):void 0,path:Array.isArray(P==null?void 0:P.path)?P.path.map(v=>Number(v)):[]}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.value!==void 0&&(v.value=C(P.value!==void 0?P.value:new Uint8Array)),P.leaf!==void 0&&(v.leaf=P.leaf?e.LeafOp.toJSON(P.leaf):void 0),P.path?v.path=P.path.map(m=>Math.round(m)):v.path=[],v},fromPartial(P){var v,m,E;const B=b();return B.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,B.value=(m=P.value)!==null&&m!==void 0?m:new Uint8Array,B.leaf=P.leaf!==void 0&&P.leaf!==null?e.LeafOp.fromPartial(P.leaf):void 0,B.path=((E=P.path)===null||E===void 0?void 0:E.map(T=>T))||[],B}},e.CompressedNonExistenceProof={encode:(P,v=t.Writer.create())=>(P.key.length!==0&&v.uint32(10).bytes(P.key),P.left!==void 0&&e.CompressedExistenceProof.encode(P.left,v.uint32(18).fork()).ldelim(),P.right!==void 0&&e.CompressedExistenceProof.encode(P.right,v.uint32(26).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=I();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.left=e.CompressedExistenceProof.decode(m,m.uint32());break;case 3:B.right=e.CompressedExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({key:x(P.key)?M(P.key):new Uint8Array,left:x(P.left)?e.CompressedExistenceProof.fromJSON(P.left):void 0,right:x(P.right)?e.CompressedExistenceProof.fromJSON(P.right):void 0}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.left!==void 0&&(v.left=P.left?e.CompressedExistenceProof.toJSON(P.left):void 0),P.right!==void 0&&(v.right=P.right?e.CompressedExistenceProof.toJSON(P.right):void 0),v},fromPartial(P){var v;const m=I();return m.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,m.left=P.left!==void 0&&P.left!==null?e.CompressedExistenceProof.fromPartial(P.left):void 0,m.right=P.right!==void 0&&P.right!==null?e.CompressedExistenceProof.fromPartial(P.right):void 0,m}};var l=(()=>{if(l!==void 0)return l;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const j=l.atob||(P=>l.Buffer.from(P,"base64").toString("binary"));function M(P){const v=j(P),m=new Uint8Array(v.length);for(let E=0;El.Buffer.from(P,"binary").toString("base64"));function C(P){const v=[];for(const m of P)v.push(String.fromCharCode(m));return N(v.join(""))}function x(P){return P!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9094:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(i,f,d,h){h===void 0&&(h=d),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,h){h===void 0&&(h=d),i[h]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.GrantAuthorization=e.Grant=e.GenericAuthorization=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191),u=p(5090);function s(i){return{seconds:Math.trunc(i.getTime()/1e3).toString(),nanos:i.getTime()%1e3*1e6}}function r(i){let f=1e3*Number(i.seconds);return f+=i.nanos/1e6,new Date(f)}function n(i){return i instanceof Date?s(i):typeof i=="string"?s(new Date(i)):u.Timestamp.fromJSON(i)}function o(i){return i!=null}e.protobufPackage="cosmos.authz.v1beta1",e.GenericAuthorization={encode:(i,f=t.Writer.create())=>(i.msg!==""&&f.uint32(10).string(i.msg),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={msg:""};for(;d.pos>>3==1?_.msg=d.string():d.skipType(7&b)}return _},fromJSON:i=>({msg:o(i.msg)?String(i.msg):""}),toJSON(i){const f={};return i.msg!==void 0&&(f.msg=i.msg),f},fromPartial(i){var f;const d={msg:""};return d.msg=(f=i.msg)!==null&&f!==void 0?f:"",d}},e.Grant={encode:(i,f=t.Writer.create())=>(i.authorization!==void 0&&c.Any.encode(i.authorization,f.uint32(10).fork()).ldelim(),i.expiration!==void 0&&u.Timestamp.encode(i.expiration,f.uint32(18).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={authorization:void 0,expiration:void 0};for(;d.pos>>3){case 1:_.authorization=c.Any.decode(d,d.uint32());break;case 2:_.expiration=u.Timestamp.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({authorization:o(i.authorization)?c.Any.fromJSON(i.authorization):void 0,expiration:o(i.expiration)?n(i.expiration):void 0}),toJSON(i){const f={};return i.authorization!==void 0&&(f.authorization=i.authorization?c.Any.toJSON(i.authorization):void 0),i.expiration!==void 0&&(f.expiration=r(i.expiration).toISOString()),f},fromPartial(i){const f={authorization:void 0,expiration:void 0};return f.authorization=i.authorization!==void 0&&i.authorization!==null?c.Any.fromPartial(i.authorization):void 0,f.expiration=i.expiration!==void 0&&i.expiration!==null?u.Timestamp.fromPartial(i.expiration):void 0,f}},e.GrantAuthorization={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.authorization!==void 0&&c.Any.encode(i.authorization,f.uint32(26).fork()).ldelim(),i.expiration!==void 0&&u.Timestamp.encode(i.expiration,f.uint32(34).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={granter:"",grantee:"",authorization:void 0,expiration:void 0};for(;d.pos>>3){case 1:_.granter=d.string();break;case 2:_.grantee=d.string();break;case 3:_.authorization=c.Any.decode(d,d.uint32());break;case 4:_.expiration=u.Timestamp.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",authorization:o(i.authorization)?c.Any.fromJSON(i.authorization):void 0,expiration:o(i.expiration)?n(i.expiration):void 0}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.authorization!==void 0&&(f.authorization=i.authorization?c.Any.toJSON(i.authorization):void 0),i.expiration!==void 0&&(f.expiration=r(i.expiration).toISOString()),f},fromPartial(i){var f,d;const h={granter:"",grantee:"",authorization:void 0,expiration:void 0};return h.granter=(f=i.granter)!==null&&f!==void 0?f:"",h.grantee=(d=i.grantee)!==null&&d!==void 0?d:"",h.authorization=i.authorization!==void 0&&i.authorization!==null?c.Any.fromPartial(i.authorization):void 0,h.expiration=i.expiration!==void 0&&i.expiration!==null?u.Timestamp.fromPartial(i.expiration):void 0,h}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5635:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(i,f,d,h){h===void 0&&(h=d),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,h){h===void 0&&(h=d),i[h]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgRevokeResponse=e.MsgRevoke=e.MsgGrantResponse=e.MsgExec=e.MsgExecResponse=e.MsgGrant=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(9094),u=p(4191);e.protobufPackage="cosmos.authz.v1beta1",e.MsgGrant={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.grant!==void 0&&c.Grant.encode(i.grant,f.uint32(26).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={granter:"",grantee:"",grant:void 0};for(;d.pos>>3){case 1:_.granter=d.string();break;case 2:_.grantee=d.string();break;case 3:_.grant=c.Grant.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",grant:o(i.grant)?c.Grant.fromJSON(i.grant):void 0}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.grant!==void 0&&(f.grant=i.grant?c.Grant.toJSON(i.grant):void 0),f},fromPartial(i){var f,d;const h={granter:"",grantee:"",grant:void 0};return h.granter=(f=i.granter)!==null&&f!==void 0?f:"",h.grantee=(d=i.grantee)!==null&&d!==void 0?d:"",h.grant=i.grant!==void 0&&i.grant!==null?c.Grant.fromPartial(i.grant):void 0,h}},e.MsgExecResponse={encode(i,f=t.Writer.create()){for(const d of i.results)f.uint32(10).bytes(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={results:[]};for(;d.pos>>3==1?_.results.push(d.bytes()):d.skipType(7&b)}return _},fromJSON:i=>({results:Array.isArray(i==null?void 0:i.results)?i.results.map(f=>function(d){const h=r(d),_=new Uint8Array(h.length);for(let b=0;bfunction(h){const _=[];for(const b of h)_.push(String.fromCharCode(b));return n(_.join(""))}(d!==void 0?d:new Uint8Array)):f.results=[],f},fromPartial(i){var f;const d={results:[]};return d.results=((f=i.results)===null||f===void 0?void 0:f.map(h=>h))||[],d}},e.MsgExec={encode(i,f=t.Writer.create()){i.grantee!==""&&f.uint32(10).string(i.grantee);for(const d of i.msgs)u.Any.encode(d,f.uint32(18).fork()).ldelim();return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={grantee:"",msgs:[]};for(;d.pos>>3){case 1:_.grantee=d.string();break;case 2:_.msgs.push(u.Any.decode(d,d.uint32()));break;default:d.skipType(7&b)}}return _},fromJSON:i=>({grantee:o(i.grantee)?String(i.grantee):"",msgs:Array.isArray(i==null?void 0:i.msgs)?i.msgs.map(f=>u.Any.fromJSON(f)):[]}),toJSON(i){const f={};return i.grantee!==void 0&&(f.grantee=i.grantee),i.msgs?f.msgs=i.msgs.map(d=>d?u.Any.toJSON(d):void 0):f.msgs=[],f},fromPartial(i){var f,d;const h={grantee:"",msgs:[]};return h.grantee=(f=i.grantee)!==null&&f!==void 0?f:"",h.msgs=((d=i.msgs)===null||d===void 0?void 0:d.map(_=>u.Any.fromPartial(_)))||[],h}},e.MsgGrantResponse={encode:(i,f=t.Writer.create())=>f,decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;for(;d.pos({}),toJSON:i=>({}),fromPartial:i=>({})},e.MsgRevoke={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.msg_type_url!==""&&f.uint32(26).string(i.msg_type_url),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={granter:"",grantee:"",msg_type_url:""};for(;d.pos>>3){case 1:_.granter=d.string();break;case 2:_.grantee=d.string();break;case 3:_.msg_type_url=d.string();break;default:d.skipType(7&b)}}return _},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",msg_type_url:o(i.msg_type_url)?String(i.msg_type_url):""}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.msg_type_url!==void 0&&(f.msg_type_url=i.msg_type_url),f},fromPartial(i){var f,d,h;const _={granter:"",grantee:"",msg_type_url:""};return _.granter=(f=i.granter)!==null&&f!==void 0?f:"",_.grantee=(d=i.grantee)!==null&&d!==void 0?d:"",_.msg_type_url=(h=i.msg_type_url)!==null&&h!==void 0?h:"",_}},e.MsgRevokeResponse={encode:(i,f=t.Writer.create())=>f,decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;for(;d.pos({}),toJSON:i=>({}),fromPartial:i=>({})},e.MsgClientImpl=class{constructor(i){this.rpc=i,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(i){const f=e.MsgGrant.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",f).then(d=>e.MsgGrantResponse.decode(new t.Reader(d)))}Exec(i){const f=e.MsgExec.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",f).then(d=>e.MsgExecResponse.decode(new t.Reader(d)))}Revoke(i){const f=e.MsgRevoke.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",f).then(d=>e.MsgRevokeResponse.decode(new t.Reader(d)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const r=s.atob||(i=>s.Buffer.from(i,"base64").toString("binary")),n=s.btoa||(i=>s.Buffer.from(i,"binary").toString("base64"));function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5939:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.SendAuthorization=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976);e.protobufPackage="cosmos.bank.v1beta1",e.SendAuthorization={encode(u,s=t.Writer.create()){for(const r of u.spend_limit)c.Coin.encode(r,s.uint32(10).fork()).ldelim();return s},decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={spend_limit:[]};for(;r.pos>>3==1?o.spend_limit.push(c.Coin.decode(r,r.uint32())):r.skipType(7&i)}return o},fromJSON:u=>({spend_limit:Array.isArray(u==null?void 0:u.spend_limit)?u.spend_limit.map(s=>c.Coin.fromJSON(s)):[]}),toJSON(u){const s={};return u.spend_limit?s.spend_limit=u.spend_limit.map(r=>r?c.Coin.toJSON(r):void 0):s.spend_limit=[],s},fromPartial(u){var s;const r={spend_limit:[]};return r.spend_limit=((s=u.spend_limit)===null||s===void 0?void 0:s.map(n=>c.Coin.fromPartial(n)))||[],r}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7725:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=e.DenomUnit=e.Supply=e.Output=e.Input=e.SendEnabled=e.Params=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976);function u(s){return s!=null}e.protobufPackage="cosmos.bank.v1beta1",e.Params={encode(s,r=t.Writer.create()){for(const n of s.send_enabled)e.SendEnabled.encode(n,r.uint32(10).fork()).ldelim();return s.default_send_enabled===!0&&r.uint32(16).bool(s.default_send_enabled),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={send_enabled:[],default_send_enabled:!1};for(;n.pos>>3){case 1:i.send_enabled.push(e.SendEnabled.decode(n,n.uint32()));break;case 2:i.default_send_enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({send_enabled:Array.isArray(s==null?void 0:s.send_enabled)?s.send_enabled.map(r=>e.SendEnabled.fromJSON(r)):[],default_send_enabled:!!u(s.default_send_enabled)&&!!s.default_send_enabled}),toJSON(s){const r={};return s.send_enabled?r.send_enabled=s.send_enabled.map(n=>n?e.SendEnabled.toJSON(n):void 0):r.send_enabled=[],s.default_send_enabled!==void 0&&(r.default_send_enabled=s.default_send_enabled),r},fromPartial(s){var r,n;const o={send_enabled:[],default_send_enabled:!1};return o.send_enabled=((r=s.send_enabled)===null||r===void 0?void 0:r.map(i=>e.SendEnabled.fromPartial(i)))||[],o.default_send_enabled=(n=s.default_send_enabled)!==null&&n!==void 0&&n,o}},e.SendEnabled={encode:(s,r=t.Writer.create())=>(s.denom!==""&&r.uint32(10).string(s.denom),s.enabled===!0&&r.uint32(16).bool(s.enabled),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={denom:"",enabled:!1};for(;n.pos>>3){case 1:i.denom=n.string();break;case 2:i.enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({denom:u(s.denom)?String(s.denom):"",enabled:!!u(s.enabled)&&!!s.enabled}),toJSON(s){const r={};return s.denom!==void 0&&(r.denom=s.denom),s.enabled!==void 0&&(r.enabled=s.enabled),r},fromPartial(s){var r,n;const o={denom:"",enabled:!1};return o.denom=(r=s.denom)!==null&&r!==void 0?r:"",o.enabled=(n=s.enabled)!==null&&n!==void 0&&n,o}},e.Input={encode(s,r=t.Writer.create()){s.address!==""&&r.uint32(10).string(s.address);for(const n of s.coins)c.Coin.encode(n,r.uint32(18).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={address:"",coins:[]};for(;n.pos>>3){case 1:i.address=n.string();break;case 2:i.coins.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&f)}}return i},fromJSON:s=>({address:u(s.address)?String(s.address):"",coins:Array.isArray(s==null?void 0:s.coins)?s.coins.map(r=>c.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.address!==void 0&&(r.address=s.address),s.coins?r.coins=s.coins.map(n=>n?c.Coin.toJSON(n):void 0):r.coins=[],r},fromPartial(s){var r,n;const o={address:"",coins:[]};return o.address=(r=s.address)!==null&&r!==void 0?r:"",o.coins=((n=s.coins)===null||n===void 0?void 0:n.map(i=>c.Coin.fromPartial(i)))||[],o}},e.Output={encode(s,r=t.Writer.create()){s.address!==""&&r.uint32(10).string(s.address);for(const n of s.coins)c.Coin.encode(n,r.uint32(18).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={address:"",coins:[]};for(;n.pos>>3){case 1:i.address=n.string();break;case 2:i.coins.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&f)}}return i},fromJSON:s=>({address:u(s.address)?String(s.address):"",coins:Array.isArray(s==null?void 0:s.coins)?s.coins.map(r=>c.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.address!==void 0&&(r.address=s.address),s.coins?r.coins=s.coins.map(n=>n?c.Coin.toJSON(n):void 0):r.coins=[],r},fromPartial(s){var r,n;const o={address:"",coins:[]};return o.address=(r=s.address)!==null&&r!==void 0?r:"",o.coins=((n=s.coins)===null||n===void 0?void 0:n.map(i=>c.Coin.fromPartial(i)))||[],o}},e.Supply={encode(s,r=t.Writer.create()){for(const n of s.total)c.Coin.encode(n,r.uint32(10).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={total:[]};for(;n.pos>>3==1?i.total.push(c.Coin.decode(n,n.uint32())):n.skipType(7&f)}return i},fromJSON:s=>({total:Array.isArray(s==null?void 0:s.total)?s.total.map(r=>c.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.total?r.total=s.total.map(n=>n?c.Coin.toJSON(n):void 0):r.total=[],r},fromPartial(s){var r;const n={total:[]};return n.total=((r=s.total)===null||r===void 0?void 0:r.map(o=>c.Coin.fromPartial(o)))||[],n}},e.DenomUnit={encode(s,r=t.Writer.create()){s.denom!==""&&r.uint32(10).string(s.denom),s.exponent!==0&&r.uint32(16).uint32(s.exponent);for(const n of s.aliases)r.uint32(26).string(n);return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={denom:"",exponent:0,aliases:[]};for(;n.pos>>3){case 1:i.denom=n.string();break;case 2:i.exponent=n.uint32();break;case 3:i.aliases.push(n.string());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({denom:u(s.denom)?String(s.denom):"",exponent:u(s.exponent)?Number(s.exponent):0,aliases:Array.isArray(s==null?void 0:s.aliases)?s.aliases.map(r=>String(r)):[]}),toJSON(s){const r={};return s.denom!==void 0&&(r.denom=s.denom),s.exponent!==void 0&&(r.exponent=Math.round(s.exponent)),s.aliases?r.aliases=s.aliases.map(n=>n):r.aliases=[],r},fromPartial(s){var r,n,o;const i={denom:"",exponent:0,aliases:[]};return i.denom=(r=s.denom)!==null&&r!==void 0?r:"",i.exponent=(n=s.exponent)!==null&&n!==void 0?n:0,i.aliases=((o=s.aliases)===null||o===void 0?void 0:o.map(f=>f))||[],i}},e.Metadata={encode(s,r=t.Writer.create()){s.description!==""&&r.uint32(10).string(s.description);for(const n of s.denom_units)e.DenomUnit.encode(n,r.uint32(18).fork()).ldelim();return s.base!==""&&r.uint32(26).string(s.base),s.display!==""&&r.uint32(34).string(s.display),s.name!==""&&r.uint32(42).string(s.name),s.symbol!==""&&r.uint32(50).string(s.symbol),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={description:"",denom_units:[],base:"",display:"",name:"",symbol:""};for(;n.pos>>3){case 1:i.description=n.string();break;case 2:i.denom_units.push(e.DenomUnit.decode(n,n.uint32()));break;case 3:i.base=n.string();break;case 4:i.display=n.string();break;case 5:i.name=n.string();break;case 6:i.symbol=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({description:u(s.description)?String(s.description):"",denom_units:Array.isArray(s==null?void 0:s.denom_units)?s.denom_units.map(r=>e.DenomUnit.fromJSON(r)):[],base:u(s.base)?String(s.base):"",display:u(s.display)?String(s.display):"",name:u(s.name)?String(s.name):"",symbol:u(s.symbol)?String(s.symbol):""}),toJSON(s){const r={};return s.description!==void 0&&(r.description=s.description),s.denom_units?r.denom_units=s.denom_units.map(n=>n?e.DenomUnit.toJSON(n):void 0):r.denom_units=[],s.base!==void 0&&(r.base=s.base),s.display!==void 0&&(r.display=s.display),s.name!==void 0&&(r.name=s.name),s.symbol!==void 0&&(r.symbol=s.symbol),r},fromPartial(s){var r,n,o,i,f,d;const h={description:"",denom_units:[],base:"",display:"",name:"",symbol:""};return h.description=(r=s.description)!==null&&r!==void 0?r:"",h.denom_units=((n=s.denom_units)===null||n===void 0?void 0:n.map(_=>e.DenomUnit.fromPartial(_)))||[],h.base=(o=s.base)!==null&&o!==void 0?o:"",h.display=(i=s.display)!==null&&i!==void 0?i:"",h.name=(f=s.name)!==null&&f!==void 0?f:"",h.symbol=(d=s.symbol)!==null&&d!==void 0?d:"",h}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},810:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgMultiSendResponse=e.MsgMultiSend=e.MsgSendResponse=e.MsgSend=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976),u=p(7725);function s(r){return r!=null}e.protobufPackage="cosmos.bank.v1beta1",e.MsgSend={encode(r,n=t.Writer.create()){r.from_address!==""&&n.uint32(10).string(r.from_address),r.to_address!==""&&n.uint32(18).string(r.to_address);for(const o of r.amount)c.Coin.encode(o,n.uint32(26).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={from_address:"",to_address:"",amount:[]};for(;o.pos>>3){case 1:f.from_address=o.string();break;case 2:f.to_address=o.string();break;case 3:f.amount.push(c.Coin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({from_address:s(r.from_address)?String(r.from_address):"",to_address:s(r.to_address)?String(r.to_address):"",amount:Array.isArray(r==null?void 0:r.amount)?r.amount.map(n=>c.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.from_address!==void 0&&(n.from_address=r.from_address),r.to_address!==void 0&&(n.to_address=r.to_address),r.amount?n.amount=r.amount.map(o=>o?c.Coin.toJSON(o):void 0):n.amount=[],n},fromPartial(r){var n,o,i;const f={from_address:"",to_address:"",amount:[]};return f.from_address=(n=r.from_address)!==null&&n!==void 0?n:"",f.to_address=(o=r.to_address)!==null&&o!==void 0?o:"",f.amount=((i=r.amount)===null||i===void 0?void 0:i.map(d=>c.Coin.fromPartial(d)))||[],f}},e.MsgSendResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgMultiSend={encode(r,n=t.Writer.create()){for(const o of r.inputs)u.Input.encode(o,n.uint32(10).fork()).ldelim();for(const o of r.outputs)u.Output.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={inputs:[],outputs:[]};for(;o.pos>>3){case 1:f.inputs.push(u.Input.decode(o,o.uint32()));break;case 2:f.outputs.push(u.Output.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({inputs:Array.isArray(r==null?void 0:r.inputs)?r.inputs.map(n=>u.Input.fromJSON(n)):[],outputs:Array.isArray(r==null?void 0:r.outputs)?r.outputs.map(n=>u.Output.fromJSON(n)):[]}),toJSON(r){const n={};return r.inputs?n.inputs=r.inputs.map(o=>o?u.Input.toJSON(o):void 0):n.inputs=[],r.outputs?n.outputs=r.outputs.map(o=>o?u.Output.toJSON(o):void 0):n.outputs=[],n},fromPartial(r){var n,o;const i={inputs:[],outputs:[]};return i.inputs=((n=r.inputs)===null||n===void 0?void 0:n.map(f=>u.Input.fromPartial(f)))||[],i.outputs=((o=r.outputs)===null||o===void 0?void 0:o.map(f=>u.Output.fromPartial(f)))||[],i}},e.MsgMultiSendResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgClientImpl=class{constructor(r){this.rpc=r,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this)}Send(r){const n=e.MsgSend.encode(r).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",n).then(o=>e.MsgSendResponse.decode(new t.Reader(o)))}MultiSend(r){const n=e.MsgMultiSend.encode(r).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",n).then(o=>e.MsgMultiSendResponse.decode(new t.Reader(o)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9849:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(b,I,l,j){j===void 0&&(j=l),Object.defineProperty(b,j,{enumerable:!0,get:function(){return I[l]}})}:function(b,I,l,j){j===void 0&&(j=l),b[j]=I[l]}),O=this&&this.__setModuleDefault||(Object.create?function(b,I){Object.defineProperty(b,"default",{enumerable:!0,value:I})}:function(b,I){b.default=I}),k=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var I={};if(b!=null)for(var l in b)l!=="default"&&Object.prototype.hasOwnProperty.call(b,l)&&w(I,b,l);return O(I,b),I},S=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.SearchTxsResult=e.TxMsgData=e.MsgData=e.SimulationResponse=e.Result=e.GasInfo=e.Attribute=e.StringEvent=e.ABCIMessageLog=e.TxResponse=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191),u=p(2093);function s(){return{data:new Uint8Array,log:"",events:[]}}function r(){return{msg_type:"",data:new Uint8Array}}e.protobufPackage="cosmos.base.abci.v1beta1",e.TxResponse={encode(b,I=t.Writer.create()){b.height!=="0"&&I.uint32(8).int64(b.height),b.txhash!==""&&I.uint32(18).string(b.txhash),b.codespace!==""&&I.uint32(26).string(b.codespace),b.code!==0&&I.uint32(32).uint32(b.code),b.data!==""&&I.uint32(42).string(b.data),b.raw_log!==""&&I.uint32(50).string(b.raw_log);for(const l of b.logs)e.ABCIMessageLog.encode(l,I.uint32(58).fork()).ldelim();b.info!==""&&I.uint32(66).string(b.info),b.gas_wanted!=="0"&&I.uint32(72).int64(b.gas_wanted),b.gas_used!=="0"&&I.uint32(80).int64(b.gas_used),b.tx!==void 0&&c.Any.encode(b.tx,I.uint32(90).fork()).ldelim(),b.timestamp!==""&&I.uint32(98).string(b.timestamp);for(const l of b.events)u.Event.encode(l,I.uint32(106).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={height:"0",txhash:"",codespace:"",code:0,data:"",raw_log:"",logs:[],info:"",gas_wanted:"0",gas_used:"0",tx:void 0,timestamp:"",events:[]};for(;l.pos>>3){case 1:M.height=h(l.int64());break;case 2:M.txhash=l.string();break;case 3:M.codespace=l.string();break;case 4:M.code=l.uint32();break;case 5:M.data=l.string();break;case 6:M.raw_log=l.string();break;case 7:M.logs.push(e.ABCIMessageLog.decode(l,l.uint32()));break;case 8:M.info=l.string();break;case 9:M.gas_wanted=h(l.int64());break;case 10:M.gas_used=h(l.int64());break;case 11:M.tx=c.Any.decode(l,l.uint32());break;case 12:M.timestamp=l.string();break;case 13:M.events.push(u.Event.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({height:_(b.height)?String(b.height):"0",txhash:_(b.txhash)?String(b.txhash):"",codespace:_(b.codespace)?String(b.codespace):"",code:_(b.code)?Number(b.code):0,data:_(b.data)?String(b.data):"",raw_log:_(b.raw_log)?String(b.raw_log):"",logs:Array.isArray(b==null?void 0:b.logs)?b.logs.map(I=>e.ABCIMessageLog.fromJSON(I)):[],info:_(b.info)?String(b.info):"",gas_wanted:_(b.gas_wanted)?String(b.gas_wanted):"0",gas_used:_(b.gas_used)?String(b.gas_used):"0",tx:_(b.tx)?c.Any.fromJSON(b.tx):void 0,timestamp:_(b.timestamp)?String(b.timestamp):"",events:Array.isArray(b==null?void 0:b.events)?b.events.map(I=>u.Event.fromJSON(I)):[]}),toJSON(b){const I={};return b.height!==void 0&&(I.height=b.height),b.txhash!==void 0&&(I.txhash=b.txhash),b.codespace!==void 0&&(I.codespace=b.codespace),b.code!==void 0&&(I.code=Math.round(b.code)),b.data!==void 0&&(I.data=b.data),b.raw_log!==void 0&&(I.raw_log=b.raw_log),b.logs?I.logs=b.logs.map(l=>l?e.ABCIMessageLog.toJSON(l):void 0):I.logs=[],b.info!==void 0&&(I.info=b.info),b.gas_wanted!==void 0&&(I.gas_wanted=b.gas_wanted),b.gas_used!==void 0&&(I.gas_used=b.gas_used),b.tx!==void 0&&(I.tx=b.tx?c.Any.toJSON(b.tx):void 0),b.timestamp!==void 0&&(I.timestamp=b.timestamp),b.events?I.events=b.events.map(l=>l?u.Event.toJSON(l):void 0):I.events=[],I},fromPartial(b){var I,l,j,M,N,C,x,P,v,m,E,B;const T={height:"0",txhash:"",codespace:"",code:0,data:"",raw_log:"",logs:[],info:"",gas_wanted:"0",gas_used:"0",tx:void 0,timestamp:"",events:[]};return T.height=(I=b.height)!==null&&I!==void 0?I:"0",T.txhash=(l=b.txhash)!==null&&l!==void 0?l:"",T.codespace=(j=b.codespace)!==null&&j!==void 0?j:"",T.code=(M=b.code)!==null&&M!==void 0?M:0,T.data=(N=b.data)!==null&&N!==void 0?N:"",T.raw_log=(C=b.raw_log)!==null&&C!==void 0?C:"",T.logs=((x=b.logs)===null||x===void 0?void 0:x.map(q=>e.ABCIMessageLog.fromPartial(q)))||[],T.info=(P=b.info)!==null&&P!==void 0?P:"",T.gas_wanted=(v=b.gas_wanted)!==null&&v!==void 0?v:"0",T.gas_used=(m=b.gas_used)!==null&&m!==void 0?m:"0",T.tx=b.tx!==void 0&&b.tx!==null?c.Any.fromPartial(b.tx):void 0,T.timestamp=(E=b.timestamp)!==null&&E!==void 0?E:"",T.events=((B=b.events)===null||B===void 0?void 0:B.map(q=>u.Event.fromPartial(q)))||[],T}},e.ABCIMessageLog={encode(b,I=t.Writer.create()){b.msg_index!==0&&I.uint32(8).uint32(b.msg_index),b.log!==""&&I.uint32(18).string(b.log);for(const l of b.events)e.StringEvent.encode(l,I.uint32(26).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={msg_index:0,log:"",events:[]};for(;l.pos>>3){case 1:M.msg_index=l.uint32();break;case 2:M.log=l.string();break;case 3:M.events.push(e.StringEvent.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({msg_index:_(b.msg_index)?Number(b.msg_index):0,log:_(b.log)?String(b.log):"",events:Array.isArray(b==null?void 0:b.events)?b.events.map(I=>e.StringEvent.fromJSON(I)):[]}),toJSON(b){const I={};return b.msg_index!==void 0&&(I.msg_index=Math.round(b.msg_index)),b.log!==void 0&&(I.log=b.log),b.events?I.events=b.events.map(l=>l?e.StringEvent.toJSON(l):void 0):I.events=[],I},fromPartial(b){var I,l,j;const M={msg_index:0,log:"",events:[]};return M.msg_index=(I=b.msg_index)!==null&&I!==void 0?I:0,M.log=(l=b.log)!==null&&l!==void 0?l:"",M.events=((j=b.events)===null||j===void 0?void 0:j.map(N=>e.StringEvent.fromPartial(N)))||[],M}},e.StringEvent={encode(b,I=t.Writer.create()){b.type!==""&&I.uint32(10).string(b.type);for(const l of b.attributes)e.Attribute.encode(l,I.uint32(18).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={type:"",attributes:[]};for(;l.pos>>3){case 1:M.type=l.string();break;case 2:M.attributes.push(e.Attribute.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({type:_(b.type)?String(b.type):"",attributes:Array.isArray(b==null?void 0:b.attributes)?b.attributes.map(I=>e.Attribute.fromJSON(I)):[]}),toJSON(b){const I={};return b.type!==void 0&&(I.type=b.type),b.attributes?I.attributes=b.attributes.map(l=>l?e.Attribute.toJSON(l):void 0):I.attributes=[],I},fromPartial(b){var I,l;const j={type:"",attributes:[]};return j.type=(I=b.type)!==null&&I!==void 0?I:"",j.attributes=((l=b.attributes)===null||l===void 0?void 0:l.map(M=>e.Attribute.fromPartial(M)))||[],j}},e.Attribute={encode:(b,I=t.Writer.create())=>(b.key!==""&&I.uint32(10).string(b.key),b.value!==""&&I.uint32(18).string(b.value),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={key:"",value:""};for(;l.pos>>3){case 1:M.key=l.string();break;case 2:M.value=l.string();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({key:_(b.key)?String(b.key):"",value:_(b.value)?String(b.value):""}),toJSON(b){const I={};return b.key!==void 0&&(I.key=b.key),b.value!==void 0&&(I.value=b.value),I},fromPartial(b){var I,l;const j={key:"",value:""};return j.key=(I=b.key)!==null&&I!==void 0?I:"",j.value=(l=b.value)!==null&&l!==void 0?l:"",j}},e.GasInfo={encode:(b,I=t.Writer.create())=>(b.gas_wanted!=="0"&&I.uint32(8).uint64(b.gas_wanted),b.gas_used!=="0"&&I.uint32(16).uint64(b.gas_used),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={gas_wanted:"0",gas_used:"0"};for(;l.pos>>3){case 1:M.gas_wanted=h(l.uint64());break;case 2:M.gas_used=h(l.uint64());break;default:l.skipType(7&N)}}return M},fromJSON:b=>({gas_wanted:_(b.gas_wanted)?String(b.gas_wanted):"0",gas_used:_(b.gas_used)?String(b.gas_used):"0"}),toJSON(b){const I={};return b.gas_wanted!==void 0&&(I.gas_wanted=b.gas_wanted),b.gas_used!==void 0&&(I.gas_used=b.gas_used),I},fromPartial(b){var I,l;const j={gas_wanted:"0",gas_used:"0"};return j.gas_wanted=(I=b.gas_wanted)!==null&&I!==void 0?I:"0",j.gas_used=(l=b.gas_used)!==null&&l!==void 0?l:"0",j}},e.Result={encode(b,I=t.Writer.create()){b.data.length!==0&&I.uint32(10).bytes(b.data),b.log!==""&&I.uint32(18).string(b.log);for(const l of b.events)u.Event.encode(l,I.uint32(26).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M=s();for(;l.pos>>3){case 1:M.data=l.bytes();break;case 2:M.log=l.string();break;case 3:M.events.push(u.Event.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({data:_(b.data)?i(b.data):new Uint8Array,log:_(b.log)?String(b.log):"",events:Array.isArray(b==null?void 0:b.events)?b.events.map(I=>u.Event.fromJSON(I)):[]}),toJSON(b){const I={};return b.data!==void 0&&(I.data=d(b.data!==void 0?b.data:new Uint8Array)),b.log!==void 0&&(I.log=b.log),b.events?I.events=b.events.map(l=>l?u.Event.toJSON(l):void 0):I.events=[],I},fromPartial(b){var I,l,j;const M=s();return M.data=(I=b.data)!==null&&I!==void 0?I:new Uint8Array,M.log=(l=b.log)!==null&&l!==void 0?l:"",M.events=((j=b.events)===null||j===void 0?void 0:j.map(N=>u.Event.fromPartial(N)))||[],M}},e.SimulationResponse={encode:(b,I=t.Writer.create())=>(b.gas_info!==void 0&&e.GasInfo.encode(b.gas_info,I.uint32(10).fork()).ldelim(),b.result!==void 0&&e.Result.encode(b.result,I.uint32(18).fork()).ldelim(),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={gas_info:void 0,result:void 0};for(;l.pos>>3){case 1:M.gas_info=e.GasInfo.decode(l,l.uint32());break;case 2:M.result=e.Result.decode(l,l.uint32());break;default:l.skipType(7&N)}}return M},fromJSON:b=>({gas_info:_(b.gas_info)?e.GasInfo.fromJSON(b.gas_info):void 0,result:_(b.result)?e.Result.fromJSON(b.result):void 0}),toJSON(b){const I={};return b.gas_info!==void 0&&(I.gas_info=b.gas_info?e.GasInfo.toJSON(b.gas_info):void 0),b.result!==void 0&&(I.result=b.result?e.Result.toJSON(b.result):void 0),I},fromPartial(b){const I={gas_info:void 0,result:void 0};return I.gas_info=b.gas_info!==void 0&&b.gas_info!==null?e.GasInfo.fromPartial(b.gas_info):void 0,I.result=b.result!==void 0&&b.result!==null?e.Result.fromPartial(b.result):void 0,I}},e.MsgData={encode:(b,I=t.Writer.create())=>(b.msg_type!==""&&I.uint32(10).string(b.msg_type),b.data.length!==0&&I.uint32(18).bytes(b.data),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M=r();for(;l.pos>>3){case 1:M.msg_type=l.string();break;case 2:M.data=l.bytes();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({msg_type:_(b.msg_type)?String(b.msg_type):"",data:_(b.data)?i(b.data):new Uint8Array}),toJSON(b){const I={};return b.msg_type!==void 0&&(I.msg_type=b.msg_type),b.data!==void 0&&(I.data=d(b.data!==void 0?b.data:new Uint8Array)),I},fromPartial(b){var I,l;const j=r();return j.msg_type=(I=b.msg_type)!==null&&I!==void 0?I:"",j.data=(l=b.data)!==null&&l!==void 0?l:new Uint8Array,j}},e.TxMsgData={encode(b,I=t.Writer.create()){for(const l of b.data)e.MsgData.encode(l,I.uint32(10).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={data:[]};for(;l.pos>>3==1?M.data.push(e.MsgData.decode(l,l.uint32())):l.skipType(7&N)}return M},fromJSON:b=>({data:Array.isArray(b==null?void 0:b.data)?b.data.map(I=>e.MsgData.fromJSON(I)):[]}),toJSON(b){const I={};return b.data?I.data=b.data.map(l=>l?e.MsgData.toJSON(l):void 0):I.data=[],I},fromPartial(b){var I;const l={data:[]};return l.data=((I=b.data)===null||I===void 0?void 0:I.map(j=>e.MsgData.fromPartial(j)))||[],l}},e.SearchTxsResult={encode(b,I=t.Writer.create()){b.total_count!=="0"&&I.uint32(8).uint64(b.total_count),b.count!=="0"&&I.uint32(16).uint64(b.count),b.page_number!=="0"&&I.uint32(24).uint64(b.page_number),b.page_total!=="0"&&I.uint32(32).uint64(b.page_total),b.limit!=="0"&&I.uint32(40).uint64(b.limit);for(const l of b.txs)e.TxResponse.encode(l,I.uint32(50).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={total_count:"0",count:"0",page_number:"0",page_total:"0",limit:"0",txs:[]};for(;l.pos>>3){case 1:M.total_count=h(l.uint64());break;case 2:M.count=h(l.uint64());break;case 3:M.page_number=h(l.uint64());break;case 4:M.page_total=h(l.uint64());break;case 5:M.limit=h(l.uint64());break;case 6:M.txs.push(e.TxResponse.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({total_count:_(b.total_count)?String(b.total_count):"0",count:_(b.count)?String(b.count):"0",page_number:_(b.page_number)?String(b.page_number):"0",page_total:_(b.page_total)?String(b.page_total):"0",limit:_(b.limit)?String(b.limit):"0",txs:Array.isArray(b==null?void 0:b.txs)?b.txs.map(I=>e.TxResponse.fromJSON(I)):[]}),toJSON(b){const I={};return b.total_count!==void 0&&(I.total_count=b.total_count),b.count!==void 0&&(I.count=b.count),b.page_number!==void 0&&(I.page_number=b.page_number),b.page_total!==void 0&&(I.page_total=b.page_total),b.limit!==void 0&&(I.limit=b.limit),b.txs?I.txs=b.txs.map(l=>l?e.TxResponse.toJSON(l):void 0):I.txs=[],I},fromPartial(b){var I,l,j,M,N,C;const x={total_count:"0",count:"0",page_number:"0",page_total:"0",limit:"0",txs:[]};return x.total_count=(I=b.total_count)!==null&&I!==void 0?I:"0",x.count=(l=b.count)!==null&&l!==void 0?l:"0",x.page_number=(j=b.page_number)!==null&&j!==void 0?j:"0",x.page_total=(M=b.page_total)!==null&&M!==void 0?M:"0",x.limit=(N=b.limit)!==null&&N!==void 0?N:"0",x.txs=((C=b.txs)===null||C===void 0?void 0:C.map(P=>e.TxResponse.fromPartial(P)))||[],x}};var n=(()=>{if(n!==void 0)return n;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const o=n.atob||(b=>n.Buffer.from(b,"base64").toString("binary"));function i(b){const I=o(b),l=new Uint8Array(I.length);for(let j=0;jn.Buffer.from(b,"binary").toString("base64"));function d(b){const I=[];for(const l of b)I.push(String.fromCharCode(l));return f(I.join(""))}function h(b){return b.toString()}function _(b){return b!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2976:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecProto=e.IntProto=e.DecCoin=e.Coin=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(u){return u!=null}e.protobufPackage="cosmos.base.v1beta1",e.Coin={encode:(u,s=t.Writer.create())=>(u.denom!==""&&s.uint32(10).string(u.denom),u.amount!==""&&s.uint32(18).string(u.amount),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={denom:"",amount:""};for(;r.pos>>3){case 1:o.denom=r.string();break;case 2:o.amount=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({denom:c(u.denom)?String(u.denom):"",amount:c(u.amount)?String(u.amount):""}),toJSON(u){const s={};return u.denom!==void 0&&(s.denom=u.denom),u.amount!==void 0&&(s.amount=u.amount),s},fromPartial(u){var s,r;const n={denom:"",amount:""};return n.denom=(s=u.denom)!==null&&s!==void 0?s:"",n.amount=(r=u.amount)!==null&&r!==void 0?r:"",n}},e.DecCoin={encode:(u,s=t.Writer.create())=>(u.denom!==""&&s.uint32(10).string(u.denom),u.amount!==""&&s.uint32(18).string(u.amount),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={denom:"",amount:""};for(;r.pos>>3){case 1:o.denom=r.string();break;case 2:o.amount=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({denom:c(u.denom)?String(u.denom):"",amount:c(u.amount)?String(u.amount):""}),toJSON(u){const s={};return u.denom!==void 0&&(s.denom=u.denom),u.amount!==void 0&&(s.amount=u.amount),s},fromPartial(u){var s,r;const n={denom:"",amount:""};return n.denom=(s=u.denom)!==null&&s!==void 0?s:"",n.amount=(r=u.amount)!==null&&r!==void 0?r:"",n}},e.IntProto={encode:(u,s=t.Writer.create())=>(u.int!==""&&s.uint32(10).string(u.int),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={int:""};for(;r.pos>>3==1?o.int=r.string():r.skipType(7&i)}return o},fromJSON:u=>({int:c(u.int)?String(u.int):""}),toJSON(u){const s={};return u.int!==void 0&&(s.int=u.int),s},fromPartial(u){var s;const r={int:""};return r.int=(s=u.int)!==null&&s!==void 0?s:"",r}},e.DecProto={encode:(u,s=t.Writer.create())=>(u.dec!==""&&s.uint32(10).string(u.dec),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={dec:""};for(;r.pos>>3==1?o.dec=r.string():r.skipType(7&i)}return o},fromJSON:u=>({dec:c(u.dec)?String(u.dec):""}),toJSON(u){const s={};return u.dec!==void 0&&(s.dec=u.dec),s},fromPartial(u){var s;const r={dec:""};return r.dec=(s=u.dec)!==null&&s!==void 0?s:"",r}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4489:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgVerifyInvariantResponse=e.MsgVerifyInvariant=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(u){return u!=null}e.protobufPackage="cosmos.crisis.v1beta1",e.MsgVerifyInvariant={encode:(u,s=t.Writer.create())=>(u.sender!==""&&s.uint32(10).string(u.sender),u.invariant_module_name!==""&&s.uint32(18).string(u.invariant_module_name),u.invariant_route!==""&&s.uint32(26).string(u.invariant_route),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={sender:"",invariant_module_name:"",invariant_route:""};for(;r.pos>>3){case 1:o.sender=r.string();break;case 2:o.invariant_module_name=r.string();break;case 3:o.invariant_route=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({sender:c(u.sender)?String(u.sender):"",invariant_module_name:c(u.invariant_module_name)?String(u.invariant_module_name):"",invariant_route:c(u.invariant_route)?String(u.invariant_route):""}),toJSON(u){const s={};return u.sender!==void 0&&(s.sender=u.sender),u.invariant_module_name!==void 0&&(s.invariant_module_name=u.invariant_module_name),u.invariant_route!==void 0&&(s.invariant_route=u.invariant_route),s},fromPartial(u){var s,r,n;const o={sender:"",invariant_module_name:"",invariant_route:""};return o.sender=(s=u.sender)!==null&&s!==void 0?s:"",o.invariant_module_name=(r=u.invariant_module_name)!==null&&r!==void 0?r:"",o.invariant_route=(n=u.invariant_route)!==null&&n!==void 0?n:"",o}},e.MsgVerifyInvariantResponse={encode:(u,s=t.Writer.create())=>s,decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;for(;r.pos({}),toJSON:u=>({}),fromPartial:u=>({})},e.MsgClientImpl=class{constructor(u){this.rpc=u,this.VerifyInvariant=this.VerifyInvariant.bind(this)}VerifyInvariant(u){const s=e.MsgVerifyInvariant.encode(u).finish();return this.rpc.request("cosmos.crisis.v1beta1.Msg","VerifyInvariant",s).then(r=>e.MsgVerifyInvariantResponse.decode(new t.Reader(r)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7776:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(d,h,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return h[_]}})}:function(d,h,_,b){b===void 0&&(b=_),d[b]=h[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(h,d,_);return O(h,d),h},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrivKey=e.PubKey=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}e.protobufPackage="cosmos.crypto.ed25519",e.PubKey={encode:(d,h=t.Writer.create())=>(d.key.length!==0&&h.uint32(10).bytes(d.key),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I=c();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const h={};return d.key!==void 0&&(h.key=i(d.key!==void 0?d.key:new Uint8Array)),h},fromPartial(d){var h;const _=c();return _.key=(h=d.key)!==null&&h!==void 0?h:new Uint8Array,_}},e.PrivKey={encode:(d,h=t.Writer.create())=>(d.key.length!==0&&h.uint32(10).bytes(d.key),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I=u();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const h={};return d.key!==void 0&&(h.key=i(d.key!==void 0?d.key:new Uint8Array)),h},fromPartial(d){var h;const _=u();return _.key=(h=d.key)!==null&&h!==void 0?h:new Uint8Array,_}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const h=r(d),_=new Uint8Array(h.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){const h=[];for(const _ of d)h.push(String.fromCharCode(_));return o(h.join(""))}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5818:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyAminoPubKey=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191);e.protobufPackage="cosmos.crypto.multisig",e.LegacyAminoPubKey={encode(u,s=t.Writer.create()){u.threshold!==0&&s.uint32(8).uint32(u.threshold);for(const r of u.public_keys)c.Any.encode(r,s.uint32(18).fork()).ldelim();return s},decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={threshold:0,public_keys:[]};for(;r.pos>>3){case 1:o.threshold=r.uint32();break;case 2:o.public_keys.push(c.Any.decode(r,r.uint32()));break;default:r.skipType(7&i)}}return o},fromJSON(u){return{threshold:(s=u.threshold,s!=null?Number(u.threshold):0),public_keys:Array.isArray(u==null?void 0:u.public_keys)?u.public_keys.map(r=>c.Any.fromJSON(r)):[]};var s},toJSON(u){const s={};return u.threshold!==void 0&&(s.threshold=Math.round(u.threshold)),u.public_keys?s.public_keys=u.public_keys.map(r=>r?c.Any.toJSON(r):void 0):s.public_keys=[],s},fromPartial(u){var s,r;const n={threshold:0,public_keys:[]};return n.threshold=(s=u.threshold)!==null&&s!==void 0?s:0,n.public_keys=((r=u.public_keys)===null||r===void 0?void 0:r.map(o=>c.Any.fromPartial(o)))||[],n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4271:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(f,d,h,_){_===void 0&&(_=h),Object.defineProperty(f,_,{enumerable:!0,get:function(){return d[h]}})}:function(f,d,h,_){_===void 0&&(_=h),f[_]=d[h]}),O=this&&this.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),k=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h in f)h!=="default"&&Object.prototype.hasOwnProperty.call(f,h)&&w(d,f,h);return O(d,f),d},S=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.CompactBitArray=e.MultiSignature=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(){return{extra_bits_stored:0,elems:new Uint8Array}}e.protobufPackage="cosmos.crypto.multisig.v1beta1",e.MultiSignature={encode(f,d=t.Writer.create()){for(const h of f.signatures)d.uint32(10).bytes(h);return d},decode(f,d){const h=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?h.len:h.pos+d;const b={signatures:[]};for(;h.pos<_;){const I=h.uint32();I>>>3==1?b.signatures.push(h.bytes()):h.skipType(7&I)}return b},fromJSON:f=>({signatures:Array.isArray(f==null?void 0:f.signatures)?f.signatures.map(d=>r(d)):[]}),toJSON(f){const d={};return f.signatures?d.signatures=f.signatures.map(h=>o(h!==void 0?h:new Uint8Array)):d.signatures=[],d},fromPartial(f){var d;const h={signatures:[]};return h.signatures=((d=f.signatures)===null||d===void 0?void 0:d.map(_=>_))||[],h}},e.CompactBitArray={encode:(f,d=t.Writer.create())=>(f.extra_bits_stored!==0&&d.uint32(8).uint32(f.extra_bits_stored),f.elems.length!==0&&d.uint32(18).bytes(f.elems),d),decode(f,d){const h=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?h.len:h.pos+d;const b=c();for(;h.pos<_;){const I=h.uint32();switch(I>>>3){case 1:b.extra_bits_stored=h.uint32();break;case 2:b.elems=h.bytes();break;default:h.skipType(7&I)}}return b},fromJSON:f=>({extra_bits_stored:i(f.extra_bits_stored)?Number(f.extra_bits_stored):0,elems:i(f.elems)?r(f.elems):new Uint8Array}),toJSON(f){const d={};return f.extra_bits_stored!==void 0&&(d.extra_bits_stored=Math.round(f.extra_bits_stored)),f.elems!==void 0&&(d.elems=o(f.elems!==void 0?f.elems:new Uint8Array)),d},fromPartial(f){var d,h;const _=c();return _.extra_bits_stored=(d=f.extra_bits_stored)!==null&&d!==void 0?d:0,_.elems=(h=f.elems)!==null&&h!==void 0?h:new Uint8Array,_}};var u=(()=>{if(u!==void 0)return u;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const s=u.atob||(f=>u.Buffer.from(f,"base64").toString("binary"));function r(f){const d=s(f),h=new Uint8Array(d.length);for(let _=0;_u.Buffer.from(f,"binary").toString("base64"));function o(f){const d=[];for(const h of f)d.push(String.fromCharCode(h));return n(d.join(""))}function i(f){return f!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6010:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(d,h,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return h[_]}})}:function(d,h,_,b){b===void 0&&(b=_),d[b]=h[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(h,d,_);return O(h,d),h},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrivKey=e.PubKey=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}e.protobufPackage="cosmos.crypto.secp256k1",e.PubKey={encode:(d,h=t.Writer.create())=>(d.key.length!==0&&h.uint32(10).bytes(d.key),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I=c();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const h={};return d.key!==void 0&&(h.key=i(d.key!==void 0?d.key:new Uint8Array)),h},fromPartial(d){var h;const _=c();return _.key=(h=d.key)!==null&&h!==void 0?h:new Uint8Array,_}},e.PrivKey={encode:(d,h=t.Writer.create())=>(d.key.length!==0&&h.uint32(10).bytes(d.key),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I=u();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const h={};return d.key!==void 0&&(h.key=i(d.key!==void 0?d.key:new Uint8Array)),h},fromPartial(d){var h;const _=u();return _.key=(h=d.key)!==null&&h!==void 0?h:new Uint8Array,_}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const h=r(d),_=new Uint8Array(h.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){const h=[];for(const _ of d)h.push(String.fromCharCode(_));return o(h.join(""))}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8866:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityPoolSpendProposalWithDeposit=e.DelegationDelegatorReward=e.DelegatorStartingInfo=e.CommunityPoolSpendProposal=e.FeePool=e.ValidatorSlashEvents=e.ValidatorSlashEvent=e.ValidatorOutstandingRewards=e.ValidatorAccumulatedCommission=e.ValidatorCurrentRewards=e.ValidatorHistoricalRewards=e.Params=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976);function u(r){return r.toString()}function s(r){return r!=null}e.protobufPackage="cosmos.distribution.v1beta1",e.Params={encode:(r,n=t.Writer.create())=>(r.community_tax!==""&&n.uint32(10).string(r.community_tax),r.base_proposer_reward!==""&&n.uint32(18).string(r.base_proposer_reward),r.bonus_proposer_reward!==""&&n.uint32(26).string(r.bonus_proposer_reward),r.withdraw_addr_enabled===!0&&n.uint32(32).bool(r.withdraw_addr_enabled),r.secret_foundation_tax!==""&&n.uint32(42).string(r.secret_foundation_tax),r.secret_foundation_address!==""&&n.uint32(50).string(r.secret_foundation_address),r.minimum_restake_threshold!==""&&n.uint32(58).string(r.minimum_restake_threshold),r.restake_period!==""&&n.uint32(66).string(r.restake_period),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={community_tax:"",base_proposer_reward:"",bonus_proposer_reward:"",withdraw_addr_enabled:!1,secret_foundation_tax:"",secret_foundation_address:"",minimum_restake_threshold:"",restake_period:""};for(;o.pos>>3){case 1:f.community_tax=o.string();break;case 2:f.base_proposer_reward=o.string();break;case 3:f.bonus_proposer_reward=o.string();break;case 4:f.withdraw_addr_enabled=o.bool();break;case 5:f.secret_foundation_tax=o.string();break;case 6:f.secret_foundation_address=o.string();break;case 7:f.minimum_restake_threshold=o.string();break;case 8:f.restake_period=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({community_tax:s(r.community_tax)?String(r.community_tax):"",base_proposer_reward:s(r.base_proposer_reward)?String(r.base_proposer_reward):"",bonus_proposer_reward:s(r.bonus_proposer_reward)?String(r.bonus_proposer_reward):"",withdraw_addr_enabled:!!s(r.withdraw_addr_enabled)&&!!r.withdraw_addr_enabled,secret_foundation_tax:s(r.secret_foundation_tax)?String(r.secret_foundation_tax):"",secret_foundation_address:s(r.secret_foundation_address)?String(r.secret_foundation_address):"",minimum_restake_threshold:s(r.minimum_restake_threshold)?String(r.minimum_restake_threshold):"",restake_period:s(r.restake_period)?String(r.restake_period):""}),toJSON(r){const n={};return r.community_tax!==void 0&&(n.community_tax=r.community_tax),r.base_proposer_reward!==void 0&&(n.base_proposer_reward=r.base_proposer_reward),r.bonus_proposer_reward!==void 0&&(n.bonus_proposer_reward=r.bonus_proposer_reward),r.withdraw_addr_enabled!==void 0&&(n.withdraw_addr_enabled=r.withdraw_addr_enabled),r.secret_foundation_tax!==void 0&&(n.secret_foundation_tax=r.secret_foundation_tax),r.secret_foundation_address!==void 0&&(n.secret_foundation_address=r.secret_foundation_address),r.minimum_restake_threshold!==void 0&&(n.minimum_restake_threshold=r.minimum_restake_threshold),r.restake_period!==void 0&&(n.restake_period=r.restake_period),n},fromPartial(r){var n,o,i,f,d,h,_,b;const I={community_tax:"",base_proposer_reward:"",bonus_proposer_reward:"",withdraw_addr_enabled:!1,secret_foundation_tax:"",secret_foundation_address:"",minimum_restake_threshold:"",restake_period:""};return I.community_tax=(n=r.community_tax)!==null&&n!==void 0?n:"",I.base_proposer_reward=(o=r.base_proposer_reward)!==null&&o!==void 0?o:"",I.bonus_proposer_reward=(i=r.bonus_proposer_reward)!==null&&i!==void 0?i:"",I.withdraw_addr_enabled=(f=r.withdraw_addr_enabled)!==null&&f!==void 0&&f,I.secret_foundation_tax=(d=r.secret_foundation_tax)!==null&&d!==void 0?d:"",I.secret_foundation_address=(h=r.secret_foundation_address)!==null&&h!==void 0?h:"",I.minimum_restake_threshold=(_=r.minimum_restake_threshold)!==null&&_!==void 0?_:"",I.restake_period=(b=r.restake_period)!==null&&b!==void 0?b:"",I}},e.ValidatorHistoricalRewards={encode(r,n=t.Writer.create()){for(const o of r.cumulative_reward_ratio)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return r.reference_count!==0&&n.uint32(16).uint32(r.reference_count),n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={cumulative_reward_ratio:[],reference_count:0};for(;o.pos>>3){case 1:f.cumulative_reward_ratio.push(c.DecCoin.decode(o,o.uint32()));break;case 2:f.reference_count=o.uint32();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({cumulative_reward_ratio:Array.isArray(r==null?void 0:r.cumulative_reward_ratio)?r.cumulative_reward_ratio.map(n=>c.DecCoin.fromJSON(n)):[],reference_count:s(r.reference_count)?Number(r.reference_count):0}),toJSON(r){const n={};return r.cumulative_reward_ratio?n.cumulative_reward_ratio=r.cumulative_reward_ratio.map(o=>o?c.DecCoin.toJSON(o):void 0):n.cumulative_reward_ratio=[],r.reference_count!==void 0&&(n.reference_count=Math.round(r.reference_count)),n},fromPartial(r){var n,o;const i={cumulative_reward_ratio:[],reference_count:0};return i.cumulative_reward_ratio=((n=r.cumulative_reward_ratio)===null||n===void 0?void 0:n.map(f=>c.DecCoin.fromPartial(f)))||[],i.reference_count=(o=r.reference_count)!==null&&o!==void 0?o:0,i}},e.ValidatorCurrentRewards={encode(r,n=t.Writer.create()){for(const o of r.rewards)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return r.period!=="0"&&n.uint32(16).uint64(r.period),n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={rewards:[],period:"0"};for(;o.pos>>3){case 1:f.rewards.push(c.DecCoin.decode(o,o.uint32()));break;case 2:f.period=u(o.uint64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({rewards:Array.isArray(r==null?void 0:r.rewards)?r.rewards.map(n=>c.DecCoin.fromJSON(n)):[],period:s(r.period)?String(r.period):"0"}),toJSON(r){const n={};return r.rewards?n.rewards=r.rewards.map(o=>o?c.DecCoin.toJSON(o):void 0):n.rewards=[],r.period!==void 0&&(n.period=r.period),n},fromPartial(r){var n,o;const i={rewards:[],period:"0"};return i.rewards=((n=r.rewards)===null||n===void 0?void 0:n.map(f=>c.DecCoin.fromPartial(f)))||[],i.period=(o=r.period)!==null&&o!==void 0?o:"0",i}},e.ValidatorAccumulatedCommission={encode(r,n=t.Writer.create()){for(const o of r.commission)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={commission:[]};for(;o.pos>>3==1?f.commission.push(c.DecCoin.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({commission:Array.isArray(r==null?void 0:r.commission)?r.commission.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.commission?n.commission=r.commission.map(o=>o?c.DecCoin.toJSON(o):void 0):n.commission=[],n},fromPartial(r){var n;const o={commission:[]};return o.commission=((n=r.commission)===null||n===void 0?void 0:n.map(i=>c.DecCoin.fromPartial(i)))||[],o}},e.ValidatorOutstandingRewards={encode(r,n=t.Writer.create()){for(const o of r.rewards)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={rewards:[]};for(;o.pos>>3==1?f.rewards.push(c.DecCoin.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({rewards:Array.isArray(r==null?void 0:r.rewards)?r.rewards.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.rewards?n.rewards=r.rewards.map(o=>o?c.DecCoin.toJSON(o):void 0):n.rewards=[],n},fromPartial(r){var n;const o={rewards:[]};return o.rewards=((n=r.rewards)===null||n===void 0?void 0:n.map(i=>c.DecCoin.fromPartial(i)))||[],o}},e.ValidatorSlashEvent={encode:(r,n=t.Writer.create())=>(r.validator_period!=="0"&&n.uint32(8).uint64(r.validator_period),r.fraction!==""&&n.uint32(18).string(r.fraction),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_period:"0",fraction:""};for(;o.pos>>3){case 1:f.validator_period=u(o.uint64());break;case 2:f.fraction=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({validator_period:s(r.validator_period)?String(r.validator_period):"0",fraction:s(r.fraction)?String(r.fraction):""}),toJSON(r){const n={};return r.validator_period!==void 0&&(n.validator_period=r.validator_period),r.fraction!==void 0&&(n.fraction=r.fraction),n},fromPartial(r){var n,o;const i={validator_period:"0",fraction:""};return i.validator_period=(n=r.validator_period)!==null&&n!==void 0?n:"0",i.fraction=(o=r.fraction)!==null&&o!==void 0?o:"",i}},e.ValidatorSlashEvents={encode(r,n=t.Writer.create()){for(const o of r.validator_slash_events)e.ValidatorSlashEvent.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_slash_events:[]};for(;o.pos>>3==1?f.validator_slash_events.push(e.ValidatorSlashEvent.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({validator_slash_events:Array.isArray(r==null?void 0:r.validator_slash_events)?r.validator_slash_events.map(n=>e.ValidatorSlashEvent.fromJSON(n)):[]}),toJSON(r){const n={};return r.validator_slash_events?n.validator_slash_events=r.validator_slash_events.map(o=>o?e.ValidatorSlashEvent.toJSON(o):void 0):n.validator_slash_events=[],n},fromPartial(r){var n;const o={validator_slash_events:[]};return o.validator_slash_events=((n=r.validator_slash_events)===null||n===void 0?void 0:n.map(i=>e.ValidatorSlashEvent.fromPartial(i)))||[],o}},e.FeePool={encode(r,n=t.Writer.create()){for(const o of r.community_pool)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={community_pool:[]};for(;o.pos>>3==1?f.community_pool.push(c.DecCoin.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({community_pool:Array.isArray(r==null?void 0:r.community_pool)?r.community_pool.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.community_pool?n.community_pool=r.community_pool.map(o=>o?c.DecCoin.toJSON(o):void 0):n.community_pool=[],n},fromPartial(r){var n;const o={community_pool:[]};return o.community_pool=((n=r.community_pool)===null||n===void 0?void 0:n.map(i=>c.DecCoin.fromPartial(i)))||[],o}},e.CommunityPoolSpendProposal={encode(r,n=t.Writer.create()){r.title!==""&&n.uint32(10).string(r.title),r.description!==""&&n.uint32(18).string(r.description),r.recipient!==""&&n.uint32(26).string(r.recipient);for(const o of r.amount)c.Coin.encode(o,n.uint32(34).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={title:"",description:"",recipient:"",amount:[]};for(;o.pos>>3){case 1:f.title=o.string();break;case 2:f.description=o.string();break;case 3:f.recipient=o.string();break;case 4:f.amount.push(c.Coin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({title:s(r.title)?String(r.title):"",description:s(r.description)?String(r.description):"",recipient:s(r.recipient)?String(r.recipient):"",amount:Array.isArray(r==null?void 0:r.amount)?r.amount.map(n=>c.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.title!==void 0&&(n.title=r.title),r.description!==void 0&&(n.description=r.description),r.recipient!==void 0&&(n.recipient=r.recipient),r.amount?n.amount=r.amount.map(o=>o?c.Coin.toJSON(o):void 0):n.amount=[],n},fromPartial(r){var n,o,i,f;const d={title:"",description:"",recipient:"",amount:[]};return d.title=(n=r.title)!==null&&n!==void 0?n:"",d.description=(o=r.description)!==null&&o!==void 0?o:"",d.recipient=(i=r.recipient)!==null&&i!==void 0?i:"",d.amount=((f=r.amount)===null||f===void 0?void 0:f.map(h=>c.Coin.fromPartial(h)))||[],d}},e.DelegatorStartingInfo={encode:(r,n=t.Writer.create())=>(r.previous_period!=="0"&&n.uint32(8).uint64(r.previous_period),r.stake!==""&&n.uint32(18).string(r.stake),r.height!=="0"&&n.uint32(24).uint64(r.height),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={previous_period:"0",stake:"",height:"0"};for(;o.pos>>3){case 1:f.previous_period=u(o.uint64());break;case 2:f.stake=o.string();break;case 3:f.height=u(o.uint64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({previous_period:s(r.previous_period)?String(r.previous_period):"0",stake:s(r.stake)?String(r.stake):"",height:s(r.height)?String(r.height):"0"}),toJSON(r){const n={};return r.previous_period!==void 0&&(n.previous_period=r.previous_period),r.stake!==void 0&&(n.stake=r.stake),r.height!==void 0&&(n.height=r.height),n},fromPartial(r){var n,o,i;const f={previous_period:"0",stake:"",height:"0"};return f.previous_period=(n=r.previous_period)!==null&&n!==void 0?n:"0",f.stake=(o=r.stake)!==null&&o!==void 0?o:"",f.height=(i=r.height)!==null&&i!==void 0?i:"0",f}},e.DelegationDelegatorReward={encode(r,n=t.Writer.create()){r.validator_address!==""&&n.uint32(10).string(r.validator_address);for(const o of r.reward)c.DecCoin.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_address:"",reward:[]};for(;o.pos>>3){case 1:f.validator_address=o.string();break;case 2:f.reward.push(c.DecCoin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({validator_address:s(r.validator_address)?String(r.validator_address):"",reward:Array.isArray(r==null?void 0:r.reward)?r.reward.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.validator_address!==void 0&&(n.validator_address=r.validator_address),r.reward?n.reward=r.reward.map(o=>o?c.DecCoin.toJSON(o):void 0):n.reward=[],n},fromPartial(r){var n,o;const i={validator_address:"",reward:[]};return i.validator_address=(n=r.validator_address)!==null&&n!==void 0?n:"",i.reward=((o=r.reward)===null||o===void 0?void 0:o.map(f=>c.DecCoin.fromPartial(f)))||[],i}},e.CommunityPoolSpendProposalWithDeposit={encode:(r,n=t.Writer.create())=>(r.title!==""&&n.uint32(10).string(r.title),r.description!==""&&n.uint32(18).string(r.description),r.recipient!==""&&n.uint32(26).string(r.recipient),r.amount!==""&&n.uint32(34).string(r.amount),r.deposit!==""&&n.uint32(42).string(r.deposit),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={title:"",description:"",recipient:"",amount:"",deposit:""};for(;o.pos>>3){case 1:f.title=o.string();break;case 2:f.description=o.string();break;case 3:f.recipient=o.string();break;case 4:f.amount=o.string();break;case 5:f.deposit=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({title:s(r.title)?String(r.title):"",description:s(r.description)?String(r.description):"",recipient:s(r.recipient)?String(r.recipient):"",amount:s(r.amount)?String(r.amount):"",deposit:s(r.deposit)?String(r.deposit):""}),toJSON(r){const n={};return r.title!==void 0&&(n.title=r.title),r.description!==void 0&&(n.description=r.description),r.recipient!==void 0&&(n.recipient=r.recipient),r.amount!==void 0&&(n.amount=r.amount),r.deposit!==void 0&&(n.deposit=r.deposit),n},fromPartial(r){var n,o,i,f,d;const h={title:"",description:"",recipient:"",amount:"",deposit:""};return h.title=(n=r.title)!==null&&n!==void 0?n:"",h.description=(o=r.description)!==null&&o!==void 0?o:"",h.recipient=(i=r.recipient)!==null&&i!==void 0?i:"",h.amount=(f=r.amount)!==null&&f!==void 0?f:"",h.deposit=(d=r.deposit)!==null&&d!==void 0?d:"",h}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4301:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgFundCommunityPoolResponse=e.MsgFundCommunityPool=e.MsgWithdrawValidatorCommissionResponse=e.MsgWithdrawValidatorCommission=e.MsgWithdrawDelegatorRewardResponse=e.MsgWithdrawDelegatorReward=e.MsgSetWithdrawAddressResponse=e.MsgSetAutoRestakeResponse=e.MsgSetAutoRestake=e.MsgSetWithdrawAddress=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976);function u(s){return s!=null}e.protobufPackage="cosmos.distribution.v1beta1",e.MsgSetWithdrawAddress={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.withdraw_address!==""&&r.uint32(18).string(s.withdraw_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",withdraw_address:""};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.withdraw_address=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:u(s.delegator_address)?String(s.delegator_address):"",withdraw_address:u(s.withdraw_address)?String(s.withdraw_address):""}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.withdraw_address!==void 0&&(r.withdraw_address=s.withdraw_address),r},fromPartial(s){var r,n;const o={delegator_address:"",withdraw_address:""};return o.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",o.withdraw_address=(n=s.withdraw_address)!==null&&n!==void 0?n:"",o}},e.MsgSetAutoRestake={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.validator_address!==""&&r.uint32(18).string(s.validator_address),s.enabled===!0&&r.uint32(24).bool(s.enabled),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",validator_address:"",enabled:!1};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.validator_address=n.string();break;case 3:i.enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:u(s.delegator_address)?String(s.delegator_address):"",validator_address:u(s.validator_address)?String(s.validator_address):"",enabled:!!u(s.enabled)&&!!s.enabled}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.validator_address!==void 0&&(r.validator_address=s.validator_address),s.enabled!==void 0&&(r.enabled=s.enabled),r},fromPartial(s){var r,n,o;const i={delegator_address:"",validator_address:"",enabled:!1};return i.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",i.validator_address=(n=s.validator_address)!==null&&n!==void 0?n:"",i.enabled=(o=s.enabled)!==null&&o!==void 0&&o,i}},e.MsgSetAutoRestakeResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgSetWithdrawAddressResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgWithdrawDelegatorReward={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.validator_address!==""&&r.uint32(18).string(s.validator_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",validator_address:""};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.validator_address=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:u(s.delegator_address)?String(s.delegator_address):"",validator_address:u(s.validator_address)?String(s.validator_address):""}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.validator_address!==void 0&&(r.validator_address=s.validator_address),r},fromPartial(s){var r,n;const o={delegator_address:"",validator_address:""};return o.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",o.validator_address=(n=s.validator_address)!==null&&n!==void 0?n:"",o}},e.MsgWithdrawDelegatorRewardResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgWithdrawValidatorCommission={encode:(s,r=t.Writer.create())=>(s.validator_address!==""&&r.uint32(10).string(s.validator_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={validator_address:""};for(;n.pos>>3==1?i.validator_address=n.string():n.skipType(7&f)}return i},fromJSON:s=>({validator_address:u(s.validator_address)?String(s.validator_address):""}),toJSON(s){const r={};return s.validator_address!==void 0&&(r.validator_address=s.validator_address),r},fromPartial(s){var r;const n={validator_address:""};return n.validator_address=(r=s.validator_address)!==null&&r!==void 0?r:"",n}},e.MsgWithdrawValidatorCommissionResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgFundCommunityPool={encode(s,r=t.Writer.create()){for(const n of s.amount)c.Coin.encode(n,r.uint32(10).fork()).ldelim();return s.depositor!==""&&r.uint32(18).string(s.depositor),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={amount:[],depositor:""};for(;n.pos>>3){case 1:i.amount.push(c.Coin.decode(n,n.uint32()));break;case 2:i.depositor=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({amount:Array.isArray(s==null?void 0:s.amount)?s.amount.map(r=>c.Coin.fromJSON(r)):[],depositor:u(s.depositor)?String(s.depositor):""}),toJSON(s){const r={};return s.amount?r.amount=s.amount.map(n=>n?c.Coin.toJSON(n):void 0):r.amount=[],s.depositor!==void 0&&(r.depositor=s.depositor),r},fromPartial(s){var r,n;const o={amount:[],depositor:""};return o.amount=((r=s.amount)===null||r===void 0?void 0:r.map(i=>c.Coin.fromPartial(i)))||[],o.depositor=(n=s.depositor)!==null&&n!==void 0?n:"",o}},e.MsgFundCommunityPoolResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,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.SetAutoRestake=this.SetAutoRestake.bind(this)}SetWithdrawAddress(s){const r=e.MsgSetWithdrawAddress.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",r).then(n=>e.MsgSetWithdrawAddressResponse.decode(new t.Reader(n)))}WithdrawDelegatorReward(s){const r=e.MsgWithdrawDelegatorReward.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",r).then(n=>e.MsgWithdrawDelegatorRewardResponse.decode(new t.Reader(n)))}WithdrawValidatorCommission(s){const r=e.MsgWithdrawValidatorCommission.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",r).then(n=>e.MsgWithdrawValidatorCommissionResponse.decode(new t.Reader(n)))}FundCommunityPool(s){const r=e.MsgFundCommunityPool.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",r).then(n=>e.MsgFundCommunityPoolResponse.decode(new t.Reader(n)))}SetAutoRestake(s){const r=e.MsgSetAutoRestake.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetAutoRestake",r).then(n=>e.MsgSetAutoRestakeResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},3676:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(f,d,h,_){_===void 0&&(_=h),Object.defineProperty(f,_,{enumerable:!0,get:function(){return d[h]}})}:function(f,d,h,_){_===void 0&&(_=h),f[_]=d[h]}),O=this&&this.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),k=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var h in f)h!=="default"&&Object.prototype.hasOwnProperty.call(f,h)&&w(d,f,h);return O(d,f),d},S=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgSubmitEvidenceResponse=e.MsgSubmitEvidence=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191);function u(){return{hash:new Uint8Array}}e.protobufPackage="cosmos.evidence.v1beta1",e.MsgSubmitEvidence={encode:(f,d=t.Writer.create())=>(f.submitter!==""&&d.uint32(10).string(f.submitter),f.evidence!==void 0&&c.Any.encode(f.evidence,d.uint32(18).fork()).ldelim(),d),decode(f,d){const h=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?h.len:h.pos+d;const b={submitter:"",evidence:void 0};for(;h.pos<_;){const I=h.uint32();switch(I>>>3){case 1:b.submitter=h.string();break;case 2:b.evidence=c.Any.decode(h,h.uint32());break;default:h.skipType(7&I)}}return b},fromJSON:f=>({submitter:i(f.submitter)?String(f.submitter):"",evidence:i(f.evidence)?c.Any.fromJSON(f.evidence):void 0}),toJSON(f){const d={};return f.submitter!==void 0&&(d.submitter=f.submitter),f.evidence!==void 0&&(d.evidence=f.evidence?c.Any.toJSON(f.evidence):void 0),d},fromPartial(f){var d;const h={submitter:"",evidence:void 0};return h.submitter=(d=f.submitter)!==null&&d!==void 0?d:"",h.evidence=f.evidence!==void 0&&f.evidence!==null?c.Any.fromPartial(f.evidence):void 0,h}},e.MsgSubmitEvidenceResponse={encode:(f,d=t.Writer.create())=>(f.hash.length!==0&&d.uint32(34).bytes(f.hash),d),decode(f,d){const h=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?h.len:h.pos+d;const b=u();for(;h.pos<_;){const I=h.uint32();I>>>3==4?b.hash=h.bytes():h.skipType(7&I)}return b},fromJSON:f=>({hash:i(f.hash)?n(f.hash):new Uint8Array}),toJSON(f){const d={};return f.hash!==void 0&&(d.hash=function(h){const _=[];for(const b of h)_.push(String.fromCharCode(b));return o(_.join(""))}(f.hash!==void 0?f.hash:new Uint8Array)),d},fromPartial(f){var d;const h=u();return h.hash=(d=f.hash)!==null&&d!==void 0?d:new Uint8Array,h}},e.MsgClientImpl=class{constructor(f){this.rpc=f,this.SubmitEvidence=this.SubmitEvidence.bind(this)}SubmitEvidence(f){const d=e.MsgSubmitEvidence.encode(f).finish();return this.rpc.request("cosmos.evidence.v1beta1.Msg","SubmitEvidence",d).then(h=>e.MsgSubmitEvidenceResponse.decode(new t.Reader(h)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const r=s.atob||(f=>s.Buffer.from(f,"base64").toString("binary"));function n(f){const d=r(f),h=new Uint8Array(d.length);for(let _=0;_s.Buffer.from(f,"binary").toString("base64"));function i(f){return f!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4932:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(d,h,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return h[_]}})}:function(d,h,_,b){b===void 0&&(b=_),d[b]=h[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(h,d,_);return O(h,d),h},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Grant=e.AllowedMsgAllowance=e.PeriodicAllowance=e.BasicAllowance=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(5090),u=p(6138),s=p(4191),r=p(2976);function n(d){return{seconds:Math.trunc(d.getTime()/1e3).toString(),nanos:d.getTime()%1e3*1e6}}function o(d){let h=1e3*Number(d.seconds);return h+=d.nanos/1e6,new Date(h)}function i(d){return d instanceof Date?n(d):typeof d=="string"?n(new Date(d)):c.Timestamp.fromJSON(d)}function f(d){return d!=null}e.protobufPackage="cosmos.feegrant.v1beta1",e.BasicAllowance={encode(d,h=t.Writer.create()){for(const _ of d.spend_limit)r.Coin.encode(_,h.uint32(10).fork()).ldelim();return d.expiration!==void 0&&c.Timestamp.encode(d.expiration,h.uint32(18).fork()).ldelim(),h},decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={spend_limit:[],expiration:void 0};for(;_.pos>>3){case 1:I.spend_limit.push(r.Coin.decode(_,_.uint32()));break;case 2:I.expiration=c.Timestamp.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({spend_limit:Array.isArray(d==null?void 0:d.spend_limit)?d.spend_limit.map(h=>r.Coin.fromJSON(h)):[],expiration:f(d.expiration)?i(d.expiration):void 0}),toJSON(d){const h={};return d.spend_limit?h.spend_limit=d.spend_limit.map(_=>_?r.Coin.toJSON(_):void 0):h.spend_limit=[],d.expiration!==void 0&&(h.expiration=o(d.expiration).toISOString()),h},fromPartial(d){var h;const _={spend_limit:[],expiration:void 0};return _.spend_limit=((h=d.spend_limit)===null||h===void 0?void 0:h.map(b=>r.Coin.fromPartial(b)))||[],_.expiration=d.expiration!==void 0&&d.expiration!==null?c.Timestamp.fromPartial(d.expiration):void 0,_}},e.PeriodicAllowance={encode(d,h=t.Writer.create()){d.basic!==void 0&&e.BasicAllowance.encode(d.basic,h.uint32(10).fork()).ldelim(),d.period!==void 0&&u.Duration.encode(d.period,h.uint32(18).fork()).ldelim();for(const _ of d.period_spend_limit)r.Coin.encode(_,h.uint32(26).fork()).ldelim();for(const _ of d.period_can_spend)r.Coin.encode(_,h.uint32(34).fork()).ldelim();return d.period_reset!==void 0&&c.Timestamp.encode(d.period_reset,h.uint32(42).fork()).ldelim(),h},decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={basic:void 0,period:void 0,period_spend_limit:[],period_can_spend:[],period_reset:void 0};for(;_.pos>>3){case 1:I.basic=e.BasicAllowance.decode(_,_.uint32());break;case 2:I.period=u.Duration.decode(_,_.uint32());break;case 3:I.period_spend_limit.push(r.Coin.decode(_,_.uint32()));break;case 4:I.period_can_spend.push(r.Coin.decode(_,_.uint32()));break;case 5:I.period_reset=c.Timestamp.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({basic:f(d.basic)?e.BasicAllowance.fromJSON(d.basic):void 0,period:f(d.period)?u.Duration.fromJSON(d.period):void 0,period_spend_limit:Array.isArray(d==null?void 0:d.period_spend_limit)?d.period_spend_limit.map(h=>r.Coin.fromJSON(h)):[],period_can_spend:Array.isArray(d==null?void 0:d.period_can_spend)?d.period_can_spend.map(h=>r.Coin.fromJSON(h)):[],period_reset:f(d.period_reset)?i(d.period_reset):void 0}),toJSON(d){const h={};return d.basic!==void 0&&(h.basic=d.basic?e.BasicAllowance.toJSON(d.basic):void 0),d.period!==void 0&&(h.period=d.period?u.Duration.toJSON(d.period):void 0),d.period_spend_limit?h.period_spend_limit=d.period_spend_limit.map(_=>_?r.Coin.toJSON(_):void 0):h.period_spend_limit=[],d.period_can_spend?h.period_can_spend=d.period_can_spend.map(_=>_?r.Coin.toJSON(_):void 0):h.period_can_spend=[],d.period_reset!==void 0&&(h.period_reset=o(d.period_reset).toISOString()),h},fromPartial(d){var h,_;const b={basic:void 0,period:void 0,period_spend_limit:[],period_can_spend:[],period_reset:void 0};return b.basic=d.basic!==void 0&&d.basic!==null?e.BasicAllowance.fromPartial(d.basic):void 0,b.period=d.period!==void 0&&d.period!==null?u.Duration.fromPartial(d.period):void 0,b.period_spend_limit=((h=d.period_spend_limit)===null||h===void 0?void 0:h.map(I=>r.Coin.fromPartial(I)))||[],b.period_can_spend=((_=d.period_can_spend)===null||_===void 0?void 0:_.map(I=>r.Coin.fromPartial(I)))||[],b.period_reset=d.period_reset!==void 0&&d.period_reset!==null?c.Timestamp.fromPartial(d.period_reset):void 0,b}},e.AllowedMsgAllowance={encode(d,h=t.Writer.create()){d.allowance!==void 0&&s.Any.encode(d.allowance,h.uint32(10).fork()).ldelim();for(const _ of d.allowed_messages)h.uint32(18).string(_);return h},decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={allowance:void 0,allowed_messages:[]};for(;_.pos>>3){case 1:I.allowance=s.Any.decode(_,_.uint32());break;case 2:I.allowed_messages.push(_.string());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({allowance:f(d.allowance)?s.Any.fromJSON(d.allowance):void 0,allowed_messages:Array.isArray(d==null?void 0:d.allowed_messages)?d.allowed_messages.map(h=>String(h)):[]}),toJSON(d){const h={};return d.allowance!==void 0&&(h.allowance=d.allowance?s.Any.toJSON(d.allowance):void 0),d.allowed_messages?h.allowed_messages=d.allowed_messages.map(_=>_):h.allowed_messages=[],h},fromPartial(d){var h;const _={allowance:void 0,allowed_messages:[]};return _.allowance=d.allowance!==void 0&&d.allowance!==null?s.Any.fromPartial(d.allowance):void 0,_.allowed_messages=((h=d.allowed_messages)===null||h===void 0?void 0:h.map(b=>b))||[],_}},e.Grant={encode:(d,h=t.Writer.create())=>(d.granter!==""&&h.uint32(10).string(d.granter),d.grantee!==""&&h.uint32(18).string(d.grantee),d.allowance!==void 0&&s.Any.encode(d.allowance,h.uint32(26).fork()).ldelim(),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={granter:"",grantee:"",allowance:void 0};for(;_.pos>>3){case 1:I.granter=_.string();break;case 2:I.grantee=_.string();break;case 3:I.allowance=s.Any.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({granter:f(d.granter)?String(d.granter):"",grantee:f(d.grantee)?String(d.grantee):"",allowance:f(d.allowance)?s.Any.fromJSON(d.allowance):void 0}),toJSON(d){const h={};return d.granter!==void 0&&(h.granter=d.granter),d.grantee!==void 0&&(h.grantee=d.grantee),d.allowance!==void 0&&(h.allowance=d.allowance?s.Any.toJSON(d.allowance):void 0),h},fromPartial(d){var h,_;const b={granter:"",grantee:"",allowance:void 0};return b.granter=(h=d.granter)!==null&&h!==void 0?h:"",b.grantee=(_=d.grantee)!==null&&_!==void 0?_:"",b.allowance=d.allowance!==void 0&&d.allowance!==null?s.Any.fromPartial(d.allowance):void 0,b}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6513:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgRevokeAllowanceResponse=e.MsgRevokeAllowance=e.MsgGrantAllowanceResponse=e.MsgGrantAllowance=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191);function u(s){return s!=null}e.protobufPackage="cosmos.feegrant.v1beta1",e.MsgGrantAllowance={encode:(s,r=t.Writer.create())=>(s.granter!==""&&r.uint32(10).string(s.granter),s.grantee!==""&&r.uint32(18).string(s.grantee),s.allowance!==void 0&&c.Any.encode(s.allowance,r.uint32(26).fork()).ldelim(),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={granter:"",grantee:"",allowance:void 0};for(;n.pos>>3){case 1:i.granter=n.string();break;case 2:i.grantee=n.string();break;case 3:i.allowance=c.Any.decode(n,n.uint32());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({granter:u(s.granter)?String(s.granter):"",grantee:u(s.grantee)?String(s.grantee):"",allowance:u(s.allowance)?c.Any.fromJSON(s.allowance):void 0}),toJSON(s){const r={};return s.granter!==void 0&&(r.granter=s.granter),s.grantee!==void 0&&(r.grantee=s.grantee),s.allowance!==void 0&&(r.allowance=s.allowance?c.Any.toJSON(s.allowance):void 0),r},fromPartial(s){var r,n;const o={granter:"",grantee:"",allowance:void 0};return o.granter=(r=s.granter)!==null&&r!==void 0?r:"",o.grantee=(n=s.grantee)!==null&&n!==void 0?n:"",o.allowance=s.allowance!==void 0&&s.allowance!==null?c.Any.fromPartial(s.allowance):void 0,o}},e.MsgGrantAllowanceResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgRevokeAllowance={encode:(s,r=t.Writer.create())=>(s.granter!==""&&r.uint32(10).string(s.granter),s.grantee!==""&&r.uint32(18).string(s.grantee),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={granter:"",grantee:""};for(;n.pos>>3){case 1:i.granter=n.string();break;case 2:i.grantee=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({granter:u(s.granter)?String(s.granter):"",grantee:u(s.grantee)?String(s.grantee):""}),toJSON(s){const r={};return s.granter!==void 0&&(r.granter=s.granter),s.grantee!==void 0&&(r.grantee=s.grantee),r},fromPartial(s){var r,n;const o={granter:"",grantee:""};return o.granter=(r=s.granter)!==null&&r!==void 0?r:"",o.grantee=(n=s.grantee)!==null&&n!==void 0?n:"",o}},e.MsgRevokeAllowanceResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(s){const r=e.MsgGrantAllowance.encode(s).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",r).then(n=>e.MsgGrantAllowanceResponse.decode(new t.Reader(n)))}RevokeAllowance(s){const r=e.MsgRevokeAllowance.encode(s).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",r).then(n=>e.MsgRevokeAllowanceResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9074:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(m,E,B,T){T===void 0&&(T=B),Object.defineProperty(m,T,{enumerable:!0,get:function(){return E[B]}})}:function(m,E,B,T){T===void 0&&(T=B),m[T]=E[B]}),O=this&&this.__setModuleDefault||(Object.create?function(m,E){Object.defineProperty(m,"default",{enumerable:!0,value:E})}:function(m,E){m.default=E}),k=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var E={};if(m!=null)for(var B in m)B!=="default"&&Object.prototype.hasOwnProperty.call(m,B)&&w(E,m,B);return O(E,m),E},S=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.TallyParams=e.VotingParams=e.DepositParams=e.Vote=e.TallyResult=e.Proposal=e.Deposit=e.TextProposal=e.WeightedVoteOption=e.proposalStatusToJSON=e.proposalStatusFromJSON=e.ProposalStatus=e.voteOptionToJSON=e.voteOptionFromJSON=e.VoteOption=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191),u=p(5090),s=p(6138),r=p(2976);var n,o;function i(m){switch(m){case 0:case"VOTE_OPTION_UNSPECIFIED":return n.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return n.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return n.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return n.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return n.VOTE_OPTION_NO_WITH_VETO;default:return n.UNRECOGNIZED}}function f(m){switch(m){case n.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case n.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case n.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case n.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case n.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";default:return"UNKNOWN"}}function d(m){switch(m){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return o.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return o.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return o.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return o.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return o.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return o.PROPOSAL_STATUS_FAILED;default:return o.UNRECOGNIZED}}function h(m){switch(m){case o.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case o.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case o.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case o.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case o.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case o.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";default:return"UNKNOWN"}}function _(){return{quorum:new Uint8Array,threshold:new Uint8Array,veto_threshold:new Uint8Array,expedited_threshold:new Uint8Array}}e.protobufPackage="cosmos.gov.v1beta1",function(m){m[m.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",m[m.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",m[m.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",m[m.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",m[m.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",m[m.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=e.VoteOption||(e.VoteOption={})),e.voteOptionFromJSON=i,e.voteOptionToJSON=f,function(m){m[m.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",m[m.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",m[m.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",m[m.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",m[m.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",m[m.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",m[m.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.ProposalStatus||(e.ProposalStatus={})),e.proposalStatusFromJSON=d,e.proposalStatusToJSON=h,e.WeightedVoteOption={encode:(m,E=t.Writer.create())=>(m.option!==0&&E.uint32(8).int32(m.option),m.weight!==""&&E.uint32(18).string(m.weight),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={option:0,weight:""};for(;B.pos>>3){case 1:q.option=B.int32();break;case 2:q.weight=B.string();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({option:v(m.option)?i(m.option):0,weight:v(m.weight)?String(m.weight):""}),toJSON(m){const E={};return m.option!==void 0&&(E.option=f(m.option)),m.weight!==void 0&&(E.weight=m.weight),E},fromPartial(m){var E,B;const T={option:0,weight:""};return T.option=(E=m.option)!==null&&E!==void 0?E:0,T.weight=(B=m.weight)!==null&&B!==void 0?B:"",T}},e.TextProposal={encode:(m,E=t.Writer.create())=>(m.title!==""&&E.uint32(10).string(m.title),m.description!==""&&E.uint32(18).string(m.description),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={title:"",description:""};for(;B.pos>>3){case 1:q.title=B.string();break;case 2:q.description=B.string();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({title:v(m.title)?String(m.title):"",description:v(m.description)?String(m.description):""}),toJSON(m){const E={};return m.title!==void 0&&(E.title=m.title),m.description!==void 0&&(E.description=m.description),E},fromPartial(m){var E,B;const T={title:"",description:""};return T.title=(E=m.title)!==null&&E!==void 0?E:"",T.description=(B=m.description)!==null&&B!==void 0?B:"",T}},e.Deposit={encode(m,E=t.Writer.create()){m.proposal_id!=="0"&&E.uint32(8).uint64(m.proposal_id),m.depositor!==""&&E.uint32(18).string(m.depositor);for(const B of m.amount)r.Coin.encode(B,E.uint32(26).fork()).ldelim();return E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={proposal_id:"0",depositor:"",amount:[]};for(;B.pos>>3){case 1:q.proposal_id=P(B.uint64());break;case 2:q.depositor=B.string();break;case 3:q.amount.push(r.Coin.decode(B,B.uint32()));break;default:B.skipType(7&te)}}return q},fromJSON:m=>({proposal_id:v(m.proposal_id)?String(m.proposal_id):"0",depositor:v(m.depositor)?String(m.depositor):"",amount:Array.isArray(m==null?void 0:m.amount)?m.amount.map(E=>r.Coin.fromJSON(E)):[]}),toJSON(m){const E={};return m.proposal_id!==void 0&&(E.proposal_id=m.proposal_id),m.depositor!==void 0&&(E.depositor=m.depositor),m.amount?E.amount=m.amount.map(B=>B?r.Coin.toJSON(B):void 0):E.amount=[],E},fromPartial(m){var E,B,T;const q={proposal_id:"0",depositor:"",amount:[]};return q.proposal_id=(E=m.proposal_id)!==null&&E!==void 0?E:"0",q.depositor=(B=m.depositor)!==null&&B!==void 0?B:"",q.amount=((T=m.amount)===null||T===void 0?void 0:T.map(te=>r.Coin.fromPartial(te)))||[],q}},e.Proposal={encode(m,E=t.Writer.create()){m.proposal_id!=="0"&&E.uint32(8).uint64(m.proposal_id),m.content!==void 0&&c.Any.encode(m.content,E.uint32(18).fork()).ldelim(),m.status!==0&&E.uint32(24).int32(m.status),m.final_tally_result!==void 0&&e.TallyResult.encode(m.final_tally_result,E.uint32(34).fork()).ldelim(),m.submit_time!==void 0&&u.Timestamp.encode(m.submit_time,E.uint32(42).fork()).ldelim(),m.deposit_end_time!==void 0&&u.Timestamp.encode(m.deposit_end_time,E.uint32(50).fork()).ldelim();for(const B of m.total_deposit)r.Coin.encode(B,E.uint32(58).fork()).ldelim();return m.voting_start_time!==void 0&&u.Timestamp.encode(m.voting_start_time,E.uint32(66).fork()).ldelim(),m.voting_end_time!==void 0&&u.Timestamp.encode(m.voting_end_time,E.uint32(74).fork()).ldelim(),m.is_expedited===!0&&E.uint32(80).bool(m.is_expedited),E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={proposal_id:"0",content:void 0,status:0,final_tally_result:void 0,submit_time:void 0,deposit_end_time:void 0,total_deposit:[],voting_start_time:void 0,voting_end_time:void 0,is_expedited:!1};for(;B.pos>>3){case 1:q.proposal_id=P(B.uint64());break;case 2:q.content=c.Any.decode(B,B.uint32());break;case 3:q.status=B.int32();break;case 4:q.final_tally_result=e.TallyResult.decode(B,B.uint32());break;case 5:q.submit_time=u.Timestamp.decode(B,B.uint32());break;case 6:q.deposit_end_time=u.Timestamp.decode(B,B.uint32());break;case 7:q.total_deposit.push(r.Coin.decode(B,B.uint32()));break;case 8:q.voting_start_time=u.Timestamp.decode(B,B.uint32());break;case 9:q.voting_end_time=u.Timestamp.decode(B,B.uint32());break;case 10:q.is_expedited=B.bool();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({proposal_id:v(m.proposal_id)?String(m.proposal_id):"0",content:v(m.content)?c.Any.fromJSON(m.content):void 0,status:v(m.status)?d(m.status):0,final_tally_result:v(m.final_tally_result)?e.TallyResult.fromJSON(m.final_tally_result):void 0,submit_time:v(m.submit_time)?x(m.submit_time):void 0,deposit_end_time:v(m.deposit_end_time)?x(m.deposit_end_time):void 0,total_deposit:Array.isArray(m==null?void 0:m.total_deposit)?m.total_deposit.map(E=>r.Coin.fromJSON(E)):[],voting_start_time:v(m.voting_start_time)?x(m.voting_start_time):void 0,voting_end_time:v(m.voting_end_time)?x(m.voting_end_time):void 0,is_expedited:!!v(m.is_expedited)&&!!m.is_expedited}),toJSON(m){const E={};return m.proposal_id!==void 0&&(E.proposal_id=m.proposal_id),m.content!==void 0&&(E.content=m.content?c.Any.toJSON(m.content):void 0),m.status!==void 0&&(E.status=h(m.status)),m.final_tally_result!==void 0&&(E.final_tally_result=m.final_tally_result?e.TallyResult.toJSON(m.final_tally_result):void 0),m.submit_time!==void 0&&(E.submit_time=C(m.submit_time).toISOString()),m.deposit_end_time!==void 0&&(E.deposit_end_time=C(m.deposit_end_time).toISOString()),m.total_deposit?E.total_deposit=m.total_deposit.map(B=>B?r.Coin.toJSON(B):void 0):E.total_deposit=[],m.voting_start_time!==void 0&&(E.voting_start_time=C(m.voting_start_time).toISOString()),m.voting_end_time!==void 0&&(E.voting_end_time=C(m.voting_end_time).toISOString()),m.is_expedited!==void 0&&(E.is_expedited=m.is_expedited),E},fromPartial(m){var E,B,T,q;const te={proposal_id:"0",content:void 0,status:0,final_tally_result:void 0,submit_time:void 0,deposit_end_time:void 0,total_deposit:[],voting_start_time:void 0,voting_end_time:void 0,is_expedited:!1};return te.proposal_id=(E=m.proposal_id)!==null&&E!==void 0?E:"0",te.content=m.content!==void 0&&m.content!==null?c.Any.fromPartial(m.content):void 0,te.status=(B=m.status)!==null&&B!==void 0?B:0,te.final_tally_result=m.final_tally_result!==void 0&&m.final_tally_result!==null?e.TallyResult.fromPartial(m.final_tally_result):void 0,te.submit_time=m.submit_time!==void 0&&m.submit_time!==null?u.Timestamp.fromPartial(m.submit_time):void 0,te.deposit_end_time=m.deposit_end_time!==void 0&&m.deposit_end_time!==null?u.Timestamp.fromPartial(m.deposit_end_time):void 0,te.total_deposit=((T=m.total_deposit)===null||T===void 0?void 0:T.map(re=>r.Coin.fromPartial(re)))||[],te.voting_start_time=m.voting_start_time!==void 0&&m.voting_start_time!==null?u.Timestamp.fromPartial(m.voting_start_time):void 0,te.voting_end_time=m.voting_end_time!==void 0&&m.voting_end_time!==null?u.Timestamp.fromPartial(m.voting_end_time):void 0,te.is_expedited=(q=m.is_expedited)!==null&&q!==void 0&&q,te}},e.TallyResult={encode:(m,E=t.Writer.create())=>(m.yes!==""&&E.uint32(10).string(m.yes),m.abstain!==""&&E.uint32(18).string(m.abstain),m.no!==""&&E.uint32(26).string(m.no),m.no_with_veto!==""&&E.uint32(34).string(m.no_with_veto),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={yes:"",abstain:"",no:"",no_with_veto:""};for(;B.pos>>3){case 1:q.yes=B.string();break;case 2:q.abstain=B.string();break;case 3:q.no=B.string();break;case 4:q.no_with_veto=B.string();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({yes:v(m.yes)?String(m.yes):"",abstain:v(m.abstain)?String(m.abstain):"",no:v(m.no)?String(m.no):"",no_with_veto:v(m.no_with_veto)?String(m.no_with_veto):""}),toJSON(m){const E={};return m.yes!==void 0&&(E.yes=m.yes),m.abstain!==void 0&&(E.abstain=m.abstain),m.no!==void 0&&(E.no=m.no),m.no_with_veto!==void 0&&(E.no_with_veto=m.no_with_veto),E},fromPartial(m){var E,B,T,q;const te={yes:"",abstain:"",no:"",no_with_veto:""};return te.yes=(E=m.yes)!==null&&E!==void 0?E:"",te.abstain=(B=m.abstain)!==null&&B!==void 0?B:"",te.no=(T=m.no)!==null&&T!==void 0?T:"",te.no_with_veto=(q=m.no_with_veto)!==null&&q!==void 0?q:"",te}},e.Vote={encode(m,E=t.Writer.create()){m.proposal_id!=="0"&&E.uint32(8).uint64(m.proposal_id),m.voter!==""&&E.uint32(18).string(m.voter),m.option!==0&&E.uint32(24).int32(m.option);for(const B of m.options)e.WeightedVoteOption.encode(B,E.uint32(34).fork()).ldelim();return E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={proposal_id:"0",voter:"",option:0,options:[]};for(;B.pos>>3){case 1:q.proposal_id=P(B.uint64());break;case 2:q.voter=B.string();break;case 3:q.option=B.int32();break;case 4:q.options.push(e.WeightedVoteOption.decode(B,B.uint32()));break;default:B.skipType(7&te)}}return q},fromJSON:m=>({proposal_id:v(m.proposal_id)?String(m.proposal_id):"0",voter:v(m.voter)?String(m.voter):"",option:v(m.option)?i(m.option):0,options:Array.isArray(m==null?void 0:m.options)?m.options.map(E=>e.WeightedVoteOption.fromJSON(E)):[]}),toJSON(m){const E={};return m.proposal_id!==void 0&&(E.proposal_id=m.proposal_id),m.voter!==void 0&&(E.voter=m.voter),m.option!==void 0&&(E.option=f(m.option)),m.options?E.options=m.options.map(B=>B?e.WeightedVoteOption.toJSON(B):void 0):E.options=[],E},fromPartial(m){var E,B,T,q;const te={proposal_id:"0",voter:"",option:0,options:[]};return te.proposal_id=(E=m.proposal_id)!==null&&E!==void 0?E:"0",te.voter=(B=m.voter)!==null&&B!==void 0?B:"",te.option=(T=m.option)!==null&&T!==void 0?T:0,te.options=((q=m.options)===null||q===void 0?void 0:q.map(re=>e.WeightedVoteOption.fromPartial(re)))||[],te}},e.DepositParams={encode(m,E=t.Writer.create()){for(const B of m.min_deposit)r.Coin.encode(B,E.uint32(10).fork()).ldelim();m.max_deposit_period!==void 0&&s.Duration.encode(m.max_deposit_period,E.uint32(18).fork()).ldelim();for(const B of m.min_expedited_deposit)r.Coin.encode(B,E.uint32(26).fork()).ldelim();return E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={min_deposit:[],max_deposit_period:void 0,min_expedited_deposit:[]};for(;B.pos>>3){case 1:q.min_deposit.push(r.Coin.decode(B,B.uint32()));break;case 2:q.max_deposit_period=s.Duration.decode(B,B.uint32());break;case 3:q.min_expedited_deposit.push(r.Coin.decode(B,B.uint32()));break;default:B.skipType(7&te)}}return q},fromJSON:m=>({min_deposit:Array.isArray(m==null?void 0:m.min_deposit)?m.min_deposit.map(E=>r.Coin.fromJSON(E)):[],max_deposit_period:v(m.max_deposit_period)?s.Duration.fromJSON(m.max_deposit_period):void 0,min_expedited_deposit:Array.isArray(m==null?void 0:m.min_expedited_deposit)?m.min_expedited_deposit.map(E=>r.Coin.fromJSON(E)):[]}),toJSON(m){const E={};return m.min_deposit?E.min_deposit=m.min_deposit.map(B=>B?r.Coin.toJSON(B):void 0):E.min_deposit=[],m.max_deposit_period!==void 0&&(E.max_deposit_period=m.max_deposit_period?s.Duration.toJSON(m.max_deposit_period):void 0),m.min_expedited_deposit?E.min_expedited_deposit=m.min_expedited_deposit.map(B=>B?r.Coin.toJSON(B):void 0):E.min_expedited_deposit=[],E},fromPartial(m){var E,B;const T={min_deposit:[],max_deposit_period:void 0,min_expedited_deposit:[]};return T.min_deposit=((E=m.min_deposit)===null||E===void 0?void 0:E.map(q=>r.Coin.fromPartial(q)))||[],T.max_deposit_period=m.max_deposit_period!==void 0&&m.max_deposit_period!==null?s.Duration.fromPartial(m.max_deposit_period):void 0,T.min_expedited_deposit=((B=m.min_expedited_deposit)===null||B===void 0?void 0:B.map(q=>r.Coin.fromPartial(q)))||[],T}},e.VotingParams={encode:(m,E=t.Writer.create())=>(m.voting_period!==void 0&&s.Duration.encode(m.voting_period,E.uint32(10).fork()).ldelim(),m.expedited_voting_period!==void 0&&s.Duration.encode(m.expedited_voting_period,E.uint32(26).fork()).ldelim(),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={voting_period:void 0,expedited_voting_period:void 0};for(;B.pos>>3){case 1:q.voting_period=s.Duration.decode(B,B.uint32());break;case 3:q.expedited_voting_period=s.Duration.decode(B,B.uint32());break;default:B.skipType(7&te)}}return q},fromJSON:m=>({voting_period:v(m.voting_period)?s.Duration.fromJSON(m.voting_period):void 0,expedited_voting_period:v(m.expedited_voting_period)?s.Duration.fromJSON(m.expedited_voting_period):void 0}),toJSON(m){const E={};return m.voting_period!==void 0&&(E.voting_period=m.voting_period?s.Duration.toJSON(m.voting_period):void 0),m.expedited_voting_period!==void 0&&(E.expedited_voting_period=m.expedited_voting_period?s.Duration.toJSON(m.expedited_voting_period):void 0),E},fromPartial(m){const E={voting_period:void 0,expedited_voting_period:void 0};return E.voting_period=m.voting_period!==void 0&&m.voting_period!==null?s.Duration.fromPartial(m.voting_period):void 0,E.expedited_voting_period=m.expedited_voting_period!==void 0&&m.expedited_voting_period!==null?s.Duration.fromPartial(m.expedited_voting_period):void 0,E}},e.TallyParams={encode:(m,E=t.Writer.create())=>(m.quorum.length!==0&&E.uint32(10).bytes(m.quorum),m.threshold.length!==0&&E.uint32(18).bytes(m.threshold),m.veto_threshold.length!==0&&E.uint32(26).bytes(m.veto_threshold),m.expedited_threshold.length!==0&&E.uint32(34).bytes(m.expedited_threshold),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q=_();for(;B.pos>>3){case 1:q.quorum=B.bytes();break;case 2:q.threshold=B.bytes();break;case 3:q.veto_threshold=B.bytes();break;case 4:q.expedited_threshold=B.bytes();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({quorum:v(m.quorum)?l(m.quorum):new Uint8Array,threshold:v(m.threshold)?l(m.threshold):new Uint8Array,veto_threshold:v(m.veto_threshold)?l(m.veto_threshold):new Uint8Array,expedited_threshold:v(m.expedited_threshold)?l(m.expedited_threshold):new Uint8Array}),toJSON(m){const E={};return m.quorum!==void 0&&(E.quorum=M(m.quorum!==void 0?m.quorum:new Uint8Array)),m.threshold!==void 0&&(E.threshold=M(m.threshold!==void 0?m.threshold:new Uint8Array)),m.veto_threshold!==void 0&&(E.veto_threshold=M(m.veto_threshold!==void 0?m.veto_threshold:new Uint8Array)),m.expedited_threshold!==void 0&&(E.expedited_threshold=M(m.expedited_threshold!==void 0?m.expedited_threshold:new Uint8Array)),E},fromPartial(m){var E,B,T,q;const te=_();return te.quorum=(E=m.quorum)!==null&&E!==void 0?E:new Uint8Array,te.threshold=(B=m.threshold)!==null&&B!==void 0?B:new Uint8Array,te.veto_threshold=(T=m.veto_threshold)!==null&&T!==void 0?T:new Uint8Array,te.expedited_threshold=(q=m.expedited_threshold)!==null&&q!==void 0?q:new Uint8Array,te}};var b=(()=>{if(b!==void 0)return b;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const I=b.atob||(m=>b.Buffer.from(m,"base64").toString("binary"));function l(m){const E=I(m),B=new Uint8Array(E.length);for(let T=0;Tb.Buffer.from(m,"binary").toString("base64"));function M(m){const E=[];for(const B of m)E.push(String.fromCharCode(B));return j(E.join(""))}function N(m){return{seconds:Math.trunc(m.getTime()/1e3).toString(),nanos:m.getTime()%1e3*1e6}}function C(m){let E=1e3*Number(m.seconds);return E+=m.nanos/1e6,new Date(E)}function x(m){return m instanceof Date?N(m):typeof m=="string"?N(new Date(m)):u.Timestamp.fromJSON(m)}function P(m){return m.toString()}function v(m){return m!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},88:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgDepositResponse=e.MsgDeposit=e.MsgVoteWeightedResponse=e.MsgVoteWeighted=e.MsgVoteResponse=e.MsgVote=e.MsgSubmitProposalResponse=e.MsgSubmitProposal=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191),u=p(9074),s=p(2976);function r(o){return o.toString()}function n(o){return o!=null}e.protobufPackage="cosmos.gov.v1beta1",e.MsgSubmitProposal={encode(o,i=t.Writer.create()){o.content!==void 0&&c.Any.encode(o.content,i.uint32(10).fork()).ldelim();for(const f of o.initial_deposit)s.Coin.encode(f,i.uint32(18).fork()).ldelim();return o.proposer!==""&&i.uint32(26).string(o.proposer),o.is_expedited===!0&&i.uint32(32).bool(o.is_expedited),i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={content:void 0,initial_deposit:[],proposer:"",is_expedited:!1};for(;f.pos>>3){case 1:h.content=c.Any.decode(f,f.uint32());break;case 2:h.initial_deposit.push(s.Coin.decode(f,f.uint32()));break;case 3:h.proposer=f.string();break;case 4:h.is_expedited=f.bool();break;default:f.skipType(7&_)}}return h},fromJSON:o=>({content:n(o.content)?c.Any.fromJSON(o.content):void 0,initial_deposit:Array.isArray(o==null?void 0:o.initial_deposit)?o.initial_deposit.map(i=>s.Coin.fromJSON(i)):[],proposer:n(o.proposer)?String(o.proposer):"",is_expedited:!!n(o.is_expedited)&&!!o.is_expedited}),toJSON(o){const i={};return o.content!==void 0&&(i.content=o.content?c.Any.toJSON(o.content):void 0),o.initial_deposit?i.initial_deposit=o.initial_deposit.map(f=>f?s.Coin.toJSON(f):void 0):i.initial_deposit=[],o.proposer!==void 0&&(i.proposer=o.proposer),o.is_expedited!==void 0&&(i.is_expedited=o.is_expedited),i},fromPartial(o){var i,f,d;const h={content:void 0,initial_deposit:[],proposer:"",is_expedited:!1};return h.content=o.content!==void 0&&o.content!==null?c.Any.fromPartial(o.content):void 0,h.initial_deposit=((i=o.initial_deposit)===null||i===void 0?void 0:i.map(_=>s.Coin.fromPartial(_)))||[],h.proposer=(f=o.proposer)!==null&&f!==void 0?f:"",h.is_expedited=(d=o.is_expedited)!==null&&d!==void 0&&d,h}},e.MsgSubmitProposalResponse={encode:(o,i=t.Writer.create())=>(o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={proposal_id:"0"};for(;f.pos>>3==1?h.proposal_id=r(f.uint64()):f.skipType(7&_)}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0"}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),i},fromPartial(o){var i;const f={proposal_id:"0"};return f.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",f}},e.MsgVote={encode:(o,i=t.Writer.create())=>(o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.voter!==""&&i.uint32(18).string(o.voter),o.option!==0&&i.uint32(24).int32(o.option),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={proposal_id:"0",voter:"",option:0};for(;f.pos>>3){case 1:h.proposal_id=r(f.uint64());break;case 2:h.voter=f.string();break;case 3:h.option=f.int32();break;default:f.skipType(7&_)}}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",voter:n(o.voter)?String(o.voter):"",option:n(o.option)?(0,u.voteOptionFromJSON)(o.option):0}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.voter!==void 0&&(i.voter=o.voter),o.option!==void 0&&(i.option=(0,u.voteOptionToJSON)(o.option)),i},fromPartial(o){var i,f,d;const h={proposal_id:"0",voter:"",option:0};return h.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",h.voter=(f=o.voter)!==null&&f!==void 0?f:"",h.option=(d=o.option)!==null&&d!==void 0?d:0,h}},e.MsgVoteResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgVoteWeighted={encode(o,i=t.Writer.create()){o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.voter!==""&&i.uint32(18).string(o.voter);for(const f of o.options)u.WeightedVoteOption.encode(f,i.uint32(26).fork()).ldelim();return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={proposal_id:"0",voter:"",options:[]};for(;f.pos>>3){case 1:h.proposal_id=r(f.uint64());break;case 2:h.voter=f.string();break;case 3:h.options.push(u.WeightedVoteOption.decode(f,f.uint32()));break;default:f.skipType(7&_)}}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",voter:n(o.voter)?String(o.voter):"",options:Array.isArray(o==null?void 0:o.options)?o.options.map(i=>u.WeightedVoteOption.fromJSON(i)):[]}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.voter!==void 0&&(i.voter=o.voter),o.options?i.options=o.options.map(f=>f?u.WeightedVoteOption.toJSON(f):void 0):i.options=[],i},fromPartial(o){var i,f,d;const h={proposal_id:"0",voter:"",options:[]};return h.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",h.voter=(f=o.voter)!==null&&f!==void 0?f:"",h.options=((d=o.options)===null||d===void 0?void 0:d.map(_=>u.WeightedVoteOption.fromPartial(_)))||[],h}},e.MsgVoteWeightedResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgDeposit={encode(o,i=t.Writer.create()){o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.depositor!==""&&i.uint32(18).string(o.depositor);for(const f of o.amount)s.Coin.encode(f,i.uint32(26).fork()).ldelim();return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={proposal_id:"0",depositor:"",amount:[]};for(;f.pos>>3){case 1:h.proposal_id=r(f.uint64());break;case 2:h.depositor=f.string();break;case 3:h.amount.push(s.Coin.decode(f,f.uint32()));break;default:f.skipType(7&_)}}return h},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",depositor:n(o.depositor)?String(o.depositor):"",amount:Array.isArray(o==null?void 0:o.amount)?o.amount.map(i=>s.Coin.fromJSON(i)):[]}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.depositor!==void 0&&(i.depositor=o.depositor),o.amount?i.amount=o.amount.map(f=>f?s.Coin.toJSON(f):void 0):i.amount=[],i},fromPartial(o){var i,f,d;const h={proposal_id:"0",depositor:"",amount:[]};return h.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",h.depositor=(f=o.depositor)!==null&&f!==void 0?f:"",h.amount=((d=o.amount)===null||d===void 0?void 0:d.map(_=>s.Coin.fromPartial(_)))||[],h}},e.MsgDepositResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgClientImpl=class{constructor(o){this.rpc=o,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(o){const i=e.MsgSubmitProposal.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",i).then(f=>e.MsgSubmitProposalResponse.decode(new t.Reader(f)))}Vote(o){const i=e.MsgVote.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",i).then(f=>e.MsgVoteResponse.decode(new t.Reader(f)))}VoteWeighted(o){const i=e.MsgVoteWeighted.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",i).then(f=>e.MsgVoteWeightedResponse.decode(new t.Reader(f)))}Deposit(o){const i=e.MsgDeposit.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",i).then(f=>e.MsgDepositResponse.decode(new t.Reader(f)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9913:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParamChange=e.ParameterChangeProposal=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(u){return u!=null}e.protobufPackage="cosmos.params.v1beta1",e.ParameterChangeProposal={encode(u,s=t.Writer.create()){u.title!==""&&s.uint32(10).string(u.title),u.description!==""&&s.uint32(18).string(u.description);for(const r of u.changes)e.ParamChange.encode(r,s.uint32(26).fork()).ldelim();return s},decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={title:"",description:"",changes:[]};for(;r.pos>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.changes.push(e.ParamChange.decode(r,r.uint32()));break;default:r.skipType(7&i)}}return o},fromJSON:u=>({title:c(u.title)?String(u.title):"",description:c(u.description)?String(u.description):"",changes:Array.isArray(u==null?void 0:u.changes)?u.changes.map(s=>e.ParamChange.fromJSON(s)):[]}),toJSON(u){const s={};return u.title!==void 0&&(s.title=u.title),u.description!==void 0&&(s.description=u.description),u.changes?s.changes=u.changes.map(r=>r?e.ParamChange.toJSON(r):void 0):s.changes=[],s},fromPartial(u){var s,r,n;const o={title:"",description:"",changes:[]};return o.title=(s=u.title)!==null&&s!==void 0?s:"",o.description=(r=u.description)!==null&&r!==void 0?r:"",o.changes=((n=u.changes)===null||n===void 0?void 0:n.map(i=>e.ParamChange.fromPartial(i)))||[],o}},e.ParamChange={encode:(u,s=t.Writer.create())=>(u.subspace!==""&&s.uint32(10).string(u.subspace),u.key!==""&&s.uint32(18).string(u.key),u.value!==""&&s.uint32(26).string(u.value),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={subspace:"",key:"",value:""};for(;r.pos>>3){case 1:o.subspace=r.string();break;case 2:o.key=r.string();break;case 3:o.value=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({subspace:c(u.subspace)?String(u.subspace):"",key:c(u.key)?String(u.key):"",value:c(u.value)?String(u.value):""}),toJSON(u){const s={};return u.subspace!==void 0&&(s.subspace=u.subspace),u.key!==void 0&&(s.key=u.key),u.value!==void 0&&(s.value=u.value),s},fromPartial(u){var s,r,n;const o={subspace:"",key:"",value:""};return o.subspace=(s=u.subspace)!==null&&s!==void 0?s:"",o.key=(r=u.key)!==null&&r!==void 0?r:"",o.value=(n=u.value)!==null&&n!==void 0?n:"",o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5925:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgUnjailResponse=e.MsgUnjail=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));e.protobufPackage="cosmos.slashing.v1beta1",e.MsgUnjail={encode:(c,u=t.Writer.create())=>(c.validator_addr!==""&&u.uint32(10).string(c.validator_addr),u),decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;const n={validator_addr:""};for(;s.pos>>3==1?n.validator_addr=s.string():s.skipType(7&o)}return n},fromJSON(c){return{validator_addr:(u=c.validator_addr,u!=null?String(c.validator_addr):"")};var u},toJSON(c){const u={};return c.validator_addr!==void 0&&(u.validator_addr=c.validator_addr),u},fromPartial(c){var u;const s={validator_addr:""};return s.validator_addr=(u=c.validator_addr)!==null&&u!==void 0?u:"",s}},e.MsgUnjailResponse={encode:(c,u=t.Writer.create())=>u,decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;for(;s.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgClientImpl=class{constructor(c){this.rpc=c,this.Unjail=this.Unjail.bind(this)}Unjail(c){const u=e.MsgUnjail.encode(c).finish();return this.rpc.request("cosmos.slashing.v1beta1.Msg","Unjail",u).then(s=>e.MsgUnjailResponse.decode(new t.Reader(s)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},837:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.StakeAuthorization_Validators=e.StakeAuthorization=e.authorizationTypeToJSON=e.authorizationTypeFromJSON=e.AuthorizationType=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976);var u;function s(o){switch(o){case 0:case"AUTHORIZATION_TYPE_UNSPECIFIED":return u.AUTHORIZATION_TYPE_UNSPECIFIED;case 1:case"AUTHORIZATION_TYPE_DELEGATE":return u.AUTHORIZATION_TYPE_DELEGATE;case 2:case"AUTHORIZATION_TYPE_UNDELEGATE":return u.AUTHORIZATION_TYPE_UNDELEGATE;case 3:case"AUTHORIZATION_TYPE_REDELEGATE":return u.AUTHORIZATION_TYPE_REDELEGATE;default:return u.UNRECOGNIZED}}function r(o){switch(o){case u.AUTHORIZATION_TYPE_UNSPECIFIED:return"AUTHORIZATION_TYPE_UNSPECIFIED";case u.AUTHORIZATION_TYPE_DELEGATE:return"AUTHORIZATION_TYPE_DELEGATE";case u.AUTHORIZATION_TYPE_UNDELEGATE:return"AUTHORIZATION_TYPE_UNDELEGATE";case u.AUTHORIZATION_TYPE_REDELEGATE:return"AUTHORIZATION_TYPE_REDELEGATE";default:return"UNKNOWN"}}function n(o){return o!=null}e.protobufPackage="cosmos.staking.v1beta1",function(o){o[o.AUTHORIZATION_TYPE_UNSPECIFIED=0]="AUTHORIZATION_TYPE_UNSPECIFIED",o[o.AUTHORIZATION_TYPE_DELEGATE=1]="AUTHORIZATION_TYPE_DELEGATE",o[o.AUTHORIZATION_TYPE_UNDELEGATE=2]="AUTHORIZATION_TYPE_UNDELEGATE",o[o.AUTHORIZATION_TYPE_REDELEGATE=3]="AUTHORIZATION_TYPE_REDELEGATE",o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.AuthorizationType||(e.AuthorizationType={})),e.authorizationTypeFromJSON=s,e.authorizationTypeToJSON=r,e.StakeAuthorization={encode:(o,i=t.Writer.create())=>(o.max_tokens!==void 0&&c.Coin.encode(o.max_tokens,i.uint32(10).fork()).ldelim(),o.allow_list!==void 0&&e.StakeAuthorization_Validators.encode(o.allow_list,i.uint32(18).fork()).ldelim(),o.deny_list!==void 0&&e.StakeAuthorization_Validators.encode(o.deny_list,i.uint32(26).fork()).ldelim(),o.authorization_type!==0&&i.uint32(32).int32(o.authorization_type),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={max_tokens:void 0,allow_list:void 0,deny_list:void 0,authorization_type:0};for(;f.pos>>3){case 1:h.max_tokens=c.Coin.decode(f,f.uint32());break;case 2:h.allow_list=e.StakeAuthorization_Validators.decode(f,f.uint32());break;case 3:h.deny_list=e.StakeAuthorization_Validators.decode(f,f.uint32());break;case 4:h.authorization_type=f.int32();break;default:f.skipType(7&_)}}return h},fromJSON:o=>({max_tokens:n(o.max_tokens)?c.Coin.fromJSON(o.max_tokens):void 0,allow_list:n(o.allow_list)?e.StakeAuthorization_Validators.fromJSON(o.allow_list):void 0,deny_list:n(o.deny_list)?e.StakeAuthorization_Validators.fromJSON(o.deny_list):void 0,authorization_type:n(o.authorization_type)?s(o.authorization_type):0}),toJSON(o){const i={};return o.max_tokens!==void 0&&(i.max_tokens=o.max_tokens?c.Coin.toJSON(o.max_tokens):void 0),o.allow_list!==void 0&&(i.allow_list=o.allow_list?e.StakeAuthorization_Validators.toJSON(o.allow_list):void 0),o.deny_list!==void 0&&(i.deny_list=o.deny_list?e.StakeAuthorization_Validators.toJSON(o.deny_list):void 0),o.authorization_type!==void 0&&(i.authorization_type=r(o.authorization_type)),i},fromPartial(o){var i;const f={max_tokens:void 0,allow_list:void 0,deny_list:void 0,authorization_type:0};return f.max_tokens=o.max_tokens!==void 0&&o.max_tokens!==null?c.Coin.fromPartial(o.max_tokens):void 0,f.allow_list=o.allow_list!==void 0&&o.allow_list!==null?e.StakeAuthorization_Validators.fromPartial(o.allow_list):void 0,f.deny_list=o.deny_list!==void 0&&o.deny_list!==null?e.StakeAuthorization_Validators.fromPartial(o.deny_list):void 0,f.authorization_type=(i=o.authorization_type)!==null&&i!==void 0?i:0,f}},e.StakeAuthorization_Validators={encode(o,i=t.Writer.create()){for(const f of o.address)i.uint32(10).string(f);return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={address:[]};for(;f.pos>>3==1?h.address.push(f.string()):f.skipType(7&_)}return h},fromJSON:o=>({address:Array.isArray(o==null?void 0:o.address)?o.address.map(i=>String(i)):[]}),toJSON(o){const i={};return o.address?i.address=o.address.map(f=>f):i.address=[],i},fromPartial(o){var i;const f={address:[]};return f.address=((i=o.address)===null||i===void 0?void 0:i.map(d=>d))||[],f}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2572:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(l,j,M,N){N===void 0&&(N=M),Object.defineProperty(l,N,{enumerable:!0,get:function(){return j[M]}})}:function(l,j,M,N){N===void 0&&(N=M),l[N]=j[M]}),O=this&&this.__setModuleDefault||(Object.create?function(l,j){Object.defineProperty(l,"default",{enumerable:!0,value:j})}:function(l,j){l.default=j}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var j={};if(l!=null)for(var M in l)M!=="default"&&Object.prototype.hasOwnProperty.call(l,M)&&w(j,l,M);return O(j,l),j},S=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.Pool=e.RedelegationResponse=e.RedelegationEntryResponse=e.DelegationResponse=e.Params=e.Redelegation=e.RedelegationEntry=e.UnbondingDelegationEntry=e.UnbondingDelegation=e.Delegation=e.DVVTriplets=e.DVVTriplet=e.DVPairs=e.DVPair=e.ValAddresses=e.Validator=e.Description=e.Commission=e.CommissionRates=e.HistoricalInfo=e.bondStatusToJSON=e.bondStatusFromJSON=e.BondStatus=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(9928),u=p(5090),s=p(4191),r=p(6138),n=p(2976);var o;function i(l){switch(l){case 0:case"BOND_STATUS_UNSPECIFIED":return o.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return o.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return o.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return o.BOND_STATUS_BONDED;default:return o.UNRECOGNIZED}}function f(l){switch(l){case o.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case o.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case o.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case o.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";default:return"UNKNOWN"}}function d(l){return{seconds:Math.trunc(l.getTime()/1e3).toString(),nanos:l.getTime()%1e3*1e6}}function h(l){let j=1e3*Number(l.seconds);return j+=l.nanos/1e6,new Date(j)}function _(l){return l instanceof Date?d(l):typeof l=="string"?d(new Date(l)):u.Timestamp.fromJSON(l)}function b(l){return l.toString()}function I(l){return l!=null}e.protobufPackage="cosmos.staking.v1beta1",function(l){l[l.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",l[l.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",l[l.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",l[l.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.BondStatus||(e.BondStatus={})),e.bondStatusFromJSON=i,e.bondStatusToJSON=f,e.HistoricalInfo={encode(l,j=t.Writer.create()){l.header!==void 0&&c.Header.encode(l.header,j.uint32(10).fork()).ldelim();for(const M of l.valset)e.Validator.encode(M,j.uint32(18).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={header:void 0,valset:[]};for(;M.pos>>3){case 1:C.header=c.Header.decode(M,M.uint32());break;case 2:C.valset.push(e.Validator.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({header:I(l.header)?c.Header.fromJSON(l.header):void 0,valset:Array.isArray(l==null?void 0:l.valset)?l.valset.map(j=>e.Validator.fromJSON(j)):[]}),toJSON(l){const j={};return l.header!==void 0&&(j.header=l.header?c.Header.toJSON(l.header):void 0),l.valset?j.valset=l.valset.map(M=>M?e.Validator.toJSON(M):void 0):j.valset=[],j},fromPartial(l){var j;const M={header:void 0,valset:[]};return M.header=l.header!==void 0&&l.header!==null?c.Header.fromPartial(l.header):void 0,M.valset=((j=l.valset)===null||j===void 0?void 0:j.map(N=>e.Validator.fromPartial(N)))||[],M}},e.CommissionRates={encode:(l,j=t.Writer.create())=>(l.rate!==""&&j.uint32(10).string(l.rate),l.max_rate!==""&&j.uint32(18).string(l.max_rate),l.max_change_rate!==""&&j.uint32(26).string(l.max_change_rate),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={rate:"",max_rate:"",max_change_rate:""};for(;M.pos>>3){case 1:C.rate=M.string();break;case 2:C.max_rate=M.string();break;case 3:C.max_change_rate=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({rate:I(l.rate)?String(l.rate):"",max_rate:I(l.max_rate)?String(l.max_rate):"",max_change_rate:I(l.max_change_rate)?String(l.max_change_rate):""}),toJSON(l){const j={};return l.rate!==void 0&&(j.rate=l.rate),l.max_rate!==void 0&&(j.max_rate=l.max_rate),l.max_change_rate!==void 0&&(j.max_change_rate=l.max_change_rate),j},fromPartial(l){var j,M,N;const C={rate:"",max_rate:"",max_change_rate:""};return C.rate=(j=l.rate)!==null&&j!==void 0?j:"",C.max_rate=(M=l.max_rate)!==null&&M!==void 0?M:"",C.max_change_rate=(N=l.max_change_rate)!==null&&N!==void 0?N:"",C}},e.Commission={encode:(l,j=t.Writer.create())=>(l.commission_rates!==void 0&&e.CommissionRates.encode(l.commission_rates,j.uint32(10).fork()).ldelim(),l.update_time!==void 0&&u.Timestamp.encode(l.update_time,j.uint32(18).fork()).ldelim(),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={commission_rates:void 0,update_time:void 0};for(;M.pos>>3){case 1:C.commission_rates=e.CommissionRates.decode(M,M.uint32());break;case 2:C.update_time=u.Timestamp.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({commission_rates:I(l.commission_rates)?e.CommissionRates.fromJSON(l.commission_rates):void 0,update_time:I(l.update_time)?_(l.update_time):void 0}),toJSON(l){const j={};return l.commission_rates!==void 0&&(j.commission_rates=l.commission_rates?e.CommissionRates.toJSON(l.commission_rates):void 0),l.update_time!==void 0&&(j.update_time=h(l.update_time).toISOString()),j},fromPartial(l){const j={commission_rates:void 0,update_time:void 0};return j.commission_rates=l.commission_rates!==void 0&&l.commission_rates!==null?e.CommissionRates.fromPartial(l.commission_rates):void 0,j.update_time=l.update_time!==void 0&&l.update_time!==null?u.Timestamp.fromPartial(l.update_time):void 0,j}},e.Description={encode:(l,j=t.Writer.create())=>(l.moniker!==""&&j.uint32(10).string(l.moniker),l.identity!==""&&j.uint32(18).string(l.identity),l.website!==""&&j.uint32(26).string(l.website),l.security_contact!==""&&j.uint32(34).string(l.security_contact),l.details!==""&&j.uint32(42).string(l.details),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={moniker:"",identity:"",website:"",security_contact:"",details:""};for(;M.pos>>3){case 1:C.moniker=M.string();break;case 2:C.identity=M.string();break;case 3:C.website=M.string();break;case 4:C.security_contact=M.string();break;case 5:C.details=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({moniker:I(l.moniker)?String(l.moniker):"",identity:I(l.identity)?String(l.identity):"",website:I(l.website)?String(l.website):"",security_contact:I(l.security_contact)?String(l.security_contact):"",details:I(l.details)?String(l.details):""}),toJSON(l){const j={};return l.moniker!==void 0&&(j.moniker=l.moniker),l.identity!==void 0&&(j.identity=l.identity),l.website!==void 0&&(j.website=l.website),l.security_contact!==void 0&&(j.security_contact=l.security_contact),l.details!==void 0&&(j.details=l.details),j},fromPartial(l){var j,M,N,C,x;const P={moniker:"",identity:"",website:"",security_contact:"",details:""};return P.moniker=(j=l.moniker)!==null&&j!==void 0?j:"",P.identity=(M=l.identity)!==null&&M!==void 0?M:"",P.website=(N=l.website)!==null&&N!==void 0?N:"",P.security_contact=(C=l.security_contact)!==null&&C!==void 0?C:"",P.details=(x=l.details)!==null&&x!==void 0?x:"",P}},e.Validator={encode:(l,j=t.Writer.create())=>(l.operator_address!==""&&j.uint32(10).string(l.operator_address),l.consensus_pubkey!==void 0&&s.Any.encode(l.consensus_pubkey,j.uint32(18).fork()).ldelim(),l.jailed===!0&&j.uint32(24).bool(l.jailed),l.status!==0&&j.uint32(32).int32(l.status),l.tokens!==""&&j.uint32(42).string(l.tokens),l.delegator_shares!==""&&j.uint32(50).string(l.delegator_shares),l.description!==void 0&&e.Description.encode(l.description,j.uint32(58).fork()).ldelim(),l.unbonding_height!=="0"&&j.uint32(64).int64(l.unbonding_height),l.unbonding_time!==void 0&&u.Timestamp.encode(l.unbonding_time,j.uint32(74).fork()).ldelim(),l.commission!==void 0&&e.Commission.encode(l.commission,j.uint32(82).fork()).ldelim(),l.min_self_delegation!==""&&j.uint32(90).string(l.min_self_delegation),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={operator_address:"",consensus_pubkey:void 0,jailed:!1,status:0,tokens:"",delegator_shares:"",description:void 0,unbonding_height:"0",unbonding_time:void 0,commission:void 0,min_self_delegation:""};for(;M.pos>>3){case 1:C.operator_address=M.string();break;case 2:C.consensus_pubkey=s.Any.decode(M,M.uint32());break;case 3:C.jailed=M.bool();break;case 4:C.status=M.int32();break;case 5:C.tokens=M.string();break;case 6:C.delegator_shares=M.string();break;case 7:C.description=e.Description.decode(M,M.uint32());break;case 8:C.unbonding_height=b(M.int64());break;case 9:C.unbonding_time=u.Timestamp.decode(M,M.uint32());break;case 10:C.commission=e.Commission.decode(M,M.uint32());break;case 11:C.min_self_delegation=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({operator_address:I(l.operator_address)?String(l.operator_address):"",consensus_pubkey:I(l.consensus_pubkey)?s.Any.fromJSON(l.consensus_pubkey):void 0,jailed:!!I(l.jailed)&&!!l.jailed,status:I(l.status)?i(l.status):0,tokens:I(l.tokens)?String(l.tokens):"",delegator_shares:I(l.delegator_shares)?String(l.delegator_shares):"",description:I(l.description)?e.Description.fromJSON(l.description):void 0,unbonding_height:I(l.unbonding_height)?String(l.unbonding_height):"0",unbonding_time:I(l.unbonding_time)?_(l.unbonding_time):void 0,commission:I(l.commission)?e.Commission.fromJSON(l.commission):void 0,min_self_delegation:I(l.min_self_delegation)?String(l.min_self_delegation):""}),toJSON(l){const j={};return l.operator_address!==void 0&&(j.operator_address=l.operator_address),l.consensus_pubkey!==void 0&&(j.consensus_pubkey=l.consensus_pubkey?s.Any.toJSON(l.consensus_pubkey):void 0),l.jailed!==void 0&&(j.jailed=l.jailed),l.status!==void 0&&(j.status=f(l.status)),l.tokens!==void 0&&(j.tokens=l.tokens),l.delegator_shares!==void 0&&(j.delegator_shares=l.delegator_shares),l.description!==void 0&&(j.description=l.description?e.Description.toJSON(l.description):void 0),l.unbonding_height!==void 0&&(j.unbonding_height=l.unbonding_height),l.unbonding_time!==void 0&&(j.unbonding_time=h(l.unbonding_time).toISOString()),l.commission!==void 0&&(j.commission=l.commission?e.Commission.toJSON(l.commission):void 0),l.min_self_delegation!==void 0&&(j.min_self_delegation=l.min_self_delegation),j},fromPartial(l){var j,M,N,C,x,P,v;const m={operator_address:"",consensus_pubkey:void 0,jailed:!1,status:0,tokens:"",delegator_shares:"",description:void 0,unbonding_height:"0",unbonding_time:void 0,commission:void 0,min_self_delegation:""};return m.operator_address=(j=l.operator_address)!==null&&j!==void 0?j:"",m.consensus_pubkey=l.consensus_pubkey!==void 0&&l.consensus_pubkey!==null?s.Any.fromPartial(l.consensus_pubkey):void 0,m.jailed=(M=l.jailed)!==null&&M!==void 0&&M,m.status=(N=l.status)!==null&&N!==void 0?N:0,m.tokens=(C=l.tokens)!==null&&C!==void 0?C:"",m.delegator_shares=(x=l.delegator_shares)!==null&&x!==void 0?x:"",m.description=l.description!==void 0&&l.description!==null?e.Description.fromPartial(l.description):void 0,m.unbonding_height=(P=l.unbonding_height)!==null&&P!==void 0?P:"0",m.unbonding_time=l.unbonding_time!==void 0&&l.unbonding_time!==null?u.Timestamp.fromPartial(l.unbonding_time):void 0,m.commission=l.commission!==void 0&&l.commission!==null?e.Commission.fromPartial(l.commission):void 0,m.min_self_delegation=(v=l.min_self_delegation)!==null&&v!==void 0?v:"",m}},e.ValAddresses={encode(l,j=t.Writer.create()){for(const M of l.addresses)j.uint32(10).string(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={addresses:[]};for(;M.pos>>3==1?C.addresses.push(M.string()):M.skipType(7&x)}return C},fromJSON:l=>({addresses:Array.isArray(l==null?void 0:l.addresses)?l.addresses.map(j=>String(j)):[]}),toJSON(l){const j={};return l.addresses?j.addresses=l.addresses.map(M=>M):j.addresses=[],j},fromPartial(l){var j;const M={addresses:[]};return M.addresses=((j=l.addresses)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.DVPair={encode:(l,j=t.Writer.create())=>(l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_address!==""&&j.uint32(18).string(l.validator_address),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_address:""};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_address=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_address:I(l.validator_address)?String(l.validator_address):""}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_address!==void 0&&(j.validator_address=l.validator_address),j},fromPartial(l){var j,M;const N={delegator_address:"",validator_address:""};return N.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",N.validator_address=(M=l.validator_address)!==null&&M!==void 0?M:"",N}},e.DVPairs={encode(l,j=t.Writer.create()){for(const M of l.pairs)e.DVPair.encode(M,j.uint32(10).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={pairs:[]};for(;M.pos>>3==1?C.pairs.push(e.DVPair.decode(M,M.uint32())):M.skipType(7&x)}return C},fromJSON:l=>({pairs:Array.isArray(l==null?void 0:l.pairs)?l.pairs.map(j=>e.DVPair.fromJSON(j)):[]}),toJSON(l){const j={};return l.pairs?j.pairs=l.pairs.map(M=>M?e.DVPair.toJSON(M):void 0):j.pairs=[],j},fromPartial(l){var j;const M={pairs:[]};return M.pairs=((j=l.pairs)===null||j===void 0?void 0:j.map(N=>e.DVPair.fromPartial(N)))||[],M}},e.DVVTriplet={encode:(l,j=t.Writer.create())=>(l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_src_address!==""&&j.uint32(18).string(l.validator_src_address),l.validator_dst_address!==""&&j.uint32(26).string(l.validator_dst_address),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_src_address:"",validator_dst_address:""};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_src_address=M.string();break;case 3:C.validator_dst_address=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_src_address:I(l.validator_src_address)?String(l.validator_src_address):"",validator_dst_address:I(l.validator_dst_address)?String(l.validator_dst_address):""}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_src_address!==void 0&&(j.validator_src_address=l.validator_src_address),l.validator_dst_address!==void 0&&(j.validator_dst_address=l.validator_dst_address),j},fromPartial(l){var j,M,N;const C={delegator_address:"",validator_src_address:"",validator_dst_address:""};return C.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",C.validator_src_address=(M=l.validator_src_address)!==null&&M!==void 0?M:"",C.validator_dst_address=(N=l.validator_dst_address)!==null&&N!==void 0?N:"",C}},e.DVVTriplets={encode(l,j=t.Writer.create()){for(const M of l.triplets)e.DVVTriplet.encode(M,j.uint32(10).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={triplets:[]};for(;M.pos>>3==1?C.triplets.push(e.DVVTriplet.decode(M,M.uint32())):M.skipType(7&x)}return C},fromJSON:l=>({triplets:Array.isArray(l==null?void 0:l.triplets)?l.triplets.map(j=>e.DVVTriplet.fromJSON(j)):[]}),toJSON(l){const j={};return l.triplets?j.triplets=l.triplets.map(M=>M?e.DVVTriplet.toJSON(M):void 0):j.triplets=[],j},fromPartial(l){var j;const M={triplets:[]};return M.triplets=((j=l.triplets)===null||j===void 0?void 0:j.map(N=>e.DVVTriplet.fromPartial(N)))||[],M}},e.Delegation={encode:(l,j=t.Writer.create())=>(l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_address!==""&&j.uint32(18).string(l.validator_address),l.shares!==""&&j.uint32(26).string(l.shares),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_address:"",shares:""};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_address=M.string();break;case 3:C.shares=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_address:I(l.validator_address)?String(l.validator_address):"",shares:I(l.shares)?String(l.shares):""}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_address!==void 0&&(j.validator_address=l.validator_address),l.shares!==void 0&&(j.shares=l.shares),j},fromPartial(l){var j,M,N;const C={delegator_address:"",validator_address:"",shares:""};return C.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",C.validator_address=(M=l.validator_address)!==null&&M!==void 0?M:"",C.shares=(N=l.shares)!==null&&N!==void 0?N:"",C}},e.UnbondingDelegation={encode(l,j=t.Writer.create()){l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_address!==""&&j.uint32(18).string(l.validator_address);for(const M of l.entries)e.UnbondingDelegationEntry.encode(M,j.uint32(26).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_address:"",entries:[]};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_address=M.string();break;case 3:C.entries.push(e.UnbondingDelegationEntry.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_address:I(l.validator_address)?String(l.validator_address):"",entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(j=>e.UnbondingDelegationEntry.fromJSON(j)):[]}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_address!==void 0&&(j.validator_address=l.validator_address),l.entries?j.entries=l.entries.map(M=>M?e.UnbondingDelegationEntry.toJSON(M):void 0):j.entries=[],j},fromPartial(l){var j,M,N;const C={delegator_address:"",validator_address:"",entries:[]};return C.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",C.validator_address=(M=l.validator_address)!==null&&M!==void 0?M:"",C.entries=((N=l.entries)===null||N===void 0?void 0:N.map(x=>e.UnbondingDelegationEntry.fromPartial(x)))||[],C}},e.UnbondingDelegationEntry={encode:(l,j=t.Writer.create())=>(l.creation_height!=="0"&&j.uint32(8).int64(l.creation_height),l.completion_time!==void 0&&u.Timestamp.encode(l.completion_time,j.uint32(18).fork()).ldelim(),l.initial_balance!==""&&j.uint32(26).string(l.initial_balance),l.balance!==""&&j.uint32(34).string(l.balance),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={creation_height:"0",completion_time:void 0,initial_balance:"",balance:""};for(;M.pos>>3){case 1:C.creation_height=b(M.int64());break;case 2:C.completion_time=u.Timestamp.decode(M,M.uint32());break;case 3:C.initial_balance=M.string();break;case 4:C.balance=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({creation_height:I(l.creation_height)?String(l.creation_height):"0",completion_time:I(l.completion_time)?_(l.completion_time):void 0,initial_balance:I(l.initial_balance)?String(l.initial_balance):"",balance:I(l.balance)?String(l.balance):""}),toJSON(l){const j={};return l.creation_height!==void 0&&(j.creation_height=l.creation_height),l.completion_time!==void 0&&(j.completion_time=h(l.completion_time).toISOString()),l.initial_balance!==void 0&&(j.initial_balance=l.initial_balance),l.balance!==void 0&&(j.balance=l.balance),j},fromPartial(l){var j,M,N;const C={creation_height:"0",completion_time:void 0,initial_balance:"",balance:""};return C.creation_height=(j=l.creation_height)!==null&&j!==void 0?j:"0",C.completion_time=l.completion_time!==void 0&&l.completion_time!==null?u.Timestamp.fromPartial(l.completion_time):void 0,C.initial_balance=(M=l.initial_balance)!==null&&M!==void 0?M:"",C.balance=(N=l.balance)!==null&&N!==void 0?N:"",C}},e.RedelegationEntry={encode:(l,j=t.Writer.create())=>(l.creation_height!=="0"&&j.uint32(8).int64(l.creation_height),l.completion_time!==void 0&&u.Timestamp.encode(l.completion_time,j.uint32(18).fork()).ldelim(),l.initial_balance!==""&&j.uint32(26).string(l.initial_balance),l.shares_dst!==""&&j.uint32(34).string(l.shares_dst),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={creation_height:"0",completion_time:void 0,initial_balance:"",shares_dst:""};for(;M.pos>>3){case 1:C.creation_height=b(M.int64());break;case 2:C.completion_time=u.Timestamp.decode(M,M.uint32());break;case 3:C.initial_balance=M.string();break;case 4:C.shares_dst=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({creation_height:I(l.creation_height)?String(l.creation_height):"0",completion_time:I(l.completion_time)?_(l.completion_time):void 0,initial_balance:I(l.initial_balance)?String(l.initial_balance):"",shares_dst:I(l.shares_dst)?String(l.shares_dst):""}),toJSON(l){const j={};return l.creation_height!==void 0&&(j.creation_height=l.creation_height),l.completion_time!==void 0&&(j.completion_time=h(l.completion_time).toISOString()),l.initial_balance!==void 0&&(j.initial_balance=l.initial_balance),l.shares_dst!==void 0&&(j.shares_dst=l.shares_dst),j},fromPartial(l){var j,M,N;const C={creation_height:"0",completion_time:void 0,initial_balance:"",shares_dst:""};return C.creation_height=(j=l.creation_height)!==null&&j!==void 0?j:"0",C.completion_time=l.completion_time!==void 0&&l.completion_time!==null?u.Timestamp.fromPartial(l.completion_time):void 0,C.initial_balance=(M=l.initial_balance)!==null&&M!==void 0?M:"",C.shares_dst=(N=l.shares_dst)!==null&&N!==void 0?N:"",C}},e.Redelegation={encode(l,j=t.Writer.create()){l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_src_address!==""&&j.uint32(18).string(l.validator_src_address),l.validator_dst_address!==""&&j.uint32(26).string(l.validator_dst_address);for(const M of l.entries)e.RedelegationEntry.encode(M,j.uint32(34).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_src_address:"",validator_dst_address:"",entries:[]};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_src_address=M.string();break;case 3:C.validator_dst_address=M.string();break;case 4:C.entries.push(e.RedelegationEntry.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_src_address:I(l.validator_src_address)?String(l.validator_src_address):"",validator_dst_address:I(l.validator_dst_address)?String(l.validator_dst_address):"",entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(j=>e.RedelegationEntry.fromJSON(j)):[]}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_src_address!==void 0&&(j.validator_src_address=l.validator_src_address),l.validator_dst_address!==void 0&&(j.validator_dst_address=l.validator_dst_address),l.entries?j.entries=l.entries.map(M=>M?e.RedelegationEntry.toJSON(M):void 0):j.entries=[],j},fromPartial(l){var j,M,N,C;const x={delegator_address:"",validator_src_address:"",validator_dst_address:"",entries:[]};return x.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",x.validator_src_address=(M=l.validator_src_address)!==null&&M!==void 0?M:"",x.validator_dst_address=(N=l.validator_dst_address)!==null&&N!==void 0?N:"",x.entries=((C=l.entries)===null||C===void 0?void 0:C.map(P=>e.RedelegationEntry.fromPartial(P)))||[],x}},e.Params={encode:(l,j=t.Writer.create())=>(l.unbonding_time!==void 0&&r.Duration.encode(l.unbonding_time,j.uint32(10).fork()).ldelim(),l.max_validators!==0&&j.uint32(16).uint32(l.max_validators),l.max_entries!==0&&j.uint32(24).uint32(l.max_entries),l.historical_entries!==0&&j.uint32(32).uint32(l.historical_entries),l.bond_denom!==""&&j.uint32(42).string(l.bond_denom),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={unbonding_time:void 0,max_validators:0,max_entries:0,historical_entries:0,bond_denom:""};for(;M.pos>>3){case 1:C.unbonding_time=r.Duration.decode(M,M.uint32());break;case 2:C.max_validators=M.uint32();break;case 3:C.max_entries=M.uint32();break;case 4:C.historical_entries=M.uint32();break;case 5:C.bond_denom=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({unbonding_time:I(l.unbonding_time)?r.Duration.fromJSON(l.unbonding_time):void 0,max_validators:I(l.max_validators)?Number(l.max_validators):0,max_entries:I(l.max_entries)?Number(l.max_entries):0,historical_entries:I(l.historical_entries)?Number(l.historical_entries):0,bond_denom:I(l.bond_denom)?String(l.bond_denom):""}),toJSON(l){const j={};return l.unbonding_time!==void 0&&(j.unbonding_time=l.unbonding_time?r.Duration.toJSON(l.unbonding_time):void 0),l.max_validators!==void 0&&(j.max_validators=Math.round(l.max_validators)),l.max_entries!==void 0&&(j.max_entries=Math.round(l.max_entries)),l.historical_entries!==void 0&&(j.historical_entries=Math.round(l.historical_entries)),l.bond_denom!==void 0&&(j.bond_denom=l.bond_denom),j},fromPartial(l){var j,M,N,C;const x={unbonding_time:void 0,max_validators:0,max_entries:0,historical_entries:0,bond_denom:""};return x.unbonding_time=l.unbonding_time!==void 0&&l.unbonding_time!==null?r.Duration.fromPartial(l.unbonding_time):void 0,x.max_validators=(j=l.max_validators)!==null&&j!==void 0?j:0,x.max_entries=(M=l.max_entries)!==null&&M!==void 0?M:0,x.historical_entries=(N=l.historical_entries)!==null&&N!==void 0?N:0,x.bond_denom=(C=l.bond_denom)!==null&&C!==void 0?C:"",x}},e.DelegationResponse={encode:(l,j=t.Writer.create())=>(l.delegation!==void 0&&e.Delegation.encode(l.delegation,j.uint32(10).fork()).ldelim(),l.balance!==void 0&&n.Coin.encode(l.balance,j.uint32(18).fork()).ldelim(),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegation:void 0,balance:void 0};for(;M.pos>>3){case 1:C.delegation=e.Delegation.decode(M,M.uint32());break;case 2:C.balance=n.Coin.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegation:I(l.delegation)?e.Delegation.fromJSON(l.delegation):void 0,balance:I(l.balance)?n.Coin.fromJSON(l.balance):void 0}),toJSON(l){const j={};return l.delegation!==void 0&&(j.delegation=l.delegation?e.Delegation.toJSON(l.delegation):void 0),l.balance!==void 0&&(j.balance=l.balance?n.Coin.toJSON(l.balance):void 0),j},fromPartial(l){const j={delegation:void 0,balance:void 0};return j.delegation=l.delegation!==void 0&&l.delegation!==null?e.Delegation.fromPartial(l.delegation):void 0,j.balance=l.balance!==void 0&&l.balance!==null?n.Coin.fromPartial(l.balance):void 0,j}},e.RedelegationEntryResponse={encode:(l,j=t.Writer.create())=>(l.redelegation_entry!==void 0&&e.RedelegationEntry.encode(l.redelegation_entry,j.uint32(10).fork()).ldelim(),l.balance!==""&&j.uint32(34).string(l.balance),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={redelegation_entry:void 0,balance:""};for(;M.pos>>3){case 1:C.redelegation_entry=e.RedelegationEntry.decode(M,M.uint32());break;case 4:C.balance=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({redelegation_entry:I(l.redelegation_entry)?e.RedelegationEntry.fromJSON(l.redelegation_entry):void 0,balance:I(l.balance)?String(l.balance):""}),toJSON(l){const j={};return l.redelegation_entry!==void 0&&(j.redelegation_entry=l.redelegation_entry?e.RedelegationEntry.toJSON(l.redelegation_entry):void 0),l.balance!==void 0&&(j.balance=l.balance),j},fromPartial(l){var j;const M={redelegation_entry:void 0,balance:""};return M.redelegation_entry=l.redelegation_entry!==void 0&&l.redelegation_entry!==null?e.RedelegationEntry.fromPartial(l.redelegation_entry):void 0,M.balance=(j=l.balance)!==null&&j!==void 0?j:"",M}},e.RedelegationResponse={encode(l,j=t.Writer.create()){l.redelegation!==void 0&&e.Redelegation.encode(l.redelegation,j.uint32(10).fork()).ldelim();for(const M of l.entries)e.RedelegationEntryResponse.encode(M,j.uint32(18).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={redelegation:void 0,entries:[]};for(;M.pos>>3){case 1:C.redelegation=e.Redelegation.decode(M,M.uint32());break;case 2:C.entries.push(e.RedelegationEntryResponse.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({redelegation:I(l.redelegation)?e.Redelegation.fromJSON(l.redelegation):void 0,entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(j=>e.RedelegationEntryResponse.fromJSON(j)):[]}),toJSON(l){const j={};return l.redelegation!==void 0&&(j.redelegation=l.redelegation?e.Redelegation.toJSON(l.redelegation):void 0),l.entries?j.entries=l.entries.map(M=>M?e.RedelegationEntryResponse.toJSON(M):void 0):j.entries=[],j},fromPartial(l){var j;const M={redelegation:void 0,entries:[]};return M.redelegation=l.redelegation!==void 0&&l.redelegation!==null?e.Redelegation.fromPartial(l.redelegation):void 0,M.entries=((j=l.entries)===null||j===void 0?void 0:j.map(N=>e.RedelegationEntryResponse.fromPartial(N)))||[],M}},e.Pool={encode:(l,j=t.Writer.create())=>(l.not_bonded_tokens!==""&&j.uint32(10).string(l.not_bonded_tokens),l.bonded_tokens!==""&&j.uint32(18).string(l.bonded_tokens),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={not_bonded_tokens:"",bonded_tokens:""};for(;M.pos>>3){case 1:C.not_bonded_tokens=M.string();break;case 2:C.bonded_tokens=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({not_bonded_tokens:I(l.not_bonded_tokens)?String(l.not_bonded_tokens):"",bonded_tokens:I(l.bonded_tokens)?String(l.bonded_tokens):""}),toJSON(l){const j={};return l.not_bonded_tokens!==void 0&&(j.not_bonded_tokens=l.not_bonded_tokens),l.bonded_tokens!==void 0&&(j.bonded_tokens=l.bonded_tokens),j},fromPartial(l){var j,M;const N={not_bonded_tokens:"",bonded_tokens:""};return N.not_bonded_tokens=(j=l.not_bonded_tokens)!==null&&j!==void 0?j:"",N.bonded_tokens=(M=l.bonded_tokens)!==null&&M!==void 0?M:"",N}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7704:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(d,h,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return h[_]}})}:function(d,h,_,b){b===void 0&&(b=_),d[b]=h[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(h,d,_);return O(h,d),h},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgUndelegateResponse=e.MsgUndelegate=e.MsgBeginRedelegateResponse=e.MsgBeginRedelegate=e.MsgDelegateResponse=e.MsgDelegate=e.MsgEditValidatorResponse=e.MsgEditValidator=e.MsgCreateValidatorResponse=e.MsgCreateValidator=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2572),u=p(4191),s=p(2976),r=p(5090);function n(d){return{seconds:Math.trunc(d.getTime()/1e3).toString(),nanos:d.getTime()%1e3*1e6}}function o(d){let h=1e3*Number(d.seconds);return h+=d.nanos/1e6,new Date(h)}function i(d){return d instanceof Date?n(d):typeof d=="string"?n(new Date(d)):r.Timestamp.fromJSON(d)}function f(d){return d!=null}e.protobufPackage="cosmos.staking.v1beta1",e.MsgCreateValidator={encode:(d,h=t.Writer.create())=>(d.description!==void 0&&c.Description.encode(d.description,h.uint32(10).fork()).ldelim(),d.commission!==void 0&&c.CommissionRates.encode(d.commission,h.uint32(18).fork()).ldelim(),d.min_self_delegation!==""&&h.uint32(26).string(d.min_self_delegation),d.delegator_address!==""&&h.uint32(34).string(d.delegator_address),d.validator_address!==""&&h.uint32(42).string(d.validator_address),d.pubkey!==void 0&&u.Any.encode(d.pubkey,h.uint32(50).fork()).ldelim(),d.value!==void 0&&s.Coin.encode(d.value,h.uint32(58).fork()).ldelim(),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={description:void 0,commission:void 0,min_self_delegation:"",delegator_address:"",validator_address:"",pubkey:void 0,value:void 0};for(;_.pos>>3){case 1:I.description=c.Description.decode(_,_.uint32());break;case 2:I.commission=c.CommissionRates.decode(_,_.uint32());break;case 3:I.min_self_delegation=_.string();break;case 4:I.delegator_address=_.string();break;case 5:I.validator_address=_.string();break;case 6:I.pubkey=u.Any.decode(_,_.uint32());break;case 7:I.value=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({description:f(d.description)?c.Description.fromJSON(d.description):void 0,commission:f(d.commission)?c.CommissionRates.fromJSON(d.commission):void 0,min_self_delegation:f(d.min_self_delegation)?String(d.min_self_delegation):"",delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_address:f(d.validator_address)?String(d.validator_address):"",pubkey:f(d.pubkey)?u.Any.fromJSON(d.pubkey):void 0,value:f(d.value)?s.Coin.fromJSON(d.value):void 0}),toJSON(d){const h={};return d.description!==void 0&&(h.description=d.description?c.Description.toJSON(d.description):void 0),d.commission!==void 0&&(h.commission=d.commission?c.CommissionRates.toJSON(d.commission):void 0),d.min_self_delegation!==void 0&&(h.min_self_delegation=d.min_self_delegation),d.delegator_address!==void 0&&(h.delegator_address=d.delegator_address),d.validator_address!==void 0&&(h.validator_address=d.validator_address),d.pubkey!==void 0&&(h.pubkey=d.pubkey?u.Any.toJSON(d.pubkey):void 0),d.value!==void 0&&(h.value=d.value?s.Coin.toJSON(d.value):void 0),h},fromPartial(d){var h,_,b;const I={description:void 0,commission:void 0,min_self_delegation:"",delegator_address:"",validator_address:"",pubkey:void 0,value:void 0};return I.description=d.description!==void 0&&d.description!==null?c.Description.fromPartial(d.description):void 0,I.commission=d.commission!==void 0&&d.commission!==null?c.CommissionRates.fromPartial(d.commission):void 0,I.min_self_delegation=(h=d.min_self_delegation)!==null&&h!==void 0?h:"",I.delegator_address=(_=d.delegator_address)!==null&&_!==void 0?_:"",I.validator_address=(b=d.validator_address)!==null&&b!==void 0?b:"",I.pubkey=d.pubkey!==void 0&&d.pubkey!==null?u.Any.fromPartial(d.pubkey):void 0,I.value=d.value!==void 0&&d.value!==null?s.Coin.fromPartial(d.value):void 0,I}},e.MsgCreateValidatorResponse={encode:(d,h=t.Writer.create())=>h,decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgEditValidator={encode:(d,h=t.Writer.create())=>(d.description!==void 0&&c.Description.encode(d.description,h.uint32(10).fork()).ldelim(),d.validator_address!==""&&h.uint32(18).string(d.validator_address),d.commission_rate!==""&&h.uint32(26).string(d.commission_rate),d.min_self_delegation!==""&&h.uint32(34).string(d.min_self_delegation),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={description:void 0,validator_address:"",commission_rate:"",min_self_delegation:""};for(;_.pos>>3){case 1:I.description=c.Description.decode(_,_.uint32());break;case 2:I.validator_address=_.string();break;case 3:I.commission_rate=_.string();break;case 4:I.min_self_delegation=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({description:f(d.description)?c.Description.fromJSON(d.description):void 0,validator_address:f(d.validator_address)?String(d.validator_address):"",commission_rate:f(d.commission_rate)?String(d.commission_rate):"",min_self_delegation:f(d.min_self_delegation)?String(d.min_self_delegation):""}),toJSON(d){const h={};return d.description!==void 0&&(h.description=d.description?c.Description.toJSON(d.description):void 0),d.validator_address!==void 0&&(h.validator_address=d.validator_address),d.commission_rate!==void 0&&(h.commission_rate=d.commission_rate),d.min_self_delegation!==void 0&&(h.min_self_delegation=d.min_self_delegation),h},fromPartial(d){var h,_,b;const I={description:void 0,validator_address:"",commission_rate:"",min_self_delegation:""};return I.description=d.description!==void 0&&d.description!==null?c.Description.fromPartial(d.description):void 0,I.validator_address=(h=d.validator_address)!==null&&h!==void 0?h:"",I.commission_rate=(_=d.commission_rate)!==null&&_!==void 0?_:"",I.min_self_delegation=(b=d.min_self_delegation)!==null&&b!==void 0?b:"",I}},e.MsgEditValidatorResponse={encode:(d,h=t.Writer.create())=>h,decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgDelegate={encode:(d,h=t.Writer.create())=>(d.delegator_address!==""&&h.uint32(10).string(d.delegator_address),d.validator_address!==""&&h.uint32(18).string(d.validator_address),d.amount!==void 0&&s.Coin.encode(d.amount,h.uint32(26).fork()).ldelim(),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={delegator_address:"",validator_address:"",amount:void 0};for(;_.pos>>3){case 1:I.delegator_address=_.string();break;case 2:I.validator_address=_.string();break;case 3:I.amount=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_address:f(d.validator_address)?String(d.validator_address):"",amount:f(d.amount)?s.Coin.fromJSON(d.amount):void 0}),toJSON(d){const h={};return d.delegator_address!==void 0&&(h.delegator_address=d.delegator_address),d.validator_address!==void 0&&(h.validator_address=d.validator_address),d.amount!==void 0&&(h.amount=d.amount?s.Coin.toJSON(d.amount):void 0),h},fromPartial(d){var h,_;const b={delegator_address:"",validator_address:"",amount:void 0};return b.delegator_address=(h=d.delegator_address)!==null&&h!==void 0?h:"",b.validator_address=(_=d.validator_address)!==null&&_!==void 0?_:"",b.amount=d.amount!==void 0&&d.amount!==null?s.Coin.fromPartial(d.amount):void 0,b}},e.MsgDelegateResponse={encode:(d,h=t.Writer.create())=>h,decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgBeginRedelegate={encode:(d,h=t.Writer.create())=>(d.delegator_address!==""&&h.uint32(10).string(d.delegator_address),d.validator_src_address!==""&&h.uint32(18).string(d.validator_src_address),d.validator_dst_address!==""&&h.uint32(26).string(d.validator_dst_address),d.amount!==void 0&&s.Coin.encode(d.amount,h.uint32(34).fork()).ldelim(),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={delegator_address:"",validator_src_address:"",validator_dst_address:"",amount:void 0};for(;_.pos>>3){case 1:I.delegator_address=_.string();break;case 2:I.validator_src_address=_.string();break;case 3:I.validator_dst_address=_.string();break;case 4:I.amount=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_src_address:f(d.validator_src_address)?String(d.validator_src_address):"",validator_dst_address:f(d.validator_dst_address)?String(d.validator_dst_address):"",amount:f(d.amount)?s.Coin.fromJSON(d.amount):void 0}),toJSON(d){const h={};return d.delegator_address!==void 0&&(h.delegator_address=d.delegator_address),d.validator_src_address!==void 0&&(h.validator_src_address=d.validator_src_address),d.validator_dst_address!==void 0&&(h.validator_dst_address=d.validator_dst_address),d.amount!==void 0&&(h.amount=d.amount?s.Coin.toJSON(d.amount):void 0),h},fromPartial(d){var h,_,b;const I={delegator_address:"",validator_src_address:"",validator_dst_address:"",amount:void 0};return I.delegator_address=(h=d.delegator_address)!==null&&h!==void 0?h:"",I.validator_src_address=(_=d.validator_src_address)!==null&&_!==void 0?_:"",I.validator_dst_address=(b=d.validator_dst_address)!==null&&b!==void 0?b:"",I.amount=d.amount!==void 0&&d.amount!==null?s.Coin.fromPartial(d.amount):void 0,I}},e.MsgBeginRedelegateResponse={encode:(d,h=t.Writer.create())=>(d.completion_time!==void 0&&r.Timestamp.encode(d.completion_time,h.uint32(10).fork()).ldelim(),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={completion_time:void 0};for(;_.pos>>3==1?I.completion_time=r.Timestamp.decode(_,_.uint32()):_.skipType(7&l)}return I},fromJSON:d=>({completion_time:f(d.completion_time)?i(d.completion_time):void 0}),toJSON(d){const h={};return d.completion_time!==void 0&&(h.completion_time=o(d.completion_time).toISOString()),h},fromPartial(d){const h={completion_time:void 0};return h.completion_time=d.completion_time!==void 0&&d.completion_time!==null?r.Timestamp.fromPartial(d.completion_time):void 0,h}},e.MsgUndelegate={encode:(d,h=t.Writer.create())=>(d.delegator_address!==""&&h.uint32(10).string(d.delegator_address),d.validator_address!==""&&h.uint32(18).string(d.validator_address),d.amount!==void 0&&s.Coin.encode(d.amount,h.uint32(26).fork()).ldelim(),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={delegator_address:"",validator_address:"",amount:void 0};for(;_.pos>>3){case 1:I.delegator_address=_.string();break;case 2:I.validator_address=_.string();break;case 3:I.amount=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_address:f(d.validator_address)?String(d.validator_address):"",amount:f(d.amount)?s.Coin.fromJSON(d.amount):void 0}),toJSON(d){const h={};return d.delegator_address!==void 0&&(h.delegator_address=d.delegator_address),d.validator_address!==void 0&&(h.validator_address=d.validator_address),d.amount!==void 0&&(h.amount=d.amount?s.Coin.toJSON(d.amount):void 0),h},fromPartial(d){var h,_;const b={delegator_address:"",validator_address:"",amount:void 0};return b.delegator_address=(h=d.delegator_address)!==null&&h!==void 0?h:"",b.validator_address=(_=d.validator_address)!==null&&_!==void 0?_:"",b.amount=d.amount!==void 0&&d.amount!==null?s.Coin.fromPartial(d.amount):void 0,b}},e.MsgUndelegateResponse={encode:(d,h=t.Writer.create())=>(d.completion_time!==void 0&&r.Timestamp.encode(d.completion_time,h.uint32(10).fork()).ldelim(),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={completion_time:void 0};for(;_.pos>>3==1?I.completion_time=r.Timestamp.decode(_,_.uint32()):_.skipType(7&l)}return I},fromJSON:d=>({completion_time:f(d.completion_time)?i(d.completion_time):void 0}),toJSON(d){const h={};return d.completion_time!==void 0&&(h.completion_time=o(d.completion_time).toISOString()),h},fromPartial(d){const h={completion_time:void 0};return h.completion_time=d.completion_time!==void 0&&d.completion_time!==null?r.Timestamp.fromPartial(d.completion_time):void 0,h}},e.MsgClientImpl=class{constructor(d){this.rpc=d,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)}CreateValidator(d){const h=e.MsgCreateValidator.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",h).then(_=>e.MsgCreateValidatorResponse.decode(new t.Reader(_)))}EditValidator(d){const h=e.MsgEditValidator.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",h).then(_=>e.MsgEditValidatorResponse.decode(new t.Reader(_)))}Delegate(d){const h=e.MsgDelegate.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",h).then(_=>e.MsgDelegateResponse.decode(new t.Reader(_)))}BeginRedelegate(d){const h=e.MsgBeginRedelegate.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",h).then(_=>e.MsgBeginRedelegateResponse.decode(new t.Reader(_)))}Undelegate(d){const h=e.MsgUndelegate.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",h).then(_=>e.MsgUndelegateResponse.decode(new t.Reader(_)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8502:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(b,I,l,j){j===void 0&&(j=l),Object.defineProperty(b,j,{enumerable:!0,get:function(){return I[l]}})}:function(b,I,l,j){j===void 0&&(j=l),b[j]=I[l]}),O=this&&this.__setModuleDefault||(Object.create?function(b,I){Object.defineProperty(b,"default",{enumerable:!0,value:I})}:function(b,I){b.default=I}),k=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var I={};if(b!=null)for(var l in b)l!=="default"&&Object.prototype.hasOwnProperty.call(b,l)&&w(I,b,l);return O(I,b),I},S=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureDescriptor_Data_Multi=e.SignatureDescriptor_Data_Single=e.SignatureDescriptor_Data=e.SignatureDescriptor=e.SignatureDescriptors=e.signModeToJSON=e.signModeFromJSON=e.SignMode=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191),u=p(4271);var s;function r(b){switch(b){case 0:case"SIGN_MODE_UNSPECIFIED":return s.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return s.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return s.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return s.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return s.SIGN_MODE_EIP_191;default:return s.UNRECOGNIZED}}function n(b){switch(b){case s.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case s.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case s.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case s.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case s.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";default:return"UNKNOWN"}}function o(){return{mode:0,signature:new Uint8Array}}e.protobufPackage="cosmos.tx.signing.v1beta1",function(b){b[b.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",b[b.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",b[b.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",b[b.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",b[b.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",b[b.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.SignMode||(e.SignMode={})),e.signModeFromJSON=r,e.signModeToJSON=n,e.SignatureDescriptors={encode(b,I=t.Writer.create()){for(const l of b.signatures)e.SignatureDescriptor.encode(l,I.uint32(10).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={signatures:[]};for(;l.pos>>3==1?M.signatures.push(e.SignatureDescriptor.decode(l,l.uint32())):l.skipType(7&N)}return M},fromJSON:b=>({signatures:Array.isArray(b==null?void 0:b.signatures)?b.signatures.map(I=>e.SignatureDescriptor.fromJSON(I)):[]}),toJSON(b){const I={};return b.signatures?I.signatures=b.signatures.map(l=>l?e.SignatureDescriptor.toJSON(l):void 0):I.signatures=[],I},fromPartial(b){var I;const l={signatures:[]};return l.signatures=((I=b.signatures)===null||I===void 0?void 0:I.map(j=>e.SignatureDescriptor.fromPartial(j)))||[],l}},e.SignatureDescriptor={encode:(b,I=t.Writer.create())=>(b.public_key!==void 0&&c.Any.encode(b.public_key,I.uint32(10).fork()).ldelim(),b.data!==void 0&&e.SignatureDescriptor_Data.encode(b.data,I.uint32(18).fork()).ldelim(),b.sequence!=="0"&&I.uint32(24).uint64(b.sequence),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={public_key:void 0,data:void 0,sequence:"0"};for(;l.pos>>3){case 1:M.public_key=c.Any.decode(l,l.uint32());break;case 2:M.data=e.SignatureDescriptor_Data.decode(l,l.uint32());break;case 3:M.sequence=l.uint64().toString();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({public_key:_(b.public_key)?c.Any.fromJSON(b.public_key):void 0,data:_(b.data)?e.SignatureDescriptor_Data.fromJSON(b.data):void 0,sequence:_(b.sequence)?String(b.sequence):"0"}),toJSON(b){const I={};return b.public_key!==void 0&&(I.public_key=b.public_key?c.Any.toJSON(b.public_key):void 0),b.data!==void 0&&(I.data=b.data?e.SignatureDescriptor_Data.toJSON(b.data):void 0),b.sequence!==void 0&&(I.sequence=b.sequence),I},fromPartial(b){var I;const l={public_key:void 0,data:void 0,sequence:"0"};return l.public_key=b.public_key!==void 0&&b.public_key!==null?c.Any.fromPartial(b.public_key):void 0,l.data=b.data!==void 0&&b.data!==null?e.SignatureDescriptor_Data.fromPartial(b.data):void 0,l.sequence=(I=b.sequence)!==null&&I!==void 0?I:"0",l}},e.SignatureDescriptor_Data={encode:(b,I=t.Writer.create())=>(b.single!==void 0&&e.SignatureDescriptor_Data_Single.encode(b.single,I.uint32(10).fork()).ldelim(),b.multi!==void 0&&e.SignatureDescriptor_Data_Multi.encode(b.multi,I.uint32(18).fork()).ldelim(),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={single:void 0,multi:void 0};for(;l.pos>>3){case 1:M.single=e.SignatureDescriptor_Data_Single.decode(l,l.uint32());break;case 2:M.multi=e.SignatureDescriptor_Data_Multi.decode(l,l.uint32());break;default:l.skipType(7&N)}}return M},fromJSON:b=>({single:_(b.single)?e.SignatureDescriptor_Data_Single.fromJSON(b.single):void 0,multi:_(b.multi)?e.SignatureDescriptor_Data_Multi.fromJSON(b.multi):void 0}),toJSON(b){const I={};return b.single!==void 0&&(I.single=b.single?e.SignatureDescriptor_Data_Single.toJSON(b.single):void 0),b.multi!==void 0&&(I.multi=b.multi?e.SignatureDescriptor_Data_Multi.toJSON(b.multi):void 0),I},fromPartial(b){const I={single:void 0,multi:void 0};return I.single=b.single!==void 0&&b.single!==null?e.SignatureDescriptor_Data_Single.fromPartial(b.single):void 0,I.multi=b.multi!==void 0&&b.multi!==null?e.SignatureDescriptor_Data_Multi.fromPartial(b.multi):void 0,I}},e.SignatureDescriptor_Data_Single={encode:(b,I=t.Writer.create())=>(b.mode!==0&&I.uint32(8).int32(b.mode),b.signature.length!==0&&I.uint32(18).bytes(b.signature),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M=o();for(;l.pos>>3){case 1:M.mode=l.int32();break;case 2:M.signature=l.bytes();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({mode:_(b.mode)?r(b.mode):0,signature:_(b.signature)?d(b.signature):new Uint8Array}),toJSON(b){const I={};return b.mode!==void 0&&(I.mode=n(b.mode)),b.signature!==void 0&&(I.signature=function(l){const j=[];for(const M of l)j.push(String.fromCharCode(M));return h(j.join(""))}(b.signature!==void 0?b.signature:new Uint8Array)),I},fromPartial(b){var I,l;const j=o();return j.mode=(I=b.mode)!==null&&I!==void 0?I:0,j.signature=(l=b.signature)!==null&&l!==void 0?l:new Uint8Array,j}},e.SignatureDescriptor_Data_Multi={encode(b,I=t.Writer.create()){b.bitarray!==void 0&&u.CompactBitArray.encode(b.bitarray,I.uint32(10).fork()).ldelim();for(const l of b.signatures)e.SignatureDescriptor_Data.encode(l,I.uint32(18).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={bitarray:void 0,signatures:[]};for(;l.pos>>3){case 1:M.bitarray=u.CompactBitArray.decode(l,l.uint32());break;case 2:M.signatures.push(e.SignatureDescriptor_Data.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({bitarray:_(b.bitarray)?u.CompactBitArray.fromJSON(b.bitarray):void 0,signatures:Array.isArray(b==null?void 0:b.signatures)?b.signatures.map(I=>e.SignatureDescriptor_Data.fromJSON(I)):[]}),toJSON(b){const I={};return b.bitarray!==void 0&&(I.bitarray=b.bitarray?u.CompactBitArray.toJSON(b.bitarray):void 0),b.signatures?I.signatures=b.signatures.map(l=>l?e.SignatureDescriptor_Data.toJSON(l):void 0):I.signatures=[],I},fromPartial(b){var I;const l={bitarray:void 0,signatures:[]};return l.bitarray=b.bitarray!==void 0&&b.bitarray!==null?u.CompactBitArray.fromPartial(b.bitarray):void 0,l.signatures=((I=b.signatures)===null||I===void 0?void 0:I.map(j=>e.SignatureDescriptor_Data.fromPartial(j)))||[],l}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const f=i.atob||(b=>i.Buffer.from(b,"base64").toString("binary"));function d(b){const I=f(b),l=new Uint8Array(I.length);for(let j=0;ji.Buffer.from(b,"binary").toString("base64"));function _(b){return b!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6994:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(l,j,M,N){N===void 0&&(N=M),Object.defineProperty(l,N,{enumerable:!0,get:function(){return j[M]}})}:function(l,j,M,N){N===void 0&&(N=M),l[N]=j[M]}),O=this&&this.__setModuleDefault||(Object.create?function(l,j){Object.defineProperty(l,"default",{enumerable:!0,value:j})}:function(l,j){l.default=j}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var j={};if(l!=null)for(var M in l)M!=="default"&&Object.prototype.hasOwnProperty.call(l,M)&&w(j,l,M);return O(j,l),j},S=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.Fee=e.ModeInfo_Multi=e.ModeInfo_Single=e.ModeInfo=e.SignerInfo=e.AuthInfo=e.TxBody=e.SignDoc=e.TxRaw=e.Tx=e.Txs=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191),u=p(8502),s=p(4271),r=p(2976);function n(){return{body_bytes:new Uint8Array,auth_info_bytes:new Uint8Array,signatures:[]}}function o(){return{body_bytes:new Uint8Array,auth_info_bytes:new Uint8Array,chain_id:"",account_number:"0"}}e.protobufPackage="cosmos.tx.v1beta1",e.Txs={encode(l,j=t.Writer.create()){for(const M of l.tx)j.uint32(10).bytes(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={tx:[]};for(;M.pos>>3==1?C.tx.push(M.bytes()):M.skipType(7&x)}return C},fromJSON:l=>({tx:Array.isArray(l==null?void 0:l.tx)?l.tx.map(j=>d(j)):[]}),toJSON(l){const j={};return l.tx?j.tx=l.tx.map(M=>_(M!==void 0?M:new Uint8Array)):j.tx=[],j},fromPartial(l){var j;const M={tx:[]};return M.tx=((j=l.tx)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.Tx={encode(l,j=t.Writer.create()){l.body!==void 0&&e.TxBody.encode(l.body,j.uint32(10).fork()).ldelim(),l.auth_info!==void 0&&e.AuthInfo.encode(l.auth_info,j.uint32(18).fork()).ldelim();for(const M of l.signatures)j.uint32(26).bytes(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={body:void 0,auth_info:void 0,signatures:[]};for(;M.pos>>3){case 1:C.body=e.TxBody.decode(M,M.uint32());break;case 2:C.auth_info=e.AuthInfo.decode(M,M.uint32());break;case 3:C.signatures.push(M.bytes());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({body:I(l.body)?e.TxBody.fromJSON(l.body):void 0,auth_info:I(l.auth_info)?e.AuthInfo.fromJSON(l.auth_info):void 0,signatures:Array.isArray(l==null?void 0:l.signatures)?l.signatures.map(j=>d(j)):[]}),toJSON(l){const j={};return l.body!==void 0&&(j.body=l.body?e.TxBody.toJSON(l.body):void 0),l.auth_info!==void 0&&(j.auth_info=l.auth_info?e.AuthInfo.toJSON(l.auth_info):void 0),l.signatures?j.signatures=l.signatures.map(M=>_(M!==void 0?M:new Uint8Array)):j.signatures=[],j},fromPartial(l){var j;const M={body:void 0,auth_info:void 0,signatures:[]};return M.body=l.body!==void 0&&l.body!==null?e.TxBody.fromPartial(l.body):void 0,M.auth_info=l.auth_info!==void 0&&l.auth_info!==null?e.AuthInfo.fromPartial(l.auth_info):void 0,M.signatures=((j=l.signatures)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.TxRaw={encode(l,j=t.Writer.create()){l.body_bytes.length!==0&&j.uint32(10).bytes(l.body_bytes),l.auth_info_bytes.length!==0&&j.uint32(18).bytes(l.auth_info_bytes);for(const M of l.signatures)j.uint32(26).bytes(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=n();for(;M.pos>>3){case 1:C.body_bytes=M.bytes();break;case 2:C.auth_info_bytes=M.bytes();break;case 3:C.signatures.push(M.bytes());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({body_bytes:I(l.body_bytes)?d(l.body_bytes):new Uint8Array,auth_info_bytes:I(l.auth_info_bytes)?d(l.auth_info_bytes):new Uint8Array,signatures:Array.isArray(l==null?void 0:l.signatures)?l.signatures.map(j=>d(j)):[]}),toJSON(l){const j={};return l.body_bytes!==void 0&&(j.body_bytes=_(l.body_bytes!==void 0?l.body_bytes:new Uint8Array)),l.auth_info_bytes!==void 0&&(j.auth_info_bytes=_(l.auth_info_bytes!==void 0?l.auth_info_bytes:new Uint8Array)),l.signatures?j.signatures=l.signatures.map(M=>_(M!==void 0?M:new Uint8Array)):j.signatures=[],j},fromPartial(l){var j,M,N;const C=n();return C.body_bytes=(j=l.body_bytes)!==null&&j!==void 0?j:new Uint8Array,C.auth_info_bytes=(M=l.auth_info_bytes)!==null&&M!==void 0?M:new Uint8Array,C.signatures=((N=l.signatures)===null||N===void 0?void 0:N.map(x=>x))||[],C}},e.SignDoc={encode:(l,j=t.Writer.create())=>(l.body_bytes.length!==0&&j.uint32(10).bytes(l.body_bytes),l.auth_info_bytes.length!==0&&j.uint32(18).bytes(l.auth_info_bytes),l.chain_id!==""&&j.uint32(26).string(l.chain_id),l.account_number!=="0"&&j.uint32(32).uint64(l.account_number),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=o();for(;M.pos>>3){case 1:C.body_bytes=M.bytes();break;case 2:C.auth_info_bytes=M.bytes();break;case 3:C.chain_id=M.string();break;case 4:C.account_number=b(M.uint64());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({body_bytes:I(l.body_bytes)?d(l.body_bytes):new Uint8Array,auth_info_bytes:I(l.auth_info_bytes)?d(l.auth_info_bytes):new Uint8Array,chain_id:I(l.chain_id)?String(l.chain_id):"",account_number:I(l.account_number)?String(l.account_number):"0"}),toJSON(l){const j={};return l.body_bytes!==void 0&&(j.body_bytes=_(l.body_bytes!==void 0?l.body_bytes:new Uint8Array)),l.auth_info_bytes!==void 0&&(j.auth_info_bytes=_(l.auth_info_bytes!==void 0?l.auth_info_bytes:new Uint8Array)),l.chain_id!==void 0&&(j.chain_id=l.chain_id),l.account_number!==void 0&&(j.account_number=l.account_number),j},fromPartial(l){var j,M,N,C;const x=o();return x.body_bytes=(j=l.body_bytes)!==null&&j!==void 0?j:new Uint8Array,x.auth_info_bytes=(M=l.auth_info_bytes)!==null&&M!==void 0?M:new Uint8Array,x.chain_id=(N=l.chain_id)!==null&&N!==void 0?N:"",x.account_number=(C=l.account_number)!==null&&C!==void 0?C:"0",x}},e.TxBody={encode(l,j=t.Writer.create()){for(const M of l.messages)c.Any.encode(M,j.uint32(10).fork()).ldelim();l.memo!==""&&j.uint32(18).string(l.memo),l.timeout_height!=="0"&&j.uint32(24).uint64(l.timeout_height);for(const M of l.extension_options)c.Any.encode(M,j.uint32(8186).fork()).ldelim();for(const M of l.non_critical_extension_options)c.Any.encode(M,j.uint32(16378).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={messages:[],memo:"",timeout_height:"0",extension_options:[],non_critical_extension_options:[]};for(;M.pos>>3){case 1:C.messages.push(c.Any.decode(M,M.uint32()));break;case 2:C.memo=M.string();break;case 3:C.timeout_height=b(M.uint64());break;case 1023:C.extension_options.push(c.Any.decode(M,M.uint32()));break;case 2047:C.non_critical_extension_options.push(c.Any.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({messages:Array.isArray(l==null?void 0:l.messages)?l.messages.map(j=>c.Any.fromJSON(j)):[],memo:I(l.memo)?String(l.memo):"",timeout_height:I(l.timeout_height)?String(l.timeout_height):"0",extension_options:Array.isArray(l==null?void 0:l.extension_options)?l.extension_options.map(j=>c.Any.fromJSON(j)):[],non_critical_extension_options:Array.isArray(l==null?void 0:l.non_critical_extension_options)?l.non_critical_extension_options.map(j=>c.Any.fromJSON(j)):[]}),toJSON(l){const j={};return l.messages?j.messages=l.messages.map(M=>M?c.Any.toJSON(M):void 0):j.messages=[],l.memo!==void 0&&(j.memo=l.memo),l.timeout_height!==void 0&&(j.timeout_height=l.timeout_height),l.extension_options?j.extension_options=l.extension_options.map(M=>M?c.Any.toJSON(M):void 0):j.extension_options=[],l.non_critical_extension_options?j.non_critical_extension_options=l.non_critical_extension_options.map(M=>M?c.Any.toJSON(M):void 0):j.non_critical_extension_options=[],j},fromPartial(l){var j,M,N,C,x;const P={messages:[],memo:"",timeout_height:"0",extension_options:[],non_critical_extension_options:[]};return P.messages=((j=l.messages)===null||j===void 0?void 0:j.map(v=>c.Any.fromPartial(v)))||[],P.memo=(M=l.memo)!==null&&M!==void 0?M:"",P.timeout_height=(N=l.timeout_height)!==null&&N!==void 0?N:"0",P.extension_options=((C=l.extension_options)===null||C===void 0?void 0:C.map(v=>c.Any.fromPartial(v)))||[],P.non_critical_extension_options=((x=l.non_critical_extension_options)===null||x===void 0?void 0:x.map(v=>c.Any.fromPartial(v)))||[],P}},e.AuthInfo={encode(l,j=t.Writer.create()){for(const M of l.signer_infos)e.SignerInfo.encode(M,j.uint32(10).fork()).ldelim();return l.fee!==void 0&&e.Fee.encode(l.fee,j.uint32(18).fork()).ldelim(),j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={signer_infos:[],fee:void 0};for(;M.pos>>3){case 1:C.signer_infos.push(e.SignerInfo.decode(M,M.uint32()));break;case 2:C.fee=e.Fee.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({signer_infos:Array.isArray(l==null?void 0:l.signer_infos)?l.signer_infos.map(j=>e.SignerInfo.fromJSON(j)):[],fee:I(l.fee)?e.Fee.fromJSON(l.fee):void 0}),toJSON(l){const j={};return l.signer_infos?j.signer_infos=l.signer_infos.map(M=>M?e.SignerInfo.toJSON(M):void 0):j.signer_infos=[],l.fee!==void 0&&(j.fee=l.fee?e.Fee.toJSON(l.fee):void 0),j},fromPartial(l){var j;const M={signer_infos:[],fee:void 0};return M.signer_infos=((j=l.signer_infos)===null||j===void 0?void 0:j.map(N=>e.SignerInfo.fromPartial(N)))||[],M.fee=l.fee!==void 0&&l.fee!==null?e.Fee.fromPartial(l.fee):void 0,M}},e.SignerInfo={encode:(l,j=t.Writer.create())=>(l.public_key!==void 0&&c.Any.encode(l.public_key,j.uint32(10).fork()).ldelim(),l.mode_info!==void 0&&e.ModeInfo.encode(l.mode_info,j.uint32(18).fork()).ldelim(),l.sequence!=="0"&&j.uint32(24).uint64(l.sequence),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={public_key:void 0,mode_info:void 0,sequence:"0"};for(;M.pos>>3){case 1:C.public_key=c.Any.decode(M,M.uint32());break;case 2:C.mode_info=e.ModeInfo.decode(M,M.uint32());break;case 3:C.sequence=b(M.uint64());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({public_key:I(l.public_key)?c.Any.fromJSON(l.public_key):void 0,mode_info:I(l.mode_info)?e.ModeInfo.fromJSON(l.mode_info):void 0,sequence:I(l.sequence)?String(l.sequence):"0"}),toJSON(l){const j={};return l.public_key!==void 0&&(j.public_key=l.public_key?c.Any.toJSON(l.public_key):void 0),l.mode_info!==void 0&&(j.mode_info=l.mode_info?e.ModeInfo.toJSON(l.mode_info):void 0),l.sequence!==void 0&&(j.sequence=l.sequence),j},fromPartial(l){var j;const M={public_key:void 0,mode_info:void 0,sequence:"0"};return M.public_key=l.public_key!==void 0&&l.public_key!==null?c.Any.fromPartial(l.public_key):void 0,M.mode_info=l.mode_info!==void 0&&l.mode_info!==null?e.ModeInfo.fromPartial(l.mode_info):void 0,M.sequence=(j=l.sequence)!==null&&j!==void 0?j:"0",M}},e.ModeInfo={encode:(l,j=t.Writer.create())=>(l.single!==void 0&&e.ModeInfo_Single.encode(l.single,j.uint32(10).fork()).ldelim(),l.multi!==void 0&&e.ModeInfo_Multi.encode(l.multi,j.uint32(18).fork()).ldelim(),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={single:void 0,multi:void 0};for(;M.pos>>3){case 1:C.single=e.ModeInfo_Single.decode(M,M.uint32());break;case 2:C.multi=e.ModeInfo_Multi.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({single:I(l.single)?e.ModeInfo_Single.fromJSON(l.single):void 0,multi:I(l.multi)?e.ModeInfo_Multi.fromJSON(l.multi):void 0}),toJSON(l){const j={};return l.single!==void 0&&(j.single=l.single?e.ModeInfo_Single.toJSON(l.single):void 0),l.multi!==void 0&&(j.multi=l.multi?e.ModeInfo_Multi.toJSON(l.multi):void 0),j},fromPartial(l){const j={single:void 0,multi:void 0};return j.single=l.single!==void 0&&l.single!==null?e.ModeInfo_Single.fromPartial(l.single):void 0,j.multi=l.multi!==void 0&&l.multi!==null?e.ModeInfo_Multi.fromPartial(l.multi):void 0,j}},e.ModeInfo_Single={encode:(l,j=t.Writer.create())=>(l.mode!==0&&j.uint32(8).int32(l.mode),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={mode:0};for(;M.pos>>3==1?C.mode=M.int32():M.skipType(7&x)}return C},fromJSON:l=>({mode:I(l.mode)?(0,u.signModeFromJSON)(l.mode):0}),toJSON(l){const j={};return l.mode!==void 0&&(j.mode=(0,u.signModeToJSON)(l.mode)),j},fromPartial(l){var j;const M={mode:0};return M.mode=(j=l.mode)!==null&&j!==void 0?j:0,M}},e.ModeInfo_Multi={encode(l,j=t.Writer.create()){l.bitarray!==void 0&&s.CompactBitArray.encode(l.bitarray,j.uint32(10).fork()).ldelim();for(const M of l.mode_infos)e.ModeInfo.encode(M,j.uint32(18).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={bitarray:void 0,mode_infos:[]};for(;M.pos>>3){case 1:C.bitarray=s.CompactBitArray.decode(M,M.uint32());break;case 2:C.mode_infos.push(e.ModeInfo.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({bitarray:I(l.bitarray)?s.CompactBitArray.fromJSON(l.bitarray):void 0,mode_infos:Array.isArray(l==null?void 0:l.mode_infos)?l.mode_infos.map(j=>e.ModeInfo.fromJSON(j)):[]}),toJSON(l){const j={};return l.bitarray!==void 0&&(j.bitarray=l.bitarray?s.CompactBitArray.toJSON(l.bitarray):void 0),l.mode_infos?j.mode_infos=l.mode_infos.map(M=>M?e.ModeInfo.toJSON(M):void 0):j.mode_infos=[],j},fromPartial(l){var j;const M={bitarray:void 0,mode_infos:[]};return M.bitarray=l.bitarray!==void 0&&l.bitarray!==null?s.CompactBitArray.fromPartial(l.bitarray):void 0,M.mode_infos=((j=l.mode_infos)===null||j===void 0?void 0:j.map(N=>e.ModeInfo.fromPartial(N)))||[],M}},e.Fee={encode(l,j=t.Writer.create()){for(const M of l.amount)r.Coin.encode(M,j.uint32(10).fork()).ldelim();return l.gas_limit!=="0"&&j.uint32(16).uint64(l.gas_limit),l.payer!==""&&j.uint32(26).string(l.payer),l.granter!==""&&j.uint32(34).string(l.granter),j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={amount:[],gas_limit:"0",payer:"",granter:""};for(;M.pos>>3){case 1:C.amount.push(r.Coin.decode(M,M.uint32()));break;case 2:C.gas_limit=b(M.uint64());break;case 3:C.payer=M.string();break;case 4:C.granter=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({amount:Array.isArray(l==null?void 0:l.amount)?l.amount.map(j=>r.Coin.fromJSON(j)):[],gas_limit:I(l.gas_limit)?String(l.gas_limit):"0",payer:I(l.payer)?String(l.payer):"",granter:I(l.granter)?String(l.granter):""}),toJSON(l){const j={};return l.amount?j.amount=l.amount.map(M=>M?r.Coin.toJSON(M):void 0):j.amount=[],l.gas_limit!==void 0&&(j.gas_limit=l.gas_limit),l.payer!==void 0&&(j.payer=l.payer),l.granter!==void 0&&(j.granter=l.granter),j},fromPartial(l){var j,M,N,C;const x={amount:[],gas_limit:"0",payer:"",granter:""};return x.amount=((j=l.amount)===null||j===void 0?void 0:j.map(P=>r.Coin.fromPartial(P)))||[],x.gas_limit=(M=l.gas_limit)!==null&&M!==void 0?M:"0",x.payer=(N=l.payer)!==null&&N!==void 0?N:"",x.granter=(C=l.granter)!==null&&C!==void 0?C:"",x}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const f=i.atob||(l=>i.Buffer.from(l,"base64").toString("binary"));function d(l){const j=f(l),M=new Uint8Array(j.length);for(let N=0;Ni.Buffer.from(l,"binary").toString("base64"));function _(l){const j=[];for(const M of l)j.push(String.fromCharCode(M));return h(j.join(""))}function b(l){return l.toString()}function I(l){return l!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8310:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.ModuleVersion=e.CancelSoftwareUpgradeProposal=e.SoftwareUpgradeProposal=e.Plan=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(5090),u=p(4191);function s(o){return{seconds:Math.trunc(o.getTime()/1e3).toString(),nanos:o.getTime()%1e3*1e6}}function r(o){return o.toString()}function n(o){return o!=null}e.protobufPackage="cosmos.upgrade.v1beta1",e.Plan={encode:(o,i=t.Writer.create())=>(o.name!==""&&i.uint32(10).string(o.name),o.time!==void 0&&c.Timestamp.encode(o.time,i.uint32(18).fork()).ldelim(),o.height!=="0"&&i.uint32(24).int64(o.height),o.info!==""&&i.uint32(34).string(o.info),o.upgraded_client_state!==void 0&&u.Any.encode(o.upgraded_client_state,i.uint32(42).fork()).ldelim(),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={name:"",time:void 0,height:"0",info:"",upgraded_client_state:void 0};for(;f.pos>>3){case 1:h.name=f.string();break;case 2:h.time=c.Timestamp.decode(f,f.uint32());break;case 3:h.height=r(f.int64());break;case 4:h.info=f.string();break;case 5:h.upgraded_client_state=u.Any.decode(f,f.uint32());break;default:f.skipType(7&_)}}return h},fromJSON:o=>{return{name:n(o.name)?String(o.name):"",time:n(o.time)?(i=o.time,i instanceof Date?s(i):typeof i=="string"?s(new Date(i)):c.Timestamp.fromJSON(i)):void 0,height:n(o.height)?String(o.height):"0",info:n(o.info)?String(o.info):"",upgraded_client_state:n(o.upgraded_client_state)?u.Any.fromJSON(o.upgraded_client_state):void 0};var i},toJSON(o){const i={};return o.name!==void 0&&(i.name=o.name),o.time!==void 0&&(i.time=function(f){let d=1e3*Number(f.seconds);return d+=f.nanos/1e6,new Date(d)}(o.time).toISOString()),o.height!==void 0&&(i.height=o.height),o.info!==void 0&&(i.info=o.info),o.upgraded_client_state!==void 0&&(i.upgraded_client_state=o.upgraded_client_state?u.Any.toJSON(o.upgraded_client_state):void 0),i},fromPartial(o){var i,f,d;const h={name:"",time:void 0,height:"0",info:"",upgraded_client_state:void 0};return h.name=(i=o.name)!==null&&i!==void 0?i:"",h.time=o.time!==void 0&&o.time!==null?c.Timestamp.fromPartial(o.time):void 0,h.height=(f=o.height)!==null&&f!==void 0?f:"0",h.info=(d=o.info)!==null&&d!==void 0?d:"",h.upgraded_client_state=o.upgraded_client_state!==void 0&&o.upgraded_client_state!==null?u.Any.fromPartial(o.upgraded_client_state):void 0,h}},e.SoftwareUpgradeProposal={encode:(o,i=t.Writer.create())=>(o.title!==""&&i.uint32(10).string(o.title),o.description!==""&&i.uint32(18).string(o.description),o.plan!==void 0&&e.Plan.encode(o.plan,i.uint32(26).fork()).ldelim(),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={title:"",description:"",plan:void 0};for(;f.pos>>3){case 1:h.title=f.string();break;case 2:h.description=f.string();break;case 3:h.plan=e.Plan.decode(f,f.uint32());break;default:f.skipType(7&_)}}return h},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):"",plan:n(o.plan)?e.Plan.fromJSON(o.plan):void 0}),toJSON(o){const i={};return o.title!==void 0&&(i.title=o.title),o.description!==void 0&&(i.description=o.description),o.plan!==void 0&&(i.plan=o.plan?e.Plan.toJSON(o.plan):void 0),i},fromPartial(o){var i,f;const d={title:"",description:"",plan:void 0};return d.title=(i=o.title)!==null&&i!==void 0?i:"",d.description=(f=o.description)!==null&&f!==void 0?f:"",d.plan=o.plan!==void 0&&o.plan!==null?e.Plan.fromPartial(o.plan):void 0,d}},e.CancelSoftwareUpgradeProposal={encode:(o,i=t.Writer.create())=>(o.title!==""&&i.uint32(10).string(o.title),o.description!==""&&i.uint32(18).string(o.description),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={title:"",description:""};for(;f.pos>>3){case 1:h.title=f.string();break;case 2:h.description=f.string();break;default:f.skipType(7&_)}}return h},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):""}),toJSON(o){const i={};return o.title!==void 0&&(i.title=o.title),o.description!==void 0&&(i.description=o.description),i},fromPartial(o){var i,f;const d={title:"",description:""};return d.title=(i=o.title)!==null&&i!==void 0?i:"",d.description=(f=o.description)!==null&&f!==void 0?f:"",d}},e.ModuleVersion={encode:(o,i=t.Writer.create())=>(o.name!==""&&i.uint32(10).string(o.name),o.version!=="0"&&i.uint32(16).uint64(o.version),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const h={name:"",version:"0"};for(;f.pos>>3){case 1:h.name=f.string();break;case 2:h.version=r(f.uint64());break;default:f.skipType(7&_)}}return h},fromJSON:o=>({name:n(o.name)?String(o.name):"",version:n(o.version)?String(o.version):"0"}),toJSON(o){const i={};return o.name!==void 0&&(i.name=o.name),o.version!==void 0&&(i.version=o.version),i},fromPartial(o){var i,f;const d={name:"",version:"0"};return d.name=(i=o.name)!==null&&i!==void 0?i:"",d.version=(f=o.version)!==null&&f!==void 0?f:"0",d}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8644:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgCreateVestingAccountResponse=e.MsgCreateVestingAccount=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976);function u(s){return s!=null}e.protobufPackage="cosmos.vesting.v1beta1",e.MsgCreateVestingAccount={encode(s,r=t.Writer.create()){s.from_address!==""&&r.uint32(10).string(s.from_address),s.to_address!==""&&r.uint32(18).string(s.to_address);for(const n of s.amount)c.Coin.encode(n,r.uint32(26).fork()).ldelim();return s.end_time!=="0"&&r.uint32(32).int64(s.end_time),s.delayed===!0&&r.uint32(40).bool(s.delayed),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={from_address:"",to_address:"",amount:[],end_time:"0",delayed:!1};for(;n.pos>>3){case 1:i.from_address=n.string();break;case 2:i.to_address=n.string();break;case 3:i.amount.push(c.Coin.decode(n,n.uint32()));break;case 4:i.end_time=n.int64().toString();break;case 5:i.delayed=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({from_address:u(s.from_address)?String(s.from_address):"",to_address:u(s.to_address)?String(s.to_address):"",amount:Array.isArray(s==null?void 0:s.amount)?s.amount.map(r=>c.Coin.fromJSON(r)):[],end_time:u(s.end_time)?String(s.end_time):"0",delayed:!!u(s.delayed)&&!!s.delayed}),toJSON(s){const r={};return s.from_address!==void 0&&(r.from_address=s.from_address),s.to_address!==void 0&&(r.to_address=s.to_address),s.amount?r.amount=s.amount.map(n=>n?c.Coin.toJSON(n):void 0):r.amount=[],s.end_time!==void 0&&(r.end_time=s.end_time),s.delayed!==void 0&&(r.delayed=s.delayed),r},fromPartial(s){var r,n,o,i,f;const d={from_address:"",to_address:"",amount:[],end_time:"0",delayed:!1};return d.from_address=(r=s.from_address)!==null&&r!==void 0?r:"",d.to_address=(n=s.to_address)!==null&&n!==void 0?n:"",d.amount=((o=s.amount)===null||o===void 0?void 0:o.map(h=>c.Coin.fromPartial(h)))||[],d.end_time=(i=s.end_time)!==null&&i!==void 0?i:"0",d.delayed=(f=s.delayed)!==null&&f!==void 0&&f,d}},e.MsgCreateVestingAccountResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,this.CreateVestingAccount=this.CreateVestingAccount.bind(this)}CreateVestingAccount(s){const r=e.MsgCreateVestingAccount.encode(s).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",r).then(n=>e.MsgCreateVestingAccountResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4191:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(i,f,d,h){h===void 0&&(h=d),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,h){h===void 0&&(h=d),i[h]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.Any=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(){return{type_url:"",value:new Uint8Array}}e.protobufPackage="google.protobuf",e.Any={encode:(i,f=t.Writer.create())=>(i.type_url!==""&&f.uint32(10).string(i.type_url),i.value.length!==0&&f.uint32(18).bytes(i.value),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _=c();for(;d.pos>>3){case 1:_.type_url=d.string();break;case 2:_.value=d.bytes();break;default:d.skipType(7&b)}}return _},fromJSON:i=>({type_url:o(i.type_url)?String(i.type_url):"",value:o(i.value)?r(i.value):new Uint8Array}),toJSON(i){const f={};return i.type_url!==void 0&&(f.type_url=i.type_url),i.value!==void 0&&(f.value=function(d){const h=[];for(const _ of d)h.push(String.fromCharCode(_));return n(h.join(""))}(i.value!==void 0?i.value:new Uint8Array)),f},fromPartial(i){var f,d;const h=c();return h.type_url=(f=i.type_url)!==null&&f!==void 0?f:"",h.value=(d=i.value)!==null&&d!==void 0?d:new Uint8Array,h}};var u=(()=>{if(u!==void 0)return u;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const s=u.atob||(i=>u.Buffer.from(i,"base64").toString("binary"));function r(i){const f=s(i),d=new Uint8Array(f.length);for(let h=0;hu.Buffer.from(i,"binary").toString("base64"));function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6138:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.Duration=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(u){return u!=null}e.protobufPackage="google.protobuf",e.Duration={encode:(u,s=t.Writer.create())=>(u.seconds!=="0"&&s.uint32(8).int64(u.seconds),u.nanos!==0&&s.uint32(16).int32(u.nanos),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={seconds:"0",nanos:0};for(;r.pos>>3){case 1:o.seconds=r.int64().toString();break;case 2:o.nanos=r.int32();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({seconds:c(u.seconds)?String(u.seconds):"0",nanos:c(u.nanos)?Number(u.nanos):0}),toJSON(u){const s={};return u.seconds!==void 0&&(s.seconds=u.seconds),u.nanos!==void 0&&(s.nanos=Math.round(u.nanos)),s},fromPartial(u){var s,r;const n={seconds:"0",nanos:0};return n.seconds=(s=u.seconds)!==null&&s!==void 0?s:"0",n.nanos=(r=u.nanos)!==null&&r!==void 0?r:0,n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5090:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(u){return u!=null}e.protobufPackage="google.protobuf",e.Timestamp={encode:(u,s=t.Writer.create())=>(u.seconds!=="0"&&s.uint32(8).int64(u.seconds),u.nanos!==0&&s.uint32(16).int32(u.nanos),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={seconds:"0",nanos:0};for(;r.pos>>3){case 1:o.seconds=r.int64().toString();break;case 2:o.nanos=r.int32();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({seconds:c(u.seconds)?String(u.seconds):"0",nanos:c(u.nanos)?Number(u.nanos):0}),toJSON(u){const s={};return u.seconds!==void 0&&(s.seconds=u.seconds),u.nanos!==void 0&&(s.nanos=Math.round(u.nanos)),s},fromPartial(u){var s,r;const n={seconds:"0",nanos:0};return n.seconds=(s=u.seconds)!==null&&s!==void 0?s:"0",n.nanos=(r=u.nanos)!==null&&r!==void 0?r:0,n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1106:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.IdentifiedPacketFees=e.PacketFees=e.PacketFee=e.Fee=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(5414),u=p(2976);function s(r){return r!=null}e.protobufPackage="ibc.applications.fee.v1",e.Fee={encode(r,n=t.Writer.create()){for(const o of r.recv_fee)u.Coin.encode(o,n.uint32(10).fork()).ldelim();for(const o of r.ack_fee)u.Coin.encode(o,n.uint32(18).fork()).ldelim();for(const o of r.timeout_fee)u.Coin.encode(o,n.uint32(26).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={recv_fee:[],ack_fee:[],timeout_fee:[]};for(;o.pos>>3){case 1:f.recv_fee.push(u.Coin.decode(o,o.uint32()));break;case 2:f.ack_fee.push(u.Coin.decode(o,o.uint32()));break;case 3:f.timeout_fee.push(u.Coin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({recv_fee:Array.isArray(r==null?void 0:r.recv_fee)?r.recv_fee.map(n=>u.Coin.fromJSON(n)):[],ack_fee:Array.isArray(r==null?void 0:r.ack_fee)?r.ack_fee.map(n=>u.Coin.fromJSON(n)):[],timeout_fee:Array.isArray(r==null?void 0:r.timeout_fee)?r.timeout_fee.map(n=>u.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.recv_fee?n.recv_fee=r.recv_fee.map(o=>o?u.Coin.toJSON(o):void 0):n.recv_fee=[],r.ack_fee?n.ack_fee=r.ack_fee.map(o=>o?u.Coin.toJSON(o):void 0):n.ack_fee=[],r.timeout_fee?n.timeout_fee=r.timeout_fee.map(o=>o?u.Coin.toJSON(o):void 0):n.timeout_fee=[],n},fromPartial(r){var n,o,i;const f={recv_fee:[],ack_fee:[],timeout_fee:[]};return f.recv_fee=((n=r.recv_fee)===null||n===void 0?void 0:n.map(d=>u.Coin.fromPartial(d)))||[],f.ack_fee=((o=r.ack_fee)===null||o===void 0?void 0:o.map(d=>u.Coin.fromPartial(d)))||[],f.timeout_fee=((i=r.timeout_fee)===null||i===void 0?void 0:i.map(d=>u.Coin.fromPartial(d)))||[],f}},e.PacketFee={encode(r,n=t.Writer.create()){r.fee!==void 0&&e.Fee.encode(r.fee,n.uint32(10).fork()).ldelim(),r.refund_address!==""&&n.uint32(18).string(r.refund_address);for(const o of r.relayers)n.uint32(26).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={fee:void 0,refund_address:"",relayers:[]};for(;o.pos>>3){case 1:f.fee=e.Fee.decode(o,o.uint32());break;case 2:f.refund_address=o.string();break;case 3:f.relayers.push(o.string());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({fee:s(r.fee)?e.Fee.fromJSON(r.fee):void 0,refund_address:s(r.refund_address)?String(r.refund_address):"",relayers:Array.isArray(r==null?void 0:r.relayers)?r.relayers.map(n=>String(n)):[]}),toJSON(r){const n={};return r.fee!==void 0&&(n.fee=r.fee?e.Fee.toJSON(r.fee):void 0),r.refund_address!==void 0&&(n.refund_address=r.refund_address),r.relayers?n.relayers=r.relayers.map(o=>o):n.relayers=[],n},fromPartial(r){var n,o;const i={fee:void 0,refund_address:"",relayers:[]};return i.fee=r.fee!==void 0&&r.fee!==null?e.Fee.fromPartial(r.fee):void 0,i.refund_address=(n=r.refund_address)!==null&&n!==void 0?n:"",i.relayers=((o=r.relayers)===null||o===void 0?void 0:o.map(f=>f))||[],i}},e.PacketFees={encode(r,n=t.Writer.create()){for(const o of r.packet_fees)e.PacketFee.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_fees:[]};for(;o.pos>>3==1?f.packet_fees.push(e.PacketFee.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({packet_fees:Array.isArray(r==null?void 0:r.packet_fees)?r.packet_fees.map(n=>e.PacketFee.fromJSON(n)):[]}),toJSON(r){const n={};return r.packet_fees?n.packet_fees=r.packet_fees.map(o=>o?e.PacketFee.toJSON(o):void 0):n.packet_fees=[],n},fromPartial(r){var n;const o={packet_fees:[]};return o.packet_fees=((n=r.packet_fees)===null||n===void 0?void 0:n.map(i=>e.PacketFee.fromPartial(i)))||[],o}},e.IdentifiedPacketFees={encode(r,n=t.Writer.create()){r.packet_id!==void 0&&c.PacketId.encode(r.packet_id,n.uint32(10).fork()).ldelim();for(const o of r.packet_fees)e.PacketFee.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_id:void 0,packet_fees:[]};for(;o.pos>>3){case 1:f.packet_id=c.PacketId.decode(o,o.uint32());break;case 2:f.packet_fees.push(e.PacketFee.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({packet_id:s(r.packet_id)?c.PacketId.fromJSON(r.packet_id):void 0,packet_fees:Array.isArray(r==null?void 0:r.packet_fees)?r.packet_fees.map(n=>e.PacketFee.fromJSON(n)):[]}),toJSON(r){const n={};return r.packet_id!==void 0&&(n.packet_id=r.packet_id?c.PacketId.toJSON(r.packet_id):void 0),r.packet_fees?n.packet_fees=r.packet_fees.map(o=>o?e.PacketFee.toJSON(o):void 0):n.packet_fees=[],n},fromPartial(r){var n;const o={packet_id:void 0,packet_fees:[]};return o.packet_id=r.packet_id!==void 0&&r.packet_id!==null?c.PacketId.fromPartial(r.packet_id):void 0,o.packet_fees=((n=r.packet_fees)===null||n===void 0?void 0:n.map(i=>e.PacketFee.fromPartial(i)))||[],o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6065:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgPayPacketFeeAsyncResponse=e.MsgPayPacketFeeAsync=e.MsgPayPacketFeeResponse=e.MsgPayPacketFee=e.MsgRegisterCounterpartyPayeeResponse=e.MsgRegisterCounterpartyPayee=e.MsgRegisterPayeeResponse=e.MsgRegisterPayee=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(1106),u=p(5414);function s(r){return r!=null}e.protobufPackage="ibc.applications.fee.v1",e.MsgRegisterPayee={encode:(r,n=t.Writer.create())=>(r.port_id!==""&&n.uint32(10).string(r.port_id),r.channel_id!==""&&n.uint32(18).string(r.channel_id),r.relayer!==""&&n.uint32(26).string(r.relayer),r.payee!==""&&n.uint32(34).string(r.payee),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={port_id:"",channel_id:"",relayer:"",payee:""};for(;o.pos>>3){case 1:f.port_id=o.string();break;case 2:f.channel_id=o.string();break;case 3:f.relayer=o.string();break;case 4:f.payee=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({port_id:s(r.port_id)?String(r.port_id):"",channel_id:s(r.channel_id)?String(r.channel_id):"",relayer:s(r.relayer)?String(r.relayer):"",payee:s(r.payee)?String(r.payee):""}),toJSON(r){const n={};return r.port_id!==void 0&&(n.port_id=r.port_id),r.channel_id!==void 0&&(n.channel_id=r.channel_id),r.relayer!==void 0&&(n.relayer=r.relayer),r.payee!==void 0&&(n.payee=r.payee),n},fromPartial(r){var n,o,i,f;const d={port_id:"",channel_id:"",relayer:"",payee:""};return d.port_id=(n=r.port_id)!==null&&n!==void 0?n:"",d.channel_id=(o=r.channel_id)!==null&&o!==void 0?o:"",d.relayer=(i=r.relayer)!==null&&i!==void 0?i:"",d.payee=(f=r.payee)!==null&&f!==void 0?f:"",d}},e.MsgRegisterPayeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgRegisterCounterpartyPayee={encode:(r,n=t.Writer.create())=>(r.port_id!==""&&n.uint32(10).string(r.port_id),r.channel_id!==""&&n.uint32(18).string(r.channel_id),r.relayer!==""&&n.uint32(26).string(r.relayer),r.counterparty_payee!==""&&n.uint32(34).string(r.counterparty_payee),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={port_id:"",channel_id:"",relayer:"",counterparty_payee:""};for(;o.pos>>3){case 1:f.port_id=o.string();break;case 2:f.channel_id=o.string();break;case 3:f.relayer=o.string();break;case 4:f.counterparty_payee=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({port_id:s(r.port_id)?String(r.port_id):"",channel_id:s(r.channel_id)?String(r.channel_id):"",relayer:s(r.relayer)?String(r.relayer):"",counterparty_payee:s(r.counterparty_payee)?String(r.counterparty_payee):""}),toJSON(r){const n={};return r.port_id!==void 0&&(n.port_id=r.port_id),r.channel_id!==void 0&&(n.channel_id=r.channel_id),r.relayer!==void 0&&(n.relayer=r.relayer),r.counterparty_payee!==void 0&&(n.counterparty_payee=r.counterparty_payee),n},fromPartial(r){var n,o,i,f;const d={port_id:"",channel_id:"",relayer:"",counterparty_payee:""};return d.port_id=(n=r.port_id)!==null&&n!==void 0?n:"",d.channel_id=(o=r.channel_id)!==null&&o!==void 0?o:"",d.relayer=(i=r.relayer)!==null&&i!==void 0?i:"",d.counterparty_payee=(f=r.counterparty_payee)!==null&&f!==void 0?f:"",d}},e.MsgRegisterCounterpartyPayeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgPayPacketFee={encode(r,n=t.Writer.create()){r.fee!==void 0&&c.Fee.encode(r.fee,n.uint32(10).fork()).ldelim(),r.source_port_id!==""&&n.uint32(18).string(r.source_port_id),r.source_channel_id!==""&&n.uint32(26).string(r.source_channel_id),r.signer!==""&&n.uint32(34).string(r.signer);for(const o of r.relayers)n.uint32(42).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={fee:void 0,source_port_id:"",source_channel_id:"",signer:"",relayers:[]};for(;o.pos>>3){case 1:f.fee=c.Fee.decode(o,o.uint32());break;case 2:f.source_port_id=o.string();break;case 3:f.source_channel_id=o.string();break;case 4:f.signer=o.string();break;case 5:f.relayers.push(o.string());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({fee:s(r.fee)?c.Fee.fromJSON(r.fee):void 0,source_port_id:s(r.source_port_id)?String(r.source_port_id):"",source_channel_id:s(r.source_channel_id)?String(r.source_channel_id):"",signer:s(r.signer)?String(r.signer):"",relayers:Array.isArray(r==null?void 0:r.relayers)?r.relayers.map(n=>String(n)):[]}),toJSON(r){const n={};return r.fee!==void 0&&(n.fee=r.fee?c.Fee.toJSON(r.fee):void 0),r.source_port_id!==void 0&&(n.source_port_id=r.source_port_id),r.source_channel_id!==void 0&&(n.source_channel_id=r.source_channel_id),r.signer!==void 0&&(n.signer=r.signer),r.relayers?n.relayers=r.relayers.map(o=>o):n.relayers=[],n},fromPartial(r){var n,o,i,f;const d={fee:void 0,source_port_id:"",source_channel_id:"",signer:"",relayers:[]};return d.fee=r.fee!==void 0&&r.fee!==null?c.Fee.fromPartial(r.fee):void 0,d.source_port_id=(n=r.source_port_id)!==null&&n!==void 0?n:"",d.source_channel_id=(o=r.source_channel_id)!==null&&o!==void 0?o:"",d.signer=(i=r.signer)!==null&&i!==void 0?i:"",d.relayers=((f=r.relayers)===null||f===void 0?void 0:f.map(h=>h))||[],d}},e.MsgPayPacketFeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgPayPacketFeeAsync={encode:(r,n=t.Writer.create())=>(r.packet_id!==void 0&&u.PacketId.encode(r.packet_id,n.uint32(10).fork()).ldelim(),r.packet_fee!==void 0&&c.PacketFee.encode(r.packet_fee,n.uint32(18).fork()).ldelim(),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_id:void 0,packet_fee:void 0};for(;o.pos>>3){case 1:f.packet_id=u.PacketId.decode(o,o.uint32());break;case 2:f.packet_fee=c.PacketFee.decode(o,o.uint32());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({packet_id:s(r.packet_id)?u.PacketId.fromJSON(r.packet_id):void 0,packet_fee:s(r.packet_fee)?c.PacketFee.fromJSON(r.packet_fee):void 0}),toJSON(r){const n={};return r.packet_id!==void 0&&(n.packet_id=r.packet_id?u.PacketId.toJSON(r.packet_id):void 0),r.packet_fee!==void 0&&(n.packet_fee=r.packet_fee?c.PacketFee.toJSON(r.packet_fee):void 0),n},fromPartial(r){const n={packet_id:void 0,packet_fee:void 0};return n.packet_id=r.packet_id!==void 0&&r.packet_id!==null?u.PacketId.fromPartial(r.packet_id):void 0,n.packet_fee=r.packet_fee!==void 0&&r.packet_fee!==null?c.PacketFee.fromPartial(r.packet_fee):void 0,n}},e.MsgPayPacketFeeAsyncResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgClientImpl=class{constructor(r){this.rpc=r,this.RegisterPayee=this.RegisterPayee.bind(this),this.RegisterCounterpartyPayee=this.RegisterCounterpartyPayee.bind(this),this.PayPacketFee=this.PayPacketFee.bind(this),this.PayPacketFeeAsync=this.PayPacketFeeAsync.bind(this)}RegisterPayee(r){const n=e.MsgRegisterPayee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","RegisterPayee",n).then(o=>e.MsgRegisterPayeeResponse.decode(new t.Reader(o)))}RegisterCounterpartyPayee(r){const n=e.MsgRegisterCounterpartyPayee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","RegisterCounterpartyPayee",n).then(o=>e.MsgRegisterCounterpartyPayeeResponse.decode(new t.Reader(o)))}PayPacketFee(r){const n=e.MsgPayPacketFee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","PayPacketFee",n).then(o=>e.MsgPayPacketFeeResponse.decode(new t.Reader(o)))}PayPacketFeeAsync(r){const n=e.MsgPayPacketFeeAsync.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","PayPacketFeeAsync",n).then(o=>e.MsgPayPacketFeeAsyncResponse.decode(new t.Reader(o)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},865:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgTransferResponse=e.MsgTransfer=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976),u=p(5650);function s(n){return n.toString()}function r(n){return n!=null}e.protobufPackage="ibc.applications.transfer.v1",e.MsgTransfer={encode:(n,o=t.Writer.create())=>(n.source_port!==""&&o.uint32(10).string(n.source_port),n.source_channel!==""&&o.uint32(18).string(n.source_channel),n.token!==void 0&&c.Coin.encode(n.token,o.uint32(26).fork()).ldelim(),n.sender!==""&&o.uint32(34).string(n.sender),n.receiver!==""&&o.uint32(42).string(n.receiver),n.timeout_height!==void 0&&u.Height.encode(n.timeout_height,o.uint32(50).fork()).ldelim(),n.timeout_timestamp!=="0"&&o.uint32(56).uint64(n.timeout_timestamp),n.memo!==""&&o.uint32(66).string(n.memo),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={source_port:"",source_channel:"",token:void 0,sender:"",receiver:"",timeout_height:void 0,timeout_timestamp:"0",memo:""};for(;i.pos>>3){case 1:d.source_port=i.string();break;case 2:d.source_channel=i.string();break;case 3:d.token=c.Coin.decode(i,i.uint32());break;case 4:d.sender=i.string();break;case 5:d.receiver=i.string();break;case 6:d.timeout_height=u.Height.decode(i,i.uint32());break;case 7:d.timeout_timestamp=s(i.uint64());break;case 8:d.memo=i.string();break;default:i.skipType(7&h)}}return d},fromJSON:n=>({source_port:r(n.source_port)?String(n.source_port):"",source_channel:r(n.source_channel)?String(n.source_channel):"",token:r(n.token)?c.Coin.fromJSON(n.token):void 0,sender:r(n.sender)?String(n.sender):"",receiver:r(n.receiver)?String(n.receiver):"",timeout_height:r(n.timeout_height)?u.Height.fromJSON(n.timeout_height):void 0,timeout_timestamp:r(n.timeout_timestamp)?String(n.timeout_timestamp):"0",memo:r(n.memo)?String(n.memo):""}),toJSON(n){const o={};return n.source_port!==void 0&&(o.source_port=n.source_port),n.source_channel!==void 0&&(o.source_channel=n.source_channel),n.token!==void 0&&(o.token=n.token?c.Coin.toJSON(n.token):void 0),n.sender!==void 0&&(o.sender=n.sender),n.receiver!==void 0&&(o.receiver=n.receiver),n.timeout_height!==void 0&&(o.timeout_height=n.timeout_height?u.Height.toJSON(n.timeout_height):void 0),n.timeout_timestamp!==void 0&&(o.timeout_timestamp=n.timeout_timestamp),n.memo!==void 0&&(o.memo=n.memo),o},fromPartial(n){var o,i,f,d,h,_;const b={source_port:"",source_channel:"",token:void 0,sender:"",receiver:"",timeout_height:void 0,timeout_timestamp:"0",memo:""};return b.source_port=(o=n.source_port)!==null&&o!==void 0?o:"",b.source_channel=(i=n.source_channel)!==null&&i!==void 0?i:"",b.token=n.token!==void 0&&n.token!==null?c.Coin.fromPartial(n.token):void 0,b.sender=(f=n.sender)!==null&&f!==void 0?f:"",b.receiver=(d=n.receiver)!==null&&d!==void 0?d:"",b.timeout_height=n.timeout_height!==void 0&&n.timeout_height!==null?u.Height.fromPartial(n.timeout_height):void 0,b.timeout_timestamp=(h=n.timeout_timestamp)!==null&&h!==void 0?h:"0",b.memo=(_=n.memo)!==null&&_!==void 0?_:"",b}},e.MsgTransferResponse={encode:(n,o=t.Writer.create())=>(n.sequence!=="0"&&o.uint32(8).uint64(n.sequence),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={sequence:"0"};for(;i.pos>>3==1?d.sequence=s(i.uint64()):i.skipType(7&h)}return d},fromJSON:n=>({sequence:r(n.sequence)?String(n.sequence):"0"}),toJSON(n){const o={};return n.sequence!==void 0&&(o.sequence=n.sequence),o},fromPartial(n){var o;const i={sequence:"0"};return i.sequence=(o=n.sequence)!==null&&o!==void 0?o:"0",i}},e.MsgClientImpl=class{constructor(n){this.rpc=n,this.Transfer=this.Transfer.bind(this)}Transfer(n){const o=e.MsgTransfer.encode(n).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",o).then(i=>e.MsgTransferResponse.decode(new t.Reader(i)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5414:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(N,C,x,P){P===void 0&&(P=x),Object.defineProperty(N,P,{enumerable:!0,get:function(){return C[x]}})}:function(N,C,x,P){P===void 0&&(P=x),N[P]=C[x]}),O=this&&this.__setModuleDefault||(Object.create?function(N,C){Object.defineProperty(N,"default",{enumerable:!0,value:C})}:function(N,C){N.default=C}),k=this&&this.__importStar||function(N){if(N&&N.__esModule)return N;var C={};if(N!=null)for(var x in N)x!=="default"&&Object.prototype.hasOwnProperty.call(N,x)&&w(C,N,x);return O(C,N),C},S=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(e,"__esModule",{value:!0}),e.Acknowledgement=e.PacketId=e.PacketState=e.Packet=e.Counterparty=e.IdentifiedChannel=e.Channel=e.orderToJSON=e.orderFromJSON=e.Order=e.stateToJSON=e.stateFromJSON=e.State=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(5650);var u,s;function r(N){switch(N){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return u.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return u.STATE_INIT;case 2:case"STATE_TRYOPEN":return u.STATE_TRYOPEN;case 3:case"STATE_OPEN":return u.STATE_OPEN;case 4:case"STATE_CLOSED":return u.STATE_CLOSED;default:return u.UNRECOGNIZED}}function n(N){switch(N){case u.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case u.STATE_INIT:return"STATE_INIT";case u.STATE_TRYOPEN:return"STATE_TRYOPEN";case u.STATE_OPEN:return"STATE_OPEN";case u.STATE_CLOSED:return"STATE_CLOSED";default:return"UNKNOWN"}}function o(N){switch(N){case 0:case"ORDER_NONE_UNSPECIFIED":return s.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return s.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return s.ORDER_ORDERED;default:return s.UNRECOGNIZED}}function i(N){switch(N){case s.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case s.ORDER_UNORDERED:return"ORDER_UNORDERED";case s.ORDER_ORDERED:return"ORDER_ORDERED";default:return"UNKNOWN"}}function f(){return{sequence:"0",source_port:"",source_channel:"",destination_port:"",destination_channel:"",data:new Uint8Array,timeout_height:void 0,timeout_timestamp:"0"}}function d(){return{port_id:"",channel_id:"",sequence:"0",data:new Uint8Array}}e.protobufPackage="ibc.core.channel.v1",function(N){N[N.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",N[N.STATE_INIT=1]="STATE_INIT",N[N.STATE_TRYOPEN=2]="STATE_TRYOPEN",N[N.STATE_OPEN=3]="STATE_OPEN",N[N.STATE_CLOSED=4]="STATE_CLOSED",N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.State||(e.State={})),e.stateFromJSON=r,e.stateToJSON=n,function(N){N[N.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",N[N.ORDER_UNORDERED=1]="ORDER_UNORDERED",N[N.ORDER_ORDERED=2]="ORDER_ORDERED",N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.Order||(e.Order={})),e.orderFromJSON=o,e.orderToJSON=i,e.Channel={encode(N,C=t.Writer.create()){N.state!==0&&C.uint32(8).int32(N.state),N.ordering!==0&&C.uint32(16).int32(N.ordering),N.counterparty!==void 0&&e.Counterparty.encode(N.counterparty,C.uint32(26).fork()).ldelim();for(const x of N.connection_hops)C.uint32(34).string(x);return N.version!==""&&C.uint32(42).string(N.version),C},decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:""};for(;x.pos>>3){case 1:v.state=x.int32();break;case 2:v.ordering=x.int32();break;case 3:v.counterparty=e.Counterparty.decode(x,x.uint32());break;case 4:v.connection_hops.push(x.string());break;case 5:v.version=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({state:M(N.state)?r(N.state):0,ordering:M(N.ordering)?o(N.ordering):0,counterparty:M(N.counterparty)?e.Counterparty.fromJSON(N.counterparty):void 0,connection_hops:Array.isArray(N==null?void 0:N.connection_hops)?N.connection_hops.map(C=>String(C)):[],version:M(N.version)?String(N.version):""}),toJSON(N){const C={};return N.state!==void 0&&(C.state=n(N.state)),N.ordering!==void 0&&(C.ordering=i(N.ordering)),N.counterparty!==void 0&&(C.counterparty=N.counterparty?e.Counterparty.toJSON(N.counterparty):void 0),N.connection_hops?C.connection_hops=N.connection_hops.map(x=>x):C.connection_hops=[],N.version!==void 0&&(C.version=N.version),C},fromPartial(N){var C,x,P,v;const m={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:""};return m.state=(C=N.state)!==null&&C!==void 0?C:0,m.ordering=(x=N.ordering)!==null&&x!==void 0?x:0,m.counterparty=N.counterparty!==void 0&&N.counterparty!==null?e.Counterparty.fromPartial(N.counterparty):void 0,m.connection_hops=((P=N.connection_hops)===null||P===void 0?void 0:P.map(E=>E))||[],m.version=(v=N.version)!==null&&v!==void 0?v:"",m}},e.IdentifiedChannel={encode(N,C=t.Writer.create()){N.state!==0&&C.uint32(8).int32(N.state),N.ordering!==0&&C.uint32(16).int32(N.ordering),N.counterparty!==void 0&&e.Counterparty.encode(N.counterparty,C.uint32(26).fork()).ldelim();for(const x of N.connection_hops)C.uint32(34).string(x);return N.version!==""&&C.uint32(42).string(N.version),N.port_id!==""&&C.uint32(50).string(N.port_id),N.channel_id!==""&&C.uint32(58).string(N.channel_id),C},decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:"",port_id:"",channel_id:""};for(;x.pos>>3){case 1:v.state=x.int32();break;case 2:v.ordering=x.int32();break;case 3:v.counterparty=e.Counterparty.decode(x,x.uint32());break;case 4:v.connection_hops.push(x.string());break;case 5:v.version=x.string();break;case 6:v.port_id=x.string();break;case 7:v.channel_id=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({state:M(N.state)?r(N.state):0,ordering:M(N.ordering)?o(N.ordering):0,counterparty:M(N.counterparty)?e.Counterparty.fromJSON(N.counterparty):void 0,connection_hops:Array.isArray(N==null?void 0:N.connection_hops)?N.connection_hops.map(C=>String(C)):[],version:M(N.version)?String(N.version):"",port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):""}),toJSON(N){const C={};return N.state!==void 0&&(C.state=n(N.state)),N.ordering!==void 0&&(C.ordering=i(N.ordering)),N.counterparty!==void 0&&(C.counterparty=N.counterparty?e.Counterparty.toJSON(N.counterparty):void 0),N.connection_hops?C.connection_hops=N.connection_hops.map(x=>x):C.connection_hops=[],N.version!==void 0&&(C.version=N.version),N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),C},fromPartial(N){var C,x,P,v,m,E;const B={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:"",port_id:"",channel_id:""};return B.state=(C=N.state)!==null&&C!==void 0?C:0,B.ordering=(x=N.ordering)!==null&&x!==void 0?x:0,B.counterparty=N.counterparty!==void 0&&N.counterparty!==null?e.Counterparty.fromPartial(N.counterparty):void 0,B.connection_hops=((P=N.connection_hops)===null||P===void 0?void 0:P.map(T=>T))||[],B.version=(v=N.version)!==null&&v!==void 0?v:"",B.port_id=(m=N.port_id)!==null&&m!==void 0?m:"",B.channel_id=(E=N.channel_id)!==null&&E!==void 0?E:"",B}},e.Counterparty={encode:(N,C=t.Writer.create())=>(N.port_id!==""&&C.uint32(10).string(N.port_id),N.channel_id!==""&&C.uint32(18).string(N.channel_id),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={port_id:"",channel_id:""};for(;x.pos>>3){case 1:v.port_id=x.string();break;case 2:v.channel_id=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):""}),toJSON(N){const C={};return N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),C},fromPartial(N){var C,x;const P={port_id:"",channel_id:""};return P.port_id=(C=N.port_id)!==null&&C!==void 0?C:"",P.channel_id=(x=N.channel_id)!==null&&x!==void 0?x:"",P}},e.Packet={encode:(N,C=t.Writer.create())=>(N.sequence!=="0"&&C.uint32(8).uint64(N.sequence),N.source_port!==""&&C.uint32(18).string(N.source_port),N.source_channel!==""&&C.uint32(26).string(N.source_channel),N.destination_port!==""&&C.uint32(34).string(N.destination_port),N.destination_channel!==""&&C.uint32(42).string(N.destination_channel),N.data.length!==0&&C.uint32(50).bytes(N.data),N.timeout_height!==void 0&&c.Height.encode(N.timeout_height,C.uint32(58).fork()).ldelim(),N.timeout_timestamp!=="0"&&C.uint32(64).uint64(N.timeout_timestamp),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v=f();for(;x.pos>>3){case 1:v.sequence=j(x.uint64());break;case 2:v.source_port=x.string();break;case 3:v.source_channel=x.string();break;case 4:v.destination_port=x.string();break;case 5:v.destination_channel=x.string();break;case 6:v.data=x.bytes();break;case 7:v.timeout_height=c.Height.decode(x,x.uint32());break;case 8:v.timeout_timestamp=j(x.uint64());break;default:x.skipType(7&m)}}return v},fromJSON:N=>({sequence:M(N.sequence)?String(N.sequence):"0",source_port:M(N.source_port)?String(N.source_port):"",source_channel:M(N.source_channel)?String(N.source_channel):"",destination_port:M(N.destination_port)?String(N.destination_port):"",destination_channel:M(N.destination_channel)?String(N.destination_channel):"",data:M(N.data)?b(N.data):new Uint8Array,timeout_height:M(N.timeout_height)?c.Height.fromJSON(N.timeout_height):void 0,timeout_timestamp:M(N.timeout_timestamp)?String(N.timeout_timestamp):"0"}),toJSON(N){const C={};return N.sequence!==void 0&&(C.sequence=N.sequence),N.source_port!==void 0&&(C.source_port=N.source_port),N.source_channel!==void 0&&(C.source_channel=N.source_channel),N.destination_port!==void 0&&(C.destination_port=N.destination_port),N.destination_channel!==void 0&&(C.destination_channel=N.destination_channel),N.data!==void 0&&(C.data=l(N.data!==void 0?N.data:new Uint8Array)),N.timeout_height!==void 0&&(C.timeout_height=N.timeout_height?c.Height.toJSON(N.timeout_height):void 0),N.timeout_timestamp!==void 0&&(C.timeout_timestamp=N.timeout_timestamp),C},fromPartial(N){var C,x,P,v,m,E,B;const T=f();return T.sequence=(C=N.sequence)!==null&&C!==void 0?C:"0",T.source_port=(x=N.source_port)!==null&&x!==void 0?x:"",T.source_channel=(P=N.source_channel)!==null&&P!==void 0?P:"",T.destination_port=(v=N.destination_port)!==null&&v!==void 0?v:"",T.destination_channel=(m=N.destination_channel)!==null&&m!==void 0?m:"",T.data=(E=N.data)!==null&&E!==void 0?E:new Uint8Array,T.timeout_height=N.timeout_height!==void 0&&N.timeout_height!==null?c.Height.fromPartial(N.timeout_height):void 0,T.timeout_timestamp=(B=N.timeout_timestamp)!==null&&B!==void 0?B:"0",T}},e.PacketState={encode:(N,C=t.Writer.create())=>(N.port_id!==""&&C.uint32(10).string(N.port_id),N.channel_id!==""&&C.uint32(18).string(N.channel_id),N.sequence!=="0"&&C.uint32(24).uint64(N.sequence),N.data.length!==0&&C.uint32(34).bytes(N.data),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v=d();for(;x.pos>>3){case 1:v.port_id=x.string();break;case 2:v.channel_id=x.string();break;case 3:v.sequence=j(x.uint64());break;case 4:v.data=x.bytes();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):"",sequence:M(N.sequence)?String(N.sequence):"0",data:M(N.data)?b(N.data):new Uint8Array}),toJSON(N){const C={};return N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),N.sequence!==void 0&&(C.sequence=N.sequence),N.data!==void 0&&(C.data=l(N.data!==void 0?N.data:new Uint8Array)),C},fromPartial(N){var C,x,P,v;const m=d();return m.port_id=(C=N.port_id)!==null&&C!==void 0?C:"",m.channel_id=(x=N.channel_id)!==null&&x!==void 0?x:"",m.sequence=(P=N.sequence)!==null&&P!==void 0?P:"0",m.data=(v=N.data)!==null&&v!==void 0?v:new Uint8Array,m}},e.PacketId={encode:(N,C=t.Writer.create())=>(N.port_id!==""&&C.uint32(10).string(N.port_id),N.channel_id!==""&&C.uint32(18).string(N.channel_id),N.sequence!=="0"&&C.uint32(24).uint64(N.sequence),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={port_id:"",channel_id:"",sequence:"0"};for(;x.pos>>3){case 1:v.port_id=x.string();break;case 2:v.channel_id=x.string();break;case 3:v.sequence=j(x.uint64());break;default:x.skipType(7&m)}}return v},fromJSON:N=>({port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):"",sequence:M(N.sequence)?String(N.sequence):"0"}),toJSON(N){const C={};return N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),N.sequence!==void 0&&(C.sequence=N.sequence),C},fromPartial(N){var C,x,P;const v={port_id:"",channel_id:"",sequence:"0"};return v.port_id=(C=N.port_id)!==null&&C!==void 0?C:"",v.channel_id=(x=N.channel_id)!==null&&x!==void 0?x:"",v.sequence=(P=N.sequence)!==null&&P!==void 0?P:"0",v}},e.Acknowledgement={encode:(N,C=t.Writer.create())=>(N.result!==void 0&&C.uint32(170).bytes(N.result),N.error!==void 0&&C.uint32(178).string(N.error),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={result:void 0,error:void 0};for(;x.pos>>3){case 21:v.result=x.bytes();break;case 22:v.error=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({result:M(N.result)?b(N.result):void 0,error:M(N.error)?String(N.error):void 0}),toJSON(N){const C={};return N.result!==void 0&&(C.result=N.result!==void 0?l(N.result):void 0),N.error!==void 0&&(C.error=N.error),C},fromPartial(N){var C,x;const P={result:void 0,error:void 0};return P.result=(C=N.result)!==null&&C!==void 0?C:void 0,P.error=(x=N.error)!==null&&x!==void 0?x:void 0,P}};var h=(()=>{if(h!==void 0)return h;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const _=h.atob||(N=>h.Buffer.from(N,"base64").toString("binary"));function b(N){const C=_(N),x=new Uint8Array(C.length);for(let P=0;Ph.Buffer.from(N,"binary").toString("base64"));function l(N){const C=[];for(const x of N)C.push(String.fromCharCode(x));return I(C.join(""))}function j(N){return N.toString()}function M(N){return N!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7579:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(v,m,E,B){B===void 0&&(B=E),Object.defineProperty(v,B,{enumerable:!0,get:function(){return m[E]}})}:function(v,m,E,B){B===void 0&&(B=E),v[B]=m[E]}),O=this&&this.__setModuleDefault||(Object.create?function(v,m){Object.defineProperty(v,"default",{enumerable:!0,value:m})}:function(v,m){v.default=m}),k=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var m={};if(v!=null)for(var E in v)E!=="default"&&Object.prototype.hasOwnProperty.call(v,E)&&w(m,v,E);return O(m,v),m},S=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgAcknowledgementResponse=e.MsgAcknowledgement=e.MsgTimeoutOnCloseResponse=e.MsgTimeoutOnClose=e.MsgTimeoutResponse=e.MsgTimeout=e.MsgRecvPacketResponse=e.MsgRecvPacket=e.MsgChannelCloseConfirmResponse=e.MsgChannelCloseConfirm=e.MsgChannelCloseInitResponse=e.MsgChannelCloseInit=e.MsgChannelOpenConfirmResponse=e.MsgChannelOpenConfirm=e.MsgChannelOpenAckResponse=e.MsgChannelOpenAck=e.MsgChannelOpenTryResponse=e.MsgChannelOpenTry=e.MsgChannelOpenInitResponse=e.MsgChannelOpenInit=e.responseResultTypeToJSON=e.responseResultTypeFromJSON=e.ResponseResultType=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(5414),u=p(5650);var s;function r(v){switch(v){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return s.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return s.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return s.RESPONSE_RESULT_TYPE_SUCCESS;default:return s.UNRECOGNIZED}}function n(v){switch(v){case s.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case s.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case s.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";default:return"UNKNOWN"}}function o(){return{port_id:"",previous_channel_id:"",channel:void 0,counterparty_version:"",proof_init:new Uint8Array,proof_height:void 0,signer:""}}function i(){return{port_id:"",channel_id:"",counterparty_channel_id:"",counterparty_version:"",proof_try:new Uint8Array,proof_height:void 0,signer:""}}function f(){return{port_id:"",channel_id:"",proof_ack:new Uint8Array,proof_height:void 0,signer:""}}function d(){return{port_id:"",channel_id:"",proof_init:new Uint8Array,proof_height:void 0,signer:""}}function h(){return{packet:void 0,proof_commitment:new Uint8Array,proof_height:void 0,signer:""}}function _(){return{packet:void 0,proof_unreceived:new Uint8Array,proof_height:void 0,next_sequence_recv:"0",signer:""}}function b(){return{packet:void 0,proof_unreceived:new Uint8Array,proof_close:new Uint8Array,proof_height:void 0,next_sequence_recv:"0",signer:""}}function I(){return{packet:void 0,acknowledgement:new Uint8Array,proof_acked:new Uint8Array,proof_height:void 0,signer:""}}e.protobufPackage="ibc.core.channel.v1",function(v){v[v.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",v[v.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",v[v.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.ResponseResultType||(e.ResponseResultType={})),e.responseResultTypeFromJSON=r,e.responseResultTypeToJSON=n,e.MsgChannelOpenInit={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel!==void 0&&c.Channel.encode(v.channel,m.uint32(18).fork()).ldelim(),v.signer!==""&&m.uint32(26).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={port_id:"",channel:void 0,signer:""};for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel=c.Channel.decode(E,E.uint32());break;case 3:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel:P(v.channel)?c.Channel.fromJSON(v.channel):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel!==void 0&&(m.channel=v.channel?c.Channel.toJSON(v.channel):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E;const B={port_id:"",channel:void 0,signer:""};return B.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",B.channel=v.channel!==void 0&&v.channel!==null?c.Channel.fromPartial(v.channel):void 0,B.signer=(E=v.signer)!==null&&E!==void 0?E:"",B}},e.MsgChannelOpenInitResponse={encode:(v,m=t.Writer.create())=>(v.channel_id!==""&&m.uint32(10).string(v.channel_id),v.version!==""&&m.uint32(18).string(v.version),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={channel_id:"",version:""};for(;E.pos>>3){case 1:T.channel_id=E.string();break;case 2:T.version=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({channel_id:P(v.channel_id)?String(v.channel_id):"",version:P(v.version)?String(v.version):""}),toJSON(v){const m={};return v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.version!==void 0&&(m.version=v.version),m},fromPartial(v){var m,E;const B={channel_id:"",version:""};return B.channel_id=(m=v.channel_id)!==null&&m!==void 0?m:"",B.version=(E=v.version)!==null&&E!==void 0?E:"",B}},e.MsgChannelOpenTry={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.previous_channel_id!==""&&m.uint32(18).string(v.previous_channel_id),v.channel!==void 0&&c.Channel.encode(v.channel,m.uint32(26).fork()).ldelim(),v.counterparty_version!==""&&m.uint32(34).string(v.counterparty_version),v.proof_init.length!==0&&m.uint32(42).bytes(v.proof_init),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(50).fork()).ldelim(),v.signer!==""&&m.uint32(58).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=o();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.previous_channel_id=E.string();break;case 3:T.channel=c.Channel.decode(E,E.uint32());break;case 4:T.counterparty_version=E.string();break;case 5:T.proof_init=E.bytes();break;case 6:T.proof_height=u.Height.decode(E,E.uint32());break;case 7:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",previous_channel_id:P(v.previous_channel_id)?String(v.previous_channel_id):"",channel:P(v.channel)?c.Channel.fromJSON(v.channel):void 0,counterparty_version:P(v.counterparty_version)?String(v.counterparty_version):"",proof_init:P(v.proof_init)?M(v.proof_init):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.previous_channel_id!==void 0&&(m.previous_channel_id=v.previous_channel_id),v.channel!==void 0&&(m.channel=v.channel?c.Channel.toJSON(v.channel):void 0),v.counterparty_version!==void 0&&(m.counterparty_version=v.counterparty_version),v.proof_init!==void 0&&(m.proof_init=C(v.proof_init!==void 0?v.proof_init:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T,q;const te=o();return te.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",te.previous_channel_id=(E=v.previous_channel_id)!==null&&E!==void 0?E:"",te.channel=v.channel!==void 0&&v.channel!==null?c.Channel.fromPartial(v.channel):void 0,te.counterparty_version=(B=v.counterparty_version)!==null&&B!==void 0?B:"",te.proof_init=(T=v.proof_init)!==null&&T!==void 0?T:new Uint8Array,te.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,te.signer=(q=v.signer)!==null&&q!==void 0?q:"",te}},e.MsgChannelOpenTryResponse={encode:(v,m=t.Writer.create())=>(v.version!==""&&m.uint32(10).string(v.version),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={version:""};for(;E.pos>>3==1?T.version=E.string():E.skipType(7&q)}return T},fromJSON:v=>({version:P(v.version)?String(v.version):""}),toJSON(v){const m={};return v.version!==void 0&&(m.version=v.version),m},fromPartial(v){var m;const E={version:""};return E.version=(m=v.version)!==null&&m!==void 0?m:"",E}},e.MsgChannelOpenAck={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.counterparty_channel_id!==""&&m.uint32(26).string(v.counterparty_channel_id),v.counterparty_version!==""&&m.uint32(34).string(v.counterparty_version),v.proof_try.length!==0&&m.uint32(42).bytes(v.proof_try),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(50).fork()).ldelim(),v.signer!==""&&m.uint32(58).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=i();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.counterparty_channel_id=E.string();break;case 4:T.counterparty_version=E.string();break;case 5:T.proof_try=E.bytes();break;case 6:T.proof_height=u.Height.decode(E,E.uint32());break;case 7:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",counterparty_channel_id:P(v.counterparty_channel_id)?String(v.counterparty_channel_id):"",counterparty_version:P(v.counterparty_version)?String(v.counterparty_version):"",proof_try:P(v.proof_try)?M(v.proof_try):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.counterparty_channel_id!==void 0&&(m.counterparty_channel_id=v.counterparty_channel_id),v.counterparty_version!==void 0&&(m.counterparty_version=v.counterparty_version),v.proof_try!==void 0&&(m.proof_try=C(v.proof_try!==void 0?v.proof_try:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T,q,te;const re=i();return re.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",re.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",re.counterparty_channel_id=(B=v.counterparty_channel_id)!==null&&B!==void 0?B:"",re.counterparty_version=(T=v.counterparty_version)!==null&&T!==void 0?T:"",re.proof_try=(q=v.proof_try)!==null&&q!==void 0?q:new Uint8Array,re.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,re.signer=(te=v.signer)!==null&&te!==void 0?te:"",re}},e.MsgChannelOpenAckResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgChannelOpenConfirm={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.proof_ack.length!==0&&m.uint32(26).bytes(v.proof_ack),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=f();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.proof_ack=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",proof_ack:P(v.proof_ack)?M(v.proof_ack):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.proof_ack!==void 0&&(m.proof_ack=C(v.proof_ack!==void 0?v.proof_ack:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T;const q=f();return q.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",q.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",q.proof_ack=(B=v.proof_ack)!==null&&B!==void 0?B:new Uint8Array,q.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,q.signer=(T=v.signer)!==null&&T!==void 0?T:"",q}},e.MsgChannelOpenConfirmResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgChannelCloseInit={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.signer!==""&&m.uint32(26).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={port_id:"",channel_id:"",signer:""};for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B;const T={port_id:"",channel_id:"",signer:""};return T.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",T.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",T.signer=(B=v.signer)!==null&&B!==void 0?B:"",T}},e.MsgChannelCloseInitResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgChannelCloseConfirm={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.proof_init.length!==0&&m.uint32(26).bytes(v.proof_init),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=d();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.proof_init=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",proof_init:P(v.proof_init)?M(v.proof_init):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.proof_init!==void 0&&(m.proof_init=C(v.proof_init!==void 0?v.proof_init:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T;const q=d();return q.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",q.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",q.proof_init=(B=v.proof_init)!==null&&B!==void 0?B:new Uint8Array,q.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,q.signer=(T=v.signer)!==null&&T!==void 0?T:"",q}},e.MsgChannelCloseConfirmResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgRecvPacket={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.proof_commitment.length!==0&&m.uint32(18).bytes(v.proof_commitment),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(26).fork()).ldelim(),v.signer!==""&&m.uint32(34).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=h();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.proof_commitment=E.bytes();break;case 3:T.proof_height=u.Height.decode(E,E.uint32());break;case 4:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,proof_commitment:P(v.proof_commitment)?M(v.proof_commitment):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.proof_commitment!==void 0&&(m.proof_commitment=C(v.proof_commitment!==void 0?v.proof_commitment:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E;const B=h();return B.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,B.proof_commitment=(m=v.proof_commitment)!==null&&m!==void 0?m:new Uint8Array,B.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,B.signer=(E=v.signer)!==null&&E!==void 0?E:"",B}},e.MsgRecvPacketResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgTimeout={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.proof_unreceived.length!==0&&m.uint32(18).bytes(v.proof_unreceived),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(26).fork()).ldelim(),v.next_sequence_recv!=="0"&&m.uint32(32).uint64(v.next_sequence_recv),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=_();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.proof_unreceived=E.bytes();break;case 3:T.proof_height=u.Height.decode(E,E.uint32());break;case 4:T.next_sequence_recv=x(E.uint64());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,proof_unreceived:P(v.proof_unreceived)?M(v.proof_unreceived):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,next_sequence_recv:P(v.next_sequence_recv)?String(v.next_sequence_recv):"0",signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.proof_unreceived!==void 0&&(m.proof_unreceived=C(v.proof_unreceived!==void 0?v.proof_unreceived:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.next_sequence_recv!==void 0&&(m.next_sequence_recv=v.next_sequence_recv),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B;const T=_();return T.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,T.proof_unreceived=(m=v.proof_unreceived)!==null&&m!==void 0?m:new Uint8Array,T.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,T.next_sequence_recv=(E=v.next_sequence_recv)!==null&&E!==void 0?E:"0",T.signer=(B=v.signer)!==null&&B!==void 0?B:"",T}},e.MsgTimeoutResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgTimeoutOnClose={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.proof_unreceived.length!==0&&m.uint32(18).bytes(v.proof_unreceived),v.proof_close.length!==0&&m.uint32(26).bytes(v.proof_close),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.next_sequence_recv!=="0"&&m.uint32(40).uint64(v.next_sequence_recv),v.signer!==""&&m.uint32(50).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=b();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.proof_unreceived=E.bytes();break;case 3:T.proof_close=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.next_sequence_recv=x(E.uint64());break;case 6:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,proof_unreceived:P(v.proof_unreceived)?M(v.proof_unreceived):new Uint8Array,proof_close:P(v.proof_close)?M(v.proof_close):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,next_sequence_recv:P(v.next_sequence_recv)?String(v.next_sequence_recv):"0",signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.proof_unreceived!==void 0&&(m.proof_unreceived=C(v.proof_unreceived!==void 0?v.proof_unreceived:new Uint8Array)),v.proof_close!==void 0&&(m.proof_close=C(v.proof_close!==void 0?v.proof_close:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.next_sequence_recv!==void 0&&(m.next_sequence_recv=v.next_sequence_recv),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T;const q=b();return q.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,q.proof_unreceived=(m=v.proof_unreceived)!==null&&m!==void 0?m:new Uint8Array,q.proof_close=(E=v.proof_close)!==null&&E!==void 0?E:new Uint8Array,q.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,q.next_sequence_recv=(B=v.next_sequence_recv)!==null&&B!==void 0?B:"0",q.signer=(T=v.signer)!==null&&T!==void 0?T:"",q}},e.MsgTimeoutOnCloseResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgAcknowledgement={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.acknowledgement.length!==0&&m.uint32(18).bytes(v.acknowledgement),v.proof_acked.length!==0&&m.uint32(26).bytes(v.proof_acked),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=I();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.acknowledgement=E.bytes();break;case 3:T.proof_acked=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,acknowledgement:P(v.acknowledgement)?M(v.acknowledgement):new Uint8Array,proof_acked:P(v.proof_acked)?M(v.proof_acked):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.acknowledgement!==void 0&&(m.acknowledgement=C(v.acknowledgement!==void 0?v.acknowledgement:new Uint8Array)),v.proof_acked!==void 0&&(m.proof_acked=C(v.proof_acked!==void 0?v.proof_acked:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B;const T=I();return T.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,T.acknowledgement=(m=v.acknowledgement)!==null&&m!==void 0?m:new Uint8Array,T.proof_acked=(E=v.proof_acked)!==null&&E!==void 0?E:new Uint8Array,T.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,T.signer=(B=v.signer)!==null&&B!==void 0?B:"",T}},e.MsgAcknowledgementResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgClientImpl=class{constructor(v){this.rpc=v,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(v){const m=e.MsgChannelOpenInit.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",m).then(E=>e.MsgChannelOpenInitResponse.decode(new t.Reader(E)))}ChannelOpenTry(v){const m=e.MsgChannelOpenTry.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",m).then(E=>e.MsgChannelOpenTryResponse.decode(new t.Reader(E)))}ChannelOpenAck(v){const m=e.MsgChannelOpenAck.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",m).then(E=>e.MsgChannelOpenAckResponse.decode(new t.Reader(E)))}ChannelOpenConfirm(v){const m=e.MsgChannelOpenConfirm.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",m).then(E=>e.MsgChannelOpenConfirmResponse.decode(new t.Reader(E)))}ChannelCloseInit(v){const m=e.MsgChannelCloseInit.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",m).then(E=>e.MsgChannelCloseInitResponse.decode(new t.Reader(E)))}ChannelCloseConfirm(v){const m=e.MsgChannelCloseConfirm.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",m).then(E=>e.MsgChannelCloseConfirmResponse.decode(new t.Reader(E)))}RecvPacket(v){const m=e.MsgRecvPacket.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",m).then(E=>e.MsgRecvPacketResponse.decode(new t.Reader(E)))}Timeout(v){const m=e.MsgTimeout.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Timeout",m).then(E=>e.MsgTimeoutResponse.decode(new t.Reader(E)))}TimeoutOnClose(v){const m=e.MsgTimeoutOnClose.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",m).then(E=>e.MsgTimeoutOnCloseResponse.decode(new t.Reader(E)))}Acknowledgement(v){const m=e.MsgAcknowledgement.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",m).then(E=>e.MsgAcknowledgementResponse.decode(new t.Reader(E)))}};var l=(()=>{if(l!==void 0)return l;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const j=l.atob||(v=>l.Buffer.from(v,"base64").toString("binary"));function M(v){const m=j(v),E=new Uint8Array(m.length);for(let B=0;Bl.Buffer.from(v,"binary").toString("base64"));function C(v){const m=[];for(const E of v)m.push(String.fromCharCode(E));return N(m.join(""))}function x(v){return v.toString()}function P(v){return v!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5650:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.Params=e.Height=e.UpgradeProposal=e.ClientUpdateProposal=e.ClientConsensusStates=e.ConsensusStateWithHeight=e.IdentifiedClientState=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191),u=p(8310);function s(n){return n.toString()}function r(n){return n!=null}e.protobufPackage="ibc.core.client.v1",e.IdentifiedClientState={encode:(n,o=t.Writer.create())=>(n.client_id!==""&&o.uint32(10).string(n.client_id),n.client_state!==void 0&&c.Any.encode(n.client_state,o.uint32(18).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={client_id:"",client_state:void 0};for(;i.pos>>3){case 1:d.client_id=i.string();break;case 2:d.client_state=c.Any.decode(i,i.uint32());break;default:i.skipType(7&h)}}return d},fromJSON:n=>({client_id:r(n.client_id)?String(n.client_id):"",client_state:r(n.client_state)?c.Any.fromJSON(n.client_state):void 0}),toJSON(n){const o={};return n.client_id!==void 0&&(o.client_id=n.client_id),n.client_state!==void 0&&(o.client_state=n.client_state?c.Any.toJSON(n.client_state):void 0),o},fromPartial(n){var o;const i={client_id:"",client_state:void 0};return i.client_id=(o=n.client_id)!==null&&o!==void 0?o:"",i.client_state=n.client_state!==void 0&&n.client_state!==null?c.Any.fromPartial(n.client_state):void 0,i}},e.ConsensusStateWithHeight={encode:(n,o=t.Writer.create())=>(n.height!==void 0&&e.Height.encode(n.height,o.uint32(10).fork()).ldelim(),n.consensus_state!==void 0&&c.Any.encode(n.consensus_state,o.uint32(18).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={height:void 0,consensus_state:void 0};for(;i.pos>>3){case 1:d.height=e.Height.decode(i,i.uint32());break;case 2:d.consensus_state=c.Any.decode(i,i.uint32());break;default:i.skipType(7&h)}}return d},fromJSON:n=>({height:r(n.height)?e.Height.fromJSON(n.height):void 0,consensus_state:r(n.consensus_state)?c.Any.fromJSON(n.consensus_state):void 0}),toJSON(n){const o={};return n.height!==void 0&&(o.height=n.height?e.Height.toJSON(n.height):void 0),n.consensus_state!==void 0&&(o.consensus_state=n.consensus_state?c.Any.toJSON(n.consensus_state):void 0),o},fromPartial(n){const o={height:void 0,consensus_state:void 0};return o.height=n.height!==void 0&&n.height!==null?e.Height.fromPartial(n.height):void 0,o.consensus_state=n.consensus_state!==void 0&&n.consensus_state!==null?c.Any.fromPartial(n.consensus_state):void 0,o}},e.ClientConsensusStates={encode(n,o=t.Writer.create()){n.client_id!==""&&o.uint32(10).string(n.client_id);for(const i of n.consensus_states)e.ConsensusStateWithHeight.encode(i,o.uint32(18).fork()).ldelim();return o},decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={client_id:"",consensus_states:[]};for(;i.pos>>3){case 1:d.client_id=i.string();break;case 2:d.consensus_states.push(e.ConsensusStateWithHeight.decode(i,i.uint32()));break;default:i.skipType(7&h)}}return d},fromJSON:n=>({client_id:r(n.client_id)?String(n.client_id):"",consensus_states:Array.isArray(n==null?void 0:n.consensus_states)?n.consensus_states.map(o=>e.ConsensusStateWithHeight.fromJSON(o)):[]}),toJSON(n){const o={};return n.client_id!==void 0&&(o.client_id=n.client_id),n.consensus_states?o.consensus_states=n.consensus_states.map(i=>i?e.ConsensusStateWithHeight.toJSON(i):void 0):o.consensus_states=[],o},fromPartial(n){var o,i;const f={client_id:"",consensus_states:[]};return f.client_id=(o=n.client_id)!==null&&o!==void 0?o:"",f.consensus_states=((i=n.consensus_states)===null||i===void 0?void 0:i.map(d=>e.ConsensusStateWithHeight.fromPartial(d)))||[],f}},e.ClientUpdateProposal={encode:(n,o=t.Writer.create())=>(n.title!==""&&o.uint32(10).string(n.title),n.description!==""&&o.uint32(18).string(n.description),n.subject_client_id!==""&&o.uint32(26).string(n.subject_client_id),n.substitute_client_id!==""&&o.uint32(34).string(n.substitute_client_id),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={title:"",description:"",subject_client_id:"",substitute_client_id:""};for(;i.pos>>3){case 1:d.title=i.string();break;case 2:d.description=i.string();break;case 3:d.subject_client_id=i.string();break;case 4:d.substitute_client_id=i.string();break;default:i.skipType(7&h)}}return d},fromJSON:n=>({title:r(n.title)?String(n.title):"",description:r(n.description)?String(n.description):"",subject_client_id:r(n.subject_client_id)?String(n.subject_client_id):"",substitute_client_id:r(n.substitute_client_id)?String(n.substitute_client_id):""}),toJSON(n){const o={};return n.title!==void 0&&(o.title=n.title),n.description!==void 0&&(o.description=n.description),n.subject_client_id!==void 0&&(o.subject_client_id=n.subject_client_id),n.substitute_client_id!==void 0&&(o.substitute_client_id=n.substitute_client_id),o},fromPartial(n){var o,i,f,d;const h={title:"",description:"",subject_client_id:"",substitute_client_id:""};return h.title=(o=n.title)!==null&&o!==void 0?o:"",h.description=(i=n.description)!==null&&i!==void 0?i:"",h.subject_client_id=(f=n.subject_client_id)!==null&&f!==void 0?f:"",h.substitute_client_id=(d=n.substitute_client_id)!==null&&d!==void 0?d:"",h}},e.UpgradeProposal={encode:(n,o=t.Writer.create())=>(n.title!==""&&o.uint32(10).string(n.title),n.description!==""&&o.uint32(18).string(n.description),n.plan!==void 0&&u.Plan.encode(n.plan,o.uint32(26).fork()).ldelim(),n.upgraded_client_state!==void 0&&c.Any.encode(n.upgraded_client_state,o.uint32(34).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={title:"",description:"",plan:void 0,upgraded_client_state:void 0};for(;i.pos>>3){case 1:d.title=i.string();break;case 2:d.description=i.string();break;case 3:d.plan=u.Plan.decode(i,i.uint32());break;case 4:d.upgraded_client_state=c.Any.decode(i,i.uint32());break;default:i.skipType(7&h)}}return d},fromJSON:n=>({title:r(n.title)?String(n.title):"",description:r(n.description)?String(n.description):"",plan:r(n.plan)?u.Plan.fromJSON(n.plan):void 0,upgraded_client_state:r(n.upgraded_client_state)?c.Any.fromJSON(n.upgraded_client_state):void 0}),toJSON(n){const o={};return n.title!==void 0&&(o.title=n.title),n.description!==void 0&&(o.description=n.description),n.plan!==void 0&&(o.plan=n.plan?u.Plan.toJSON(n.plan):void 0),n.upgraded_client_state!==void 0&&(o.upgraded_client_state=n.upgraded_client_state?c.Any.toJSON(n.upgraded_client_state):void 0),o},fromPartial(n){var o,i;const f={title:"",description:"",plan:void 0,upgraded_client_state:void 0};return f.title=(o=n.title)!==null&&o!==void 0?o:"",f.description=(i=n.description)!==null&&i!==void 0?i:"",f.plan=n.plan!==void 0&&n.plan!==null?u.Plan.fromPartial(n.plan):void 0,f.upgraded_client_state=n.upgraded_client_state!==void 0&&n.upgraded_client_state!==null?c.Any.fromPartial(n.upgraded_client_state):void 0,f}},e.Height={encode:(n,o=t.Writer.create())=>(n.revision_number!=="0"&&o.uint32(8).uint64(n.revision_number),n.revision_height!=="0"&&o.uint32(16).uint64(n.revision_height),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={revision_number:"0",revision_height:"0"};for(;i.pos>>3){case 1:d.revision_number=s(i.uint64());break;case 2:d.revision_height=s(i.uint64());break;default:i.skipType(7&h)}}return d},fromJSON:n=>({revision_number:r(n.revision_number)?String(n.revision_number):"0",revision_height:r(n.revision_height)?String(n.revision_height):"0"}),toJSON(n){const o={};return n.revision_number!==void 0&&(o.revision_number=n.revision_number),n.revision_height!==void 0&&(o.revision_height=n.revision_height),o},fromPartial(n){var o,i;const f={revision_number:"0",revision_height:"0"};return f.revision_number=(o=n.revision_number)!==null&&o!==void 0?o:"0",f.revision_height=(i=n.revision_height)!==null&&i!==void 0?i:"0",f}},e.Params={encode(n,o=t.Writer.create()){for(const i of n.allowed_clients)o.uint32(10).string(i);return o},decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={allowed_clients:[]};for(;i.pos>>3==1?d.allowed_clients.push(i.string()):i.skipType(7&h)}return d},fromJSON:n=>({allowed_clients:Array.isArray(n==null?void 0:n.allowed_clients)?n.allowed_clients.map(o=>String(o)):[]}),toJSON(n){const o={};return n.allowed_clients?o.allowed_clients=n.allowed_clients.map(i=>i):o.allowed_clients=[],o},fromPartial(n){var o;const i={allowed_clients:[]};return i.allowed_clients=((o=n.allowed_clients)===null||o===void 0?void 0:o.map(f=>f))||[],i}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},322:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(d,h,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return h[_]}})}:function(d,h,_,b){b===void 0&&(b=_),d[b]=h[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(h,d,_);return O(h,d),h},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgSubmitMisbehaviourResponse=e.MsgSubmitMisbehaviour=e.MsgUpgradeClientResponse=e.MsgUpgradeClient=e.MsgUpdateClientResponse=e.MsgUpdateClient=e.MsgCreateClientResponse=e.MsgCreateClient=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(4191);function u(){return{client_id:"",client_state:void 0,consensus_state:void 0,proof_upgrade_client:new Uint8Array,proof_upgrade_consensus_state:new Uint8Array,signer:""}}e.protobufPackage="ibc.core.client.v1",e.MsgCreateClient={encode:(d,h=t.Writer.create())=>(d.client_state!==void 0&&c.Any.encode(d.client_state,h.uint32(10).fork()).ldelim(),d.consensus_state!==void 0&&c.Any.encode(d.consensus_state,h.uint32(18).fork()).ldelim(),d.signer!==""&&h.uint32(26).string(d.signer),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={client_state:void 0,consensus_state:void 0,signer:""};for(;_.pos>>3){case 1:I.client_state=c.Any.decode(_,_.uint32());break;case 2:I.consensus_state=c.Any.decode(_,_.uint32());break;case 3:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_state:f(d.client_state)?c.Any.fromJSON(d.client_state):void 0,consensus_state:f(d.consensus_state)?c.Any.fromJSON(d.consensus_state):void 0,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const h={};return d.client_state!==void 0&&(h.client_state=d.client_state?c.Any.toJSON(d.client_state):void 0),d.consensus_state!==void 0&&(h.consensus_state=d.consensus_state?c.Any.toJSON(d.consensus_state):void 0),d.signer!==void 0&&(h.signer=d.signer),h},fromPartial(d){var h;const _={client_state:void 0,consensus_state:void 0,signer:""};return _.client_state=d.client_state!==void 0&&d.client_state!==null?c.Any.fromPartial(d.client_state):void 0,_.consensus_state=d.consensus_state!==void 0&&d.consensus_state!==null?c.Any.fromPartial(d.consensus_state):void 0,_.signer=(h=d.signer)!==null&&h!==void 0?h:"",_}},e.MsgCreateClientResponse={encode:(d,h=t.Writer.create())=>h,decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgUpdateClient={encode:(d,h=t.Writer.create())=>(d.client_id!==""&&h.uint32(10).string(d.client_id),d.header!==void 0&&c.Any.encode(d.header,h.uint32(18).fork()).ldelim(),d.signer!==""&&h.uint32(26).string(d.signer),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={client_id:"",header:void 0,signer:""};for(;_.pos>>3){case 1:I.client_id=_.string();break;case 2:I.header=c.Any.decode(_,_.uint32());break;case 3:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_id:f(d.client_id)?String(d.client_id):"",header:f(d.header)?c.Any.fromJSON(d.header):void 0,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const h={};return d.client_id!==void 0&&(h.client_id=d.client_id),d.header!==void 0&&(h.header=d.header?c.Any.toJSON(d.header):void 0),d.signer!==void 0&&(h.signer=d.signer),h},fromPartial(d){var h,_;const b={client_id:"",header:void 0,signer:""};return b.client_id=(h=d.client_id)!==null&&h!==void 0?h:"",b.header=d.header!==void 0&&d.header!==null?c.Any.fromPartial(d.header):void 0,b.signer=(_=d.signer)!==null&&_!==void 0?_:"",b}},e.MsgUpdateClientResponse={encode:(d,h=t.Writer.create())=>h,decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgUpgradeClient={encode:(d,h=t.Writer.create())=>(d.client_id!==""&&h.uint32(10).string(d.client_id),d.client_state!==void 0&&c.Any.encode(d.client_state,h.uint32(18).fork()).ldelim(),d.consensus_state!==void 0&&c.Any.encode(d.consensus_state,h.uint32(26).fork()).ldelim(),d.proof_upgrade_client.length!==0&&h.uint32(34).bytes(d.proof_upgrade_client),d.proof_upgrade_consensus_state.length!==0&&h.uint32(42).bytes(d.proof_upgrade_consensus_state),d.signer!==""&&h.uint32(50).string(d.signer),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I=u();for(;_.pos>>3){case 1:I.client_id=_.string();break;case 2:I.client_state=c.Any.decode(_,_.uint32());break;case 3:I.consensus_state=c.Any.decode(_,_.uint32());break;case 4:I.proof_upgrade_client=_.bytes();break;case 5:I.proof_upgrade_consensus_state=_.bytes();break;case 6:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_id:f(d.client_id)?String(d.client_id):"",client_state:f(d.client_state)?c.Any.fromJSON(d.client_state):void 0,consensus_state:f(d.consensus_state)?c.Any.fromJSON(d.consensus_state):void 0,proof_upgrade_client:f(d.proof_upgrade_client)?n(d.proof_upgrade_client):new Uint8Array,proof_upgrade_consensus_state:f(d.proof_upgrade_consensus_state)?n(d.proof_upgrade_consensus_state):new Uint8Array,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const h={};return d.client_id!==void 0&&(h.client_id=d.client_id),d.client_state!==void 0&&(h.client_state=d.client_state?c.Any.toJSON(d.client_state):void 0),d.consensus_state!==void 0&&(h.consensus_state=d.consensus_state?c.Any.toJSON(d.consensus_state):void 0),d.proof_upgrade_client!==void 0&&(h.proof_upgrade_client=i(d.proof_upgrade_client!==void 0?d.proof_upgrade_client:new Uint8Array)),d.proof_upgrade_consensus_state!==void 0&&(h.proof_upgrade_consensus_state=i(d.proof_upgrade_consensus_state!==void 0?d.proof_upgrade_consensus_state:new Uint8Array)),d.signer!==void 0&&(h.signer=d.signer),h},fromPartial(d){var h,_,b,I;const l=u();return l.client_id=(h=d.client_id)!==null&&h!==void 0?h:"",l.client_state=d.client_state!==void 0&&d.client_state!==null?c.Any.fromPartial(d.client_state):void 0,l.consensus_state=d.consensus_state!==void 0&&d.consensus_state!==null?c.Any.fromPartial(d.consensus_state):void 0,l.proof_upgrade_client=(_=d.proof_upgrade_client)!==null&&_!==void 0?_:new Uint8Array,l.proof_upgrade_consensus_state=(b=d.proof_upgrade_consensus_state)!==null&&b!==void 0?b:new Uint8Array,l.signer=(I=d.signer)!==null&&I!==void 0?I:"",l}},e.MsgUpgradeClientResponse={encode:(d,h=t.Writer.create())=>h,decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgSubmitMisbehaviour={encode:(d,h=t.Writer.create())=>(d.client_id!==""&&h.uint32(10).string(d.client_id),d.misbehaviour!==void 0&&c.Any.encode(d.misbehaviour,h.uint32(18).fork()).ldelim(),d.signer!==""&&h.uint32(26).string(d.signer),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={client_id:"",misbehaviour:void 0,signer:""};for(;_.pos>>3){case 1:I.client_id=_.string();break;case 2:I.misbehaviour=c.Any.decode(_,_.uint32());break;case 3:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_id:f(d.client_id)?String(d.client_id):"",misbehaviour:f(d.misbehaviour)?c.Any.fromJSON(d.misbehaviour):void 0,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const h={};return d.client_id!==void 0&&(h.client_id=d.client_id),d.misbehaviour!==void 0&&(h.misbehaviour=d.misbehaviour?c.Any.toJSON(d.misbehaviour):void 0),d.signer!==void 0&&(h.signer=d.signer),h},fromPartial(d){var h,_;const b={client_id:"",misbehaviour:void 0,signer:""};return b.client_id=(h=d.client_id)!==null&&h!==void 0?h:"",b.misbehaviour=d.misbehaviour!==void 0&&d.misbehaviour!==null?c.Any.fromPartial(d.misbehaviour):void 0,b.signer=(_=d.signer)!==null&&_!==void 0?_:"",b}},e.MsgSubmitMisbehaviourResponse={encode:(d,h=t.Writer.create())=>h,decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgClientImpl=class{constructor(d){this.rpc=d,this.CreateClient=this.CreateClient.bind(this),this.UpdateClient=this.UpdateClient.bind(this),this.UpgradeClient=this.UpgradeClient.bind(this),this.SubmitMisbehaviour=this.SubmitMisbehaviour.bind(this)}CreateClient(d){const h=e.MsgCreateClient.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","CreateClient",h).then(_=>e.MsgCreateClientResponse.decode(new t.Reader(_)))}UpdateClient(d){const h=e.MsgUpdateClient.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",h).then(_=>e.MsgUpdateClientResponse.decode(new t.Reader(_)))}UpgradeClient(d){const h=e.MsgUpgradeClient.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",h).then(_=>e.MsgUpgradeClientResponse.decode(new t.Reader(_)))}SubmitMisbehaviour(d){const h=e.MsgSubmitMisbehaviour.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",h).then(_=>e.MsgSubmitMisbehaviourResponse.decode(new t.Reader(_)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const h=r(d),_=new Uint8Array(h.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){const h=[];for(const _ of d)h.push(String.fromCharCode(_));return o(h.join(""))}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5261:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(h,_,b,I){I===void 0&&(I=b),Object.defineProperty(h,I,{enumerable:!0,get:function(){return _[b]}})}:function(h,_,b,I){I===void 0&&(I=b),h[I]=_[b]}),O=this&&this.__setModuleDefault||(Object.create?function(h,_){Object.defineProperty(h,"default",{enumerable:!0,value:_})}:function(h,_){h.default=_}),k=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var _={};if(h!=null)for(var b in h)b!=="default"&&Object.prototype.hasOwnProperty.call(h,b)&&w(_,h,b);return O(_,h),_},S=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=e.MerklePath=e.MerklePrefix=e.MerkleRoot=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(6578);function u(){return{hash:new Uint8Array}}function s(){return{key_prefix:new Uint8Array}}e.protobufPackage="ibc.core.commitment.v1",e.MerkleRoot={encode:(h,_=t.Writer.create())=>(h.hash.length!==0&&_.uint32(10).bytes(h.hash),_),decode(h,_){const b=h instanceof t.Reader?h:new t.Reader(h);let I=_===void 0?b.len:b.pos+_;const l=u();for(;b.pos>>3==1?l.hash=b.bytes():b.skipType(7&j)}return l},fromJSON:h=>({hash:d(h.hash)?o(h.hash):new Uint8Array}),toJSON(h){const _={};return h.hash!==void 0&&(_.hash=f(h.hash!==void 0?h.hash:new Uint8Array)),_},fromPartial(h){var _;const b=u();return b.hash=(_=h.hash)!==null&&_!==void 0?_:new Uint8Array,b}},e.MerklePrefix={encode:(h,_=t.Writer.create())=>(h.key_prefix.length!==0&&_.uint32(10).bytes(h.key_prefix),_),decode(h,_){const b=h instanceof t.Reader?h:new t.Reader(h);let I=_===void 0?b.len:b.pos+_;const l=s();for(;b.pos>>3==1?l.key_prefix=b.bytes():b.skipType(7&j)}return l},fromJSON:h=>({key_prefix:d(h.key_prefix)?o(h.key_prefix):new Uint8Array}),toJSON(h){const _={};return h.key_prefix!==void 0&&(_.key_prefix=f(h.key_prefix!==void 0?h.key_prefix:new Uint8Array)),_},fromPartial(h){var _;const b=s();return b.key_prefix=(_=h.key_prefix)!==null&&_!==void 0?_:new Uint8Array,b}},e.MerklePath={encode(h,_=t.Writer.create()){for(const b of h.key_path)_.uint32(10).string(b);return _},decode(h,_){const b=h instanceof t.Reader?h:new t.Reader(h);let I=_===void 0?b.len:b.pos+_;const l={key_path:[]};for(;b.pos>>3==1?l.key_path.push(b.string()):b.skipType(7&j)}return l},fromJSON:h=>({key_path:Array.isArray(h==null?void 0:h.key_path)?h.key_path.map(_=>String(_)):[]}),toJSON(h){const _={};return h.key_path?_.key_path=h.key_path.map(b=>b):_.key_path=[],_},fromPartial(h){var _;const b={key_path:[]};return b.key_path=((_=h.key_path)===null||_===void 0?void 0:_.map(I=>I))||[],b}},e.MerkleProof={encode(h,_=t.Writer.create()){for(const b of h.proofs)c.CommitmentProof.encode(b,_.uint32(10).fork()).ldelim();return _},decode(h,_){const b=h instanceof t.Reader?h:new t.Reader(h);let I=_===void 0?b.len:b.pos+_;const l={proofs:[]};for(;b.pos>>3==1?l.proofs.push(c.CommitmentProof.decode(b,b.uint32())):b.skipType(7&j)}return l},fromJSON:h=>({proofs:Array.isArray(h==null?void 0:h.proofs)?h.proofs.map(_=>c.CommitmentProof.fromJSON(_)):[]}),toJSON(h){const _={};return h.proofs?_.proofs=h.proofs.map(b=>b?c.CommitmentProof.toJSON(b):void 0):_.proofs=[],_},fromPartial(h){var _;const b={proofs:[]};return b.proofs=((_=h.proofs)===null||_===void 0?void 0:_.map(I=>c.CommitmentProof.fromPartial(I)))||[],b}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const n=r.atob||(h=>r.Buffer.from(h,"base64").toString("binary"));function o(h){const _=n(h),b=new Uint8Array(_.length);for(let I=0;I<_.length;++I)b[I]=_.charCodeAt(I);return b}const i=r.btoa||(h=>r.Buffer.from(h,"binary").toString("base64"));function f(h){const _=[];for(const b of h)_.push(String.fromCharCode(b));return i(_.join(""))}function d(h){return h!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6788:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(i,f,d,h){h===void 0&&(h=d),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,h){h===void 0&&(h=d),i[h]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.Params=e.Version=e.ConnectionPaths=e.ClientPaths=e.Counterparty=e.IdentifiedConnection=e.ConnectionEnd=e.stateToJSON=e.stateFromJSON=e.State=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(5261);var u;function s(i){switch(i){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return u.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return u.STATE_INIT;case 2:case"STATE_TRYOPEN":return u.STATE_TRYOPEN;case 3:case"STATE_OPEN":return u.STATE_OPEN;default:return u.UNRECOGNIZED}}function r(i){switch(i){case u.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case u.STATE_INIT:return"STATE_INIT";case u.STATE_TRYOPEN:return"STATE_TRYOPEN";case u.STATE_OPEN:return"STATE_OPEN";default:return"UNKNOWN"}}function n(i){return i.toString()}function o(i){return i!=null}e.protobufPackage="ibc.core.connection.v1",function(i){i[i.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",i[i.STATE_INIT=1]="STATE_INIT",i[i.STATE_TRYOPEN=2]="STATE_TRYOPEN",i[i.STATE_OPEN=3]="STATE_OPEN",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.State||(e.State={})),e.stateFromJSON=s,e.stateToJSON=r,e.ConnectionEnd={encode(i,f=t.Writer.create()){i.client_id!==""&&f.uint32(10).string(i.client_id);for(const d of i.versions)e.Version.encode(d,f.uint32(18).fork()).ldelim();return i.state!==0&&f.uint32(24).int32(i.state),i.counterparty!==void 0&&e.Counterparty.encode(i.counterparty,f.uint32(34).fork()).ldelim(),i.delay_period!=="0"&&f.uint32(40).uint64(i.delay_period),f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};for(;d.pos>>3){case 1:_.client_id=d.string();break;case 2:_.versions.push(e.Version.decode(d,d.uint32()));break;case 3:_.state=d.int32();break;case 4:_.counterparty=e.Counterparty.decode(d,d.uint32());break;case 5:_.delay_period=n(d.uint64());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",versions:Array.isArray(i==null?void 0:i.versions)?i.versions.map(f=>e.Version.fromJSON(f)):[],state:o(i.state)?s(i.state):0,counterparty:o(i.counterparty)?e.Counterparty.fromJSON(i.counterparty):void 0,delay_period:o(i.delay_period)?String(i.delay_period):"0"}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.versions?f.versions=i.versions.map(d=>d?e.Version.toJSON(d):void 0):f.versions=[],i.state!==void 0&&(f.state=r(i.state)),i.counterparty!==void 0&&(f.counterparty=i.counterparty?e.Counterparty.toJSON(i.counterparty):void 0),i.delay_period!==void 0&&(f.delay_period=i.delay_period),f},fromPartial(i){var f,d,h,_;const b={client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};return b.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",b.versions=((d=i.versions)===null||d===void 0?void 0:d.map(I=>e.Version.fromPartial(I)))||[],b.state=(h=i.state)!==null&&h!==void 0?h:0,b.counterparty=i.counterparty!==void 0&&i.counterparty!==null?e.Counterparty.fromPartial(i.counterparty):void 0,b.delay_period=(_=i.delay_period)!==null&&_!==void 0?_:"0",b}},e.IdentifiedConnection={encode(i,f=t.Writer.create()){i.id!==""&&f.uint32(10).string(i.id),i.client_id!==""&&f.uint32(18).string(i.client_id);for(const d of i.versions)e.Version.encode(d,f.uint32(26).fork()).ldelim();return i.state!==0&&f.uint32(32).int32(i.state),i.counterparty!==void 0&&e.Counterparty.encode(i.counterparty,f.uint32(42).fork()).ldelim(),i.delay_period!=="0"&&f.uint32(48).uint64(i.delay_period),f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={id:"",client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};for(;d.pos>>3){case 1:_.id=d.string();break;case 2:_.client_id=d.string();break;case 3:_.versions.push(e.Version.decode(d,d.uint32()));break;case 4:_.state=d.int32();break;case 5:_.counterparty=e.Counterparty.decode(d,d.uint32());break;case 6:_.delay_period=n(d.uint64());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({id:o(i.id)?String(i.id):"",client_id:o(i.client_id)?String(i.client_id):"",versions:Array.isArray(i==null?void 0:i.versions)?i.versions.map(f=>e.Version.fromJSON(f)):[],state:o(i.state)?s(i.state):0,counterparty:o(i.counterparty)?e.Counterparty.fromJSON(i.counterparty):void 0,delay_period:o(i.delay_period)?String(i.delay_period):"0"}),toJSON(i){const f={};return i.id!==void 0&&(f.id=i.id),i.client_id!==void 0&&(f.client_id=i.client_id),i.versions?f.versions=i.versions.map(d=>d?e.Version.toJSON(d):void 0):f.versions=[],i.state!==void 0&&(f.state=r(i.state)),i.counterparty!==void 0&&(f.counterparty=i.counterparty?e.Counterparty.toJSON(i.counterparty):void 0),i.delay_period!==void 0&&(f.delay_period=i.delay_period),f},fromPartial(i){var f,d,h,_,b;const I={id:"",client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};return I.id=(f=i.id)!==null&&f!==void 0?f:"",I.client_id=(d=i.client_id)!==null&&d!==void 0?d:"",I.versions=((h=i.versions)===null||h===void 0?void 0:h.map(l=>e.Version.fromPartial(l)))||[],I.state=(_=i.state)!==null&&_!==void 0?_:0,I.counterparty=i.counterparty!==void 0&&i.counterparty!==null?e.Counterparty.fromPartial(i.counterparty):void 0,I.delay_period=(b=i.delay_period)!==null&&b!==void 0?b:"0",I}},e.Counterparty={encode:(i,f=t.Writer.create())=>(i.client_id!==""&&f.uint32(10).string(i.client_id),i.connection_id!==""&&f.uint32(18).string(i.connection_id),i.prefix!==void 0&&c.MerklePrefix.encode(i.prefix,f.uint32(26).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={client_id:"",connection_id:"",prefix:void 0};for(;d.pos>>3){case 1:_.client_id=d.string();break;case 2:_.connection_id=d.string();break;case 3:_.prefix=c.MerklePrefix.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",connection_id:o(i.connection_id)?String(i.connection_id):"",prefix:o(i.prefix)?c.MerklePrefix.fromJSON(i.prefix):void 0}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.connection_id!==void 0&&(f.connection_id=i.connection_id),i.prefix!==void 0&&(f.prefix=i.prefix?c.MerklePrefix.toJSON(i.prefix):void 0),f},fromPartial(i){var f,d;const h={client_id:"",connection_id:"",prefix:void 0};return h.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",h.connection_id=(d=i.connection_id)!==null&&d!==void 0?d:"",h.prefix=i.prefix!==void 0&&i.prefix!==null?c.MerklePrefix.fromPartial(i.prefix):void 0,h}},e.ClientPaths={encode(i,f=t.Writer.create()){for(const d of i.paths)f.uint32(10).string(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={paths:[]};for(;d.pos>>3==1?_.paths.push(d.string()):d.skipType(7&b)}return _},fromJSON:i=>({paths:Array.isArray(i==null?void 0:i.paths)?i.paths.map(f=>String(f)):[]}),toJSON(i){const f={};return i.paths?f.paths=i.paths.map(d=>d):f.paths=[],f},fromPartial(i){var f;const d={paths:[]};return d.paths=((f=i.paths)===null||f===void 0?void 0:f.map(h=>h))||[],d}},e.ConnectionPaths={encode(i,f=t.Writer.create()){i.client_id!==""&&f.uint32(10).string(i.client_id);for(const d of i.paths)f.uint32(18).string(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={client_id:"",paths:[]};for(;d.pos>>3){case 1:_.client_id=d.string();break;case 2:_.paths.push(d.string());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",paths:Array.isArray(i==null?void 0:i.paths)?i.paths.map(f=>String(f)):[]}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.paths?f.paths=i.paths.map(d=>d):f.paths=[],f},fromPartial(i){var f,d;const h={client_id:"",paths:[]};return h.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",h.paths=((d=i.paths)===null||d===void 0?void 0:d.map(_=>_))||[],h}},e.Version={encode(i,f=t.Writer.create()){i.identifier!==""&&f.uint32(10).string(i.identifier);for(const d of i.features)f.uint32(18).string(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={identifier:"",features:[]};for(;d.pos>>3){case 1:_.identifier=d.string();break;case 2:_.features.push(d.string());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({identifier:o(i.identifier)?String(i.identifier):"",features:Array.isArray(i==null?void 0:i.features)?i.features.map(f=>String(f)):[]}),toJSON(i){const f={};return i.identifier!==void 0&&(f.identifier=i.identifier),i.features?f.features=i.features.map(d=>d):f.features=[],f},fromPartial(i){var f,d;const h={identifier:"",features:[]};return h.identifier=(f=i.identifier)!==null&&f!==void 0?f:"",h.features=((d=i.features)===null||d===void 0?void 0:d.map(_=>_))||[],h}},e.Params={encode:(i,f=t.Writer.create())=>(i.max_expected_time_per_block!=="0"&&f.uint32(8).uint64(i.max_expected_time_per_block),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={max_expected_time_per_block:"0"};for(;d.pos>>3==1?_.max_expected_time_per_block=n(d.uint64()):d.skipType(7&b)}return _},fromJSON:i=>({max_expected_time_per_block:o(i.max_expected_time_per_block)?String(i.max_expected_time_per_block):"0"}),toJSON(i){const f={};return i.max_expected_time_per_block!==void 0&&(f.max_expected_time_per_block=i.max_expected_time_per_block),f},fromPartial(i){var f;const d={max_expected_time_per_block:"0"};return d.max_expected_time_per_block=(f=i.max_expected_time_per_block)!==null&&f!==void 0?f:"0",d}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8344:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(l,j,M,N){N===void 0&&(N=M),Object.defineProperty(l,N,{enumerable:!0,get:function(){return j[M]}})}:function(l,j,M,N){N===void 0&&(N=M),l[N]=j[M]}),O=this&&this.__setModuleDefault||(Object.create?function(l,j){Object.defineProperty(l,"default",{enumerable:!0,value:j})}:function(l,j){l.default=j}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var j={};if(l!=null)for(var M in l)M!=="default"&&Object.prototype.hasOwnProperty.call(l,M)&&w(j,l,M);return O(j,l),j},S=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgConnectionOpenConfirmResponse=e.MsgConnectionOpenConfirm=e.MsgConnectionOpenAckResponse=e.MsgConnectionOpenAck=e.MsgConnectionOpenTryResponse=e.MsgConnectionOpenTry=e.MsgConnectionOpenInitResponse=e.MsgConnectionOpenInit=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(6788),u=p(4191),s=p(5650);function r(){return{client_id:"",previous_connection_id:"",client_state:void 0,counterparty:void 0,delay_period:"0",counterparty_versions:[],proof_height:void 0,proof_init:new Uint8Array,proof_client:new Uint8Array,proof_consensus:new Uint8Array,consensus_height:void 0,signer:""}}function n(){return{connection_id:"",counterparty_connection_id:"",version:void 0,client_state:void 0,proof_height:void 0,proof_try:new Uint8Array,proof_client:new Uint8Array,proof_consensus:new Uint8Array,consensus_height:void 0,signer:""}}function o(){return{connection_id:"",proof_ack:new Uint8Array,proof_height:void 0,signer:""}}e.protobufPackage="ibc.core.connection.v1",e.MsgConnectionOpenInit={encode:(l,j=t.Writer.create())=>(l.client_id!==""&&j.uint32(10).string(l.client_id),l.counterparty!==void 0&&c.Counterparty.encode(l.counterparty,j.uint32(18).fork()).ldelim(),l.version!==void 0&&c.Version.encode(l.version,j.uint32(26).fork()).ldelim(),l.delay_period!=="0"&&j.uint32(32).uint64(l.delay_period),l.signer!==""&&j.uint32(42).string(l.signer),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={client_id:"",counterparty:void 0,version:void 0,delay_period:"0",signer:""};for(;M.pos>>3){case 1:C.client_id=M.string();break;case 2:C.counterparty=c.Counterparty.decode(M,M.uint32());break;case 3:C.version=c.Version.decode(M,M.uint32());break;case 4:C.delay_period=b(M.uint64());break;case 5:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({client_id:I(l.client_id)?String(l.client_id):"",counterparty:I(l.counterparty)?c.Counterparty.fromJSON(l.counterparty):void 0,version:I(l.version)?c.Version.fromJSON(l.version):void 0,delay_period:I(l.delay_period)?String(l.delay_period):"0",signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.client_id!==void 0&&(j.client_id=l.client_id),l.counterparty!==void 0&&(j.counterparty=l.counterparty?c.Counterparty.toJSON(l.counterparty):void 0),l.version!==void 0&&(j.version=l.version?c.Version.toJSON(l.version):void 0),l.delay_period!==void 0&&(j.delay_period=l.delay_period),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N;const C={client_id:"",counterparty:void 0,version:void 0,delay_period:"0",signer:""};return C.client_id=(j=l.client_id)!==null&&j!==void 0?j:"",C.counterparty=l.counterparty!==void 0&&l.counterparty!==null?c.Counterparty.fromPartial(l.counterparty):void 0,C.version=l.version!==void 0&&l.version!==null?c.Version.fromPartial(l.version):void 0,C.delay_period=(M=l.delay_period)!==null&&M!==void 0?M:"0",C.signer=(N=l.signer)!==null&&N!==void 0?N:"",C}},e.MsgConnectionOpenInitResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenTry={encode(l,j=t.Writer.create()){l.client_id!==""&&j.uint32(10).string(l.client_id),l.previous_connection_id!==""&&j.uint32(18).string(l.previous_connection_id),l.client_state!==void 0&&u.Any.encode(l.client_state,j.uint32(26).fork()).ldelim(),l.counterparty!==void 0&&c.Counterparty.encode(l.counterparty,j.uint32(34).fork()).ldelim(),l.delay_period!=="0"&&j.uint32(40).uint64(l.delay_period);for(const M of l.counterparty_versions)c.Version.encode(M,j.uint32(50).fork()).ldelim();return l.proof_height!==void 0&&s.Height.encode(l.proof_height,j.uint32(58).fork()).ldelim(),l.proof_init.length!==0&&j.uint32(66).bytes(l.proof_init),l.proof_client.length!==0&&j.uint32(74).bytes(l.proof_client),l.proof_consensus.length!==0&&j.uint32(82).bytes(l.proof_consensus),l.consensus_height!==void 0&&s.Height.encode(l.consensus_height,j.uint32(90).fork()).ldelim(),l.signer!==""&&j.uint32(98).string(l.signer),j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=r();for(;M.pos>>3){case 1:C.client_id=M.string();break;case 2:C.previous_connection_id=M.string();break;case 3:C.client_state=u.Any.decode(M,M.uint32());break;case 4:C.counterparty=c.Counterparty.decode(M,M.uint32());break;case 5:C.delay_period=b(M.uint64());break;case 6:C.counterparty_versions.push(c.Version.decode(M,M.uint32()));break;case 7:C.proof_height=s.Height.decode(M,M.uint32());break;case 8:C.proof_init=M.bytes();break;case 9:C.proof_client=M.bytes();break;case 10:C.proof_consensus=M.bytes();break;case 11:C.consensus_height=s.Height.decode(M,M.uint32());break;case 12:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({client_id:I(l.client_id)?String(l.client_id):"",previous_connection_id:I(l.previous_connection_id)?String(l.previous_connection_id):"",client_state:I(l.client_state)?u.Any.fromJSON(l.client_state):void 0,counterparty:I(l.counterparty)?c.Counterparty.fromJSON(l.counterparty):void 0,delay_period:I(l.delay_period)?String(l.delay_period):"0",counterparty_versions:Array.isArray(l==null?void 0:l.counterparty_versions)?l.counterparty_versions.map(j=>c.Version.fromJSON(j)):[],proof_height:I(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,proof_init:I(l.proof_init)?d(l.proof_init):new Uint8Array,proof_client:I(l.proof_client)?d(l.proof_client):new Uint8Array,proof_consensus:I(l.proof_consensus)?d(l.proof_consensus):new Uint8Array,consensus_height:I(l.consensus_height)?s.Height.fromJSON(l.consensus_height):void 0,signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.client_id!==void 0&&(j.client_id=l.client_id),l.previous_connection_id!==void 0&&(j.previous_connection_id=l.previous_connection_id),l.client_state!==void 0&&(j.client_state=l.client_state?u.Any.toJSON(l.client_state):void 0),l.counterparty!==void 0&&(j.counterparty=l.counterparty?c.Counterparty.toJSON(l.counterparty):void 0),l.delay_period!==void 0&&(j.delay_period=l.delay_period),l.counterparty_versions?j.counterparty_versions=l.counterparty_versions.map(M=>M?c.Version.toJSON(M):void 0):j.counterparty_versions=[],l.proof_height!==void 0&&(j.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.proof_init!==void 0&&(j.proof_init=_(l.proof_init!==void 0?l.proof_init:new Uint8Array)),l.proof_client!==void 0&&(j.proof_client=_(l.proof_client!==void 0?l.proof_client:new Uint8Array)),l.proof_consensus!==void 0&&(j.proof_consensus=_(l.proof_consensus!==void 0?l.proof_consensus:new Uint8Array)),l.consensus_height!==void 0&&(j.consensus_height=l.consensus_height?s.Height.toJSON(l.consensus_height):void 0),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N,C,x,P,v,m;const E=r();return E.client_id=(j=l.client_id)!==null&&j!==void 0?j:"",E.previous_connection_id=(M=l.previous_connection_id)!==null&&M!==void 0?M:"",E.client_state=l.client_state!==void 0&&l.client_state!==null?u.Any.fromPartial(l.client_state):void 0,E.counterparty=l.counterparty!==void 0&&l.counterparty!==null?c.Counterparty.fromPartial(l.counterparty):void 0,E.delay_period=(N=l.delay_period)!==null&&N!==void 0?N:"0",E.counterparty_versions=((C=l.counterparty_versions)===null||C===void 0?void 0:C.map(B=>c.Version.fromPartial(B)))||[],E.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,E.proof_init=(x=l.proof_init)!==null&&x!==void 0?x:new Uint8Array,E.proof_client=(P=l.proof_client)!==null&&P!==void 0?P:new Uint8Array,E.proof_consensus=(v=l.proof_consensus)!==null&&v!==void 0?v:new Uint8Array,E.consensus_height=l.consensus_height!==void 0&&l.consensus_height!==null?s.Height.fromPartial(l.consensus_height):void 0,E.signer=(m=l.signer)!==null&&m!==void 0?m:"",E}},e.MsgConnectionOpenTryResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenAck={encode:(l,j=t.Writer.create())=>(l.connection_id!==""&&j.uint32(10).string(l.connection_id),l.counterparty_connection_id!==""&&j.uint32(18).string(l.counterparty_connection_id),l.version!==void 0&&c.Version.encode(l.version,j.uint32(26).fork()).ldelim(),l.client_state!==void 0&&u.Any.encode(l.client_state,j.uint32(34).fork()).ldelim(),l.proof_height!==void 0&&s.Height.encode(l.proof_height,j.uint32(42).fork()).ldelim(),l.proof_try.length!==0&&j.uint32(50).bytes(l.proof_try),l.proof_client.length!==0&&j.uint32(58).bytes(l.proof_client),l.proof_consensus.length!==0&&j.uint32(66).bytes(l.proof_consensus),l.consensus_height!==void 0&&s.Height.encode(l.consensus_height,j.uint32(74).fork()).ldelim(),l.signer!==""&&j.uint32(82).string(l.signer),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=n();for(;M.pos>>3){case 1:C.connection_id=M.string();break;case 2:C.counterparty_connection_id=M.string();break;case 3:C.version=c.Version.decode(M,M.uint32());break;case 4:C.client_state=u.Any.decode(M,M.uint32());break;case 5:C.proof_height=s.Height.decode(M,M.uint32());break;case 6:C.proof_try=M.bytes();break;case 7:C.proof_client=M.bytes();break;case 8:C.proof_consensus=M.bytes();break;case 9:C.consensus_height=s.Height.decode(M,M.uint32());break;case 10:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({connection_id:I(l.connection_id)?String(l.connection_id):"",counterparty_connection_id:I(l.counterparty_connection_id)?String(l.counterparty_connection_id):"",version:I(l.version)?c.Version.fromJSON(l.version):void 0,client_state:I(l.client_state)?u.Any.fromJSON(l.client_state):void 0,proof_height:I(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,proof_try:I(l.proof_try)?d(l.proof_try):new Uint8Array,proof_client:I(l.proof_client)?d(l.proof_client):new Uint8Array,proof_consensus:I(l.proof_consensus)?d(l.proof_consensus):new Uint8Array,consensus_height:I(l.consensus_height)?s.Height.fromJSON(l.consensus_height):void 0,signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.connection_id!==void 0&&(j.connection_id=l.connection_id),l.counterparty_connection_id!==void 0&&(j.counterparty_connection_id=l.counterparty_connection_id),l.version!==void 0&&(j.version=l.version?c.Version.toJSON(l.version):void 0),l.client_state!==void 0&&(j.client_state=l.client_state?u.Any.toJSON(l.client_state):void 0),l.proof_height!==void 0&&(j.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.proof_try!==void 0&&(j.proof_try=_(l.proof_try!==void 0?l.proof_try:new Uint8Array)),l.proof_client!==void 0&&(j.proof_client=_(l.proof_client!==void 0?l.proof_client:new Uint8Array)),l.proof_consensus!==void 0&&(j.proof_consensus=_(l.proof_consensus!==void 0?l.proof_consensus:new Uint8Array)),l.consensus_height!==void 0&&(j.consensus_height=l.consensus_height?s.Height.toJSON(l.consensus_height):void 0),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N,C,x,P;const v=n();return v.connection_id=(j=l.connection_id)!==null&&j!==void 0?j:"",v.counterparty_connection_id=(M=l.counterparty_connection_id)!==null&&M!==void 0?M:"",v.version=l.version!==void 0&&l.version!==null?c.Version.fromPartial(l.version):void 0,v.client_state=l.client_state!==void 0&&l.client_state!==null?u.Any.fromPartial(l.client_state):void 0,v.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,v.proof_try=(N=l.proof_try)!==null&&N!==void 0?N:new Uint8Array,v.proof_client=(C=l.proof_client)!==null&&C!==void 0?C:new Uint8Array,v.proof_consensus=(x=l.proof_consensus)!==null&&x!==void 0?x:new Uint8Array,v.consensus_height=l.consensus_height!==void 0&&l.consensus_height!==null?s.Height.fromPartial(l.consensus_height):void 0,v.signer=(P=l.signer)!==null&&P!==void 0?P:"",v}},e.MsgConnectionOpenAckResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenConfirm={encode:(l,j=t.Writer.create())=>(l.connection_id!==""&&j.uint32(10).string(l.connection_id),l.proof_ack.length!==0&&j.uint32(18).bytes(l.proof_ack),l.proof_height!==void 0&&s.Height.encode(l.proof_height,j.uint32(26).fork()).ldelim(),l.signer!==""&&j.uint32(34).string(l.signer),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=o();for(;M.pos>>3){case 1:C.connection_id=M.string();break;case 2:C.proof_ack=M.bytes();break;case 3:C.proof_height=s.Height.decode(M,M.uint32());break;case 4:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({connection_id:I(l.connection_id)?String(l.connection_id):"",proof_ack:I(l.proof_ack)?d(l.proof_ack):new Uint8Array,proof_height:I(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.connection_id!==void 0&&(j.connection_id=l.connection_id),l.proof_ack!==void 0&&(j.proof_ack=_(l.proof_ack!==void 0?l.proof_ack:new Uint8Array)),l.proof_height!==void 0&&(j.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N;const C=o();return C.connection_id=(j=l.connection_id)!==null&&j!==void 0?j:"",C.proof_ack=(M=l.proof_ack)!==null&&M!==void 0?M:new Uint8Array,C.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,C.signer=(N=l.signer)!==null&&N!==void 0?N:"",C}},e.MsgConnectionOpenConfirmResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgClientImpl=class{constructor(l){this.rpc=l,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(l){const j=e.MsgConnectionOpenInit.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",j).then(M=>e.MsgConnectionOpenInitResponse.decode(new t.Reader(M)))}ConnectionOpenTry(l){const j=e.MsgConnectionOpenTry.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",j).then(M=>e.MsgConnectionOpenTryResponse.decode(new t.Reader(M)))}ConnectionOpenAck(l){const j=e.MsgConnectionOpenAck.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",j).then(M=>e.MsgConnectionOpenAckResponse.decode(new t.Reader(M)))}ConnectionOpenConfirm(l){const j=e.MsgConnectionOpenConfirm.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",j).then(M=>e.MsgConnectionOpenConfirmResponse.decode(new t.Reader(M)))}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const f=i.atob||(l=>i.Buffer.from(l,"base64").toString("binary"));function d(l){const j=f(l),M=new Uint8Array(j.length);for(let N=0;Ni.Buffer.from(l,"binary").toString("base64"));function _(l){const j=[];for(const M of l)j.push(String.fromCharCode(M));return h(j.join(""))}function b(l){return l.toString()}function I(l){return l!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2896:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(C,x,P,v){v===void 0&&(v=P),Object.defineProperty(C,v,{enumerable:!0,get:function(){return x[P]}})}:function(C,x,P,v){v===void 0&&(v=P),C[v]=x[P]}),O=this&&this.__setModuleDefault||(Object.create?function(C,x){Object.defineProperty(C,"default",{enumerable:!0,value:x})}:function(C,x){C.default=x}),k=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var x={};if(C!=null)for(var P in C)P!=="default"&&Object.prototype.hasOwnProperty.call(C,P)&&w(x,C,P);return O(x,C),x},S=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgClearAdminResponse=e.MsgClearAdmin=e.MsgUpdateAdminResponse=e.MsgUpdateAdmin=e.MsgMigrateContractResponse=e.MsgMigrateContract=e.MsgExecuteContractResponse=e.MsgExecuteContract=e.MsgInstantiateContractResponse=e.MsgInstantiateContract=e.MsgStoreCodeResponse=e.MsgStoreCode=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2976);function u(){return{sender:new Uint8Array,wasm_byte_code:new Uint8Array,source:"",builder:""}}function s(){return{sender:new Uint8Array,callback_code_hash:"",code_id:"0",label:"",init_msg:new Uint8Array,init_funds:[],callback_sig:new Uint8Array,admin:""}}function r(){return{address:"",data:new Uint8Array}}function n(){return{sender:new Uint8Array,contract:new Uint8Array,msg:new Uint8Array,callback_code_hash:"",sent_funds:[],callback_sig:new Uint8Array}}function o(){return{data:new Uint8Array}}function i(){return{sender:"",contract:"",code_id:"0",msg:new Uint8Array,callback_sig:new Uint8Array,callback_code_hash:""}}function f(){return{data:new Uint8Array}}function d(){return{sender:"",new_admin:"",contract:"",callback_sig:new Uint8Array}}function h(){return{sender:"",contract:"",callback_sig:new Uint8Array}}e.protobufPackage="secret.compute.v1beta1",e.MsgStoreCode={encode:(C,x=t.Writer.create())=>(C.sender.length!==0&&x.uint32(10).bytes(C.sender),C.wasm_byte_code.length!==0&&x.uint32(18).bytes(C.wasm_byte_code),C.source!==""&&x.uint32(26).string(C.source),C.builder!==""&&x.uint32(34).string(C.builder),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=u();for(;P.pos>>3){case 1:m.sender=P.bytes();break;case 2:m.wasm_byte_code=P.bytes();break;case 3:m.source=P.string();break;case 4:m.builder=P.string();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?I(C.sender):new Uint8Array,wasm_byte_code:N(C.wasm_byte_code)?I(C.wasm_byte_code):new Uint8Array,source:N(C.source)?String(C.source):"",builder:N(C.builder)?String(C.builder):""}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=j(C.sender!==void 0?C.sender:new Uint8Array)),C.wasm_byte_code!==void 0&&(x.wasm_byte_code=j(C.wasm_byte_code!==void 0?C.wasm_byte_code:new Uint8Array)),C.source!==void 0&&(x.source=C.source),C.builder!==void 0&&(x.builder=C.builder),x},fromPartial(C){var x,P,v,m;const E=u();return E.sender=(x=C.sender)!==null&&x!==void 0?x:new Uint8Array,E.wasm_byte_code=(P=C.wasm_byte_code)!==null&&P!==void 0?P:new Uint8Array,E.source=(v=C.source)!==null&&v!==void 0?v:"",E.builder=(m=C.builder)!==null&&m!==void 0?m:"",E}},e.MsgStoreCodeResponse={encode:(C,x=t.Writer.create())=>(C.code_id!=="0"&&x.uint32(8).uint64(C.code_id),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m={code_id:"0"};for(;P.pos>>3==1?m.code_id=M(P.uint64()):P.skipType(7&E)}return m},fromJSON:C=>({code_id:N(C.code_id)?String(C.code_id):"0"}),toJSON(C){const x={};return C.code_id!==void 0&&(x.code_id=C.code_id),x},fromPartial(C){var x;const P={code_id:"0"};return P.code_id=(x=C.code_id)!==null&&x!==void 0?x:"0",P}},e.MsgInstantiateContract={encode(C,x=t.Writer.create()){C.sender.length!==0&&x.uint32(10).bytes(C.sender),C.callback_code_hash!==""&&x.uint32(18).string(C.callback_code_hash),C.code_id!=="0"&&x.uint32(24).uint64(C.code_id),C.label!==""&&x.uint32(34).string(C.label),C.init_msg.length!==0&&x.uint32(42).bytes(C.init_msg);for(const P of C.init_funds)c.Coin.encode(P,x.uint32(50).fork()).ldelim();return C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),C.admin!==""&&x.uint32(66).string(C.admin),x},decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=s();for(;P.pos>>3){case 1:m.sender=P.bytes();break;case 2:m.callback_code_hash=P.string();break;case 3:m.code_id=M(P.uint64());break;case 4:m.label=P.string();break;case 5:m.init_msg=P.bytes();break;case 6:m.init_funds.push(c.Coin.decode(P,P.uint32()));break;case 7:m.callback_sig=P.bytes();break;case 8:m.admin=P.string();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?I(C.sender):new Uint8Array,callback_code_hash:N(C.callback_code_hash)?String(C.callback_code_hash):"",code_id:N(C.code_id)?String(C.code_id):"0",label:N(C.label)?String(C.label):"",init_msg:N(C.init_msg)?I(C.init_msg):new Uint8Array,init_funds:Array.isArray(C==null?void 0:C.init_funds)?C.init_funds.map(x=>c.Coin.fromJSON(x)):[],callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array,admin:N(C.admin)?String(C.admin):""}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=j(C.sender!==void 0?C.sender:new Uint8Array)),C.callback_code_hash!==void 0&&(x.callback_code_hash=C.callback_code_hash),C.code_id!==void 0&&(x.code_id=C.code_id),C.label!==void 0&&(x.label=C.label),C.init_msg!==void 0&&(x.init_msg=j(C.init_msg!==void 0?C.init_msg:new Uint8Array)),C.init_funds?x.init_funds=C.init_funds.map(P=>P?c.Coin.toJSON(P):void 0):x.init_funds=[],C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),C.admin!==void 0&&(x.admin=C.admin),x},fromPartial(C){var x,P,v,m,E,B,T,q;const te=s();return te.sender=(x=C.sender)!==null&&x!==void 0?x:new Uint8Array,te.callback_code_hash=(P=C.callback_code_hash)!==null&&P!==void 0?P:"",te.code_id=(v=C.code_id)!==null&&v!==void 0?v:"0",te.label=(m=C.label)!==null&&m!==void 0?m:"",te.init_msg=(E=C.init_msg)!==null&&E!==void 0?E:new Uint8Array,te.init_funds=((B=C.init_funds)===null||B===void 0?void 0:B.map(re=>c.Coin.fromPartial(re)))||[],te.callback_sig=(T=C.callback_sig)!==null&&T!==void 0?T:new Uint8Array,te.admin=(q=C.admin)!==null&&q!==void 0?q:"",te}},e.MsgInstantiateContractResponse={encode:(C,x=t.Writer.create())=>(C.address!==""&&x.uint32(10).string(C.address),C.data.length!==0&&x.uint32(18).bytes(C.data),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=r();for(;P.pos>>3){case 1:m.address=P.string();break;case 2:m.data=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({address:N(C.address)?String(C.address):"",data:N(C.data)?I(C.data):new Uint8Array}),toJSON(C){const x={};return C.address!==void 0&&(x.address=C.address),C.data!==void 0&&(x.data=j(C.data!==void 0?C.data:new Uint8Array)),x},fromPartial(C){var x,P;const v=r();return v.address=(x=C.address)!==null&&x!==void 0?x:"",v.data=(P=C.data)!==null&&P!==void 0?P:new Uint8Array,v}},e.MsgExecuteContract={encode(C,x=t.Writer.create()){C.sender.length!==0&&x.uint32(10).bytes(C.sender),C.contract.length!==0&&x.uint32(18).bytes(C.contract),C.msg.length!==0&&x.uint32(26).bytes(C.msg),C.callback_code_hash!==""&&x.uint32(34).string(C.callback_code_hash);for(const P of C.sent_funds)c.Coin.encode(P,x.uint32(42).fork()).ldelim();return C.callback_sig.length!==0&&x.uint32(50).bytes(C.callback_sig),x},decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=n();for(;P.pos>>3){case 1:m.sender=P.bytes();break;case 2:m.contract=P.bytes();break;case 3:m.msg=P.bytes();break;case 4:m.callback_code_hash=P.string();break;case 5:m.sent_funds.push(c.Coin.decode(P,P.uint32()));break;case 6:m.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?I(C.sender):new Uint8Array,contract:N(C.contract)?I(C.contract):new Uint8Array,msg:N(C.msg)?I(C.msg):new Uint8Array,callback_code_hash:N(C.callback_code_hash)?String(C.callback_code_hash):"",sent_funds:Array.isArray(C==null?void 0:C.sent_funds)?C.sent_funds.map(x=>c.Coin.fromJSON(x)):[],callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=j(C.sender!==void 0?C.sender:new Uint8Array)),C.contract!==void 0&&(x.contract=j(C.contract!==void 0?C.contract:new Uint8Array)),C.msg!==void 0&&(x.msg=j(C.msg!==void 0?C.msg:new Uint8Array)),C.callback_code_hash!==void 0&&(x.callback_code_hash=C.callback_code_hash),C.sent_funds?x.sent_funds=C.sent_funds.map(P=>P?c.Coin.toJSON(P):void 0):x.sent_funds=[],C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),x},fromPartial(C){var x,P,v,m,E,B;const T=n();return T.sender=(x=C.sender)!==null&&x!==void 0?x:new Uint8Array,T.contract=(P=C.contract)!==null&&P!==void 0?P:new Uint8Array,T.msg=(v=C.msg)!==null&&v!==void 0?v:new Uint8Array,T.callback_code_hash=(m=C.callback_code_hash)!==null&&m!==void 0?m:"",T.sent_funds=((E=C.sent_funds)===null||E===void 0?void 0:E.map(q=>c.Coin.fromPartial(q)))||[],T.callback_sig=(B=C.callback_sig)!==null&&B!==void 0?B:new Uint8Array,T}},e.MsgExecuteContractResponse={encode:(C,x=t.Writer.create())=>(C.data.length!==0&&x.uint32(10).bytes(C.data),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=o();for(;P.pos>>3==1?m.data=P.bytes():P.skipType(7&E)}return m},fromJSON:C=>({data:N(C.data)?I(C.data):new Uint8Array}),toJSON(C){const x={};return C.data!==void 0&&(x.data=j(C.data!==void 0?C.data:new Uint8Array)),x},fromPartial(C){var x;const P=o();return P.data=(x=C.data)!==null&&x!==void 0?x:new Uint8Array,P}},e.MsgMigrateContract={encode:(C,x=t.Writer.create())=>(C.sender!==""&&x.uint32(10).string(C.sender),C.contract!==""&&x.uint32(18).string(C.contract),C.code_id!=="0"&&x.uint32(24).uint64(C.code_id),C.msg.length!==0&&x.uint32(34).bytes(C.msg),C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),C.callback_code_hash!==""&&x.uint32(66).string(C.callback_code_hash),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=i();for(;P.pos>>3){case 1:m.sender=P.string();break;case 2:m.contract=P.string();break;case 3:m.code_id=M(P.uint64());break;case 4:m.msg=P.bytes();break;case 7:m.callback_sig=P.bytes();break;case 8:m.callback_code_hash=P.string();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?String(C.sender):"",contract:N(C.contract)?String(C.contract):"",code_id:N(C.code_id)?String(C.code_id):"0",msg:N(C.msg)?I(C.msg):new Uint8Array,callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array,callback_code_hash:N(C.callback_code_hash)?String(C.callback_code_hash):""}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=C.sender),C.contract!==void 0&&(x.contract=C.contract),C.code_id!==void 0&&(x.code_id=C.code_id),C.msg!==void 0&&(x.msg=j(C.msg!==void 0?C.msg:new Uint8Array)),C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),C.callback_code_hash!==void 0&&(x.callback_code_hash=C.callback_code_hash),x},fromPartial(C){var x,P,v,m,E,B;const T=i();return T.sender=(x=C.sender)!==null&&x!==void 0?x:"",T.contract=(P=C.contract)!==null&&P!==void 0?P:"",T.code_id=(v=C.code_id)!==null&&v!==void 0?v:"0",T.msg=(m=C.msg)!==null&&m!==void 0?m:new Uint8Array,T.callback_sig=(E=C.callback_sig)!==null&&E!==void 0?E:new Uint8Array,T.callback_code_hash=(B=C.callback_code_hash)!==null&&B!==void 0?B:"",T}},e.MsgMigrateContractResponse={encode:(C,x=t.Writer.create())=>(C.data.length!==0&&x.uint32(10).bytes(C.data),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=f();for(;P.pos>>3==1?m.data=P.bytes():P.skipType(7&E)}return m},fromJSON:C=>({data:N(C.data)?I(C.data):new Uint8Array}),toJSON(C){const x={};return C.data!==void 0&&(x.data=j(C.data!==void 0?C.data:new Uint8Array)),x},fromPartial(C){var x;const P=f();return P.data=(x=C.data)!==null&&x!==void 0?x:new Uint8Array,P}},e.MsgUpdateAdmin={encode:(C,x=t.Writer.create())=>(C.sender!==""&&x.uint32(10).string(C.sender),C.new_admin!==""&&x.uint32(18).string(C.new_admin),C.contract!==""&&x.uint32(26).string(C.contract),C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=d();for(;P.pos>>3){case 1:m.sender=P.string();break;case 2:m.new_admin=P.string();break;case 3:m.contract=P.string();break;case 7:m.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?String(C.sender):"",new_admin:N(C.new_admin)?String(C.new_admin):"",contract:N(C.contract)?String(C.contract):"",callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=C.sender),C.new_admin!==void 0&&(x.new_admin=C.new_admin),C.contract!==void 0&&(x.contract=C.contract),C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),x},fromPartial(C){var x,P,v,m;const E=d();return E.sender=(x=C.sender)!==null&&x!==void 0?x:"",E.new_admin=(P=C.new_admin)!==null&&P!==void 0?P:"",E.contract=(v=C.contract)!==null&&v!==void 0?v:"",E.callback_sig=(m=C.callback_sig)!==null&&m!==void 0?m:new Uint8Array,E}},e.MsgUpdateAdminResponse={encode:(C,x=t.Writer.create())=>x,decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;for(;P.pos({}),toJSON:C=>({}),fromPartial:C=>({})},e.MsgClearAdmin={encode:(C,x=t.Writer.create())=>(C.sender!==""&&x.uint32(10).string(C.sender),C.contract!==""&&x.uint32(26).string(C.contract),C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=h();for(;P.pos>>3){case 1:m.sender=P.string();break;case 3:m.contract=P.string();break;case 7:m.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?String(C.sender):"",contract:N(C.contract)?String(C.contract):"",callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=C.sender),C.contract!==void 0&&(x.contract=C.contract),C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),x},fromPartial(C){var x,P,v;const m=h();return m.sender=(x=C.sender)!==null&&x!==void 0?x:"",m.contract=(P=C.contract)!==null&&P!==void 0?P:"",m.callback_sig=(v=C.callback_sig)!==null&&v!==void 0?v:new Uint8Array,m}},e.MsgClearAdminResponse={encode:(C,x=t.Writer.create())=>x,decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;for(;P.pos({}),toJSON:C=>({}),fromPartial:C=>({})},e.MsgClientImpl=class{constructor(C){this.rpc=C,this.StoreCode=this.StoreCode.bind(this),this.InstantiateContract=this.InstantiateContract.bind(this),this.ExecuteContract=this.ExecuteContract.bind(this),this.MigrateContract=this.MigrateContract.bind(this),this.UpdateAdmin=this.UpdateAdmin.bind(this),this.ClearAdmin=this.ClearAdmin.bind(this)}StoreCode(C){const x=e.MsgStoreCode.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","StoreCode",x).then(P=>e.MsgStoreCodeResponse.decode(new t.Reader(P)))}InstantiateContract(C){const x=e.MsgInstantiateContract.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","InstantiateContract",x).then(P=>e.MsgInstantiateContractResponse.decode(new t.Reader(P)))}ExecuteContract(C){const x=e.MsgExecuteContract.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","ExecuteContract",x).then(P=>e.MsgExecuteContractResponse.decode(new t.Reader(P)))}MigrateContract(C){const x=e.MsgMigrateContract.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","MigrateContract",x).then(P=>e.MsgMigrateContractResponse.decode(new t.Reader(P)))}UpdateAdmin(C){const x=e.MsgUpdateAdmin.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","UpdateAdmin",x).then(P=>e.MsgUpdateAdminResponse.decode(new t.Reader(P)))}ClearAdmin(C){const x=e.MsgClearAdmin.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","ClearAdmin",x).then(P=>e.MsgClearAdminResponse.decode(new t.Reader(P)))}};var _=(()=>{if(_!==void 0)return _;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const b=_.atob||(C=>_.Buffer.from(C,"base64").toString("binary"));function I(C){const x=b(C),P=new Uint8Array(x.length);for(let v=0;v_.Buffer.from(C,"binary").toString("base64"));function j(C){const x=[];for(const P of C)x.push(String.fromCharCode(P));return l(x.join(""))}function M(C){return C.toString()}function N(C){return C!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4657:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgToggleIbcSwitchResponse=e.MsgToggleIbcSwitch=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));e.protobufPackage="secret.emergencybutton.v1beta1",e.MsgToggleIbcSwitch={encode:(c,u=t.Writer.create())=>(c.sender!==""&&u.uint32(10).string(c.sender),u),decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;const n={sender:""};for(;s.pos>>3==1?n.sender=s.string():s.skipType(7&o)}return n},fromJSON(c){return{sender:(u=c.sender,u!=null?String(c.sender):"")};var u},toJSON(c){const u={};return c.sender!==void 0&&(u.sender=c.sender),u},fromPartial(c){var u;const s={sender:""};return s.sender=(u=c.sender)!==null&&u!==void 0?u:"",s}},e.MsgToggleIbcSwitchResponse={encode:(c,u=t.Writer.create())=>u,decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;for(;s.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgClientImpl=class{constructor(c){this.rpc=c,this.ToggleIbcSwitch=this.ToggleIbcSwitch.bind(this)}ToggleIbcSwitch(c){const u=e.MsgToggleIbcSwitch.encode(c).finish();return this.rpc.request("secret.emergencybutton.v1beta1.Msg","ToggleIbcSwitch",u).then(s=>e.MsgToggleIbcSwitchResponse.decode(new t.Reader(s)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1901:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(h,_,b,I){I===void 0&&(I=b),Object.defineProperty(h,I,{enumerable:!0,get:function(){return _[b]}})}:function(h,_,b,I){I===void 0&&(I=b),h[I]=_[b]}),O=this&&this.__setModuleDefault||(Object.create?function(h,_){Object.defineProperty(h,"default",{enumerable:!0,value:_})}:function(h,_){h.default=_}),k=this&&this.__importStar||function(h){if(h&&h.__esModule)return h;var _={};if(h!=null)for(var b in h)b!=="default"&&Object.prototype.hasOwnProperty.call(h,b)&&w(_,h,b);return O(_,h),_},S=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.Key=e.MasterKey=e.RaAuthenticate=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(){return{sender:new Uint8Array,certificate:new Uint8Array}}function u(){return{bytes:new Uint8Array}}function s(){return{key:new Uint8Array}}e.protobufPackage="secret.registration.v1beta1",e.RaAuthenticate={encode:(h,_=t.Writer.create())=>(h.sender.length!==0&&_.uint32(10).bytes(h.sender),h.certificate.length!==0&&_.uint32(18).bytes(h.certificate),_),decode(h,_){const b=h instanceof t.Reader?h:new t.Reader(h);let I=_===void 0?b.len:b.pos+_;const l=c();for(;b.pos>>3){case 1:l.sender=b.bytes();break;case 2:l.certificate=b.bytes();break;default:b.skipType(7&j)}}return l},fromJSON:h=>({sender:d(h.sender)?o(h.sender):new Uint8Array,certificate:d(h.certificate)?o(h.certificate):new Uint8Array}),toJSON(h){const _={};return h.sender!==void 0&&(_.sender=f(h.sender!==void 0?h.sender:new Uint8Array)),h.certificate!==void 0&&(_.certificate=f(h.certificate!==void 0?h.certificate:new Uint8Array)),_},fromPartial(h){var _,b;const I=c();return I.sender=(_=h.sender)!==null&&_!==void 0?_:new Uint8Array,I.certificate=(b=h.certificate)!==null&&b!==void 0?b:new Uint8Array,I}},e.MasterKey={encode:(h,_=t.Writer.create())=>(h.bytes.length!==0&&_.uint32(10).bytes(h.bytes),_),decode(h,_){const b=h instanceof t.Reader?h:new t.Reader(h);let I=_===void 0?b.len:b.pos+_;const l=u();for(;b.pos>>3==1?l.bytes=b.bytes():b.skipType(7&j)}return l},fromJSON:h=>({bytes:d(h.bytes)?o(h.bytes):new Uint8Array}),toJSON(h){const _={};return h.bytes!==void 0&&(_.bytes=f(h.bytes!==void 0?h.bytes:new Uint8Array)),_},fromPartial(h){var _;const b=u();return b.bytes=(_=h.bytes)!==null&&_!==void 0?_:new Uint8Array,b}},e.Key={encode:(h,_=t.Writer.create())=>(h.key.length!==0&&_.uint32(10).bytes(h.key),_),decode(h,_){const b=h instanceof t.Reader?h:new t.Reader(h);let I=_===void 0?b.len:b.pos+_;const l=s();for(;b.pos>>3==1?l.key=b.bytes():b.skipType(7&j)}return l},fromJSON:h=>({key:d(h.key)?o(h.key):new Uint8Array}),toJSON(h){const _={};return h.key!==void 0&&(_.key=f(h.key!==void 0?h.key:new Uint8Array)),_},fromPartial(h){var _;const b=s();return b.key=(_=h.key)!==null&&_!==void 0?_:new Uint8Array,b}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const n=r.atob||(h=>r.Buffer.from(h,"base64").toString("binary"));function o(h){const _=n(h),b=new Uint8Array(_.length);for(let I=0;I<_.length;++I)b[I]=_.charCodeAt(I);return b}const i=r.btoa||(h=>r.Buffer.from(h,"binary").toString("base64"));function f(h){const _=[];for(const b of h)_.push(String.fromCharCode(b));return i(_.join(""))}function d(h){return h!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2093:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(y,A,R,U){U===void 0&&(U=R),Object.defineProperty(y,U,{enumerable:!0,get:function(){return A[R]}})}:function(y,A,R,U){U===void 0&&(U=R),y[U]=A[R]}),O=this&&this.__setModuleDefault||(Object.create?function(y,A){Object.defineProperty(y,"default",{enumerable:!0,value:A})}:function(y,A){y.default=A}),k=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var A={};if(y!=null)for(var R in y)R!=="default"&&Object.prototype.hasOwnProperty.call(y,R)&&w(A,y,R);return O(A,y),A},S=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.LastCommitInfo=e.BlockParams=e.ConsensusParams=e.ResponseApplySnapshotChunk=e.ResponseLoadSnapshotChunk=e.ResponseOfferSnapshot=e.ResponseListSnapshots=e.ResponseCommit=e.ResponseEndBlock=e.ResponseDeliverTx=e.ResponseCheckTx=e.ResponseBeginBlock=e.ResponseQuery=e.ResponseInitChain=e.ResponseSetOption=e.ResponseInfo=e.ResponseFlush=e.ResponseEcho=e.ResponseException=e.Response=e.RequestApplySnapshotChunk=e.RequestLoadSnapshotChunk=e.RequestOfferSnapshot=e.RequestListSnapshots=e.RequestCommit=e.RequestEndBlock=e.RequestDeliverTx=e.RequestCheckTx=e.RequestBeginBlock=e.RequestQuery=e.RequestInitChain=e.RequestSetOption=e.RequestInfo=e.RequestFlush=e.RequestEcho=e.Request=e.responseApplySnapshotChunk_ResultToJSON=e.responseApplySnapshotChunk_ResultFromJSON=e.ResponseApplySnapshotChunk_Result=e.responseOfferSnapshot_ResultToJSON=e.responseOfferSnapshot_ResultFromJSON=e.ResponseOfferSnapshot_Result=e.evidenceTypeToJSON=e.evidenceTypeFromJSON=e.EvidenceType=e.checkTxTypeToJSON=e.checkTxTypeFromJSON=e.CheckTxType=e.protobufPackage=void 0,e.ABCIApplicationClientImpl=e.Snapshot=e.Evidence=e.VoteInfo=e.ValidatorUpdate=e.Validator=e.TxResult=e.EventAttribute=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(5090),u=p(9928),s=p(1093),r=p(5672),n=p(2740);var o,i,f,d;function h(y){switch(y){case 0:case"NEW":return o.NEW;case 1:case"RECHECK":return o.RECHECK;default:return o.UNRECOGNIZED}}function _(y){switch(y){case o.NEW:return"NEW";case o.RECHECK:return"RECHECK";default:return"UNKNOWN"}}function b(y){switch(y){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"DUPLICATE_VOTE":return i.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return i.LIGHT_CLIENT_ATTACK;default:return i.UNRECOGNIZED}}function I(y){switch(y){case i.UNKNOWN:return"UNKNOWN";case i.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case i.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";default:return"UNKNOWN"}}function l(y){switch(y){case 0:case"UNKNOWN":return f.UNKNOWN;case 1:case"ACCEPT":return f.ACCEPT;case 2:case"ABORT":return f.ABORT;case 3:case"REJECT":return f.REJECT;case 4:case"REJECT_FORMAT":return f.REJECT_FORMAT;case 5:case"REJECT_SENDER":return f.REJECT_SENDER;default:return f.UNRECOGNIZED}}function j(y){switch(y){case f.UNKNOWN:return"UNKNOWN";case f.ACCEPT:return"ACCEPT";case f.ABORT:return"ABORT";case f.REJECT:return"REJECT";case f.REJECT_FORMAT:return"REJECT_FORMAT";case f.REJECT_SENDER:return"REJECT_SENDER";default:return"UNKNOWN"}}function M(y){switch(y){case 0:case"UNKNOWN":return d.UNKNOWN;case 1:case"ACCEPT":return d.ACCEPT;case 2:case"ABORT":return d.ABORT;case 3:case"RETRY":return d.RETRY;case 4:case"RETRY_SNAPSHOT":return d.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return d.REJECT_SNAPSHOT;default:return d.UNRECOGNIZED}}function N(y){switch(y){case d.UNKNOWN:return"UNKNOWN";case d.ACCEPT:return"ACCEPT";case d.ABORT:return"ABORT";case d.RETRY:return"RETRY";case d.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case d.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";default:return"UNKNOWN"}}function C(){return{time:void 0,chain_id:"",consensus_params:void 0,validators:[],app_state_bytes:new Uint8Array,initial_height:"0"}}function x(){return{data:new Uint8Array,path:"",height:"0",prove:!1}}function P(){return{hash:new Uint8Array,header:void 0,last_commit_info:void 0,byzantine_validators:[],commit:void 0,txs:[]}}function v(){return{tx:new Uint8Array,type:0}}function m(){return{tx:new Uint8Array}}function E(){return{snapshot:void 0,app_hash:new Uint8Array}}function B(){return{index:0,chunk:new Uint8Array,sender:""}}function T(){return{data:"",version:"",app_version:"0",last_block_height:"0",last_block_app_hash:new Uint8Array}}function q(){return{consensus_params:void 0,validators:[],app_hash:new Uint8Array}}function te(){return{code:0,log:"",info:"",index:"0",key:new Uint8Array,value:new Uint8Array,proof_ops:void 0,height:"0",codespace:""}}function re(){return{code:0,data:new Uint8Array,log:"",info:"",gas_wanted:"0",gas_used:"0",events:[],codespace:"",sender:"",priority:"0",mempool_error:""}}function ie(){return{code:0,data:new Uint8Array,log:"",info:"",gas_wanted:"0",gas_used:"0",events:[],codespace:""}}function J(){return{data:new Uint8Array,retain_height:"0"}}function ee(){return{chunk:new Uint8Array}}function G(){return{key:new Uint8Array,value:new Uint8Array,index:!1}}function $(){return{height:"0",index:0,tx:new Uint8Array,result:void 0}}function W(){return{address:new Uint8Array,power:"0"}}function Y(){return{height:"0",format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}e.protobufPackage="tendermint.abci",function(y){y[y.NEW=0]="NEW",y[y.RECHECK=1]="RECHECK",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.CheckTxType||(e.CheckTxType={})),e.checkTxTypeFromJSON=h,e.checkTxTypeToJSON=_,function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",y[y.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=e.EvidenceType||(e.EvidenceType={})),e.evidenceTypeFromJSON=b,e.evidenceTypeToJSON=I,function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.ACCEPT=1]="ACCEPT",y[y.ABORT=2]="ABORT",y[y.REJECT=3]="REJECT",y[y.REJECT_FORMAT=4]="REJECT_FORMAT",y[y.REJECT_SENDER=5]="REJECT_SENDER",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=e.ResponseOfferSnapshot_Result||(e.ResponseOfferSnapshot_Result={})),e.responseOfferSnapshot_ResultFromJSON=l,e.responseOfferSnapshot_ResultToJSON=j,function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.ACCEPT=1]="ACCEPT",y[y.ABORT=2]="ABORT",y[y.RETRY=3]="RETRY",y[y.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",y[y.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=e.ResponseApplySnapshotChunk_Result||(e.ResponseApplySnapshotChunk_Result={})),e.responseApplySnapshotChunk_ResultFromJSON=M,e.responseApplySnapshotChunk_ResultToJSON=N,e.Request={encode:(y,A=t.Writer.create())=>(y.echo!==void 0&&e.RequestEcho.encode(y.echo,A.uint32(10).fork()).ldelim(),y.flush!==void 0&&e.RequestFlush.encode(y.flush,A.uint32(18).fork()).ldelim(),y.info!==void 0&&e.RequestInfo.encode(y.info,A.uint32(26).fork()).ldelim(),y.set_option!==void 0&&e.RequestSetOption.encode(y.set_option,A.uint32(34).fork()).ldelim(),y.init_chain!==void 0&&e.RequestInitChain.encode(y.init_chain,A.uint32(42).fork()).ldelim(),y.query!==void 0&&e.RequestQuery.encode(y.query,A.uint32(50).fork()).ldelim(),y.begin_block!==void 0&&e.RequestBeginBlock.encode(y.begin_block,A.uint32(58).fork()).ldelim(),y.check_tx!==void 0&&e.RequestCheckTx.encode(y.check_tx,A.uint32(66).fork()).ldelim(),y.deliver_tx!==void 0&&e.RequestDeliverTx.encode(y.deliver_tx,A.uint32(74).fork()).ldelim(),y.end_block!==void 0&&e.RequestEndBlock.encode(y.end_block,A.uint32(82).fork()).ldelim(),y.commit!==void 0&&e.RequestCommit.encode(y.commit,A.uint32(90).fork()).ldelim(),y.list_snapshots!==void 0&&e.RequestListSnapshots.encode(y.list_snapshots,A.uint32(98).fork()).ldelim(),y.offer_snapshot!==void 0&&e.RequestOfferSnapshot.encode(y.offer_snapshot,A.uint32(106).fork()).ldelim(),y.load_snapshot_chunk!==void 0&&e.RequestLoadSnapshotChunk.encode(y.load_snapshot_chunk,A.uint32(114).fork()).ldelim(),y.apply_snapshot_chunk!==void 0&&e.RequestApplySnapshotChunk.encode(y.apply_snapshot_chunk,A.uint32(122).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};for(;R.pos>>3){case 1:z.echo=e.RequestEcho.decode(R,R.uint32());break;case 2:z.flush=e.RequestFlush.decode(R,R.uint32());break;case 3:z.info=e.RequestInfo.decode(R,R.uint32());break;case 4:z.set_option=e.RequestSetOption.decode(R,R.uint32());break;case 5:z.init_chain=e.RequestInitChain.decode(R,R.uint32());break;case 6:z.query=e.RequestQuery.decode(R,R.uint32());break;case 7:z.begin_block=e.RequestBeginBlock.decode(R,R.uint32());break;case 8:z.check_tx=e.RequestCheckTx.decode(R,R.uint32());break;case 9:z.deliver_tx=e.RequestDeliverTx.decode(R,R.uint32());break;case 10:z.end_block=e.RequestEndBlock.decode(R,R.uint32());break;case 11:z.commit=e.RequestCommit.decode(R,R.uint32());break;case 12:z.list_snapshots=e.RequestListSnapshots.decode(R,R.uint32());break;case 13:z.offer_snapshot=e.RequestOfferSnapshot.decode(R,R.uint32());break;case 14:z.load_snapshot_chunk=e.RequestLoadSnapshotChunk.decode(R,R.uint32());break;case 15:z.apply_snapshot_chunk=e.RequestApplySnapshotChunk.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({echo:V(y.echo)?e.RequestEcho.fromJSON(y.echo):void 0,flush:V(y.flush)?e.RequestFlush.fromJSON(y.flush):void 0,info:V(y.info)?e.RequestInfo.fromJSON(y.info):void 0,set_option:V(y.set_option)?e.RequestSetOption.fromJSON(y.set_option):void 0,init_chain:V(y.init_chain)?e.RequestInitChain.fromJSON(y.init_chain):void 0,query:V(y.query)?e.RequestQuery.fromJSON(y.query):void 0,begin_block:V(y.begin_block)?e.RequestBeginBlock.fromJSON(y.begin_block):void 0,check_tx:V(y.check_tx)?e.RequestCheckTx.fromJSON(y.check_tx):void 0,deliver_tx:V(y.deliver_tx)?e.RequestDeliverTx.fromJSON(y.deliver_tx):void 0,end_block:V(y.end_block)?e.RequestEndBlock.fromJSON(y.end_block):void 0,commit:V(y.commit)?e.RequestCommit.fromJSON(y.commit):void 0,list_snapshots:V(y.list_snapshots)?e.RequestListSnapshots.fromJSON(y.list_snapshots):void 0,offer_snapshot:V(y.offer_snapshot)?e.RequestOfferSnapshot.fromJSON(y.offer_snapshot):void 0,load_snapshot_chunk:V(y.load_snapshot_chunk)?e.RequestLoadSnapshotChunk.fromJSON(y.load_snapshot_chunk):void 0,apply_snapshot_chunk:V(y.apply_snapshot_chunk)?e.RequestApplySnapshotChunk.fromJSON(y.apply_snapshot_chunk):void 0}),toJSON(y){const A={};return y.echo!==void 0&&(A.echo=y.echo?e.RequestEcho.toJSON(y.echo):void 0),y.flush!==void 0&&(A.flush=y.flush?e.RequestFlush.toJSON(y.flush):void 0),y.info!==void 0&&(A.info=y.info?e.RequestInfo.toJSON(y.info):void 0),y.set_option!==void 0&&(A.set_option=y.set_option?e.RequestSetOption.toJSON(y.set_option):void 0),y.init_chain!==void 0&&(A.init_chain=y.init_chain?e.RequestInitChain.toJSON(y.init_chain):void 0),y.query!==void 0&&(A.query=y.query?e.RequestQuery.toJSON(y.query):void 0),y.begin_block!==void 0&&(A.begin_block=y.begin_block?e.RequestBeginBlock.toJSON(y.begin_block):void 0),y.check_tx!==void 0&&(A.check_tx=y.check_tx?e.RequestCheckTx.toJSON(y.check_tx):void 0),y.deliver_tx!==void 0&&(A.deliver_tx=y.deliver_tx?e.RequestDeliverTx.toJSON(y.deliver_tx):void 0),y.end_block!==void 0&&(A.end_block=y.end_block?e.RequestEndBlock.toJSON(y.end_block):void 0),y.commit!==void 0&&(A.commit=y.commit?e.RequestCommit.toJSON(y.commit):void 0),y.list_snapshots!==void 0&&(A.list_snapshots=y.list_snapshots?e.RequestListSnapshots.toJSON(y.list_snapshots):void 0),y.offer_snapshot!==void 0&&(A.offer_snapshot=y.offer_snapshot?e.RequestOfferSnapshot.toJSON(y.offer_snapshot):void 0),y.load_snapshot_chunk!==void 0&&(A.load_snapshot_chunk=y.load_snapshot_chunk?e.RequestLoadSnapshotChunk.toJSON(y.load_snapshot_chunk):void 0),y.apply_snapshot_chunk!==void 0&&(A.apply_snapshot_chunk=y.apply_snapshot_chunk?e.RequestApplySnapshotChunk.toJSON(y.apply_snapshot_chunk):void 0),A},fromPartial(y){const A={echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};return A.echo=y.echo!==void 0&&y.echo!==null?e.RequestEcho.fromPartial(y.echo):void 0,A.flush=y.flush!==void 0&&y.flush!==null?e.RequestFlush.fromPartial(y.flush):void 0,A.info=y.info!==void 0&&y.info!==null?e.RequestInfo.fromPartial(y.info):void 0,A.set_option=y.set_option!==void 0&&y.set_option!==null?e.RequestSetOption.fromPartial(y.set_option):void 0,A.init_chain=y.init_chain!==void 0&&y.init_chain!==null?e.RequestInitChain.fromPartial(y.init_chain):void 0,A.query=y.query!==void 0&&y.query!==null?e.RequestQuery.fromPartial(y.query):void 0,A.begin_block=y.begin_block!==void 0&&y.begin_block!==null?e.RequestBeginBlock.fromPartial(y.begin_block):void 0,A.check_tx=y.check_tx!==void 0&&y.check_tx!==null?e.RequestCheckTx.fromPartial(y.check_tx):void 0,A.deliver_tx=y.deliver_tx!==void 0&&y.deliver_tx!==null?e.RequestDeliverTx.fromPartial(y.deliver_tx):void 0,A.end_block=y.end_block!==void 0&&y.end_block!==null?e.RequestEndBlock.fromPartial(y.end_block):void 0,A.commit=y.commit!==void 0&&y.commit!==null?e.RequestCommit.fromPartial(y.commit):void 0,A.list_snapshots=y.list_snapshots!==void 0&&y.list_snapshots!==null?e.RequestListSnapshots.fromPartial(y.list_snapshots):void 0,A.offer_snapshot=y.offer_snapshot!==void 0&&y.offer_snapshot!==null?e.RequestOfferSnapshot.fromPartial(y.offer_snapshot):void 0,A.load_snapshot_chunk=y.load_snapshot_chunk!==void 0&&y.load_snapshot_chunk!==null?e.RequestLoadSnapshotChunk.fromPartial(y.load_snapshot_chunk):void 0,A.apply_snapshot_chunk=y.apply_snapshot_chunk!==void 0&&y.apply_snapshot_chunk!==null?e.RequestApplySnapshotChunk.fromPartial(y.apply_snapshot_chunk):void 0,A}},e.RequestEcho={encode:(y,A=t.Writer.create())=>(y.message!==""&&A.uint32(10).string(y.message),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={message:""};for(;R.pos>>3==1?z.message=R.string():R.skipType(7&L)}return z},fromJSON:y=>({message:V(y.message)?String(y.message):""}),toJSON(y){const A={};return y.message!==void 0&&(A.message=y.message),A},fromPartial(y){var A;const R={message:""};return R.message=(A=y.message)!==null&&A!==void 0?A:"",R}},e.RequestFlush={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.RequestInfo={encode:(y,A=t.Writer.create())=>(y.version!==""&&A.uint32(10).string(y.version),y.block_version!=="0"&&A.uint32(16).uint64(y.block_version),y.p2p_version!=="0"&&A.uint32(24).uint64(y.p2p_version),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={version:"",block_version:"0",p2p_version:"0"};for(;R.pos>>3){case 1:z.version=R.string();break;case 2:z.block_version=ye(R.uint64());break;case 3:z.p2p_version=ye(R.uint64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({version:V(y.version)?String(y.version):"",block_version:V(y.block_version)?String(y.block_version):"0",p2p_version:V(y.p2p_version)?String(y.p2p_version):"0"}),toJSON(y){const A={};return y.version!==void 0&&(A.version=y.version),y.block_version!==void 0&&(A.block_version=y.block_version),y.p2p_version!==void 0&&(A.p2p_version=y.p2p_version),A},fromPartial(y){var A,R,U;const z={version:"",block_version:"0",p2p_version:"0"};return z.version=(A=y.version)!==null&&A!==void 0?A:"",z.block_version=(R=y.block_version)!==null&&R!==void 0?R:"0",z.p2p_version=(U=y.p2p_version)!==null&&U!==void 0?U:"0",z}},e.RequestSetOption={encode:(y,A=t.Writer.create())=>(y.key!==""&&A.uint32(10).string(y.key),y.value!==""&&A.uint32(18).string(y.value),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={key:"",value:""};for(;R.pos>>3){case 1:z.key=R.string();break;case 2:z.value=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({key:V(y.key)?String(y.key):"",value:V(y.value)?String(y.value):""}),toJSON(y){const A={};return y.key!==void 0&&(A.key=y.key),y.value!==void 0&&(A.value=y.value),A},fromPartial(y){var A,R;const U={key:"",value:""};return U.key=(A=y.key)!==null&&A!==void 0?A:"",U.value=(R=y.value)!==null&&R!==void 0?R:"",U}},e.RequestInitChain={encode(y,A=t.Writer.create()){y.time!==void 0&&c.Timestamp.encode(y.time,A.uint32(10).fork()).ldelim(),y.chain_id!==""&&A.uint32(18).string(y.chain_id),y.consensus_params!==void 0&&e.ConsensusParams.encode(y.consensus_params,A.uint32(26).fork()).ldelim();for(const R of y.validators)e.ValidatorUpdate.encode(R,A.uint32(34).fork()).ldelim();return y.app_state_bytes.length!==0&&A.uint32(42).bytes(y.app_state_bytes),y.initial_height!=="0"&&A.uint32(48).int64(y.initial_height),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=C();for(;R.pos>>3){case 1:z.time=c.Timestamp.decode(R,R.uint32());break;case 2:z.chain_id=R.string();break;case 3:z.consensus_params=e.ConsensusParams.decode(R,R.uint32());break;case 4:z.validators.push(e.ValidatorUpdate.decode(R,R.uint32()));break;case 5:z.app_state_bytes=R.bytes();break;case 6:z.initial_height=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({time:V(y.time)?pe(y.time):void 0,chain_id:V(y.chain_id)?String(y.chain_id):"",consensus_params:V(y.consensus_params)?e.ConsensusParams.fromJSON(y.consensus_params):void 0,validators:Array.isArray(y==null?void 0:y.validators)?y.validators.map(A=>e.ValidatorUpdate.fromJSON(A)):[],app_state_bytes:V(y.app_state_bytes)?he(y.app_state_bytes):new Uint8Array,initial_height:V(y.initial_height)?String(y.initial_height):"0"}),toJSON(y){const A={};return y.time!==void 0&&(A.time=de(y.time).toISOString()),y.chain_id!==void 0&&(A.chain_id=y.chain_id),y.consensus_params!==void 0&&(A.consensus_params=y.consensus_params?e.ConsensusParams.toJSON(y.consensus_params):void 0),y.validators?A.validators=y.validators.map(R=>R?e.ValidatorUpdate.toJSON(R):void 0):A.validators=[],y.app_state_bytes!==void 0&&(A.app_state_bytes=ce(y.app_state_bytes!==void 0?y.app_state_bytes:new Uint8Array)),y.initial_height!==void 0&&(A.initial_height=y.initial_height),A},fromPartial(y){var A,R,U,z;const L=C();return L.time=y.time!==void 0&&y.time!==null?c.Timestamp.fromPartial(y.time):void 0,L.chain_id=(A=y.chain_id)!==null&&A!==void 0?A:"",L.consensus_params=y.consensus_params!==void 0&&y.consensus_params!==null?e.ConsensusParams.fromPartial(y.consensus_params):void 0,L.validators=((R=y.validators)===null||R===void 0?void 0:R.map(H=>e.ValidatorUpdate.fromPartial(H)))||[],L.app_state_bytes=(U=y.app_state_bytes)!==null&&U!==void 0?U:new Uint8Array,L.initial_height=(z=y.initial_height)!==null&&z!==void 0?z:"0",L}},e.RequestQuery={encode:(y,A=t.Writer.create())=>(y.data.length!==0&&A.uint32(10).bytes(y.data),y.path!==""&&A.uint32(18).string(y.path),y.height!=="0"&&A.uint32(24).int64(y.height),y.prove===!0&&A.uint32(32).bool(y.prove),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=x();for(;R.pos>>3){case 1:z.data=R.bytes();break;case 2:z.path=R.string();break;case 3:z.height=ye(R.int64());break;case 4:z.prove=R.bool();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({data:V(y.data)?he(y.data):new Uint8Array,path:V(y.path)?String(y.path):"",height:V(y.height)?String(y.height):"0",prove:!!V(y.prove)&&!!y.prove}),toJSON(y){const A={};return y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.path!==void 0&&(A.path=y.path),y.height!==void 0&&(A.height=y.height),y.prove!==void 0&&(A.prove=y.prove),A},fromPartial(y){var A,R,U,z;const L=x();return L.data=(A=y.data)!==null&&A!==void 0?A:new Uint8Array,L.path=(R=y.path)!==null&&R!==void 0?R:"",L.height=(U=y.height)!==null&&U!==void 0?U:"0",L.prove=(z=y.prove)!==null&&z!==void 0&&z,L}},e.RequestBeginBlock={encode(y,A=t.Writer.create()){y.hash.length!==0&&A.uint32(10).bytes(y.hash),y.header!==void 0&&u.Header.encode(y.header,A.uint32(18).fork()).ldelim(),y.last_commit_info!==void 0&&e.LastCommitInfo.encode(y.last_commit_info,A.uint32(26).fork()).ldelim();for(const R of y.byzantine_validators)e.Evidence.encode(R,A.uint32(34).fork()).ldelim();y.commit!==void 0&&u.Commit.encode(y.commit,A.uint32(42).fork()).ldelim();for(const R of y.txs)A.uint32(50).bytes(R);return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=P();for(;R.pos>>3){case 1:z.hash=R.bytes();break;case 2:z.header=u.Header.decode(R,R.uint32());break;case 3:z.last_commit_info=e.LastCommitInfo.decode(R,R.uint32());break;case 4:z.byzantine_validators.push(e.Evidence.decode(R,R.uint32()));break;case 5:z.commit=u.Commit.decode(R,R.uint32());break;case 6:z.txs.push(R.bytes());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({hash:V(y.hash)?he(y.hash):new Uint8Array,header:V(y.header)?u.Header.fromJSON(y.header):void 0,last_commit_info:V(y.last_commit_info)?e.LastCommitInfo.fromJSON(y.last_commit_info):void 0,byzantine_validators:Array.isArray(y==null?void 0:y.byzantine_validators)?y.byzantine_validators.map(A=>e.Evidence.fromJSON(A)):[],commit:V(y.commit)?u.Commit.fromJSON(y.commit):void 0,txs:Array.isArray(y==null?void 0:y.txs)?y.txs.map(A=>he(A)):[]}),toJSON(y){const A={};return y.hash!==void 0&&(A.hash=ce(y.hash!==void 0?y.hash:new Uint8Array)),y.header!==void 0&&(A.header=y.header?u.Header.toJSON(y.header):void 0),y.last_commit_info!==void 0&&(A.last_commit_info=y.last_commit_info?e.LastCommitInfo.toJSON(y.last_commit_info):void 0),y.byzantine_validators?A.byzantine_validators=y.byzantine_validators.map(R=>R?e.Evidence.toJSON(R):void 0):A.byzantine_validators=[],y.commit!==void 0&&(A.commit=y.commit?u.Commit.toJSON(y.commit):void 0),y.txs?A.txs=y.txs.map(R=>ce(R!==void 0?R:new Uint8Array)):A.txs=[],A},fromPartial(y){var A,R,U;const z=P();return z.hash=(A=y.hash)!==null&&A!==void 0?A:new Uint8Array,z.header=y.header!==void 0&&y.header!==null?u.Header.fromPartial(y.header):void 0,z.last_commit_info=y.last_commit_info!==void 0&&y.last_commit_info!==null?e.LastCommitInfo.fromPartial(y.last_commit_info):void 0,z.byzantine_validators=((R=y.byzantine_validators)===null||R===void 0?void 0:R.map(L=>e.Evidence.fromPartial(L)))||[],z.commit=y.commit!==void 0&&y.commit!==null?u.Commit.fromPartial(y.commit):void 0,z.txs=((U=y.txs)===null||U===void 0?void 0:U.map(L=>L))||[],z}},e.RequestCheckTx={encode:(y,A=t.Writer.create())=>(y.tx.length!==0&&A.uint32(10).bytes(y.tx),y.type!==0&&A.uint32(16).int32(y.type),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=v();for(;R.pos>>3){case 1:z.tx=R.bytes();break;case 2:z.type=R.int32();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({tx:V(y.tx)?he(y.tx):new Uint8Array,type:V(y.type)?h(y.type):0}),toJSON(y){const A={};return y.tx!==void 0&&(A.tx=ce(y.tx!==void 0?y.tx:new Uint8Array)),y.type!==void 0&&(A.type=_(y.type)),A},fromPartial(y){var A,R;const U=v();return U.tx=(A=y.tx)!==null&&A!==void 0?A:new Uint8Array,U.type=(R=y.type)!==null&&R!==void 0?R:0,U}},e.RequestDeliverTx={encode:(y,A=t.Writer.create())=>(y.tx.length!==0&&A.uint32(10).bytes(y.tx),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=m();for(;R.pos>>3==1?z.tx=R.bytes():R.skipType(7&L)}return z},fromJSON:y=>({tx:V(y.tx)?he(y.tx):new Uint8Array}),toJSON(y){const A={};return y.tx!==void 0&&(A.tx=ce(y.tx!==void 0?y.tx:new Uint8Array)),A},fromPartial(y){var A;const R=m();return R.tx=(A=y.tx)!==null&&A!==void 0?A:new Uint8Array,R}},e.RequestEndBlock={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).int64(y.height),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={height:"0"};for(;R.pos>>3==1?z.height=ye(R.int64()):R.skipType(7&L)}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0"}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),A},fromPartial(y){var A;const R={height:"0"};return R.height=(A=y.height)!==null&&A!==void 0?A:"0",R}},e.RequestCommit={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.RequestListSnapshots={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.RequestOfferSnapshot={encode:(y,A=t.Writer.create())=>(y.snapshot!==void 0&&e.Snapshot.encode(y.snapshot,A.uint32(10).fork()).ldelim(),y.app_hash.length!==0&&A.uint32(18).bytes(y.app_hash),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=E();for(;R.pos>>3){case 1:z.snapshot=e.Snapshot.decode(R,R.uint32());break;case 2:z.app_hash=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({snapshot:V(y.snapshot)?e.Snapshot.fromJSON(y.snapshot):void 0,app_hash:V(y.app_hash)?he(y.app_hash):new Uint8Array}),toJSON(y){const A={};return y.snapshot!==void 0&&(A.snapshot=y.snapshot?e.Snapshot.toJSON(y.snapshot):void 0),y.app_hash!==void 0&&(A.app_hash=ce(y.app_hash!==void 0?y.app_hash:new Uint8Array)),A},fromPartial(y){var A;const R=E();return R.snapshot=y.snapshot!==void 0&&y.snapshot!==null?e.Snapshot.fromPartial(y.snapshot):void 0,R.app_hash=(A=y.app_hash)!==null&&A!==void 0?A:new Uint8Array,R}},e.RequestLoadSnapshotChunk={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).uint64(y.height),y.format!==0&&A.uint32(16).uint32(y.format),y.chunk!==0&&A.uint32(24).uint32(y.chunk),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={height:"0",format:0,chunk:0};for(;R.pos>>3){case 1:z.height=ye(R.uint64());break;case 2:z.format=R.uint32();break;case 3:z.chunk=R.uint32();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0",format:V(y.format)?Number(y.format):0,chunk:V(y.chunk)?Number(y.chunk):0}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),y.format!==void 0&&(A.format=Math.round(y.format)),y.chunk!==void 0&&(A.chunk=Math.round(y.chunk)),A},fromPartial(y){var A,R,U;const z={height:"0",format:0,chunk:0};return z.height=(A=y.height)!==null&&A!==void 0?A:"0",z.format=(R=y.format)!==null&&R!==void 0?R:0,z.chunk=(U=y.chunk)!==null&&U!==void 0?U:0,z}},e.RequestApplySnapshotChunk={encode:(y,A=t.Writer.create())=>(y.index!==0&&A.uint32(8).uint32(y.index),y.chunk.length!==0&&A.uint32(18).bytes(y.chunk),y.sender!==""&&A.uint32(26).string(y.sender),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=B();for(;R.pos>>3){case 1:z.index=R.uint32();break;case 2:z.chunk=R.bytes();break;case 3:z.sender=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({index:V(y.index)?Number(y.index):0,chunk:V(y.chunk)?he(y.chunk):new Uint8Array,sender:V(y.sender)?String(y.sender):""}),toJSON(y){const A={};return y.index!==void 0&&(A.index=Math.round(y.index)),y.chunk!==void 0&&(A.chunk=ce(y.chunk!==void 0?y.chunk:new Uint8Array)),y.sender!==void 0&&(A.sender=y.sender),A},fromPartial(y){var A,R,U;const z=B();return z.index=(A=y.index)!==null&&A!==void 0?A:0,z.chunk=(R=y.chunk)!==null&&R!==void 0?R:new Uint8Array,z.sender=(U=y.sender)!==null&&U!==void 0?U:"",z}},e.Response={encode:(y,A=t.Writer.create())=>(y.exception!==void 0&&e.ResponseException.encode(y.exception,A.uint32(10).fork()).ldelim(),y.echo!==void 0&&e.ResponseEcho.encode(y.echo,A.uint32(18).fork()).ldelim(),y.flush!==void 0&&e.ResponseFlush.encode(y.flush,A.uint32(26).fork()).ldelim(),y.info!==void 0&&e.ResponseInfo.encode(y.info,A.uint32(34).fork()).ldelim(),y.set_option!==void 0&&e.ResponseSetOption.encode(y.set_option,A.uint32(42).fork()).ldelim(),y.init_chain!==void 0&&e.ResponseInitChain.encode(y.init_chain,A.uint32(50).fork()).ldelim(),y.query!==void 0&&e.ResponseQuery.encode(y.query,A.uint32(58).fork()).ldelim(),y.begin_block!==void 0&&e.ResponseBeginBlock.encode(y.begin_block,A.uint32(66).fork()).ldelim(),y.check_tx!==void 0&&e.ResponseCheckTx.encode(y.check_tx,A.uint32(74).fork()).ldelim(),y.deliver_tx!==void 0&&e.ResponseDeliverTx.encode(y.deliver_tx,A.uint32(82).fork()).ldelim(),y.end_block!==void 0&&e.ResponseEndBlock.encode(y.end_block,A.uint32(90).fork()).ldelim(),y.commit!==void 0&&e.ResponseCommit.encode(y.commit,A.uint32(98).fork()).ldelim(),y.list_snapshots!==void 0&&e.ResponseListSnapshots.encode(y.list_snapshots,A.uint32(106).fork()).ldelim(),y.offer_snapshot!==void 0&&e.ResponseOfferSnapshot.encode(y.offer_snapshot,A.uint32(114).fork()).ldelim(),y.load_snapshot_chunk!==void 0&&e.ResponseLoadSnapshotChunk.encode(y.load_snapshot_chunk,A.uint32(122).fork()).ldelim(),y.apply_snapshot_chunk!==void 0&&e.ResponseApplySnapshotChunk.encode(y.apply_snapshot_chunk,A.uint32(130).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={exception:void 0,echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};for(;R.pos>>3){case 1:z.exception=e.ResponseException.decode(R,R.uint32());break;case 2:z.echo=e.ResponseEcho.decode(R,R.uint32());break;case 3:z.flush=e.ResponseFlush.decode(R,R.uint32());break;case 4:z.info=e.ResponseInfo.decode(R,R.uint32());break;case 5:z.set_option=e.ResponseSetOption.decode(R,R.uint32());break;case 6:z.init_chain=e.ResponseInitChain.decode(R,R.uint32());break;case 7:z.query=e.ResponseQuery.decode(R,R.uint32());break;case 8:z.begin_block=e.ResponseBeginBlock.decode(R,R.uint32());break;case 9:z.check_tx=e.ResponseCheckTx.decode(R,R.uint32());break;case 10:z.deliver_tx=e.ResponseDeliverTx.decode(R,R.uint32());break;case 11:z.end_block=e.ResponseEndBlock.decode(R,R.uint32());break;case 12:z.commit=e.ResponseCommit.decode(R,R.uint32());break;case 13:z.list_snapshots=e.ResponseListSnapshots.decode(R,R.uint32());break;case 14:z.offer_snapshot=e.ResponseOfferSnapshot.decode(R,R.uint32());break;case 15:z.load_snapshot_chunk=e.ResponseLoadSnapshotChunk.decode(R,R.uint32());break;case 16:z.apply_snapshot_chunk=e.ResponseApplySnapshotChunk.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({exception:V(y.exception)?e.ResponseException.fromJSON(y.exception):void 0,echo:V(y.echo)?e.ResponseEcho.fromJSON(y.echo):void 0,flush:V(y.flush)?e.ResponseFlush.fromJSON(y.flush):void 0,info:V(y.info)?e.ResponseInfo.fromJSON(y.info):void 0,set_option:V(y.set_option)?e.ResponseSetOption.fromJSON(y.set_option):void 0,init_chain:V(y.init_chain)?e.ResponseInitChain.fromJSON(y.init_chain):void 0,query:V(y.query)?e.ResponseQuery.fromJSON(y.query):void 0,begin_block:V(y.begin_block)?e.ResponseBeginBlock.fromJSON(y.begin_block):void 0,check_tx:V(y.check_tx)?e.ResponseCheckTx.fromJSON(y.check_tx):void 0,deliver_tx:V(y.deliver_tx)?e.ResponseDeliverTx.fromJSON(y.deliver_tx):void 0,end_block:V(y.end_block)?e.ResponseEndBlock.fromJSON(y.end_block):void 0,commit:V(y.commit)?e.ResponseCommit.fromJSON(y.commit):void 0,list_snapshots:V(y.list_snapshots)?e.ResponseListSnapshots.fromJSON(y.list_snapshots):void 0,offer_snapshot:V(y.offer_snapshot)?e.ResponseOfferSnapshot.fromJSON(y.offer_snapshot):void 0,load_snapshot_chunk:V(y.load_snapshot_chunk)?e.ResponseLoadSnapshotChunk.fromJSON(y.load_snapshot_chunk):void 0,apply_snapshot_chunk:V(y.apply_snapshot_chunk)?e.ResponseApplySnapshotChunk.fromJSON(y.apply_snapshot_chunk):void 0}),toJSON(y){const A={};return y.exception!==void 0&&(A.exception=y.exception?e.ResponseException.toJSON(y.exception):void 0),y.echo!==void 0&&(A.echo=y.echo?e.ResponseEcho.toJSON(y.echo):void 0),y.flush!==void 0&&(A.flush=y.flush?e.ResponseFlush.toJSON(y.flush):void 0),y.info!==void 0&&(A.info=y.info?e.ResponseInfo.toJSON(y.info):void 0),y.set_option!==void 0&&(A.set_option=y.set_option?e.ResponseSetOption.toJSON(y.set_option):void 0),y.init_chain!==void 0&&(A.init_chain=y.init_chain?e.ResponseInitChain.toJSON(y.init_chain):void 0),y.query!==void 0&&(A.query=y.query?e.ResponseQuery.toJSON(y.query):void 0),y.begin_block!==void 0&&(A.begin_block=y.begin_block?e.ResponseBeginBlock.toJSON(y.begin_block):void 0),y.check_tx!==void 0&&(A.check_tx=y.check_tx?e.ResponseCheckTx.toJSON(y.check_tx):void 0),y.deliver_tx!==void 0&&(A.deliver_tx=y.deliver_tx?e.ResponseDeliverTx.toJSON(y.deliver_tx):void 0),y.end_block!==void 0&&(A.end_block=y.end_block?e.ResponseEndBlock.toJSON(y.end_block):void 0),y.commit!==void 0&&(A.commit=y.commit?e.ResponseCommit.toJSON(y.commit):void 0),y.list_snapshots!==void 0&&(A.list_snapshots=y.list_snapshots?e.ResponseListSnapshots.toJSON(y.list_snapshots):void 0),y.offer_snapshot!==void 0&&(A.offer_snapshot=y.offer_snapshot?e.ResponseOfferSnapshot.toJSON(y.offer_snapshot):void 0),y.load_snapshot_chunk!==void 0&&(A.load_snapshot_chunk=y.load_snapshot_chunk?e.ResponseLoadSnapshotChunk.toJSON(y.load_snapshot_chunk):void 0),y.apply_snapshot_chunk!==void 0&&(A.apply_snapshot_chunk=y.apply_snapshot_chunk?e.ResponseApplySnapshotChunk.toJSON(y.apply_snapshot_chunk):void 0),A},fromPartial(y){const A={exception:void 0,echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};return A.exception=y.exception!==void 0&&y.exception!==null?e.ResponseException.fromPartial(y.exception):void 0,A.echo=y.echo!==void 0&&y.echo!==null?e.ResponseEcho.fromPartial(y.echo):void 0,A.flush=y.flush!==void 0&&y.flush!==null?e.ResponseFlush.fromPartial(y.flush):void 0,A.info=y.info!==void 0&&y.info!==null?e.ResponseInfo.fromPartial(y.info):void 0,A.set_option=y.set_option!==void 0&&y.set_option!==null?e.ResponseSetOption.fromPartial(y.set_option):void 0,A.init_chain=y.init_chain!==void 0&&y.init_chain!==null?e.ResponseInitChain.fromPartial(y.init_chain):void 0,A.query=y.query!==void 0&&y.query!==null?e.ResponseQuery.fromPartial(y.query):void 0,A.begin_block=y.begin_block!==void 0&&y.begin_block!==null?e.ResponseBeginBlock.fromPartial(y.begin_block):void 0,A.check_tx=y.check_tx!==void 0&&y.check_tx!==null?e.ResponseCheckTx.fromPartial(y.check_tx):void 0,A.deliver_tx=y.deliver_tx!==void 0&&y.deliver_tx!==null?e.ResponseDeliverTx.fromPartial(y.deliver_tx):void 0,A.end_block=y.end_block!==void 0&&y.end_block!==null?e.ResponseEndBlock.fromPartial(y.end_block):void 0,A.commit=y.commit!==void 0&&y.commit!==null?e.ResponseCommit.fromPartial(y.commit):void 0,A.list_snapshots=y.list_snapshots!==void 0&&y.list_snapshots!==null?e.ResponseListSnapshots.fromPartial(y.list_snapshots):void 0,A.offer_snapshot=y.offer_snapshot!==void 0&&y.offer_snapshot!==null?e.ResponseOfferSnapshot.fromPartial(y.offer_snapshot):void 0,A.load_snapshot_chunk=y.load_snapshot_chunk!==void 0&&y.load_snapshot_chunk!==null?e.ResponseLoadSnapshotChunk.fromPartial(y.load_snapshot_chunk):void 0,A.apply_snapshot_chunk=y.apply_snapshot_chunk!==void 0&&y.apply_snapshot_chunk!==null?e.ResponseApplySnapshotChunk.fromPartial(y.apply_snapshot_chunk):void 0,A}},e.ResponseException={encode:(y,A=t.Writer.create())=>(y.error!==""&&A.uint32(10).string(y.error),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={error:""};for(;R.pos>>3==1?z.error=R.string():R.skipType(7&L)}return z},fromJSON:y=>({error:V(y.error)?String(y.error):""}),toJSON(y){const A={};return y.error!==void 0&&(A.error=y.error),A},fromPartial(y){var A;const R={error:""};return R.error=(A=y.error)!==null&&A!==void 0?A:"",R}},e.ResponseEcho={encode:(y,A=t.Writer.create())=>(y.message!==""&&A.uint32(10).string(y.message),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={message:""};for(;R.pos>>3==1?z.message=R.string():R.skipType(7&L)}return z},fromJSON:y=>({message:V(y.message)?String(y.message):""}),toJSON(y){const A={};return y.message!==void 0&&(A.message=y.message),A},fromPartial(y){var A;const R={message:""};return R.message=(A=y.message)!==null&&A!==void 0?A:"",R}},e.ResponseFlush={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.ResponseInfo={encode:(y,A=t.Writer.create())=>(y.data!==""&&A.uint32(10).string(y.data),y.version!==""&&A.uint32(18).string(y.version),y.app_version!=="0"&&A.uint32(24).uint64(y.app_version),y.last_block_height!=="0"&&A.uint32(32).int64(y.last_block_height),y.last_block_app_hash.length!==0&&A.uint32(42).bytes(y.last_block_app_hash),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=T();for(;R.pos>>3){case 1:z.data=R.string();break;case 2:z.version=R.string();break;case 3:z.app_version=ye(R.uint64());break;case 4:z.last_block_height=ye(R.int64());break;case 5:z.last_block_app_hash=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({data:V(y.data)?String(y.data):"",version:V(y.version)?String(y.version):"",app_version:V(y.app_version)?String(y.app_version):"0",last_block_height:V(y.last_block_height)?String(y.last_block_height):"0",last_block_app_hash:V(y.last_block_app_hash)?he(y.last_block_app_hash):new Uint8Array}),toJSON(y){const A={};return y.data!==void 0&&(A.data=y.data),y.version!==void 0&&(A.version=y.version),y.app_version!==void 0&&(A.app_version=y.app_version),y.last_block_height!==void 0&&(A.last_block_height=y.last_block_height),y.last_block_app_hash!==void 0&&(A.last_block_app_hash=ce(y.last_block_app_hash!==void 0?y.last_block_app_hash:new Uint8Array)),A},fromPartial(y){var A,R,U,z,L;const H=T();return H.data=(A=y.data)!==null&&A!==void 0?A:"",H.version=(R=y.version)!==null&&R!==void 0?R:"",H.app_version=(U=y.app_version)!==null&&U!==void 0?U:"0",H.last_block_height=(z=y.last_block_height)!==null&&z!==void 0?z:"0",H.last_block_app_hash=(L=y.last_block_app_hash)!==null&&L!==void 0?L:new Uint8Array,H}},e.ResponseSetOption={encode:(y,A=t.Writer.create())=>(y.code!==0&&A.uint32(8).uint32(y.code),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={code:0,log:"",info:""};for(;R.pos>>3){case 1:z.code=R.uint32();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),A},fromPartial(y){var A,R,U;const z={code:0,log:"",info:""};return z.code=(A=y.code)!==null&&A!==void 0?A:0,z.log=(R=y.log)!==null&&R!==void 0?R:"",z.info=(U=y.info)!==null&&U!==void 0?U:"",z}},e.ResponseInitChain={encode(y,A=t.Writer.create()){y.consensus_params!==void 0&&e.ConsensusParams.encode(y.consensus_params,A.uint32(10).fork()).ldelim();for(const R of y.validators)e.ValidatorUpdate.encode(R,A.uint32(18).fork()).ldelim();return y.app_hash.length!==0&&A.uint32(26).bytes(y.app_hash),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=q();for(;R.pos>>3){case 1:z.consensus_params=e.ConsensusParams.decode(R,R.uint32());break;case 2:z.validators.push(e.ValidatorUpdate.decode(R,R.uint32()));break;case 3:z.app_hash=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({consensus_params:V(y.consensus_params)?e.ConsensusParams.fromJSON(y.consensus_params):void 0,validators:Array.isArray(y==null?void 0:y.validators)?y.validators.map(A=>e.ValidatorUpdate.fromJSON(A)):[],app_hash:V(y.app_hash)?he(y.app_hash):new Uint8Array}),toJSON(y){const A={};return y.consensus_params!==void 0&&(A.consensus_params=y.consensus_params?e.ConsensusParams.toJSON(y.consensus_params):void 0),y.validators?A.validators=y.validators.map(R=>R?e.ValidatorUpdate.toJSON(R):void 0):A.validators=[],y.app_hash!==void 0&&(A.app_hash=ce(y.app_hash!==void 0?y.app_hash:new Uint8Array)),A},fromPartial(y){var A,R;const U=q();return U.consensus_params=y.consensus_params!==void 0&&y.consensus_params!==null?e.ConsensusParams.fromPartial(y.consensus_params):void 0,U.validators=((A=y.validators)===null||A===void 0?void 0:A.map(z=>e.ValidatorUpdate.fromPartial(z)))||[],U.app_hash=(R=y.app_hash)!==null&&R!==void 0?R:new Uint8Array,U}},e.ResponseQuery={encode:(y,A=t.Writer.create())=>(y.code!==0&&A.uint32(8).uint32(y.code),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),y.index!=="0"&&A.uint32(40).int64(y.index),y.key.length!==0&&A.uint32(50).bytes(y.key),y.value.length!==0&&A.uint32(58).bytes(y.value),y.proof_ops!==void 0&&s.ProofOps.encode(y.proof_ops,A.uint32(66).fork()).ldelim(),y.height!=="0"&&A.uint32(72).int64(y.height),y.codespace!==""&&A.uint32(82).string(y.codespace),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=te();for(;R.pos>>3){case 1:z.code=R.uint32();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;case 5:z.index=ye(R.int64());break;case 6:z.key=R.bytes();break;case 7:z.value=R.bytes();break;case 8:z.proof_ops=s.ProofOps.decode(R,R.uint32());break;case 9:z.height=ye(R.int64());break;case 10:z.codespace=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):"",index:V(y.index)?String(y.index):"0",key:V(y.key)?he(y.key):new Uint8Array,value:V(y.value)?he(y.value):new Uint8Array,proof_ops:V(y.proof_ops)?s.ProofOps.fromJSON(y.proof_ops):void 0,height:V(y.height)?String(y.height):"0",codespace:V(y.codespace)?String(y.codespace):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),y.index!==void 0&&(A.index=y.index),y.key!==void 0&&(A.key=ce(y.key!==void 0?y.key:new Uint8Array)),y.value!==void 0&&(A.value=ce(y.value!==void 0?y.value:new Uint8Array)),y.proof_ops!==void 0&&(A.proof_ops=y.proof_ops?s.ProofOps.toJSON(y.proof_ops):void 0),y.height!==void 0&&(A.height=y.height),y.codespace!==void 0&&(A.codespace=y.codespace),A},fromPartial(y){var A,R,U,z,L,H,ne,oe;const K=te();return K.code=(A=y.code)!==null&&A!==void 0?A:0,K.log=(R=y.log)!==null&&R!==void 0?R:"",K.info=(U=y.info)!==null&&U!==void 0?U:"",K.index=(z=y.index)!==null&&z!==void 0?z:"0",K.key=(L=y.key)!==null&&L!==void 0?L:new Uint8Array,K.value=(H=y.value)!==null&&H!==void 0?H:new Uint8Array,K.proof_ops=y.proof_ops!==void 0&&y.proof_ops!==null?s.ProofOps.fromPartial(y.proof_ops):void 0,K.height=(ne=y.height)!==null&&ne!==void 0?ne:"0",K.codespace=(oe=y.codespace)!==null&&oe!==void 0?oe:"",K}},e.ResponseBeginBlock={encode(y,A=t.Writer.create()){for(const R of y.events)e.Event.encode(R,A.uint32(10).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={events:[]};for(;R.pos>>3==1?z.events.push(e.Event.decode(R,R.uint32())):R.skipType(7&L)}return z},fromJSON:y=>({events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[]}),toJSON(y){const A={};return y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],A},fromPartial(y){var A;const R={events:[]};return R.events=((A=y.events)===null||A===void 0?void 0:A.map(U=>e.Event.fromPartial(U)))||[],R}},e.ResponseCheckTx={encode(y,A=t.Writer.create()){y.code!==0&&A.uint32(8).uint32(y.code),y.data.length!==0&&A.uint32(18).bytes(y.data),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),y.gas_wanted!=="0"&&A.uint32(40).int64(y.gas_wanted),y.gas_used!=="0"&&A.uint32(48).int64(y.gas_used);for(const R of y.events)e.Event.encode(R,A.uint32(58).fork()).ldelim();return y.codespace!==""&&A.uint32(66).string(y.codespace),y.sender!==""&&A.uint32(74).string(y.sender),y.priority!=="0"&&A.uint32(80).int64(y.priority),y.mempool_error!==""&&A.uint32(90).string(y.mempool_error),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=re();for(;R.pos>>3){case 1:z.code=R.uint32();break;case 2:z.data=R.bytes();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;case 5:z.gas_wanted=ye(R.int64());break;case 6:z.gas_used=ye(R.int64());break;case 7:z.events.push(e.Event.decode(R,R.uint32()));break;case 8:z.codespace=R.string();break;case 9:z.sender=R.string();break;case 10:z.priority=ye(R.int64());break;case 11:z.mempool_error=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,data:V(y.data)?he(y.data):new Uint8Array,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):"",gas_wanted:V(y.gas_wanted)?String(y.gas_wanted):"0",gas_used:V(y.gas_used)?String(y.gas_used):"0",events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[],codespace:V(y.codespace)?String(y.codespace):"",sender:V(y.sender)?String(y.sender):"",priority:V(y.priority)?String(y.priority):"0",mempool_error:V(y.mempool_error)?String(y.mempool_error):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),y.gas_wanted!==void 0&&(A.gas_wanted=y.gas_wanted),y.gas_used!==void 0&&(A.gas_used=y.gas_used),y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],y.codespace!==void 0&&(A.codespace=y.codespace),y.sender!==void 0&&(A.sender=y.sender),y.priority!==void 0&&(A.priority=y.priority),y.mempool_error!==void 0&&(A.mempool_error=y.mempool_error),A},fromPartial(y){var A,R,U,z,L,H,ne,oe,K,X,Q;const Z=re();return Z.code=(A=y.code)!==null&&A!==void 0?A:0,Z.data=(R=y.data)!==null&&R!==void 0?R:new Uint8Array,Z.log=(U=y.log)!==null&&U!==void 0?U:"",Z.info=(z=y.info)!==null&&z!==void 0?z:"",Z.gas_wanted=(L=y.gas_wanted)!==null&&L!==void 0?L:"0",Z.gas_used=(H=y.gas_used)!==null&&H!==void 0?H:"0",Z.events=((ne=y.events)===null||ne===void 0?void 0:ne.map(se=>e.Event.fromPartial(se)))||[],Z.codespace=(oe=y.codespace)!==null&&oe!==void 0?oe:"",Z.sender=(K=y.sender)!==null&&K!==void 0?K:"",Z.priority=(X=y.priority)!==null&&X!==void 0?X:"0",Z.mempool_error=(Q=y.mempool_error)!==null&&Q!==void 0?Q:"",Z}},e.ResponseDeliverTx={encode(y,A=t.Writer.create()){y.code!==0&&A.uint32(8).uint32(y.code),y.data.length!==0&&A.uint32(18).bytes(y.data),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),y.gas_wanted!=="0"&&A.uint32(40).int64(y.gas_wanted),y.gas_used!=="0"&&A.uint32(48).int64(y.gas_used);for(const R of y.events)e.Event.encode(R,A.uint32(58).fork()).ldelim();return y.codespace!==""&&A.uint32(66).string(y.codespace),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=ie();for(;R.pos>>3){case 1:z.code=R.uint32();break;case 2:z.data=R.bytes();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;case 5:z.gas_wanted=ye(R.int64());break;case 6:z.gas_used=ye(R.int64());break;case 7:z.events.push(e.Event.decode(R,R.uint32()));break;case 8:z.codespace=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,data:V(y.data)?he(y.data):new Uint8Array,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):"",gas_wanted:V(y.gas_wanted)?String(y.gas_wanted):"0",gas_used:V(y.gas_used)?String(y.gas_used):"0",events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[],codespace:V(y.codespace)?String(y.codespace):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),y.gas_wanted!==void 0&&(A.gas_wanted=y.gas_wanted),y.gas_used!==void 0&&(A.gas_used=y.gas_used),y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],y.codespace!==void 0&&(A.codespace=y.codespace),A},fromPartial(y){var A,R,U,z,L,H,ne,oe;const K=ie();return K.code=(A=y.code)!==null&&A!==void 0?A:0,K.data=(R=y.data)!==null&&R!==void 0?R:new Uint8Array,K.log=(U=y.log)!==null&&U!==void 0?U:"",K.info=(z=y.info)!==null&&z!==void 0?z:"",K.gas_wanted=(L=y.gas_wanted)!==null&&L!==void 0?L:"0",K.gas_used=(H=y.gas_used)!==null&&H!==void 0?H:"0",K.events=((ne=y.events)===null||ne===void 0?void 0:ne.map(X=>e.Event.fromPartial(X)))||[],K.codespace=(oe=y.codespace)!==null&&oe!==void 0?oe:"",K}},e.ResponseEndBlock={encode(y,A=t.Writer.create()){for(const R of y.validator_updates)e.ValidatorUpdate.encode(R,A.uint32(10).fork()).ldelim();y.consensus_param_updates!==void 0&&e.ConsensusParams.encode(y.consensus_param_updates,A.uint32(18).fork()).ldelim();for(const R of y.events)e.Event.encode(R,A.uint32(26).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={validator_updates:[],consensus_param_updates:void 0,events:[]};for(;R.pos>>3){case 1:z.validator_updates.push(e.ValidatorUpdate.decode(R,R.uint32()));break;case 2:z.consensus_param_updates=e.ConsensusParams.decode(R,R.uint32());break;case 3:z.events.push(e.Event.decode(R,R.uint32()));break;default:R.skipType(7&L)}}return z},fromJSON:y=>({validator_updates:Array.isArray(y==null?void 0:y.validator_updates)?y.validator_updates.map(A=>e.ValidatorUpdate.fromJSON(A)):[],consensus_param_updates:V(y.consensus_param_updates)?e.ConsensusParams.fromJSON(y.consensus_param_updates):void 0,events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[]}),toJSON(y){const A={};return y.validator_updates?A.validator_updates=y.validator_updates.map(R=>R?e.ValidatorUpdate.toJSON(R):void 0):A.validator_updates=[],y.consensus_param_updates!==void 0&&(A.consensus_param_updates=y.consensus_param_updates?e.ConsensusParams.toJSON(y.consensus_param_updates):void 0),y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],A},fromPartial(y){var A,R;const U={validator_updates:[],consensus_param_updates:void 0,events:[]};return U.validator_updates=((A=y.validator_updates)===null||A===void 0?void 0:A.map(z=>e.ValidatorUpdate.fromPartial(z)))||[],U.consensus_param_updates=y.consensus_param_updates!==void 0&&y.consensus_param_updates!==null?e.ConsensusParams.fromPartial(y.consensus_param_updates):void 0,U.events=((R=y.events)===null||R===void 0?void 0:R.map(z=>e.Event.fromPartial(z)))||[],U}},e.ResponseCommit={encode:(y,A=t.Writer.create())=>(y.data.length!==0&&A.uint32(18).bytes(y.data),y.retain_height!=="0"&&A.uint32(24).int64(y.retain_height),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=J();for(;R.pos>>3){case 2:z.data=R.bytes();break;case 3:z.retain_height=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({data:V(y.data)?he(y.data):new Uint8Array,retain_height:V(y.retain_height)?String(y.retain_height):"0"}),toJSON(y){const A={};return y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.retain_height!==void 0&&(A.retain_height=y.retain_height),A},fromPartial(y){var A,R;const U=J();return U.data=(A=y.data)!==null&&A!==void 0?A:new Uint8Array,U.retain_height=(R=y.retain_height)!==null&&R!==void 0?R:"0",U}},e.ResponseListSnapshots={encode(y,A=t.Writer.create()){for(const R of y.snapshots)e.Snapshot.encode(R,A.uint32(10).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={snapshots:[]};for(;R.pos>>3==1?z.snapshots.push(e.Snapshot.decode(R,R.uint32())):R.skipType(7&L)}return z},fromJSON:y=>({snapshots:Array.isArray(y==null?void 0:y.snapshots)?y.snapshots.map(A=>e.Snapshot.fromJSON(A)):[]}),toJSON(y){const A={};return y.snapshots?A.snapshots=y.snapshots.map(R=>R?e.Snapshot.toJSON(R):void 0):A.snapshots=[],A},fromPartial(y){var A;const R={snapshots:[]};return R.snapshots=((A=y.snapshots)===null||A===void 0?void 0:A.map(U=>e.Snapshot.fromPartial(U)))||[],R}},e.ResponseOfferSnapshot={encode:(y,A=t.Writer.create())=>(y.result!==0&&A.uint32(8).int32(y.result),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={result:0};for(;R.pos>>3==1?z.result=R.int32():R.skipType(7&L)}return z},fromJSON:y=>({result:V(y.result)?l(y.result):0}),toJSON(y){const A={};return y.result!==void 0&&(A.result=j(y.result)),A},fromPartial(y){var A;const R={result:0};return R.result=(A=y.result)!==null&&A!==void 0?A:0,R}},e.ResponseLoadSnapshotChunk={encode:(y,A=t.Writer.create())=>(y.chunk.length!==0&&A.uint32(10).bytes(y.chunk),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=ee();for(;R.pos>>3==1?z.chunk=R.bytes():R.skipType(7&L)}return z},fromJSON:y=>({chunk:V(y.chunk)?he(y.chunk):new Uint8Array}),toJSON(y){const A={};return y.chunk!==void 0&&(A.chunk=ce(y.chunk!==void 0?y.chunk:new Uint8Array)),A},fromPartial(y){var A;const R=ee();return R.chunk=(A=y.chunk)!==null&&A!==void 0?A:new Uint8Array,R}},e.ResponseApplySnapshotChunk={encode(y,A=t.Writer.create()){y.result!==0&&A.uint32(8).int32(y.result),A.uint32(18).fork();for(const R of y.refetch_chunks)A.uint32(R);A.ldelim();for(const R of y.reject_senders)A.uint32(26).string(R);return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={result:0,refetch_chunks:[],reject_senders:[]};for(;R.pos>>3){case 1:z.result=R.int32();break;case 2:if((7&L)==2){const H=R.uint32()+R.pos;for(;R.pos({result:V(y.result)?M(y.result):0,refetch_chunks:Array.isArray(y==null?void 0:y.refetch_chunks)?y.refetch_chunks.map(A=>Number(A)):[],reject_senders:Array.isArray(y==null?void 0:y.reject_senders)?y.reject_senders.map(A=>String(A)):[]}),toJSON(y){const A={};return y.result!==void 0&&(A.result=N(y.result)),y.refetch_chunks?A.refetch_chunks=y.refetch_chunks.map(R=>Math.round(R)):A.refetch_chunks=[],y.reject_senders?A.reject_senders=y.reject_senders.map(R=>R):A.reject_senders=[],A},fromPartial(y){var A,R,U;const z={result:0,refetch_chunks:[],reject_senders:[]};return z.result=(A=y.result)!==null&&A!==void 0?A:0,z.refetch_chunks=((R=y.refetch_chunks)===null||R===void 0?void 0:R.map(L=>L))||[],z.reject_senders=((U=y.reject_senders)===null||U===void 0?void 0:U.map(L=>L))||[],z}},e.ConsensusParams={encode:(y,A=t.Writer.create())=>(y.block!==void 0&&e.BlockParams.encode(y.block,A.uint32(10).fork()).ldelim(),y.evidence!==void 0&&r.EvidenceParams.encode(y.evidence,A.uint32(18).fork()).ldelim(),y.validator!==void 0&&r.ValidatorParams.encode(y.validator,A.uint32(26).fork()).ldelim(),y.version!==void 0&&r.VersionParams.encode(y.version,A.uint32(34).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={block:void 0,evidence:void 0,validator:void 0,version:void 0};for(;R.pos>>3){case 1:z.block=e.BlockParams.decode(R,R.uint32());break;case 2:z.evidence=r.EvidenceParams.decode(R,R.uint32());break;case 3:z.validator=r.ValidatorParams.decode(R,R.uint32());break;case 4:z.version=r.VersionParams.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({block:V(y.block)?e.BlockParams.fromJSON(y.block):void 0,evidence:V(y.evidence)?r.EvidenceParams.fromJSON(y.evidence):void 0,validator:V(y.validator)?r.ValidatorParams.fromJSON(y.validator):void 0,version:V(y.version)?r.VersionParams.fromJSON(y.version):void 0}),toJSON(y){const A={};return y.block!==void 0&&(A.block=y.block?e.BlockParams.toJSON(y.block):void 0),y.evidence!==void 0&&(A.evidence=y.evidence?r.EvidenceParams.toJSON(y.evidence):void 0),y.validator!==void 0&&(A.validator=y.validator?r.ValidatorParams.toJSON(y.validator):void 0),y.version!==void 0&&(A.version=y.version?r.VersionParams.toJSON(y.version):void 0),A},fromPartial(y){const A={block:void 0,evidence:void 0,validator:void 0,version:void 0};return A.block=y.block!==void 0&&y.block!==null?e.BlockParams.fromPartial(y.block):void 0,A.evidence=y.evidence!==void 0&&y.evidence!==null?r.EvidenceParams.fromPartial(y.evidence):void 0,A.validator=y.validator!==void 0&&y.validator!==null?r.ValidatorParams.fromPartial(y.validator):void 0,A.version=y.version!==void 0&&y.version!==null?r.VersionParams.fromPartial(y.version):void 0,A}},e.BlockParams={encode:(y,A=t.Writer.create())=>(y.max_bytes!=="0"&&A.uint32(8).int64(y.max_bytes),y.max_gas!=="0"&&A.uint32(16).int64(y.max_gas),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={max_bytes:"0",max_gas:"0"};for(;R.pos>>3){case 1:z.max_bytes=ye(R.int64());break;case 2:z.max_gas=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({max_bytes:V(y.max_bytes)?String(y.max_bytes):"0",max_gas:V(y.max_gas)?String(y.max_gas):"0"}),toJSON(y){const A={};return y.max_bytes!==void 0&&(A.max_bytes=y.max_bytes),y.max_gas!==void 0&&(A.max_gas=y.max_gas),A},fromPartial(y){var A,R;const U={max_bytes:"0",max_gas:"0"};return U.max_bytes=(A=y.max_bytes)!==null&&A!==void 0?A:"0",U.max_gas=(R=y.max_gas)!==null&&R!==void 0?R:"0",U}},e.LastCommitInfo={encode(y,A=t.Writer.create()){y.round!==0&&A.uint32(8).int32(y.round);for(const R of y.votes)e.VoteInfo.encode(R,A.uint32(18).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={round:0,votes:[]};for(;R.pos>>3){case 1:z.round=R.int32();break;case 2:z.votes.push(e.VoteInfo.decode(R,R.uint32()));break;default:R.skipType(7&L)}}return z},fromJSON:y=>({round:V(y.round)?Number(y.round):0,votes:Array.isArray(y==null?void 0:y.votes)?y.votes.map(A=>e.VoteInfo.fromJSON(A)):[]}),toJSON(y){const A={};return y.round!==void 0&&(A.round=Math.round(y.round)),y.votes?A.votes=y.votes.map(R=>R?e.VoteInfo.toJSON(R):void 0):A.votes=[],A},fromPartial(y){var A,R;const U={round:0,votes:[]};return U.round=(A=y.round)!==null&&A!==void 0?A:0,U.votes=((R=y.votes)===null||R===void 0?void 0:R.map(z=>e.VoteInfo.fromPartial(z)))||[],U}},e.Event={encode(y,A=t.Writer.create()){y.type!==""&&A.uint32(10).string(y.type);for(const R of y.attributes)e.EventAttribute.encode(R,A.uint32(18).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={type:"",attributes:[]};for(;R.pos>>3){case 1:z.type=R.string();break;case 2:z.attributes.push(e.EventAttribute.decode(R,R.uint32()));break;default:R.skipType(7&L)}}return z},fromJSON:y=>({type:V(y.type)?String(y.type):"",attributes:Array.isArray(y==null?void 0:y.attributes)?y.attributes.map(A=>e.EventAttribute.fromJSON(A)):[]}),toJSON(y){const A={};return y.type!==void 0&&(A.type=y.type),y.attributes?A.attributes=y.attributes.map(R=>R?e.EventAttribute.toJSON(R):void 0):A.attributes=[],A},fromPartial(y){var A,R;const U={type:"",attributes:[]};return U.type=(A=y.type)!==null&&A!==void 0?A:"",U.attributes=((R=y.attributes)===null||R===void 0?void 0:R.map(z=>e.EventAttribute.fromPartial(z)))||[],U}},e.EventAttribute={encode:(y,A=t.Writer.create())=>(y.key.length!==0&&A.uint32(10).bytes(y.key),y.value.length!==0&&A.uint32(18).bytes(y.value),y.index===!0&&A.uint32(24).bool(y.index),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=G();for(;R.pos>>3){case 1:z.key=R.bytes();break;case 2:z.value=R.bytes();break;case 3:z.index=R.bool();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({key:V(y.key)?he(y.key):new Uint8Array,value:V(y.value)?he(y.value):new Uint8Array,index:!!V(y.index)&&!!y.index}),toJSON(y){const A={};return y.key!==void 0&&(A.key=ce(y.key!==void 0?y.key:new Uint8Array)),y.value!==void 0&&(A.value=ce(y.value!==void 0?y.value:new Uint8Array)),y.index!==void 0&&(A.index=y.index),A},fromPartial(y){var A,R,U;const z=G();return z.key=(A=y.key)!==null&&A!==void 0?A:new Uint8Array,z.value=(R=y.value)!==null&&R!==void 0?R:new Uint8Array,z.index=(U=y.index)!==null&&U!==void 0&&U,z}},e.TxResult={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).int64(y.height),y.index!==0&&A.uint32(16).uint32(y.index),y.tx.length!==0&&A.uint32(26).bytes(y.tx),y.result!==void 0&&e.ResponseDeliverTx.encode(y.result,A.uint32(34).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=$();for(;R.pos>>3){case 1:z.height=ye(R.int64());break;case 2:z.index=R.uint32();break;case 3:z.tx=R.bytes();break;case 4:z.result=e.ResponseDeliverTx.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0",index:V(y.index)?Number(y.index):0,tx:V(y.tx)?he(y.tx):new Uint8Array,result:V(y.result)?e.ResponseDeliverTx.fromJSON(y.result):void 0}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),y.index!==void 0&&(A.index=Math.round(y.index)),y.tx!==void 0&&(A.tx=ce(y.tx!==void 0?y.tx:new Uint8Array)),y.result!==void 0&&(A.result=y.result?e.ResponseDeliverTx.toJSON(y.result):void 0),A},fromPartial(y){var A,R,U;const z=$();return z.height=(A=y.height)!==null&&A!==void 0?A:"0",z.index=(R=y.index)!==null&&R!==void 0?R:0,z.tx=(U=y.tx)!==null&&U!==void 0?U:new Uint8Array,z.result=y.result!==void 0&&y.result!==null?e.ResponseDeliverTx.fromPartial(y.result):void 0,z}},e.Validator={encode:(y,A=t.Writer.create())=>(y.address.length!==0&&A.uint32(10).bytes(y.address),y.power!=="0"&&A.uint32(24).int64(y.power),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=W();for(;R.pos>>3){case 1:z.address=R.bytes();break;case 3:z.power=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({address:V(y.address)?he(y.address):new Uint8Array,power:V(y.power)?String(y.power):"0"}),toJSON(y){const A={};return y.address!==void 0&&(A.address=ce(y.address!==void 0?y.address:new Uint8Array)),y.power!==void 0&&(A.power=y.power),A},fromPartial(y){var A,R;const U=W();return U.address=(A=y.address)!==null&&A!==void 0?A:new Uint8Array,U.power=(R=y.power)!==null&&R!==void 0?R:"0",U}},e.ValidatorUpdate={encode:(y,A=t.Writer.create())=>(y.pub_key!==void 0&&n.PublicKey.encode(y.pub_key,A.uint32(10).fork()).ldelim(),y.power!=="0"&&A.uint32(16).int64(y.power),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={pub_key:void 0,power:"0"};for(;R.pos>>3){case 1:z.pub_key=n.PublicKey.decode(R,R.uint32());break;case 2:z.power=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({pub_key:V(y.pub_key)?n.PublicKey.fromJSON(y.pub_key):void 0,power:V(y.power)?String(y.power):"0"}),toJSON(y){const A={};return y.pub_key!==void 0&&(A.pub_key=y.pub_key?n.PublicKey.toJSON(y.pub_key):void 0),y.power!==void 0&&(A.power=y.power),A},fromPartial(y){var A;const R={pub_key:void 0,power:"0"};return R.pub_key=y.pub_key!==void 0&&y.pub_key!==null?n.PublicKey.fromPartial(y.pub_key):void 0,R.power=(A=y.power)!==null&&A!==void 0?A:"0",R}},e.VoteInfo={encode:(y,A=t.Writer.create())=>(y.validator!==void 0&&e.Validator.encode(y.validator,A.uint32(10).fork()).ldelim(),y.signed_last_block===!0&&A.uint32(16).bool(y.signed_last_block),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={validator:void 0,signed_last_block:!1};for(;R.pos>>3){case 1:z.validator=e.Validator.decode(R,R.uint32());break;case 2:z.signed_last_block=R.bool();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({validator:V(y.validator)?e.Validator.fromJSON(y.validator):void 0,signed_last_block:!!V(y.signed_last_block)&&!!y.signed_last_block}),toJSON(y){const A={};return y.validator!==void 0&&(A.validator=y.validator?e.Validator.toJSON(y.validator):void 0),y.signed_last_block!==void 0&&(A.signed_last_block=y.signed_last_block),A},fromPartial(y){var A;const R={validator:void 0,signed_last_block:!1};return R.validator=y.validator!==void 0&&y.validator!==null?e.Validator.fromPartial(y.validator):void 0,R.signed_last_block=(A=y.signed_last_block)!==null&&A!==void 0&&A,R}},e.Evidence={encode:(y,A=t.Writer.create())=>(y.type!==0&&A.uint32(8).int32(y.type),y.validator!==void 0&&e.Validator.encode(y.validator,A.uint32(18).fork()).ldelim(),y.height!=="0"&&A.uint32(24).int64(y.height),y.time!==void 0&&c.Timestamp.encode(y.time,A.uint32(34).fork()).ldelim(),y.total_voting_power!=="0"&&A.uint32(40).int64(y.total_voting_power),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={type:0,validator:void 0,height:"0",time:void 0,total_voting_power:"0"};for(;R.pos>>3){case 1:z.type=R.int32();break;case 2:z.validator=e.Validator.decode(R,R.uint32());break;case 3:z.height=ye(R.int64());break;case 4:z.time=c.Timestamp.decode(R,R.uint32());break;case 5:z.total_voting_power=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({type:V(y.type)?b(y.type):0,validator:V(y.validator)?e.Validator.fromJSON(y.validator):void 0,height:V(y.height)?String(y.height):"0",time:V(y.time)?pe(y.time):void 0,total_voting_power:V(y.total_voting_power)?String(y.total_voting_power):"0"}),toJSON(y){const A={};return y.type!==void 0&&(A.type=I(y.type)),y.validator!==void 0&&(A.validator=y.validator?e.Validator.toJSON(y.validator):void 0),y.height!==void 0&&(A.height=y.height),y.time!==void 0&&(A.time=de(y.time).toISOString()),y.total_voting_power!==void 0&&(A.total_voting_power=y.total_voting_power),A},fromPartial(y){var A,R,U;const z={type:0,validator:void 0,height:"0",time:void 0,total_voting_power:"0"};return z.type=(A=y.type)!==null&&A!==void 0?A:0,z.validator=y.validator!==void 0&&y.validator!==null?e.Validator.fromPartial(y.validator):void 0,z.height=(R=y.height)!==null&&R!==void 0?R:"0",z.time=y.time!==void 0&&y.time!==null?c.Timestamp.fromPartial(y.time):void 0,z.total_voting_power=(U=y.total_voting_power)!==null&&U!==void 0?U:"0",z}},e.Snapshot={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).uint64(y.height),y.format!==0&&A.uint32(16).uint32(y.format),y.chunks!==0&&A.uint32(24).uint32(y.chunks),y.hash.length!==0&&A.uint32(34).bytes(y.hash),y.metadata.length!==0&&A.uint32(42).bytes(y.metadata),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=Y();for(;R.pos>>3){case 1:z.height=ye(R.uint64());break;case 2:z.format=R.uint32();break;case 3:z.chunks=R.uint32();break;case 4:z.hash=R.bytes();break;case 5:z.metadata=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0",format:V(y.format)?Number(y.format):0,chunks:V(y.chunks)?Number(y.chunks):0,hash:V(y.hash)?he(y.hash):new Uint8Array,metadata:V(y.metadata)?he(y.metadata):new Uint8Array}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),y.format!==void 0&&(A.format=Math.round(y.format)),y.chunks!==void 0&&(A.chunks=Math.round(y.chunks)),y.hash!==void 0&&(A.hash=ce(y.hash!==void 0?y.hash:new Uint8Array)),y.metadata!==void 0&&(A.metadata=ce(y.metadata!==void 0?y.metadata:new Uint8Array)),A},fromPartial(y){var A,R,U,z,L;const H=Y();return H.height=(A=y.height)!==null&&A!==void 0?A:"0",H.format=(R=y.format)!==null&&R!==void 0?R:0,H.chunks=(U=y.chunks)!==null&&U!==void 0?U:0,H.hash=(z=y.hash)!==null&&z!==void 0?z:new Uint8Array,H.metadata=(L=y.metadata)!==null&&L!==void 0?L:new Uint8Array,H}},e.ABCIApplicationClientImpl=class{constructor(y){this.rpc=y,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.SetOption=this.SetOption.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this)}Echo(y){const A=e.RequestEcho.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",A).then(R=>e.ResponseEcho.decode(new t.Reader(R)))}Flush(y){const A=e.RequestFlush.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",A).then(R=>e.ResponseFlush.decode(new t.Reader(R)))}Info(y){const A=e.RequestInfo.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",A).then(R=>e.ResponseInfo.decode(new t.Reader(R)))}SetOption(y){const A=e.RequestSetOption.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","SetOption",A).then(R=>e.ResponseSetOption.decode(new t.Reader(R)))}DeliverTx(y){const A=e.RequestDeliverTx.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",A).then(R=>e.ResponseDeliverTx.decode(new t.Reader(R)))}CheckTx(y){const A=e.RequestCheckTx.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",A).then(R=>e.ResponseCheckTx.decode(new t.Reader(R)))}Query(y){const A=e.RequestQuery.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",A).then(R=>e.ResponseQuery.decode(new t.Reader(R)))}Commit(y){const A=e.RequestCommit.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",A).then(R=>e.ResponseCommit.decode(new t.Reader(R)))}InitChain(y){const A=e.RequestInitChain.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",A).then(R=>e.ResponseInitChain.decode(new t.Reader(R)))}BeginBlock(y){const A=e.RequestBeginBlock.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",A).then(R=>e.ResponseBeginBlock.decode(new t.Reader(R)))}EndBlock(y){const A=e.RequestEndBlock.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",A).then(R=>e.ResponseEndBlock.decode(new t.Reader(R)))}ListSnapshots(y){const A=e.RequestListSnapshots.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",A).then(R=>e.ResponseListSnapshots.decode(new t.Reader(R)))}OfferSnapshot(y){const A=e.RequestOfferSnapshot.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",A).then(R=>e.ResponseOfferSnapshot.decode(new t.Reader(R)))}LoadSnapshotChunk(y){const A=e.RequestLoadSnapshotChunk.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",A).then(R=>e.ResponseLoadSnapshotChunk.decode(new t.Reader(R)))}ApplySnapshotChunk(y){const A=e.RequestApplySnapshotChunk.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",A).then(R=>e.ResponseApplySnapshotChunk.decode(new t.Reader(R)))}};var F=(()=>{if(F!==void 0)return F;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const ae=F.atob||(y=>F.Buffer.from(y,"base64").toString("binary"));function he(y){const A=ae(y),R=new Uint8Array(A.length);for(let U=0;UF.Buffer.from(y,"binary").toString("base64"));function ce(y){const A=[];for(const R of y)A.push(String.fromCharCode(R));return le(A.join(""))}function ve(y){return{seconds:Math.trunc(y.getTime()/1e3).toString(),nanos:y.getTime()%1e3*1e6}}function de(y){let A=1e3*Number(y.seconds);return A+=y.nanos/1e6,new Date(A)}function pe(y){return y instanceof Date?ve(y):typeof y=="string"?ve(new Date(y)):c.Timestamp.fromJSON(y)}function ye(y){return y.toString()}function V(y){return y!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2740:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(i,f,d,h){h===void 0&&(h=d),Object.defineProperty(i,h,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,h){h===void 0&&(h=d),i[h]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));e.protobufPackage="tendermint.crypto",e.PublicKey={encode:(i,f=t.Writer.create())=>(i.ed25519!==void 0&&f.uint32(10).bytes(i.ed25519),i.secp256k1!==void 0&&f.uint32(18).bytes(i.secp256k1),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let h=f===void 0?d.len:d.pos+f;const _={ed25519:void 0,secp256k1:void 0};for(;d.pos>>3){case 1:_.ed25519=d.bytes();break;case 2:_.secp256k1=d.bytes();break;default:d.skipType(7&b)}}return _},fromJSON:i=>({ed25519:o(i.ed25519)?s(i.ed25519):void 0,secp256k1:o(i.secp256k1)?s(i.secp256k1):void 0}),toJSON(i){const f={};return i.ed25519!==void 0&&(f.ed25519=i.ed25519!==void 0?n(i.ed25519):void 0),i.secp256k1!==void 0&&(f.secp256k1=i.secp256k1!==void 0?n(i.secp256k1):void 0),f},fromPartial(i){var f,d;const h={ed25519:void 0,secp256k1:void 0};return h.ed25519=(f=i.ed25519)!==null&&f!==void 0?f:void 0,h.secp256k1=(d=i.secp256k1)!==null&&d!==void 0?d:void 0,h}};var c=(()=>{if(c!==void 0)return c;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const u=c.atob||(i=>c.Buffer.from(i,"base64").toString("binary"));function s(i){const f=u(i),d=new Uint8Array(f.length);for(let h=0;hc.Buffer.from(i,"binary").toString("base64"));function n(i){const f=[];for(const d of i)f.push(String.fromCharCode(d));return r(f.join(""))}function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1093:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(_,b,I,l){l===void 0&&(l=I),Object.defineProperty(_,l,{enumerable:!0,get:function(){return b[I]}})}:function(_,b,I,l){l===void 0&&(l=I),_[l]=b[I]}),O=this&&this.__setModuleDefault||(Object.create?function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}:function(_,b){_.default=b}),k=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var I in _)I!=="default"&&Object.prototype.hasOwnProperty.call(_,I)&&w(b,_,I);return O(b,_),b},S=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofOps=e.ProofOp=e.DominoOp=e.ValueOp=e.Proof=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(){return{total:"0",index:"0",leaf_hash:new Uint8Array,aunts:[]}}function u(){return{key:new Uint8Array,proof:void 0}}function s(){return{type:"",key:new Uint8Array,data:new Uint8Array}}e.protobufPackage="tendermint.crypto",e.Proof={encode(_,b=t.Writer.create()){_.total!=="0"&&b.uint32(8).int64(_.total),_.index!=="0"&&b.uint32(16).int64(_.index),_.leaf_hash.length!==0&&b.uint32(26).bytes(_.leaf_hash);for(const I of _.aunts)b.uint32(34).bytes(I);return b},decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j=c();for(;I.pos>>3){case 1:j.total=d(I.int64());break;case 2:j.index=d(I.int64());break;case 3:j.leaf_hash=I.bytes();break;case 4:j.aunts.push(I.bytes());break;default:I.skipType(7&M)}}return j},fromJSON:_=>({total:h(_.total)?String(_.total):"0",index:h(_.index)?String(_.index):"0",leaf_hash:h(_.leaf_hash)?o(_.leaf_hash):new Uint8Array,aunts:Array.isArray(_==null?void 0:_.aunts)?_.aunts.map(b=>o(b)):[]}),toJSON(_){const b={};return _.total!==void 0&&(b.total=_.total),_.index!==void 0&&(b.index=_.index),_.leaf_hash!==void 0&&(b.leaf_hash=f(_.leaf_hash!==void 0?_.leaf_hash:new Uint8Array)),_.aunts?b.aunts=_.aunts.map(I=>f(I!==void 0?I:new Uint8Array)):b.aunts=[],b},fromPartial(_){var b,I,l,j;const M=c();return M.total=(b=_.total)!==null&&b!==void 0?b:"0",M.index=(I=_.index)!==null&&I!==void 0?I:"0",M.leaf_hash=(l=_.leaf_hash)!==null&&l!==void 0?l:new Uint8Array,M.aunts=((j=_.aunts)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.ValueOp={encode:(_,b=t.Writer.create())=>(_.key.length!==0&&b.uint32(10).bytes(_.key),_.proof!==void 0&&e.Proof.encode(_.proof,b.uint32(18).fork()).ldelim(),b),decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j=u();for(;I.pos>>3){case 1:j.key=I.bytes();break;case 2:j.proof=e.Proof.decode(I,I.uint32());break;default:I.skipType(7&M)}}return j},fromJSON:_=>({key:h(_.key)?o(_.key):new Uint8Array,proof:h(_.proof)?e.Proof.fromJSON(_.proof):void 0}),toJSON(_){const b={};return _.key!==void 0&&(b.key=f(_.key!==void 0?_.key:new Uint8Array)),_.proof!==void 0&&(b.proof=_.proof?e.Proof.toJSON(_.proof):void 0),b},fromPartial(_){var b;const I=u();return I.key=(b=_.key)!==null&&b!==void 0?b:new Uint8Array,I.proof=_.proof!==void 0&&_.proof!==null?e.Proof.fromPartial(_.proof):void 0,I}},e.DominoOp={encode:(_,b=t.Writer.create())=>(_.key!==""&&b.uint32(10).string(_.key),_.input!==""&&b.uint32(18).string(_.input),_.output!==""&&b.uint32(26).string(_.output),b),decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j={key:"",input:"",output:""};for(;I.pos>>3){case 1:j.key=I.string();break;case 2:j.input=I.string();break;case 3:j.output=I.string();break;default:I.skipType(7&M)}}return j},fromJSON:_=>({key:h(_.key)?String(_.key):"",input:h(_.input)?String(_.input):"",output:h(_.output)?String(_.output):""}),toJSON(_){const b={};return _.key!==void 0&&(b.key=_.key),_.input!==void 0&&(b.input=_.input),_.output!==void 0&&(b.output=_.output),b},fromPartial(_){var b,I,l;const j={key:"",input:"",output:""};return j.key=(b=_.key)!==null&&b!==void 0?b:"",j.input=(I=_.input)!==null&&I!==void 0?I:"",j.output=(l=_.output)!==null&&l!==void 0?l:"",j}},e.ProofOp={encode:(_,b=t.Writer.create())=>(_.type!==""&&b.uint32(10).string(_.type),_.key.length!==0&&b.uint32(18).bytes(_.key),_.data.length!==0&&b.uint32(26).bytes(_.data),b),decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j=s();for(;I.pos>>3){case 1:j.type=I.string();break;case 2:j.key=I.bytes();break;case 3:j.data=I.bytes();break;default:I.skipType(7&M)}}return j},fromJSON:_=>({type:h(_.type)?String(_.type):"",key:h(_.key)?o(_.key):new Uint8Array,data:h(_.data)?o(_.data):new Uint8Array}),toJSON(_){const b={};return _.type!==void 0&&(b.type=_.type),_.key!==void 0&&(b.key=f(_.key!==void 0?_.key:new Uint8Array)),_.data!==void 0&&(b.data=f(_.data!==void 0?_.data:new Uint8Array)),b},fromPartial(_){var b,I,l;const j=s();return j.type=(b=_.type)!==null&&b!==void 0?b:"",j.key=(I=_.key)!==null&&I!==void 0?I:new Uint8Array,j.data=(l=_.data)!==null&&l!==void 0?l:new Uint8Array,j}},e.ProofOps={encode(_,b=t.Writer.create()){for(const I of _.ops)e.ProofOp.encode(I,b.uint32(10).fork()).ldelim();return b},decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j={ops:[]};for(;I.pos>>3==1?j.ops.push(e.ProofOp.decode(I,I.uint32())):I.skipType(7&M)}return j},fromJSON:_=>({ops:Array.isArray(_==null?void 0:_.ops)?_.ops.map(b=>e.ProofOp.fromJSON(b)):[]}),toJSON(_){const b={};return _.ops?b.ops=_.ops.map(I=>I?e.ProofOp.toJSON(I):void 0):b.ops=[],b},fromPartial(_){var b;const I={ops:[]};return I.ops=((b=_.ops)===null||b===void 0?void 0:b.map(l=>e.ProofOp.fromPartial(l)))||[],I}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const n=r.atob||(_=>r.Buffer.from(_,"base64").toString("binary"));function o(_){const b=n(_),I=new Uint8Array(b.length);for(let l=0;lr.Buffer.from(_,"binary").toString("base64"));function f(_){const b=[];for(const I of _)b.push(String.fromCharCode(I));return i(b.join(""))}function d(_){return _.toString()}function h(_){return _!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5672:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.HashedParams=e.VersionParams=e.ValidatorParams=e.EvidenceParams=e.BlockParams=e.ConsensusParams=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(6138);function u(r){return r.toString()}function s(r){return r!=null}e.protobufPackage="tendermint.types",e.ConsensusParams={encode:(r,n=t.Writer.create())=>(r.block!==void 0&&e.BlockParams.encode(r.block,n.uint32(10).fork()).ldelim(),r.evidence!==void 0&&e.EvidenceParams.encode(r.evidence,n.uint32(18).fork()).ldelim(),r.validator!==void 0&&e.ValidatorParams.encode(r.validator,n.uint32(26).fork()).ldelim(),r.version!==void 0&&e.VersionParams.encode(r.version,n.uint32(34).fork()).ldelim(),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={block:void 0,evidence:void 0,validator:void 0,version:void 0};for(;o.pos>>3){case 1:f.block=e.BlockParams.decode(o,o.uint32());break;case 2:f.evidence=e.EvidenceParams.decode(o,o.uint32());break;case 3:f.validator=e.ValidatorParams.decode(o,o.uint32());break;case 4:f.version=e.VersionParams.decode(o,o.uint32());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({block:s(r.block)?e.BlockParams.fromJSON(r.block):void 0,evidence:s(r.evidence)?e.EvidenceParams.fromJSON(r.evidence):void 0,validator:s(r.validator)?e.ValidatorParams.fromJSON(r.validator):void 0,version:s(r.version)?e.VersionParams.fromJSON(r.version):void 0}),toJSON(r){const n={};return r.block!==void 0&&(n.block=r.block?e.BlockParams.toJSON(r.block):void 0),r.evidence!==void 0&&(n.evidence=r.evidence?e.EvidenceParams.toJSON(r.evidence):void 0),r.validator!==void 0&&(n.validator=r.validator?e.ValidatorParams.toJSON(r.validator):void 0),r.version!==void 0&&(n.version=r.version?e.VersionParams.toJSON(r.version):void 0),n},fromPartial(r){const n={block:void 0,evidence:void 0,validator:void 0,version:void 0};return n.block=r.block!==void 0&&r.block!==null?e.BlockParams.fromPartial(r.block):void 0,n.evidence=r.evidence!==void 0&&r.evidence!==null?e.EvidenceParams.fromPartial(r.evidence):void 0,n.validator=r.validator!==void 0&&r.validator!==null?e.ValidatorParams.fromPartial(r.validator):void 0,n.version=r.version!==void 0&&r.version!==null?e.VersionParams.fromPartial(r.version):void 0,n}},e.BlockParams={encode:(r,n=t.Writer.create())=>(r.max_bytes!=="0"&&n.uint32(8).int64(r.max_bytes),r.max_gas!=="0"&&n.uint32(16).int64(r.max_gas),r.time_iota_ms!=="0"&&n.uint32(24).int64(r.time_iota_ms),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={max_bytes:"0",max_gas:"0",time_iota_ms:"0"};for(;o.pos>>3){case 1:f.max_bytes=u(o.int64());break;case 2:f.max_gas=u(o.int64());break;case 3:f.time_iota_ms=u(o.int64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({max_bytes:s(r.max_bytes)?String(r.max_bytes):"0",max_gas:s(r.max_gas)?String(r.max_gas):"0",time_iota_ms:s(r.time_iota_ms)?String(r.time_iota_ms):"0"}),toJSON(r){const n={};return r.max_bytes!==void 0&&(n.max_bytes=r.max_bytes),r.max_gas!==void 0&&(n.max_gas=r.max_gas),r.time_iota_ms!==void 0&&(n.time_iota_ms=r.time_iota_ms),n},fromPartial(r){var n,o,i;const f={max_bytes:"0",max_gas:"0",time_iota_ms:"0"};return f.max_bytes=(n=r.max_bytes)!==null&&n!==void 0?n:"0",f.max_gas=(o=r.max_gas)!==null&&o!==void 0?o:"0",f.time_iota_ms=(i=r.time_iota_ms)!==null&&i!==void 0?i:"0",f}},e.EvidenceParams={encode:(r,n=t.Writer.create())=>(r.max_age_num_blocks!=="0"&&n.uint32(8).int64(r.max_age_num_blocks),r.max_age_duration!==void 0&&c.Duration.encode(r.max_age_duration,n.uint32(18).fork()).ldelim(),r.max_bytes!=="0"&&n.uint32(24).int64(r.max_bytes),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={max_age_num_blocks:"0",max_age_duration:void 0,max_bytes:"0"};for(;o.pos>>3){case 1:f.max_age_num_blocks=u(o.int64());break;case 2:f.max_age_duration=c.Duration.decode(o,o.uint32());break;case 3:f.max_bytes=u(o.int64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({max_age_num_blocks:s(r.max_age_num_blocks)?String(r.max_age_num_blocks):"0",max_age_duration:s(r.max_age_duration)?c.Duration.fromJSON(r.max_age_duration):void 0,max_bytes:s(r.max_bytes)?String(r.max_bytes):"0"}),toJSON(r){const n={};return r.max_age_num_blocks!==void 0&&(n.max_age_num_blocks=r.max_age_num_blocks),r.max_age_duration!==void 0&&(n.max_age_duration=r.max_age_duration?c.Duration.toJSON(r.max_age_duration):void 0),r.max_bytes!==void 0&&(n.max_bytes=r.max_bytes),n},fromPartial(r){var n,o;const i={max_age_num_blocks:"0",max_age_duration:void 0,max_bytes:"0"};return i.max_age_num_blocks=(n=r.max_age_num_blocks)!==null&&n!==void 0?n:"0",i.max_age_duration=r.max_age_duration!==void 0&&r.max_age_duration!==null?c.Duration.fromPartial(r.max_age_duration):void 0,i.max_bytes=(o=r.max_bytes)!==null&&o!==void 0?o:"0",i}},e.ValidatorParams={encode(r,n=t.Writer.create()){for(const o of r.pub_key_types)n.uint32(10).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={pub_key_types:[]};for(;o.pos>>3==1?f.pub_key_types.push(o.string()):o.skipType(7&d)}return f},fromJSON:r=>({pub_key_types:Array.isArray(r==null?void 0:r.pub_key_types)?r.pub_key_types.map(n=>String(n)):[]}),toJSON(r){const n={};return r.pub_key_types?n.pub_key_types=r.pub_key_types.map(o=>o):n.pub_key_types=[],n},fromPartial(r){var n;const o={pub_key_types:[]};return o.pub_key_types=((n=r.pub_key_types)===null||n===void 0?void 0:n.map(i=>i))||[],o}},e.VersionParams={encode:(r,n=t.Writer.create())=>(r.app_version!=="0"&&n.uint32(8).uint64(r.app_version),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={app_version:"0"};for(;o.pos>>3==1?f.app_version=u(o.uint64()):o.skipType(7&d)}return f},fromJSON:r=>({app_version:s(r.app_version)?String(r.app_version):"0"}),toJSON(r){const n={};return r.app_version!==void 0&&(n.app_version=r.app_version),n},fromPartial(r){var n;const o={app_version:"0"};return o.app_version=(n=r.app_version)!==null&&n!==void 0?n:"0",o}},e.HashedParams={encode:(r,n=t.Writer.create())=>(r.block_max_bytes!=="0"&&n.uint32(8).int64(r.block_max_bytes),r.block_max_gas!=="0"&&n.uint32(16).int64(r.block_max_gas),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={block_max_bytes:"0",block_max_gas:"0"};for(;o.pos>>3){case 1:f.block_max_bytes=u(o.int64());break;case 2:f.block_max_gas=u(o.int64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({block_max_bytes:s(r.block_max_bytes)?String(r.block_max_bytes):"0",block_max_gas:s(r.block_max_gas)?String(r.block_max_gas):"0"}),toJSON(r){const n={};return r.block_max_bytes!==void 0&&(n.block_max_bytes=r.block_max_bytes),r.block_max_gas!==void 0&&(n.block_max_gas=r.block_max_gas),n},fromPartial(r){var n,o;const i={block_max_bytes:"0",block_max_gas:"0"};return i.block_max_bytes=(n=r.block_max_bytes)!==null&&n!==void 0?n:"0",i.block_max_gas=(o=r.block_max_gas)!==null&&o!==void 0?o:"0",i}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9928:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(J,ee,G,$){$===void 0&&($=G),Object.defineProperty(J,$,{enumerable:!0,get:function(){return ee[G]}})}:function(J,ee,G,$){$===void 0&&($=G),J[$]=ee[G]}),O=this&&this.__setModuleDefault||(Object.create?function(J,ee){Object.defineProperty(J,"default",{enumerable:!0,value:ee})}:function(J,ee){J.default=ee}),k=this&&this.__importStar||function(J){if(J&&J.__esModule)return J;var ee={};if(J!=null)for(var G in J)G!=="default"&&Object.prototype.hasOwnProperty.call(J,G)&&w(ee,J,G);return O(ee,J),ee},S=this&&this.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};Object.defineProperty(e,"__esModule",{value:!0}),e.TxProof=e.BlockMeta=e.LightBlock=e.SignedHeader=e.Proposal=e.CommitSig=e.Commit=e.Vote=e.Data=e.EncryptedRandom=e.Header=e.BlockID=e.Part=e.PartSetHeader=e.signedMsgTypeToJSON=e.signedMsgTypeFromJSON=e.SignedMsgType=e.blockIDFlagToJSON=e.blockIDFlagFromJSON=e.BlockIDFlag=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(1093),u=p(5640),s=p(5090),r=p(3563);var n,o;function i(J){switch(J){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return n.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return n.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return n.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return n.BLOCK_ID_FLAG_NIL;default:return n.UNRECOGNIZED}}function f(J){switch(J){case n.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case n.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case n.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case n.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function d(J){switch(J){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return o.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return o.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return o.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return o.SIGNED_MSG_TYPE_PROPOSAL;default:return o.UNRECOGNIZED}}function h(J){switch(J){case o.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case o.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case o.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case o.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}function _(){return{total:0,hash:new Uint8Array}}function b(){return{index:0,bytes:new Uint8Array,proof:void 0}}function I(){return{hash:new Uint8Array,part_set_header:void 0}}function l(){return{version:void 0,chain_id:"",height:"0",time:void 0,last_block_id:void 0,last_commit_hash:new Uint8Array,data_hash:new Uint8Array,validators_hash:new Uint8Array,next_validators_hash:new Uint8Array,consensus_hash:new Uint8Array,app_hash:new Uint8Array,last_results_hash:new Uint8Array,evidence_hash:new Uint8Array,proposer_address:new Uint8Array,encrypted_random:void 0}}function j(){return{random:new Uint8Array,proof:new Uint8Array}}function M(){return{type:0,height:"0",round:0,block_id:void 0,timestamp:void 0,validator_address:new Uint8Array,validator_index:0,signature:new Uint8Array}}function N(){return{block_id_flag:0,validator_address:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}function C(){return{type:0,height:"0",round:0,pol_round:0,block_id:void 0,timestamp:void 0,signature:new Uint8Array}}function x(){return{root_hash:new Uint8Array,data:new Uint8Array,proof:void 0}}e.protobufPackage="tendermint.types",function(J){J[J.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",J[J.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",J[J.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",J[J.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=e.BlockIDFlag||(e.BlockIDFlag={})),e.blockIDFlagFromJSON=i,e.blockIDFlagToJSON=f,function(J){J[J.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",J[J.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",J[J.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",J[J.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.SignedMsgType||(e.SignedMsgType={})),e.signedMsgTypeFromJSON=d,e.signedMsgTypeToJSON=h,e.PartSetHeader={encode:(J,ee=t.Writer.create())=>(J.total!==0&&ee.uint32(8).uint32(J.total),J.hash.length!==0&&ee.uint32(18).bytes(J.hash),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=_();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.total=G.uint32();break;case 2:W.hash=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({total:ie(J.total)?Number(J.total):0,hash:ie(J.hash)?m(J.hash):new Uint8Array}),toJSON(J){const ee={};return J.total!==void 0&&(ee.total=Math.round(J.total)),J.hash!==void 0&&(ee.hash=B(J.hash!==void 0?J.hash:new Uint8Array)),ee},fromPartial(J){var ee,G;const $=_();return $.total=(ee=J.total)!==null&&ee!==void 0?ee:0,$.hash=(G=J.hash)!==null&&G!==void 0?G:new Uint8Array,$}},e.Part={encode:(J,ee=t.Writer.create())=>(J.index!==0&&ee.uint32(8).uint32(J.index),J.bytes.length!==0&&ee.uint32(18).bytes(J.bytes),J.proof!==void 0&&c.Proof.encode(J.proof,ee.uint32(26).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=b();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.index=G.uint32();break;case 2:W.bytes=G.bytes();break;case 3:W.proof=c.Proof.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({index:ie(J.index)?Number(J.index):0,bytes:ie(J.bytes)?m(J.bytes):new Uint8Array,proof:ie(J.proof)?c.Proof.fromJSON(J.proof):void 0}),toJSON(J){const ee={};return J.index!==void 0&&(ee.index=Math.round(J.index)),J.bytes!==void 0&&(ee.bytes=B(J.bytes!==void 0?J.bytes:new Uint8Array)),J.proof!==void 0&&(ee.proof=J.proof?c.Proof.toJSON(J.proof):void 0),ee},fromPartial(J){var ee,G;const $=b();return $.index=(ee=J.index)!==null&&ee!==void 0?ee:0,$.bytes=(G=J.bytes)!==null&&G!==void 0?G:new Uint8Array,$.proof=J.proof!==void 0&&J.proof!==null?c.Proof.fromPartial(J.proof):void 0,$}},e.BlockID={encode:(J,ee=t.Writer.create())=>(J.hash.length!==0&&ee.uint32(10).bytes(J.hash),J.part_set_header!==void 0&&e.PartSetHeader.encode(J.part_set_header,ee.uint32(18).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=I();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.hash=G.bytes();break;case 2:W.part_set_header=e.PartSetHeader.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({hash:ie(J.hash)?m(J.hash):new Uint8Array,part_set_header:ie(J.part_set_header)?e.PartSetHeader.fromJSON(J.part_set_header):void 0}),toJSON(J){const ee={};return J.hash!==void 0&&(ee.hash=B(J.hash!==void 0?J.hash:new Uint8Array)),J.part_set_header!==void 0&&(ee.part_set_header=J.part_set_header?e.PartSetHeader.toJSON(J.part_set_header):void 0),ee},fromPartial(J){var ee;const G=I();return G.hash=(ee=J.hash)!==null&&ee!==void 0?ee:new Uint8Array,G.part_set_header=J.part_set_header!==void 0&&J.part_set_header!==null?e.PartSetHeader.fromPartial(J.part_set_header):void 0,G}},e.Header={encode:(J,ee=t.Writer.create())=>(J.version!==void 0&&u.Consensus.encode(J.version,ee.uint32(10).fork()).ldelim(),J.chain_id!==""&&ee.uint32(18).string(J.chain_id),J.height!=="0"&&ee.uint32(24).int64(J.height),J.time!==void 0&&s.Timestamp.encode(J.time,ee.uint32(34).fork()).ldelim(),J.last_block_id!==void 0&&e.BlockID.encode(J.last_block_id,ee.uint32(42).fork()).ldelim(),J.last_commit_hash.length!==0&&ee.uint32(50).bytes(J.last_commit_hash),J.data_hash.length!==0&&ee.uint32(58).bytes(J.data_hash),J.validators_hash.length!==0&&ee.uint32(66).bytes(J.validators_hash),J.next_validators_hash.length!==0&&ee.uint32(74).bytes(J.next_validators_hash),J.consensus_hash.length!==0&&ee.uint32(82).bytes(J.consensus_hash),J.app_hash.length!==0&&ee.uint32(90).bytes(J.app_hash),J.last_results_hash.length!==0&&ee.uint32(98).bytes(J.last_results_hash),J.evidence_hash.length!==0&&ee.uint32(106).bytes(J.evidence_hash),J.proposer_address.length!==0&&ee.uint32(114).bytes(J.proposer_address),J.encrypted_random!==void 0&&e.EncryptedRandom.encode(J.encrypted_random,ee.uint32(122).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=l();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.version=u.Consensus.decode(G,G.uint32());break;case 2:W.chain_id=G.string();break;case 3:W.height=re(G.int64());break;case 4:W.time=s.Timestamp.decode(G,G.uint32());break;case 5:W.last_block_id=e.BlockID.decode(G,G.uint32());break;case 6:W.last_commit_hash=G.bytes();break;case 7:W.data_hash=G.bytes();break;case 8:W.validators_hash=G.bytes();break;case 9:W.next_validators_hash=G.bytes();break;case 10:W.consensus_hash=G.bytes();break;case 11:W.app_hash=G.bytes();break;case 12:W.last_results_hash=G.bytes();break;case 13:W.evidence_hash=G.bytes();break;case 14:W.proposer_address=G.bytes();break;case 15:W.encrypted_random=e.EncryptedRandom.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({version:ie(J.version)?u.Consensus.fromJSON(J.version):void 0,chain_id:ie(J.chain_id)?String(J.chain_id):"",height:ie(J.height)?String(J.height):"0",time:ie(J.time)?te(J.time):void 0,last_block_id:ie(J.last_block_id)?e.BlockID.fromJSON(J.last_block_id):void 0,last_commit_hash:ie(J.last_commit_hash)?m(J.last_commit_hash):new Uint8Array,data_hash:ie(J.data_hash)?m(J.data_hash):new Uint8Array,validators_hash:ie(J.validators_hash)?m(J.validators_hash):new Uint8Array,next_validators_hash:ie(J.next_validators_hash)?m(J.next_validators_hash):new Uint8Array,consensus_hash:ie(J.consensus_hash)?m(J.consensus_hash):new Uint8Array,app_hash:ie(J.app_hash)?m(J.app_hash):new Uint8Array,last_results_hash:ie(J.last_results_hash)?m(J.last_results_hash):new Uint8Array,evidence_hash:ie(J.evidence_hash)?m(J.evidence_hash):new Uint8Array,proposer_address:ie(J.proposer_address)?m(J.proposer_address):new Uint8Array,encrypted_random:ie(J.encrypted_random)?e.EncryptedRandom.fromJSON(J.encrypted_random):void 0}),toJSON(J){const ee={};return J.version!==void 0&&(ee.version=J.version?u.Consensus.toJSON(J.version):void 0),J.chain_id!==void 0&&(ee.chain_id=J.chain_id),J.height!==void 0&&(ee.height=J.height),J.time!==void 0&&(ee.time=q(J.time).toISOString()),J.last_block_id!==void 0&&(ee.last_block_id=J.last_block_id?e.BlockID.toJSON(J.last_block_id):void 0),J.last_commit_hash!==void 0&&(ee.last_commit_hash=B(J.last_commit_hash!==void 0?J.last_commit_hash:new Uint8Array)),J.data_hash!==void 0&&(ee.data_hash=B(J.data_hash!==void 0?J.data_hash:new Uint8Array)),J.validators_hash!==void 0&&(ee.validators_hash=B(J.validators_hash!==void 0?J.validators_hash:new Uint8Array)),J.next_validators_hash!==void 0&&(ee.next_validators_hash=B(J.next_validators_hash!==void 0?J.next_validators_hash:new Uint8Array)),J.consensus_hash!==void 0&&(ee.consensus_hash=B(J.consensus_hash!==void 0?J.consensus_hash:new Uint8Array)),J.app_hash!==void 0&&(ee.app_hash=B(J.app_hash!==void 0?J.app_hash:new Uint8Array)),J.last_results_hash!==void 0&&(ee.last_results_hash=B(J.last_results_hash!==void 0?J.last_results_hash:new Uint8Array)),J.evidence_hash!==void 0&&(ee.evidence_hash=B(J.evidence_hash!==void 0?J.evidence_hash:new Uint8Array)),J.proposer_address!==void 0&&(ee.proposer_address=B(J.proposer_address!==void 0?J.proposer_address:new Uint8Array)),J.encrypted_random!==void 0&&(ee.encrypted_random=J.encrypted_random?e.EncryptedRandom.toJSON(J.encrypted_random):void 0),ee},fromPartial(J){var ee,G,$,W,Y,F,ae,he,le,ce,ve;const de=l();return de.version=J.version!==void 0&&J.version!==null?u.Consensus.fromPartial(J.version):void 0,de.chain_id=(ee=J.chain_id)!==null&&ee!==void 0?ee:"",de.height=(G=J.height)!==null&&G!==void 0?G:"0",de.time=J.time!==void 0&&J.time!==null?s.Timestamp.fromPartial(J.time):void 0,de.last_block_id=J.last_block_id!==void 0&&J.last_block_id!==null?e.BlockID.fromPartial(J.last_block_id):void 0,de.last_commit_hash=($=J.last_commit_hash)!==null&&$!==void 0?$:new Uint8Array,de.data_hash=(W=J.data_hash)!==null&&W!==void 0?W:new Uint8Array,de.validators_hash=(Y=J.validators_hash)!==null&&Y!==void 0?Y:new Uint8Array,de.next_validators_hash=(F=J.next_validators_hash)!==null&&F!==void 0?F:new Uint8Array,de.consensus_hash=(ae=J.consensus_hash)!==null&&ae!==void 0?ae:new Uint8Array,de.app_hash=(he=J.app_hash)!==null&&he!==void 0?he:new Uint8Array,de.last_results_hash=(le=J.last_results_hash)!==null&&le!==void 0?le:new Uint8Array,de.evidence_hash=(ce=J.evidence_hash)!==null&&ce!==void 0?ce:new Uint8Array,de.proposer_address=(ve=J.proposer_address)!==null&&ve!==void 0?ve:new Uint8Array,de.encrypted_random=J.encrypted_random!==void 0&&J.encrypted_random!==null?e.EncryptedRandom.fromPartial(J.encrypted_random):void 0,de}},e.EncryptedRandom={encode:(J,ee=t.Writer.create())=>(J.random.length!==0&&ee.uint32(10).bytes(J.random),J.proof.length!==0&&ee.uint32(18).bytes(J.proof),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=j();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.random=G.bytes();break;case 2:W.proof=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({random:ie(J.random)?m(J.random):new Uint8Array,proof:ie(J.proof)?m(J.proof):new Uint8Array}),toJSON(J){const ee={};return J.random!==void 0&&(ee.random=B(J.random!==void 0?J.random:new Uint8Array)),J.proof!==void 0&&(ee.proof=B(J.proof!==void 0?J.proof:new Uint8Array)),ee},fromPartial(J){var ee,G;const $=j();return $.random=(ee=J.random)!==null&&ee!==void 0?ee:new Uint8Array,$.proof=(G=J.proof)!==null&&G!==void 0?G:new Uint8Array,$}},e.Data={encode(J,ee=t.Writer.create()){for(const G of J.txs)ee.uint32(10).bytes(G);return ee},decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={txs:[]};for(;G.pos<$;){const Y=G.uint32();Y>>>3==1?W.txs.push(G.bytes()):G.skipType(7&Y)}return W},fromJSON:J=>({txs:Array.isArray(J==null?void 0:J.txs)?J.txs.map(ee=>m(ee)):[]}),toJSON(J){const ee={};return J.txs?ee.txs=J.txs.map(G=>B(G!==void 0?G:new Uint8Array)):ee.txs=[],ee},fromPartial(J){var ee;const G={txs:[]};return G.txs=((ee=J.txs)===null||ee===void 0?void 0:ee.map($=>$))||[],G}},e.Vote={encode:(J,ee=t.Writer.create())=>(J.type!==0&&ee.uint32(8).int32(J.type),J.height!=="0"&&ee.uint32(16).int64(J.height),J.round!==0&&ee.uint32(24).int32(J.round),J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(34).fork()).ldelim(),J.timestamp!==void 0&&s.Timestamp.encode(J.timestamp,ee.uint32(42).fork()).ldelim(),J.validator_address.length!==0&&ee.uint32(50).bytes(J.validator_address),J.validator_index!==0&&ee.uint32(56).int32(J.validator_index),J.signature.length!==0&&ee.uint32(66).bytes(J.signature),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=M();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.type=G.int32();break;case 2:W.height=re(G.int64());break;case 3:W.round=G.int32();break;case 4:W.block_id=e.BlockID.decode(G,G.uint32());break;case 5:W.timestamp=s.Timestamp.decode(G,G.uint32());break;case 6:W.validator_address=G.bytes();break;case 7:W.validator_index=G.int32();break;case 8:W.signature=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({type:ie(J.type)?d(J.type):0,height:ie(J.height)?String(J.height):"0",round:ie(J.round)?Number(J.round):0,block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,timestamp:ie(J.timestamp)?te(J.timestamp):void 0,validator_address:ie(J.validator_address)?m(J.validator_address):new Uint8Array,validator_index:ie(J.validator_index)?Number(J.validator_index):0,signature:ie(J.signature)?m(J.signature):new Uint8Array}),toJSON(J){const ee={};return J.type!==void 0&&(ee.type=h(J.type)),J.height!==void 0&&(ee.height=J.height),J.round!==void 0&&(ee.round=Math.round(J.round)),J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.timestamp!==void 0&&(ee.timestamp=q(J.timestamp).toISOString()),J.validator_address!==void 0&&(ee.validator_address=B(J.validator_address!==void 0?J.validator_address:new Uint8Array)),J.validator_index!==void 0&&(ee.validator_index=Math.round(J.validator_index)),J.signature!==void 0&&(ee.signature=B(J.signature!==void 0?J.signature:new Uint8Array)),ee},fromPartial(J){var ee,G,$,W,Y,F;const ae=M();return ae.type=(ee=J.type)!==null&&ee!==void 0?ee:0,ae.height=(G=J.height)!==null&&G!==void 0?G:"0",ae.round=($=J.round)!==null&&$!==void 0?$:0,ae.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,ae.timestamp=J.timestamp!==void 0&&J.timestamp!==null?s.Timestamp.fromPartial(J.timestamp):void 0,ae.validator_address=(W=J.validator_address)!==null&&W!==void 0?W:new Uint8Array,ae.validator_index=(Y=J.validator_index)!==null&&Y!==void 0?Y:0,ae.signature=(F=J.signature)!==null&&F!==void 0?F:new Uint8Array,ae}},e.Commit={encode(J,ee=t.Writer.create()){J.height!=="0"&&ee.uint32(8).int64(J.height),J.round!==0&&ee.uint32(16).int32(J.round),J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(26).fork()).ldelim();for(const G of J.signatures)e.CommitSig.encode(G,ee.uint32(34).fork()).ldelim();return ee},decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={height:"0",round:0,block_id:void 0,signatures:[]};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.height=re(G.int64());break;case 2:W.round=G.int32();break;case 3:W.block_id=e.BlockID.decode(G,G.uint32());break;case 4:W.signatures.push(e.CommitSig.decode(G,G.uint32()));break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({height:ie(J.height)?String(J.height):"0",round:ie(J.round)?Number(J.round):0,block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,signatures:Array.isArray(J==null?void 0:J.signatures)?J.signatures.map(ee=>e.CommitSig.fromJSON(ee)):[]}),toJSON(J){const ee={};return J.height!==void 0&&(ee.height=J.height),J.round!==void 0&&(ee.round=Math.round(J.round)),J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.signatures?ee.signatures=J.signatures.map(G=>G?e.CommitSig.toJSON(G):void 0):ee.signatures=[],ee},fromPartial(J){var ee,G,$;const W={height:"0",round:0,block_id:void 0,signatures:[]};return W.height=(ee=J.height)!==null&&ee!==void 0?ee:"0",W.round=(G=J.round)!==null&&G!==void 0?G:0,W.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,W.signatures=(($=J.signatures)===null||$===void 0?void 0:$.map(Y=>e.CommitSig.fromPartial(Y)))||[],W}},e.CommitSig={encode:(J,ee=t.Writer.create())=>(J.block_id_flag!==0&&ee.uint32(8).int32(J.block_id_flag),J.validator_address.length!==0&&ee.uint32(18).bytes(J.validator_address),J.timestamp!==void 0&&s.Timestamp.encode(J.timestamp,ee.uint32(26).fork()).ldelim(),J.signature.length!==0&&ee.uint32(34).bytes(J.signature),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=N();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.block_id_flag=G.int32();break;case 2:W.validator_address=G.bytes();break;case 3:W.timestamp=s.Timestamp.decode(G,G.uint32());break;case 4:W.signature=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({block_id_flag:ie(J.block_id_flag)?i(J.block_id_flag):0,validator_address:ie(J.validator_address)?m(J.validator_address):new Uint8Array,timestamp:ie(J.timestamp)?te(J.timestamp):void 0,signature:ie(J.signature)?m(J.signature):new Uint8Array}),toJSON(J){const ee={};return J.block_id_flag!==void 0&&(ee.block_id_flag=f(J.block_id_flag)),J.validator_address!==void 0&&(ee.validator_address=B(J.validator_address!==void 0?J.validator_address:new Uint8Array)),J.timestamp!==void 0&&(ee.timestamp=q(J.timestamp).toISOString()),J.signature!==void 0&&(ee.signature=B(J.signature!==void 0?J.signature:new Uint8Array)),ee},fromPartial(J){var ee,G,$;const W=N();return W.block_id_flag=(ee=J.block_id_flag)!==null&&ee!==void 0?ee:0,W.validator_address=(G=J.validator_address)!==null&&G!==void 0?G:new Uint8Array,W.timestamp=J.timestamp!==void 0&&J.timestamp!==null?s.Timestamp.fromPartial(J.timestamp):void 0,W.signature=($=J.signature)!==null&&$!==void 0?$:new Uint8Array,W}},e.Proposal={encode:(J,ee=t.Writer.create())=>(J.type!==0&&ee.uint32(8).int32(J.type),J.height!=="0"&&ee.uint32(16).int64(J.height),J.round!==0&&ee.uint32(24).int32(J.round),J.pol_round!==0&&ee.uint32(32).int32(J.pol_round),J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(42).fork()).ldelim(),J.timestamp!==void 0&&s.Timestamp.encode(J.timestamp,ee.uint32(50).fork()).ldelim(),J.signature.length!==0&&ee.uint32(58).bytes(J.signature),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=C();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.type=G.int32();break;case 2:W.height=re(G.int64());break;case 3:W.round=G.int32();break;case 4:W.pol_round=G.int32();break;case 5:W.block_id=e.BlockID.decode(G,G.uint32());break;case 6:W.timestamp=s.Timestamp.decode(G,G.uint32());break;case 7:W.signature=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({type:ie(J.type)?d(J.type):0,height:ie(J.height)?String(J.height):"0",round:ie(J.round)?Number(J.round):0,pol_round:ie(J.pol_round)?Number(J.pol_round):0,block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,timestamp:ie(J.timestamp)?te(J.timestamp):void 0,signature:ie(J.signature)?m(J.signature):new Uint8Array}),toJSON(J){const ee={};return J.type!==void 0&&(ee.type=h(J.type)),J.height!==void 0&&(ee.height=J.height),J.round!==void 0&&(ee.round=Math.round(J.round)),J.pol_round!==void 0&&(ee.pol_round=Math.round(J.pol_round)),J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.timestamp!==void 0&&(ee.timestamp=q(J.timestamp).toISOString()),J.signature!==void 0&&(ee.signature=B(J.signature!==void 0?J.signature:new Uint8Array)),ee},fromPartial(J){var ee,G,$,W,Y;const F=C();return F.type=(ee=J.type)!==null&&ee!==void 0?ee:0,F.height=(G=J.height)!==null&&G!==void 0?G:"0",F.round=($=J.round)!==null&&$!==void 0?$:0,F.pol_round=(W=J.pol_round)!==null&&W!==void 0?W:0,F.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,F.timestamp=J.timestamp!==void 0&&J.timestamp!==null?s.Timestamp.fromPartial(J.timestamp):void 0,F.signature=(Y=J.signature)!==null&&Y!==void 0?Y:new Uint8Array,F}},e.SignedHeader={encode:(J,ee=t.Writer.create())=>(J.header!==void 0&&e.Header.encode(J.header,ee.uint32(10).fork()).ldelim(),J.commit!==void 0&&e.Commit.encode(J.commit,ee.uint32(18).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={header:void 0,commit:void 0};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.header=e.Header.decode(G,G.uint32());break;case 2:W.commit=e.Commit.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({header:ie(J.header)?e.Header.fromJSON(J.header):void 0,commit:ie(J.commit)?e.Commit.fromJSON(J.commit):void 0}),toJSON(J){const ee={};return J.header!==void 0&&(ee.header=J.header?e.Header.toJSON(J.header):void 0),J.commit!==void 0&&(ee.commit=J.commit?e.Commit.toJSON(J.commit):void 0),ee},fromPartial(J){const ee={header:void 0,commit:void 0};return ee.header=J.header!==void 0&&J.header!==null?e.Header.fromPartial(J.header):void 0,ee.commit=J.commit!==void 0&&J.commit!==null?e.Commit.fromPartial(J.commit):void 0,ee}},e.LightBlock={encode:(J,ee=t.Writer.create())=>(J.signed_header!==void 0&&e.SignedHeader.encode(J.signed_header,ee.uint32(10).fork()).ldelim(),J.validator_set!==void 0&&r.ValidatorSet.encode(J.validator_set,ee.uint32(18).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={signed_header:void 0,validator_set:void 0};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.signed_header=e.SignedHeader.decode(G,G.uint32());break;case 2:W.validator_set=r.ValidatorSet.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({signed_header:ie(J.signed_header)?e.SignedHeader.fromJSON(J.signed_header):void 0,validator_set:ie(J.validator_set)?r.ValidatorSet.fromJSON(J.validator_set):void 0}),toJSON(J){const ee={};return J.signed_header!==void 0&&(ee.signed_header=J.signed_header?e.SignedHeader.toJSON(J.signed_header):void 0),J.validator_set!==void 0&&(ee.validator_set=J.validator_set?r.ValidatorSet.toJSON(J.validator_set):void 0),ee},fromPartial(J){const ee={signed_header:void 0,validator_set:void 0};return ee.signed_header=J.signed_header!==void 0&&J.signed_header!==null?e.SignedHeader.fromPartial(J.signed_header):void 0,ee.validator_set=J.validator_set!==void 0&&J.validator_set!==null?r.ValidatorSet.fromPartial(J.validator_set):void 0,ee}},e.BlockMeta={encode:(J,ee=t.Writer.create())=>(J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(10).fork()).ldelim(),J.block_size!=="0"&&ee.uint32(16).int64(J.block_size),J.header!==void 0&&e.Header.encode(J.header,ee.uint32(26).fork()).ldelim(),J.num_txs!=="0"&&ee.uint32(32).int64(J.num_txs),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={block_id:void 0,block_size:"0",header:void 0,num_txs:"0"};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.block_id=e.BlockID.decode(G,G.uint32());break;case 2:W.block_size=re(G.int64());break;case 3:W.header=e.Header.decode(G,G.uint32());break;case 4:W.num_txs=re(G.int64());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,block_size:ie(J.block_size)?String(J.block_size):"0",header:ie(J.header)?e.Header.fromJSON(J.header):void 0,num_txs:ie(J.num_txs)?String(J.num_txs):"0"}),toJSON(J){const ee={};return J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.block_size!==void 0&&(ee.block_size=J.block_size),J.header!==void 0&&(ee.header=J.header?e.Header.toJSON(J.header):void 0),J.num_txs!==void 0&&(ee.num_txs=J.num_txs),ee},fromPartial(J){var ee,G;const $={block_id:void 0,block_size:"0",header:void 0,num_txs:"0"};return $.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,$.block_size=(ee=J.block_size)!==null&&ee!==void 0?ee:"0",$.header=J.header!==void 0&&J.header!==null?e.Header.fromPartial(J.header):void 0,$.num_txs=(G=J.num_txs)!==null&&G!==void 0?G:"0",$}},e.TxProof={encode:(J,ee=t.Writer.create())=>(J.root_hash.length!==0&&ee.uint32(10).bytes(J.root_hash),J.data.length!==0&&ee.uint32(18).bytes(J.data),J.proof!==void 0&&c.Proof.encode(J.proof,ee.uint32(26).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=x();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.root_hash=G.bytes();break;case 2:W.data=G.bytes();break;case 3:W.proof=c.Proof.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({root_hash:ie(J.root_hash)?m(J.root_hash):new Uint8Array,data:ie(J.data)?m(J.data):new Uint8Array,proof:ie(J.proof)?c.Proof.fromJSON(J.proof):void 0}),toJSON(J){const ee={};return J.root_hash!==void 0&&(ee.root_hash=B(J.root_hash!==void 0?J.root_hash:new Uint8Array)),J.data!==void 0&&(ee.data=B(J.data!==void 0?J.data:new Uint8Array)),J.proof!==void 0&&(ee.proof=J.proof?c.Proof.toJSON(J.proof):void 0),ee},fromPartial(J){var ee,G;const $=x();return $.root_hash=(ee=J.root_hash)!==null&&ee!==void 0?ee:new Uint8Array,$.data=(G=J.data)!==null&&G!==void 0?G:new Uint8Array,$.proof=J.proof!==void 0&&J.proof!==null?c.Proof.fromPartial(J.proof):void 0,$}};var P=(()=>{if(P!==void 0)return P;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const v=P.atob||(J=>P.Buffer.from(J,"base64").toString("binary"));function m(J){const ee=v(J),G=new Uint8Array(ee.length);for(let $=0;$P.Buffer.from(J,"binary").toString("base64"));function B(J){const ee=[];for(const G of J)ee.push(String.fromCharCode(G));return E(ee.join(""))}function T(J){return{seconds:Math.trunc(J.getTime()/1e3).toString(),nanos:J.getTime()%1e3*1e6}}function q(J){let ee=1e3*Number(J.seconds);return ee+=J.nanos/1e6,new Date(ee)}function te(J){return J instanceof Date?T(J):typeof J=="string"?T(new Date(J)):s.Timestamp.fromJSON(J)}function re(J){return J.toString()}function ie(J){return J!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},3563:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(d,h,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return h[_]}})}:function(d,h,_,b){b===void 0&&(b=_),d[b]=h[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(h,d,_);return O(h,d),h},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleValidator=e.Validator=e.ValidatorSet=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100)),c=p(2740);function u(){return{address:new Uint8Array,pub_key:void 0,voting_power:"0",proposer_priority:"0"}}e.protobufPackage="tendermint.types",e.ValidatorSet={encode(d,h=t.Writer.create()){for(const _ of d.validators)e.Validator.encode(_,h.uint32(10).fork()).ldelim();return d.proposer!==void 0&&e.Validator.encode(d.proposer,h.uint32(18).fork()).ldelim(),d.total_voting_power!=="0"&&h.uint32(24).int64(d.total_voting_power),h},decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={validators:[],proposer:void 0,total_voting_power:"0"};for(;_.pos>>3){case 1:I.validators.push(e.Validator.decode(_,_.uint32()));break;case 2:I.proposer=e.Validator.decode(_,_.uint32());break;case 3:I.total_voting_power=i(_.int64());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({validators:Array.isArray(d==null?void 0:d.validators)?d.validators.map(h=>e.Validator.fromJSON(h)):[],proposer:f(d.proposer)?e.Validator.fromJSON(d.proposer):void 0,total_voting_power:f(d.total_voting_power)?String(d.total_voting_power):"0"}),toJSON(d){const h={};return d.validators?h.validators=d.validators.map(_=>_?e.Validator.toJSON(_):void 0):h.validators=[],d.proposer!==void 0&&(h.proposer=d.proposer?e.Validator.toJSON(d.proposer):void 0),d.total_voting_power!==void 0&&(h.total_voting_power=d.total_voting_power),h},fromPartial(d){var h,_;const b={validators:[],proposer:void 0,total_voting_power:"0"};return b.validators=((h=d.validators)===null||h===void 0?void 0:h.map(I=>e.Validator.fromPartial(I)))||[],b.proposer=d.proposer!==void 0&&d.proposer!==null?e.Validator.fromPartial(d.proposer):void 0,b.total_voting_power=(_=d.total_voting_power)!==null&&_!==void 0?_:"0",b}},e.Validator={encode:(d,h=t.Writer.create())=>(d.address.length!==0&&h.uint32(10).bytes(d.address),d.pub_key!==void 0&&c.PublicKey.encode(d.pub_key,h.uint32(18).fork()).ldelim(),d.voting_power!=="0"&&h.uint32(24).int64(d.voting_power),d.proposer_priority!=="0"&&h.uint32(32).int64(d.proposer_priority),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I=u();for(;_.pos>>3){case 1:I.address=_.bytes();break;case 2:I.pub_key=c.PublicKey.decode(_,_.uint32());break;case 3:I.voting_power=i(_.int64());break;case 4:I.proposer_priority=i(_.int64());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({address:f(d.address)?n(d.address):new Uint8Array,pub_key:f(d.pub_key)?c.PublicKey.fromJSON(d.pub_key):void 0,voting_power:f(d.voting_power)?String(d.voting_power):"0",proposer_priority:f(d.proposer_priority)?String(d.proposer_priority):"0"}),toJSON(d){const h={};return d.address!==void 0&&(h.address=function(_){const b=[];for(const I of _)b.push(String.fromCharCode(I));return o(b.join(""))}(d.address!==void 0?d.address:new Uint8Array)),d.pub_key!==void 0&&(h.pub_key=d.pub_key?c.PublicKey.toJSON(d.pub_key):void 0),d.voting_power!==void 0&&(h.voting_power=d.voting_power),d.proposer_priority!==void 0&&(h.proposer_priority=d.proposer_priority),h},fromPartial(d){var h,_,b;const I=u();return I.address=(h=d.address)!==null&&h!==void 0?h:new Uint8Array,I.pub_key=d.pub_key!==void 0&&d.pub_key!==null?c.PublicKey.fromPartial(d.pub_key):void 0,I.voting_power=(_=d.voting_power)!==null&&_!==void 0?_:"0",I.proposer_priority=(b=d.proposer_priority)!==null&&b!==void 0?b:"0",I}},e.SimpleValidator={encode:(d,h=t.Writer.create())=>(d.pub_key!==void 0&&c.PublicKey.encode(d.pub_key,h.uint32(10).fork()).ldelim(),d.voting_power!=="0"&&h.uint32(16).int64(d.voting_power),h),decode(d,h){const _=d instanceof t.Reader?d:new t.Reader(d);let b=h===void 0?_.len:_.pos+h;const I={pub_key:void 0,voting_power:"0"};for(;_.pos>>3){case 1:I.pub_key=c.PublicKey.decode(_,_.uint32());break;case 2:I.voting_power=i(_.int64());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({pub_key:f(d.pub_key)?c.PublicKey.fromJSON(d.pub_key):void 0,voting_power:f(d.voting_power)?String(d.voting_power):"0"}),toJSON(d){const h={};return d.pub_key!==void 0&&(h.pub_key=d.pub_key?c.PublicKey.toJSON(d.pub_key):void 0),d.voting_power!==void 0&&(h.voting_power=d.voting_power),h},fromPartial(d){var h;const _={pub_key:void 0,voting_power:"0"};return _.pub_key=d.pub_key!==void 0&&d.pub_key!==null?c.PublicKey.fromPartial(d.pub_key):void 0,_.voting_power=(h=d.voting_power)!==null&&h!==void 0?h:"0",_}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(p.g!==void 0)return p.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const h=r(d),_=new Uint8Array(h.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){return d.toString()}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5640:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.Consensus=e.App=e.protobufPackage=void 0;const a=S(p(3720)),t=k(p(2100));function c(s){return s.toString()}function u(s){return s!=null}e.protobufPackage="tendermint.version",e.App={encode:(s,r=t.Writer.create())=>(s.protocol!=="0"&&r.uint32(8).uint64(s.protocol),s.software!==""&&r.uint32(18).string(s.software),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={protocol:"0",software:""};for(;n.pos>>3){case 1:i.protocol=c(n.uint64());break;case 2:i.software=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({protocol:u(s.protocol)?String(s.protocol):"0",software:u(s.software)?String(s.software):""}),toJSON(s){const r={};return s.protocol!==void 0&&(r.protocol=s.protocol),s.software!==void 0&&(r.software=s.software),r},fromPartial(s){var r,n;const o={protocol:"0",software:""};return o.protocol=(r=s.protocol)!==null&&r!==void 0?r:"0",o.software=(n=s.software)!==null&&n!==void 0?n:"",o}},e.Consensus={encode:(s,r=t.Writer.create())=>(s.block!=="0"&&r.uint32(8).uint64(s.block),s.app!=="0"&&r.uint32(16).uint64(s.app),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={block:"0",app:"0"};for(;n.pos>>3){case 1:i.block=c(n.uint64());break;case 2:i.app=c(n.uint64());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({block:u(s.block)?String(s.block):"0",app:u(s.app)?String(s.app):"0"}),toJSON(s){const r={};return s.block!==void 0&&(r.block=s.block),s.app!==void 0&&(r.app=s.app),r},fromPartial(s){var r,n;const o={block:"0",app:"0"};return o.block=(r=s.block)!==null&&r!==void 0?r:"0",o.app=(n=s.app)!==null&&n!==void 0?n:"0",o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2076:function(D,e,p){var w=this&&this.__awaiter||function(k,S,a,t){return new(a||(a=Promise))(function(c,u){function s(o){try{n(t.next(o))}catch(i){u(i)}}function r(o){try{n(t.throw(o))}catch(i){u(i)}}function n(o){var i;o.done?c(o.value):(i=o.value,i instanceof a?i:new a(function(f){f(i)})).then(s,r)}n((t=t.apply(k,S||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.AuthQuerier=void 0;const O=p(3004);e.AuthQuerier=class{constructor(k){this.url=k}accounts(k,S){return w(this,void 0,void 0,function*(){return O.Query.Accounts(k,{headers:S,pathPrefix:this.url})})}account(k,S){return w(this,void 0,void 0,function*(){return O.Query.Account(k,{headers:S,pathPrefix:this.url})})}params(k,S){return w(this,void 0,void 0,function*(){return O.Query.Params(k,{headers:S,pathPrefix:this.url})})}moduleAccountByName(k,S){return w(this,void 0,void 0,function*(){return O.Query.ModuleAccountByName(k,{headers:S,pathPrefix:this.url})})}}},298:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AuthzQuerier=void 0;const w=p(3704);e.AuthzQuerier=class{constructor(O){this.url=O}grants(O,k){return w.Query.Grants(O,{headers:k,pathPrefix:this.url})}granterGrants(O,k){return w.Query.GranterGrants(O,{headers:k,pathPrefix:this.url})}granteeGrants(O,k){return w.Query.GranteeGrants(O,{headers:k,pathPrefix:this.url})}}},8622:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BankQuerier=void 0;const w=p(1926);e.BankQuerier=class{constructor(O){this.url=O}balance(O,k){return w.Query.Balance(O,{headers:k,pathPrefix:this.url})}allBalances(O,k){return w.Query.AllBalances(O,{headers:k,pathPrefix:this.url})}spendableBalances(O,k){return w.Query.SpendableBalances(O,{headers:k,pathPrefix:this.url})}totalSupply(O,k){return w.Query.TotalSupply(O,{headers:k,pathPrefix:this.url})}supplyOf(O,k){return w.Query.SupplyOf(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}denomMetadata(O,k){return w.Query.DenomMetadata(O,{headers:k,pathPrefix:this.url})}denomsMetadata(O,k){return w.Query.DenomsMetadata(O,{headers:k,pathPrefix:this.url})}}},8526:function(D,e,p){var w=p(5108),O=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{d(r.next(h))}catch(_){o(_)}}function f(h){try{d(r.throw(h))}catch(_){o(_)}}function d(h){var _;h.done?n(h.value):(_=h.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ComputeQuerier=void 0;const k=p(8972),S=p(3607),a=p(8136),t=p(5250);e.ComputeQuerier=class{constructor(c,u){this.url=c,this.encryption=u,this.codeHashCache=new Map,this.encryption||(this.encryption=new a.EncryptionUtilsImpl(c))}contractInfo(c,u){return t.Query.ContractInfo(c,{headers:u,pathPrefix:this.url})}contractsByCodeId(c,u){return t.Query.ContractsByCodeId(c,{headers:u,pathPrefix:this.url})}code(c,u){return t.Query.Code(c,{headers:u,pathPrefix:this.url})}codes(c,u){return t.Query.Codes(c,{headers:u,pathPrefix:this.url})}codeHashByContractAddress(c,u){return O(this,void 0,void 0,function*(){let s=this.codeHashCache.get(c.contract_address);return s||({code_hash:s}=yield t.Query.CodeHashByContractAddress(c,{headers:u,pathPrefix:this.url}),this.codeHashCache.set(c.contract_address,s)),{code_hash:s}})}codeHashByCodeId(c,u){return O(this,void 0,void 0,function*(){let s=this.codeHashCache.get(c.code_id);return s||({code_hash:s}=yield t.Query.CodeHashByCodeId({code_id:c.code_id},{headers:u,pathPrefix:this.url}),this.codeHashCache.set(c.code_id,s)),{code_hash:s}})}labelByAddress(c,u){return t.Query.LabelByAddress(c,{headers:u,pathPrefix:this.url})}addressByLabel(c,u){return t.Query.AddressByLabel(c,{headers:u,pathPrefix:this.url})}queryContract({contract_address:c,code_hash:u,query:s},r){return O(this,void 0,void 0,function*(){u||(w.warn((0,S.getMissingCodeHashWarning)("queryContract()")),{code_hash:u}=yield this.codeHashByContractAddress({contract_address:c})),u=u.replace("0x","").toLowerCase();const n=yield this.encryption.encrypt(u,s),o=n.slice(0,32);try{const{data:i}=yield t.Query.QuerySecretContract({contract_address:c,query:n},{headers:r,pathPrefix:this.url}),f=yield this.encryption.decrypt((0,k.fromBase64)(i),o);return f!=null&&f.length?JSON.parse((0,k.fromUtf8)((0,k.fromBase64)((0,k.fromUtf8)(f)))):{}}catch(i){try{const f=/encrypted: (.+?): (?:instantiate|execute|query|reply to|migrate) contract failed/g.exec(i.message);if(f==null||(f==null?void 0:f.length)!=2)throw i;const d=(0,k.fromBase64)(f[1]),h=yield this.encryption.decrypt(d,o);try{return(0,k.fromUtf8)((0,k.fromBase64)((0,k.fromUtf8)(h)))}catch(_){if(_.message==="Invalid base64 string format")return(0,k.fromUtf8)(h);throw i}}catch{throw i}}})}contractHistory(c,u){return O(this,void 0,void 0,function*(){const{entries:s}=yield t.Query.ContractHistory(c,{headers:u,pathPrefix:this.url});let r=[];for(const n of s??[]){let o=n.msg;try{const i=(0,k.fromBase64)(o),f=i.slice(0,32),d=i.slice(64),h=yield this.encryption.decrypt(d,f);o=(0,k.fromUtf8)(h).slice(64)}catch{}r.push({operation:n.operation,code_id:n.code_id,updated:n.updated,msg:o})}return{entries:r}})}}},2012:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DistributionQuerier=void 0;const w=p(406);e.DistributionQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}validatorOutstandingRewards(O,k){return w.Query.ValidatorOutstandingRewards(O,{headers:k,pathPrefix:this.url})}validatorCommission(O,k){return w.Query.ValidatorCommission(O,{headers:k,pathPrefix:this.url})}validatorSlashes(O,k){return w.Query.ValidatorSlashes(O,{headers:k,pathPrefix:this.url})}delegationRewards(O,k){return w.Query.DelegationRewards(O,{headers:k,pathPrefix:this.url})}delegationTotalRewards(O,k){return w.Query.DelegationTotalRewards(O,{headers:k,pathPrefix:this.url})}delegatorValidators(O,k){return w.Query.DelegatorValidators(O,{headers:k,pathPrefix:this.url})}delegatorWithdrawAddress(O,k){return w.Query.DelegatorWithdrawAddress(O,{headers:k,pathPrefix:this.url})}communityPool(O,k){return w.Query.CommunityPool(O,{headers:k,pathPrefix:this.url})}foundationTax(O,k){return w.Query.FoundationTax(O,{headers:k,pathPrefix:this.url})}restakeThreshold(O,k){return w.Query.RestakeThreshold(O,{headers:k,pathPrefix:this.url})}restakingEntries(O,k){return w.Query.RestakingEntries(O,{headers:k,pathPrefix:this.url})}}},5468:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EmergencyButtonQuerier=void 0;const w=p(71);e.EmergencyButtonQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},3394:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EvidenceQuerier=void 0;const w=p(6898);e.EvidenceQuerier=class{constructor(O){this.url=O}evidence(O,k){return w.Query.Evidence(O,{headers:k,pathPrefix:this.url})}allEvidence(O,k){return w.Query.AllEvidence(O,{headers:k,pathPrefix:this.url})}}},380:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FeegrantQuerier=void 0;const w=p(876);e.FeegrantQuerier=class{constructor(O){this.url=O}allowance(O,k){return w.Query.Allowance(O,{headers:k,pathPrefix:this.url})}allowances(O,k){return w.Query.Allowances(O,{headers:k,pathPrefix:this.url})}allowancesByGranter(O,k){return w.Query.AllowancesByGranter(O,{headers:k,pathPrefix:this.url})}}},3095:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GovQuerier=void 0;const w=p(7331);e.GovQuerier=class{constructor(O){this.url=O}proposal(O,k){return w.Query.Proposal(O,{headers:k,pathPrefix:this.url})}proposals(O,k){return w.Query.Proposals(O,{headers:k,pathPrefix:this.url})}vote(O,k){return w.Query.Vote(O,{headers:k,pathPrefix:this.url})}votes(O,k){return w.Query.Votes(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}deposit(O,k){return w.Query.Deposit(O,{headers:k,pathPrefix:this.url})}deposits(O,k){return w.Query.Deposits(O,{headers:k,pathPrefix:this.url})}tallyResult(O,k){return w.Query.TallyResult(O,{headers:k,pathPrefix:this.url})}}},7807:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcChannelQuerier=void 0;const w=p(6409);e.IbcChannelQuerier=class{constructor(O){this.url=O}channel(O,k){return w.Query.Channel(O,{headers:k,pathPrefix:this.url})}channels(O,k){return w.Query.Channels(O,{headers:k,pathPrefix:this.url})}connectionChannels(O,k){return w.Query.ConnectionChannels(O,{headers:k,pathPrefix:this.url})}channelClientState(O,k){return w.Query.ChannelClientState(O,{headers:k,pathPrefix:this.url})}channelConsensusState(O,k){return w.Query.ChannelConsensusState(O,{headers:k,pathPrefix:this.url})}packetCommitment(O,k){return w.Query.PacketCommitment(O,{headers:k,pathPrefix:this.url})}packetCommitments(O,k){return w.Query.PacketCommitments(O,{headers:k,pathPrefix:this.url})}packetReceipt(O,k){return w.Query.PacketReceipt(O,{headers:k,pathPrefix:this.url})}packetAcknowledgement(O,k){return w.Query.PacketAcknowledgement(O,{headers:k,pathPrefix:this.url})}packetAcknowledgements(O,k){return w.Query.PacketAcknowledgements(O,{headers:k,pathPrefix:this.url})}unreceivedPackets(O,k){return w.Query.UnreceivedPackets(O,{headers:k,pathPrefix:this.url})}unreceivedAcks(O,k){return w.Query.UnreceivedAcks(O,{headers:k,pathPrefix:this.url})}nextSequenceReceive(O,k){return w.Query.NextSequenceReceive(O,{headers:k,pathPrefix:this.url})}}},1654:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcClientQuerier=void 0;const w=p(301);e.IbcClientQuerier=class{constructor(O){this.url=O}clientState(O,k){return w.Query.ClientState(O,{headers:k,pathPrefix:this.url})}clientStates(O,k){return w.Query.ClientStates(O,{headers:k,pathPrefix:this.url})}consensusState(O,k){return w.Query.ConsensusState(O,{headers:k,pathPrefix:this.url})}consensusStates(O,k){return w.Query.ConsensusStates(O,{headers:k,pathPrefix:this.url})}clientStatus(O,k){return w.Query.ClientStatus(O,{headers:k,pathPrefix:this.url})}clientParams(O,k){return w.Query.ClientParams(O,{headers:k,pathPrefix:this.url})}upgradedClientState(O,k){return w.Query.UpgradedClientState(O,{headers:k,pathPrefix:this.url})}upgradedConsensusState(O,k){return w.Query.UpgradedConsensusState(O,{headers:k,pathPrefix:this.url})}consensusStateHeights(O,k){return w.Query.ConsensusStateHeights(O,{headers:k,pathPrefix:this.url})}}},2840:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcConnectionQuerier=void 0;const w=p(5258);e.IbcConnectionQuerier=class{constructor(O){this.url=O}connection(O,k){return w.Query.Connection(O,{headers:k,pathPrefix:this.url})}connections(O,k){return w.Query.Connections(O,{headers:k,pathPrefix:this.url})}clientConnections(O,k){return w.Query.ClientConnections(O,{headers:k,pathPrefix:this.url})}connectionClientState(O,k){return w.Query.ConnectionClientState(O,{headers:k,pathPrefix:this.url})}connectionConsensusState(O,k){return w.Query.ConnectionConsensusState(O,{headers:k,pathPrefix:this.url})}}},5570:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcFeeQuerier=void 0;const w=p(187);e.IbcFeeQuerier=class{constructor(O){this.url=O}incentivizedPackets(O,k){return w.Query.IncentivizedPackets(O,{headers:k,pathPrefix:this.url})}incentivizedPacket(O,k){return w.Query.IncentivizedPacket(O,{headers:k,pathPrefix:this.url})}incentivizedPacketsForChannel(O,k){return w.Query.IncentivizedPacketsForChannel(O,{headers:k,pathPrefix:this.url})}totalRecvFees(O,k){return w.Query.TotalRecvFees(O,{headers:k,pathPrefix:this.url})}totalAckFees(O,k){return w.Query.TotalAckFees(O,{headers:k,pathPrefix:this.url})}totalTimeoutFees(O,k){return w.Query.TotalTimeoutFees(O,{headers:k,pathPrefix:this.url})}payee(O,k){return w.Query.Payee(O,{headers:k,pathPrefix:this.url})}counterpartyPayee(O,k){return w.Query.CounterpartyPayee(O,{headers:k,pathPrefix:this.url})}feeEnabledChannels(O,k){return w.Query.FeeEnabledChannels(O,{headers:k,pathPrefix:this.url})}feeEnabledChannel(O,k){return w.Query.FeeEnabledChannel(O,{headers:k,pathPrefix:this.url})}}},5037:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcInterchainAccountsControllerQuerier=void 0;const w=p(2847);e.IbcInterchainAccountsControllerQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}interchainAccount(O,k){return w.Query.InterchainAccount(O,{headers:k,pathPrefix:this.url})}}},3635:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcInterchainAccountsHostQuerier=void 0;const w=p(1154);e.IbcInterchainAccountsHostQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},9637:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcPacketForwardQuerier=void 0;const w=p(1692);e.IbcPacketForwardQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},1387:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcTransferQuerier=void 0;const w=p(4921);e.IbcTransferQuerier=class{constructor(O){this.url=O}denomTrace(O,k){return w.Query.DenomTrace(O,{headers:k,pathPrefix:this.url})}denomTraces(O,k){return w.Query.DenomTraces(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}denomHash(O,k){return w.Query.DenomHash(O,{headers:k,pathPrefix:this.url})}escrowAddress(O,k){return w.Query.EscrowAddress(O,{headers:k,pathPrefix:this.url})}}},9150:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(p(2076),e),O(p(298),e),O(p(8622),e),O(p(8526),e),O(p(2012),e),O(p(3394),e),O(p(380),e),O(p(3095),e),O(p(7807),e),O(p(1654),e),O(p(2840),e),O(p(1387),e),O(p(5714),e),O(p(5932),e),O(p(8513),e),O(p(4482),e),O(p(7224),e),O(p(5562),e),O(p(7174),e),O(p(1743),e),O(p(6189),e),O(p(5468),e)},5714:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MauthQuerier=void 0;const w=p(9743);e.MauthQuerier=class{constructor(O){this.url=O}interchainAccountFromAddress(O,k){return w.Query.InterchainAccountFromAddress(O,{headers:k,pathPrefix:this.url})}}},5932:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MintQuerier=void 0;const w=p(468);e.MintQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}inflation(O,k){return w.Query.Inflation(O,{headers:k,pathPrefix:this.url})}annualProvisions(O,k){return w.Query.AnnualProvisions(O,{headers:k,pathPrefix:this.url})}}},8513:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeQuerier=void 0;const w=p(4210);e.NodeQuerier=class{constructor(O){this.url=O}config(O,k){return w.Service.Config(O,{headers:k,pathPrefix:this.url})}}},4482:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParamsQuerier=void 0;const w=p(5440);e.ParamsQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},7224:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegistrationQuerier=void 0;const w=p(6402);e.RegistrationQuerier=class{constructor(O){this.url=O}txKey(O,k){return w.Query.TxKey(O,{headers:k,pathPrefix:this.url})}registrationKey(O,k){return w.Query.RegistrationKey(O,{headers:k,pathPrefix:this.url})}encryptedSeed(O,k){return w.Query.EncryptedSeed(O,{headers:k,pathPrefix:this.url})}}},5562:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SlashingQuerier=void 0;const w=p(1575);e.SlashingQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}signingInfo(O,k){return w.Query.SigningInfo(O,{headers:k,pathPrefix:this.url})}signingInfos(O,k){return w.Query.SigningInfos(O,{headers:k,pathPrefix:this.url})}}},7174:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StakingQuerier=void 0;const w=p(4066);e.StakingQuerier=class{constructor(O){this.url=O}validators(O,k){return w.Query.Validators(O,{headers:k,pathPrefix:this.url})}validator(O,k){return w.Query.Validator(O,{headers:k,pathPrefix:this.url})}validatorDelegations(O,k){return w.Query.ValidatorDelegations(O,{headers:k,pathPrefix:this.url})}validatorUnbondingDelegations(O,k){return w.Query.ValidatorUnbondingDelegations(O,{headers:k,pathPrefix:this.url})}delegation(O,k){return w.Query.Delegation(O,{headers:k,pathPrefix:this.url})}unbondingDelegation(O,k){return w.Query.UnbondingDelegation(O,{headers:k,pathPrefix:this.url})}delegatorDelegations(O,k){return w.Query.DelegatorDelegations(O,{headers:k,pathPrefix:this.url})}delegatorUnbondingDelegations(O,k){return w.Query.DelegatorUnbondingDelegations(O,{headers:k,pathPrefix:this.url})}redelegations(O,k){return w.Query.Redelegations(O,{headers:k,pathPrefix:this.url})}delegatorValidators(O,k){return w.Query.DelegatorValidators(O,{headers:k,pathPrefix:this.url})}delegatorValidator(O,k){return w.Query.DelegatorValidator(O,{headers:k,pathPrefix:this.url})}historicalInfo(O,k){return w.Query.HistoricalInfo(O,{headers:k,pathPrefix:this.url})}pool(O,k){return w.Query.Pool(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},1743:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TendermintQuerier=void 0;const w=p(2390);e.TendermintQuerier=class{constructor(O){this.url=O}getNodeInfo(O,k){return w.Service.GetNodeInfo(O,{headers:k,pathPrefix:this.url})}getSyncing(O,k){return w.Service.GetSyncing(O,{headers:k,pathPrefix:this.url})}getLatestBlock(O,k){return w.Service.GetLatestBlock(O,{headers:k,pathPrefix:this.url})}getBlockByHeight(O,k){return w.Service.GetBlockByHeight(O,{headers:k,pathPrefix:this.url})}getLatestValidatorSet(O,k){return w.Service.GetLatestValidatorSet(O,{headers:k,pathPrefix:this.url})}getValidatorSetByHeight(O,k){return w.Service.GetValidatorSetByHeight(O,{headers:k,pathPrefix:this.url})}}},6189:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UpgradeQuerier=void 0;const w=p(2265);e.UpgradeQuerier=class{constructor(O){this.url=O}currentPlan(O,k){return w.Query.CurrentPlan(O,{headers:k,pathPrefix:this.url})}appliedPlan(O,k){return w.Query.AppliedPlan(O,{headers:k,pathPrefix:this.url})}upgradedConsensusState(O,k){return w.Query.UpgradedConsensusState(O,{headers:k,pathPrefix:this.url})}moduleVersions(O,k){return w.Query.ModuleVersions(O,{headers:k,pathPrefix:this.url})}}},1972:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(K,X,Q,Z){Z===void 0&&(Z=Q),Object.defineProperty(K,Z,{enumerable:!0,get:function(){return X[Q]}})}:function(K,X,Q,Z){Z===void 0&&(Z=Q),K[Z]=X[Q]}),O=this&&this.__setModuleDefault||(Object.create?function(K,X){Object.defineProperty(K,"default",{enumerable:!0,value:X})}:function(K,X){K.default=X}),k=this&&this.__importStar||function(K){if(K&&K.__esModule)return K;var X={};if(K!=null)for(var Q in K)Q!=="default"&&Object.prototype.hasOwnProperty.call(K,Q)&&w(X,K,Q);return O(X,K),X},S=this&&this.__awaiter||function(K,X,Q,Z){return new(Q||(Q=Promise))(function(se,ue){function fe(be){try{ge(Z.next(be))}catch(_e){ue(_e)}}function me(be){try{ge(Z.throw(be))}catch(_e){ue(_e)}}function ge(be){var _e;be.done?se(be.value):(_e=be.value,_e instanceof Q?_e:new Q(function(we){we(_e)})).then(fe,me)}ge((Z=Z.apply(K,X||[])).next())})};if(Object.defineProperty(e,"__esModule",{value:!0}),e.TxResultCode=e.gasToFee=e.SecretNetworkClient=e.ReadonlySigner=e.BroadcastMode=void 0,typeof window>"u"||window.fetch===void 0){const K=p(4098);p.g.fetch=K}const a=p(8972),t=p(3061),c=p(3607),u=p(8136),s=p(3117),r=p(1610),n=p(4447),o=p(7350),i=p(8471),f=p(2412),d=p(6519),h=p(9849),_=p(5818),b=p(6010),I=p(6994),l=p(4191),j=p(2896),M=p(2076),N=p(298),C=p(8622),x=p(8526),P=p(2012),v=p(5468),m=p(3394),E=p(380),B=p(3095),T=p(7807),q=p(1654),te=p(2840),re=p(5570),ie=p(5037),J=p(3635),ee=p(9637),G=p(1387),$=p(5932),W=p(4482),Y=p(7224),F=p(5562),ae=p(7174),he=p(1743),le=p(6189),ce=p(3745),ve=p(6049),de=p(8772),pe=p(5498),ye=p(5360);var V,y;(function(K){K.Block="Block",K.Sync="Sync",K.Async="Async"})(V=e.BroadcastMode||(e.BroadcastMode={}));class A{getAccounts(){throw new Error("getAccounts() is not supported in readonly mode.")}signAmino(X,Q){throw new Error("signAmino() is not supported in readonly mode.")}}function R(K){return new Promise(X=>setTimeout(X,K))}function U(K,X){return Math.ceil(K*X)}function z(K,X,Q,Z,se){return S(this,void 0,void 0,function*(){se||(se=(yield Promise.resolve().then(()=>k(p(8502)))).SignMode.SIGN_MODE_DIRECT);const ue={signer_infos:L(K,se),fee:{amount:[...X],gas_limit:String(Q),granter:Z??"",payer:""}},{AuthInfo:fe}=yield Promise.resolve().then(()=>k(p(6994)));return fe.encode(fe.fromPartial(ue)).finish()})}function L(K,X){return K.map(({pubkey:Q,sequence:Z})=>({public_key:Q,mode_info:{single:{mode:X}},sequence:String(Z)}))}function H(K){return S(this,void 0,void 0,function*(){const{Any:X}=yield Promise.resolve().then(()=>k(p(4191)));if(function(Q){return Q.type==="tendermint/PubKeySecp256k1"}(K)){const{PubKey:Q}=yield Promise.resolve().then(()=>k(p(6010))),Z=Q.fromPartial({key:(0,a.fromBase64)(K.value)});return X.fromPartial({type_url:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(Q.encode(Z).finish())})}if(function(Q){return Q.type==="tendermint/PubKeyMultisigThreshold"}(K)){const{LegacyAminoPubKey:Q}=yield Promise.resolve().then(()=>k(p(5818))),Z=Q.fromPartial({threshold:Number(K.value.threshold),public_keys:K.value.pubkeys.map(H)});return X.fromPartial({type_url:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(Q.encode(Z).finish())})}throw new Error(`Pubkey type ${K.type} not recognized`)})}function ne(K){if(typeof K!="object"||K===null)return K;if(Array.isArray(K))return K.map(ne);if(Object.keys(K).length===2&&typeof K.type_url=="string"&&typeof K.value=="object")return Object.assign({"@type":K.type_url},ne(K.value));const X={};return Object.keys(K).forEach(Q=>{X[Q]=ne(K[Q])}),X}function oe(){return{pub_key:{type:"tendermint/PubKeySecp256k1",value:(0,a.toBase64)(new Uint8Array(33).fill(0))},signature:(0,a.toBase64)(new Uint8Array(64).fill(0))}}e.ReadonlySigner=A,e.SecretNetworkClient=class{constructor(K){var X,Q;if(this.url=K.url.replace(/\/*$/g,""),this.query={auth:new M.AuthQuerier(K.url),authz:new N.AuthzQuerier(K.url),bank:new C.BankQuerier(K.url),compute:new x.ComputeQuerier(K.url),snip20:new i.Snip20Querier(K.url),snip721:new f.Snip721Querier(K.url),snip1155:new n.Snip1155Querier(K.url),distribution:new P.DistributionQuerier(K.url),evidence:new m.EvidenceQuerier(K.url),feegrant:new E.FeegrantQuerier(K.url),gov:new B.GovQuerier(K.url),ibc_channel:new T.IbcChannelQuerier(K.url),ibc_client:new q.IbcClientQuerier(K.url),ibc_connection:new te.IbcConnectionQuerier(K.url),ibc_transfer:new G.IbcTransferQuerier(K.url),ibc_iterchain_accounts_host:new J.IbcInterchainAccountsHostQuerier(K.url),ibc_iterchain_accounts_controller:new ie.IbcInterchainAccountsControllerQuerier(K.url),ibc_fee:new re.IbcFeeQuerier(K.url),ibc_packet_forward:new ee.IbcPacketForwardQuerier(K.url),emergency_button:new v.EmergencyButtonQuerier(K.url),mauth:new c.MauthQuerier(K.url),mint:new $.MintQuerier(K.url),node:new c.NodeQuerier(K.url),params:new W.ParamsQuerier(K.url),registration:new Y.RegistrationQuerier(K.url),slashing:new F.SlashingQuerier(K.url),staking:new ae.StakingQuerier(K.url),tendermint:new he.TendermintQuerier(K.url),upgrade:new le.UpgradeQuerier(K.url),getTx:(se,ue)=>this.getTx(se,ue),txsQuery:(se,ue,fe,me)=>this.txsQuery(se,ue,fe,me)},K.wallet&&K.walletAddress===void 0)throw new Error("Must also pass 'walletAddress' when passing 'wallet'");this.wallet=(X=K.wallet)!==null&&X!==void 0?X:new A,this.address=(Q=K.walletAddress)!==null&&Q!==void 0?Q:"",this.chainId=K.chainId,this.utils={accessControl:{permit:new s.PermitSigner(this.wallet)}};const Z=se=>{const ue=(fe,me)=>this.tx.broadcast([new se(fe)],me);return ue.simulate=(fe,me)=>this.tx.simulate([new se(fe)],me),ue};this.tx={signTx:this.signTx.bind(this),broadcastSignedTx:this.broadcastSignedTx.bind(this),broadcast:this.signAndBroadcast.bind(this),simulate:this.simulate.bind(this),snip20:{send:Z(i.MsgSnip20Send),transfer:Z(i.MsgSnip20Transfer),increaseAllowance:Z(i.MsgSnip20IncreaseAllowance),decreaseAllowance:Z(i.MsgSnip20DecreaseAllowance),setViewingKey:Z(r.MsgSetViewingKey),createViewingKey:Z(r.MsgCreateViewingKey)},snip721:{send:Z(f.MsgSnip721Send),mint:Z(c.MsgSnip721Mint),addMinter:Z(c.MsgSnip721AddMinter),setViewingKey:Z(r.MsgSetViewingKey),createViewingKey:Z(r.MsgCreateViewingKey)},snip1155:{changeAdmin:Z(o.MsgSnip1155ChangeAdmin),removeAdmin:Z(o.MsgSnip1155RemoveAdmin),addCurator:Z(o.MsgSnip1155AddCurator),removeCurator:Z(o.MsgSnip1155RemoveCurator),addMinter:Z(o.MsgSnipAddMinter),removeMinter:Z(o.MsgSnip1155RemoveMinter),send:Z(o.MsgSnip1155Send),batchSend:Z(o.MsgSnip1155BatchSend),transfer:Z(o.MsgSnip1155Transfer),batchTransfer:Z(o.MsgSnip1155BatchTransfer),curate:Z(o.MsgSnip1155CurateTokens),mint:Z(o.MsgSnip1155Mint),burn:Z(o.MsgSnip1155Burn),changeMetaData:Z(o.MsgSnip1155ChangeMetadata),setViewingKey:Z(r.MsgSetViewingKey),createViewingKey:Z(r.MsgCreateViewingKey)},authz:{exec:Z(c.MsgExec),grant:Z(c.MsgGrant),revoke:Z(c.MsgRevoke)},bank:{multiSend:Z(c.MsgMultiSend),send:Z(c.MsgSend)},compute:{storeCode:Z(c.MsgStoreCode),instantiateContract:Z(c.MsgInstantiateContract),executeContract:Z(c.MsgExecuteContract),migrateContract:Z(ce.MsgMigrateContract),updateAdmin:Z(ce.MsgUpdateAdmin),clearAdmin:Z(ce.MsgClearAdmin)},emergency_button:{toggleIbcSwitch:Z(ve.MsgToggleIbcSwitch)},crisis:{verifyInvariant:Z(c.MsgVerifyInvariant)},distribution:{fundCommunityPool:Z(c.MsgFundCommunityPool),setWithdrawAddress:Z(c.MsgSetWithdrawAddress),withdrawDelegatorReward:Z(c.MsgWithdrawDelegatorReward),withdrawValidatorCommission:Z(c.MsgWithdrawValidatorCommission),setAutoRestake:Z(ce.MsgSetAutoRestake)},evidence:{submitEvidence:Z(c.MsgSubmitEvidence)},feegrant:{grantAllowance:Z(c.MsgGrantAllowance),revokeAllowance:Z(c.MsgRevokeAllowance)},gov:{deposit:Z(c.MsgDeposit),submitProposal:Z(c.MsgSubmitProposal),vote:Z(c.MsgVote),voteWeighted:Z(c.MsgVoteWeighted)},ibc:{transfer:Z(c.MsgTransfer)},ibc_fee:{payPacketFee:Z(ce.MsgPayPacketFee),payPacketFeeAsync:Z(ce.MsgPayPacketFeeAsync),registerPayee:Z(ce.MsgRegisterPayee),registerCounterpartyPayee:Z(ce.MsgRegisterCounterpartyPayee)},registration:{register:Z(de.RaAuthenticate)},slashing:{unjail:Z(c.MsgUnjail)},staking:{beginRedelegate:Z(c.MsgBeginRedelegate),createValidator:Z(c.MsgCreateValidator),delegate:Z(c.MsgDelegate),editValidator:Z(c.MsgEditValidator),undelegate:Z(c.MsgUndelegate)},vesting:{createVestingAccount:Z(pe.MsgCreateVestingAccount)}},K.encryptionUtils?this.encryptionUtils=K.encryptionUtils:this.encryptionUtils=new u.EncryptionUtilsImpl(this.url,K.encryptionSeed,this.chainId),this.query.compute=new x.ComputeQuerier(this.url,this.encryptionUtils)}getTx(K,X){var Q;return S(this,void 0,void 0,function*(){try{const{tx_response:Z}=yield d.Service.GetTx({hash:K},{pathPrefix:this.url});return Z?this.decodeTxResponse(Z,X):null}catch(Z){if(typeof(Z==null?void 0:Z.message)=="string"&&(!((Q=Z==null?void 0:Z.message)===null||Q===void 0)&&Q.includes(`tx not found: ${K}`)))return null;throw Z}})}txsQuery(K,X={resolveResponses:!1},Q={key:void 0,offset:void 0,limit:void 0,count_total:void 0,reverse:void 0},Z){return S(this,void 0,void 0,function*(){const{tx_responses:se}=yield d.Service.GetTxsEvent({events:K.split(" AND ").map(ue=>ue.trim()),pagination:Q,order_by:Z},{pathPrefix:this.url});return this.decodeTxResponses(se??[],X)})}waitForIbcResponse(K,X,Q,Z,se){return S(this,void 0,void 0,function*(){return new Promise((ue,fe)=>S(this,void 0,void 0,function*(){let me=Z.resolveResponsesTimeoutMs/Z.resolveResponsesCheckIntervalMs,ge=Q;Q==="ack"&&(ge="acknowledge");const be=[`${ge}_packet.packet_src_channel = '${X}'`,`${ge}_packet.packet_sequence = '${K}'`].join(" AND ");for(;me>0&&!se.isDone;){const _e=(yield this.txsQuery(be)).find(we=>we.code===0);_e&&(se.isDone=!0,ue({type:Q,tx:_e})),me--,yield R(Z.resolveResponsesCheckIntervalMs)}fe(`timed-out while trying to resolve IBC ${Q} tx for packet_src_channel='${X}' and packet_sequence='${K}'`)}))})}decodeTxResponses(K,X){return S(this,void 0,void 0,function*(){return yield Promise.all(K.map(Q=>this.decodeTxResponse(Q,X)))})}decodeTxResponse(K,X){var Q,Z,se,ue;return S(this,void 0,void 0,function*(){let fe;fe=X?{resolveResponses:typeof X.resolveResponses!="boolean"||X.resolveResponses,resolveResponsesTimeoutMs:typeof X.resolveResponsesTimeoutMs=="number"?X.resolveResponsesTimeoutMs:12e4,resolveResponsesCheckIntervalMs:typeof X.resolveResponsesCheckIntervalMs=="number"?X.resolveResponsesCheckIntervalMs:15e3}:{resolveResponses:!0,resolveResponsesTimeoutMs:12e4,resolveResponsesCheckIntervalMs:15e3};const me=[],ge=K.tx;for(let ke=0;!isNaN(Number((Z=(Q=ge==null?void 0:ge.body)===null||Q===void 0?void 0:Q.messages)===null||Z===void 0?void 0:Z.length))&&keOe.type==="send_packet"&&Oe.key==="packet_sequence"))||[],Re=(_e==null?void 0:_e.filter(Oe=>Oe.type==="send_packet"&&Oe.key==="packet_src_channel"))||[];if(fe.resolveResponses)for(let Oe=0;Oe<(ke==null?void 0:ke.length);Oe++){const Pe={isDone:!1};Ee.push(Promise.race([this.waitForIbcResponse(ke[Oe].value,Re[Oe].value,"ack",fe,Pe),this.waitForIbcResponse(ke[Oe].value,Re[Oe].value,"timeout",fe,Pe)]))}}return{height:Number(K.height),timestamp:K.timestamp,transactionHash:K.txhash,code:K.code,codespace:K.codespace,info:K.info,tx:ge,rawLog:we,jsonLog:be,arrayLog:_e,events:K.events,data:Se,gasUsed:Number(K.gas_used),gasWanted:Number(K.gas_wanted),ibcResponses:Ee}})}broadcastTx(K,X,Q,Z,se,ue){var fe,me,ge,be,_e,we;return S(this,void 0,void 0,function*(){const Ee=Date.now(),xe=(0,a.toHex)((0,t.sha256)(K)).toUpperCase();let Se;if(se||Z!=V.Block||(Z=V.Sync),Z===V.Block){se=!0;const{BroadcastMode:ke}=yield Promise.resolve().then(()=>k(p(6519)));let Re=!1;try{({tx_response:Se}=yield d.Service.BroadcastTx({txBytes:(0,a.toBase64)(K),mode:ke.BROADCAST_MODE_BLOCK},{pathPrefix:this.url}))}catch(Oe){if(!JSON.stringify(Oe).toLowerCase().includes("timed out waiting for tx to be included in a block"))throw new Error(`Failed to broadcast transaction ID ${xe}: '${JSON.stringify(Oe)}'.`);Re=!0}if(!Re){Se.tx=(yield Promise.resolve().then(()=>k(p(6994)))).Tx.toJSON((yield Promise.resolve().then(()=>k(p(6994)))).Tx.decode(K));const Oe=Se.tx,Pe=Me=>{if(Me.type_url==="/cosmos.crypto.multisig.LegacyAminoPubKey"){const Ae=_.LegacyAminoPubKey.decode((0,a.fromBase64)(Me.value));for(let Ne=0;Ne(Me.public_key=Pe(Me.public_key),Me));for(let Me=0;!isNaN(Number((be=(ge=Oe.body)===null||ge===void 0?void 0:ge.messages)===null||be===void 0?void 0:be.length))&&Mek(p(6519)));if({tx_response:Se}=yield d.Service.BroadcastTx({txBytes:(0,a.toBase64)(K),mode:ke.BROADCAST_MODE_SYNC},{pathPrefix:this.url}),(Se==null?void 0:Se.code)!==0)throw new Error(`Broadcasting transaction failed with code ${Se==null?void 0:Se.code} (codespace: ${Se==null?void 0:Se.codespace}). Log: ${Se==null?void 0:Se.raw_log}`)}else{if(Z!==V.Async)throw new Error(`Unknown broadcast mode "${String(Z)}", must be either "${String(V.Block)}", "${String(V.Sync)}" or "${String(V.Async)}".`);{const{BroadcastMode:ke}=yield Promise.resolve().then(()=>k(p(6519)));d.Service.BroadcastTx({txBytes:(0,a.toBase64)(K),mode:ke.BROADCAST_MODE_ASYNC},{pathPrefix:this.url})}}if(!se)return{transactionHash:xe};for(yield R(Q/2);;){const ke=yield this.getTx(xe,ue);if(ke)return ke;if(Ee+Xbe.address===this.address);if(!me)throw new Error("Failed to retrieve account from signer");let ge;if(Z)ge=Z;else{const{account:be}=yield this.query.auth.account({address:this.address});if(!be)throw new Error(`Cannot find account "${this.address}", make sure it has a balance.`);let _e;if(be["@type"]==="/cosmos.auth.v1beta1.BaseAccount")_e=be;else if(be["@type"]==="/cosmos.vesting.v1beta1.ContinuousVestingAccount")_e=(ue=be.base_vesting_account)===null||ue===void 0?void 0:ue.base_account;else if(be["@type"]==="/cosmos.vesting.v1beta1.DelayedVestingAccount")_e=(fe=be.base_vesting_account)===null||fe===void 0?void 0:fe.base_account;else{if(be["@type"]!=="/cosmos.auth.v1beta1.ModuleAccount")throw new Error(`Cannot sign with account of type "${be["@type"]}".`);_e=be.base_account}if(!_e)throw new Error(`Cannot extract BaseAccount from "${JSON.stringify(be)}".`);ge={accountNumber:Number(_e.account_number),sequence:Number(_e.sequence),chainId:this.chainId}}return(0,ye.isDirectSigner)(this.wallet)?this.signDirect(me,K,X,Q,ge,se):this.signAmino(me,K,X,Q,ge,se)})}signAmino(K,X,Q,Z,{accountNumber:se,sequence:ue,chainId:fe},me=!1){return S(this,void 0,void 0,function*(){if((0,ye.isDirectSigner)(this.wallet))throw new Error("Wrong signer type! Expected AminoSigner or AminoEip191Signer.");let ge=(yield Promise.resolve().then(()=>k(p(8502)))).SignMode.SIGN_MODE_LEGACY_AMINO_JSON;typeof this.wallet.getSignMode=="function"&&(ge=yield this.wallet.getSignMode());const be=function(Pe,Me,Ae,Ne,Te,Ce){return{chain_id:Ae,account_number:String(Te),sequence:String(Ce),fee:Me,msgs:Pe,memo:Ne||""}}(yield Promise.all(X.map(Pe=>S(this,void 0,void 0,function*(){return yield this.populateCodeHash(Pe),Pe.toAmino(this.encryptionUtils)}))),Q,fe,Z,se,ue);let _e,we;me?(_e=be,we=oe()):{signature:we,signed:_e}=yield this.wallet.signAmino(K.address,be);const Ee={type_url:"/cosmos.tx.v1beta1.TxBody",value:{messages:yield Promise.all(X.map((Pe,Me)=>S(this,void 0,void 0,function*(){return yield this.populateCodeHash(Pe),yield Pe.toProto(this.encryptionUtils)}))),memo:Z}},xe=yield this.encodeTx(Ee),Se=Number(_e.fee.gas),ke=Number(_e.sequence),Re=yield H((0,ye.encodeSecp256k1Pubkey)(K.pubkey)),Oe=yield z([{pubkey:Re,sequence:ke}],_e.fee.amount,Se,_e.fee.granter,ge);return I.TxRaw.fromPartial({body_bytes:xe,auth_info_bytes:Oe,signatures:[(0,a.fromBase64)(we.signature)]})})}populateCodeHash(K){return S(this,void 0,void 0,function*(){K instanceof c.MsgExecuteContract?K.codeHash||(K.codeHash=(yield this.query.compute.codeHashByContractAddress({contract_address:K.contractAddress})).code_hash):(K instanceof c.MsgInstantiateContract||K instanceof ce.MsgMigrateContract)&&(K.codeHash||(K.codeHash=(yield this.query.compute.codeHashByCodeId({code_id:K.codeId})).code_hash))})}encodeTx(K){return S(this,void 0,void 0,function*(){const X=yield Promise.all(K.value.messages.map(Z=>S(this,void 0,void 0,function*(){const se=yield Z.encode();return l.Any.fromPartial({type_url:Z.type_url,value:se})}))),Q=I.TxBody.fromPartial(Object.assign(Object.assign({},K.value),{messages:X}));return I.TxBody.encode(Q).finish()})}signDirect(K,X,Q,Z,{accountNumber:se,sequence:ue,chainId:fe},me=!1){return S(this,void 0,void 0,function*(){if(!(0,ye.isDirectSigner)(this.wallet))throw new Error("Wrong signer type! Expected DirectSigner.");const ge={type_url:"/cosmos.tx.v1beta1.TxBody",value:{messages:yield Promise.all(X.map((ke,Re)=>S(this,void 0,void 0,function*(){return yield this.populateCodeHash(ke),yield ke.toProto(this.encryptionUtils)}))),memo:Z}},be=yield this.encodeTx(ge),_e=yield H((0,ye.encodeSecp256k1Pubkey)(K.pubkey)),we=Number(Q.gas),Ee=function(ke,Re,Oe,Pe){return{body_bytes:ke,auth_info_bytes:Re,chain_id:Oe,account_number:String(Pe),bodyBytes:ke,authInfoBytes:Re,chainId:Oe,accountNumber:String(Pe)}}(be,yield z([{pubkey:_e,sequence:ue}],Q.amount,we,Q.granter),fe,se);let xe,Se;if(me?(xe=Ee,Se=oe()):{signature:Se,signed:xe}=yield this.wallet.signDirect(K.address,Ee),(0,ye.isSignDoc)(xe))return I.TxRaw.fromPartial({body_bytes:xe.body_bytes,auth_info_bytes:xe.auth_info_bytes,signatures:[(0,a.fromBase64)(Se.signature)]});if((0,ye.isSignDocCamelCase)(xe))return I.TxRaw.fromPartial({body_bytes:xe.bodyBytes,auth_info_bytes:xe.authInfoBytes,signatures:[(0,a.fromBase64)(Se.signature)]});throw new Error(`unknown SignDoc instance: ${JSON.stringify(xe)}`)})}},e.gasToFee=U,function(K){K[K.Success=0]="Success",K[K.ErrInternal=1]="ErrInternal",K[K.ErrTxDecode=2]="ErrTxDecode",K[K.ErrInvalidSequence=3]="ErrInvalidSequence",K[K.ErrUnauthorized=4]="ErrUnauthorized",K[K.ErrInsufficientFunds=5]="ErrInsufficientFunds",K[K.ErrUnknownRequest=6]="ErrUnknownRequest",K[K.ErrInvalidAddress=7]="ErrInvalidAddress",K[K.ErrInvalidPubKey=8]="ErrInvalidPubKey",K[K.ErrUnknownAddress=9]="ErrUnknownAddress",K[K.ErrInvalidCoins=10]="ErrInvalidCoins",K[K.ErrOutOfGas=11]="ErrOutOfGas",K[K.ErrMemoTooLarge=12]="ErrMemoTooLarge",K[K.ErrInsufficientFee=13]="ErrInsufficientFee",K[K.ErrTooManySignatures=14]="ErrTooManySignatures",K[K.ErrNoSignatures=15]="ErrNoSignatures",K[K.ErrJSONMarshal=16]="ErrJSONMarshal",K[K.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",K[K.ErrInvalidRequest=18]="ErrInvalidRequest",K[K.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",K[K.ErrMempoolIsFull=20]="ErrMempoolIsFull",K[K.ErrTxTooLarge=21]="ErrTxTooLarge",K[K.ErrKeyNotFound=22]="ErrKeyNotFound",K[K.ErrWrongPassword=23]="ErrWrongPassword",K[K.ErrorInvalidSigner=24]="ErrorInvalidSigner",K[K.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",K[K.ErrInvalidHeight=26]="ErrInvalidHeight",K[K.ErrInvalidVersion=27]="ErrInvalidVersion",K[K.ErrInvalidChainID=28]="ErrInvalidChainID",K[K.ErrInvalidType=29]="ErrInvalidType",K[K.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",K[K.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",K[K.ErrWrongSequence=32]="ErrWrongSequence",K[K.ErrPackAny=33]="ErrPackAny",K[K.ErrUnpackAny=34]="ErrUnpackAny",K[K.ErrLogic=35]="ErrLogic",K[K.ErrConflict=36]="ErrConflict",K[K.ErrNotSupported=37]="ErrNotSupported",K[K.ErrNotFound=38]="ErrNotFound",K[K.ErrIO=39]="ErrIO",K[K.ErrAppConfig=40]="ErrAppConfig",K[K.ErrPanic=111222]="ErrPanic"}(y=e.TxResultCode||(e.TxResultCode={}))},2132:function(D,e,p){var w=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(d,h){function _(l){try{I(f.next(l))}catch(j){h(j)}}function b(l){try{I(f.throw(l))}catch(j){h(j)}}function I(l){var j;l.done?d(l.value):(j=l.value,j instanceof i?j:new i(function(M){M(j)})).then(_,b)}I((f=f.apply(n,o||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRevoke=e.MsgExec=e.MsgGrant=e.StakeAuthorizationType=e.MsgGrantAuthorization=void 0;const O=p(9094),k=p(5635),S=p(5939),a=p(837);function t(n){return"msg"in n}function c(n){return"spend_limit"in n}function u(n){return"max_tokens"in n&&"allow_list"in n&&"deny_list"in n&&"authorization_type"in n}var s,r;(r=e.MsgGrantAuthorization||(e.MsgGrantAuthorization={})).MsgAcknowledgement="/ibc.core.channel.v1.MsgAcknowledgement",r.MsgBeginRedelegate="/cosmos.staking.v1beta1.MsgBeginRedelegate",r.MsgChannelCloseConfirm="/ibc.core.channel.v1.MsgChannelCloseConfirm",r.MsgChannelCloseInit="/ibc.core.channel.v1.MsgChannelCloseInit",r.MsgChannelOpenAck="/ibc.core.channel.v1.MsgChannelOpenAck",r.MsgChannelOpenConfirm="/ibc.core.channel.v1.MsgChannelOpenConfirm",r.MsgChannelOpenInit="/ibc.core.channel.v1.MsgChannelOpenInit",r.MsgChannelOpenTry="/ibc.core.channel.v1.MsgChannelOpenTry",r.MsgConnectionOpenAck="/ibc.core.connection.v1.MsgConnectionOpenAck",r.MsgConnectionOpenConfirm="/ibc.core.connection.v1.MsgConnectionOpenConfirm",r.MsgConnectionOpenInit="/ibc.core.connection.v1.MsgConnectionOpenInit",r.MsgConnectionOpenTry="/ibc.core.connection.v1.MsgConnectionOpenTry",r.MsgCreateClient="/ibc.core.client.v1.MsgCreateClient",r.MsgCreateValidator="/cosmos.staking.v1beta1.MsgCreateValidator",r.MsgDelegate="/cosmos.staking.v1beta1.MsgDelegate",r.MsgDeposit="/cosmos.gov.v1beta1.MsgDeposit",r.MsgEditValidator="/cosmos.staking.v1beta1.MsgEditValidator",r.MsgExec="/cosmos.authz.v1beta1.MsgExec",r.MsgExecuteContract="/secret.compute.v1beta1.MsgExecuteContract",r.MsgFundCommunityPool="/cosmos.distribution.v1beta1.MsgFundCommunityPool",r.MsgGrant="/cosmos.authz.v1beta1.MsgGrant",r.MsgGrantAllowance="/cosmos.feegrant.v1beta1.MsgGrantAllowance",r.MsgInstantiateContract="/secret.compute.v1beta1.MsgInstantiateContract",r.MsgMultiSend="/cosmos.bank.v1beta1.MsgMultiSend",r.MsgRecvPacket="/ibc.core.channel.v1.MsgRecvPacket",r.MsgRevoke="/cosmos.authz.v1beta1.MsgRevoke",r.MsgRevokeAllowance="/cosmos.feegrant.v1beta1.MsgRevokeAllowance",r.MsgSend="/cosmos.bank.v1beta1.MsgSend",r.MsgSetWithdrawAddress="/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",r.MsgStoreCode="/secret.compute.v1beta1.MsgStoreCode",r.MsgSubmitEvidence="/cosmos.evidence.v1beta1.MsgSubmitEvidence",r.MsgSubmitMisbehaviour="/ibc.core.client.v1.MsgSubmitMisbehaviour",r.MsgSubmitProposal="/cosmos.gov.v1beta1.MsgSubmitProposal",r.MsgTimeout="/ibc.core.channel.v1.MsgTimeout",r.MsgTimeoutOnClose="/ibc.core.channel.v1.MsgTimeoutOnClose",r.MsgTransfer="/ibc.applications.transfer.v1.MsgTransfer",r.MsgUndelegate="/cosmos.staking.v1beta1.MsgUndelegate",r.MsgUnjail="/cosmos.slashing.v1beta1.MsgUnjail",r.MsgUpdateClient="/ibc.core.client.v1.MsgUpdateClient",r.MsgUpgradeClient="/ibc.core.client.v1.MsgUpgradeClient",r.MsgVerifyInvariant="/cosmos.crisis.v1beta1.MsgVerifyInvariant",r.MsgVote="/cosmos.gov.v1beta1.MsgVote",r.MsgVoteWeighted="/cosmos.gov.v1beta1.MsgVoteWeighted",r.MsgWithdrawDelegatorReward="/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",r.MsgWithdrawValidatorCommission="/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",(s=e.StakeAuthorizationType||(e.StakeAuthorizationType={}))[s.Delegate=1]="Delegate",s[s.Undelegate=2]="Undelegate",s[s.Redelegate=3]="Redelegate",e.MsgGrant=class{constructor(n){this.params=n}toProto(){var n,o;return w(this,void 0,void 0,function*(){let i;const f={seconds:String(Math.floor(this.params.expiration)),nanos:0};if(c(this.params.authorization))i={authorization:{type_url:"/cosmos.bank.v1beta1.SendAuthorization",value:S.SendAuthorization.encode(this.params.authorization).finish()},expiration:f};else if(u(this.params.authorization)){let h,_;((n=this.params.authorization.allow_list)===null||n===void 0?void 0:n.length)>0?h={address:this.params.authorization.allow_list}:((o=this.params.authorization.deny_list)===null||o===void 0?void 0:o.length)>0&&(_={address:this.params.authorization.deny_list}),i={authorization:{type_url:"/cosmos.staking.v1beta1.StakeAuthorization",value:a.StakeAuthorization.encode({max_tokens:this.params.authorization.max_tokens,allow_list:h,deny_list:_,authorization_type:Number(this.params.authorization.authorization_type)}).finish()},expiration:f}}else{if(!t(this.params.authorization))throw new Error("Unknown authorization type.");i={authorization:{type_url:"/cosmos.authz.v1beta1.GenericAuthorization",value:O.GenericAuthorization.encode({msg:String(this.params.authorization.msg)}).finish()},expiration:f}}const d={granter:this.params.granter,grantee:this.params.grantee,grant:i};return{type_url:"/cosmos.authz.v1beta1.MsgGrant",value:d,encode:()=>w(this,void 0,void 0,function*(){return k.MsgGrant.encode(d).finish()})}})}toAmino(){var n,o;return w(this,void 0,void 0,function*(){let i={type:"cosmos-sdk/MsgGrant",value:{granter:this.params.granter,grantee:this.params.grantee,grant:{authorization:{},expiration:new Date(1e3*Math.floor(this.params.expiration)).toISOString().replace(/\.\d+Z/,"Z")}}};if(c(this.params.authorization))i.value.grant.authorization={type:"cosmos-sdk/SendAuthorization",value:{spend_limit:this.params.authorization.spend_limit}};else if(u(this.params.authorization)){let f;if(((n=this.params.authorization.allow_list)===null||n===void 0?void 0:n.length)>0)f={type:"cosmos-sdk/StakeAuthorization/AllowList",value:{allow_list:{address:this.params.authorization.allow_list}}};else{if(!(((o=this.params.authorization.deny_list)===null||o===void 0?void 0:o.length)>0))throw new Error("Must pass in allow_list or deny_list.");f={type:"cosmos-sdk/StakeAuthorization/DenyList",value:{deny_list:{address:this.params.authorization.deny_list}}}}i.value.grant.authorization={type:"cosmos-sdk/StakeAuthorization",value:{max_tokens:this.params.authorization.max_tokens,authorization_type:this.params.authorization.authorization_type,Validators:f}}}else{if(!t(this.params.authorization))throw new Error("Unknown authorization type.");i.value.grant.authorization={type:"cosmos-sdk/GenericAuthorization",value:{msg:this.params.authorization.msg}}}return i})}},e.MsgExec=class{constructor(n){this.params=n}toProto(n){return w(this,void 0,void 0,function*(){const o=[];for(const f of this.params.msgs){const d=yield f.toProto(n);o.push({type_url:d.type_url,value:yield d.encode()})}const i={grantee:this.params.grantee,msgs:o};return{type_url:"/cosmos.authz.v1beta1.MsgExec",value:i,encode:()=>w(this,void 0,void 0,function*(){return k.MsgExec.encode(i).finish()})}})}toAmino(n){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgExec",value:{grantee:this.params.grantee,msgs:yield Promise.all(this.params.msgs.map(o=>o.toAmino(n)))}}})}},e.MsgRevoke=class{constructor(n){this.params=n}toProto(){return w(this,void 0,void 0,function*(){const n={granter:this.params.granter,grantee:this.params.grantee,msg_type_url:String(this.params.msg)};return{type_url:"/cosmos.authz.v1beta1.MsgRevoke",value:n,encode:()=>w(this,void 0,void 0,function*(){return k.MsgRevoke.encode(n).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRevoke",value:{granter:this.params.granter,grantee:this.params.grantee,msg_type_url:String(this.params.msg)}}})}}},587:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgMultiSend=e.MsgSend=void 0,e.MsgSend=class{constructor({from_address:a,to_address:t,amount:c}){this.from_address=a,this.to_address=t,this.amount=c}toProto(){return S(this,void 0,void 0,function*(){const a={from_address:this.from_address,to_address:this.to_address,amount:this.amount};return{type_url:"/cosmos.bank.v1beta1.MsgSend",value:a,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(810)))).MsgSend.encode(a).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgSend",value:{from_address:this.from_address,to_address:this.to_address,amount:this.amount}}})}},e.MsgMultiSend=class{constructor({inputs:a,outputs:t}){this.inputs=a,this.outputs=t}toProto(){return S(this,void 0,void 0,function*(){const a={inputs:this.inputs,outputs:this.outputs};return{type_url:"/cosmos.bank.v1beta1.MsgMultiSend",value:a,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(810)))).MsgMultiSend.encode(a).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgMultiSend",value:{inputs:this.inputs,outputs:this.outputs}}})}}},7278:function(D,e,p){var w=p(5108),O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),k=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),S=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return k(r,s),r},a=this&&this.__awaiter||function(s,r,n,o){return new(n||(n=Promise))(function(i,f){function d(b){try{_(o.next(b))}catch(I){f(I)}}function h(b){try{_(o.throw(b))}catch(I){f(I)}}function _(b){var I;b.done?i(b.value):(I=b.value,I instanceof n?I:new n(function(l){l(I)})).then(d,h)}_((o=o.apply(s,r||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClearAdmin=e.MsgUpdateAdmin=e.MsgMigrateContract=e.MsgStoreCode=e.MsgExecuteContract=e.MsgInstantiateContract=e.getMissingCodeHashWarning=void 0;const t=p(8972),c=p(8593);function u(s){return`${new Date().toISOString()} WARNING: ${s} was used without the "code_hash" parameter. This is discouraged and will result in much slower execution times for your app.`}e.getMissingCodeHashWarning=u,e.MsgInstantiateContract=class{constructor({sender:s,code_id:r,label:n,init_msg:o,init_funds:i,code_hash:f,admin:d}){this.warnCodeHash=!1,this.sender=s,this.codeId=String(r),this.label=n,this.initMsg=o,this.initMsgEncrypted=null,this.initFunds=i??[],this.admin=d??"",f?this.codeHash=f.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,w.warn(u("MsgInstantiateContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&w.warn(u("MsgInstantiateContract")),this.initMsgEncrypted||(this.initMsgEncrypted=yield s.encrypt(this.codeHash,this.initMsg));const r={sender:(0,c.addressToBytes)(this.sender),code_id:this.codeId,label:this.label,init_msg:this.initMsgEncrypted,init_funds:this.initFunds,callback_sig:new Uint8Array(0),callback_code_hash:"",admin:this.admin};return{type_url:"/secret.compute.v1beta1.MsgInstantiateContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(p(2896)))).MsgInstantiateContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&w.warn(u("MsgInstantiateContract")),this.initMsgEncrypted||(this.initMsgEncrypted=yield s.encrypt(this.codeHash,this.initMsg)),{type:"wasm/MsgInstantiateContract",value:{sender:this.sender,code_id:this.codeId,label:this.label,init_msg:(0,t.toBase64)(this.initMsgEncrypted),init_funds:this.initFunds,admin:this.admin.length>0?this.admin:void 0}}})}},e.MsgExecuteContract=class{constructor({sender:s,contract_address:r,msg:n,sent_funds:o,code_hash:i}){this.warnCodeHash=!1,this.sender=s,this.contractAddress=r,this.msg=n,this.msgEncrypted=null,this.sentFunds=o??[],i?this.codeHash=i.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,w.warn(u("MsgExecuteContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&w.warn(u("MsgExecuteContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg));const r={sender:(0,c.addressToBytes)(this.sender),contract:(0,c.addressToBytes)(this.contractAddress),msg:this.msgEncrypted,sent_funds:this.sentFunds,callback_sig:new Uint8Array,callback_code_hash:""};return{type_url:"/secret.compute.v1beta1.MsgExecuteContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(p(2896)))).MsgExecuteContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&w.warn(u("MsgExecuteContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg)),{type:"wasm/MsgExecuteContract",value:{sender:this.sender,contract:this.contractAddress,msg:(0,t.toBase64)(this.msgEncrypted),sent_funds:this.sentFunds}}})}},e.MsgStoreCode=class{constructor({sender:s,wasm_byte_code:r,source:n,builder:o}){this.sender=s,this.source=n,this.builder=o,this.wasmByteCode=r}gzipWasm(){return a(this,void 0,void 0,function*(){if(!(0,c.is_gzip)(this.wasmByteCode)){const s=yield Promise.resolve().then(()=>S(p(9591)));this.wasmByteCode=s.gzip(this.wasmByteCode,{level:9})}})}toProto(){return a(this,void 0,void 0,function*(){yield this.gzipWasm();const s={sender:(0,c.addressToBytes)(this.sender),wasm_byte_code:this.wasmByteCode,source:this.source,builder:this.builder};return{type_url:"/secret.compute.v1beta1.MsgStoreCode",value:s,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(p(2896)))).MsgStoreCode.encode(s).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return yield this.gzipWasm(),{type:"wasm/MsgStoreCode",value:{sender:this.sender,wasm_byte_code:(0,t.toBase64)(this.wasmByteCode),source:this.source.length>0?this.source:void 0,builder:this.builder.length>0?this.builder:void 0}}})}},e.MsgMigrateContract=class{constructor({sender:s,contract_address:r,msg:n,code_id:o,code_hash:i}){this.warnCodeHash=!1,this.sender=s,this.contractAddress=r,this.msg=n,this.msgEncrypted=null,this.codeId=String(o),i?this.codeHash=i.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,w.warn(u("MsgMigrateContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&w.warn(u("MsgMigrateContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg));const r={sender:this.sender,contract:this.contractAddress,msg:this.msgEncrypted,code_id:this.codeId,callback_sig:new Uint8Array,callback_code_hash:""};return{type_url:"/secret.compute.v1beta1.MsgMigrateContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(p(2896)))).MsgMigrateContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&w.warn(u("MsgMigrateContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg)),{type:"wasm/MsgMigrateContract",value:{sender:this.sender,contract:this.contractAddress,msg:(0,t.toBase64)(this.msgEncrypted),code_id:this.codeId}}})}},e.MsgUpdateAdmin=class{constructor(s){this.params=s}toProto(){return a(this,void 0,void 0,function*(){return{type_url:"/secret.compute.v1beta1.MsgUpdateAdmin",value:this.params,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(p(2896)))).MsgUpdateAdmin.encode({sender:this.params.sender,new_admin:this.params.new_admin,contract:this.params.contract_address,callback_sig:new Uint8Array}).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return{type:"wasm/MsgUpdateAdmin",value:{sender:this.params.sender,new_admin:this.params.new_admin,contract:this.params.contract_address}}})}},e.MsgClearAdmin=class{constructor(s){this.params=s}toProto(){return a(this,void 0,void 0,function*(){return{type_url:"/secret.compute.v1beta1.MsgClearAdmin",value:this.params,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(p(2896)))).MsgClearAdmin.encode({sender:this.params.sender,contract:this.params.contract_address,callback_sig:new Uint8Array}).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return{type:"wasm/MsgClearAdmin",value:{sender:this.params.sender,contract:this.params.contract_address}}})}}},7949:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgVerifyInvariant=void 0,e.MsgVerifyInvariant=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.crisis.v1beta1.MsgVerifyInvariant",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(4489)))).MsgVerifyInvariant.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVerifyInvariant",value:{sender:this.params.sender||void 0,invariant_module_name:this.params.invariant_module_name||void 0,invariant_route:this.params.invariant_route||void 0}}})}}},1890:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{d(r.next(h))}catch(_){o(_)}}function f(h){try{d(r.throw(h))}catch(_){o(_)}}function d(h){var _;h.done?n(h.value):(_=h.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSetAutoRestake=e.MsgFundCommunityPool=e.MsgWithdrawValidatorCommission=e.MsgWithdrawDelegatorReward=e.MsgWithdrawDelegationReward=e.MsgModifyWithdrawAddress=e.MsgSetWithdrawAddress=void 0;class a{constructor(u){this.params=u}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(4301)))).MsgSetWithdrawAddress.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgModifyWithdrawAddress",value:this.params}})}}e.MsgSetWithdrawAddress=a,e.MsgModifyWithdrawAddress=a;class t{constructor(u){this.params=u}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(4301)))).MsgWithdrawDelegatorReward.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgWithdrawDelegationReward",value:this.params}})}}e.MsgWithdrawDelegatorReward=t,e.MsgWithdrawDelegationReward=t,e.MsgWithdrawValidatorCommission=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(4301)))).MsgWithdrawValidatorCommission.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgWithdrawValidatorCommission",value:this.params}})}},e.MsgFundCommunityPool=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgFundCommunityPool",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(4301)))).MsgFundCommunityPool.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgFundCommunityPool",value:this.params}})}},e.MsgSetAutoRestake=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgSetAutoRestake",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(4301)))).MsgSetAutoRestake.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgSetAutoRestake",value:Object.assign({},this.params,{enabled:!!this.params.enabled||void 0})}})}}},6049:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgToggleIbcSwitch=void 0,e.MsgToggleIbcSwitch=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(4657)))).MsgToggleIbcSwitch.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"emergencybutton/MsgToggleIbcSwitch",value:this.params}})}}},3651:function(D,e){var p=this&&this.__awaiter||function(w,O,k,S){return new(k||(k=Promise))(function(a,t){function c(r){try{s(S.next(r))}catch(n){t(n)}}function u(r){try{s(S.throw(r))}catch(n){t(n)}}function s(r){var n;r.done?a(r.value):(n=r.value,n instanceof k?n:new k(function(o){o(n)})).then(c,u)}s((S=S.apply(w,O||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSubmitEvidence=void 0,e.MsgSubmitEvidence=class{constructor(w){this.params=w}toProto(){return p(this,void 0,void 0,function*(){throw new Error("MsgSubmitEvidence not implemented.")})}toAmino(){return p(this,void 0,void 0,function*(){throw new Error("MsgSubmitEvidence not implemented.")})}}},8434:function(D,e,p){var w=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{d(r.next(h))}catch(_){o(_)}}function f(h){try{d(r.throw(h))}catch(_){o(_)}}function d(h){var _;h.done?n(h.value):(_=h.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRevokeAllowance=e.MsgGrantAllowance=void 0;const O=p(4932),k=p(6513);function S(c){return"spend_limit"in c}function a(c){return"period_spend_limit"in c}function t(c){return"allowed_messages"in c}e.MsgGrantAllowance=class{constructor(c){this.params=c}toProto(){return w(this,void 0,void 0,function*(){let c;if(S(this.params.allowance))c={type_url:"/cosmos.feegrant.v1beta1.BasicAllowance",value:O.BasicAllowance.encode(this.params.allowance).finish()};else if(a(this.params.allowance))c={type_url:"/cosmos.feegrant.v1beta1.PeriodicAllowance",value:O.PeriodicAllowance.encode(this.params.allowance).finish()};else{if(!t(this.params.allowance))throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`);{let u;if(S(this.params.allowance.allowance))u={type_url:"/cosmos.feegrant.v1beta1.BasicAllowance",value:O.BasicAllowance.encode(this.params.allowance.allowance).finish()};else{if(!a(this.params.allowance.allowance))throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`);u={type_url:"/cosmos.feegrant.v1beta1.PeriodicAllowance",value:O.PeriodicAllowance.encode(this.params.allowance.allowance).finish()}}c={type_url:"/cosmos.feegrant.v1beta1.AllowedMsgAllowance",value:O.AllowedMsgAllowance.encode({allowed_messages:this.params.allowance.allowed_messages,allowance:u}).finish()}}}return{type_url:"/cosmos.feegrant.v1beta1.MsgGrantAllowance",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return k.MsgGrantAllowance.encode({grantee:this.params.grantee,granter:this.params.granter,allowance:c}).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){let c;if(S(this.params.allowance))c={type:"cosmos-sdk/BasicAllowance",value:{spend_limit:this.params.allowance.spend_limit,expiration:this.params.allowance.expiration}};else if(a(this.params.allowance))c={type:"cosmos-sdk/PeriodicAllowance",value:{basic:this.params.allowance.basic,period:this.params.allowance.period,period_spend_limit:this.params.allowance.period_spend_limit,period_can_spend:this.params.allowance.period_can_spend,period_reset:this.params.allowance.period_reset}};else{if(!t(this.params.allowance))throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`);{let u;if(S(this.params.allowance.allowance))u={type:"cosmos-sdk/BasicAllowance",value:{spend_limit:this.params.allowance.allowance.spend_limit,expiration:this.params.allowance.allowance.expiration}};else{if(!a(this.params.allowance.allowance))throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`);u={type:"cosmos-sdk/PeriodicAllowance",value:{basic:this.params.allowance.allowance.basic,period:this.params.allowance.allowance.period,period_spend_limit:this.params.allowance.allowance.period_spend_limit,period_can_spend:this.params.allowance.allowance.period_can_spend,period_reset:this.params.allowance.allowance.period_reset}}}c={type:"cosmos-sdk/AllowedMsgAllowance",value:{allowed_messages:this.params.allowance.allowed_messages,allowance:u}}}}return{type:"cosmos-sdk/MsgGrantAllowance",value:{granter:this.params.granter,grantee:this.params.grantee,allowance:c}}})}},e.MsgRevokeAllowance=class{constructor(c){this.params=c}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/cosmos.feegrant.v1beta1.MsgRevokeAllowance",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return k.MsgRevokeAllowance.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRevokeAllowance",value:this.params}})}}},4509:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__awaiter||function(o,i,f,d){return new(f||(f=Promise))(function(h,_){function b(j){try{l(d.next(j))}catch(M){_(M)}}function I(j){try{l(d.throw(j))}catch(M){_(M)}}function l(j){var M;j.done?h(j.value):(M=j.value,M instanceof f?M:new f(function(N){N(M)})).then(b,I)}l((d=d.apply(o,i||[])).next())})},a=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgDeposit=e.MsgVoteWeighted=e.MsgVote=e.MsgSubmitProposal=e.ProposalType=e.ProposalStatus=e.VoteOption=void 0;const t=a(p(4431)),c=p(4191);var u,s,r;(r=e.VoteOption||(e.VoteOption={}))[r.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",r[r.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",r[r.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",r[r.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",r[r.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",(s=e.ProposalStatus||(e.ProposalStatus={}))[s.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",s[s.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",s[s.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",s[s.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",s[s.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",s[s.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED",function(o){o.TextProposal="TextProposal",o.CommunityPoolSpendProposal="CommunityPoolSpendProposal",o.ParameterChangeProposal="ParameterChangeProposal",o.ClientUpdateProposal="ClientUpdateProposal",o.UpgradeProposal="UpgradeProposal",o.SoftwareUpgradeProposal="SoftwareUpgradeProposal",o.CancelSoftwareUpgradeProposal="CancelSoftwareUpgradeProposal"}(u=e.ProposalType||(e.ProposalType={}));const n=new Map([[u.TextProposal,"cosmos-sdk/TextProposal"],[u.CommunityPoolSpendProposal,"cosmos-sdk/CommunityPoolSpendProposal"],[u.ParameterChangeProposal,"cosmos-sdk/ParameterChangeProposal"],[u.SoftwareUpgradeProposal,"cosmos-sdk/SoftwareUpgradeProposal"],[u.CancelSoftwareUpgradeProposal,"cosmos-sdk/CancelSoftwareUpgradeProposal"]]);e.MsgSubmitProposal=class{constructor(o){this.params=o}toProto(){var o;return S(this,void 0,void 0,function*(){let i;switch(this.params.type){case u.TextProposal:const{TextProposal:d}=yield Promise.resolve().then(()=>k(p(9074)));i=c.Any.fromPartial({type_url:"/cosmos.gov.v1beta1.TextProposal",value:d.encode(d.fromPartial(this.params.content)).finish()});break;case u.CommunityPoolSpendProposal:const{CommunityPoolSpendProposal:h}=yield Promise.resolve().then(()=>k(p(8866)));i=c.Any.fromPartial({type_url:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",value:h.encode(h.fromPartial(this.params.content)).finish()});break;case u.ParameterChangeProposal:const{ParameterChangeProposal:_}=yield Promise.resolve().then(()=>k(p(9913)));i=c.Any.fromPartial({type_url:"/cosmos.params.v1beta1.ParameterChangeProposal",value:_.encode(_.fromPartial(this.params.content)).finish()});break;case u.ClientUpdateProposal:const{ClientUpdateProposal:b}=yield Promise.resolve().then(()=>k(p(5650)));i=c.Any.fromPartial({type_url:"/ibc.core.client.v1.ClientUpdateProposal",value:b.encode(b.fromPartial(this.params.content)).finish()});break;case u.UpgradeProposal:const{UpgradeProposal:I}=yield Promise.resolve().then(()=>k(p(5650)));i=c.Any.fromPartial({type_url:"/ibc.core.client.v1.UpgradeProposal",value:I.encode(I.fromPartial(this.params.content)).finish()});break;case u.SoftwareUpgradeProposal:const{SoftwareUpgradeProposal:l}=yield Promise.resolve().then(()=>k(p(8310)));i=c.Any.fromPartial({type_url:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",value:l.encode(l.fromPartial(this.params.content)).finish()});break;case u.CancelSoftwareUpgradeProposal:const{CancelSoftwareUpgradeProposal:j}=yield Promise.resolve().then(()=>k(p(8310)));i=c.Any.fromPartial({type_url:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",value:j.encode(j.fromPartial(this.params.content)).finish()});break;default:throw new Error(`Unknown proposal type: "${this.params.type}" - ${JSON.stringify(this.params.content)}`)}const f={content:i,initial_deposit:this.params.initial_deposit,proposer:this.params.proposer,is_expedited:(o=this.params.is_expedited)!==null&&o!==void 0&&o};return{type_url:"/cosmos.gov.v1beta1.MsgSubmitProposal",value:f,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(88)))).MsgSubmitProposal.encode(f).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){const o=n.get(this.params.type);if(!o)throw new Error(`Proposal of type "${String(this.params.type)}" is not supported with an Amino signer.`);let i=this.params.content;return this.params.type===u.SoftwareUpgradeProposal&&i.plan&&(i=Object.assign(Object.assign({},i),{plan:Object.assign(Object.assign({},i.plan),{time:"0001-01-01T00:00:00Z"})})),{type:"cosmos-sdk/MsgSubmitProposal",value:{content:{type:o,value:i},initial_deposit:this.params.initial_deposit,proposer:this.params.proposer,is_expedited:!!this.params.is_expedited||void 0}}})}},e.MsgVote=class{constructor(o){this.params=o}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.gov.v1beta1.MsgVote",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(88)))).MsgVote.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVote",value:this.params}})}},e.MsgVoteWeighted=class{constructor(o){this.params=o}toProto(){return S(this,void 0,void 0,function*(){const o={voter:this.params.voter,proposal_id:this.params.proposal_id,options:this.params.options.map(i=>({option:i.option,weight:new t.default(i.weight).toFixed(18).replace(/0\.0*/,"")}))};return{type_url:"/cosmos.gov.v1beta1.MsgVoteWeighted",value:o,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(88)))).MsgVoteWeighted.encode(o).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVoteWeighted",value:{voter:this.params.voter,proposal_id:this.params.proposal_id,options:this.params.options.map(o=>({option:o.option,weight:new t.default(o.weight).toFixed(18)}))}}})}},e.MsgDeposit=class{constructor(o){this.params=o}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.gov.v1beta1.MsgDeposit",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(88)))).MsgDeposit.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgDeposit",value:this.params}})}}},6130:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgChannelCloseConfirm=e.MsgChannelCloseInit=e.MsgChannelOpenConfirm=e.MsgChannelOpenAck=e.MsgChannelOpenTry=e.MsgAcknowledgement=e.MsgChannelOpenInit=e.MsgTimeoutOnClose=e.MsgTimeout=e.MsgRecvPacket=void 0,e.MsgRecvPacket=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgRecvPacket",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgRecvPacket.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgRecvPacket doesn't support Amino encoding.")})}},e.MsgTimeout=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgTimeout",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgTimeout.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgTimeout doesn't support Amino encoding.")})}},e.MsgTimeoutOnClose=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgTimeoutOnClose.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgTimeoutOnClose doesn't support Amino encoding.")})}},e.MsgChannelOpenInit=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenInit",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgChannelOpenInit.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenInit doesn't support Amino encoding.")})}},e.MsgAcknowledgement=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgAcknowledgement",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgAcknowledgement.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgAcknowledgement doesn't support Amino encoding.")})}},e.MsgChannelOpenTry=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenTry",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgChannelOpenTry.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenTry doesn't support Amino encoding.")})}},e.MsgChannelOpenAck=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenAck",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgChannelOpenAck.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenAck doesn't support Amino encoding.")})}},e.MsgChannelOpenConfirm=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgChannelOpenConfirm.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenConfirm doesn't support Amino encoding.")})}},e.MsgChannelCloseInit=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelCloseInit",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgChannelCloseInit.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelCloseInit doesn't support Amino encoding.")})}},e.MsgChannelCloseConfirm=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7579)))).MsgChannelCloseConfirm.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelCloseConfirm doesn't support Amino encoding.")})}}},574:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateClient=e.MsgSubmitMisbehaviour=e.MsgUpgradeClient=e.MsgUpdateClient=void 0,e.MsgUpdateClient=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgUpdateClient",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(322)))).MsgUpdateClient.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgUpdateClient doesn't support Amino encoding.")})}},e.MsgUpgradeClient=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgUpgradeClient",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(322)))).MsgUpgradeClient.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgUpgradeClient doesn't support Amino encoding.")})}},e.MsgSubmitMisbehaviour=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgSubmitMisbehaviour",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(322)))).MsgSubmitMisbehaviour.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgSubmitMisbehaviour doesn't support Amino encoding.")})}},e.MsgCreateClient=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgCreateClient",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(322)))).MsgCreateClient.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgCreateClient doesn't support Amino encoding.")})}}},6187:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgConnectionOpenConfirm=e.MsgConnectionOpenAck=e.MsgConnectionOpenTry=e.MsgConnectionOpenInit=void 0,e.MsgConnectionOpenInit=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(8344)))).MsgConnectionOpenInit.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenInit doesn't support Amino encoding.")})}},e.MsgConnectionOpenTry=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(8344)))).MsgConnectionOpenTry.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenTry doesn't support Amino encoding.")})}},e.MsgConnectionOpenAck=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(8344)))).MsgConnectionOpenAck.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenAck doesn't support Amino encoding.")})}},e.MsgConnectionOpenConfirm=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(8344)))).MsgConnectionOpenConfirm.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenConfirm doesn't support Amino encoding.")})}}},7989:function(D,e,p){var w=this&&this.__awaiter||function(k,S,a,t){return new(a||(a=Promise))(function(c,u){function s(o){try{n(t.next(o))}catch(i){u(i)}}function r(o){try{n(t.throw(o))}catch(i){u(i)}}function n(o){var i;o.done?c(o.value):(i=o.value,i instanceof a?i:new a(function(f){f(i)})).then(s,r)}n((t=t.apply(k,S||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgPayPacketFeeAsync=e.MsgPayPacketFee=e.MsgRegisterCounterpartyPayee=e.MsgRegisterPayee=void 0;const O=p(6065);e.MsgRegisterPayee=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgRegisterPayee",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgRegisterPayee.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRegisterPayee",value:this.params}})}},e.MsgRegisterCounterpartyPayee=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgRegisterCounterpartyPayee.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRegisterCounterpartyPayee",value:this.params}})}},e.MsgPayPacketFee=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgPayPacketFee",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgPayPacketFee.encode({fee:this.params.fee,source_port_id:this.params.source_port_id,source_channel_id:this.params.source_channel_id,signer:this.params.signer,relayers:this.params.relayers||[]}).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgPayPacketFee",value:this.params}})}},e.MsgPayPacketFeeAsync=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgPayPacketFeeAsync",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgPayPacketFeeAsync.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgPayPacketFeeAsync",value:this.params}})}}},6272:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgTransfer=void 0,e.MsgTransfer=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){const a={source_port:this.params.source_port,source_channel:this.params.source_channel,token:this.params.token,sender:this.params.sender,receiver:this.params.receiver,timeout_height:this.params.timeout_height,timeout_timestamp:this.params.timeout_timestamp?`${this.params.timeout_timestamp}000000000`:"0",memo:this.params.memo||""};return{type_url:"/ibc.applications.transfer.v1.MsgTransfer",value:a,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(865)))).MsgTransfer.encode(a).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgTransfer",value:{source_port:this.params.source_port,source_channel:this.params.source_channel,token:this.params.token,sender:this.params.sender,receiver:this.params.receiver,timeout_height:this.params.timeout_height?{revision_number:this.params.timeout_height.revision_number,revision_height:this.params.timeout_height.revision_height}:{},timeout_timestamp:this.params.timeout_timestamp?`${this.params.timeout_timestamp}000000000`:"0",memo:this.params.memo}}})}}},3745:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(j,M,N,C){C===void 0&&(C=N),Object.defineProperty(j,C,{enumerable:!0,get:function(){return M[N]}})}:function(j,M,N,C){C===void 0&&(C=N),j[C]=M[N]}),O=this&&this.__exportStar||function(j,M){for(var N in j)N==="default"||Object.prototype.hasOwnProperty.call(M,N)||w(M,j,N)};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRegistry=void 0;const k=p(5635),S=p(810),a=p(4489),t=p(4301),c=p(3676),u=p(6513),s=p(88),r=p(5925),n=p(7704),o=p(8644),i=p(6065),f=p(865),d=p(7579),h=p(322),_=p(8344),b=p(2896),I=p(4657),l=p(1901);O(p(2132),e),O(p(587),e),O(p(7278),e),O(p(7949),e),O(p(1890),e),O(p(6049),e),O(p(3651),e),O(p(8434),e),O(p(4509),e),O(p(6130),e),O(p(574),e),O(p(6187),e),O(p(7989),e),O(p(6272),e),O(p(5656),e),O(p(2731),e),O(p(8382),e),O(p(5498),e),e.MsgRegistry=new Map([["/cosmos.authz.v1beta1.MsgGrant",k.MsgGrant],["/cosmos.authz.v1beta1.MsgExec",k.MsgExec],["/cosmos.authz.v1beta1.MsgRevoke",k.MsgRevoke],["/cosmos.bank.v1beta1.MsgSend",S.MsgSend],["/cosmos.bank.v1beta1.MsgMultiSend",S.MsgMultiSend],["/cosmos.crisis.v1beta1.MsgVerifyInvariant",a.MsgVerifyInvariant],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",t.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",t.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",t.MsgWithdrawValidatorCommission],["/cosmos.distribution.v1beta1.MsgFundCommunityPool",t.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetAutoRestake",t.MsgSetAutoRestake],["/cosmos.evidence.v1beta1.MsgSubmitEvidence",c.MsgSubmitEvidence],["/cosmos.feegrant.v1beta1.MsgGrantAllowance",u.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",u.MsgRevokeAllowance],["/cosmos.gov.v1beta1.MsgSubmitProposal",s.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",s.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",s.MsgVoteWeighted],["/cosmos.gov.v1beta1.MsgDeposit",s.MsgDeposit],["/cosmos.slashing.v1beta1.MsgUnjail",r.MsgUnjail],["/cosmos.staking.v1beta1.MsgCreateValidator",n.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgEditValidator",n.MsgEditValidator],["/cosmos.staking.v1beta1.MsgDelegate",n.MsgDelegate],["/cosmos.staking.v1beta1.MsgBeginRedelegate",n.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgUndelegate",n.MsgUndelegate],["/ibc.applications.transfer.v1.MsgTransfer",f.MsgTransfer],["/ibc.applications.fee.v1.MsgPayPacketFee",i.MsgPayPacketFee],["/ibc.applications.fee.v1.MsgPayPacketFeeAsync",i.MsgPayPacketFeeAsync],["/ibc.applications.fee.v1.MsgRegisterPayee",i.MsgRegisterPayee],["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee",i.MsgRegisterCounterpartyPayee],["/ibc.core.channel.v1.MsgChannelOpenInit",d.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",d.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgChannelOpenAck",d.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",d.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",d.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelCloseConfirm",d.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgRecvPacket",d.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",d.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",d.MsgTimeoutOnClose],["/ibc.core.channel.v1.MsgAcknowledgement",d.MsgAcknowledgement],["/ibc.core.client.v1.MsgCreateClient",h.MsgCreateClient],["/ibc.core.client.v1.MsgUpdateClient",h.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",h.MsgUpgradeClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",h.MsgSubmitMisbehaviour],["/ibc.core.connection.v1.MsgConnectionOpenInit",_.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",_.MsgConnectionOpenTry],["/ibc.core.connection.v1.MsgConnectionOpenAck",_.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",_.MsgConnectionOpenConfirm],["/secret.compute.v1beta1.MsgStoreCode",b.MsgStoreCode],["/secret.compute.v1beta1.MsgInstantiateContract",b.MsgInstantiateContract],["/secret.compute.v1beta1.MsgExecuteContract",b.MsgExecuteContract],["/secret.compute.v1beta1.MsgMigrateContract",b.MsgMigrateContract],["/secret.compute.v1beta1.MsgUpdateAdmin",b.MsgUpdateAdmin],["/secret.compute.v1beta1.MsgClearAdmin",b.MsgClearAdmin],["/secret.registration.v1beta1.RaAuthenticate",l.RaAuthenticate],["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",o.MsgCreateVestingAccount],["/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch",I.MsgToggleIbcSwitch]])},8772:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(h){try{d(r.next(h))}catch(_){o(_)}}function f(h){try{d(r.throw(h))}catch(_){o(_)}}function d(h){var _;h.done?n(h.value):(_=h.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.RaAuthenticate=void 0;const a=p(8972),t=p(3607);e.RaAuthenticate=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){const c={sender:(0,t.addressToBytes)(this.params.sender),certificate:this.params.certificate};return{type_url:"/secret.registration.v1beta1.RaAuthenticate",value:c,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(1901)))).RaAuthenticate.encode(c).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"reg/authenticate",value:{sender:this.params.sender,ra_cert:(0,a.toBase64)(this.params.certificate)}}})}}},5656:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgUnjail=void 0,e.MsgUnjail=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.slashing.v1beta1.MsgUnjail",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(5925)))).MsgUnjail.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgUnjail",value:{address:this.params.validator_addr}}})}}},2731:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(d,h){function _(l){try{I(f.next(l))}catch(j){h(j)}}function b(l){try{I(f.throw(l))}catch(j){h(j)}}function I(l){var j;l.done?d(l.value):(j=l.value,j instanceof i?j:new i(function(M){M(j)})).then(_,b)}I((f=f.apply(n,o||[])).next())})},a=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgUndelegate=e.MsgBeginRedelegate=e.MsgDelegate=e.MsgEditValidator=e.MsgCreateValidator=void 0;const t=p(8972),c=p(7715),u=a(p(4431)),s=p(7776),r=p(4191);e.MsgCreateValidator=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){const n={description:this.params.description,commission:{rate:new u.default(this.params.commission.rate).toFixed(18).replace(/0\.0*/,""),max_rate:new u.default(this.params.commission.max_rate).toFixed(18).replace(/0\.0*/,""),max_change_rate:new u.default(this.params.commission.max_change_rate).toFixed(18).replace(/0\.0*/,"")},min_self_delegation:this.params.min_self_delegation,delegator_address:this.params.delegator_address,validator_address:c.bech32.encode("secretvaloper",c.bech32.decode(this.params.delegator_address).words),pubkey:r.Any.fromPartial({type_url:"/cosmos.crypto.ed25519.PubKey",value:s.PubKey.encode(s.PubKey.fromPartial({key:(0,t.fromBase64)(this.params.pubkey)})).finish()}),value:this.params.initial_delegation};return{type_url:"/cosmos.staking.v1beta1.MsgCreateValidator",value:n,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7704)))).MsgCreateValidator.encode(n).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgCreateValidator",value:{description:{moniker:this.params.description.moniker,identity:this.params.description.identity,website:this.params.description.website,security_contact:this.params.description.security_contact,details:this.params.description.details},commission:{rate:new u.default(this.params.commission.rate).toFixed(18),max_rate:new u.default(this.params.commission.max_rate).toFixed(18),max_change_rate:new u.default(this.params.commission.max_change_rate).toFixed(18)},min_self_delegation:this.params.min_self_delegation,delegator_address:this.params.delegator_address,validator_address:c.bech32.encode("secretvaloper",c.bech32.decode(this.params.delegator_address).words),pubkey:{type:"tendermint/PubKeyEd25519",value:this.params.pubkey},value:this.params.initial_delegation}}})}},e.MsgEditValidator=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){const{Description:n}=yield Promise.resolve().then(()=>k(p(2572))),o={validator_address:this.params.validator_address,description:n.fromPartial(this.params.description||{}),commission_rate:this.params.commission_rate?new u.default(this.params.commission_rate).toFixed(18).replace(/0\.0*/,""):"",min_self_delegation:this.params.min_self_delegation||""};return{type_url:"/cosmos.staking.v1beta1.MsgEditValidator",value:o,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7704)))).MsgEditValidator.encode(o).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){let n,o;return this.params.description&&(n={moniker:this.params.description.moniker,identity:this.params.description.identity,website:this.params.description.website,security_contact:this.params.description.security_contact,details:this.params.description.details}),this.params.commission_rate&&(o=new u.default(this.params.commission_rate).toFixed(18)),{type:"cosmos-sdk/MsgEditValidator",value:{validator_address:this.params.validator_address,description:n,commission_rate:o,min_self_delegation:this.params.min_self_delegation}}})}},e.MsgDelegate=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgDelegate",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7704)))).MsgDelegate.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgDelegate",value:this.params}})}},e.MsgBeginRedelegate=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7704)))).MsgBeginRedelegate.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgBeginRedelegate",value:this.params}})}},e.MsgUndelegate=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgUndelegate",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(7704)))).MsgUndelegate.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgUndelegate",value:this.params}})}}},8382:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5498:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(h){h(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateVestingAccount=void 0,e.MsgCreateVestingAccount=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(8644)))).MsgCreateVestingAccount.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgCreateVestingAccount not implemented.")})}}},8593:(D,e,p)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bytesToAddress=e.addressToBytes=e.validateAddress=e.coinsFromString=e.stringToCoins=e.coinFromString=e.stringToCoin=e.ibcDenom=e.base64TendermintPubkeyToValconsAddress=e.tendermintPubkeyToValconsAddress=e.validatorAddressToSelfDelegatorAddress=e.selfDelegatorAddressToValidatorAddress=e.base64PubkeyToAddress=e.pubkeyToAddress=e.is_gzip=void 0;const w=p(8972),O=p(830),k=p(3061),S=p(7715);function a(c,u="secret"){return S.bech32.encode(u,S.bech32.toWords((0,O.ripemd160)((0,k.sha256)(c))))}function t(c,u="secret"){return S.bech32.encode(`${u}valcons`,S.bech32.toWords((0,k.sha256)(c).slice(0,20)))}e.is_gzip=c=>!(!c||c.length<3)&&c[0]===31&&c[1]===139&&c[2]===8,e.pubkeyToAddress=a,e.base64PubkeyToAddress=function(c,u="secret"){return a((0,w.fromBase64)(c),u)},e.selfDelegatorAddressToValidatorAddress=function(c,u="secret"){return S.bech32.encode(`${u}valoper`,S.bech32.decode(c).words)},e.validatorAddressToSelfDelegatorAddress=function(c,u="secret"){return S.bech32.encode(u,S.bech32.decode(c).words)},e.tendermintPubkeyToValconsAddress=t,e.base64TendermintPubkeyToValconsAddress=function(c,u="secret"){return t((0,w.fromBase64)(c),u)},e.ibcDenom=(c,u)=>{const s=[];for(const n of c)s.push(`${n.incomingPortId}/${n.incomingChannelId}`);const r=`${s.join("/")}/${u}`;return"ibc/"+(0,w.toHex)((0,k.sha256)((0,w.toUtf8)(r))).toUpperCase()},e.stringToCoin=c=>{const u=c.match(/^(\d+)([a-z]+)$/);if(u===null)throw new Error(`cannot extract denom & amount from '${c}'`);return{amount:u[1],denom:u[2]}},e.coinFromString=e.stringToCoin,e.stringToCoins=c=>c.split(",").map(e.stringToCoin),e.coinsFromString=e.stringToCoins,e.validateAddress=(c,u="secret")=>{let s;try{s=S.bech32.decode(c)}catch(n){let o="failed to decode address as a bech32";return n instanceof Error&&(o+=`: ${n.message}`),{isValid:!1,reason:o}}if(s.prefix!==u)return{isValid:!1,reason:`wrong bech32 prefix, expected '${u}', got '${s.prefix}'`};const r=S.bech32.fromWords(s.words);return r.length!==20&&r.length!==32?{isValid:!1,reason:`wrong address length, expected 20 or 32 bytes, got ${r.length}`}:{isValid:!0}},e.addressToBytes=function(c){return c===""?new Uint8Array(0):Uint8Array.from(S.bech32.fromWords(S.bech32.decode(c).words))},e.bytesToAddress=function(c,u="secret"){return c.length===0?"":S.bech32.encode(u,S.bech32.toWords(c))}},5360:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(d,h,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return h[_]}})}:function(d,h,_,b){b===void 0&&(b=_),d[b]=h[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(h,d,_);return O(h,d),h},S=this&&this.__awaiter||function(d,h,_,b){return new(_||(_=Promise))(function(I,l){function j(C){try{N(b.next(C))}catch(x){l(x)}}function M(C){try{N(b.throw(C))}catch(x){l(x)}}function N(C){var x;C.done?I(C.value):(x=C.value,x instanceof _?x:new _(function(P){P(x)})).then(j,M)}N((b=b.apply(d,h||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.isDirectSigner=e.isSignDocCamelCase=e.isSignDoc=e.serializeStdSignDoc=e.sortObject=e.encodeSecp256k1Pubkey=e.encodeSecp256k1Signature=e.AminoWallet=e.SECRET_BECH32_PREFIX=e.SECRET_COIN_TYPE=void 0;const a=p(8972),t=p(3061),c=k(p(9656)),u=k(p(7786)),s=k(p(2153)),r=p(3607);function n(d,h){if(h.length!==64)throw new 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:o(d),signature:(0,a.toBase64)(h)}}function o(d){if(d.length!==33||d[0]!==2&&d[0]!==3)throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:"tendermint/PubKeySecp256k1",value:(0,a.toBase64)(d)}}function i(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return d.map(i);const h=Object.keys(d).sort(),_={};return h.forEach(b=>{_[b]=i(d[b])}),_}function f(d){return(0,a.toUtf8)((h=d,JSON.stringify(i(h))));var h}e.SECRET_COIN_TYPE=529,e.SECRET_BECH32_PREFIX="secret",e.AminoWallet=class{constructor(d="",h={}){var _,b,I;d===""&&(d=s.generateMnemonic(256)),this.mnemonic=d,this.hdAccountIndex=(_=h.hdAccountIndex)!==null&&_!==void 0?_:0,this.coinType=(b=h.coinType)!==null&&b!==void 0?b:e.SECRET_COIN_TYPE,this.bech32Prefix=(I=h.bech32Prefix)!==null&&I!==void 0?I:e.SECRET_BECH32_PREFIX;const l=s.mnemonicToSeedSync(this.mnemonic),j=u.fromSeed(l).derivePath(`m/44'/${this.coinType}'/0'/0/${this.hdAccountIndex}`).privateKey;if(!j)throw new Error("Failed to derive key pair");this.privateKey=new Uint8Array(j),this.publicKey=c.getPublicKey(this.privateKey,!0),this.address=(0,r.pubkeyToAddress)(this.publicKey,this.bech32Prefix)}getAccounts(){return S(this,void 0,void 0,function*(){return[{address:this.address,algo:"secp256k1",pubkey:this.publicKey}]})}signAmino(d,h){return S(this,void 0,void 0,function*(){if(d!==this.address)throw new Error(`Address ${d} not found in wallet`);const _=(0,t.sha256)(f(h)),b=yield c.sign(_,this.privateKey,{extraEntropy:!0,der:!1});return{signed:h,signature:n(this.publicKey,b)}})}},e.encodeSecp256k1Signature=n,e.encodeSecp256k1Pubkey=o,e.sortObject=i,e.serializeStdSignDoc=f,e.isSignDoc=function(d){return"body_bytes"in d&&"auth_info_bytes"in d&&"chain_id"in d&&"account_number"in d},e.isSignDocCamelCase=function(d){return"bodyBytes"in d&&"authInfoBytes"in d&&"chainId"in d&&"accountNumber"in d},e.isDirectSigner=function(d){return d.signDirect!==void 0}},1444:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(d,h){function _(l){try{I(f.next(l))}catch(j){h(j)}}function b(l){try{I(f.throw(l))}catch(j){h(j)}}function I(l){var j;l.done?d(l.value):(j=l.value,j instanceof i?j:new i(function(M){M(j)})).then(_,b)}I((f=f.apply(n,o||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MetaMaskWallet=void 0;const a=p(5426),t=k(p(9656)),c=p(3061),u=p(3607),s=p(5360);class r{constructor(o,i,f){this.ethProvider=o,this.ethAddress=i,this.publicKey=f,this.address=(0,u.pubkeyToAddress)(this.publicKey)}static create(o,i){return S(this,void 0,void 0,function*(){const f=`secretjs_${i}_pubkey`,d=localStorage.getItem(f);if(d){const C=i.slice(2).toLocaleLowerCase();if((0,u.toHex)((0,a.keccak_256)(function(P){return t.Point.fromHex(P).toRawBytes(!1)}(d).slice(1)).slice(-20)).toLocaleLowerCase()===C)return new r(o,i,(0,u.fromHex)(d));localStorage.removeItem(f)}const h=(0,u.toUtf8)("Get secret address"),_=`0x${(0,u.toHex)(h)}`,b=(yield o.request({method:"personal_sign",params:[_,i]})).toString(),I=(0,u.fromHex)(b.slice(2,-2));let l=parseInt(b.slice(-2),16)-27;l<0&&(l+=27);const j=(0,u.toUtf8)(`Ethereum Signed Message: -`),M=(0,u.toUtf8)(String(h.length)),N=t.recoverPublicKey((0,a.keccak_256)(new Uint8Array([...j,...M,...h])),I,l,!0);return localStorage.setItem(f,(0,u.toHex)(N)),new r(o,i,N)})}getAccounts(){return S(this,void 0,void 0,function*(){return[{address:this.address,algo:"secp256k1",pubkey:this.publicKey}]})}getSignMode(){return S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(p(8502)))).SignMode.SIGN_MODE_EIP_191})}signAmino(o,i){return S(this,void 0,void 0,function*(){if(o!==(0,u.pubkeyToAddress)(this.publicKey))throw new Error(`Address ${o} not found in wallet`);const f=`0x${(0,u.toHex)(function(_){return(0,u.toUtf8)((b=_,JSON.stringify((0,s.sortObject)(b),null,4)));var b}(i))}`,d=yield this.ethProvider.request({method:"personal_sign",params:[f,this.ethAddress]}),h=(0,u.fromHex)(d.slice(2,-2));return{signed:i,signature:(0,s.encodeSecp256k1Signature)(this.publicKey,h)}})}signPermit(o,i){return S(this,void 0,void 0,function*(){if(o!==(0,u.pubkeyToAddress)(this.publicKey))throw new Error(`Address ${o} not found in wallet`);const f=(0,c.sha256)((0,s.serializeStdSignDoc)(i)),d=yield this.ethProvider.request({method:"eth_sign",params:[this.ethAddress,"0x"+(0,u.toHex)(f)]}),h=(0,u.fromHex)(d.slice(2,-2));return{signed:i,signature:(0,s.encodeSecp256k1Signature)(this.publicKey,h)}})}}e.MetaMaskWallet=r},1049:function(D,e,p){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__awaiter||function(s,r,n,o){return new(n||(n=Promise))(function(i,f){function d(b){try{_(o.next(b))}catch(I){f(I)}}function h(b){try{_(o.throw(b))}catch(I){f(I)}}function _(b){var I;b.done?i(b.value):(I=b.value,I instanceof n?I:new n(function(l){l(I)})).then(d,h)}_((o=o.apply(s,r||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=void 0;const a=p(3061),t=k(p(9656)),c=p(5360);class u extends c.AminoWallet{signDirect(r,n){return S(this,void 0,void 0,function*(){if(r!==this.address)throw new Error(`Address ${r} not found in wallet`);const o=(0,a.sha256)(yield function({account_number:f,auth_info_bytes:d,body_bytes:h,chain_id:_}){return S(this,void 0,void 0,function*(){const{SignDoc:b}=yield Promise.resolve().then(()=>k(p(6994)));return b.encode(b.fromPartial({account_number:f,auth_info_bytes:d,body_bytes:h,chain_id:_})).finish()})}(n)),i=yield t.sign(o,this.privateKey,{extraEntropy:!0,der:!1});return{signed:n,signature:(0,c.encodeSecp256k1Signature)(this.publicKey,i)}})}}e.Wallet=u},6647:(D,e,p)=>{var w=p(247);function O(s){return s.name||s.toString().match(/function (.*?)\s*\(/)[1]}function k(s){return w.Nil(s)?"":O(s.constructor)}function S(s,r){Error.captureStackTrace&&Error.captureStackTrace(s,r)}function a(s){return w.Function(s)?s.toJSON?s.toJSON():O(s):w.Array(s)?"Array":s&&w.Object(s)?"Object":s!==void 0?s:""}function t(s,r,n){var o=function(i){return w.Function(i)?"":w.String(i)?JSON.stringify(i):i&&w.Object(i)?"":i}(r);return"Expected "+a(s)+", got"+(n!==""?" "+n:"")+(o!==""?" "+o:"")}function c(s,r,n){n=n||k(r),this.message=t(s,r,n),S(this,c),this.__type=s,this.__value=r,this.__valueTypeName=n}function u(s,r,n,o,i){s?(i=i||k(o),this.message=function(f,d,h,_,b){var I='" of type ';return d==="key"&&(I='" with key type '),t('property "'+a(h)+I+a(f),_,b)}(s,n,r,o,i)):this.message='Unexpected property "'+r+'"',S(this,c),this.__label=n,this.__property=r,this.__type=s,this.__value=o,this.__valueTypeName=i}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,u.prototype=Object.create(Error.prototype),u.prototype.constructor=c,D.exports={TfTypeError:c,TfPropertyTypeError:u,tfCustomError:function(s,r){return new c(s,{},r)},tfSubError:function(s,r,n){return s instanceof u?(r=r+"."+s.__property,s=new u(s.__type,r,s.__label,s.__value,s.__valueTypeName)):s instanceof c&&(s=new u(s.__type,r,n,s.__value,s.__valueTypeName)),S(s),s},tfJSON:a,getValueTypeName:k}},4307:(D,e,p)=>{var w=p(8764).Buffer,O=p(247),k=p(6647);function S(f){return w.isBuffer(f)}function a(f){return typeof f=="string"&&/^([0-9a-f]{2})+$/i.test(f)}function t(f,d){var h=f.toJSON();function _(b){if(!f(b))return!1;if(b.length===d)return!0;throw k.tfCustomError(h+"(Length: "+d+")",h+"(Length: "+b.length+")")}return _.toJSON=function(){return h},_}var c=t.bind(null,O.Array),u=t.bind(null,S),s=t.bind(null,a),r=t.bind(null,O.String),n=Math.pow(2,53)-1,o={ArrayN:c,Buffer:S,BufferN:u,Finite:function(f){return typeof f=="number"&&isFinite(f)},Hex:a,HexN:s,Int8:function(f){return f<<24>>24===f},Int16:function(f){return f<<16>>16===f},Int32:function(f){return(0|f)===f},Int53:function(f){return typeof f=="number"&&f>=-n&&f<=n&&Math.floor(f)===f},Range:function(f,d,h){function _(b,I){return h(b,I)&&b>f&&b>>0===f},UInt53:function(f){return typeof f=="number"&&f>=0&&f<=n&&Math.floor(f)===f}};for(var i in o)o[i].toJSON=(function(f){return f}).bind(null,i);D.exports=o},2401:(D,e,p)=>{var w=p(6647),O=p(247),k=w.tfJSON,S=w.TfTypeError,a=w.TfPropertyTypeError,t=w.tfSubError,c=w.getValueTypeName,u={arrayOf:function(i,f){function d(h,_){return!!O.Array(h)&&!O.Nil(h)&&!(f.minLength!==void 0&&h.lengthf.maxLength)&&(f.length===void 0||h.length===f.length)&&h.every(function(b,I){try{return r(i,b,_)}catch(l){throw t(l,I)}})}return i=s(i),f=f||{},d.toJSON=function(){var h="["+k(i)+"]";return f.length!==void 0?h+="{"+f.length+"}":f.minLength===void 0&&f.maxLength===void 0||(h+="{"+(f.minLength===void 0?0:f.minLength)+","+(f.maxLength===void 0?1/0:f.maxLength)+"}"),h},d},maybe:function i(f){function d(h,_){return O.Nil(h)||f(h,_,i)}return f=s(f),d.toJSON=function(){return"?"+k(f)},d},map:function(i,f){function d(h,_){if(!O.Object(h)||O.Nil(h))return!1;for(var b in h){try{f&&r(f,b,_)}catch(l){throw t(l,b,"key")}try{var I=h[b];r(i,I,_)}catch(l){throw t(l,b)}}return!0}return i=s(i),f&&(f=s(f)),d.toJSON=f?function(){return"{"+k(f)+": "+k(i)+"}"}:function(){return"{"+k(i)+"}"},d},object:function(i){var f={};for(var d in i)f[d]=s(i[d]);function h(_,b){if(!O.Object(_)||O.Nil(_))return!1;var I;try{for(I in f)r(f[I],_[I],b)}catch(l){throw t(l,I)}if(b){for(I in _)if(!f[I])throw new a(void 0,I)}return!0}return h.toJSON=function(){return k(f)},h},anyOf:function(){var i=[].slice.call(arguments).map(s);function f(d,h){return i.some(function(_){try{return r(_,d,h)}catch{return!1}})}return f.toJSON=function(){return i.map(k).join("|")},f},allOf:function(){var i=[].slice.call(arguments).map(s);function f(d,h){return i.every(function(_){try{return r(_,d,h)}catch{return!1}})}return f.toJSON=function(){return i.map(k).join(" & ")},f},quacksLike:function(i){function f(d){return i===c(d)}return f.toJSON=function(){return i},f},tuple:function(){var i=[].slice.call(arguments).map(s);function f(d,h){return!O.Nil(d)&&!O.Nil(d.length)&&(!h||d.length===i.length)&&i.every(function(_,b){try{return r(_,d[b],h)}catch(I){throw t(I,b)}})}return f.toJSON=function(){return"("+i.map(k).join(", ")+")"},f},value:function(i){function f(d){return d===i}return f.toJSON=function(){return i},f}};function s(i){if(O.String(i))return i[0]==="?"?u.maybe(i.slice(1)):O[i]||u.quacksLike(i);if(i&&O.Object(i)){if(O.Array(i)){if(i.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return u.arrayOf(i[0])}return u.object(i)}return O.Function(i)?i:u.value(i)}function r(i,f,d,h){if(O.Function(i)){if(i(f,d))return!0;throw new S(h||i,f)}return r(s(i),f,d)}for(var n in u.oneOf=u.anyOf,O)r[n]=O[n];for(n in u)r[n]=u[n];var o=p(4307);for(n in o)r[n]=o[n];r.compile=s,r.TfTypeError=S,r.TfPropertyTypeError=a,D.exports=r},247:D=>{var e={Array:function(w){return w!=null&&w.constructor===Array},Boolean:function(w){return typeof w=="boolean"},Function:function(w){return typeof w=="function"},Nil:function(w){return w==null},Number:function(w){return typeof w=="number"},Object:function(w){return typeof w=="object"},String:function(w){return typeof w=="string"},"":function(){return!0}};for(var p in e.Null=e.Nil,e)e[p].toJSON=(function(w){return w}).bind(null,p);D.exports=e},4927:(D,e,p)=>{var w=p(5108);function O(k){try{if(!p.g.localStorage)return!1}catch{return!1}var S=p.g.localStorage[k];return S!=null&&String(S).toLowerCase()==="true"}D.exports=function(k,S){if(O("noDeprecation"))return k;var a=!1;return function(){if(!a){if(O("throwDeprecation"))throw new Error(S);O("traceDeprecation")?w.trace(S):w.warn(S),a=!0}return k.apply(this,arguments)}}},384:D=>{D.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},5955:(D,e,p)=>{var w=p(2584),O=p(8662),k=p(6430),S=p(5692);function a(T){return T.call.bind(T)}var t=typeof BigInt<"u",c=typeof Symbol<"u",u=a(Object.prototype.toString),s=a(Number.prototype.valueOf),r=a(String.prototype.valueOf),n=a(Boolean.prototype.valueOf);if(t)var o=a(BigInt.prototype.valueOf);if(c)var i=a(Symbol.prototype.valueOf);function f(T,q){if(typeof T!="object")return!1;try{return q(T),!0}catch{return!1}}function d(T){return u(T)==="[object Map]"}function h(T){return u(T)==="[object Set]"}function _(T){return u(T)==="[object WeakMap]"}function b(T){return u(T)==="[object WeakSet]"}function I(T){return u(T)==="[object ArrayBuffer]"}function l(T){return typeof ArrayBuffer<"u"&&(I.working?I(T):T instanceof ArrayBuffer)}function j(T){return u(T)==="[object DataView]"}function M(T){return typeof DataView<"u"&&(j.working?j(T):T instanceof DataView)}e.isArgumentsObject=w,e.isGeneratorFunction=O,e.isTypedArray=S,e.isPromise=function(T){return typeof Promise<"u"&&T instanceof Promise||T!==null&&typeof T=="object"&&typeof T.then=="function"&&typeof T.catch=="function"},e.isArrayBufferView=function(T){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(T):S(T)||M(T)},e.isUint8Array=function(T){return k(T)==="Uint8Array"},e.isUint8ClampedArray=function(T){return k(T)==="Uint8ClampedArray"},e.isUint16Array=function(T){return k(T)==="Uint16Array"},e.isUint32Array=function(T){return k(T)==="Uint32Array"},e.isInt8Array=function(T){return k(T)==="Int8Array"},e.isInt16Array=function(T){return k(T)==="Int16Array"},e.isInt32Array=function(T){return k(T)==="Int32Array"},e.isFloat32Array=function(T){return k(T)==="Float32Array"},e.isFloat64Array=function(T){return k(T)==="Float64Array"},e.isBigInt64Array=function(T){return k(T)==="BigInt64Array"},e.isBigUint64Array=function(T){return k(T)==="BigUint64Array"},d.working=typeof Map<"u"&&d(new Map),e.isMap=function(T){return typeof Map<"u"&&(d.working?d(T):T instanceof Map)},h.working=typeof Set<"u"&&h(new Set),e.isSet=function(T){return typeof Set<"u"&&(h.working?h(T):T instanceof Set)},_.working=typeof WeakMap<"u"&&_(new WeakMap),e.isWeakMap=function(T){return typeof WeakMap<"u"&&(_.working?_(T):T instanceof WeakMap)},b.working=typeof WeakSet<"u"&&b(new WeakSet),e.isWeakSet=function(T){return b(T)},I.working=typeof ArrayBuffer<"u"&&I(new ArrayBuffer),e.isArrayBuffer=l,j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=M;var N=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function C(T){return u(T)==="[object SharedArrayBuffer]"}function x(T){return N!==void 0&&(C.working===void 0&&(C.working=C(new N)),C.working?C(T):T instanceof N)}function P(T){return f(T,s)}function v(T){return f(T,r)}function m(T){return f(T,n)}function E(T){return t&&f(T,o)}function B(T){return c&&f(T,i)}e.isSharedArrayBuffer=x,e.isAsyncFunction=function(T){return u(T)==="[object AsyncFunction]"},e.isMapIterator=function(T){return u(T)==="[object Map Iterator]"},e.isSetIterator=function(T){return u(T)==="[object Set Iterator]"},e.isGeneratorObject=function(T){return u(T)==="[object Generator]"},e.isWebAssemblyCompiledModule=function(T){return u(T)==="[object WebAssembly.Module]"},e.isNumberObject=P,e.isStringObject=v,e.isBooleanObject=m,e.isBigIntObject=E,e.isSymbolObject=B,e.isBoxedPrimitive=function(T){return P(T)||v(T)||m(T)||E(T)||B(T)},e.isAnyArrayBuffer=function(T){return typeof Uint8Array<"u"&&(l(T)||x(T))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(T){Object.defineProperty(e,T,{enumerable:!1,value:function(){throw new Error(T+" is not supported in userland")}})})},9539:(D,e,p)=>{var w=p(4155),O=p(5108),k=Object.getOwnPropertyDescriptors||function(T){for(var q=Object.keys(T),te={},re=0;re=ie)return G;switch(G){case"%s":return String(re[te++]);case"%d":return Number(re[te++]);case"%j":try{return JSON.stringify(re[te++])}catch{return"[Circular]"}default:return G}}),ee=re[te];te=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),d(q)?te.showHidden=q:q&&e._extend(te,q),I(te.showHidden)&&(te.showHidden=!1),I(te.depth)&&(te.depth=2),I(te.colors)&&(te.colors=!1),I(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=s),n(te,T,te.depth)}function s(T,q){var te=u.styles[q];return te?"\x1B["+u.colors[te][0]+"m"+T+"\x1B["+u.colors[te][1]+"m":T}function r(T,q){return T}function n(T,q,te){if(T.customInspect&&q&&C(q.inspect)&&q.inspect!==e.inspect&&(!q.constructor||q.constructor.prototype!==q)){var re=q.inspect(te,T);return b(re)||(re=n(T,re,te)),re}var ie=function(ae,he){if(I(he))return ae.stylize("undefined","undefined");if(b(he)){var le="'"+JSON.stringify(he).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ae.stylize(le,"string")}return _(he)?ae.stylize(""+he,"number"):d(he)?ae.stylize(""+he,"boolean"):h(he)?ae.stylize("null","null"):void 0}(T,q);if(ie)return ie;var J=Object.keys(q),ee=function(ae){var he={};return ae.forEach(function(le,ce){he[le]=!0}),he}(J);if(T.showHidden&&(J=Object.getOwnPropertyNames(q)),N(q)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return o(q);if(J.length===0){if(C(q)){var G=q.name?": "+q.name:"";return T.stylize("[Function"+G+"]","special")}if(l(q))return T.stylize(RegExp.prototype.toString.call(q),"regexp");if(M(q))return T.stylize(Date.prototype.toString.call(q),"date");if(N(q))return o(q)}var $,W="",Y=!1,F=["{","}"];return f(q)&&(Y=!0,F=["[","]"]),C(q)&&(W=" [Function"+(q.name?": "+q.name:"")+"]"),l(q)&&(W=" "+RegExp.prototype.toString.call(q)),M(q)&&(W=" "+Date.prototype.toUTCString.call(q)),N(q)&&(W=" "+o(q)),J.length!==0||Y&&q.length!=0?te<0?l(q)?T.stylize(RegExp.prototype.toString.call(q),"regexp"):T.stylize("[Object]","special"):(T.seen.push(q),$=Y?function(ae,he,le,ce,ve){for(var de=[],pe=0,ye=he.length;pe{function w(s){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},w(s)}function O(s,r){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},O(s,r)}function k(s){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k(s)}var S,a,t={};function c(s,r,n){n||(n=Error);var o=function(i){(function(I,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(l&&l.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),l&&O(I,l)})(b,i);var f,d,p,_=(d=b,p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var I,l=k(d);if(p){var j=k(this).constructor;I=Reflect.construct(l,arguments,j)}else I=l.apply(this,arguments);return function(M,N){if(N&&(w(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C}(M)}(this,I)});function b(I,l,j){var M;return function(N,C){if(!(N instanceof C))throw new TypeError("Cannot call a class as a function")}(this,b),M=_.call(this,function(N,C,x){return typeof r=="string"?r:r(N,C,x)}(I,l,j)),M.code=s,M}return f=b,Object.defineProperty(f,"prototype",{writable:!1}),f}(n);t[s]=o}function u(s,r){if(Array.isArray(s)){var n=s.length;return s=s.map(function(o){return String(o)}),n>2?"one of ".concat(r," ").concat(s.slice(0,n-1).join(", "),", or ")+s[n-1]:n===2?"one of ".concat(r," ").concat(s[0]," or ").concat(s[1]):"of ".concat(r," ").concat(s[0])}return"of ".concat(r," ").concat(String(s))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(s,r,n){var o,i,f,d,p;if(S===void 0&&(S=h(9282)),S(typeof s=="string","'name' must be a string"),typeof r=="string"&&(i="not ",r.substr(0,4)===i)?(o="must not be",r=r.replace(/^not /,"")):o="must be",function(b,I,l){return(l===void 0||l>b.length)&&(l=b.length),b.substring(l-9,l)===I}(s," argument"))f="The ".concat(s," ").concat(o," ").concat(u(r,"type"));else{var _=(typeof p!="number"&&(p=0),p+1>(d=s).length||d.indexOf(".",p)===-1?"argument":"property");f='The "'.concat(s,'" ').concat(_," ").concat(o," ").concat(u(r,"type"))}return f+". Received type ".concat(w(n))},TypeError),c("ERR_INVALID_ARG_VALUE",function(s,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=h(9539));var o=a.inspect(r);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(s,"' ").concat(n,". Received ").concat(o)},TypeError),c("ERR_INVALID_RETURN_VALUE",function(s,r,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(w(n)),"Expected ".concat(s,' to be returned from the "').concat(r,'"')+" function but got ".concat(o,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var s=arguments.length,r=new Array(s),n=0;n0,"At least one arg needs to be specified");var o="The ",i=r.length;switch(r=r.map(function(f){return'"'.concat(f,'"')}),i){case 1:o+="".concat(r[0]," argument");break;case 2:o+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:o+=r.slice(0,i-1).join(", "),o+=", and ".concat(r[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),D.exports.codes=t},9158:(D,e,h)=>{function w(le,ce){return function(ve){if(Array.isArray(ve))return ve}(le)||function(ve,de){var pe=ve==null?null:typeof Symbol<"u"&&ve[Symbol.iterator]||ve["@@iterator"];if(pe!=null){var ye,V,y,A,R=[],U=!0,z=!1;try{if(y=(pe=pe.call(ve)).next,de===0){if(Object(pe)!==pe)return;U=!1}else for(;!(U=(ye=y.call(pe)).done)&&(R.push(ye.value),R.length!==de);U=!0);}catch(L){z=!0,V=L}finally{try{if(!U&&pe.return!=null&&(A=pe.return(),Object(A)!==A))return}finally{if(z)throw V}}return R}}(le,ce)||function(ve,de){if(ve){if(typeof ve=="string")return O(ve,de);var pe=Object.prototype.toString.call(ve).slice(8,-1);return pe==="Object"&&ve.constructor&&(pe=ve.constructor.name),pe==="Map"||pe==="Set"?Array.from(ve):pe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(pe)?O(ve,de):void 0}}(le,ce)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function O(le,ce){(ce==null||ce>le.length)&&(ce=le.length);for(var ve=0,de=new Array(ce);ve10)return!0;for(var ce=0;ce57)return!0}return le.length===10&&le>=Math.pow(2,32)}function T(le){return Object.keys(le).filter(B).concat(u(le).filter(Object.prototype.propertyIsEnumerable.bind(le)))}function q(le,ce){if(le===ce)return 0;for(var ve=le.length,de=ce.length,pe=0,ye=Math.min(ve,de);pe{var w=h(9509).Buffer;D.exports=function(O){if(O.length>=255)throw new TypeError("Alphabet too long");for(var k=new Uint8Array(256),S=0;S>>0,b=new Uint8Array(_);i[f];){var I=k[i.charCodeAt(f)];if(I===255)return;for(var l=0,j=_-1;(I!==0||l>>0,b[j]=I%256>>>0,I=I/256>>>0;if(I!==0)throw new Error("Non-zero carry");p=l,f++}for(var M=_-p;M!==_&&b[M]===0;)M++;var N=w.allocUnsafe(d+(_-M));N.fill(0,0,d);for(var C=d;M!==_;)N[C++]=b[M++];return N}return{encode:function(i){if((Array.isArray(i)||i instanceof Uint8Array)&&(i=w.from(i)),!w.isBuffer(i))throw new TypeError("Expected Buffer");if(i.length===0)return"";for(var f=0,d=0,p=0,_=i.length;p!==_&&i[p]===0;)p++,f++;for(var b=(_-p)*n+1>>>0,I=new Uint8Array(b);p!==_;){for(var l=i[p],j=0,M=b-1;(l!==0||j>>0,I[M]=l%u>>>0,l=l/u>>>0;if(l!==0)throw new Error("Non-zero carry");d=j,p++}for(var N=b-d;N!==b&&I[N]===0;)N++;for(var C=s.repeat(f);N{e.byteLength=function(c){var u=a(c),s=u[0],r=u[1];return 3*(s+r)/4-r},e.toByteArray=function(c){var u,s,r=a(c),n=r[0],o=r[1],i=new O(function(p,_,b){return 3*(_+b)/4-b}(0,n,o)),f=0,d=o>0?n-4:n;for(s=0;s>16&255,i[f++]=u>>8&255,i[f++]=255&u;return o===2&&(u=w[c.charCodeAt(s)]<<2|w[c.charCodeAt(s+1)]>>4,i[f++]=255&u),o===1&&(u=w[c.charCodeAt(s)]<<10|w[c.charCodeAt(s+1)]<<4|w[c.charCodeAt(s+2)]>>2,i[f++]=u>>8&255,i[f++]=255&u),i},e.fromByteArray=function(c){for(var u,s=c.length,r=s%3,n=[],o=16383,i=0,f=s-r;if?f:i+o));return r===1?(u=c[s-1],n.push(h[u>>2]+h[u<<4&63]+"==")):r===2&&(u=(c[s-2]<<8)+c[s-1],n.push(h[u>>10]+h[u>>4&63]+h[u<<2&63]+"=")),n.join("")};for(var h=[],w=[],O=typeof Uint8Array<"u"?Uint8Array:Array,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0;S<64;++S)h[S]=k[S],w[k.charCodeAt(S)]=S;function a(c){var u=c.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=c.indexOf("=");return s===-1&&(s=u),[s,s===u?0:4-s%4]}function t(c,u,s){for(var r,n,o=[],i=u;i>18&63]+h[n>>12&63]+h[n>>6&63]+h[63&n]);return o.join("")}w["-".charCodeAt(0)]=62,w["_".charCodeAt(0)]=63},7715:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bech32m=e.bech32=void 0;const h="qpzry9x8gf2tvdw0s3jn54khce6mua7l",w={};for(let s=0;s<32;s++){const r=h.charAt(s);w[r]=s}function O(s){const r=s>>25;return(33554431&s)<<5^996825010&-(r>>0&1)^642813549&-(r>>1&1)^513874426&-(r>>2&1)^1027748829&-(r>>3&1)^705979059&-(r>>4&1)}function k(s){let r=1;for(let n=0;n126)return"Invalid prefix ("+s+")";r=O(r)^o>>5}r=O(r);for(let n=0;n=n;)f-=n,p.push(i>>f&d);if(o)f>0&&p.push(i<=r)return"Excess padding";if(i<i)return"Exceeds length limit";const f=o.toLowerCase(),d=o.toUpperCase();if(o!==f&&o!==d)return"Mixed-case string "+o;const p=(o=f).lastIndexOf("1");if(p===-1)return"No separator character for "+o;if(p===0)return"Missing prefix for "+o;const _=o.slice(0,p),b=o.slice(p+1);if(b.length<6)return"Data too short";let I=k(_);if(typeof I=="string")return I;const l=[];for(let j=0;j=b.length||l.push(N)}return I!==r?"Invalid checksum for "+o:{prefix:_,words:l}}return r=s==="bech32"?1:734539939,{decodeUnsafe:function(o,i){const f=n(o,i);if(typeof f=="object")return f},decode:function(o,i){const f=n(o,i);if(typeof f=="object")return f;throw new Error(f)},encode:function(o,i,f){if(f=f||90,o.length+7+i.length>f)throw new TypeError("Exceeds length limit");let d=k(o=o.toLowerCase());if(typeof d=="string")throw new Error(d);let p=o+"1";for(let _=0;_>5)throw new Error("Non 5-bit word");d=O(d)^b,p+=h.charAt(b)}for(let _=0;_<6;++_)d=O(d);d^=r;for(let _=0;_<6;++_)p+=h.charAt(d>>5*(5-_)&31);return p},toWords:a,fromWordsUnsafe:t,fromWords:c}}e.bech32=u("bech32"),e.bech32m=u("bech32m")},4736:(D,e,h)=>{var w;D=h.nmd(D);var O=function(k){var S=1e7,a=7,t=9007199254740992,c=d(t),u="0123456789abcdefghijklmnopqrstuvwxyz",s=typeof BigInt=="function";function r(U,z,L,H){return U===void 0?r[0]:z===void 0||+z==10&&!L?A(U):de(U,z,L,H)}function n(U,z){this.value=U,this.sign=z,this.isSmall=!1}function o(U){this.value=U,this.sign=U<0,this.isSmall=!0}function i(U){this.value=U}function f(U){return-t0?Math.floor(U):Math.ceil(U)}function l(U,z){var L,H,ne=U.length,oe=z.length,K=new Array(ne),X=0,Q=S;for(H=0;H=Q?1:0,K[H]=L-X*Q;for(;H0&&K.push(X),K}function j(U,z){return U.length>=z.length?l(U,z):l(z,U)}function M(U,z){var L,H,ne=U.length,oe=new Array(ne),K=S;for(H=0;H0;)oe[H++]=z%K,z=Math.floor(z/K);return oe}function N(U,z){var L,H,ne=U.length,oe=z.length,K=new Array(ne),X=0,Q=S;for(L=0;L0;)oe[H++]=X%K,X=Math.floor(X/K);return oe}function v(U,z){for(var L=[];z-- >0;)L.push(0);return L.concat(U)}function m(U,z){var L=Math.max(U.length,z.length);if(L<=30)return x(U,z);L=Math.ceil(L/2);var H=U.slice(L),ne=U.slice(0,L),oe=z.slice(L),K=z.slice(0,L),X=m(ne,K),Q=m(H,oe),Z=m(j(ne,H),j(K,oe)),se=j(j(X,v(N(N(Z,X),Q),L)),v(Q,2*L));return _(se),se}function E(U,z,L){return new n(U=0;--L)ne=(oe=ne*Q+U[L])-(H=I(oe/z))*z,X[L]=0|H;return[X,0|ne]}function q(U,z){var L,H=A(z);if(s)return[new i(U.value/H.value),new i(U.value%H.value)];var ne,oe=U.value,K=H.value;if(K===0)throw new Error("Cannot divide by zero");if(U.isSmall)return H.isSmall?[new o(I(oe/K)),new o(oe%K)]:[r[0],U];if(H.isSmall){if(K===1)return[U,r[0]];if(K==-1)return[U.negate(),r[0]];var X=Math.abs(K);if(X=0;_e--){for(be=Pe-1,Te[_e+Oe]!==Ae&&(be=Math.floor((Te[_e+Oe]*Pe+Te[_e+Oe-1])/Ae)),we=0,Ee=0,Se=Ce.length,xe=0;xeke&&(we=(we+1)*Pe),be=Math.ceil(we/Ee);do{if(te(xe=P(ge,be),Oe)<=0)break;be--}while(be);Re.push(be),Oe=N(Oe,xe)}return Re.reverse(),[p(Re),p(Oe)]}(oe,K),ne=L[0];var se=U.sign!==H.sign,ue=L[1],fe=U.sign;return typeof ne=="number"?(se&&(ne=-ne),ne=new o(ne)):ne=new n(ne,se),typeof ue=="number"?(fe&&(ue=-ue),ue=new o(ue)):ue=new n(ue,fe),[ne,ue]}function te(U,z){if(U.length!==z.length)return U.length>z.length?1:-1;for(var L=U.length-1;L>=0;L--)if(U[L]!==z[L])return U[L]>z[L]?1:-1;return 0}function re(U){var z=U.abs();return!z.isUnit()&&(!!(z.equals(2)||z.equals(3)||z.equals(5))||!(z.isEven()||z.isDivisibleBy(3)||z.isDivisibleBy(5))&&(!!z.lesser(49)||void 0))}function ie(U,z){for(var L,H,ne,oe=U.prev(),K=oe,X=0;K.isEven();)K=K.divide(2),X++;e:for(H=0;H=0?X=N(ne,oe):(X=N(oe,ne),K=!K),typeof(X=p(X))=="number"?(K&&(X=-X),new o(X)):new n(X,K)}(L,H,this.sign)},n.prototype.minus=n.prototype.subtract,o.prototype.subtract=function(U){var z=A(U),L=this.value;if(L<0!==z.sign)return this.add(z.negate());var H=z.value;return z.isSmall?new o(L-H):C(H,Math.abs(L),L>=0)},o.prototype.minus=o.prototype.subtract,i.prototype.subtract=function(U){return new i(this.value-A(U).value)},i.prototype.minus=i.prototype.subtract,n.prototype.negate=function(){return new n(this.value,!this.sign)},o.prototype.negate=function(){var U=this.sign,z=new o(-this.value);return z.sign=!U,z},i.prototype.negate=function(){return new i(-this.value)},n.prototype.abs=function(){return new n(this.value,!1)},o.prototype.abs=function(){return new o(Math.abs(this.value))},i.prototype.abs=function(){return new i(this.value>=0?this.value:-this.value)},n.prototype.multiply=function(U){var z,L,H,ne=A(U),oe=this.value,K=ne.value,X=this.sign!==ne.sign;if(ne.isSmall){if(K===0)return r[0];if(K===1)return this;if(K===-1)return this.negate();if((z=Math.abs(K))0?m(oe,K):x(oe,K),X)},n.prototype.times=n.prototype.multiply,o.prototype._multiplyBySmall=function(U){return f(U.value*this.value)?new o(U.value*this.value):E(Math.abs(U.value),d(Math.abs(this.value)),this.sign!==U.sign)},n.prototype._multiplyBySmall=function(U){return U.value===0?r[0]:U.value===1?this:U.value===-1?this.negate():E(Math.abs(U.value),this.value,this.sign!==U.sign)},o.prototype.multiply=function(U){return A(U)._multiplyBySmall(this)},o.prototype.times=o.prototype.multiply,i.prototype.multiply=function(U){return new i(this.value*A(U).value)},i.prototype.times=i.prototype.multiply,n.prototype.square=function(){return new n(B(this.value),!1)},o.prototype.square=function(){var U=this.value*this.value;return f(U)?new o(U):new n(B(d(Math.abs(this.value))),!1)},i.prototype.square=function(U){return new i(this.value*this.value)},n.prototype.divmod=function(U){var z=q(this,U);return{quotient:z[0],remainder:z[1]}},i.prototype.divmod=o.prototype.divmod=n.prototype.divmod,n.prototype.divide=function(U){return q(this,U)[0]},i.prototype.over=i.prototype.divide=function(U){return new i(this.value/A(U).value)},o.prototype.over=o.prototype.divide=n.prototype.over=n.prototype.divide,n.prototype.mod=function(U){return q(this,U)[1]},i.prototype.mod=i.prototype.remainder=function(U){return new i(this.value%A(U).value)},o.prototype.remainder=o.prototype.mod=n.prototype.remainder=n.prototype.mod,n.prototype.pow=function(U){var z,L,H,ne=A(U),oe=this.value,K=ne.value;if(K===0)return r[1];if(oe===0)return r[0];if(oe===1)return r[1];if(oe===-1)return ne.isEven()?r[1]:r[-1];if(ne.sign)return r[0];if(!ne.isSmall)throw new Error("The exponent "+ne.toString()+" is too large.");if(this.isSmall&&f(z=Math.pow(oe,K)))return new o(I(z));for(L=this,H=r[1];!0&K&&(H=H.times(L),--K),K!==0;)K/=2,L=L.square();return H},o.prototype.pow=n.prototype.pow,i.prototype.pow=function(U){var z=A(U),L=this.value,H=z.value,ne=BigInt(0),oe=BigInt(1),K=BigInt(2);if(H===ne)return r[1];if(L===ne)return r[0];if(L===oe)return r[1];if(L===BigInt(-1))return z.isEven()?r[1]:r[-1];if(z.isNegative())return new i(ne);for(var X=this,Q=r[1];(H&oe)===oe&&(Q=Q.times(X),--H),H!==ne;)H/=K,X=X.square();return Q},n.prototype.modPow=function(U,z){if(U=A(U),(z=A(z)).isZero())throw new Error("Cannot take modPow with modulus 0");var L=r[1],H=this.mod(z);for(U.isNegative()&&(U=U.multiply(r[-1]),H=H.modInv(z));U.isPositive();){if(H.isZero())return r[0];U.isOdd()&&(L=L.multiply(H).mod(z)),U=U.divide(2),H=H.square().mod(z)}return L},i.prototype.modPow=o.prototype.modPow=n.prototype.modPow,n.prototype.compareAbs=function(U){var z=A(U),L=this.value,H=z.value;return z.isSmall?1:te(L,H)},o.prototype.compareAbs=function(U){var z=A(U),L=Math.abs(this.value),H=z.value;return z.isSmall?L===(H=Math.abs(H))?0:L>H?1:-1:-1},i.prototype.compareAbs=function(U){var z=this.value,L=A(U).value;return(z=z>=0?z:-z)===(L=L>=0?L:-L)?0:z>L?1:-1},n.prototype.compare=function(U){if(U===1/0)return-1;if(U===-1/0)return 1;var z=A(U),L=this.value,H=z.value;return this.sign!==z.sign?z.sign?1:-1:z.isSmall?this.sign?-1:1:te(L,H)*(this.sign?-1:1)},n.prototype.compareTo=n.prototype.compare,o.prototype.compare=function(U){if(U===1/0)return-1;if(U===-1/0)return 1;var z=A(U),L=this.value,H=z.value;return z.isSmall?L==H?0:L>H?1:-1:L<0!==z.sign?L<0?-1:1:L<0?1:-1},o.prototype.compareTo=o.prototype.compare,i.prototype.compare=function(U){if(U===1/0)return-1;if(U===-1/0)return 1;var z=this.value,L=A(U).value;return z===L?0:z>L?1:-1},i.prototype.compareTo=i.prototype.compare,n.prototype.equals=function(U){return this.compare(U)===0},i.prototype.eq=i.prototype.equals=o.prototype.eq=o.prototype.equals=n.prototype.eq=n.prototype.equals,n.prototype.notEquals=function(U){return this.compare(U)!==0},i.prototype.neq=i.prototype.notEquals=o.prototype.neq=o.prototype.notEquals=n.prototype.neq=n.prototype.notEquals,n.prototype.greater=function(U){return this.compare(U)>0},i.prototype.gt=i.prototype.greater=o.prototype.gt=o.prototype.greater=n.prototype.gt=n.prototype.greater,n.prototype.lesser=function(U){return this.compare(U)<0},i.prototype.lt=i.prototype.lesser=o.prototype.lt=o.prototype.lesser=n.prototype.lt=n.prototype.lesser,n.prototype.greaterOrEquals=function(U){return this.compare(U)>=0},i.prototype.geq=i.prototype.greaterOrEquals=o.prototype.geq=o.prototype.greaterOrEquals=n.prototype.geq=n.prototype.greaterOrEquals,n.prototype.lesserOrEquals=function(U){return this.compare(U)<=0},i.prototype.leq=i.prototype.lesserOrEquals=o.prototype.leq=o.prototype.lesserOrEquals=n.prototype.leq=n.prototype.lesserOrEquals,n.prototype.isEven=function(){return(1&this.value[0])==0},o.prototype.isEven=function(){return(1&this.value)==0},i.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},n.prototype.isOdd=function(){return(1&this.value[0])==1},o.prototype.isOdd=function(){return(1&this.value)==1},i.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},n.prototype.isPositive=function(){return!this.sign},o.prototype.isPositive=function(){return this.value>0},i.prototype.isPositive=o.prototype.isPositive,n.prototype.isNegative=function(){return this.sign},o.prototype.isNegative=function(){return this.value<0},i.prototype.isNegative=o.prototype.isNegative,n.prototype.isUnit=function(){return!1},o.prototype.isUnit=function(){return Math.abs(this.value)===1},i.prototype.isUnit=function(){return this.abs().value===BigInt(1)},n.prototype.isZero=function(){return!1},o.prototype.isZero=function(){return this.value===0},i.prototype.isZero=function(){return this.value===BigInt(0)},n.prototype.isDivisibleBy=function(U){var z=A(U);return!z.isZero()&&(!!z.isUnit()||(z.compareAbs(2)===0?this.isEven():this.mod(z).isZero()))},i.prototype.isDivisibleBy=o.prototype.isDivisibleBy=n.prototype.isDivisibleBy,n.prototype.isPrime=function(U){var z=re(this);if(z!==k)return z;var L=this.abs(),H=L.bitLength();if(H<=64)return ie(L,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var ne=Math.log(2)*H.toJSNumber(),oe=Math.ceil(U===!0?2*Math.pow(ne,2):ne),K=[],X=0;X-t?new o(U-1):new n(c,!0)},i.prototype.prev=function(){return new i(this.value-BigInt(1))};for(var J=[1];2*J[J.length-1]<=S;)J.push(2*J[J.length-1]);var ee=J.length,G=J[ee-1];function $(U){return Math.abs(U)<=S}function W(U,z,L){z=A(z);for(var H=U.isNegative(),ne=z.isNegative(),oe=H?U.not():U,K=ne?z.not():z,X=0,Q=0,Z=null,se=null,ue=[];!oe.isZero()||!K.isZero();)X=(Z=q(oe,G))[1].toJSNumber(),H&&(X=G-1-X),Q=(se=q(K,G))[1].toJSNumber(),ne&&(Q=G-1-Q),oe=Z[0],K=se[0],ue.push(L(X,Q));for(var fe=L(H?1:0,ne?1:0)!==0?O(-1):O(0),me=ue.length-1;me>=0;me-=1)fe=fe.multiply(G).add(O(ue[me]));return fe}n.prototype.shiftLeft=function(U){var z=A(U).toJSNumber();if(!$(z))throw new Error(String(z)+" is too large for shifting.");if(z<0)return this.shiftRight(-z);var L=this;if(L.isZero())return L;for(;z>=ee;)L=L.multiply(G),z-=ee-1;return L.multiply(J[z])},i.prototype.shiftLeft=o.prototype.shiftLeft=n.prototype.shiftLeft,n.prototype.shiftRight=function(U){var z,L=A(U).toJSNumber();if(!$(L))throw new Error(String(L)+" is too large for shifting.");if(L<0)return this.shiftLeft(-L);for(var H=this;L>=ee;){if(H.isZero()||H.isNegative()&&H.isUnit())return H;H=(z=q(H,G))[1].isNegative()?z[0].prev():z[0],L-=ee-1}return(z=q(H,J[L]))[1].isNegative()?z[0].prev():z[0]},i.prototype.shiftRight=o.prototype.shiftRight=n.prototype.shiftRight,n.prototype.not=function(){return this.negate().prev()},i.prototype.not=o.prototype.not=n.prototype.not,n.prototype.and=function(U){return W(this,U,function(z,L){return z&L})},i.prototype.and=o.prototype.and=n.prototype.and,n.prototype.or=function(U){return W(this,U,function(z,L){return z|L})},i.prototype.or=o.prototype.or=n.prototype.or,n.prototype.xor=function(U){return W(this,U,function(z,L){return z^L})},i.prototype.xor=o.prototype.xor=n.prototype.xor;var Y=1<<30,F=(S&-S)*(S&-S)|Y;function ae(U){var z=U.value,L=typeof z=="number"?z|Y:typeof z=="bigint"?z|BigInt(Y):z[0]+z[1]*S|F;return L&-L}function he(U,z){if(z.compareTo(U)<=0){var L=he(U,z.square(z)),H=L.p,ne=L.e,oe=H.multiply(z);return oe.compareTo(U)<=0?{p:oe,e:2*ne+1}:{p:H,e:2*ne}}return{p:O(1),e:0}}function le(U,z){return U=A(U),z=A(z),U.greater(z)?U:z}function ce(U,z){return U=A(U),z=A(z),U.lesser(z)?U:z}function ve(U,z){if(U=A(U).abs(),z=A(z).abs(),U.equals(z))return U;if(U.isZero())return z;if(z.isZero())return U;for(var L,H,ne=r[1];U.isEven()&&z.isEven();)L=ce(ae(U),ae(z)),U=U.divide(L),z=z.divide(L),ne=ne.multiply(L);for(;U.isEven();)U=U.divide(ae(U));do{for(;z.isEven();)z=z.divide(ae(z));U.greater(z)&&(H=z,z=U,U=H),z=z.subtract(U)}while(!z.isZero());return ne.isUnit()?U:U.multiply(ne)}n.prototype.bitLength=function(){var U=this;return U.compareTo(O(0))<0&&(U=U.negate().subtract(O(1))),U.compareTo(O(0))===0?O(0):O(he(U,O(2)).e).add(O(1))},i.prototype.bitLength=o.prototype.bitLength=n.prototype.bitLength;var de=function(U,z,L,H){L=L||u,U=String(U),H||(U=U.toLowerCase(),L=L.toLowerCase());var ne,oe=U.length,K=Math.abs(z),X={};for(ne=0;ne=K){if(se==="1"&&K===1)continue;throw new Error(se+" is not a valid digit in base "+z+".")}z=A(z);var Q=[],Z=U[0]==="-";for(ne=Z?1:0;ne"&&ne=0;H--)ne=ne.add(U[H].times(oe)),oe=oe.times(z);return L?ne.negate():ne}function ye(U,z){if((z=O(z)).isZero()){if(U.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(z.equals(-1)){if(U.isZero())return{value:[0],isNegative:!1};if(U.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-U.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var L=Array.apply(null,Array(U.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return L.unshift([1]),{value:[].concat.apply([],L),isNegative:!1}}var H=!1;if(U.isNegative()&&z.isPositive()&&(H=!0,U=U.abs()),z.isUnit())return U.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(U.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:H};for(var ne,oe=[],K=U;K.isNegative()||K.compareAbs(z)>=0;){ne=K.divmod(z),K=ne.quotient;var X=ne.remainder;X.isNegative()&&(X=z.minus(X).abs(),K=K.next()),oe.push(X.toJSNumber())}return oe.push(K.toJSNumber()),{value:oe.reverse(),isNegative:H}}function V(U,z,L){var H=ye(U,z);return(H.isNegative?"-":"")+H.value.map(function(ne){return function(oe,K){return oe<(K=K||u).length?K[oe]:"<"+oe+">"}(ne,L)}).join("")}function y(U){if(f(+U)){var z=+U;if(z===I(z))return s?new i(BigInt(z)):new o(z);throw new Error("Invalid integer: "+U)}var L=U[0]==="-";L&&(U=U.slice(1));var H=U.split(/e/i);if(H.length>2)throw new Error("Invalid integer: "+H.join("e"));if(H.length===2){var ne=H[1];if(ne[0]==="+"&&(ne=ne.slice(1)),(ne=+ne)!==I(ne)||!f(ne))throw new Error("Invalid integer: "+ne+" is not a valid exponent.");var oe=H[0],K=oe.indexOf(".");if(K>=0&&(ne-=oe.length-K-1,oe=oe.slice(0,K)+oe.slice(K+1)),ne<0)throw new Error("Cannot include negative exponent part for integers");U=oe+=new Array(ne+1).join("0")}if(!/^([0-9][0-9]*)$/.test(U))throw new Error("Invalid integer: "+U);if(s)return new i(BigInt(L?"-"+U:U));for(var X=[],Q=U.length,Z=a,se=Q-Z;Q>0;)X.push(+U.slice(se,Q)),(se-=Z)<0&&(se=0),Q-=Z;return _(X),new n(X,L)}function A(U){return typeof U=="number"?function(z){if(s)return new i(BigInt(z));if(f(z)){if(z!==I(z))throw new Error(z+" is not an integer.");return new o(z)}return y(z.toString())}(U):typeof U=="string"?y(U):typeof U=="bigint"?new i(U):U}n.prototype.toArray=function(U){return ye(this,U)},o.prototype.toArray=function(U){return ye(this,U)},i.prototype.toArray=function(U){return ye(this,U)},n.prototype.toString=function(U,z){if(U===k&&(U=10),U!==10)return V(this,U,z);for(var L,H=this.value,ne=H.length,oe=String(H[--ne]);--ne>=0;)L=String(H[ne]),oe+="0000000".slice(L.length)+L;return(this.sign?"-":"")+oe},o.prototype.toString=function(U,z){return U===k&&(U=10),U!=10?V(this,U,z):String(this.value)},i.prototype.toString=o.prototype.toString,i.prototype.toJSON=n.prototype.toJSON=o.prototype.toJSON=function(){return this.toString()},n.prototype.valueOf=function(){return parseInt(this.toString(),10)},n.prototype.toJSNumber=n.prototype.valueOf,o.prototype.valueOf=function(){return this.value},o.prototype.toJSNumber=o.prototype.valueOf,i.prototype.valueOf=i.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var R=0;R<1e3;R++)r[R]=A(R),R>0&&(r[-R]=A(-R));return r.one=r[1],r.zero=r[0],r.minusOne=r[-1],r.max=le,r.min=ce,r.gcd=ve,r.lcm=function(U,z){return U=A(U).abs(),z=A(z).abs(),U.divide(ve(U,z)).multiply(z)},r.isInstance=function(U){return U instanceof n||U instanceof o||U instanceof i},r.randBetween=function(U,z,L){U=A(U),z=A(z);var H=L||Math.random,ne=ce(U,z),oe=le(U,z).subtract(ne).add(1);if(oe.isSmall)return ne.add(Math.floor(H()*oe));for(var K=ye(oe,S).value,X=[],Q=!0,Z=0;Z0||M===N?N:N-1}function p(M){for(var N,C,x=1,P=M.length,v=M[0]+"";xT^C?1:-1;for(E=(B=P.length)<(T=v.length)?B:T,m=0;mv[m]^C?1:-1;return B==T?0:B>T^C?1:-1}function b(M,N,C,x){if(MC||M!==t(M))throw Error(c+(x||"Argument")+(typeof M=="number"?MC?" out of range: ":" not an integer: ":" not a primitive number: ")+String(M))}function I(M){var N=M.c.length-1;return d(M.e/r)==N&&M.c[N]%2!=0}function l(M,N){return(M.length>1?M.charAt(0)+"."+M.slice(1):M)+(N<0?"e":"e+")+N}function j(M,N,C){var x,P;if(N<0){for(P=C+".";++N;P+=C);M=P+M}else if(++N>(x=M.length)){for(P=C,N-=x;--N;P+=C);M+=P}else NY?Z.c=Z.e=null:R.e=10;oe/=10,ne++);return void(ne>Y?Z.c=Z.e=null:(Z.e=ne,Z.c=[R]))}Q=String(R)}else{if(!S.test(Q=String(R)))return P(Z,Q,K);Z.s=Q.charCodeAt(0)==45?(Q=Q.slice(1),-1):1}(ne=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(oe=Q.search(/e/i))>0?(ne<0&&(ne=oe),ne+=+Q.slice(oe+1),Q=Q.substring(0,oe)):ne<0&&(ne=Q.length)}else{if(b(U,2,ce.length,"Base"),U==10&&ve)return y(Z=new de(R),J+Z.e+1,ee);if(Q=String(R),K=typeof R=="number"){if(0*R!=0)return P(Z,Q,K,U);if(Z.s=1/R<0?(Q=Q.slice(1),-1):1,de.DEBUG&&Q.replace(/^0\.0*|\./,"").length>15)throw Error(u+R)}else Z.s=Q.charCodeAt(0)===45?(Q=Q.slice(1),-1):1;for(z=ce.slice(0,U),ne=oe=0,X=Q.length;oene){ne=X;continue}}else if(!H&&(Q==Q.toUpperCase()&&(Q=Q.toLowerCase())||Q==Q.toLowerCase()&&(Q=Q.toUpperCase()))){H=!0,oe=-1,ne=0;continue}return P(Z,String(R),K,U)}K=!1,(ne=(Q=x(Q,U,10,Z.s)).indexOf("."))>-1?Q=Q.replace(".",""):ne=Q.length}for(oe=0;Q.charCodeAt(oe)===48;oe++);for(X=Q.length;Q.charCodeAt(--X)===48;);if(Q=Q.slice(oe,++X)){if(X-=oe,K&&de.DEBUG&&X>15&&(R>n||R!==t(R)))throw Error(u+Z.s*R);if((ne=ne-oe-1)>Y)Z.c=Z.e=null;else if(ne=$)?l(X,oe):j(X,oe,"0");else if(ne=(R=y(new de(R),U,z)).e,K=(X=p(R.c)).length,L==1||L==2&&(U<=ne||ne<=G)){for(;KK){if(--U>0)for(X+=".";U--;X+="0");}else if((U+=ne-K)>0)for(ne+1==K&&(X+=".");U--;X+="0");return R.s<0&&H?"-"+X:X}function ye(R,U){for(var z,L=1,H=new de(R[0]);L=10;H/=10,L++);return(z=L+z*r-1)>Y?R.c=R.e=null:z=10;K/=10,H++);if((ne=U-H)<0)ne+=r,oe=U,Z=(X=se[Q=0])/ue[H-oe-1]%10|0;else if((Q=a((ne+1)/r))>=se.length){if(!L)break e;for(;se.length<=Q;se.push(0));X=Z=0,H=1,oe=(ne%=r)-r+1}else{for(X=K=se[Q],H=1;K>=10;K/=10,H++);Z=(oe=(ne%=r)-r+H)<0?0:X/ue[H-oe-1]%10|0}if(L=L||U<0||se[Q+1]!=null||(oe<0?X:X%ue[H-oe-1]),L=z<4?(Z||L)&&(z==0||z==(R.s<0?3:2)):Z>5||Z==5&&(z==4||L||z==6&&(ne>0?oe>0?X/ue[H-oe]:0:se[Q-1])%10&1||z==(R.s<0?8:7)),U<1||!se[0])return se.length=0,L?(U-=R.e+1,se[0]=ue[(r-U%r)%r],R.e=-U||0):se[0]=R.e=0,R;if(ne==0?(se.length=Q,K=1,Q--):(se.length=Q+1,K=ue[r-ne],se[Q]=oe>0?t(X/ue[H-oe]%ue[oe])*K:0),L)for(;;){if(Q==0){for(ne=1,oe=se[0];oe>=10;oe/=10,ne++);for(oe=se[0]+=K,K=1;oe>=10;oe/=10,K++);ne!=K&&(R.e++,se[0]==s&&(se[0]=1));break}if(se[Q]+=K,se[Q]!=s)break;se[Q--]=0,K=1}for(ne=se.length;se[--ne]===0;se.pop());}R.e>Y?R.c=R.e=null:R.e=$?l(U,z):j(U,z,"0"),R.s<0?"-"+U:U)}return de.clone=M,de.ROUND_UP=0,de.ROUND_DOWN=1,de.ROUND_CEIL=2,de.ROUND_FLOOR=3,de.ROUND_HALF_UP=4,de.ROUND_HALF_DOWN=5,de.ROUND_HALF_EVEN=6,de.ROUND_HALF_CEIL=7,de.ROUND_HALF_FLOOR=8,de.EUCLID=9,de.config=de.set=function(R){var U,z;if(R!=null){if(typeof R!="object")throw Error(c+"Object expected: "+R);if(R.hasOwnProperty(U="DECIMAL_PLACES")&&(b(z=R[U],0,f,U),J=z),R.hasOwnProperty(U="ROUNDING_MODE")&&(b(z=R[U],0,8,U),ee=z),R.hasOwnProperty(U="EXPONENTIAL_AT")&&((z=R[U])&&z.pop?(b(z[0],-f,0,U),b(z[1],0,f,U),G=z[0],$=z[1]):(b(z,-f,f,U),G=-($=z<0?-z:z))),R.hasOwnProperty(U="RANGE"))if((z=R[U])&&z.pop)b(z[0],-f,-1,U),b(z[1],1,f,U),W=z[0],Y=z[1];else{if(b(z,-f,f,U),!z)throw Error(c+U+" cannot be zero: "+z);W=-(Y=z<0?-z:z)}if(R.hasOwnProperty(U="CRYPTO")){if((z=R[U])!==!!z)throw Error(c+U+" not true or false: "+z);if(z){if(typeof crypto>"u"||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!z,Error(c+"crypto unavailable");F=z}else F=z}if(R.hasOwnProperty(U="MODULO_MODE")&&(b(z=R[U],0,9,U),ae=z),R.hasOwnProperty(U="POW_PRECISION")&&(b(z=R[U],0,f,U),he=z),R.hasOwnProperty(U="FORMAT")){if(typeof(z=R[U])!="object")throw Error(c+U+" not an object: "+z);le=z}if(R.hasOwnProperty(U="ALPHABET")){if(typeof(z=R[U])!="string"||/^.?$|[+\-.\s]|(.).*\1/.test(z))throw Error(c+U+" invalid: "+z);ve=z.slice(0,10)=="0123456789",ce=z}}return{DECIMAL_PLACES:J,ROUNDING_MODE:ee,EXPONENTIAL_AT:[G,$],RANGE:[W,Y],CRYPTO:F,MODULO_MODE:ae,POW_PRECISION:he,FORMAT:le,ALPHABET:ce}},de.isBigNumber=function(R){if(!R||R._isBigNumber!==!0)return!1;if(!de.DEBUG)return!0;var U,z,L=R.c,H=R.e,ne=R.s;e:if({}.toString.call(L)=="[object Array]"){if((ne===1||ne===-1)&&H>=-f&&H<=f&&H===t(H)){if(L[0]===0){if(H===0&&L.length===1)return!0;break e}if((U=(H+1)%r)<1&&(U+=r),String(L[0]).length==U){for(U=0;U=s||z!==t(z))break e;if(z!==0)return!0}}}else if(L===null&&H===null&&(ne===null||ne===1||ne===-1))return!0;throw Error(c+"Invalid BigNumber: "+R)},de.maximum=de.max=function(){return ye(arguments,re.lt)},de.minimum=de.min=function(){return ye(arguments,re.gt)},de.random=(v=9007199254740992,m=Math.random()*v&2097151?function(){return t(Math.random()*v)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(R){var U,z,L,H,ne,oe=0,K=[],X=new de(ie);if(R==null?R=J:b(R,0,f),H=a(R/r),F)if(crypto.getRandomValues){for(U=crypto.getRandomValues(new Uint32Array(H*=2));oe>>11))>=9e15?(z=crypto.getRandomValues(new Uint32Array(2)),U[oe]=z[0],U[oe+1]=z[1]):(K.push(ne%1e14),oe+=2);oe=H/2}else{if(!crypto.randomBytes)throw F=!1,Error(c+"crypto unavailable");for(U=crypto.randomBytes(H*=7);oe=9e15?crypto.randomBytes(7).copy(U,oe):(K.push(ne%1e14),oe+=7);oe=H/7}if(!F)for(;oe=10;ne/=10,oe++);oeH-1&&(X[oe+1]==null&&(X[oe+1]=0),X[oe+1]+=X[oe]/H|0,X[oe]%=H)}return X.reverse()}return function(z,L,H,ne,oe){var K,X,Q,Z,se,ue,fe,me,ge=z.indexOf("."),be=J,_e=ee;for(ge>=0&&(Z=he,he=0,z=z.replace(".",""),ue=(me=new de(L)).pow(z.length-ge),he=Z,me.c=U(j(p(ue.c),ue.e,"0"),10,H,R),me.e=me.c.length),Q=Z=(fe=U(z,L,H,oe?(K=ce,R):(K=R,ce))).length;fe[--Z]==0;fe.pop());if(!fe[0])return K.charAt(0);if(ge<0?--Q:(ue.c=fe,ue.e=Q,ue.s=ne,fe=(ue=C(ue,me,be,_e,H)).c,se=ue.r,Q=ue.e),ge=fe[X=Q+be+1],Z=H/2,se=se||X<0||fe[X+1]!=null,se=_e<4?(ge!=null||se)&&(_e==0||_e==(ue.s<0?3:2)):ge>Z||ge==Z&&(_e==4||se||_e==6&&1&fe[X-1]||_e==(ue.s<0?8:7)),X<1||!fe[0])z=se?j(K.charAt(1),-be,K.charAt(0)):K.charAt(0);else{if(fe.length=X,se)for(--H;++fe[--X]>H;)fe[X]=0,X||(++Q,fe=[1].concat(fe));for(Z=fe.length;!fe[--Z];);for(ge=0,z="";ge<=Z;z+=K.charAt(fe[ge++]));z=j(z,Q,K.charAt(0))}return z}}(),C=function(){function R(L,H,ne){var oe,K,X,Q,Z=0,se=L.length,ue=H%i,fe=H/i|0;for(L=L.slice();se--;)Z=((K=ue*(X=L[se]%i)+(oe=fe*X+(Q=L[se]/i|0)*ue)%i*i+Z)/ne|0)+(oe/i|0)+fe*Q,L[se]=K%ne;return Z&&(L=[Z].concat(L)),L}function U(L,H,ne,oe){var K,X;if(ne!=oe)X=ne>oe?1:-1;else for(K=X=0;KH[K]?1:-1;break}return X}function z(L,H,ne,oe){for(var K=0;ne--;)L[ne]-=K,K=L[ne]1;L.splice(0,1));}return function(L,H,ne,oe,K){var X,Q,Z,se,ue,fe,me,ge,be,_e,we,Ee,xe,Se,ke,Re,Oe,Pe=L.s==H.s?1:-1,Me=L.c,Ae=H.c;if(!(Me&&Me[0]&&Ae&&Ae[0]))return new de(L.s&&H.s&&(Me?!Ae||Me[0]!=Ae[0]:Ae)?Me&&Me[0]==0||!Ae?0*Pe:Pe/0:NaN);for(be=(ge=new de(Pe)).c=[],Pe=ne+(Q=L.e-H.e)+1,K||(K=s,Q=d(L.e/r)-d(H.e/r),Pe=Pe/r|0),Z=0;Ae[Z]==(Me[Z]||0);Z++);if(Ae[Z]>(Me[Z]||0)&&Q--,Pe<0)be.push(1),se=!0;else{for(Se=Me.length,Re=Ae.length,Z=0,Pe+=2,(ue=t(K/(Ae[0]+1)))>1&&(Ae=R(Ae,ue,K),Me=R(Me,ue,K),Re=Ae.length,Se=Me.length),xe=Re,we=(_e=Me.slice(0,Re)).length;we=K/2&&ke++;do{if(ue=0,(X=U(Ae,_e,Re,we))<0){if(Ee=_e[0],Re!=we&&(Ee=Ee*K+(_e[1]||0)),(ue=t(Ee/ke))>1)for(ue>=K&&(ue=K-1),me=(fe=R(Ae,ue,K)).length,we=_e.length;U(fe,_e,me,we)==1;)ue--,z(fe,Re=10;Pe/=10,Z++);y(ge,ne+(ge.e=Z+Q*r-1)+1,oe,se)}else ge.e=Q,ge.r=+se;return ge}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,B=/^([^.]+)\.$/,T=/^\.([^.]+)$/,q=/^-?(Infinity|NaN)$/,te=/^\s*\+(?=[\w.])|^\s+|\s+$/g,P=function(R,U,z,L){var H,ne=z?U:U.replace(te,"");if(q.test(ne))R.s=isNaN(ne)?null:ne<0?-1:1;else{if(!z&&(ne=ne.replace(E,function(oe,K,X){return H=(X=X.toLowerCase())=="x"?16:X=="b"?2:8,L&&L!=H?oe:K}),L&&(H=L,ne=ne.replace(B,"$1").replace(T,"0.$1")),U!=ne))return new de(ne,H);if(de.DEBUG)throw Error(c+"Not a"+(L?" base "+L:"")+" number: "+U);R.s=null}R.c=R.e=null},re.absoluteValue=re.abs=function(){var R=new de(this);return R.s<0&&(R.s=1),R},re.comparedTo=function(R,U){return _(this,new de(R,U))},re.decimalPlaces=re.dp=function(R,U){var z,L,H,ne=this;if(R!=null)return b(R,0,f),U==null?U=ee:b(U,0,8),y(new de(ne),R+ne.e+1,U);if(!(z=ne.c))return null;if(L=((H=z.length-1)-d(this.e/r))*r,H=z[H])for(;H%10==0;H/=10,L--);return L<0&&(L=0),L},re.dividedBy=re.div=function(R,U){return C(this,new de(R,U),J,ee)},re.dividedToIntegerBy=re.idiv=function(R,U){return C(this,new de(R,U),0,1)},re.exponentiatedBy=re.pow=function(R,U){var z,L,H,ne,oe,K,X,Q,Z=this;if((R=new de(R)).c&&!R.isInteger())throw Error(c+"Exponent not an integer: "+A(R));if(U!=null&&(U=new de(U)),oe=R.e>14,!Z.c||!Z.c[0]||Z.c[0]==1&&!Z.e&&Z.c.length==1||!R.c||!R.c[0])return Q=new de(Math.pow(+A(Z),oe?2-I(R):+A(R))),U?Q.mod(U):Q;if(K=R.s<0,U){if(U.c?!U.c[0]:!U.s)return new de(NaN);(L=!K&&Z.isInteger()&&U.isInteger())&&(Z=Z.mod(U))}else{if(R.e>9&&(Z.e>0||Z.e<-1||(Z.e==0?Z.c[0]>1||oe&&Z.c[1]>=24e7:Z.c[0]<8e13||oe&&Z.c[0]<=9999975e7)))return ne=Z.s<0&&I(R)?-0:0,Z.e>-1&&(ne=1/ne),new de(K?1/ne:ne);he&&(ne=a(he/r+2))}for(oe?(z=new de(.5),K&&(R.s=1),X=I(R)):X=(H=Math.abs(+A(R)))%2,Q=new de(ie);;){if(X){if(!(Q=Q.times(Z)).c)break;ne?Q.c.length>ne&&(Q.c.length=ne):L&&(Q=Q.mod(U))}if(H){if((H=t(H/2))===0)break;X=H%2}else if(y(R=R.times(z),R.e+1,1),R.e>14)X=I(R);else{if((H=+A(R))==0)break;X=H%2}Z=Z.times(Z),ne?Z.c&&Z.c.length>ne&&(Z.c.length=ne):L&&(Z=Z.mod(U))}return L?Q:(K&&(Q=ie.div(Q)),U?Q.mod(U):ne?y(Q,he,ee,void 0):Q)},re.integerValue=function(R){var U=new de(this);return R==null?R=ee:b(R,0,8),y(U,U.e+1,R)},re.isEqualTo=re.eq=function(R,U){return _(this,new de(R,U))===0},re.isFinite=function(){return!!this.c},re.isGreaterThan=re.gt=function(R,U){return _(this,new de(R,U))>0},re.isGreaterThanOrEqualTo=re.gte=function(R,U){return(U=_(this,new de(R,U)))===1||U===0},re.isInteger=function(){return!!this.c&&d(this.e/r)>this.c.length-2},re.isLessThan=re.lt=function(R,U){return _(this,new de(R,U))<0},re.isLessThanOrEqualTo=re.lte=function(R,U){return(U=_(this,new de(R,U)))===-1||U===0},re.isNaN=function(){return!this.s},re.isNegative=function(){return this.s<0},re.isPositive=function(){return this.s>0},re.isZero=function(){return!!this.c&&this.c[0]==0},re.minus=function(R,U){var z,L,H,ne,oe=this,K=oe.s;if(U=(R=new de(R,U)).s,!K||!U)return new de(NaN);if(K!=U)return R.s=-U,oe.plus(R);var X=oe.e/r,Q=R.e/r,Z=oe.c,se=R.c;if(!X||!Q){if(!Z||!se)return Z?(R.s=-U,R):new de(se?oe:NaN);if(!Z[0]||!se[0])return se[0]?(R.s=-U,R):new de(Z[0]?oe:ee==3?-0:0)}if(X=d(X),Q=d(Q),Z=Z.slice(),K=X-Q){for((ne=K<0)?(K=-K,H=Z):(Q=X,H=se),H.reverse(),U=K;U--;H.push(0));H.reverse()}else for(L=(ne=(K=Z.length)<(U=se.length))?K:U,K=U=0;U0)for(;U--;Z[z++]=0);for(U=s-1;L>K;){if(Z[--L]=0;){for(z=0,ue=Ee[H]%be,fe=Ee[H]/be|0,ne=H+(oe=X);ne>H;)z=((Q=ue*(Q=we[--oe]%be)+(K=fe*Q+(Z=we[oe]/be|0)*ue)%be*be+me[ne]+z)/ge|0)+(K/be|0)+fe*Z,me[ne--]=Q%ge;me[ne]=z}return z?++L:me.splice(0,1),V(R,me,L)},re.negated=function(){var R=new de(this);return R.s=-R.s||null,R},re.plus=function(R,U){var z,L=this,H=L.s;if(U=(R=new de(R,U)).s,!H||!U)return new de(NaN);if(H!=U)return R.s=-U,L.minus(R);var ne=L.e/r,oe=R.e/r,K=L.c,X=R.c;if(!ne||!oe){if(!K||!X)return new de(H/0);if(!K[0]||!X[0])return X[0]?R:new de(K[0]?L:0*H)}if(ne=d(ne),oe=d(oe),K=K.slice(),H=ne-oe){for(H>0?(oe=ne,z=X):(H=-H,z=K),z.reverse();H--;z.push(0));z.reverse()}for((H=K.length)-(U=X.length)<0&&(z=X,X=K,K=z,U=H),H=0;U;)H=(K[--U]=K[U]+X[U]+H)/s|0,K[U]=s===K[U]?0:K[U]%s;return H&&(K=[H].concat(K),++oe),V(R,K,oe)},re.precision=re.sd=function(R,U){var z,L,H,ne=this;if(R!=null&&R!==!!R)return b(R,1,f),U==null?U=ee:b(U,0,8),y(new de(ne),R,U);if(!(z=ne.c))return null;if(L=(H=z.length-1)*r+1,H=z[H]){for(;H%10==0;H/=10,L--);for(H=z[0];H>=10;H/=10,L++);}return R&&ne.e+1>L&&(L=ne.e+1),L},re.shiftedBy=function(R){return b(R,-9007199254740991,n),this.times("1e"+R)},re.squareRoot=re.sqrt=function(){var R,U,z,L,H,ne=this,oe=ne.c,K=ne.s,X=ne.e,Q=J+4,Z=new de("0.5");if(K!==1||!oe||!oe[0])return new de(!K||K<0&&(!oe||oe[0])?NaN:oe?ne:1/0);if((K=Math.sqrt(+A(ne)))==0||K==1/0?(((U=p(oe)).length+X)%2==0&&(U+="0"),K=Math.sqrt(+U),X=d((X+1)/2)-(X<0||X%2),z=new de(U=K==1/0?"5e"+X:(U=K.toExponential()).slice(0,U.indexOf("e")+1)+X)):z=new de(K+""),z.c[0]){for((K=(X=z.e)+Q)<3&&(K=0);;)if(H=z,z=Z.times(H.plus(C(ne,H,Q,1))),p(H.c).slice(0,K)===(U=p(z.c)).slice(0,K)){if(z.e0&&me>0){for(ne=me%K||K,Z=fe.substr(0,ne);ne0&&(Z+=Q+fe.slice(ne)),ue&&(Z="-"+Z)}L=se?Z+(z.decimalSeparator||"")+((X=+z.fractionGroupSize)?se.replace(new RegExp("\\d{"+X+"}\\B","g"),"$&"+(z.fractionGroupSeparator||"")):se):Z}return(z.prefix||"")+L+(z.suffix||"")},re.toFraction=function(R){var U,z,L,H,ne,oe,K,X,Q,Z,se,ue,fe=this,me=fe.c;if(R!=null&&(!(K=new de(R)).isInteger()&&(K.c||K.s!==1)||K.lt(ie)))throw Error(c+"Argument "+(K.isInteger()?"out of range: ":"not an integer: ")+A(K));if(!me)return new de(fe);for(U=new de(ie),Q=z=new de(ie),L=X=new de(ie),ue=p(me),ne=U.e=ue.length-fe.e-1,U.c[0]=o[(oe=ne%r)<0?r+oe:oe],R=!R||K.comparedTo(U)>0?ne>0?U:Q:K,oe=Y,Y=1/0,K=new de(ue),X.c[0]=0;Z=C(K,U,0,1),(H=z.plus(Z.times(L))).comparedTo(R)!=1;)z=L,L=H,Q=X.plus(Z.times(H=Q)),X=H,U=K.minus(Z.times(H=U)),K=H;return H=C(R.minus(z),L,0,1),X=X.plus(H.times(Q)),z=z.plus(H.times(L)),X.s=Q.s=fe.s,se=C(Q,L,ne*=2,ee).minus(fe).abs().comparedTo(C(X,z,ne,ee).minus(fe).abs())<1?[Q,L]:[X,z],Y=oe,se},re.toNumber=function(){return+A(this)},re.toPrecision=function(R,U){return R!=null&&b(R,1,f),pe(this,R,U,2)},re.toString=function(R){var U,z=this,L=z.s,H=z.e;return H===null?L?(U="Infinity",L<0&&(U="-"+U)):U="NaN":(R==null?U=H<=G||H>=$?l(p(z.c),H):j(p(z.c),H,"0"):R===10&&ve?U=j(p((z=y(new de(z),J+H+1,ee)).c),z.e,"0"):(b(R,2,ce.length,"Base"),U=x(j(p(z.c),H,"0"),10,R,L,!0)),L<0&&z.c[0]&&(U="-"+U)),U},re.valueOf=re.toJSON=function(){return A(this)},re._isBigNumber=!0,N!=null&&de.set(N),de}(),k.default=k.BigNumber=k,(w=(function(){return k}).call(e,h,e,D))===void 0||(D.exports=w)})()},4090:(D,e,h)=>{var w=h(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});const O=h(6903),k=h(8334),S=h(5892),a=h(2401),t=h(9898),c=a.BufferN(32),u=a.compile({wif:a.UInt8,bip32:{public:a.UInt32,private:a.UInt32}}),s={messagePrefix:`Bitcoin Signed Message: +`,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},r=2147483648,n=Math.pow(2,31)-1;function o(b){return a.String(b)&&b.match(/^(m\/)?(\d+'?\/)*\d+'?$/)!==null}function i(b){return a.UInt32(b)&&b<=n}class f{constructor(I,l,j,M,N=0,C=0,x=0){this.__D=I,this.__Q=l,this.chainCode=j,this.network=M,this.__DEPTH=N,this.__INDEX=C,this.__PARENT_FINGERPRINT=x,a(u,M),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return this.__Q===void 0&&(this.__Q=S.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return O.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return this.__D===void 0}neutered(){return _(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const I=this.network,l=this.isNeutered()?I.bip32.public:I.bip32.private,j=w.allocUnsafe(78);return j.writeUInt32BE(l,0),j.writeUInt8(this.depth,4),j.writeUInt32BE(this.parentFingerprint,5),j.writeUInt32BE(this.index,9),this.chainCode.copy(j,13),this.isNeutered()?this.publicKey.copy(j,45):(j.writeUInt8(0,45),this.privateKey.copy(j,46)),k.encode(j)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return t.encode(this.network.wif,this.privateKey,!0)}derive(I){a(a.UInt32,I);const l=I>=r,j=w.allocUnsafe(37);if(l){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");j[0]=0,this.privateKey.copy(j,1),j.writeUInt32BE(I,33)}else this.publicKey.copy(j,0),j.writeUInt32BE(I,33);const M=O.hmacSHA512(this.chainCode,j),N=M.slice(0,32),C=M.slice(32);if(!S.isPrivate(N))return this.derive(I+1);let x;if(this.isNeutered()){const P=S.pointAddScalar(this.publicKey,N,!0);if(P===null)return this.derive(I+1);x=_(P,C,this.network,this.depth+1,I,this.fingerprint.readUInt32BE(0))}else{const P=S.privateAdd(this.privateKey,N);if(P==null)return this.derive(I+1);x=p(P,C,this.network,this.depth+1,I,this.fingerprint.readUInt32BE(0))}return x}deriveHardened(I){return a(i,I),this.derive(I+r)}derivePath(I){a(o,I);let l=I.split("/");if(l[0]==="m"){if(this.parentFingerprint)throw new TypeError("Expected master, got child");l=l.slice(1)}return l.reduce((j,M)=>{let N;return M.slice(-1)==="'"?(N=parseInt(M.slice(0,-1),10),j.deriveHardened(N)):(N=parseInt(M,10),j.derive(N))},this)}sign(I,l){if(!this.privateKey)throw new Error("Missing private key");if(l===void 0&&(l=this.lowR),l===!1)return S.sign(I,this.privateKey);{let j=S.sign(I,this.privateKey);const M=w.alloc(32,0);let N=0;for(;j[0]>127;)N++,M.writeUIntLE(N,0,6),j=S.signWithEntropy(I,this.privateKey,M);return j}}verify(I,l){return S.verify(I,this.publicKey,l)}}function d(b,I,l){return p(b,I,l)}function p(b,I,l,j,M,N){if(a({privateKey:c,chainCode:c},{privateKey:b,chainCode:I}),l=l||s,!S.isPrivate(b))throw new TypeError("Private key not in range [1, n)");return new f(b,void 0,I,l,j,M,N)}function _(b,I,l,j,M,N){if(a({publicKey:a.BufferN(33),chainCode:c},{publicKey:b,chainCode:I}),l=l||s,!S.isPoint(b))throw new TypeError("Point is not on the curve");return new f(void 0,b,I,l,j,M,N)}e.fromBase58=function(b,I){const l=k.decode(b);if(l.length!==78)throw new TypeError("Invalid buffer length");I=I||s;const j=l.readUInt32BE(0);if(j!==I.bip32.private&&j!==I.bip32.public)throw new TypeError("Invalid network version");const M=l[4],N=l.readUInt32BE(5);if(M===0&&N!==0)throw new TypeError("Invalid parent fingerprint");const C=l.readUInt32BE(9);if(M===0&&C!==0)throw new TypeError("Invalid index");const x=l.slice(13,45);let P;if(j===I.bip32.private){if(l.readUInt8(45)!==0)throw new TypeError("Invalid private key");P=p(l.slice(46,78),x,I,M,C,N)}else P=_(l.slice(45,78),x,I,M,C,N);return P},e.fromPrivateKey=d,e.fromPublicKey=function(b,I,l){return _(b,I,l)},e.fromSeed=function(b,I){if(a(a.Buffer,b),b.length<16)throw new TypeError("Seed should be at least 128 bits");if(b.length>64)throw new TypeError("Seed should be at most 512 bits");I=I||s;const l=O.hmacSHA512(w.from("Bitcoin seed","utf8"),b);return d(l.slice(0,32),l.slice(32),I)}},6903:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0});const w=h(3482),O=h(8355);e.hash160=function(k){const S=w("sha256").update(k).digest();try{return w("rmd160").update(S).digest()}catch{return w("ripemd160").update(S).digest()}},e.hmacSHA512=function(k,S){return O("sha512",k).update(S).digest()}},7786:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0});var w=h(4090);e.fromSeed=w.fromSeed,e.fromBase58=w.fromBase58,e.fromPublicKey=w.fromPublicKey,e.fromPrivateKey=w.fromPrivateKey},2314:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0});const w={};let O;e.wordlists=w,e._default=O;try{e._default=O=h(32),w.czech=O}catch{}try{e._default=O=h(6996),w.chinese_simplified=O}catch{}try{e._default=O=h(4262),w.chinese_traditional=O}catch{}try{e._default=O=h(8013),w.korean=O}catch{}try{e._default=O=h(1848),w.french=O}catch{}try{e._default=O=h(2841),w.italian=O}catch{}try{e._default=O=h(659),w.spanish=O}catch{}try{e._default=O=h(4472),w.japanese=O,w.JA=O}catch{}try{e._default=O=h(1945),w.portuguese=O}catch{}try{e._default=O=h(4573),w.english=O,w.EN=O}catch{}},2153:(D,e,h)=>{var w=h(8764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});const O=h(3482),k=h(5632),S=h(1798),a=h(2314);let t=a._default;const c="Invalid mnemonic",u="Invalid entropy",s=`A wordlist is required but a default could not be found. +Please pass a 2048 word array explicitly.`;function r(I){return(I||"").normalize("NFKD")}function n(I,l,j){for(;I.lengthn(l.toString(2),"0",8)).join("")}function f(I){const l=8*I.length/32,j=O("sha256").update(I).digest();return i(Array.from(j)).slice(0,l)}function d(I){return"mnemonic"+(I||"")}function p(I,l){if(!(l=l||t))throw new Error(s);const j=r(I).split(" ");if(j.length%3!=0)throw new Error(c);const M=j.map(m=>{const E=l.indexOf(m);if(E===-1)throw new Error(c);return n(E.toString(2),"0",11)}).join(""),N=32*Math.floor(M.length/33),C=M.slice(0,N),x=M.slice(N),P=C.match(/(.{1,8})/g).map(o);if(P.length<16)throw new Error(u);if(P.length>32)throw new Error(u);if(P.length%4!=0)throw new Error(u);const v=w.from(P);if(f(v)!==x)throw new Error("Invalid mnemonic checksum");return v.toString("hex")}function _(I,l){if(w.isBuffer(I)||(I=w.from(I,"hex")),!(l=l||t))throw new Error(s);if(I.length<16)throw new TypeError(u);if(I.length>32)throw new TypeError(u);if(I.length%4!=0)throw new TypeError(u);const j=(i(Array.from(I))+f(I)).match(/(.{1,11})/g).map(M=>{const N=o(M);return l[N]});return l[0]==="あいこくしん"?j.join(" "):j.join(" ")}e.mnemonicToSeedSync=function(I,l){const j=w.from(r(I),"utf8"),M=w.from(d(r(l)),"utf8");return k.pbkdf2Sync(j,M,2048,64,"sha512")},e.mnemonicToSeed=function(I,l){return Promise.resolve().then(()=>function(j,M,N,C,x){return Promise.resolve().then(()=>new Promise((P,v)=>{k.pbkdf2(j,M,2048,64,"sha512",(m,E)=>m?v(m):P(E))}))}(w.from(r(I),"utf8"),w.from(d(r(l)),"utf8")))},e.mnemonicToEntropy=p,e.entropyToMnemonic=_,e.generateMnemonic=function(I,l,j){if((I=I||128)%32!=0)throw new TypeError(u);return _((l=l||S)(I/8),j)},e.validateMnemonic=function(I,l){try{p(I,l)}catch{return!1}return!0},e.setDefaultWordlist=function(I){const l=a.wordlists[I];if(!l)throw new Error('Could not find wordlist for language "'+I+'"');t=l},e.getDefaultWordlist=function(){if(!t)throw new Error("No Default Wordlist set");return Object.keys(a.wordlists).filter(I=>I!=="JA"&&I!=="EN"&&a.wordlists[I].every((l,j)=>l===t[j]))[0]};var b=h(2314);e.wordlists=b.wordlists},3550:function(D,e,h){(function(w,O){function k(x,P){if(!x)throw new Error(P||"Assertion failed")}function S(x,P){x.super_=P;var v=function(){};v.prototype=P.prototype,x.prototype=new v,x.prototype.constructor=x}function a(x,P,v){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&(P!=="le"&&P!=="be"||(v=P,P=10),this._init(x||0,P||10,v||"be"))}var t;typeof w=="object"?w.exports=a:O.BN=a,a.BN=a,a.wordSize=26;try{t=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:h(6601).Buffer}catch{}function c(x,P){var v=x.charCodeAt(P);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function u(x,P,v){var m=c(x,v);return v-1>=P&&(m|=c(x,v-1)<<4),m}function s(x,P,v,m){for(var E=0,B=Math.min(x.length,v),T=P;T=49?q-49+10:q>=17?q-17+10:q}return E}a.isBN=function(x){return x instanceof a||x!==null&&typeof x=="object"&&x.constructor.wordSize===a.wordSize&&Array.isArray(x.words)},a.max=function(x,P){return x.cmp(P)>0?x:P},a.min=function(x,P){return x.cmp(P)<0?x:P},a.prototype._init=function(x,P,v){if(typeof x=="number")return this._initNumber(x,P,v);if(typeof x=="object")return this._initArray(x,P,v);P==="hex"&&(P=16),k(P===(0|P)&&P>=2&&P<=36);var m=0;(x=x.toString().replace(/\s+/g,""))[0]==="-"&&(m++,this.negative=1),m=0;m-=3)B=x[m]|x[m-1]<<8|x[m-2]<<16,this.words[E]|=B<>>26-T&67108863,(T+=24)>=26&&(T-=26,E++);else if(v==="le")for(m=0,E=0;m>>26-T&67108863,(T+=24)>=26&&(T-=26,E++);return this.strip()},a.prototype._parseHex=function(x,P,v){this.length=Math.ceil((x.length-P)/6),this.words=new Array(this.length);for(var m=0;m=P;m-=2)E=u(x,P,m)<=18?(B-=18,T+=1,this.words[T]|=E>>>26):B+=8;else for(m=(x.length-P)%2==0?P+1:P;m=18?(B-=18,T+=1,this.words[T]|=E>>>26):B+=8;this.strip()},a.prototype._parseBase=function(x,P,v){this.words=[0],this.length=1;for(var m=0,E=1;E<=67108863;E*=P)m++;m--,E=E/P|0;for(var B=x.length-v,T=B%m,q=Math.min(B,B-T)+v,te=0,re=v;re1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var r=["","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"],n=[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],o=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function i(x,P,v){v.negative=P.negative^x.negative;var m=x.length+P.length|0;v.length=m,m=m-1|0;var E=0|x.words[0],B=0|P.words[0],T=E*B,q=67108863&T,te=T/67108864|0;v.words[0]=q;for(var re=1;re>>26,J=67108863&te,ee=Math.min(re,P.length-1),G=Math.max(0,re-x.length+1);G<=ee;G++){var $=re-G|0;ie+=(T=(E=0|x.words[$])*(B=0|P.words[G])+J)/67108864|0,J=67108863&T}v.words[re]=0|J,te=0|ie}return te!==0?v.words[re]=0|te:v.length--,v.strip()}a.prototype.toString=function(x,P){var v;if(P=0|P||1,(x=x||10)===16||x==="hex"){v="";for(var m=0,E=0,B=0;B>>24-m&16777215)!=0||B!==this.length-1?r[6-q.length]+q+v:q+v,(m+=2)>=26&&(m-=26,B--)}for(E!==0&&(v=E.toString(16)+v);v.length%P!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(x===(0|x)&&x>=2&&x<=36){var te=n[x],re=o[x];v="";var ie=this.clone();for(ie.negative=0;!ie.isZero();){var J=ie.modn(re).toString(x);v=(ie=ie.idivn(re)).isZero()?J+v:r[te-J.length]+J+v}for(this.isZero()&&(v="0"+v);v.length%P!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}k(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var x=this.words[0];return this.length===2?x+=67108864*this.words[1]:this.length===3&&this.words[2]===1?x+=4503599627370496+67108864*this.words[1]:this.length>2&&k(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-x:x},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(x,P){return k(t!==void 0),this.toArrayLike(t,x,P)},a.prototype.toArray=function(x,P){return this.toArrayLike(Array,x,P)},a.prototype.toArrayLike=function(x,P,v){var m=this.byteLength(),E=v||Math.max(1,m);k(m<=E,"byte array longer than desired length"),k(E>0,"Requested array length <= 0"),this.strip();var B,T,q=P==="le",te=new x(E),re=this.clone();if(q){for(T=0;!re.isZero();T++)B=re.andln(255),re.iushrn(8),te[T]=B;for(;T=4096&&(v+=13,P>>>=13),P>=64&&(v+=7,P>>>=7),P>=8&&(v+=4,P>>>=4),P>=2&&(v+=2,P>>>=2),v+P},a.prototype._zeroBits=function(x){if(x===0)return 26;var P=x,v=0;return!(8191&P)&&(v+=13,P>>>=13),!(127&P)&&(v+=7,P>>>=7),!(15&P)&&(v+=4,P>>>=4),!(3&P)&&(v+=2,P>>>=2),!(1&P)&&v++,v},a.prototype.bitLength=function(){var x=this.words[this.length-1],P=this._countBits(x);return 26*(this.length-1)+P},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var x=0,P=0;Px.length?this.clone().ior(x):x.clone().ior(this)},a.prototype.uor=function(x){return this.length>x.length?this.clone().iuor(x):x.clone().iuor(this)},a.prototype.iuand=function(x){var P;P=this.length>x.length?x:this;for(var v=0;vx.length?this.clone().iand(x):x.clone().iand(this)},a.prototype.uand=function(x){return this.length>x.length?this.clone().iuand(x):x.clone().iuand(this)},a.prototype.iuxor=function(x){var P,v;this.length>x.length?(P=this,v=x):(P=x,v=this);for(var m=0;mx.length?this.clone().ixor(x):x.clone().ixor(this)},a.prototype.uxor=function(x){return this.length>x.length?this.clone().iuxor(x):x.clone().iuxor(this)},a.prototype.inotn=function(x){k(typeof x=="number"&&x>=0);var P=0|Math.ceil(x/26),v=x%26;this._expand(P),v>0&&P--;for(var m=0;m0&&(this.words[m]=~this.words[m]&67108863>>26-v),this.strip()},a.prototype.notn=function(x){return this.clone().inotn(x)},a.prototype.setn=function(x,P){k(typeof x=="number"&&x>=0);var v=x/26|0,m=x%26;return this._expand(v+1),this.words[v]=P?this.words[v]|1<x.length?(v=this,m=x):(v=x,m=this);for(var E=0,B=0;B>>26;for(;E!==0&&B>>26;if(this.length=v.length,E!==0)this.words[this.length]=E,this.length++;else if(v!==this)for(;Bx.length?this.clone().iadd(x):x.clone().iadd(this)},a.prototype.isub=function(x){if(x.negative!==0){x.negative=0;var P=this.iadd(x);return x.negative=1,P._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(x),this.negative=1,this._normSign();var v,m,E=this.cmp(x);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;E>0?(v=this,m=x):(v=x,m=this);for(var B=0,T=0;T>26,this.words[T]=67108863&P;for(;B!==0&&T>26,this.words[T]=67108863&P;if(B===0&&T>>13,G=0|T[1],$=8191&G,W=G>>>13,Y=0|T[2],F=8191&Y,ae=Y>>>13,he=0|T[3],le=8191&he,ce=he>>>13,ve=0|T[4],de=8191&ve,pe=ve>>>13,ye=0|T[5],V=8191&ye,y=ye>>>13,A=0|T[6],R=8191&A,U=A>>>13,z=0|T[7],L=8191&z,H=z>>>13,ne=0|T[8],oe=8191&ne,K=ne>>>13,X=0|T[9],Q=8191&X,Z=X>>>13,se=0|q[0],ue=8191&se,fe=se>>>13,me=0|q[1],ge=8191&me,be=me>>>13,_e=0|q[2],we=8191&_e,Ee=_e>>>13,xe=0|q[3],Se=8191&xe,ke=xe>>>13,Re=0|q[4],Oe=8191&Re,Pe=Re>>>13,Me=0|q[5],Ae=8191&Me,Ne=Me>>>13,Te=0|q[6],Ce=8191&Te,Ie=Te>>>13,De=0|q[7],je=8191&De,Ue=De>>>13,ze=0|q[8],Be=8191&ze,Je=ze>>>13,dt=0|q[9],qe=8191&dt,Le=dt>>>13;v.negative=x.negative^P.negative,v.length=19;var We=(re+(m=Math.imul(J,ue))|0)+((8191&(E=(E=Math.imul(J,fe))+Math.imul(ee,ue)|0))<<13)|0;re=((B=Math.imul(ee,fe))+(E>>>13)|0)+(We>>>26)|0,We&=67108863,m=Math.imul($,ue),E=(E=Math.imul($,fe))+Math.imul(W,ue)|0,B=Math.imul(W,fe);var Ge=(re+(m=m+Math.imul(J,ge)|0)|0)+((8191&(E=(E=E+Math.imul(J,be)|0)+Math.imul(ee,ge)|0))<<13)|0;re=((B=B+Math.imul(ee,be)|0)+(E>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,m=Math.imul(F,ue),E=(E=Math.imul(F,fe))+Math.imul(ae,ue)|0,B=Math.imul(ae,fe),m=m+Math.imul($,ge)|0,E=(E=E+Math.imul($,be)|0)+Math.imul(W,ge)|0,B=B+Math.imul(W,be)|0;var He=(re+(m=m+Math.imul(J,we)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ee)|0)+Math.imul(ee,we)|0))<<13)|0;re=((B=B+Math.imul(ee,Ee)|0)+(E>>>13)|0)+(He>>>26)|0,He&=67108863,m=Math.imul(le,ue),E=(E=Math.imul(le,fe))+Math.imul(ce,ue)|0,B=Math.imul(ce,fe),m=m+Math.imul(F,ge)|0,E=(E=E+Math.imul(F,be)|0)+Math.imul(ae,ge)|0,B=B+Math.imul(ae,be)|0,m=m+Math.imul($,we)|0,E=(E=E+Math.imul($,Ee)|0)+Math.imul(W,we)|0,B=B+Math.imul(W,Ee)|0;var Ve=(re+(m=m+Math.imul(J,Se)|0)|0)+((8191&(E=(E=E+Math.imul(J,ke)|0)+Math.imul(ee,Se)|0))<<13)|0;re=((B=B+Math.imul(ee,ke)|0)+(E>>>13)|0)+(Ve>>>26)|0,Ve&=67108863,m=Math.imul(de,ue),E=(E=Math.imul(de,fe))+Math.imul(pe,ue)|0,B=Math.imul(pe,fe),m=m+Math.imul(le,ge)|0,E=(E=E+Math.imul(le,be)|0)+Math.imul(ce,ge)|0,B=B+Math.imul(ce,be)|0,m=m+Math.imul(F,we)|0,E=(E=E+Math.imul(F,Ee)|0)+Math.imul(ae,we)|0,B=B+Math.imul(ae,Ee)|0,m=m+Math.imul($,Se)|0,E=(E=E+Math.imul($,ke)|0)+Math.imul(W,Se)|0,B=B+Math.imul(W,ke)|0;var $e=(re+(m=m+Math.imul(J,Oe)|0)|0)+((8191&(E=(E=E+Math.imul(J,Pe)|0)+Math.imul(ee,Oe)|0))<<13)|0;re=((B=B+Math.imul(ee,Pe)|0)+(E>>>13)|0)+($e>>>26)|0,$e&=67108863,m=Math.imul(V,ue),E=(E=Math.imul(V,fe))+Math.imul(y,ue)|0,B=Math.imul(y,fe),m=m+Math.imul(de,ge)|0,E=(E=E+Math.imul(de,be)|0)+Math.imul(pe,ge)|0,B=B+Math.imul(pe,be)|0,m=m+Math.imul(le,we)|0,E=(E=E+Math.imul(le,Ee)|0)+Math.imul(ce,we)|0,B=B+Math.imul(ce,Ee)|0,m=m+Math.imul(F,Se)|0,E=(E=E+Math.imul(F,ke)|0)+Math.imul(ae,Se)|0,B=B+Math.imul(ae,ke)|0,m=m+Math.imul($,Oe)|0,E=(E=E+Math.imul($,Pe)|0)+Math.imul(W,Oe)|0,B=B+Math.imul(W,Pe)|0;var Qe=(re+(m=m+Math.imul(J,Ae)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ne)|0)+Math.imul(ee,Ae)|0))<<13)|0;re=((B=B+Math.imul(ee,Ne)|0)+(E>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,m=Math.imul(R,ue),E=(E=Math.imul(R,fe))+Math.imul(U,ue)|0,B=Math.imul(U,fe),m=m+Math.imul(V,ge)|0,E=(E=E+Math.imul(V,be)|0)+Math.imul(y,ge)|0,B=B+Math.imul(y,be)|0,m=m+Math.imul(de,we)|0,E=(E=E+Math.imul(de,Ee)|0)+Math.imul(pe,we)|0,B=B+Math.imul(pe,Ee)|0,m=m+Math.imul(le,Se)|0,E=(E=E+Math.imul(le,ke)|0)+Math.imul(ce,Se)|0,B=B+Math.imul(ce,ke)|0,m=m+Math.imul(F,Oe)|0,E=(E=E+Math.imul(F,Pe)|0)+Math.imul(ae,Oe)|0,B=B+Math.imul(ae,Pe)|0,m=m+Math.imul($,Ae)|0,E=(E=E+Math.imul($,Ne)|0)+Math.imul(W,Ae)|0,B=B+Math.imul(W,Ne)|0;var Ke=(re+(m=m+Math.imul(J,Ce)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ie)|0)+Math.imul(ee,Ce)|0))<<13)|0;re=((B=B+Math.imul(ee,Ie)|0)+(E>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,m=Math.imul(L,ue),E=(E=Math.imul(L,fe))+Math.imul(H,ue)|0,B=Math.imul(H,fe),m=m+Math.imul(R,ge)|0,E=(E=E+Math.imul(R,be)|0)+Math.imul(U,ge)|0,B=B+Math.imul(U,be)|0,m=m+Math.imul(V,we)|0,E=(E=E+Math.imul(V,Ee)|0)+Math.imul(y,we)|0,B=B+Math.imul(y,Ee)|0,m=m+Math.imul(de,Se)|0,E=(E=E+Math.imul(de,ke)|0)+Math.imul(pe,Se)|0,B=B+Math.imul(pe,ke)|0,m=m+Math.imul(le,Oe)|0,E=(E=E+Math.imul(le,Pe)|0)+Math.imul(ce,Oe)|0,B=B+Math.imul(ce,Pe)|0,m=m+Math.imul(F,Ae)|0,E=(E=E+Math.imul(F,Ne)|0)+Math.imul(ae,Ae)|0,B=B+Math.imul(ae,Ne)|0,m=m+Math.imul($,Ce)|0,E=(E=E+Math.imul($,Ie)|0)+Math.imul(W,Ce)|0,B=B+Math.imul(W,Ie)|0;var Ze=(re+(m=m+Math.imul(J,je)|0)|0)+((8191&(E=(E=E+Math.imul(J,Ue)|0)+Math.imul(ee,je)|0))<<13)|0;re=((B=B+Math.imul(ee,Ue)|0)+(E>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,m=Math.imul(oe,ue),E=(E=Math.imul(oe,fe))+Math.imul(K,ue)|0,B=Math.imul(K,fe),m=m+Math.imul(L,ge)|0,E=(E=E+Math.imul(L,be)|0)+Math.imul(H,ge)|0,B=B+Math.imul(H,be)|0,m=m+Math.imul(R,we)|0,E=(E=E+Math.imul(R,Ee)|0)+Math.imul(U,we)|0,B=B+Math.imul(U,Ee)|0,m=m+Math.imul(V,Se)|0,E=(E=E+Math.imul(V,ke)|0)+Math.imul(y,Se)|0,B=B+Math.imul(y,ke)|0,m=m+Math.imul(de,Oe)|0,E=(E=E+Math.imul(de,Pe)|0)+Math.imul(pe,Oe)|0,B=B+Math.imul(pe,Pe)|0,m=m+Math.imul(le,Ae)|0,E=(E=E+Math.imul(le,Ne)|0)+Math.imul(ce,Ae)|0,B=B+Math.imul(ce,Ne)|0,m=m+Math.imul(F,Ce)|0,E=(E=E+Math.imul(F,Ie)|0)+Math.imul(ae,Ce)|0,B=B+Math.imul(ae,Ie)|0,m=m+Math.imul($,je)|0,E=(E=E+Math.imul($,Ue)|0)+Math.imul(W,je)|0,B=B+Math.imul(W,Ue)|0;var Ye=(re+(m=m+Math.imul(J,Be)|0)|0)+((8191&(E=(E=E+Math.imul(J,Je)|0)+Math.imul(ee,Be)|0))<<13)|0;re=((B=B+Math.imul(ee,Je)|0)+(E>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,m=Math.imul(Q,ue),E=(E=Math.imul(Q,fe))+Math.imul(Z,ue)|0,B=Math.imul(Z,fe),m=m+Math.imul(oe,ge)|0,E=(E=E+Math.imul(oe,be)|0)+Math.imul(K,ge)|0,B=B+Math.imul(K,be)|0,m=m+Math.imul(L,we)|0,E=(E=E+Math.imul(L,Ee)|0)+Math.imul(H,we)|0,B=B+Math.imul(H,Ee)|0,m=m+Math.imul(R,Se)|0,E=(E=E+Math.imul(R,ke)|0)+Math.imul(U,Se)|0,B=B+Math.imul(U,ke)|0,m=m+Math.imul(V,Oe)|0,E=(E=E+Math.imul(V,Pe)|0)+Math.imul(y,Oe)|0,B=B+Math.imul(y,Pe)|0,m=m+Math.imul(de,Ae)|0,E=(E=E+Math.imul(de,Ne)|0)+Math.imul(pe,Ae)|0,B=B+Math.imul(pe,Ne)|0,m=m+Math.imul(le,Ce)|0,E=(E=E+Math.imul(le,Ie)|0)+Math.imul(ce,Ce)|0,B=B+Math.imul(ce,Ie)|0,m=m+Math.imul(F,je)|0,E=(E=E+Math.imul(F,Ue)|0)+Math.imul(ae,je)|0,B=B+Math.imul(ae,Ue)|0,m=m+Math.imul($,Be)|0,E=(E=E+Math.imul($,Je)|0)+Math.imul(W,Be)|0,B=B+Math.imul(W,Je)|0;var Xe=(re+(m=m+Math.imul(J,qe)|0)|0)+((8191&(E=(E=E+Math.imul(J,Le)|0)+Math.imul(ee,qe)|0))<<13)|0;re=((B=B+Math.imul(ee,Le)|0)+(E>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,m=Math.imul(Q,ge),E=(E=Math.imul(Q,be))+Math.imul(Z,ge)|0,B=Math.imul(Z,be),m=m+Math.imul(oe,we)|0,E=(E=E+Math.imul(oe,Ee)|0)+Math.imul(K,we)|0,B=B+Math.imul(K,Ee)|0,m=m+Math.imul(L,Se)|0,E=(E=E+Math.imul(L,ke)|0)+Math.imul(H,Se)|0,B=B+Math.imul(H,ke)|0,m=m+Math.imul(R,Oe)|0,E=(E=E+Math.imul(R,Pe)|0)+Math.imul(U,Oe)|0,B=B+Math.imul(U,Pe)|0,m=m+Math.imul(V,Ae)|0,E=(E=E+Math.imul(V,Ne)|0)+Math.imul(y,Ae)|0,B=B+Math.imul(y,Ne)|0,m=m+Math.imul(de,Ce)|0,E=(E=E+Math.imul(de,Ie)|0)+Math.imul(pe,Ce)|0,B=B+Math.imul(pe,Ie)|0,m=m+Math.imul(le,je)|0,E=(E=E+Math.imul(le,Ue)|0)+Math.imul(ce,je)|0,B=B+Math.imul(ce,Ue)|0,m=m+Math.imul(F,Be)|0,E=(E=E+Math.imul(F,Je)|0)+Math.imul(ae,Be)|0,B=B+Math.imul(ae,Je)|0;var et=(re+(m=m+Math.imul($,qe)|0)|0)+((8191&(E=(E=E+Math.imul($,Le)|0)+Math.imul(W,qe)|0))<<13)|0;re=((B=B+Math.imul(W,Le)|0)+(E>>>13)|0)+(et>>>26)|0,et&=67108863,m=Math.imul(Q,we),E=(E=Math.imul(Q,Ee))+Math.imul(Z,we)|0,B=Math.imul(Z,Ee),m=m+Math.imul(oe,Se)|0,E=(E=E+Math.imul(oe,ke)|0)+Math.imul(K,Se)|0,B=B+Math.imul(K,ke)|0,m=m+Math.imul(L,Oe)|0,E=(E=E+Math.imul(L,Pe)|0)+Math.imul(H,Oe)|0,B=B+Math.imul(H,Pe)|0,m=m+Math.imul(R,Ae)|0,E=(E=E+Math.imul(R,Ne)|0)+Math.imul(U,Ae)|0,B=B+Math.imul(U,Ne)|0,m=m+Math.imul(V,Ce)|0,E=(E=E+Math.imul(V,Ie)|0)+Math.imul(y,Ce)|0,B=B+Math.imul(y,Ie)|0,m=m+Math.imul(de,je)|0,E=(E=E+Math.imul(de,Ue)|0)+Math.imul(pe,je)|0,B=B+Math.imul(pe,Ue)|0,m=m+Math.imul(le,Be)|0,E=(E=E+Math.imul(le,Je)|0)+Math.imul(ce,Be)|0,B=B+Math.imul(ce,Je)|0;var tt=(re+(m=m+Math.imul(F,qe)|0)|0)+((8191&(E=(E=E+Math.imul(F,Le)|0)+Math.imul(ae,qe)|0))<<13)|0;re=((B=B+Math.imul(ae,Le)|0)+(E>>>13)|0)+(tt>>>26)|0,tt&=67108863,m=Math.imul(Q,Se),E=(E=Math.imul(Q,ke))+Math.imul(Z,Se)|0,B=Math.imul(Z,ke),m=m+Math.imul(oe,Oe)|0,E=(E=E+Math.imul(oe,Pe)|0)+Math.imul(K,Oe)|0,B=B+Math.imul(K,Pe)|0,m=m+Math.imul(L,Ae)|0,E=(E=E+Math.imul(L,Ne)|0)+Math.imul(H,Ae)|0,B=B+Math.imul(H,Ne)|0,m=m+Math.imul(R,Ce)|0,E=(E=E+Math.imul(R,Ie)|0)+Math.imul(U,Ce)|0,B=B+Math.imul(U,Ie)|0,m=m+Math.imul(V,je)|0,E=(E=E+Math.imul(V,Ue)|0)+Math.imul(y,je)|0,B=B+Math.imul(y,Ue)|0,m=m+Math.imul(de,Be)|0,E=(E=E+Math.imul(de,Je)|0)+Math.imul(pe,Be)|0,B=B+Math.imul(pe,Je)|0;var rt=(re+(m=m+Math.imul(le,qe)|0)|0)+((8191&(E=(E=E+Math.imul(le,Le)|0)+Math.imul(ce,qe)|0))<<13)|0;re=((B=B+Math.imul(ce,Le)|0)+(E>>>13)|0)+(rt>>>26)|0,rt&=67108863,m=Math.imul(Q,Oe),E=(E=Math.imul(Q,Pe))+Math.imul(Z,Oe)|0,B=Math.imul(Z,Pe),m=m+Math.imul(oe,Ae)|0,E=(E=E+Math.imul(oe,Ne)|0)+Math.imul(K,Ae)|0,B=B+Math.imul(K,Ne)|0,m=m+Math.imul(L,Ce)|0,E=(E=E+Math.imul(L,Ie)|0)+Math.imul(H,Ce)|0,B=B+Math.imul(H,Ie)|0,m=m+Math.imul(R,je)|0,E=(E=E+Math.imul(R,Ue)|0)+Math.imul(U,je)|0,B=B+Math.imul(U,Ue)|0,m=m+Math.imul(V,Be)|0,E=(E=E+Math.imul(V,Je)|0)+Math.imul(y,Be)|0,B=B+Math.imul(y,Je)|0;var nt=(re+(m=m+Math.imul(de,qe)|0)|0)+((8191&(E=(E=E+Math.imul(de,Le)|0)+Math.imul(pe,qe)|0))<<13)|0;re=((B=B+Math.imul(pe,Le)|0)+(E>>>13)|0)+(nt>>>26)|0,nt&=67108863,m=Math.imul(Q,Ae),E=(E=Math.imul(Q,Ne))+Math.imul(Z,Ae)|0,B=Math.imul(Z,Ne),m=m+Math.imul(oe,Ce)|0,E=(E=E+Math.imul(oe,Ie)|0)+Math.imul(K,Ce)|0,B=B+Math.imul(K,Ie)|0,m=m+Math.imul(L,je)|0,E=(E=E+Math.imul(L,Ue)|0)+Math.imul(H,je)|0,B=B+Math.imul(H,Ue)|0,m=m+Math.imul(R,Be)|0,E=(E=E+Math.imul(R,Je)|0)+Math.imul(U,Be)|0,B=B+Math.imul(U,Je)|0;var ot=(re+(m=m+Math.imul(V,qe)|0)|0)+((8191&(E=(E=E+Math.imul(V,Le)|0)+Math.imul(y,qe)|0))<<13)|0;re=((B=B+Math.imul(y,Le)|0)+(E>>>13)|0)+(ot>>>26)|0,ot&=67108863,m=Math.imul(Q,Ce),E=(E=Math.imul(Q,Ie))+Math.imul(Z,Ce)|0,B=Math.imul(Z,Ie),m=m+Math.imul(oe,je)|0,E=(E=E+Math.imul(oe,Ue)|0)+Math.imul(K,je)|0,B=B+Math.imul(K,Ue)|0,m=m+Math.imul(L,Be)|0,E=(E=E+Math.imul(L,Je)|0)+Math.imul(H,Be)|0,B=B+Math.imul(H,Je)|0;var it=(re+(m=m+Math.imul(R,qe)|0)|0)+((8191&(E=(E=E+Math.imul(R,Le)|0)+Math.imul(U,qe)|0))<<13)|0;re=((B=B+Math.imul(U,Le)|0)+(E>>>13)|0)+(it>>>26)|0,it&=67108863,m=Math.imul(Q,je),E=(E=Math.imul(Q,Ue))+Math.imul(Z,je)|0,B=Math.imul(Z,Ue),m=m+Math.imul(oe,Be)|0,E=(E=E+Math.imul(oe,Je)|0)+Math.imul(K,Be)|0,B=B+Math.imul(K,Je)|0;var at=(re+(m=m+Math.imul(L,qe)|0)|0)+((8191&(E=(E=E+Math.imul(L,Le)|0)+Math.imul(H,qe)|0))<<13)|0;re=((B=B+Math.imul(H,Le)|0)+(E>>>13)|0)+(at>>>26)|0,at&=67108863,m=Math.imul(Q,Be),E=(E=Math.imul(Q,Je))+Math.imul(Z,Be)|0,B=Math.imul(Z,Je);var st=(re+(m=m+Math.imul(oe,qe)|0)|0)+((8191&(E=(E=E+Math.imul(oe,Le)|0)+Math.imul(K,qe)|0))<<13)|0;re=((B=B+Math.imul(K,Le)|0)+(E>>>13)|0)+(st>>>26)|0,st&=67108863;var ct=(re+(m=Math.imul(Q,qe))|0)+((8191&(E=(E=Math.imul(Q,Le))+Math.imul(Z,qe)|0))<<13)|0;return re=((B=Math.imul(Z,Le))+(E>>>13)|0)+(ct>>>26)|0,ct&=67108863,te[0]=We,te[1]=Ge,te[2]=He,te[3]=Ve,te[4]=$e,te[5]=Qe,te[6]=Ke,te[7]=Ze,te[8]=Ye,te[9]=Xe,te[10]=et,te[11]=tt,te[12]=rt,te[13]=nt,te[14]=ot,te[15]=it,te[16]=at,te[17]=st,te[18]=ct,re!==0&&(te[19]=re,v.length++),v};function d(x,P,v){return new p().mulp(x,P,v)}function p(x,P){this.x=x,this.y=P}Math.imul||(f=i),a.prototype.mulTo=function(x,P){var v,m=this.length+x.length;return v=this.length===10&&x.length===10?f(this,x,P):m<63?i(this,x,P):m<1024?function(E,B,T){T.negative=B.negative^E.negative,T.length=E.length+B.length;for(var q=0,te=0,re=0;re>>26)|0)>>>26,ie&=67108863}T.words[re]=J,q=ie,ie=te}return q!==0?T.words[re]=q:T.length--,T.strip()}(this,x,P):d(this,x,P),v},p.prototype.makeRBT=function(x){for(var P=new Array(x),v=a.prototype._countBits(x)-1,m=0;m>=1;return m},p.prototype.permute=function(x,P,v,m,E,B){for(var T=0;T>>=1)E++;return 1<>>=13,v[2*B+1]=8191&E,E>>>=13;for(B=2*P;B>=26,P+=m/67108864|0,P+=E>>>26,this.words[v]=67108863&E}return P!==0&&(this.words[v]=P,this.length++),this},a.prototype.muln=function(x){return this.clone().imuln(x)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(x){var P=function(B){for(var T=new Array(B.bitLength()),q=0;q>>re}return T}(x);if(P.length===0)return new a(1);for(var v=this,m=0;m=0);var P,v=x%26,m=(x-v)/26,E=67108863>>>26-v<<26-v;if(v!==0){var B=0;for(P=0;P>>26-v}B&&(this.words[P]=B,this.length++)}if(m!==0){for(P=this.length-1;P>=0;P--)this.words[P+m]=this.words[P];for(P=0;P=0),m=P?(P-P%26)/26:0;var E=x%26,B=Math.min((x-E)/26,this.length),T=67108863^67108863>>>E<B)for(this.length-=B,te=0;te=0&&(re!==0||te>=m);te--){var ie=0|this.words[te];this.words[te]=re<<26-E|ie>>>E,re=ie&T}return q&&re!==0&&(q.words[q.length++]=re),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(x,P,v){return k(this.negative===0),this.iushrn(x,P,v)},a.prototype.shln=function(x){return this.clone().ishln(x)},a.prototype.ushln=function(x){return this.clone().iushln(x)},a.prototype.shrn=function(x){return this.clone().ishrn(x)},a.prototype.ushrn=function(x){return this.clone().iushrn(x)},a.prototype.testn=function(x){k(typeof x=="number"&&x>=0);var P=x%26,v=(x-P)/26,m=1<=0);var P=x%26,v=(x-P)/26;if(k(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(P!==0&&v++,this.length=Math.min(v,this.length),P!==0){var m=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},a.prototype.isubn=function(x){if(k(typeof x=="number"),k(x<67108864),x<0)return this.iaddn(-x);if(this.negative!==0)return this.negative=0,this.iaddn(x),this.negative=1,this;if(this.words[0]-=x,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(q/67108864|0),this.words[m+v]=67108863&E}for(;m>26,this.words[m+v]=67108863&E;if(T===0)return this.strip();for(k(T===-1),T=0,m=0;m>26,this.words[m]=67108863&E;return this.negative=1,this.strip()},a.prototype._wordDiv=function(x,P){var v=(this.length,x.length),m=this.clone(),E=x,B=0|E.words[E.length-1];(v=26-this._countBits(B))!=0&&(E=E.ushln(v),m.iushln(v),B=0|E.words[E.length-1]);var T,q=m.length-E.length;if(P!=="mod"){(T=new a(null)).length=q+1,T.words=new Array(T.length);for(var te=0;te=0;ie--){var J=67108864*(0|m.words[E.length+ie])+(0|m.words[E.length+ie-1]);for(J=Math.min(J/B|0,67108863),m._ishlnsubmul(E,J,ie);m.negative!==0;)J--,m.negative=0,m._ishlnsubmul(E,1,ie),m.isZero()||(m.negative^=1);T&&(T.words[ie]=J)}return T&&T.strip(),m.strip(),P!=="div"&&v!==0&&m.iushrn(v),{div:T||null,mod:m}},a.prototype.divmod=function(x,P,v){return k(!x.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&x.negative===0?(B=this.neg().divmod(x,P),P!=="mod"&&(m=B.div.neg()),P!=="div"&&(E=B.mod.neg(),v&&E.negative!==0&&E.iadd(x)),{div:m,mod:E}):this.negative===0&&x.negative!==0?(B=this.divmod(x.neg(),P),P!=="mod"&&(m=B.div.neg()),{div:m,mod:B.mod}):this.negative&x.negative?(B=this.neg().divmod(x.neg(),P),P!=="div"&&(E=B.mod.neg(),v&&E.negative!==0&&E.isub(x)),{div:B.div,mod:E}):x.length>this.length||this.cmp(x)<0?{div:new a(0),mod:this}:x.length===1?P==="div"?{div:this.divn(x.words[0]),mod:null}:P==="mod"?{div:null,mod:new a(this.modn(x.words[0]))}:{div:this.divn(x.words[0]),mod:new a(this.modn(x.words[0]))}:this._wordDiv(x,P);var m,E,B},a.prototype.div=function(x){return this.divmod(x,"div",!1).div},a.prototype.mod=function(x){return this.divmod(x,"mod",!1).mod},a.prototype.umod=function(x){return this.divmod(x,"mod",!0).mod},a.prototype.divRound=function(x){var P=this.divmod(x);if(P.mod.isZero())return P.div;var v=P.div.negative!==0?P.mod.isub(x):P.mod,m=x.ushrn(1),E=x.andln(1),B=v.cmp(m);return B<0||E===1&&B===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},a.prototype.modn=function(x){k(x<=67108863);for(var P=67108864%x,v=0,m=this.length-1;m>=0;m--)v=(P*v+(0|this.words[m]))%x;return v},a.prototype.idivn=function(x){k(x<=67108863);for(var P=0,v=this.length-1;v>=0;v--){var m=(0|this.words[v])+67108864*P;this.words[v]=m/x|0,P=m%x}return this.strip()},a.prototype.divn=function(x){return this.clone().idivn(x)},a.prototype.egcd=function(x){k(x.negative===0),k(!x.isZero());var P=this,v=x.clone();P=P.negative!==0?P.umod(x):P.clone();for(var m=new a(1),E=new a(0),B=new a(0),T=new a(1),q=0;P.isEven()&&v.isEven();)P.iushrn(1),v.iushrn(1),++q;for(var te=v.clone(),re=P.clone();!P.isZero();){for(var ie=0,J=1;!(P.words[0]&J)&&ie<26;++ie,J<<=1);if(ie>0)for(P.iushrn(ie);ie-- >0;)(m.isOdd()||E.isOdd())&&(m.iadd(te),E.isub(re)),m.iushrn(1),E.iushrn(1);for(var ee=0,G=1;!(v.words[0]&G)&&ee<26;++ee,G<<=1);if(ee>0)for(v.iushrn(ee);ee-- >0;)(B.isOdd()||T.isOdd())&&(B.iadd(te),T.isub(re)),B.iushrn(1),T.iushrn(1);P.cmp(v)>=0?(P.isub(v),m.isub(B),E.isub(T)):(v.isub(P),B.isub(m),T.isub(E))}return{a:B,b:T,gcd:v.iushln(q)}},a.prototype._invmp=function(x){k(x.negative===0),k(!x.isZero());var P=this,v=x.clone();P=P.negative!==0?P.umod(x):P.clone();for(var m,E=new a(1),B=new a(0),T=v.clone();P.cmpn(1)>0&&v.cmpn(1)>0;){for(var q=0,te=1;!(P.words[0]&te)&&q<26;++q,te<<=1);if(q>0)for(P.iushrn(q);q-- >0;)E.isOdd()&&E.iadd(T),E.iushrn(1);for(var re=0,ie=1;!(v.words[0]&ie)&&re<26;++re,ie<<=1);if(re>0)for(v.iushrn(re);re-- >0;)B.isOdd()&&B.iadd(T),B.iushrn(1);P.cmp(v)>=0?(P.isub(v),E.isub(B)):(v.isub(P),B.isub(E))}return(m=P.cmpn(1)===0?E:B).cmpn(0)<0&&m.iadd(x),m},a.prototype.gcd=function(x){if(this.isZero())return x.abs();if(x.isZero())return this.abs();var P=this.clone(),v=x.clone();P.negative=0,v.negative=0;for(var m=0;P.isEven()&&v.isEven();m++)P.iushrn(1),v.iushrn(1);for(;;){for(;P.isEven();)P.iushrn(1);for(;v.isEven();)v.iushrn(1);var E=P.cmp(v);if(E<0){var B=P;P=v,v=B}else if(E===0||v.cmpn(1)===0)break;P.isub(v)}return v.iushln(m)},a.prototype.invm=function(x){return this.egcd(x).a.umod(x)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(x){return this.words[0]&x},a.prototype.bincn=function(x){k(typeof x=="number");var P=x%26,v=(x-P)/26,m=1<>>26,T&=67108863,this.words[B]=T}return E!==0&&(this.words[B]=E,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(x){var P,v=x<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;if(this.strip(),this.length>1)P=1;else{v&&(x=-x),k(x<=67108863,"Number is too big");var m=0|this.words[0];P=m===x?0:mx.length)return 1;if(this.length=0;v--){var m=0|this.words[v],E=0|x.words[v];if(m!==E){mE&&(P=1);break}}return P},a.prototype.gtn=function(x){return this.cmpn(x)===1},a.prototype.gt=function(x){return this.cmp(x)===1},a.prototype.gten=function(x){return this.cmpn(x)>=0},a.prototype.gte=function(x){return this.cmp(x)>=0},a.prototype.ltn=function(x){return this.cmpn(x)===-1},a.prototype.lt=function(x){return this.cmp(x)===-1},a.prototype.lten=function(x){return this.cmpn(x)<=0},a.prototype.lte=function(x){return this.cmp(x)<=0},a.prototype.eqn=function(x){return this.cmpn(x)===0},a.prototype.eq=function(x){return this.cmp(x)===0},a.red=function(x){return new N(x)},a.prototype.toRed=function(x){return k(!this.red,"Already a number in reduction context"),k(this.negative===0,"red works only with positives"),x.convertTo(this)._forceRed(x)},a.prototype.fromRed=function(){return k(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(x){return this.red=x,this},a.prototype.forceRed=function(x){return k(!this.red,"Already a number in reduction context"),this._forceRed(x)},a.prototype.redAdd=function(x){return k(this.red,"redAdd works only with red numbers"),this.red.add(this,x)},a.prototype.redIAdd=function(x){return k(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,x)},a.prototype.redSub=function(x){return k(this.red,"redSub works only with red numbers"),this.red.sub(this,x)},a.prototype.redISub=function(x){return k(this.red,"redISub works only with red numbers"),this.red.isub(this,x)},a.prototype.redShl=function(x){return k(this.red,"redShl works only with red numbers"),this.red.shl(this,x)},a.prototype.redMul=function(x){return k(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.mul(this,x)},a.prototype.redIMul=function(x){return k(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.imul(this,x)},a.prototype.redSqr=function(){return k(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return k(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return k(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return k(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return k(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(x){return k(this.red&&!x.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,x)};var _={k256:null,p224:null,p192:null,p25519:null};function b(x,P){this.name=x,this.p=new a(P,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function I(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function l(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(x){if(typeof x=="string"){var P=a._prime(x);this.m=P.p,this.prime=P}else k(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function C(x){N.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}b.prototype._tmp=function(){var x=new a(null);return x.words=new Array(Math.ceil(this.n/13)),x},b.prototype.ireduce=function(x){var P,v=x;do this.split(v,this.tmp),P=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength();while(P>this.n);var m=P0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},b.prototype.split=function(x,P){x.iushrn(this.n,0,P)},b.prototype.imulK=function(x){return x.imul(this.k)},S(I,b),I.prototype.split=function(x,P){for(var v=4194303,m=Math.min(x.length,9),E=0;E>>22,B=T}B>>>=22,x.words[E-10]=B,B===0&&x.length>10?x.length-=10:x.length-=9},I.prototype.imulK=function(x){x.words[x.length]=0,x.words[x.length+1]=0,x.length+=2;for(var P=0,v=0;v>>=26,x.words[v]=E,P=m}return P!==0&&(x.words[x.length++]=P),x},a._prime=function(x){if(_[x])return _[x];var P;if(x==="k256")P=new I;else if(x==="p224")P=new l;else if(x==="p192")P=new j;else{if(x!=="p25519")throw new Error("Unknown prime "+x);P=new M}return _[x]=P,P},N.prototype._verify1=function(x){k(x.negative===0,"red works only with positives"),k(x.red,"red works only with red numbers")},N.prototype._verify2=function(x,P){k((x.negative|P.negative)==0,"red works only with positives"),k(x.red&&x.red===P.red,"red works only with red numbers")},N.prototype.imod=function(x){return this.prime?this.prime.ireduce(x)._forceRed(this):x.umod(this.m)._forceRed(this)},N.prototype.neg=function(x){return x.isZero()?x.clone():this.m.sub(x)._forceRed(this)},N.prototype.add=function(x,P){this._verify2(x,P);var v=x.add(P);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},N.prototype.iadd=function(x,P){this._verify2(x,P);var v=x.iadd(P);return v.cmp(this.m)>=0&&v.isub(this.m),v},N.prototype.sub=function(x,P){this._verify2(x,P);var v=x.sub(P);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},N.prototype.isub=function(x,P){this._verify2(x,P);var v=x.isub(P);return v.cmpn(0)<0&&v.iadd(this.m),v},N.prototype.shl=function(x,P){return this._verify1(x),this.imod(x.ushln(P))},N.prototype.imul=function(x,P){return this._verify2(x,P),this.imod(x.imul(P))},N.prototype.mul=function(x,P){return this._verify2(x,P),this.imod(x.mul(P))},N.prototype.isqr=function(x){return this.imul(x,x.clone())},N.prototype.sqr=function(x){return this.mul(x,x)},N.prototype.sqrt=function(x){if(x.isZero())return x.clone();var P=this.m.andln(3);if(k(P%2==1),P===3){var v=this.m.add(new a(1)).iushrn(2);return this.pow(x,v)}for(var m=this.m.subn(1),E=0;!m.isZero()&&m.andln(1)===0;)E++,m.iushrn(1);k(!m.isZero());var B=new a(1).toRed(this),T=B.redNeg(),q=this.m.subn(1).iushrn(1),te=this.m.bitLength();for(te=new a(2*te*te).toRed(this);this.pow(te,q).cmp(T)!==0;)te.redIAdd(T);for(var re=this.pow(te,m),ie=this.pow(x,m.addn(1).iushrn(1)),J=this.pow(x,m),ee=E;J.cmp(B)!==0;){for(var G=J,$=0;G.cmp(B)!==0;$++)G=G.redSqr();k($=0;m--){for(var te=P.words[m],re=q-1;re>=0;re--){var ie=te>>re&1;E!==v[0]&&(E=this.sqr(E)),ie!==0||B!==0?(B<<=1,B|=ie,(++T==4||m===0&&re===0)&&(E=this.mul(E,v[B]),T=0,B=0)):T=0}q=26}return E},N.prototype.convertTo=function(x){var P=x.umod(this.m);return P===x?P.clone():P},N.prototype.convertFrom=function(x){var P=x.clone();return P.red=null,P},a.mont=function(x){return new C(x)},S(C,N),C.prototype.convertTo=function(x){return this.imod(x.ushln(this.shift))},C.prototype.convertFrom=function(x){var P=this.imod(x.mul(this.rinv));return P.red=null,P},C.prototype.imul=function(x,P){if(x.isZero()||P.isZero())return x.words[0]=0,x.length=1,x;var v=x.imul(P),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=v.isub(m).iushrn(this.shift),B=E;return E.cmp(this.m)>=0?B=E.isub(this.m):E.cmpn(0)<0&&(B=E.iadd(this.m)),B._forceRed(this)},C.prototype.mul=function(x,P){if(x.isZero()||P.isZero())return new a(0)._forceRed(this);var v=x.mul(P),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),E=v.isub(m).iushrn(this.shift),B=E;return E.cmp(this.m)>=0?B=E.isub(this.m):E.cmpn(0)<0&&(B=E.iadd(this.m)),B._forceRed(this)},C.prototype.invm=function(x){return this.imod(x._invmp(this.m).mul(this.r2))._forceRed(this)}})(D=h.nmd(D),this)},9931:(D,e,h)=>{var w;function O(S){this.rand=S}if(D.exports=function(S){return w||(w=new O(null)),w.generate(S)},D.exports.Rand=O,O.prototype.generate=function(S){return this._rand(S)},O.prototype._rand=function(S){if(this.rand.getBytes)return this.rand.getBytes(S);for(var a=new Uint8Array(S),t=0;t{var w=h(2338);D.exports=w("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},3310:(D,e,h)=>{var w=h(7191),O=h(9509).Buffer;D.exports=function(k){function S(a){var t=a.slice(0,-4),c=a.slice(-4),u=k(t);if(!(c[0]^u[0]|c[1]^u[1]|c[2]^u[2]|c[3]^u[3]))return t}return{encode:function(a){var t=k(a);return w.encode(O.concat([a,t],a.length+4))},decode:function(a){var t=S(w.decode(a));if(!t)throw new Error("Invalid checksum");return t},decodeUnsafe:function(a){var t=w.decodeUnsafe(a);if(t)return S(t)}}}},8334:(D,e,h)=>{var w=h(3482),O=h(3310);D.exports=O(function(k){var S=w("sha256").update(k).digest();return w("sha256").update(S).digest()})},8764:(D,e,h)=>{var w=h(5108);const O=h(9742),k=h(645),S=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(A){return+A!=A&&(A=0),c.alloc(+A)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function t(A){if(A>a)throw new RangeError('The value "'+A+'" is invalid for option "size"');const R=new Uint8Array(A);return Object.setPrototypeOf(R,c.prototype),R}function c(A,R,U){if(typeof A=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return r(A)}return u(A,R,U)}function u(A,R,U){if(typeof A=="string")return function(H,ne){if(typeof ne=="string"&&ne!==""||(ne="utf8"),!c.isEncoding(ne))throw new TypeError("Unknown encoding: "+ne);const oe=0|f(H,ne);let K=t(oe);const X=K.write(H,ne);return X!==oe&&(K=K.slice(0,X)),K}(A,R);if(ArrayBuffer.isView(A))return function(H){if(de(H,Uint8Array)){const ne=new Uint8Array(H);return o(ne.buffer,ne.byteOffset,ne.byteLength)}return n(H)}(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(de(A,ArrayBuffer)||A&&de(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(A,SharedArrayBuffer)||A&&de(A.buffer,SharedArrayBuffer)))return o(A,R,U);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const z=A.valueOf&&A.valueOf();if(z!=null&&z!==A)return c.from(z,R,U);const L=function(H){if(c.isBuffer(H)){const ne=0|i(H.length),oe=t(ne);return oe.length===0||H.copy(oe,0,0,ne),oe}return H.length!==void 0?typeof H.length!="number"||pe(H.length)?t(0):n(H):H.type==="Buffer"&&Array.isArray(H.data)?n(H.data):void 0}(A);if(L)return L;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return c.from(A[Symbol.toPrimitive]("string"),R,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}function s(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function r(A){return s(A),t(A<0?0:0|i(A))}function n(A){const R=A.length<0?0:0|i(A.length),U=t(R);for(let z=0;z=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|A}function f(A,R){if(c.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||de(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);const U=A.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&U===0)return 0;let L=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return le(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return ce(A).length;default:if(L)return z?-1:le(A).length;R=(""+R).toLowerCase(),L=!0}}function d(A,R,U){let z=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(R>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":return E(this,R,U);case"utf8":case"utf-8":return x(this,R,U);case"ascii":return v(this,R,U);case"latin1":case"binary":return m(this,R,U);case"base64":return C(this,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,R,U);default:if(z)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),z=!0}}function p(A,R,U){const z=A[R];A[R]=A[U],A[U]=z}function _(A,R,U,z,L){if(A.length===0)return-1;if(typeof U=="string"?(z=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),pe(U=+U)&&(U=L?0:A.length-1),U<0&&(U=A.length+U),U>=A.length){if(L)return-1;U=A.length-1}else if(U<0){if(!L)return-1;U=0}if(typeof R=="string"&&(R=c.from(R,z)),c.isBuffer(R))return R.length===0?-1:b(A,R,U,z,L);if(typeof R=="number")return R&=255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(A,R,U):Uint8Array.prototype.lastIndexOf.call(A,R,U):b(A,[R],U,z,L);throw new TypeError("val must be string, number or Buffer")}function b(A,R,U,z,L){let H,ne=1,oe=A.length,K=R.length;if(z!==void 0&&((z=String(z).toLowerCase())==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(A.length<2||R.length<2)return-1;ne=2,oe/=2,K/=2,U/=2}function X(Q,Z){return ne===1?Q[Z]:Q.readUInt16BE(Z*ne)}if(L){let Q=-1;for(H=U;Hoe&&(U=oe-K),H=U;H>=0;H--){let Q=!0;for(let Z=0;ZL&&(z=L):z=L;const H=R.length;let ne;for(z>H/2&&(z=H/2),ne=0;ne>8,K=ne%256,X.push(K),X.push(oe);return X}(R,A.length-U),A,U,z)}function C(A,R,U){return R===0&&U===A.length?O.fromByteArray(A):O.fromByteArray(A.slice(R,U))}function x(A,R,U){U=Math.min(A.length,U);const z=[];let L=R;for(;L239?4:H>223?3:H>191?2:1;if(L+oe<=U){let K,X,Q,Z;switch(oe){case 1:H<128&&(ne=H);break;case 2:K=A[L+1],(192&K)==128&&(Z=(31&H)<<6|63&K,Z>127&&(ne=Z));break;case 3:K=A[L+1],X=A[L+2],(192&K)==128&&(192&X)==128&&(Z=(15&H)<<12|(63&K)<<6|63&X,Z>2047&&(Z<55296||Z>57343)&&(ne=Z));break;case 4:K=A[L+1],X=A[L+2],Q=A[L+3],(192&K)==128&&(192&X)==128&&(192&Q)==128&&(Z=(15&H)<<18|(63&K)<<12|(63&X)<<6|63&Q,Z>65535&&Z<1114112&&(ne=Z))}}ne===null?(ne=65533,oe=1):ne>65535&&(ne-=65536,z.push(ne>>>10&1023|55296),ne=56320|1023&ne),z.push(ne),L+=oe}return function(H){const ne=H.length;if(ne<=P)return String.fromCharCode.apply(String,H);let oe="",K=0;for(;Kz.length?(c.isBuffer(H)||(H=c.from(H)),H.copy(z,L)):Uint8Array.prototype.set.call(z,H,L);else{if(!c.isBuffer(H))throw new TypeError('"list" argument must be an Array of Buffers');H.copy(z,L)}L+=H.length}return z},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const A=this.length;if(A%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let R=0;RR&&(A+=" ... "),""},S&&(c.prototype[S]=c.prototype.inspect),c.prototype.compare=function(A,R,U,z,L){if(de(A,Uint8Array)&&(A=c.from(A,A.offset,A.byteLength)),!c.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(R===void 0&&(R=0),U===void 0&&(U=A?A.length:0),z===void 0&&(z=0),L===void 0&&(L=this.length),R<0||U>A.length||z<0||L>this.length)throw new RangeError("out of range index");if(z>=L&&R>=U)return 0;if(z>=L)return-1;if(R>=U)return 1;if(this===A)return 0;let H=(L>>>=0)-(z>>>=0),ne=(U>>>=0)-(R>>>=0);const oe=Math.min(H,ne),K=this.slice(z,L),X=A.slice(R,U);for(let Q=0;Q>>=0,isFinite(U)?(U>>>=0,z===void 0&&(z="utf8")):(z=U,U=void 0)}const L=this.length-R;if((U===void 0||U>L)&&(U=L),A.length>0&&(U<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");z||(z="utf8");let H=!1;for(;;)switch(z){case"hex":return I(this,A,R,U);case"utf8":case"utf-8":return l(this,A,R,U);case"ascii":case"latin1":case"binary":return j(this,A,R,U);case"base64":return M(this,A,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,A,R,U);default:if(H)throw new TypeError("Unknown encoding: "+z);z=(""+z).toLowerCase(),H=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function v(A,R,U){let z="";U=Math.min(A.length,U);for(let L=R;Lz)&&(U=z);let L="";for(let H=R;HU)throw new RangeError("Trying to access beyond buffer length")}function q(A,R,U,z,L,H){if(!c.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>L||RA.length)throw new RangeError("Index out of range")}function te(A,R,U,z,L){Y(R,z,L,A,U,7);let H=Number(R&BigInt(4294967295));A[U++]=H,H>>=8,A[U++]=H,H>>=8,A[U++]=H,H>>=8,A[U++]=H;let ne=Number(R>>BigInt(32)&BigInt(4294967295));return A[U++]=ne,ne>>=8,A[U++]=ne,ne>>=8,A[U++]=ne,ne>>=8,A[U++]=ne,U}function re(A,R,U,z,L){Y(R,z,L,A,U,7);let H=Number(R&BigInt(4294967295));A[U+7]=H,H>>=8,A[U+6]=H,H>>=8,A[U+5]=H,H>>=8,A[U+4]=H;let ne=Number(R>>BigInt(32)&BigInt(4294967295));return A[U+3]=ne,ne>>=8,A[U+2]=ne,ne>>=8,A[U+1]=ne,ne>>=8,A[U]=ne,U+8}function ie(A,R,U,z,L,H){if(U+z>A.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function J(A,R,U,z,L){return R=+R,U>>>=0,L||ie(A,0,U,4),k.write(A,R,U,z,23,4),U+4}function ee(A,R,U,z,L){return R=+R,U>>>=0,L||ie(A,0,U,8),k.write(A,R,U,z,52,8),U+8}c.prototype.slice=function(A,R){const U=this.length;(A=~~A)<0?(A+=U)<0&&(A=0):A>U&&(A=U),(R=R===void 0?U:~~R)<0?(R+=U)<0&&(R=0):R>U&&(R=U),R>>=0,R>>>=0,U||T(A,R,this.length);let z=this[A],L=1,H=0;for(;++H>>=0,R>>>=0,U||T(A,R,this.length);let z=this[A+--R],L=1;for(;R>0&&(L*=256);)z+=this[A+--R]*L;return z},c.prototype.readUint8=c.prototype.readUInt8=function(A,R){return A>>>=0,R||T(A,1,this.length),this[A]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(A,R){return A>>>=0,R||T(A,2,this.length),this[A]|this[A+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(A,R){return A>>>=0,R||T(A,2,this.length),this[A]<<8|this[A+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(A,R){return A>>>=0,R||T(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(A,R){return A>>>=0,R||T(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},c.prototype.readBigUInt64LE=V(function(A){F(A>>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=R+256*this[++A]+65536*this[++A]+this[++A]*2**24,L=this[++A]+256*this[++A]+65536*this[++A]+U*2**24;return BigInt(z)+(BigInt(L)<>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=R*2**24+65536*this[++A]+256*this[++A]+this[++A],L=this[++A]*2**24+65536*this[++A]+256*this[++A]+U;return(BigInt(z)<>>=0,R>>>=0,U||T(A,R,this.length);let z=this[A],L=1,H=0;for(;++H=L&&(z-=Math.pow(2,8*R)),z},c.prototype.readIntBE=function(A,R,U){A>>>=0,R>>>=0,U||T(A,R,this.length);let z=R,L=1,H=this[A+--z];for(;z>0&&(L*=256);)H+=this[A+--z]*L;return L*=128,H>=L&&(H-=Math.pow(2,8*R)),H},c.prototype.readInt8=function(A,R){return A>>>=0,R||T(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},c.prototype.readInt16LE=function(A,R){A>>>=0,R||T(A,2,this.length);const U=this[A]|this[A+1]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt16BE=function(A,R){A>>>=0,R||T(A,2,this.length);const U=this[A+1]|this[A]<<8;return 32768&U?4294901760|U:U},c.prototype.readInt32LE=function(A,R){return A>>>=0,R||T(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},c.prototype.readInt32BE=function(A,R){return A>>>=0,R||T(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},c.prototype.readBigInt64LE=V(function(A){F(A>>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=this[A+4]+256*this[A+5]+65536*this[A+6]+(U<<24);return(BigInt(z)<>>=0,"offset");const R=this[A],U=this[A+7];R!==void 0&&U!==void 0||ae(A,this.length-8);const z=(R<<24)+65536*this[++A]+256*this[++A]+this[++A];return(BigInt(z)<>>=0,R||T(A,4,this.length),k.read(this,A,!0,23,4)},c.prototype.readFloatBE=function(A,R){return A>>>=0,R||T(A,4,this.length),k.read(this,A,!1,23,4)},c.prototype.readDoubleLE=function(A,R){return A>>>=0,R||T(A,8,this.length),k.read(this,A,!0,52,8)},c.prototype.readDoubleBE=function(A,R){return A>>>=0,R||T(A,8,this.length),k.read(this,A,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(A,R,U,z){A=+A,R>>>=0,U>>>=0,z||q(this,A,R,U,Math.pow(2,8*U)-1,0);let L=1,H=0;for(this[R]=255&A;++H>>=0,U>>>=0,z||q(this,A,R,U,Math.pow(2,8*U)-1,0);let L=U-1,H=1;for(this[R+L]=255&A;--L>=0&&(H*=256);)this[R+L]=A/H&255;return R+U},c.prototype.writeUint8=c.prototype.writeUInt8=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,1,255,0),this[R]=255&A,R+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,65535,0),this[R]=255&A,this[R+1]=A>>>8,R+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,65535,0),this[R]=A>>>8,this[R+1]=255&A,R+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,4294967295,0),this[R+3]=A>>>24,this[R+2]=A>>>16,this[R+1]=A>>>8,this[R]=255&A,R+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,4294967295,0),this[R]=A>>>24,this[R+1]=A>>>16,this[R+2]=A>>>8,this[R+3]=255&A,R+4},c.prototype.writeBigUInt64LE=V(function(A,R=0){return te(this,A,R,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=V(function(A,R=0){return re(this,A,R,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(A,R,U,z){if(A=+A,R>>>=0,!z){const oe=Math.pow(2,8*U-1);q(this,A,R,U,oe-1,-oe)}let L=0,H=1,ne=0;for(this[R]=255&A;++L>0)-ne&255;return R+U},c.prototype.writeIntBE=function(A,R,U,z){if(A=+A,R>>>=0,!z){const oe=Math.pow(2,8*U-1);q(this,A,R,U,oe-1,-oe)}let L=U-1,H=1,ne=0;for(this[R+L]=255&A;--L>=0&&(H*=256);)A<0&&ne===0&&this[R+L+1]!==0&&(ne=1),this[R+L]=(A/H>>0)-ne&255;return R+U},c.prototype.writeInt8=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,1,127,-128),A<0&&(A=255+A+1),this[R]=255&A,R+1},c.prototype.writeInt16LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,32767,-32768),this[R]=255&A,this[R+1]=A>>>8,R+2},c.prototype.writeInt16BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,2,32767,-32768),this[R]=A>>>8,this[R+1]=255&A,R+2},c.prototype.writeInt32LE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,2147483647,-2147483648),this[R]=255&A,this[R+1]=A>>>8,this[R+2]=A>>>16,this[R+3]=A>>>24,R+4},c.prototype.writeInt32BE=function(A,R,U){return A=+A,R>>>=0,U||q(this,A,R,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[R]=A>>>24,this[R+1]=A>>>16,this[R+2]=A>>>8,this[R+3]=255&A,R+4},c.prototype.writeBigInt64LE=V(function(A,R=0){return te(this,A,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=V(function(A,R=0){return re(this,A,R,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(A,R,U){return J(this,A,R,!0,U)},c.prototype.writeFloatBE=function(A,R,U){return J(this,A,R,!1,U)},c.prototype.writeDoubleLE=function(A,R,U){return ee(this,A,R,!0,U)},c.prototype.writeDoubleBE=function(A,R,U){return ee(this,A,R,!1,U)},c.prototype.copy=function(A,R,U,z){if(!c.isBuffer(A))throw new TypeError("argument should be a Buffer");if(U||(U=0),z||z===0||(z=this.length),R>=A.length&&(R=A.length),R||(R=0),z>0&&z=this.length)throw new RangeError("Index out of range");if(z<0)throw new RangeError("sourceEnd out of bounds");z>this.length&&(z=this.length),A.length-R>>=0,U=U===void 0?this.length:U>>>0,A||(A=0),typeof A=="number")for(L=R;L=z+4;U-=3)R=`_${A.slice(U-3,U)}${R}`;return`${A.slice(0,U)}${R}`}function Y(A,R,U,z,L,H){if(A>U||A3?R===0||R===BigInt(0)?`>= 0${ne} and < 2${ne} ** ${8*(H+1)}${ne}`:`>= -(2${ne} ** ${8*(H+1)-1}${ne}) and < 2 ** ${8*(H+1)-1}${ne}`:`>= ${R}${ne} and <= ${U}${ne}`,new G.ERR_OUT_OF_RANGE("value",oe,A)}(function(ne,oe,K){F(oe,"offset"),ne[oe]!==void 0&&ne[oe+K]!==void 0||ae(oe,ne.length-(K+1))})(z,L,H)}function F(A,R){if(typeof A!="number")throw new G.ERR_INVALID_ARG_TYPE(R,"number",A)}function ae(A,R,U){throw Math.floor(A)!==A?(F(A,U),new G.ERR_OUT_OF_RANGE(U||"offset","an integer",A)):R<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE(U||"offset",`>= ${U?1:0} and <= ${R}`,A)}$("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),$("ERR_INVALID_ARG_TYPE",function(A,R){return`The "${A}" argument must be of type number. Received type ${typeof R}`},TypeError),$("ERR_OUT_OF_RANGE",function(A,R,U){let z=`The value of "${A}" is out of range.`,L=U;return Number.isInteger(U)&&Math.abs(U)>4294967296?L=W(String(U)):typeof U=="bigint"&&(L=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(L=W(L)),L+="n"),z+=` It must be ${R}. Received ${L}`,z},RangeError);const he=/[^+/0-9A-Za-z-_]/g;function le(A,R){let U;R=R||1/0;const z=A.length;let L=null;const H=[];for(let ne=0;ne55295&&U<57344){if(!L){if(U>56319){(R-=3)>-1&&H.push(239,191,189);continue}if(ne+1===z){(R-=3)>-1&&H.push(239,191,189);continue}L=U;continue}if(U<56320){(R-=3)>-1&&H.push(239,191,189),L=U;continue}U=65536+(L-55296<<10|U-56320)}else L&&(R-=3)>-1&&H.push(239,191,189);if(L=null,U<128){if((R-=1)<0)break;H.push(U)}else if(U<2048){if((R-=2)<0)break;H.push(U>>6|192,63&U|128)}else if(U<65536){if((R-=3)<0)break;H.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;H.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return H}function ce(A){return O.toByteArray(function(R){if((R=(R=R.split("=")[0]).trim().replace(he,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(A))}function ve(A,R,U,z){let L;for(L=0;L=R.length||L>=A.length);++L)R[L+U]=A[L];return L}function de(A,R){return A instanceof R||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===R.name}function pe(A){return A!=A}const ye=function(){const A="0123456789abcdef",R=new Array(256);for(let U=0;U<16;++U){const z=16*U;for(let L=0;L<16;++L)R[z+L]=A[U]+A[L]}return R}();function V(A){return typeof BigInt>"u"?y:A}function y(){throw new Error("BigInt not supported")}},1924:(D,e,h)=>{var w=h(210),O=h(5559),k=O(w("String.prototype.indexOf"));D.exports=function(S,a){var t=w(S,!!a);return typeof t=="function"&&k(S,".prototype.")>-1?O(t):t}},5559:(D,e,h)=>{var w=h(8612),O=h(210),k=O("%Function.prototype.apply%"),S=O("%Function.prototype.call%"),a=O("%Reflect.apply%",!0)||w.call(S,k),t=O("%Object.getOwnPropertyDescriptor%",!0),c=O("%Object.defineProperty%",!0),u=O("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}D.exports=function(r){var n=a(w,S,arguments);return t&&c&&t(n,"length").configurable&&c(n,"length",{value:1+u(0,r.length-(arguments.length-1))}),n};var s=function(){return a(w,k,arguments)};c?c(D.exports,"apply",{value:s}):D.exports.apply=s},1027:(D,e,h)=>{var w=h(9509).Buffer,O=h(2830).Transform,k=h(2553).s;function S(a){O.call(this),this.hashMode=typeof a=="string",this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}h(5717)(S,O),S.prototype.update=function(a,t,c){typeof a=="string"&&(a=w.from(a,t));var u=this._update(a);return this.hashMode?this:(c&&(u=this._toString(u,c)),u)},S.prototype.setAutoPadding=function(){},S.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},S.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},S.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},S.prototype._transform=function(a,t,c){var u;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(s){u=s}finally{c(u)}},S.prototype._flush=function(a){var t;try{this.push(this.__final())}catch(c){t=c}a(t)},S.prototype._finalOrDigest=function(a){var t=this.__final()||w.alloc(0);return a&&(t=this._toString(t,a,!0)),t},S.prototype._toString=function(a,t,c){if(this._decoder||(this._decoder=new k(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var u=this._decoder.write(a);return c&&(u+=this._decoder.end()),u},D.exports=S},5108:(D,e,h)=>{var w=h(9539),O=h(9282);function k(){return new Date().getTime()}var S,a=Array.prototype.slice,t={};S=h.g!==void 0&&h.g.console?h.g.console:typeof window<"u"&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){S.log.apply(S,arguments)},"info"],[function(){S.log.apply(S,arguments)},"warn"],[function(){S.warn.apply(S,arguments)},"error"],[function(o){t[o]=k()},"time"],[function(o){var i=t[o];if(!i)throw new Error("No such label: "+o);delete t[o];var f=k()-i;S.log(o+": "+f+"ms")},"timeEnd"],[function(){var o=new Error;o.name="Trace",o.message=w.format.apply(null,arguments),S.error(o.stack)},"trace"],[function(o){S.log(w.inspect(o)+` +`)},"dir"],[function(o){if(!o){var i=a.call(arguments,1);O.ok(!1,w.format.apply(null,i))}},"assert"]],u=0;u{var w=h(5717),O=h(2318),k=h(9785),S=h(9072),a=h(1027);function t(c){a.call(this,"digest"),this._hash=c}w(t,a),t.prototype._update=function(c){this._hash.update(c)},t.prototype._final=function(){return this._hash.digest()},D.exports=function(c){return(c=c.toLowerCase())==="md5"?new O:c==="rmd160"||c==="ripemd160"?new k:new t(S(c))}},8028:(D,e,h)=>{var w=h(2318);D.exports=function(O){return new w().update(O).digest()}},8355:(D,e,h)=>{var w=h(5717),O=h(1031),k=h(1027),S=h(9509).Buffer,a=h(8028),t=h(9785),c=h(9072),u=S.alloc(128);function s(r,n){k.call(this,"digest"),typeof n=="string"&&(n=S.from(n));var o=r==="sha512"||r==="sha384"?128:64;this._alg=r,this._key=n,n.length>o?n=(r==="rmd160"?new t:c(r)).update(n).digest():n.length{var w=h(5717),O=h(9509).Buffer,k=h(1027),S=O.alloc(128),a=64;function t(c,u){k.call(this,"digest"),typeof u=="string"&&(u=O.from(u)),this._alg=c,this._key=u,u.length>a?u=c(u):u.length-1};function o(v){if(typeof v!="string"&&(v=String(v)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(v))throw new TypeError("Invalid character in header field name");return v.toLowerCase()}function i(v){return typeof v!="string"&&(v=String(v)),v}function f(v){var m={next:function(){var E=v.shift();return{done:E===void 0,value:E}}};return t&&(m[Symbol.iterator]=function(){return m}),m}function d(v){this.map={},v instanceof d?v.forEach(function(m,E){this.append(E,m)},this):Array.isArray(v)?v.forEach(function(m){this.append(m[0],m[1])},this):v&&Object.getOwnPropertyNames(v).forEach(function(m){this.append(m,v[m])},this)}function p(v){if(v.bodyUsed)return Promise.reject(new TypeError("Already read"));v.bodyUsed=!0}function _(v){return new Promise(function(m,E){v.onload=function(){m(v.result)},v.onerror=function(){E(v.error)}})}function b(v){var m=new FileReader,E=_(m);return m.readAsArrayBuffer(v),E}function I(v){if(v.slice)return v.slice(0);var m=new Uint8Array(v.byteLength);return m.set(new Uint8Array(v)),m.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(v){var m;this._bodyInit=v,v?typeof v=="string"?this._bodyText=v:c&&Blob.prototype.isPrototypeOf(v)?this._bodyBlob=v:u&&FormData.prototype.isPrototypeOf(v)?this._bodyFormData=v:a&&URLSearchParams.prototype.isPrototypeOf(v)?this._bodyText=v.toString():s&&c&&(m=v)&&DataView.prototype.isPrototypeOf(m)?(this._bodyArrayBuffer=I(v.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(v)||n(v))?this._bodyArrayBuffer=I(v):this._bodyText=v=Object.prototype.toString.call(v):this._bodyText="",this.headers.get("content-type")||(typeof v=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a&&URLSearchParams.prototype.isPrototypeOf(v)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c&&(this.blob=function(){var v=p(this);if(v)return v;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var v,m,E,B=p(this);if(B)return B;if(this._bodyBlob)return v=this._bodyBlob,E=_(m=new FileReader),m.readAsText(v),E;if(this._bodyArrayBuffer)return Promise.resolve(function(T){for(var q=new Uint8Array(T),te=new Array(q.length),re=0;re-1?B:E),this.mode=m.mode||this.mode||null,this.signal=m.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(T)}function N(v){var m=new FormData;return v.trim().split("&").forEach(function(E){if(E){var B=E.split("="),T=B.shift().replace(/\+/g," "),q=B.join("=").replace(/\+/g," ");m.append(decodeURIComponent(T),decodeURIComponent(q))}}),m}function C(v,m){m||(m={}),this.type="default",this.status=m.status===void 0?200:m.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in m?m.statusText:"OK",this.headers=new d(m.headers),this.url=m.url||"",this._initBody(v)}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})},l.call(M.prototype),l.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},C.error=function(){var v=new C(null,{status:0,statusText:""});return v.type="error",v};var x=[301,302,303,307,308];C.redirect=function(v,m){if(x.indexOf(m)===-1)throw new RangeError("Invalid status code");return new C(null,{status:m,headers:{location:v}})},S.DOMException=k.DOMException;try{new S.DOMException}catch{S.DOMException=function(m,E){this.message=m,this.name=E;var B=Error(m);this.stack=B.stack},S.DOMException.prototype=Object.create(Error.prototype),S.DOMException.prototype.constructor=S.DOMException}function P(v,m){return new Promise(function(E,B){var T=new M(v,m);if(T.signal&&T.signal.aborted)return B(new S.DOMException("Aborted","AbortError"));var q=new XMLHttpRequest;function te(){q.abort()}q.onload=function(){var re,ie,J={status:q.status,statusText:q.statusText,headers:(re=q.getAllResponseHeaders()||"",ie=new d,re.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(G){var $=G.split(":"),W=$.shift().trim();if(W){var Y=$.join(":").trim();ie.append(W,Y)}}),ie)};J.url="responseURL"in q?q.responseURL:J.headers.get("X-Request-URL");var ee="response"in q?q.response:q.responseText;E(new C(ee,J))},q.onerror=function(){B(new TypeError("Network request failed"))},q.ontimeout=function(){B(new TypeError("Network request failed"))},q.onabort=function(){B(new S.DOMException("Aborted","AbortError"))},q.open(T.method,T.url,!0),T.credentials==="include"?q.withCredentials=!0:T.credentials==="omit"&&(q.withCredentials=!1),"responseType"in q&&c&&(q.responseType="blob"),T.headers.forEach(function(re,ie){q.setRequestHeader(ie,re)}),T.signal&&(T.signal.addEventListener("abort",te),q.onreadystatechange=function(){q.readyState===4&&T.signal.removeEventListener("abort",te)}),q.send(T._bodyInit===void 0?null:T._bodyInit)})}P.polyfill=!0,k.fetch||(k.fetch=P,k.Headers=d,k.Request=M,k.Response=C),S.Headers=d,S.Request=M,S.Response=C,S.fetch=P,Object.defineProperty(S,"__esModule",{value:!0})})({})})(w),w.fetch.ponyfill=!0,delete w.fetch.polyfill;var O=w;(e=O.fetch).default=O.fetch,e.fetch=O.fetch,e.Headers=O.Headers,e.Request=O.Request,e.Response=O.Response,D.exports=e},4063:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0});let h=new Uint8Array(32);function w($){var W,Y=new Float64Array(16);if($)for(W=0;W<$.length;W++)Y[W]=$[W];return Y}h[0]=9;const O=w(),k=w([1]),S=w([56129,1]),a=w([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),t=w([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),c=w([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),u=w([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),s=w([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function r($,W,Y,F){$[W]=Y>>24&255,$[W+1]=Y>>16&255,$[W+2]=Y>>8&255,$[W+3]=255&Y,$[W+4]=F>>24&255,$[W+5]=F>>16&255,$[W+6]=F>>8&255,$[W+7]=255&F}function n($,W,Y,F){return function(ae,he,le,ce,ve){var de,pe=0;for(de=0;de<32;de++)pe|=ae[he+de]^le[ce+de];return(1&pe-1>>>8)-1}($,W,Y,F)}function o($,W){var Y;for(Y=0;Y<16;Y++)$[Y]=0|W[Y]}function i($){var W,Y,F=1;for(W=0;W<16;W++)Y=$[W]+F+65535,F=Math.floor(Y/65536),$[W]=Y-65536*F;$[0]+=F-1+37*(F-1)}function f($,W,Y){for(var F,ae=~(Y-1),he=0;he<16;he++)F=ae&($[he]^W[he]),$[he]^=F,W[he]^=F}function d($,W){var Y,F,ae,he=w(),le=w();for(Y=0;Y<16;Y++)le[Y]=W[Y];for(i(le),i(le),i(le),F=0;F<2;F++){for(he[0]=le[0]-65517,Y=1;Y<15;Y++)he[Y]=le[Y]-65535-(he[Y-1]>>16&1),he[Y-1]&=65535;he[15]=le[15]-32767-(he[14]>>16&1),ae=he[15]>>16&1,he[14]&=65535,f(le,he,1-ae)}for(Y=0;Y<16;Y++)$[2*Y]=255&le[Y],$[2*Y+1]=le[Y]>>8}function p($,W){var Y=new Uint8Array(32),F=new Uint8Array(32);return d(Y,$),d(F,W),n(Y,0,F,0)}function _($){var W=new Uint8Array(32);return d(W,$),1&W[0]}function b($,W){var Y;for(Y=0;Y<16;Y++)$[Y]=W[2*Y]+(W[2*Y+1]<<8);$[15]&=32767}function I($,W,Y){for(var F=0;F<16;F++)$[F]=W[F]+Y[F]}function l($,W,Y){for(var F=0;F<16;F++)$[F]=W[F]-Y[F]}function j($,W,Y){var F,ae,he=0,le=0,ce=0,ve=0,de=0,pe=0,ye=0,V=0,y=0,A=0,R=0,U=0,z=0,L=0,H=0,ne=0,oe=0,K=0,X=0,Q=0,Z=0,se=0,ue=0,fe=0,me=0,ge=0,be=0,_e=0,we=0,Ee=0,xe=0,Se=Y[0],ke=Y[1],Re=Y[2],Oe=Y[3],Pe=Y[4],Me=Y[5],Ae=Y[6],Ne=Y[7],Te=Y[8],Ce=Y[9],Ie=Y[10],De=Y[11],je=Y[12],Ue=Y[13],ze=Y[14],Be=Y[15];he+=(F=W[0])*Se,le+=F*ke,ce+=F*Re,ve+=F*Oe,de+=F*Pe,pe+=F*Me,ye+=F*Ae,V+=F*Ne,y+=F*Te,A+=F*Ce,R+=F*Ie,U+=F*De,z+=F*je,L+=F*Ue,H+=F*ze,ne+=F*Be,le+=(F=W[1])*Se,ce+=F*ke,ve+=F*Re,de+=F*Oe,pe+=F*Pe,ye+=F*Me,V+=F*Ae,y+=F*Ne,A+=F*Te,R+=F*Ce,U+=F*Ie,z+=F*De,L+=F*je,H+=F*Ue,ne+=F*ze,oe+=F*Be,ce+=(F=W[2])*Se,ve+=F*ke,de+=F*Re,pe+=F*Oe,ye+=F*Pe,V+=F*Me,y+=F*Ae,A+=F*Ne,R+=F*Te,U+=F*Ce,z+=F*Ie,L+=F*De,H+=F*je,ne+=F*Ue,oe+=F*ze,K+=F*Be,ve+=(F=W[3])*Se,de+=F*ke,pe+=F*Re,ye+=F*Oe,V+=F*Pe,y+=F*Me,A+=F*Ae,R+=F*Ne,U+=F*Te,z+=F*Ce,L+=F*Ie,H+=F*De,ne+=F*je,oe+=F*Ue,K+=F*ze,X+=F*Be,de+=(F=W[4])*Se,pe+=F*ke,ye+=F*Re,V+=F*Oe,y+=F*Pe,A+=F*Me,R+=F*Ae,U+=F*Ne,z+=F*Te,L+=F*Ce,H+=F*Ie,ne+=F*De,oe+=F*je,K+=F*Ue,X+=F*ze,Q+=F*Be,pe+=(F=W[5])*Se,ye+=F*ke,V+=F*Re,y+=F*Oe,A+=F*Pe,R+=F*Me,U+=F*Ae,z+=F*Ne,L+=F*Te,H+=F*Ce,ne+=F*Ie,oe+=F*De,K+=F*je,X+=F*Ue,Q+=F*ze,Z+=F*Be,ye+=(F=W[6])*Se,V+=F*ke,y+=F*Re,A+=F*Oe,R+=F*Pe,U+=F*Me,z+=F*Ae,L+=F*Ne,H+=F*Te,ne+=F*Ce,oe+=F*Ie,K+=F*De,X+=F*je,Q+=F*Ue,Z+=F*ze,se+=F*Be,V+=(F=W[7])*Se,y+=F*ke,A+=F*Re,R+=F*Oe,U+=F*Pe,z+=F*Me,L+=F*Ae,H+=F*Ne,ne+=F*Te,oe+=F*Ce,K+=F*Ie,X+=F*De,Q+=F*je,Z+=F*Ue,se+=F*ze,ue+=F*Be,y+=(F=W[8])*Se,A+=F*ke,R+=F*Re,U+=F*Oe,z+=F*Pe,L+=F*Me,H+=F*Ae,ne+=F*Ne,oe+=F*Te,K+=F*Ce,X+=F*Ie,Q+=F*De,Z+=F*je,se+=F*Ue,ue+=F*ze,fe+=F*Be,A+=(F=W[9])*Se,R+=F*ke,U+=F*Re,z+=F*Oe,L+=F*Pe,H+=F*Me,ne+=F*Ae,oe+=F*Ne,K+=F*Te,X+=F*Ce,Q+=F*Ie,Z+=F*De,se+=F*je,ue+=F*Ue,fe+=F*ze,me+=F*Be,R+=(F=W[10])*Se,U+=F*ke,z+=F*Re,L+=F*Oe,H+=F*Pe,ne+=F*Me,oe+=F*Ae,K+=F*Ne,X+=F*Te,Q+=F*Ce,Z+=F*Ie,se+=F*De,ue+=F*je,fe+=F*Ue,me+=F*ze,ge+=F*Be,U+=(F=W[11])*Se,z+=F*ke,L+=F*Re,H+=F*Oe,ne+=F*Pe,oe+=F*Me,K+=F*Ae,X+=F*Ne,Q+=F*Te,Z+=F*Ce,se+=F*Ie,ue+=F*De,fe+=F*je,me+=F*Ue,ge+=F*ze,be+=F*Be,z+=(F=W[12])*Se,L+=F*ke,H+=F*Re,ne+=F*Oe,oe+=F*Pe,K+=F*Me,X+=F*Ae,Q+=F*Ne,Z+=F*Te,se+=F*Ce,ue+=F*Ie,fe+=F*De,me+=F*je,ge+=F*Ue,be+=F*ze,_e+=F*Be,L+=(F=W[13])*Se,H+=F*ke,ne+=F*Re,oe+=F*Oe,K+=F*Pe,X+=F*Me,Q+=F*Ae,Z+=F*Ne,se+=F*Te,ue+=F*Ce,fe+=F*Ie,me+=F*De,ge+=F*je,be+=F*Ue,_e+=F*ze,we+=F*Be,H+=(F=W[14])*Se,ne+=F*ke,oe+=F*Re,K+=F*Oe,X+=F*Pe,Q+=F*Me,Z+=F*Ae,se+=F*Ne,ue+=F*Te,fe+=F*Ce,me+=F*Ie,ge+=F*De,be+=F*je,_e+=F*Ue,we+=F*ze,Ee+=F*Be,ne+=(F=W[15])*Se,le+=38*(K+=F*Re),ce+=38*(X+=F*Oe),ve+=38*(Q+=F*Pe),de+=38*(Z+=F*Me),pe+=38*(se+=F*Ae),ye+=38*(ue+=F*Ne),V+=38*(fe+=F*Te),y+=38*(me+=F*Ce),A+=38*(ge+=F*Ie),R+=38*(be+=F*De),U+=38*(_e+=F*je),z+=38*(we+=F*Ue),L+=38*(Ee+=F*ze),H+=38*(xe+=F*Be),he=(F=(he+=38*(oe+=F*ke))+(ae=1)+65535)-65536*(ae=Math.floor(F/65536)),le=(F=le+ae+65535)-65536*(ae=Math.floor(F/65536)),ce=(F=ce+ae+65535)-65536*(ae=Math.floor(F/65536)),ve=(F=ve+ae+65535)-65536*(ae=Math.floor(F/65536)),de=(F=de+ae+65535)-65536*(ae=Math.floor(F/65536)),pe=(F=pe+ae+65535)-65536*(ae=Math.floor(F/65536)),ye=(F=ye+ae+65535)-65536*(ae=Math.floor(F/65536)),V=(F=V+ae+65535)-65536*(ae=Math.floor(F/65536)),y=(F=y+ae+65535)-65536*(ae=Math.floor(F/65536)),A=(F=A+ae+65535)-65536*(ae=Math.floor(F/65536)),R=(F=R+ae+65535)-65536*(ae=Math.floor(F/65536)),U=(F=U+ae+65535)-65536*(ae=Math.floor(F/65536)),z=(F=z+ae+65535)-65536*(ae=Math.floor(F/65536)),L=(F=L+ae+65535)-65536*(ae=Math.floor(F/65536)),H=(F=H+ae+65535)-65536*(ae=Math.floor(F/65536)),ne=(F=ne+ae+65535)-65536*(ae=Math.floor(F/65536)),he=(F=(he+=ae-1+37*(ae-1))+(ae=1)+65535)-65536*(ae=Math.floor(F/65536)),le=(F=le+ae+65535)-65536*(ae=Math.floor(F/65536)),ce=(F=ce+ae+65535)-65536*(ae=Math.floor(F/65536)),ve=(F=ve+ae+65535)-65536*(ae=Math.floor(F/65536)),de=(F=de+ae+65535)-65536*(ae=Math.floor(F/65536)),pe=(F=pe+ae+65535)-65536*(ae=Math.floor(F/65536)),ye=(F=ye+ae+65535)-65536*(ae=Math.floor(F/65536)),V=(F=V+ae+65535)-65536*(ae=Math.floor(F/65536)),y=(F=y+ae+65535)-65536*(ae=Math.floor(F/65536)),A=(F=A+ae+65535)-65536*(ae=Math.floor(F/65536)),R=(F=R+ae+65535)-65536*(ae=Math.floor(F/65536)),U=(F=U+ae+65535)-65536*(ae=Math.floor(F/65536)),z=(F=z+ae+65535)-65536*(ae=Math.floor(F/65536)),L=(F=L+ae+65535)-65536*(ae=Math.floor(F/65536)),H=(F=H+ae+65535)-65536*(ae=Math.floor(F/65536)),ne=(F=ne+ae+65535)-65536*(ae=Math.floor(F/65536)),he+=ae-1+37*(ae-1),$[0]=he,$[1]=le,$[2]=ce,$[3]=ve,$[4]=de,$[5]=pe,$[6]=ye,$[7]=V,$[8]=y,$[9]=A,$[10]=R,$[11]=U,$[12]=z,$[13]=L,$[14]=H,$[15]=ne}function M($,W){j($,W,W)}function N($,W){var Y,F=w();for(Y=0;Y<16;Y++)F[Y]=W[Y];for(Y=253;Y>=0;Y--)M(F,F),Y!==2&&Y!==4&&j(F,F,W);for(Y=0;Y<16;Y++)$[Y]=F[Y]}function C($,W,Y){var F,ae,he=new Uint8Array(32),le=new Float64Array(80),ce=w(),ve=w(),de=w(),pe=w(),ye=w(),V=w();for(ae=0;ae<31;ae++)he[ae]=W[ae];for(he[31]=127&W[31]|64,he[0]&=248,b(le,Y),ae=0;ae<16;ae++)ve[ae]=le[ae],pe[ae]=ce[ae]=de[ae]=0;for(ce[0]=pe[0]=1,ae=254;ae>=0;--ae)f(ce,ve,F=he[ae>>>3]>>>(7&ae)&1),f(de,pe,F),I(ye,ce,de),l(ce,ce,de),I(de,ve,pe),l(ve,ve,pe),M(pe,ye),M(V,ce),j(ce,de,ce),j(de,ve,ye),I(ye,ce,de),l(ce,ce,de),M(ve,ce),l(de,pe,V),j(ce,de,S),I(ce,ce,pe),j(de,de,ce),j(ce,pe,V),j(pe,ve,le),M(ve,ye),f(ce,ve,F),f(de,pe,F);for(ae=0;ae<16;ae++)le[ae+16]=ce[ae],le[ae+32]=de[ae],le[ae+48]=ve[ae],le[ae+64]=pe[ae];var y=le.subarray(32),A=le.subarray(16);return N(y,y),j(A,A,y),d($,A),0}var x=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function P($,W,Y,F){for(var ae,he,le,ce,ve,de,pe,ye,V,y,A,R,U,z,L,H,ne,oe,K,X,Q,Z,se,ue,fe,me,ge=new Int32Array(16),be=new Int32Array(16),_e=$[0],we=$[1],Ee=$[2],xe=$[3],Se=$[4],ke=$[5],Re=$[6],Oe=$[7],Pe=W[0],Me=W[1],Ae=W[2],Ne=W[3],Te=W[4],Ce=W[5],Ie=W[6],De=W[7],je=0;F>=128;){for(K=0;K<16;K++)X=8*K+je,ge[K]=Y[X+0]<<24|Y[X+1]<<16|Y[X+2]<<8|Y[X+3],be[K]=Y[X+4]<<24|Y[X+5]<<16|Y[X+6]<<8|Y[X+7];for(K=0;K<80;K++)if(ae=_e,he=we,le=Ee,ce=xe,ve=Se,de=ke,pe=Re,V=Pe,y=Me,A=Ae,R=Ne,U=Te,z=Ce,L=Ie,se=65535&(Z=De),ue=Z>>>16,fe=65535&(Q=Oe),me=Q>>>16,se+=65535&(Z=(Te>>>14|Se<<18)^(Te>>>18|Se<<14)^(Se>>>9|Te<<23)),ue+=Z>>>16,fe+=65535&(Q=(Se>>>14|Te<<18)^(Se>>>18|Te<<14)^(Te>>>9|Se<<23)),me+=Q>>>16,se+=65535&(Z=Te&Ce^~Te&Ie),ue+=Z>>>16,fe+=65535&(Q=Se&ke^~Se&Re),me+=Q>>>16,Q=x[2*K],se+=65535&(Z=x[2*K+1]),ue+=Z>>>16,fe+=65535&Q,me+=Q>>>16,Q=ge[K%16],ue+=(Z=be[K%16])>>>16,fe+=65535&Q,me+=Q>>>16,fe+=(ue+=(se+=65535&Z)>>>16)>>>16,se=65535&(Z=oe=65535&se|ue<<16),ue=Z>>>16,fe=65535&(Q=ne=65535&fe|(me+=fe>>>16)<<16),me=Q>>>16,se+=65535&(Z=(Pe>>>28|_e<<4)^(_e>>>2|Pe<<30)^(_e>>>7|Pe<<25)),ue+=Z>>>16,fe+=65535&(Q=(_e>>>28|Pe<<4)^(Pe>>>2|_e<<30)^(Pe>>>7|_e<<25)),me+=Q>>>16,ue+=(Z=Pe&Me^Pe&Ae^Me&Ae)>>>16,fe+=65535&(Q=_e&we^_e&Ee^we&Ee),me+=Q>>>16,ye=65535&(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)|(me+=fe>>>16)<<16,H=65535&se|ue<<16,se=65535&(Z=R),ue=Z>>>16,fe=65535&(Q=ce),me=Q>>>16,ue+=(Z=oe)>>>16,fe+=65535&(Q=ne),me+=Q>>>16,we=ae,Ee=he,xe=le,Se=ce=65535&(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)|(me+=fe>>>16)<<16,ke=ve,Re=de,Oe=pe,_e=ye,Me=V,Ae=y,Ne=A,Te=R=65535&se|ue<<16,Ce=U,Ie=z,De=L,Pe=H,K%16==15)for(X=0;X<16;X++)Q=ge[X],se=65535&(Z=be[X]),ue=Z>>>16,fe=65535&Q,me=Q>>>16,Q=ge[(X+9)%16],se+=65535&(Z=be[(X+9)%16]),ue+=Z>>>16,fe+=65535&Q,me+=Q>>>16,ne=ge[(X+1)%16],se+=65535&(Z=((oe=be[(X+1)%16])>>>1|ne<<31)^(oe>>>8|ne<<24)^(oe>>>7|ne<<25)),ue+=Z>>>16,fe+=65535&(Q=(ne>>>1|oe<<31)^(ne>>>8|oe<<24)^ne>>>7),me+=Q>>>16,ne=ge[(X+14)%16],ue+=(Z=((oe=be[(X+14)%16])>>>19|ne<<13)^(ne>>>29|oe<<3)^(oe>>>6|ne<<26))>>>16,fe+=65535&(Q=(ne>>>19|oe<<13)^(oe>>>29|ne<<3)^ne>>>6),me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,ge[X]=65535&fe|me<<16,be[X]=65535&se|ue<<16;se=65535&(Z=Pe),ue=Z>>>16,fe=65535&(Q=_e),me=Q>>>16,Q=$[0],ue+=(Z=W[0])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[0]=_e=65535&fe|me<<16,W[0]=Pe=65535&se|ue<<16,se=65535&(Z=Me),ue=Z>>>16,fe=65535&(Q=we),me=Q>>>16,Q=$[1],ue+=(Z=W[1])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[1]=we=65535&fe|me<<16,W[1]=Me=65535&se|ue<<16,se=65535&(Z=Ae),ue=Z>>>16,fe=65535&(Q=Ee),me=Q>>>16,Q=$[2],ue+=(Z=W[2])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[2]=Ee=65535&fe|me<<16,W[2]=Ae=65535&se|ue<<16,se=65535&(Z=Ne),ue=Z>>>16,fe=65535&(Q=xe),me=Q>>>16,Q=$[3],ue+=(Z=W[3])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[3]=xe=65535&fe|me<<16,W[3]=Ne=65535&se|ue<<16,se=65535&(Z=Te),ue=Z>>>16,fe=65535&(Q=Se),me=Q>>>16,Q=$[4],ue+=(Z=W[4])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[4]=Se=65535&fe|me<<16,W[4]=Te=65535&se|ue<<16,se=65535&(Z=Ce),ue=Z>>>16,fe=65535&(Q=ke),me=Q>>>16,Q=$[5],ue+=(Z=W[5])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[5]=ke=65535&fe|me<<16,W[5]=Ce=65535&se|ue<<16,se=65535&(Z=Ie),ue=Z>>>16,fe=65535&(Q=Re),me=Q>>>16,Q=$[6],ue+=(Z=W[6])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[6]=Re=65535&fe|me<<16,W[6]=Ie=65535&se|ue<<16,se=65535&(Z=De),ue=Z>>>16,fe=65535&(Q=Oe),me=Q>>>16,Q=$[7],ue+=(Z=W[7])>>>16,fe+=65535&Q,me+=Q>>>16,me+=(fe+=(ue+=(se+=65535&Z)>>>16)>>>16)>>>16,$[7]=Oe=65535&fe|me<<16,W[7]=De=65535&se|ue<<16,je+=128,F-=128}return F}function v($,W,Y){var F,ae=new Int32Array(8),he=new Int32Array(8),le=new Uint8Array(256),ce=Y;for(ae[0]=1779033703,ae[1]=3144134277,ae[2]=1013904242,ae[3]=2773480762,ae[4]=1359893119,ae[5]=2600822924,ae[6]=528734635,ae[7]=1541459225,he[0]=4089235720,he[1]=2227873595,he[2]=4271175723,he[3]=1595750129,he[4]=2917565137,he[5]=725511199,he[6]=4215389547,he[7]=327033209,P(ae,he,W,Y),Y%=128,F=0;F=0;--ae)E($,W,F=Y[ae/8|0]>>(7&ae)&1),m(W,$),m($,$),E($,W,F)}function q($,W){var Y=[w(),w(),w(),w()];o(Y[0],c),o(Y[1],u),o(Y[2],k),j(Y[3],c,u),T($,Y,W)}var te=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function re($,W){var Y,F,ae,he;for(F=63;F>=32;--F){for(Y=0,ae=F-32,he=F-12;ae>8,W[ae]-=256*Y;W[ae]+=Y,W[F]=0}for(Y=0,ae=0;ae<32;ae++)W[ae]+=Y-(W[31]>>4)*te[ae],Y=W[ae]>>8,W[ae]&=255;for(ae=0;ae<32;ae++)W[ae]-=Y*te[ae];for(F=0;F<32;F++)W[F+1]+=W[F]>>8,$[F]=255&W[F]}function ie($){var W,Y=new Float64Array(64);for(W=0;W<64;W++)Y[W]=$[W];for(W=0;W<64;W++)$[W]=0;re($,Y)}function J($,W,Y,F,ae){for(var he=new Uint8Array(64),le=[w(),w(),w(),w()],ce=0;ce<32;ce++)he[ce]=F[ce];he[0]&=248,he[31]&=127,he[31]|=64,q(le,he),B(he.subarray(32),le);var ve,de=128&he[63];return ve=ae?function(pe,ye,V,y,A){var R,U,z=new Uint8Array(64),L=new Uint8Array(64),H=new Float64Array(64),ne=[w(),w(),w(),w()];for(pe[0]=254,R=1;R<32;R++)pe[R]=255;for(R=0;R<32;R++)pe[32+R]=y[R];for(R=0;R=0;Z--)M(se,se),Z!==1&&j(se,se,Q);for(Z=0;Z<16;Z++)X[Z]=se[Z]}(U,U),j(U,U,L),j(U,U,H),j(U,U,H),j(A[0],U,H),M(z,A[0]),j(z,z,H),p(z,L)&&j(A[0],A[0],s),M(z,A[0]),j(z,z,H),p(z,L)?-1:(_(A[0])===R[31]>>7&&l(A[0],O,A[0]),j(A[3],A[0],A[1]),0)}(y,ve))return-1;for(de=0;de=0},e.generateKeyPair=function($){if(G($),$.length!==32)throw new Error("wrong seed length");for(var W=new Uint8Array(32),Y=new Uint8Array(32),F=0;F<32;F++)W[F]=$[F];return C(Y,W,h),W[0]&=248,W[31]&=127,W[31]|=64,Y[31]&=127,{public:Y,private:W}},e.default={}},2296:(D,e,h)=>{var w=h(1044)(),O=h(210),k=w&&O("%Object.defineProperty%",!0);if(k)try{k({},"a",{value:1})}catch{k=!1}var S=O("%SyntaxError%"),a=O("%TypeError%"),t=h(7296);D.exports=function(c,u,s){if(!c||typeof c!="object"&&typeof c!="function")throw new a("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new a("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,i=arguments.length>6&&arguments[6],f=!!t&&t(c,u);if(k)k(c,u,{configurable:o===null&&f?f.configurable:!o,enumerable:r===null&&f?f.enumerable:!r,value:s,writable:n===null&&f?f.writable:!n});else{if(!i&&(r||n||o))throw new S("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");c[u]=s}}},4289:(D,e,h)=>{var w=h(2215),O=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",k=Object.prototype.toString,S=Array.prototype.concat,a=h(2296),t=h(1044)(),c=function(s,r,n,o){if(r in s){if(o===!0){if(s[r]===n)return}else if(typeof(i=o)!="function"||k.call(i)!=="[object Function]"||!o())return}var i;t?a(s,r,n,!0):a(s,r,n)},u=function(s,r){var n=arguments.length>2?arguments[2]:{},o=w(r);O&&(o=S.call(o,Object.getOwnPropertySymbols(r)));for(var i=0;i{var w=e;w.version=h(8597).i8,w.utils=h(953),w.rand=h(9931),w.curve=h(8254),w.curves=h(5427),w.ec=h(7954),w.eddsa=h(5980)},4918:(D,e,h)=>{var w=h(3550),O=h(953),k=O.getNAF,S=O.getJSF,a=O.assert;function t(u,s){this.type=u,this.p=new w(s.p,16),this.red=s.prime?w.red(s.prime):w.mont(this.p),this.zero=new w(0).toRed(this.red),this.one=new w(1).toRed(this.red),this.two=new w(2).toRed(this.red),this.n=s.n&&new w(s.n,16),this.g=s.g&&this.pointFromJSON(s.g,s.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(u,s){this.curve=u,this.type=s,this.precomputed=null}D.exports=t,t.prototype.point=function(){throw new Error("Not implemented")},t.prototype.validate=function(){throw new Error("Not implemented")},t.prototype._fixedNafMul=function(u,s){a(u.precomputed);var r=u._getDoubles(),n=k(s,1,this._bitLength),o=(1<=i;p--)f=(f<<1)+n[p];d.push(f)}for(var _=this.jpoint(null,null,null),b=this.jpoint(null,null,null),I=o;I>0;I--){for(i=0;i=0;d--){for(var p=0;d>=0&&i[d]===0;d--)p++;if(d>=0&&p++,f=f.dblp(p),d<0)break;var _=i[d];a(_!==0),f=u.type==="affine"?_>0?f.mixedAdd(o[_-1>>1]):f.mixedAdd(o[-_-1>>1].neg()):_>0?f.add(o[_-1>>1]):f.add(o[-_-1>>1].neg())}return u.type==="affine"?f.toP():f},t.prototype._wnafMulAdd=function(u,s,r,n,o){var i,f,d,p=this._wnafT1,_=this._wnafT2,b=this._wnafT3,I=0;for(i=0;i=1;i-=2){var j=i-1,M=i;if(p[j]===1&&p[M]===1){var N=[s[j],null,null,s[M]];s[j].y.cmp(s[M].y)===0?(N[1]=s[j].add(s[M]),N[2]=s[j].toJ().mixedAdd(s[M].neg())):s[j].y.cmp(s[M].y.redNeg())===0?(N[1]=s[j].toJ().mixedAdd(s[M]),N[2]=s[j].add(s[M].neg())):(N[1]=s[j].toJ().mixedAdd(s[M]),N[2]=s[j].toJ().mixedAdd(s[M].neg()));var C=[-3,-1,-5,-7,0,7,5,1,3],x=S(r[j],r[M]);for(I=Math.max(x[0].length,I),b[j]=new Array(I),b[M]=new Array(I),f=0;f=0;i--){for(var B=0;i>=0;){var T=!0;for(f=0;f=0&&B++,m=m.dblp(B),i<0)break;for(f=0;f0?d=_[f][q-1>>1]:q<0&&(d=_[f][-q-1>>1].neg()),m=d.type==="affine"?m.mixedAdd(d):m.add(d))}}for(i=0;i=Math.ceil((u.bitLength()+1)/s.step)},c.prototype._getDoubles=function(u,s){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o{var w=h(953),O=h(3550),k=h(5717),S=h(4918),a=w.assert;function t(u){this.twisted=(0|u.a)!=1,this.mOneA=this.twisted&&(0|u.a)==-1,this.extended=this.mOneA,S.call(this,"edwards",u),this.a=new O(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new O(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new O(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|u.c)==1}function c(u,s,r,n,o){S.BasePoint.call(this,u,"projective"),s===null&&r===null&&n===null?(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 O(s,16),this.y=new O(r,16),this.z=n?new O(n,16):this.curve.one,this.t=o&&new O(o,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()))))}k(t,S),D.exports=t,t.prototype._mulA=function(u){return this.mOneA?u.redNeg():this.a.redMul(u)},t.prototype._mulC=function(u){return this.oneC?u:this.c.redMul(u)},t.prototype.jpoint=function(u,s,r,n){return this.point(u,s,r,n)},t.prototype.pointFromX=function(u,s){(u=new O(u,16)).red||(u=u.toRed(this.red));var r=u.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),i=n.redMul(o.redInvm()),f=i.redSqrt();if(f.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var d=f.fromRed().isOdd();return(s&&!d||!s&&d)&&(f=f.redNeg()),this.point(u,f)},t.prototype.pointFromY=function(u,s){(u=new O(u,16)).red||(u=u.toRed(this.red));var r=u.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),i=n.redMul(o.redInvm());if(i.cmp(this.zero)===0){if(s)throw new Error("invalid point");return this.point(this.zero,u)}var f=i.redSqrt();if(f.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");return f.fromRed().isOdd()!==s&&(f=f.redNeg()),this.point(f,u)},t.prototype.validate=function(u){if(u.isInfinity())return!0;u.normalize();var s=u.x.redSqr(),r=u.y.redSqr(),n=s.redMul(this.a).redAdd(r),o=this.c2.redMul(this.one.redAdd(this.d.redMul(s).redMul(r)));return n.cmp(o)===0},k(c,S.BasePoint),t.prototype.pointFromJSON=function(u){return c.fromJSON(this,u)},t.prototype.point=function(u,s,r,n){return new c(this,u,s,r,n)},c.fromJSON=function(u,s){return new c(u,s[0],s[1],s[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var u=this.x.redSqr(),s=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(u),o=this.x.redAdd(this.y).redSqr().redISub(u).redISub(s),i=n.redAdd(s),f=i.redSub(r),d=n.redSub(s),p=o.redMul(f),_=i.redMul(d),b=o.redMul(d),I=f.redMul(i);return this.curve.point(p,_,I,b)},c.prototype._projDbl=function(){var u,s,r,n,o,i,f=this.x.redAdd(this.y).redSqr(),d=this.x.redSqr(),p=this.y.redSqr();if(this.curve.twisted){var _=(n=this.curve._mulA(d)).redAdd(p);this.zOne?(u=f.redSub(d).redSub(p).redMul(_.redSub(this.curve.two)),s=_.redMul(n.redSub(p)),r=_.redSqr().redSub(_).redSub(_)):(o=this.z.redSqr(),i=_.redSub(o).redISub(o),u=f.redSub(d).redISub(p).redMul(i),s=_.redMul(n.redSub(p)),r=_.redMul(i))}else n=d.redAdd(p),o=this.curve._mulC(this.z).redSqr(),i=n.redSub(o).redSub(o),u=this.curve._mulC(f.redISub(n)).redMul(i),s=this.curve._mulC(n).redMul(d.redISub(p)),r=n.redMul(i);return this.curve.point(u,s,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(u){var s=this.y.redSub(this.x).redMul(u.y.redSub(u.x)),r=this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)),n=this.t.redMul(this.curve.dd).redMul(u.t),o=this.z.redMul(u.z.redAdd(u.z)),i=r.redSub(s),f=o.redSub(n),d=o.redAdd(n),p=r.redAdd(s),_=i.redMul(f),b=d.redMul(p),I=i.redMul(p),l=f.redMul(d);return this.curve.point(_,b,l,I)},c.prototype._projAdd=function(u){var s,r,n=this.z.redMul(u.z),o=n.redSqr(),i=this.x.redMul(u.x),f=this.y.redMul(u.y),d=this.curve.d.redMul(i).redMul(f),p=o.redSub(d),_=o.redAdd(d),b=this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(i).redISub(f),I=n.redMul(p).redMul(b);return this.curve.twisted?(s=n.redMul(_).redMul(f.redSub(this.curve._mulA(i))),r=p.redMul(_)):(s=n.redMul(_).redMul(f.redSub(i)),r=this.curve._mulC(p).redMul(_)),this.curve.point(I,s,r)},c.prototype.add=function(u){return this.isInfinity()?u:u.isInfinity()?this:this.curve.extended?this._extAdd(u):this._projAdd(u)},c.prototype.mul=function(u){return this._hasDoubles(u)?this.curve._fixedNafMul(this,u):this.curve._wnafMul(this,u)},c.prototype.mulAdd=function(u,s,r){return this.curve._wnafMulAdd(1,[this,s],[u,r],2,!1)},c.prototype.jmulAdd=function(u,s,r){return this.curve._wnafMulAdd(1,[this,s],[u,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var u=this.z.redInvm();return this.x=this.x.redMul(u),this.y=this.y.redMul(u),this.t&&(this.t=this.t.redMul(u)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(u){return this===u||this.getX().cmp(u.getX())===0&&this.getY().cmp(u.getY())===0},c.prototype.eqXToP=function(u){var s=u.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(s)===0)return!0;for(var r=u.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(s.redIAdd(n),this.x.cmp(s)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},8254:(D,e,h)=>{var w=e;w.base=h(4918),w.short=h(6673),w.mont=h(2881),w.edwards=h(1138)},2881:(D,e,h)=>{var w=h(3550),O=h(5717),k=h(4918),S=h(953);function a(c){k.call(this,"mont",c),this.a=new w(c.a,16).toRed(this.red),this.b=new w(c.b,16).toRed(this.red),this.i4=new w(4).toRed(this.red).redInvm(),this.two=new w(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function t(c,u,s){k.BasePoint.call(this,c,"projective"),u===null&&s===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new w(u,16),this.z=new w(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}O(a,k),D.exports=a,a.prototype.validate=function(c){var u=c.normalize().x,s=u.redSqr(),r=s.redMul(u).redAdd(s.redMul(this.a)).redAdd(u);return r.redSqrt().redSqr().cmp(r)===0},O(t,k.BasePoint),a.prototype.decodePoint=function(c,u){return this.point(S.toArray(c,u),1)},a.prototype.point=function(c,u){return new t(this,c,u)},a.prototype.pointFromJSON=function(c){return t.fromJSON(this,c)},t.prototype.precompute=function(){},t.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},t.fromJSON=function(c,u){return new t(c,u[0],u[1]||c.one)},t.prototype.inspect=function(){return this.isInfinity()?"":""},t.prototype.isInfinity=function(){return this.z.cmpn(0)===0},t.prototype.dbl=function(){var c=this.x.redAdd(this.z).redSqr(),u=this.x.redSub(this.z).redSqr(),s=c.redSub(u),r=c.redMul(u),n=s.redMul(u.redAdd(this.curve.a24.redMul(s)));return this.curve.point(r,n)},t.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.diffAdd=function(c,u){var s=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=c.x.redAdd(c.z),o=c.x.redSub(c.z).redMul(s),i=n.redMul(r),f=u.z.redMul(o.redAdd(i).redSqr()),d=u.x.redMul(o.redISub(i).redSqr());return this.curve.point(f,d)},t.prototype.mul=function(c){for(var u=c.clone(),s=this,r=this.curve.point(null,null),n=[];u.cmpn(0)!==0;u.iushrn(1))n.push(u.andln(1));for(var o=n.length-1;o>=0;o--)n[o]===0?(s=s.diffAdd(r,this),r=r.dbl()):(r=s.diffAdd(r,this),s=s.dbl());return r},t.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},t.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},t.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},t.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(D,e,h)=>{var w=h(953),O=h(3550),k=h(5717),S=h(4918),a=w.assert;function t(s){S.call(this,"short",s),this.a=new O(s.a,16).toRed(this.red),this.b=new O(s.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(s),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(s,r,n,o){S.BasePoint.call(this,s,"affine"),r===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new O(r,16),this.y=new O(n,16),o&&(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 u(s,r,n,o){S.BasePoint.call(this,s,"jacobian"),r===null&&n===null&&o===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new O(0)):(this.x=new O(r,16),this.y=new O(n,16),this.z=new O(o,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}k(t,S),D.exports=t,t.prototype._getEndomorphism=function(s){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var r,n;if(s.beta)r=new O(s.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);r=(r=o[0].cmp(o[1])<0?o[0]:o[1]).toRed(this.red)}if(s.lambda)n=new O(s.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(r))===0?n=i[0]:(n=i[1],a(this.g.mul(n).x.cmp(this.g.x.redMul(r))===0))}return{beta:r,lambda:n,basis:s.basis?s.basis.map(function(f){return{a:new O(f.a,16),b:new O(f.b,16)}}):this._getEndoBasis(n)}}},t.prototype._getEndoRoots=function(s){var r=s===this.p?this.red:O.mont(s),n=new O(2).toRed(r).redInvm(),o=n.redNeg(),i=new O(3).toRed(r).redNeg().redSqrt().redMul(n);return[o.redAdd(i).fromRed(),o.redSub(i).fromRed()]},t.prototype._getEndoBasis=function(s){for(var r,n,o,i,f,d,p,_,b,I=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=s,j=this.n.clone(),M=new O(1),N=new O(0),C=new O(0),x=new O(1),P=0;l.cmpn(0)!==0;){var v=j.div(l);_=j.sub(v.mul(l)),b=C.sub(v.mul(M));var m=x.sub(v.mul(N));if(!o&&_.cmp(I)<0)r=p.neg(),n=M,o=_.neg(),i=b;else if(o&&++P==2)break;p=_,j=l,l=_,C=M,M=b,x=N,N=m}f=_.neg(),d=b;var E=o.sqr().add(i.sqr());return f.sqr().add(d.sqr()).cmp(E)>=0&&(f=r,d=n),o.negative&&(o=o.neg(),i=i.neg()),f.negative&&(f=f.neg(),d=d.neg()),[{a:o,b:i},{a:f,b:d}]},t.prototype._endoSplit=function(s){var r=this.endo.basis,n=r[0],o=r[1],i=o.b.mul(s).divRound(this.n),f=n.b.neg().mul(s).divRound(this.n),d=i.mul(n.a),p=f.mul(o.a),_=i.mul(n.b),b=f.mul(o.b);return{k1:s.sub(d).sub(p),k2:_.add(b).neg()}},t.prototype.pointFromX=function(s,r){(s=new O(s,16)).red||(s=s.toRed(this.red));var n=s.redSqr().redMul(s).redIAdd(s.redMul(this.a)).redIAdd(this.b),o=n.redSqrt();if(o.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=o.fromRed().isOdd();return(r&&!i||!r&&i)&&(o=o.redNeg()),this.point(s,o)},t.prototype.validate=function(s){if(s.inf)return!0;var r=s.x,n=s.y,o=this.a.redMul(r),i=r.redSqr().redMul(r).redIAdd(o).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0},t.prototype._endoWnafMulAdd=function(s,r,n){for(var o=this._endoWnafT1,i=this._endoWnafT2,f=0;f":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(s){if(this.inf)return s;if(s.inf)return this;if(this.eq(s))return this.dbl();if(this.neg().eq(s))return this.curve.point(null,null);if(this.x.cmp(s.x)===0)return this.curve.point(null,null);var r=this.y.redSub(s.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(s.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(s.x),o=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,o)},c.prototype.dbl=function(){if(this.inf)return this;var s=this.y.redAdd(this.y);if(s.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),o=s.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(o),f=i.redSqr().redISub(this.x.redAdd(this.x)),d=i.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,d)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(s){return s=new O(s,16),this.isInfinity()?this:this._hasDoubles(s)?this.curve._fixedNafMul(this,s):this.curve.endo?this.curve._endoWnafMulAdd([this],[s]):this.curve._wnafMul(this,s)},c.prototype.mulAdd=function(s,r,n){var o=[this,r],i=[s,n];return this.curve.endo?this.curve._endoWnafMulAdd(o,i):this.curve._wnafMulAdd(1,o,i,2)},c.prototype.jmulAdd=function(s,r,n){var o=[this,r],i=[s,n];return this.curve.endo?this.curve._endoWnafMulAdd(o,i,!0):this.curve._wnafMulAdd(1,o,i,2,!0)},c.prototype.eq=function(s){return this===s||this.inf===s.inf&&(this.inf||this.x.cmp(s.x)===0&&this.y.cmp(s.y)===0)},c.prototype.neg=function(s){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(s&&this.precomputed){var n=this.precomputed,o=function(i){return i.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(o)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(o)}}}return r},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},k(u,S.BasePoint),t.prototype.jpoint=function(s,r,n){return new u(this,s,r,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var s=this.z.redInvm(),r=s.redSqr(),n=this.x.redMul(r),o=this.y.redMul(r).redMul(s);return this.curve.point(n,o)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(s){if(this.isInfinity())return s;if(s.isInfinity())return this;var r=s.z.redSqr(),n=this.z.redSqr(),o=this.x.redMul(r),i=s.x.redMul(n),f=this.y.redMul(r.redMul(s.z)),d=s.y.redMul(n.redMul(this.z)),p=o.redSub(i),_=f.redSub(d);if(p.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=p.redSqr(),I=b.redMul(p),l=o.redMul(b),j=_.redSqr().redIAdd(I).redISub(l).redISub(l),M=_.redMul(l.redISub(j)).redISub(f.redMul(I)),N=this.z.redMul(s.z).redMul(p);return this.curve.jpoint(j,M,N)},u.prototype.mixedAdd=function(s){if(this.isInfinity())return s.toJ();if(s.isInfinity())return this;var r=this.z.redSqr(),n=this.x,o=s.x.redMul(r),i=this.y,f=s.y.redMul(r).redMul(this.z),d=n.redSub(o),p=i.redSub(f);if(d.cmpn(0)===0)return p.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=d.redSqr(),b=_.redMul(d),I=n.redMul(_),l=p.redSqr().redIAdd(b).redISub(I).redISub(I),j=p.redMul(I.redISub(l)).redISub(i.redMul(b)),M=this.z.redMul(d);return this.curve.jpoint(l,j,M)},u.prototype.dblp=function(s){if(s===0)return this;if(this.isInfinity())return this;if(!s)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},5427:(D,e,h)=>{var w,O=e,k=h(3715),S=h(8254),a=h(953).assert;function t(u){u.type==="short"?this.curve=new S.short(u):u.type==="edwards"?this.curve=new S.edwards(u):this.curve=new S.mont(u),this.g=this.curve.g,this.n=this.curve.n,this.hash=u.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(u,s){Object.defineProperty(O,u,{configurable:!0,enumerable:!0,get:function(){var r=new t(s);return Object.defineProperty(O,u,{configurable:!0,enumerable:!0,value:r}),r}})}O.PresetCurve=t,c("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:k.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:k.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:k.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:k.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"]}),c("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:k.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:k.sha256,gRed:!1,g:["9"]}),c("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:k.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{w=h(1037)}catch{w=void 0}c("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:k.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",w]})},7954:(D,e,h)=>{var w=h(3550),O=h(2156),k=h(953),S=h(5427),a=h(9931),t=k.assert,c=h(1251),u=h(611);function s(r){if(!(this instanceof s))return new s(r);typeof r=="string"&&(t(Object.prototype.hasOwnProperty.call(S,r),"Unknown curve "+r),r=S[r]),r instanceof S.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}D.exports=s,s.prototype.keyPair=function(r){return new c(this,r)},s.prototype.keyFromPrivate=function(r,n){return c.fromPrivate(this,r,n)},s.prototype.keyFromPublic=function(r,n){return c.fromPublic(this,r,n)},s.prototype.genKeyPair=function(r){r||(r={});for(var n=new O({hash:this.hash,pers:r.pers,persEnc:r.persEnc||"utf8",entropy:r.entropy||a(this.hash.hmacStrength),entropyEnc:r.entropy&&r.entropyEnc||"utf8",nonce:this.n.toArray()}),o=this.n.byteLength(),i=this.n.sub(new w(2));;){var f=new w(n.generate(o));if(!(f.cmp(i)>0))return f.iaddn(1),this.keyFromPrivate(f)}},s.prototype._truncateToN=function(r,n){var o=8*r.byteLength()-this.n.bitLength();return o>0&&(r=r.ushrn(o)),!n&&r.cmp(this.n)>=0?r.sub(this.n):r},s.prototype.sign=function(r,n,o,i){typeof o=="object"&&(i=o,o=null),i||(i={}),n=this.keyFromPrivate(n,o),r=this._truncateToN(new w(r,16));for(var f=this.n.byteLength(),d=n.getPrivate().toArray("be",f),p=r.toArray("be",f),_=new O({hash:this.hash,entropy:d,nonce:p,pers:i.pers,persEnc:i.persEnc||"utf8"}),b=this.n.sub(new w(1)),I=0;;I++){var l=i.k?i.k(I):new w(_.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(b)>=0)){var j=this.g.mul(l);if(!j.isInfinity()){var M=j.getX(),N=M.umod(this.n);if(N.cmpn(0)!==0){var C=l.invm(this.n).mul(N.mul(n.getPrivate()).iadd(r));if((C=C.umod(this.n)).cmpn(0)!==0){var x=(j.getY().isOdd()?1:0)|(M.cmp(N)!==0?2:0);return i.canonical&&C.cmp(this.nh)>0&&(C=this.n.sub(C),x^=1),new u({r:N,s:C,recoveryParam:x})}}}}}},s.prototype.verify=function(r,n,o,i){r=this._truncateToN(new w(r,16)),o=this.keyFromPublic(o,i);var f=(n=new u(n,"hex")).r,d=n.s;if(f.cmpn(1)<0||f.cmp(this.n)>=0||d.cmpn(1)<0||d.cmp(this.n)>=0)return!1;var p,_=d.invm(this.n),b=_.mul(r).umod(this.n),I=_.mul(f).umod(this.n);return this.curve._maxwellTrick?!(p=this.g.jmulAdd(b,o.getPublic(),I)).isInfinity()&&p.eqXToP(f):!(p=this.g.mulAdd(b,o.getPublic(),I)).isInfinity()&&p.getX().umod(this.n).cmp(f)===0},s.prototype.recoverPubKey=function(r,n,o,i){t((3&o)===o,"The recovery param is more than two bits"),n=new u(n,i);var f=this.n,d=new w(r),p=n.r,_=n.s,b=1&o,I=o>>1;if(p.cmp(this.curve.p.umod(this.curve.n))>=0&&I)throw new Error("Unable to find sencond key candinate");p=I?this.curve.pointFromX(p.add(this.curve.n),b):this.curve.pointFromX(p,b);var l=n.r.invm(f),j=f.sub(d).mul(l).umod(f),M=_.mul(l).umod(f);return this.g.mulAdd(j,p,M)},s.prototype.getKeyRecoveryParam=function(r,n,o,i){if((n=new u(n,i)).recoveryParam!==null)return n.recoveryParam;for(var f=0;f<4;f++){var d;try{d=this.recoverPubKey(r,n,f)}catch{continue}if(d.eq(o))return f}throw new Error("Unable to find valid recovery factor")}},1251:(D,e,h)=>{var w=h(3550),O=h(953).assert;function k(S,a){this.ec=S,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}D.exports=k,k.fromPublic=function(S,a,t){return a instanceof k?a:new k(S,{pub:a,pubEnc:t})},k.fromPrivate=function(S,a,t){return a instanceof k?a:new k(S,{priv:a,privEnc:t})},k.prototype.validate=function(){var S=this.getPublic();return S.isInfinity()?{result:!1,reason:"Invalid public key"}:S.validate()?S.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"}},k.prototype.getPublic=function(S,a){return typeof S=="string"&&(a=S,S=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),a?this.pub.encode(a,S):this.pub},k.prototype.getPrivate=function(S){return S==="hex"?this.priv.toString(16,2):this.priv},k.prototype._importPrivate=function(S,a){this.priv=new w(S,a||16),this.priv=this.priv.umod(this.ec.curve.n)},k.prototype._importPublic=function(S,a){if(S.x||S.y)return this.ec.curve.type==="mont"?O(S.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||O(S.x&&S.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(S.x,S.y));this.pub=this.ec.curve.decodePoint(S,a)},k.prototype.derive=function(S){return S.validate()||O(S.validate(),"public point not validated"),S.mul(this.priv).getX()},k.prototype.sign=function(S,a,t){return this.ec.sign(S,this,a,t)},k.prototype.verify=function(S,a){return this.ec.verify(S,a,this)},k.prototype.inspect=function(){return""}},611:(D,e,h)=>{var w=h(3550),O=h(953),k=O.assert;function S(s,r){if(s instanceof S)return s;this._importDER(s,r)||(k(s.r&&s.s,"Signature without r or s"),this.r=new w(s.r,16),this.s=new w(s.s,16),s.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=s.recoveryParam)}function a(){this.place=0}function t(s,r){var n=s[r.place++];if(!(128&n))return n;var o=15&n;if(o===0||o>4)return!1;for(var i=0,f=0,d=r.place;f>>=0;return!(i<=127)&&(r.place=d,i)}function c(s){for(var r=0,n=s.length-1;!s[r]&&!(128&s[r+1])&&r>>3);for(s.push(128|n);--n;)s.push(r>>>(n<<3)&255);s.push(r)}}D.exports=S,S.prototype._importDER=function(s,r){s=O.toArray(s,r);var n=new a;if(s[n.place++]!==48)return!1;var o=t(s,n);if(o===!1||o+n.place!==s.length||s[n.place++]!==2)return!1;var i=t(s,n);if(i===!1)return!1;var f=s.slice(n.place,i+n.place);if(n.place+=i,s[n.place++]!==2)return!1;var d=t(s,n);if(d===!1||s.length!==d+n.place)return!1;var p=s.slice(n.place,d+n.place);if(f[0]===0){if(!(128&f[1]))return!1;f=f.slice(1)}if(p[0]===0){if(!(128&p[1]))return!1;p=p.slice(1)}return this.r=new w(f),this.s=new w(p),this.recoveryParam=null,!0},S.prototype.toDER=function(s){var r=this.r.toArray(),n=this.s.toArray();for(128&r[0]&&(r=[0].concat(r)),128&n[0]&&(n=[0].concat(n)),r=c(r),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var o=[2];u(o,r.length),(o=o.concat(r)).push(2),u(o,n.length);var i=o.concat(n),f=[48];return u(f,i.length),f=f.concat(i),O.encode(f,s)}},5980:(D,e,h)=>{var w=h(3715),O=h(5427),k=h(953),S=k.assert,a=k.parseBytes,t=h(9087),c=h(3622);function u(s){if(S(s==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(s);s=O[s].curve,this.curve=s,this.g=s.g,this.g.precompute(s.n.bitLength()+1),this.pointClass=s.point().constructor,this.encodingLength=Math.ceil(s.n.bitLength()/8),this.hash=w.sha512}D.exports=u,u.prototype.sign=function(s,r){s=a(s);var n=this.keyFromSecret(r),o=this.hashInt(n.messagePrefix(),s),i=this.g.mul(o),f=this.encodePoint(i),d=this.hashInt(f,n.pubBytes(),s).mul(n.priv()),p=o.add(d).umod(this.curve.n);return this.makeSignature({R:i,S:p,Rencoded:f})},u.prototype.verify=function(s,r,n){s=a(s),r=this.makeSignature(r);var o=this.keyFromPublic(n),i=this.hashInt(r.Rencoded(),o.pubBytes(),s),f=this.g.mul(r.S());return r.R().add(o.pub().mul(i)).eq(f)},u.prototype.hashInt=function(){for(var s=this.hash(),r=0;r{var w=h(953),O=w.assert,k=w.parseBytes,S=w.cachedProperty;function a(t,c){this.eddsa=t,this._secret=k(c.secret),t.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=k(c.pub)}a.fromPublic=function(t,c){return c instanceof a?c:new a(t,{pub:c})},a.fromSecret=function(t,c){return c instanceof a?c:new a(t,{secret:c})},a.prototype.secret=function(){return this._secret},S(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),S(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),S(a,"privBytes",function(){var t=this.eddsa,c=this.hash(),u=t.encodingLength-1,s=c.slice(0,t.encodingLength);return s[0]&=248,s[u]&=127,s[u]|=64,s}),S(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),S(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),S(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return O(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,c){return this.eddsa.verify(t,c,this)},a.prototype.getSecret=function(t){return O(this._secret,"KeyPair is public only"),w.encode(this.secret(),t)},a.prototype.getPublic=function(t){return w.encode(this.pubBytes(),t)},D.exports=a},3622:(D,e,h)=>{var w=h(3550),O=h(953),k=O.assert,S=O.cachedProperty,a=O.parseBytes;function t(c,u){this.eddsa=c,typeof u!="object"&&(u=a(u)),Array.isArray(u)&&(u={R:u.slice(0,c.encodingLength),S:u.slice(c.encodingLength)}),k(u.R&&u.S,"Signature without R or S"),c.isPoint(u.R)&&(this._R=u.R),u.S instanceof w&&(this._S=u.S),this._Rencoded=Array.isArray(u.R)?u.R:u.Rencoded,this._Sencoded=Array.isArray(u.S)?u.S:u.Sencoded}S(t,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),S(t,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),S(t,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),S(t,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),t.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},t.prototype.toHex=function(){return O.encode(this.toBytes(),"hex").toUpperCase()},D.exports=t},1037:D=>{D.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"]]}}},953:(D,e,h)=>{var w=e,O=h(3550),k=h(9746),S=h(4504);w.assert=k,w.toArray=S.toArray,w.zero2=S.zero2,w.toHex=S.toHex,w.encode=S.encode,w.getNAF=function(a,t,c){var u=new Array(Math.max(a.bitLength(),c)+1);u.fill(0);for(var s=1<(s>>1)-1?(s>>1)-i:i,r.isubn(o)):o=0,u[n]=o,r.iushrn(1)}return u},w.getJSF=function(a,t){var c=[[],[]];a=a.clone(),t=t.clone();for(var u,s=0,r=0;a.cmpn(-s)>0||t.cmpn(-r)>0;){var n,o,i=a.andln(3)+s&3,f=t.andln(3)+r&3;i===3&&(i=-1),f===3&&(f=-1),n=1&i?(u=a.andln(7)+s&7)!=3&&u!==5||f!==2?i:-i:0,c[0].push(n),o=1&f?(u=t.andln(7)+r&7)!=3&&u!==5||i!==2?f:-f:0,c[1].push(o),2*s===n+1&&(s=1-s),2*r===o+1&&(r=1-r),a.iushrn(1),t.iushrn(1)}return c},w.cachedProperty=function(a,t,c){var u="_"+t;a.prototype[t]=function(){return this[u]!==void 0?this[u]:this[u]=c.call(this)}},w.parseBytes=function(a){return typeof a=="string"?w.toArray(a,"hex"):a},w.intFromLE=function(a){return new O(a,"hex","le")}},7187:(D,e,h)=>{var w,O=h(5108),k=typeof Reflect=="object"?Reflect:null,S=k&&typeof k.apply=="function"?k.apply:function(_,b,I){return Function.prototype.apply.call(_,b,I)};w=k&&typeof k.ownKeys=="function"?k.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var a=Number.isNaN||function(_){return _!=_};function t(){t.init.call(this)}D.exports=t,D.exports.once=function(_,b){return new Promise(function(I,l){function j(N){_.removeListener(b,M),l(N)}function M(){typeof _.removeListener=="function"&&_.removeListener("error",j),I([].slice.call(arguments))}p(_,b,M,{once:!0}),b!=="error"&&function(N,C,x){typeof N.on=="function"&&p(N,"error",C,{once:!0})}(_,j)})},t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var c=10;function u(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}function s(_){return _._maxListeners===void 0?t.defaultMaxListeners:_._maxListeners}function r(_,b,I,l){var j,M,N,C;if(u(I),(M=_._events)===void 0?(M=_._events=Object.create(null),_._eventsCount=0):(M.newListener!==void 0&&(_.emit("newListener",b,I.listener?I.listener:I),M=_._events),N=M[b]),N===void 0)N=M[b]=I,++_._eventsCount;else if(typeof N=="function"?N=M[b]=l?[I,N]:[N,I]:l?N.unshift(I):N.push(I),(j=s(_))>0&&N.length>j&&!N.warned){N.warned=!0;var x=new Error("Possible EventEmitter memory leak detected. "+N.length+" "+String(b)+" listeners added. Use emitter.setMaxListeners() to increase limit");x.name="MaxListenersExceededWarning",x.emitter=_,x.type=b,x.count=N.length,C=x,O&&O.warn&&O.warn(C)}return _}function n(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function o(_,b,I){var l={fired:!1,wrapFn:void 0,target:_,type:b,listener:I},j=n.bind(l);return j.listener=I,l.wrapFn=j,j}function i(_,b,I){var l=_._events;if(l===void 0)return[];var j=l[b];return j===void 0?[]:typeof j=="function"?I?[j.listener||j]:[j]:I?function(M){for(var N=new Array(M.length),C=0;C0&&(M=b[0]),M instanceof Error)throw M;var N=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw N.context=M,N}var C=j[_];if(C===void 0)return!1;if(typeof C=="function")S(C,this,b);else{var x=C.length,P=d(C,x);for(I=0;I=0;M--)if(I[M]===b||I[M].listener===b){N=I[M].listener,j=M;break}if(j<0)return this;j===0?I.shift():function(C,x){for(;x+1=0;l--)this.removeListener(_,b[l]);return this},t.prototype.listeners=function(_){return i(this,_,!0)},t.prototype.rawListeners=function(_){return i(this,_,!1)},t.listenerCount=function(_,b){return typeof _.listenerCount=="function"?_.listenerCount(b):f.call(_,b)},t.prototype.listenerCount=f,t.prototype.eventNames=function(){return this._eventsCount>0?w(this._events):[]}},4029:(D,e,h)=>{var w=h(5320),O=Object.prototype.toString,k=Object.prototype.hasOwnProperty;D.exports=function(S,a,t){if(!w(a))throw new TypeError("iterator must be a function");var c;arguments.length>=3&&(c=t),O.call(S)==="[object Array]"?function(u,s,r){for(var n=0,o=u.length;n{var e=Object.prototype.toString,h=Math.max,w=function(O,k){for(var S=[],a=0;a{var w=h(7648);D.exports=Function.prototype.bind||w},210:(D,e,h)=>{var w,O=SyntaxError,k=Function,S=TypeError,a=function(m){try{return k('"use strict"; return ('+m+").constructor;")()}catch{}},t=Object.getOwnPropertyDescriptor;if(t)try{t({},"")}catch{t=null}var c=function(){throw new S},u=t?function(){try{return c}catch{try{return t(arguments,"callee").get}catch{return c}}}():c,s=h(1405)(),r=h(8185)(),n=Object.getPrototypeOf||(r?function(m){return m.__proto__}:null),o={},i=typeof Uint8Array<"u"&&n?n(Uint8Array):w,f={"%AggregateError%":typeof AggregateError>"u"?w:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?w:ArrayBuffer,"%ArrayIteratorPrototype%":s&&n?n([][Symbol.iterator]()):w,"%AsyncFromSyncIteratorPrototype%":w,"%AsyncFunction%":o,"%AsyncGenerator%":o,"%AsyncGeneratorFunction%":o,"%AsyncIteratorPrototype%":o,"%Atomics%":typeof Atomics>"u"?w:Atomics,"%BigInt%":typeof BigInt>"u"?w:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?w:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?w:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?w:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?w:Float32Array,"%Float64Array%":typeof Float64Array>"u"?w:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?w:FinalizationRegistry,"%Function%":k,"%GeneratorFunction%":o,"%Int8Array%":typeof Int8Array>"u"?w:Int8Array,"%Int16Array%":typeof Int16Array>"u"?w:Int16Array,"%Int32Array%":typeof Int32Array>"u"?w:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s&&n?n(n([][Symbol.iterator]())):w,"%JSON%":typeof JSON=="object"?JSON:w,"%Map%":typeof Map>"u"?w:Map,"%MapIteratorPrototype%":typeof Map<"u"&&s&&n?n(new Map()[Symbol.iterator]()):w,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?w:Promise,"%Proxy%":typeof Proxy>"u"?w:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?w:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?w:Set,"%SetIteratorPrototype%":typeof Set<"u"&&s&&n?n(new Set()[Symbol.iterator]()):w,"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?w:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":s&&n?n(""[Symbol.iterator]()):w,"%Symbol%":s?Symbol:w,"%SyntaxError%":O,"%ThrowTypeError%":u,"%TypedArray%":i,"%TypeError%":S,"%Uint8Array%":typeof Uint8Array>"u"?w:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?w:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?w:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?w:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?w:WeakMap,"%WeakRef%":typeof WeakRef>"u"?w:WeakRef,"%WeakSet%":typeof WeakSet>"u"?w:WeakSet};if(n)try{null.error}catch(m){var d=n(n(m));f["%Error.prototype%"]=d}var p=function m(E){var B;if(E==="%AsyncFunction%")B=a("async function () {}");else if(E==="%GeneratorFunction%")B=a("function* () {}");else if(E==="%AsyncGeneratorFunction%")B=a("async function* () {}");else if(E==="%AsyncGenerator%"){var T=m("%AsyncGeneratorFunction%");T&&(B=T.prototype)}else if(E==="%AsyncIteratorPrototype%"){var q=m("%AsyncGenerator%");q&&n&&(B=n(q.prototype))}return f[E]=B,B},_={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=h(8612),I=h(7642),l=b.call(Function.call,Array.prototype.concat),j=b.call(Function.apply,Array.prototype.splice),M=b.call(Function.call,String.prototype.replace),N=b.call(Function.call,String.prototype.slice),C=b.call(Function.call,RegExp.prototype.exec),x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,v=function(m,E){var B,T=m;if(I(_,T)&&(T="%"+(B=_[T])[0]+"%"),I(f,T)){var q=f[T];if(q===o&&(q=p(T)),q===void 0&&!E)throw new S("intrinsic "+m+" exists, but is not available. Please file an issue!");return{alias:B,name:T,value:q}}throw new O("intrinsic "+m+" does not exist!")};D.exports=function(m,E){if(typeof m!="string"||m.length===0)throw new S("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof E!="boolean")throw new S('"allowMissing" argument must be a boolean');if(C(/^%?[^%]*%?$/,m)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var B=function(ae){var he=N(ae,0,1),le=N(ae,-1);if(he==="%"&&le!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(le==="%"&&he!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var ce=[];return M(ae,x,function(ve,de,pe,ye){ce[ce.length]=pe?M(ye,P,"$1"):de||ve}),ce}(m),T=B.length>0?B[0]:"",q=v("%"+T+"%",E),te=q.name,re=q.value,ie=!1,J=q.alias;J&&(T=J[0],j(B,l([0,1],J)));for(var ee=1,G=!0;ee=B.length){var F=t(re,$);re=(G=!!F)&&"get"in F&&!("originalValue"in F.get)?F.get:re[$]}else G=I(re,$),re=re[$];G&&!ie&&(f[te]=re)}}return re}},7296:(D,e,h)=>{var w=h(210)("%Object.getOwnPropertyDescriptor%",!0);if(w)try{w([],"length")}catch{w=null}D.exports=w},1044:(D,e,h)=>{var w=h(210)("%Object.defineProperty%",!0),O=function(){if(w)try{return w({},"a",{value:1}),!0}catch{return!1}return!1};O.hasArrayLengthDefineBug=function(){if(!O())return null;try{return w([],"length",{value:1}).length!==1}catch{return!0}},D.exports=O},8185:D=>{var e={foo:{}},h=Object;D.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof h)}},1405:(D,e,h)=>{var w=typeof Symbol<"u"&&Symbol,O=h(5419);D.exports=function(){return typeof w=="function"&&typeof Symbol=="function"&&typeof w("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&O()}},5419:D=>{D.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},h=Symbol("test"),w=Object(h);if(typeof h=="string"||Object.prototype.toString.call(h)!=="[object Symbol]"||Object.prototype.toString.call(w)!=="[object Symbol]")return!1;for(h in e[h]=42,e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var O=Object.getOwnPropertySymbols(e);if(O.length!==1||O[0]!==h||!Object.prototype.propertyIsEnumerable.call(e,h))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var k=Object.getOwnPropertyDescriptor(e,h);if(k.value!==42||k.enumerable!==!0)return!1}return!0}},6410:(D,e,h)=>{var w=h(5419);D.exports=function(){return w()&&!!Symbol.toStringTag}},7642:D=>{var e={}.hasOwnProperty,h=Function.prototype.call;D.exports=h.bind?h.bind(e):function(w,O){return h.call(e,w,O)}},3349:(D,e,h)=>{var w=h(9509).Buffer,O=h(8473).Transform;function k(S){O.call(this),this._block=w.allocUnsafe(S),this._blockSize=S,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}h(5717)(k,O),k.prototype._transform=function(S,a,t){var c=null;try{this.update(S,a)}catch(u){c=u}t(c)},k.prototype._flush=function(S){var a=null;try{this.push(this.digest())}catch(t){a=t}S(a)},k.prototype.update=function(S,a){if(function(n,o){if(!w.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer")}(S),this._finalized)throw new Error("Digest already called");w.isBuffer(S)||(S=w.from(S,a));for(var t=this._block,c=0;this._blockOffset+S.length-c>=this._blockSize;){for(var u=this._blockOffset;u0;++s)this._length[s]+=r,(r=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*r);return this},k.prototype._update=function(){throw new Error("_update is not implemented")},k.prototype.digest=function(S){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var a=this._digest();S!==void 0&&(a=a.toString(S)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return a},k.prototype._digest=function(){throw new Error("_digest is not implemented")},D.exports=k},3715:(D,e,h)=>{var w=e;w.utils=h(6436),w.common=h(5772),w.sha=h(9041),w.ripemd=h(2949),w.hmac=h(2344),w.sha1=w.sha.sha1,w.sha256=w.sha.sha256,w.sha224=w.sha.sha224,w.sha384=w.sha.sha384,w.sha512=w.sha.sha512,w.ripemd160=w.ripemd.ripemd160},5772:(D,e,h)=>{var w=h(6436),O=h(9746);function k(){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}e.BlockHash=k,k.prototype.update=function(S,a){if(S=w.toArray(S,a),this.pending?this.pending=this.pending.concat(S):this.pending=S,this.pendingTotal+=S.length,this.pending.length>=this._delta8){var t=(S=this.pending).length%this._delta8;this.pending=S.slice(S.length-t,S.length),this.pending.length===0&&(this.pending=null),S=w.join32(S,0,S.length-t,this.endian);for(var c=0;c>>24&255,c[u++]=S>>>16&255,c[u++]=S>>>8&255,c[u++]=255&S}else for(c[u++]=255&S,c[u++]=S>>>8&255,c[u++]=S>>>16&255,c[u++]=S>>>24&255,c[u++]=0,c[u++]=0,c[u++]=0,c[u++]=0,s=8;s{var w=h(6436),O=h(9746);function k(S,a,t){if(!(this instanceof k))return new k(S,a,t);this.Hash=S,this.blockSize=S.blockSize/8,this.outSize=S.outSize/8,this.inner=null,this.outer=null,this._init(w.toArray(a,t))}D.exports=k,k.prototype._init=function(S){S.length>this.blockSize&&(S=new this.Hash().update(S).digest()),O(S.length<=this.blockSize);for(var a=S.length;a{var w=h(6436),O=h(5772),k=w.rotl32,S=w.sum32,a=w.sum32_3,t=w.sum32_4,c=O.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function s(p,_,b,I){return p<=15?_^b^I:p<=31?_&b|~_&I:p<=47?(_|~b)^I:p<=63?_&I|b&~I:_^(b|~I)}function r(p){return p<=15?0:p<=31?1518500249:p<=47?1859775393:p<=63?2400959708:2840853838}function n(p){return p<=15?1352829926:p<=31?1548603684:p<=47?1836072691:p<=63?2053994217:0}w.inherits(u,c),e.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(p,_){for(var b=this.h[0],I=this.h[1],l=this.h[2],j=this.h[3],M=this.h[4],N=b,C=I,x=l,P=j,v=M,m=0;m<80;m++){var E=S(k(t(b,s(m,I,l,j),p[o[m]+_],r(m)),f[m]),M);b=M,M=j,j=k(l,10),l=I,I=E,E=S(k(t(N,s(79-m,C,x,P),p[i[m]+_],n(m)),d[m]),v),N=v,v=P,P=k(x,10),x=C,C=E}E=a(this.h[1],l,P),this.h[1]=a(this.h[2],j,v),this.h[2]=a(this.h[3],M,N),this.h[3]=a(this.h[4],b,C),this.h[4]=a(this.h[0],I,x),this.h[0]=E},u.prototype._digest=function(p){return p==="hex"?w.toHex32(this.h,"little"):w.split32(this.h,"little")};var o=[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],i=[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],f=[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],d=[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]},9041:(D,e,h)=>{e.sha1=h(4761),e.sha224=h(799),e.sha256=h(9344),e.sha384=h(772),e.sha512=h(5900)},4761:(D,e,h)=>{var w=h(6436),O=h(5772),k=h(7038),S=w.rotl32,a=w.sum32,t=w.sum32_5,c=k.ft_1,u=O.BlockHash,s=[1518500249,1859775393,2400959708,3395469782];function r(){if(!(this instanceof r))return new r;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}w.inherits(r,u),D.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(n,o){for(var i=this.W,f=0;f<16;f++)i[f]=n[o+f];for(;f{var w=h(6436),O=h(9344);function k(){if(!(this instanceof k))return new k;O.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}w.inherits(k,O),D.exports=k,k.blockSize=512,k.outSize=224,k.hmacStrength=192,k.padLength=64,k.prototype._digest=function(S){return S==="hex"?w.toHex32(this.h.slice(0,7),"big"):w.split32(this.h.slice(0,7),"big")}},9344:(D,e,h)=>{var w=h(6436),O=h(5772),k=h(7038),S=h(9746),a=w.sum32,t=w.sum32_4,c=w.sum32_5,u=k.ch32,s=k.maj32,r=k.s0_256,n=k.s1_256,o=k.g0_256,i=k.g1_256,f=O.BlockHash,d=[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 p(){if(!(this instanceof p))return new p;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=d,this.W=new Array(64)}w.inherits(p,f),D.exports=p,p.blockSize=512,p.outSize=256,p.hmacStrength=192,p.padLength=64,p.prototype._update=function(_,b){for(var I=this.W,l=0;l<16;l++)I[l]=_[b+l];for(;l{var w=h(6436),O=h(5900);function k(){if(!(this instanceof k))return new k;O.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}w.inherits(k,O),D.exports=k,k.blockSize=1024,k.outSize=384,k.hmacStrength=192,k.padLength=128,k.prototype._digest=function(S){return S==="hex"?w.toHex32(this.h.slice(0,12),"big"):w.split32(this.h.slice(0,12),"big")}},5900:(D,e,h)=>{var w=h(6436),O=h(5772),k=h(9746),S=w.rotr64_hi,a=w.rotr64_lo,t=w.shr64_hi,c=w.shr64_lo,u=w.sum64,s=w.sum64_hi,r=w.sum64_lo,n=w.sum64_4_hi,o=w.sum64_4_lo,i=w.sum64_5_hi,f=w.sum64_5_lo,d=O.BlockHash,p=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function _(){if(!(this instanceof _))return new _;d.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=p,this.W=new Array(160)}function b(m,E,B,T,q){var te=m&B^~m&q;return te<0&&(te+=4294967296),te}function I(m,E,B,T,q,te){var re=E&T^~E&te;return re<0&&(re+=4294967296),re}function l(m,E,B,T,q){var te=m&B^m&q^B&q;return te<0&&(te+=4294967296),te}function j(m,E,B,T,q,te){var re=E&T^E&te^T&te;return re<0&&(re+=4294967296),re}function M(m,E){var B=S(m,E,28)^S(E,m,2)^S(E,m,7);return B<0&&(B+=4294967296),B}function N(m,E){var B=a(m,E,28)^a(E,m,2)^a(E,m,7);return B<0&&(B+=4294967296),B}function C(m,E){var B=a(m,E,14)^a(m,E,18)^a(E,m,9);return B<0&&(B+=4294967296),B}function x(m,E){var B=S(m,E,1)^S(m,E,8)^t(m,E,7);return B<0&&(B+=4294967296),B}function P(m,E){var B=a(m,E,1)^a(m,E,8)^c(m,E,7);return B<0&&(B+=4294967296),B}function v(m,E){var B=a(m,E,19)^a(E,m,29)^c(m,E,6);return B<0&&(B+=4294967296),B}w.inherits(_,d),D.exports=_,_.blockSize=1024,_.outSize=512,_.hmacStrength=192,_.padLength=128,_.prototype._prepareBlock=function(m,E){for(var B=this.W,T=0;T<32;T++)B[T]=m[E+T];for(;T{var w=h(6436).rotr32;function O(a,t,c){return a&t^~a&c}function k(a,t,c){return a&t^a&c^t&c}function S(a,t,c){return a^t^c}e.ft_1=function(a,t,c,u){return a===0?O(t,c,u):a===1||a===3?S(t,c,u):a===2?k(t,c,u):void 0},e.ch32=O,e.maj32=k,e.p32=S,e.s0_256=function(a){return w(a,2)^w(a,13)^w(a,22)},e.s1_256=function(a){return w(a,6)^w(a,11)^w(a,25)},e.g0_256=function(a){return w(a,7)^w(a,18)^a>>>3},e.g1_256=function(a){return w(a,17)^w(a,19)^a>>>10}},6436:(D,e,h)=>{var w=h(9746),O=h(5717);function k(c,u){return(64512&c.charCodeAt(u))==55296&&!(u<0||u+1>=c.length)&&(64512&c.charCodeAt(u+1))==56320}function S(c){return(c>>>24|c>>>8&65280|c<<8&16711680|(255&c)<<24)>>>0}function a(c){return c.length===1?"0"+c:c}function t(c){return c.length===7?"0"+c:c.length===6?"00"+c:c.length===5?"000"+c:c.length===4?"0000"+c:c.length===3?"00000"+c:c.length===2?"000000"+c:c.length===1?"0000000"+c:c}e.inherits=O,e.toArray=function(c,u){if(Array.isArray(c))return c.slice();if(!c)return[];var s=[];if(typeof c=="string")if(u){if(u==="hex")for((c=c.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(c="0"+c),n=0;n>6|192,s[r++]=63&o|128):k(c,n)?(o=65536+((1023&o)<<10)+(1023&c.charCodeAt(++n)),s[r++]=o>>18|240,s[r++]=o>>12&63|128,s[r++]=o>>6&63|128,s[r++]=63&o|128):(s[r++]=o>>12|224,s[r++]=o>>6&63|128,s[r++]=63&o|128)}else for(n=0;n>>0}return o},e.split32=function(c,u){for(var s=new Array(4*c.length),r=0,n=0;r>>24,s[n+1]=o>>>16&255,s[n+2]=o>>>8&255,s[n+3]=255&o):(s[n+3]=o>>>24,s[n+2]=o>>>16&255,s[n+1]=o>>>8&255,s[n]=255&o)}return s},e.rotr32=function(c,u){return c>>>u|c<<32-u},e.rotl32=function(c,u){return c<>>32-u},e.sum32=function(c,u){return c+u>>>0},e.sum32_3=function(c,u,s){return c+u+s>>>0},e.sum32_4=function(c,u,s,r){return c+u+s+r>>>0},e.sum32_5=function(c,u,s,r,n){return c+u+s+r+n>>>0},e.sum64=function(c,u,s,r){var n=c[u],o=r+c[u+1]>>>0,i=(o>>0,c[u+1]=o},e.sum64_hi=function(c,u,s,r){return(u+r>>>0>>0},e.sum64_lo=function(c,u,s,r){return u+r>>>0},e.sum64_4_hi=function(c,u,s,r,n,o,i,f){var d=0,p=u;return d+=(p=p+r>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(c,u,s,r,n,o,i,f){return u+r+o+f>>>0},e.sum64_5_hi=function(c,u,s,r,n,o,i,f,d,p){var _=0,b=u;return _+=(b=b+r>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(c,u,s,r,n,o,i,f,d,p){return u+r+o+f+p>>>0},e.rotr64_hi=function(c,u,s){return(u<<32-s|c>>>s)>>>0},e.rotr64_lo=function(c,u,s){return(c<<32-s|u>>>s)>>>0},e.shr64_hi=function(c,u,s){return c>>>s},e.shr64_lo=function(c,u,s){return(c<<32-s|u>>>s)>>>0}},2156:(D,e,h)=>{var w=h(3715),O=h(4504),k=h(9746);function S(a){if(!(this instanceof S))return new S(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=O.toArray(a.entropy,a.entropyEnc||"hex"),c=O.toArray(a.nonce,a.nonceEnc||"hex"),u=O.toArray(a.pers,a.persEnc||"hex");k(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,c,u)}D.exports=S,S.prototype._init=function(a,t,c){var u=a.concat(t).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(c||[])),this._reseed=1},S.prototype.generate=function(a,t,c,u){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(u=c,c=t,t=null),c&&(c=O.toArray(c,u||"hex"),this._update(c));for(var s=[];s.length{e.read=function(h,w,O,k,S){var a,t,c=8*S-k-1,u=(1<>1,r=-7,n=O?S-1:0,o=O?-1:1,i=h[w+n];for(n+=o,a=i&(1<<-r)-1,i>>=-r,r+=c;r>0;a=256*a+h[w+n],n+=o,r-=8);for(t=a&(1<<-r)-1,a>>=-r,r+=k;r>0;t=256*t+h[w+n],n+=o,r-=8);if(a===0)a=1-s;else{if(a===u)return t?NaN:1/0*(i?-1:1);t+=Math.pow(2,k),a-=s}return(i?-1:1)*t*Math.pow(2,a-k)},e.write=function(h,w,O,k,S,a){var t,c,u,s=8*a-S-1,r=(1<>1,o=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=k?0:a-1,f=k?1:-1,d=w<0||w===0&&1/w<0?1:0;for(w=Math.abs(w),isNaN(w)||w===1/0?(c=isNaN(w)?1:0,t=r):(t=Math.floor(Math.log(w)/Math.LN2),w*(u=Math.pow(2,-t))<1&&(t--,u*=2),(w+=t+n>=1?o/u:o*Math.pow(2,1-n))*u>=2&&(t++,u/=2),t+n>=r?(c=0,t=r):t+n>=1?(c=(w*u-1)*Math.pow(2,S),t+=n):(c=w*Math.pow(2,n-1)*Math.pow(2,S),t=0));S>=8;h[O+i]=255&c,i+=f,c/=256,S-=8);for(t=t<0;h[O+i]=255&t,i+=f,t/=256,s-=8);h[O+i-f]|=128*d}},5717:D=>{typeof Object.create=="function"?D.exports=function(e,h){h&&(e.super_=h,e.prototype=Object.create(h.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(e,h){if(h){e.super_=h;var w=function(){};w.prototype=h.prototype,e.prototype=new w,e.prototype.constructor=e}}},2584:(D,e,h)=>{var w=h(6410)(),O=h(1924)("Object.prototype.toString"),k=function(t){return!(w&&t&&typeof t=="object"&&Symbol.toStringTag in t)&&O(t)==="[object Arguments]"},S=function(t){return!!k(t)||t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&O(t)!=="[object Array]"&&O(t.callee)==="[object Function]"},a=function(){return k(arguments)}();k.isLegacyArguments=S,D.exports=a?k:S},5320:D=>{var e,h,w=Function.prototype.toString,O=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof O=="function"&&typeof Object.defineProperty=="function")try{e=Object.defineProperty({},"length",{get:function(){throw h}}),h={},O(function(){throw 42},null,e)}catch(n){n!==h&&(O=null)}else O=null;var k=/^\s*class\b/,S=function(n){try{var o=w.call(n);return k.test(o)}catch{return!1}},a=function(n){try{return!S(n)&&(w.call(n),!0)}catch{return!1}},t=Object.prototype.toString,c=typeof Symbol=="function"&&!!Symbol.toStringTag,u=!(0 in[,]),s=function(){return!1};if(typeof document=="object"){var r=document.all;t.call(r)===t.call(document.all)&&(s=function(n){if((u||!n)&&(n===void 0||typeof n=="object"))try{var o=t.call(n);return(o==="[object HTMLAllCollection]"||o==="[object HTML document.all class]"||o==="[object HTMLCollection]"||o==="[object Object]")&&n("")==null}catch{}return!1})}D.exports=O?function(n){if(s(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;try{O(n,null,e)}catch(o){if(o!==h)return!1}return!S(n)&&a(n)}:function(n){if(s(n))return!0;if(!n||typeof n!="function"&&typeof n!="object")return!1;if(c)return a(n);if(S(n))return!1;var o=t.call(n);return!(o!=="[object Function]"&&o!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(o))&&a(n)}},8662:(D,e,h)=>{var w,O=Object.prototype.toString,k=Function.prototype.toString,S=/^\s*(?:function)?\*/,a=h(6410)(),t=Object.getPrototypeOf;D.exports=function(c){if(typeof c!="function")return!1;if(S.test(k.call(c)))return!0;if(!a)return O.call(c)==="[object GeneratorFunction]";if(!t)return!1;if(w===void 0){var u=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch{}}();w=!!u&&t(u)}return t(c)===w}},8611:D=>{D.exports=function(e){return e!=e}},360:(D,e,h)=>{var w=h(5559),O=h(4289),k=h(8611),S=h(9415),a=h(3194),t=w(S(),Number);O(t,{getPolyfill:S,implementation:k,shim:a}),D.exports=t},9415:(D,e,h)=>{var w=h(8611);D.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:w}},3194:(D,e,h)=>{var w=h(4289),O=h(9415);D.exports=function(){var k=O();return w(Number,{isNaN:k},{isNaN:function(){return Number.isNaN!==k}}),k}},5692:(D,e,h)=>{var w=h(6430);D.exports=function(O){return!!w(O)}},3720:D=>{D.exports=h;var e=null;try{e=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{}function h(N,C,x){this.low=0|N,this.high=0|C,this.unsigned=!!x}function w(N){return(N&&N.__isLong__)===!0}h.prototype.__isLong__,Object.defineProperty(h.prototype,"__isLong__",{value:!0}),h.isLong=w;var O={},k={};function S(N,C){var x,P,v;return C?(v=0<=(N>>>=0)&&N<256)&&(P=k[N])?P:(x=t(N,(0|N)<0?-1:0,!0),v&&(k[N]=x),x):(v=-128<=(N|=0)&&N<128)&&(P=O[N])?P:(x=t(N,N<0?-1:0,!1),v&&(O[N]=x),x)}function a(N,C){if(isNaN(N))return C?d:f;if(C){if(N<0)return d;if(N>=n)return l}else{if(N<=-o)return j;if(N+1>=o)return I}return N<0?a(-N,C).neg():t(N%r|0,N/r|0,C)}function t(N,C,x){return new h(N,C,x)}h.fromInt=S,h.fromNumber=a,h.fromBits=t;var c=Math.pow;function u(N,C,x){if(N.length===0)throw Error("empty string");if(N==="NaN"||N==="Infinity"||N==="+Infinity"||N==="-Infinity")return f;if(typeof C=="number"?(x=C,C=!1):C=!!C,(x=x||10)<2||360)throw Error("interior hyphen");if(P===0)return u(N.substring(1),C,x).neg();for(var v=a(c(x,8)),m=f,E=0;E>>0:this.low},M.toNumber=function(){return this.unsigned?(this.high>>>0)*r+(this.low>>>0):this.high*r+(this.low>>>0)},M.toString=function(N){if((N=N||10)<2||36>>0).toString(N);if((m=B).isZero())return T+E;for(;T.length<6;)T="0"+T;E=""+T+E}},M.getHighBits=function(){return this.high},M.getHighBitsUnsigned=function(){return this.high>>>0},M.getLowBits=function(){return this.low},M.getLowBitsUnsigned=function(){return this.low>>>0},M.getNumBitsAbs=function(){if(this.isNegative())return this.eq(j)?64:this.neg().getNumBitsAbs();for(var N=this.high!=0?this.high:this.low,C=31;C>0&&!(N&1<=0},M.isOdd=function(){return(1&this.low)==1},M.isEven=function(){return(1&this.low)==0},M.equals=function(N){return w(N)||(N=s(N)),(this.unsigned===N.unsigned||this.high>>>31!=1||N.high>>>31!=1)&&this.high===N.high&&this.low===N.low},M.eq=M.equals,M.notEquals=function(N){return!this.eq(N)},M.neq=M.notEquals,M.ne=M.notEquals,M.lessThan=function(N){return this.comp(N)<0},M.lt=M.lessThan,M.lessThanOrEqual=function(N){return this.comp(N)<=0},M.lte=M.lessThanOrEqual,M.le=M.lessThanOrEqual,M.greaterThan=function(N){return this.comp(N)>0},M.gt=M.greaterThan,M.greaterThanOrEqual=function(N){return this.comp(N)>=0},M.gte=M.greaterThanOrEqual,M.ge=M.greaterThanOrEqual,M.compare=function(N){if(w(N)||(N=s(N)),this.eq(N))return 0;var C=this.isNegative(),x=N.isNegative();return C&&!x?-1:!C&&x?1:this.unsigned?N.high>>>0>this.high>>>0||N.high===this.high&&N.low>>>0>this.low>>>0?-1:1:this.sub(N).isNegative()?-1:1},M.comp=M.compare,M.negate=function(){return!this.unsigned&&this.eq(j)?j:this.not().add(p)},M.neg=M.negate,M.add=function(N){w(N)||(N=s(N));var C=this.high>>>16,x=65535&this.high,P=this.low>>>16,v=65535&this.low,m=N.high>>>16,E=65535&N.high,B=N.low>>>16,T=0,q=0,te=0,re=0;return te+=(re+=v+(65535&N.low))>>>16,q+=(te+=P+B)>>>16,T+=(q+=x+E)>>>16,T+=C+m,t((te&=65535)<<16|(re&=65535),(T&=65535)<<16|(q&=65535),this.unsigned)},M.subtract=function(N){return w(N)||(N=s(N)),this.add(N.neg())},M.sub=M.subtract,M.multiply=function(N){if(this.isZero())return f;if(w(N)||(N=s(N)),e)return t(e.mul(this.low,this.high,N.low,N.high),e.get_high(),this.unsigned);if(N.isZero())return f;if(this.eq(j))return N.isOdd()?j:f;if(N.eq(j))return this.isOdd()?j:f;if(this.isNegative())return N.isNegative()?this.neg().mul(N.neg()):this.neg().mul(N).neg();if(N.isNegative())return this.mul(N.neg()).neg();if(this.lt(i)&&N.lt(i))return a(this.toNumber()*N.toNumber(),this.unsigned);var C=this.high>>>16,x=65535&this.high,P=this.low>>>16,v=65535&this.low,m=N.high>>>16,E=65535&N.high,B=N.low>>>16,T=65535&N.low,q=0,te=0,re=0,ie=0;return re+=(ie+=v*T)>>>16,te+=(re+=P*T)>>>16,re&=65535,te+=(re+=v*B)>>>16,q+=(te+=x*T)>>>16,te&=65535,q+=(te+=P*B)>>>16,te&=65535,q+=(te+=v*E)>>>16,q+=C*T+x*B+P*E+v*m,t((re&=65535)<<16|(ie&=65535),(q&=65535)<<16|(te&=65535),this.unsigned)},M.mul=M.multiply,M.divide=function(N){if(w(N)||(N=s(N)),N.isZero())throw Error("division by zero");var C,x,P;if(e)return this.unsigned||this.high!==-2147483648||N.low!==-1||N.high!==-1?t((this.unsigned?e.div_u:e.div_s)(this.low,this.high,N.low,N.high),e.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?d:f;if(this.unsigned){if(N.unsigned||(N=N.toUnsigned()),N.gt(this))return d;if(N.gt(this.shru(1)))return _;P=d}else{if(this.eq(j))return N.eq(p)||N.eq(b)?j:N.eq(j)?p:(C=this.shr(1).div(N).shl(1)).eq(f)?N.isNegative()?p:b:(x=this.sub(N.mul(C)),P=C.add(x.div(N)));if(N.eq(j))return this.unsigned?d:f;if(this.isNegative())return N.isNegative()?this.neg().div(N.neg()):this.neg().div(N).neg();if(N.isNegative())return this.div(N.neg()).neg();P=f}for(x=this;x.gte(N);){C=Math.max(1,Math.floor(x.toNumber()/N.toNumber()));for(var v=Math.ceil(Math.log(C)/Math.LN2),m=v<=48?1:c(2,v-48),E=a(C),B=E.mul(N);B.isNegative()||B.gt(x);)B=(E=a(C-=m,this.unsigned)).mul(N);E.isZero()&&(E=p),P=P.add(E),x=x.sub(B)}return P},M.div=M.divide,M.modulo=function(N){return w(N)||(N=s(N)),e?t((this.unsigned?e.rem_u:e.rem_s)(this.low,this.high,N.low,N.high),e.get_high(),this.unsigned):this.sub(this.div(N).mul(N))},M.mod=M.modulo,M.rem=M.modulo,M.not=function(){return t(~this.low,~this.high,this.unsigned)},M.and=function(N){return w(N)||(N=s(N)),t(this.low&N.low,this.high&N.high,this.unsigned)},M.or=function(N){return w(N)||(N=s(N)),t(this.low|N.low,this.high|N.high,this.unsigned)},M.xor=function(N){return w(N)||(N=s(N)),t(this.low^N.low,this.high^N.high,this.unsigned)},M.shiftLeft=function(N){return w(N)&&(N=N.toInt()),(N&=63)==0?this:N<32?t(this.low<>>32-N,this.unsigned):t(0,this.low<>>N|this.high<<32-N,this.high>>N,this.unsigned):t(this.high>>N-32,this.high>=0?0:-1,this.unsigned)},M.shr=M.shiftRight,M.shiftRightUnsigned=function(N){if(w(N)&&(N=N.toInt()),(N&=63)==0)return this;var C=this.high;return N<32?t(this.low>>>N|C<<32-N,C>>>N,this.unsigned):t(N===32?C:C>>>N-32,0,this.unsigned)},M.shru=M.shiftRightUnsigned,M.shr_u=M.shiftRightUnsigned,M.toSigned=function(){return this.unsigned?t(this.low,this.high,!1):this},M.toUnsigned=function(){return this.unsigned?this:t(this.low,this.high,!0)},M.toBytes=function(N){return N?this.toBytesLE():this.toBytesBE()},M.toBytesLE=function(){var N=this.high,C=this.low;return[255&C,C>>>8&255,C>>>16&255,C>>>24,255&N,N>>>8&255,N>>>16&255,N>>>24]},M.toBytesBE=function(){var N=this.high,C=this.low;return[N>>>24,N>>>16&255,N>>>8&255,255&N,C>>>24,C>>>16&255,C>>>8&255,255&C]},h.fromBytes=function(N,C,x){return x?h.fromBytesLE(N,C):h.fromBytesBE(N,C)},h.fromBytesLE=function(N,C){return new h(N[0]|N[1]<<8|N[2]<<16|N[3]<<24,N[4]|N[5]<<8|N[6]<<16|N[7]<<24,C)},h.fromBytesBE=function(N,C){return new h(N[4]<<24|N[5]<<16|N[6]<<8|N[7],N[0]<<24|N[1]<<16|N[2]<<8|N[3],C)}},2318:(D,e,h)=>{var w=h(5717),O=h(3349),k=h(9509).Buffer,S=new Array(16);function a(){O.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function t(n,o){return n<>>32-o}function c(n,o,i,f,d,p,_){return t(n+(o&i|~o&f)+d+p|0,_)+o|0}function u(n,o,i,f,d,p,_){return t(n+(o&f|i&~f)+d+p|0,_)+o|0}function s(n,o,i,f,d,p,_){return t(n+(o^i^f)+d+p|0,_)+o|0}function r(n,o,i,f,d,p,_){return t(n+(i^(o|~f))+d+p|0,_)+o|0}w(a,O),a.prototype._update=function(){for(var n=S,o=0;o<16;++o)n[o]=this._block.readInt32LE(4*o);var i=this._a,f=this._b,d=this._c,p=this._d;i=c(i,f,d,p,n[0],3614090360,7),p=c(p,i,f,d,n[1],3905402710,12),d=c(d,p,i,f,n[2],606105819,17),f=c(f,d,p,i,n[3],3250441966,22),i=c(i,f,d,p,n[4],4118548399,7),p=c(p,i,f,d,n[5],1200080426,12),d=c(d,p,i,f,n[6],2821735955,17),f=c(f,d,p,i,n[7],4249261313,22),i=c(i,f,d,p,n[8],1770035416,7),p=c(p,i,f,d,n[9],2336552879,12),d=c(d,p,i,f,n[10],4294925233,17),f=c(f,d,p,i,n[11],2304563134,22),i=c(i,f,d,p,n[12],1804603682,7),p=c(p,i,f,d,n[13],4254626195,12),d=c(d,p,i,f,n[14],2792965006,17),i=u(i,f=c(f,d,p,i,n[15],1236535329,22),d,p,n[1],4129170786,5),p=u(p,i,f,d,n[6],3225465664,9),d=u(d,p,i,f,n[11],643717713,14),f=u(f,d,p,i,n[0],3921069994,20),i=u(i,f,d,p,n[5],3593408605,5),p=u(p,i,f,d,n[10],38016083,9),d=u(d,p,i,f,n[15],3634488961,14),f=u(f,d,p,i,n[4],3889429448,20),i=u(i,f,d,p,n[9],568446438,5),p=u(p,i,f,d,n[14],3275163606,9),d=u(d,p,i,f,n[3],4107603335,14),f=u(f,d,p,i,n[8],1163531501,20),i=u(i,f,d,p,n[13],2850285829,5),p=u(p,i,f,d,n[2],4243563512,9),d=u(d,p,i,f,n[7],1735328473,14),i=s(i,f=u(f,d,p,i,n[12],2368359562,20),d,p,n[5],4294588738,4),p=s(p,i,f,d,n[8],2272392833,11),d=s(d,p,i,f,n[11],1839030562,16),f=s(f,d,p,i,n[14],4259657740,23),i=s(i,f,d,p,n[1],2763975236,4),p=s(p,i,f,d,n[4],1272893353,11),d=s(d,p,i,f,n[7],4139469664,16),f=s(f,d,p,i,n[10],3200236656,23),i=s(i,f,d,p,n[13],681279174,4),p=s(p,i,f,d,n[0],3936430074,11),d=s(d,p,i,f,n[3],3572445317,16),f=s(f,d,p,i,n[6],76029189,23),i=s(i,f,d,p,n[9],3654602809,4),p=s(p,i,f,d,n[12],3873151461,11),d=s(d,p,i,f,n[15],530742520,16),i=r(i,f=s(f,d,p,i,n[2],3299628645,23),d,p,n[0],4096336452,6),p=r(p,i,f,d,n[7],1126891415,10),d=r(d,p,i,f,n[14],2878612391,15),f=r(f,d,p,i,n[5],4237533241,21),i=r(i,f,d,p,n[12],1700485571,6),p=r(p,i,f,d,n[3],2399980690,10),d=r(d,p,i,f,n[10],4293915773,15),f=r(f,d,p,i,n[1],2240044497,21),i=r(i,f,d,p,n[8],1873313359,6),p=r(p,i,f,d,n[15],4264355552,10),d=r(d,p,i,f,n[6],2734768916,15),f=r(f,d,p,i,n[13],1309151649,21),i=r(i,f,d,p,n[4],4149444226,6),p=r(p,i,f,d,n[11],3174756917,10),d=r(d,p,i,f,n[2],718787259,15),f=r(f,d,p,i,n[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+f|0,this._c=this._c+d|0,this._d=this._d+p|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var n=k.allocUnsafe(16);return n.writeInt32LE(this._a,0),n.writeInt32LE(this._b,4),n.writeInt32LE(this._c,8),n.writeInt32LE(this._d,12),n},D.exports=a},9746:D=>{function e(h,w){if(!h)throw new Error(w||"Assertion failed")}D.exports=e,e.equal=function(h,w,O){if(h!=w)throw new Error(O||"Assertion failed: "+h+" != "+w)}},4504:(D,e)=>{var h=e;function w(k){return k.length===1?"0"+k:k}function O(k){for(var S="",a=0;a>8,s=255&c;u?a.push(u,s):a.push(s)}return a},h.zero2=w,h.toHex=O,h.encode=function(k,S){return S==="hex"?O(k):k}},45:function(D,e,h){var w=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){f.done?s(f.value):new c(function(d){d(f.value)}).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=h(3555),k=h(8982);class S{static importKey(t,c,u=new O.WebCryptoProvider){return w(this,void 0,void 0,function*(){return new S(yield k.SIV.importKey(t,c,u))})}constructor(t){this._siv=t}seal(t,c,u=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._siv.seal(t,[u,c])})}open(t,c,u=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._siv.open(t,[u,c])})}clear(){return this._siv.clear(),this}}e.AEAD=S},4870:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0});class h extends Error{constructor(k){super(k),Object.setPrototypeOf(this,h.prototype)}}e.IntegrityError=h;class w extends Error{constructor(k){super(k),Object.setPrototypeOf(this,w.prototype)}}e.NotImplementedError=w},9463:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),function(u){for(var s in u)e.hasOwnProperty(s)||(e[s]=u[s])}(h(4870));var w=h(45);e.AEAD=w.AEAD;var O=h(8982);e.SIV=O.SIV;var k=h(8711);e.StreamEncryptor=k.StreamEncryptor,e.StreamDecryptor=k.StreamDecryptor;var S=h(8572);e.CMAC=S.CMAC;var a=h(8462);e.PMAC=a.PMAC;var t=h(3511);e.PolyfillCryptoProvider=t.PolyfillCryptoProvider;var c=h(3555);e.WebCryptoProvider=c.WebCryptoProvider},3618:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0});const w=h(8877),O=h(3082);class k{constructor(){this.data=new Uint8Array(k.SIZE)}clear(){O.wipe(this.data)}clone(){const a=new k;return a.copy(this),a}copy(a){this.data.set(a.data)}dbl(){let a=0;for(let t=k.SIZE-1;t>=0;t--){const c=this.data[t]>>>7&255;this.data[t]=this.data[t]<<1|a,a=c}this.data[k.SIZE-1]^=w.select(a,k.R,0),a=0}}k.SIZE=16,k.R=135,e.default=k},8877:(D,e)=>{function h(w,O){if(w.length!==O.length)return 0;let k=0;for(let S=0;S>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(w,O,k){return~(w-1)&O|w-1&k},e.compare=h,e.equal=function(w,O){return w.length!==0&&O.length!==0&&h(w,O)!==0}},2104:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0});const h=new Uint8Array([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0]);e.ctz=function(w){return h[w]}},3082:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.wipe=function(h){for(let w=0;w{Object.defineProperty(e,"__esModule",{value:!0}),e.xor=function(h,w){for(let O=0;Oc){for(let r=0;rO.default.SIZE;){for(let r=0;r0;d--){const p=k.select(1&i.data[d-1],128,0);i.data[d]=i.data[d]>>>1|p}return i.data[0]>>>=1,i.data[0]^=k.select(f,128,0),i.data[O.default.SIZE-1]^=k.select(f,O.default.R>>>1,0),new t(r,o,i)})}reset(){return this._buffer.clear(),this._bufferPos=0,this._counter=0,this._offset.clear(),this._tag.clear(),this._finished=!1,this}clear(){this.reset(),this._cipher.clear()}update(u){return w(this,void 0,void 0,function*(){if(this._finished)throw new Error("pmac: already finished");const s=O.default.SIZE-this._bufferPos;let r=0,n=u.length;for(n>s&&(this._buffer.data.set(u.slice(0,s),this._bufferPos),r+=s,n-=s,yield this._processBuffer());n>O.default.SIZE;)this._buffer.data.set(u.slice(r,r+O.default.SIZE)),r+=O.default.SIZE,n-=O.default.SIZE,yield this._processBuffer();return n>0&&(this._buffer.data.set(u.slice(r,r+n),this._bufferPos),this._bufferPos+=n),this})}finish(){return w(this,void 0,void 0,function*(){if(this._finished)throw new Error("pmac: already finished");return this._bufferPos===O.default.SIZE?(a.xor(this._tag.data,this._buffer.data),a.xor(this._tag.data,this._LInv.data)):(a.xor(this._tag.data,this._buffer.data.slice(0,this._bufferPos)),this._tag.data[this._bufferPos]^=128),yield this._cipher.encryptBlock(this._tag),this._finished=!0,this._tag.clone().data})}_processBuffer(){return w(this,void 0,void 0,function*(){a.xor(this._offset.data,this._L[S.ctz(this._counter+1)].data),a.xor(this._buffer.data,this._offset.data),this._counter++,yield this._cipher.encryptBlock(this._buffer),a.xor(this._tag.data,this._buffer.data),this._bufferPos=0})}}e.PMAC=t},3511:function(D,e,h){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){i.done?u(i.value):new t(function(f){f(i.value)}).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=h(4274),k=h(3056);e.PolyfillCryptoProvider=class{constructor(){}importBlockCipherKey(S){return w(this,void 0,void 0,function*(){return new O.default(S)})}importCTRKey(S){return w(this,void 0,void 0,function*(){return new k.default(new O.default(S))})}}},4274:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0});const w=h(3082),O=new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47]),k=new Uint8Array([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]),S=new Uint8Array([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]);let a,t,c,u,s,r,n,o,i=!1;function f(_,b=0){return(_[b]<<24|_[b+1]<<16|_[b+2]<<8|_[b+3])>>>0}function d(_,b=new Uint8Array(4),I=0){return b[I+0]=_>>>24,b[I+1]=_>>>16,b[I+2]=_>>>8,b[I+3]=_>>>0,b}function p(_){return k[_>>>24&255]<<24|k[_>>>16&255]<<16|k[_>>>8&255]<<8|k[255&_]}e.default=class{constructor(_){if(i||function(){function b(l,j){let M=l,N=j,C=0;for(let x=1;x<256&&N!==0;x<<=1)N&x&&(C^=M,N^=x),M<<=1,256&M&&(M^=283);return C}const I=l=>l<<24|l>>>8;a=new Uint32Array(256),t=new Uint32Array(256),c=new Uint32Array(256),u=new Uint32Array(256);for(let l=0;l<256;l++){const j=k[l];let M=b(j,2)<<24|j<<16|j<<8|b(j,3);a[l]=M,M=I(M),t[l]=M,M=I(M),c[l]=M,M=I(M),u[l]=M,M=I(M)}s=new Uint32Array(256),r=new Uint32Array(256),n=new Uint32Array(256),o=new Uint32Array(256);for(let l=0;l<256;l++){const j=S[l];let M=b(j,14)<<24|b(j,9)<<16|b(j,13)<<8|b(j,11);s[l]=M,M=I(M),r[l]=M,M=I(M),n[l]=M,M=I(M),o[l]=M,M=I(M)}i=!0}(),_.length!==16&&_.length!==32)throw new Error(`Miscreant: invalid key length: ${_.length} (expected 16 or 32 bytes)`);this._encKey=function(b){const I=new Uint32Array(b.length+28),l=b.length/4|0,j=I.length;for(let N=0;N>>24)^O[N/l-1]<<24:l>6&&N%l==4&&(C=p(C)),I[N]=I[N-l]^C}var M;return I}(_),this._emptyPromise=Promise.resolve(this)}clear(){return this._encKey&&w.wipe(this._encKey),this}encryptBlock(_){const b=_.data,I=_.data;let l=f(b,0),j=f(b,4),M=f(b,8),N=f(b,12);l^=this._encKey[0],j^=this._encKey[1],M^=this._encKey[2],N^=this._encKey[3];let C=0,x=0,P=0,v=0;const m=this._encKey.length/4-2;let E=4;for(let B=0;B>>24&255]^t[j>>>16&255]^c[M>>>8&255]^u[255&N],x=this._encKey[E+1]^a[j>>>24&255]^t[M>>>16&255]^c[N>>>8&255]^u[255&l],P=this._encKey[E+2]^a[M>>>24&255]^t[N>>>16&255]^c[l>>>8&255]^u[255&j],v=this._encKey[E+3]^a[N>>>24&255]^t[l>>>16&255]^c[j>>>8&255]^u[255&M],E+=4,l=C,j=x,M=P,N=v;return l=k[C>>>24]<<24|k[x>>>16&255]<<16|k[P>>>8&255]<<8|k[255&v],j=k[x>>>24]<<24|k[P>>>16&255]<<16|k[v>>>8&255]<<8|k[255&C],M=k[P>>>24]<<24|k[v>>>16&255]<<16|k[C>>>8&255]<<8|k[255&x],N=k[v>>>24]<<24|k[C>>>16&255]<<16|k[x>>>8&255]<<8|k[255&P],l^=this._encKey[E+0],j^=this._encKey[E+1],M^=this._encKey[E+2],N^=this._encKey[E+3],d(l,I,0),d(j,I,4),d(M,I,8),d(N,I,12),this._emptyPromise}}},3056:function(D,e,h){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){i.done?u(i.value):new t(function(f){f(i.value)}).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=h(3618);function k(S){let a=1;for(let t=O.default.SIZE-1;t>=0;t--)a+=255&S.data[t]|0,S.data[t]=255&a,a>>>=8}e.default=class{constructor(S){this._cipher=S,this._counter=new O.default,this._buffer=new O.default}clear(){return this._buffer.clear(),this._counter.clear(),this._cipher.clear(),this}encryptCtr(S,a){return w(this,void 0,void 0,function*(){if(S.length!==O.default.SIZE)throw new Error("CTR: iv length must be equal to cipher block size");this._counter.data.set(S);let t=O.default.SIZE;const c=new Uint8Array(a.length);for(let u=0;ue.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");const d=t.default.SIZE+i.length,p=new Uint8Array(d),_=yield this._s2v(f,i);return p.set(_),n(_),p.set(yield this._ctr.encryptCtr(_,i),_.length),p})}open(i,f){return w(this,void 0,void 0,function*(){if(f.length>e.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");if(i.length=t.default.SIZE){const d=f.length-t.default.SIZE;this._tmp1.data.set(f.subarray(d)),yield this._mac.update(f.subarray(0,d))}else this._tmp1.data.set(f),this._tmp1.data[f.length]=128,this._tmp2.dbl();return S.xor(this._tmp1.data,this._tmp2.data),yield this._mac.update(this._tmp1.data),this._mac.finish()})}}function n(o){o[o.length-8]&=127,o[o.length-4]&=127}e.SIV=r},8711:function(D,e,h){var w=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(p){try{d(r.next(p))}catch(_){o(_)}}function f(p){try{d(r.throw(p))}catch(_){o(_)}}function d(p){p.done?n(p.value):new s(function(_){_(p.value)}).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0});const O=h(45),k=h(3555);e.NONCE_SIZE=8,e.LAST_BLOCK_FLAG=1,e.COUNTER_MAX=4294967295;class S{static importKey(u,s,r,n=new k.WebCryptoProvider){return w(this,void 0,void 0,function*(){return new S(yield O.AEAD.importKey(u,r,n),s)})}constructor(u,s){this._aead=u,this._nonce_encoder=new t(s)}seal(u,s=!1,r=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._aead.seal(u,this._nonce_encoder.next(s),r)})}clear(){return this._aead.clear(),this}}e.StreamEncryptor=S;class a{static importKey(u,s,r,n=new k.WebCryptoProvider){return w(this,void 0,void 0,function*(){return new a(yield O.AEAD.importKey(u,r,n),s)})}constructor(u,s){this._aead=u,this._nonce_encoder=new t(s)}open(u,s=!1,r=new Uint8Array(0)){return w(this,void 0,void 0,function*(){return this._aead.open(u,this._nonce_encoder.next(s),r)})}clear(){return this._aead.clear(),this}}e.StreamDecryptor=a;class t{constructor(u){if(u.length!==e.NONCE_SIZE)throw new Error(`STREAM: nonce must be 8-bits (got ${u.length}`);this.buffer=new ArrayBuffer(e.NONCE_SIZE+4+1),this.view=new DataView(this.buffer),this.array=new Uint8Array(this.buffer),this.array.set(u),this.counter=0,this.finished=!1}next(u){if(this.finished)throw new Error("STREAM: already finished");if(this.view.setInt32(8,this.counter,!1),u)this.view.setInt8(12,e.LAST_BLOCK_FLAG),this.finished=!0;else if(this.counter+=1,this.counter>e.COUNTER_MAX)throw new Error("STREAM counter overflowed");return this.array}}},4244:D=>{var e=function(h){return h!=h};D.exports=function(h,w){return h===0&&w===0?1/h==1/w:h===w||!(!e(h)||!e(w))}},609:(D,e,h)=>{var w=h(4289),O=h(5559),k=h(4244),S=h(5624),a=h(2281),t=O(S(),Object);w(t,{getPolyfill:S,implementation:k,shim:a}),D.exports=t},5624:(D,e,h)=>{var w=h(4244);D.exports=function(){return typeof Object.is=="function"?Object.is:w}},2281:(D,e,h)=>{var w=h(5624),O=h(4289);D.exports=function(){var k=w();return O(Object,{is:k},{is:function(){return Object.is!==k}}),k}},8987:(D,e,h)=>{var w;if(!Object.keys){var O=Object.prototype.hasOwnProperty,k=Object.prototype.toString,S=h(1414),a=Object.prototype.propertyIsEnumerable,t=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(o){var i=o.constructor;return i&&i.prototype===o},r={$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},n=function(){if(typeof window>"u")return!1;for(var o in window)try{if(!r["$"+o]&&O.call(window,o)&&window[o]!==null&&typeof window[o]=="object")try{s(window[o])}catch{return!0}}catch{return!0}return!1}();w=function(o){var i=o!==null&&typeof o=="object",f=k.call(o)==="[object Function]",d=S(o),p=i&&k.call(o)==="[object String]",_=[];if(!i&&!f&&!d)throw new TypeError("Object.keys called on a non-object");var b=c&&f;if(p&&o.length>0&&!O.call(o,0))for(var I=0;I0)for(var l=0;l"u"||!n)return s(C);try{return s(C)}catch{return!1}}(o),N=0;N{var w=Array.prototype.slice,O=h(1414),k=Object.keys,S=k?function(t){return k(t)}:h(8987),a=Object.keys;S.shim=function(){if(Object.keys){var t=function(){var c=Object.keys(arguments);return c&&c.length===arguments.length}(1,2);t||(Object.keys=function(c){return O(c)?a(w.call(c)):a(c)})}else Object.keys=S;return Object.keys||S},D.exports=S},1414:D=>{var e=Object.prototype.toString;D.exports=function(h){var w=e.call(h),O=w==="[object Arguments]";return O||(O=w!=="[object Array]"&&h!==null&&typeof h=="object"&&typeof h.length=="number"&&h.length>=0&&e.call(h.callee)==="[object Function]"),O}},2837:(D,e,h)=>{var w=h(2215),O=h(5419)(),k=h(1924),S=Object,a=k("Array.prototype.push"),t=k("Object.prototype.propertyIsEnumerable"),c=O?Object.getOwnPropertySymbols:null;D.exports=function(u,s){if(u==null)throw new TypeError("target must be an object");var r=S(u);if(arguments.length===1)return r;for(var n=1;n{var w=h(2837);D.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var O="abcdefghijklmnopqrst",k=O.split(""),S={},a=0;a{const{Deflate:w,deflate:O,deflateRaw:k,gzip:S}=h(4555),{Inflate:a,inflate:t,inflateRaw:c,ungzip:u}=h(8843),s=h(1619);D.exports.Deflate=w,D.exports.deflate=O,D.exports.deflateRaw=k,D.exports.gzip=S,D.exports.Inflate=a,D.exports.inflate=t,D.exports.inflateRaw=c,D.exports.ungzip=u,D.exports.constants=s},4555:(D,e,h)=>{const w=h(405),O=h(4236),k=h(9373),S=h(8898),a=h(2292),t=Object.prototype.toString,{Z_NO_FLUSH:c,Z_SYNC_FLUSH:u,Z_FULL_FLUSH:s,Z_FINISH:r,Z_OK:n,Z_STREAM_END:o,Z_DEFAULT_COMPRESSION:i,Z_DEFAULT_STRATEGY:f,Z_DEFLATED:d}=h(1619);function p(b){this.options=O.assign({level:i,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f},b||{});let I=this.options;I.raw&&I.windowBits>0?I.windowBits=-I.windowBits:I.gzip&&I.windowBits>0&&I.windowBits<16&&(I.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let l=w.deflateInit2(this.strm,I.level,I.method,I.windowBits,I.memLevel,I.strategy);if(l!==n)throw new Error(S[l]);if(I.header&&w.deflateSetHeader(this.strm,I.header),I.dictionary){let j;if(j=typeof I.dictionary=="string"?k.string2buf(I.dictionary):t.call(I.dictionary)==="[object ArrayBuffer]"?new Uint8Array(I.dictionary):I.dictionary,l=w.deflateSetDictionary(this.strm,j),l!==n)throw new Error(S[l]);this._dict_set=!0}}function _(b,I){const l=new p(I);if(l.push(b,!0),l.err)throw l.msg||S[l.err];return l.result}p.prototype.push=function(b,I){const l=this.strm,j=this.options.chunkSize;let M,N;if(this.ended)return!1;for(N=I===~~I?I:I===!0?r:c,typeof b=="string"?l.input=k.string2buf(b):t.call(b)==="[object ArrayBuffer]"?l.input=new Uint8Array(b):l.input=b,l.next_in=0,l.avail_in=l.input.length;;)if(l.avail_out===0&&(l.output=new Uint8Array(j),l.next_out=0,l.avail_out=j),(N===u||N===s)&&l.avail_out<=6)this.onData(l.output.subarray(0,l.next_out)),l.avail_out=0;else{if(M=w.deflate(l,N),M===o)return l.next_out>0&&this.onData(l.output.subarray(0,l.next_out)),M=w.deflateEnd(this.strm),this.onEnd(M),this.ended=!0,M===n;if(l.avail_out!==0){if(N>0&&l.next_out>0)this.onData(l.output.subarray(0,l.next_out)),l.avail_out=0;else if(l.avail_in===0)break}else this.onData(l.output)}return!0},p.prototype.onData=function(b){this.chunks.push(b)},p.prototype.onEnd=function(b){b===n&&(this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},D.exports.Deflate=p,D.exports.deflate=_,D.exports.deflateRaw=function(b,I){return(I=I||{}).raw=!0,_(b,I)},D.exports.gzip=function(b,I){return(I=I||{}).gzip=!0,_(b,I)},D.exports.constants=h(1619)},8843:(D,e,h)=>{const w=h(6351),O=h(4236),k=h(9373),S=h(8898),a=h(2292),t=h(188),c=Object.prototype.toString,{Z_NO_FLUSH:u,Z_FINISH:s,Z_OK:r,Z_STREAM_END:n,Z_NEED_DICT:o,Z_STREAM_ERROR:i,Z_DATA_ERROR:f,Z_MEM_ERROR:d}=h(1619);function p(b){this.options=O.assign({chunkSize:65536,windowBits:15,to:""},b||{});const I=this.options;I.raw&&I.windowBits>=0&&I.windowBits<16&&(I.windowBits=-I.windowBits,I.windowBits===0&&(I.windowBits=-15)),!(I.windowBits>=0&&I.windowBits<16)||b&&b.windowBits||(I.windowBits+=32),I.windowBits>15&&I.windowBits<48&&!(15&I.windowBits)&&(I.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;let l=w.inflateInit2(this.strm,I.windowBits);if(l!==r)throw new Error(S[l]);if(this.header=new t,w.inflateGetHeader(this.strm,this.header),I.dictionary&&(typeof I.dictionary=="string"?I.dictionary=k.string2buf(I.dictionary):c.call(I.dictionary)==="[object ArrayBuffer]"&&(I.dictionary=new Uint8Array(I.dictionary)),I.raw&&(l=w.inflateSetDictionary(this.strm,I.dictionary),l!==r)))throw new Error(S[l])}function _(b,I){const l=new p(I);if(l.push(b),l.err)throw l.msg||S[l.err];return l.result}p.prototype.push=function(b,I){const l=this.strm,j=this.options.chunkSize,M=this.options.dictionary;let N,C,x;if(this.ended)return!1;for(C=I===~~I?I:I===!0?s:u,c.call(b)==="[object ArrayBuffer]"?l.input=new Uint8Array(b):l.input=b,l.next_in=0,l.avail_in=l.input.length;;){for(l.avail_out===0&&(l.output=new Uint8Array(j),l.next_out=0,l.avail_out=j),N=w.inflate(l,C),N===o&&M&&(N=w.inflateSetDictionary(l,M),N===r?N=w.inflate(l,C):N===f&&(N=o));l.avail_in>0&&N===n&&l.state.wrap>0&&b[l.next_in]!==0;)w.inflateReset(l),N=w.inflate(l,C);switch(N){case i:case f:case o:case d:return this.onEnd(N),this.ended=!0,!1}if(x=l.avail_out,l.next_out&&(l.avail_out===0||N===n))if(this.options.to==="string"){let P=k.utf8border(l.output,l.next_out),v=l.next_out-P,m=k.buf2string(l.output,P);l.next_out=v,l.avail_out=j-v,v&&l.output.set(l.output.subarray(P,P+v),0),this.onData(m)}else this.onData(l.output.length===l.next_out?l.output:l.output.subarray(0,l.next_out));if(N!==r||x!==0){if(N===n)return N=w.inflateEnd(this.strm),this.onEnd(N),this.ended=!0,!0;if(l.avail_in===0)break}}return!0},p.prototype.onData=function(b){this.chunks.push(b)},p.prototype.onEnd=function(b){b===r&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=O.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},D.exports.Inflate=p,D.exports.inflate=_,D.exports.inflateRaw=function(b,I){return(I=I||{}).raw=!0,_(b,I)},D.exports.ungzip=_,D.exports.constants=h(1619)},4236:D=>{const e=(h,w)=>Object.prototype.hasOwnProperty.call(h,w);D.exports.assign=function(h){const w=Array.prototype.slice.call(arguments,1);for(;w.length;){const O=w.shift();if(O){if(typeof O!="object")throw new TypeError(O+"must be non-object");for(const k in O)e(O,k)&&(h[k]=O[k])}}return h},D.exports.flattenChunks=h=>{let w=0;for(let k=0,S=h.length;k{let e=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{e=!1}const h=new Uint8Array(256);for(let w=0;w<256;w++)h[w]=w>=252?6:w>=248?5:w>=240?4:w>=224?3:w>=192?2:1;h[254]=h[254]=1,D.exports.string2buf=w=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(w);let O,k,S,a,t,c=w.length,u=0;for(a=0;a>>6,O[t++]=128|63&k):k<65536?(O[t++]=224|k>>>12,O[t++]=128|k>>>6&63,O[t++]=128|63&k):(O[t++]=240|k>>>18,O[t++]=128|k>>>12&63,O[t++]=128|k>>>6&63,O[t++]=128|63&k);return O},D.exports.buf2string=(w,O)=>{const k=O||w.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(w.subarray(0,O));let S,a;const t=new Array(2*k);for(a=0,S=0;S4)t[a++]=65533,S+=u-1;else{for(c&=u===2?31:u===3?15:7;u>1&&S1?t[a++]=65533:c<65536?t[a++]=c:(c-=65536,t[a++]=55296|c>>10&1023,t[a++]=56320|1023&c)}}return((c,u)=>{if(u<65534&&c.subarray&&e)return String.fromCharCode.apply(null,c.length===u?c:c.subarray(0,u));let s="";for(let r=0;r{(O=O||w.length)>w.length&&(O=w.length);let k=O-1;for(;k>=0&&(192&w[k])==128;)k--;return k<0||k===0?O:k+h[w[k]]>O?k:O}},6069:D=>{D.exports=(e,h,w,O)=>{let k=65535&e|0,S=e>>>16&65535|0,a=0;for(;w!==0;){a=w>2e3?2e3:w,w-=a;do k=k+h[O++]|0,S=S+k|0;while(--a);k%=65521,S%=65521}return k|S<<16|0}},1619:D=>{D.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},2869:D=>{const e=new Uint32Array((()=>{let h,w=[];for(var O=0;O<256;O++){h=O;for(var k=0;k<8;k++)h=1&h?3988292384^h>>>1:h>>>1;w[O]=h}return w})());D.exports=(h,w,O,k)=>{const S=e,a=k+O;h^=-1;for(let t=k;t>>8^S[255&(h^w[t])];return-1^h}},405:(D,e,h)=>{const{_tr_init:w,_tr_stored_block:O,_tr_flush_block:k,_tr_tally:S,_tr_align:a}=h(342),t=h(6069),c=h(2869),u=h(8898),{Z_NO_FLUSH:s,Z_PARTIAL_FLUSH:r,Z_FULL_FLUSH:n,Z_FINISH:o,Z_BLOCK:i,Z_OK:f,Z_STREAM_END:d,Z_STREAM_ERROR:p,Z_DATA_ERROR:_,Z_BUF_ERROR:b,Z_DEFAULT_COMPRESSION:I,Z_FILTERED:l,Z_HUFFMAN_ONLY:j,Z_RLE:M,Z_FIXED:N,Z_DEFAULT_STRATEGY:C,Z_UNKNOWN:x,Z_DEFLATED:P}=h(1619),v=258,m=262,E=103,B=113,T=666,q=(V,y)=>(V.msg=u[y],y),te=V=>(V<<1)-(V>4?9:0),re=V=>{let y=V.length;for(;--y>=0;)V[y]=0};let ie=(V,y,A)=>(y<{const y=V.state;let A=y.pending;A>V.avail_out&&(A=V.avail_out),A!==0&&(V.output.set(y.pending_buf.subarray(y.pending_out,y.pending_out+A),V.next_out),V.next_out+=A,y.pending_out+=A,V.total_out+=A,V.avail_out-=A,y.pending-=A,y.pending===0&&(y.pending_out=0))},ee=(V,y)=>{k(V,V.block_start>=0?V.block_start:-1,V.strstart-V.block_start,y),V.block_start=V.strstart,J(V.strm)},G=(V,y)=>{V.pending_buf[V.pending++]=y},$=(V,y)=>{V.pending_buf[V.pending++]=y>>>8&255,V.pending_buf[V.pending++]=255&y},W=(V,y,A,R)=>{let U=V.avail_in;return U>R&&(U=R),U===0?0:(V.avail_in-=U,y.set(V.input.subarray(V.next_in,V.next_in+U),A),V.state.wrap===1?V.adler=t(V.adler,y,U,A):V.state.wrap===2&&(V.adler=c(V.adler,y,U,A)),V.next_in+=U,V.total_in+=U,U)},Y=(V,y)=>{let A,R,U=V.max_chain_length,z=V.strstart,L=V.prev_length,H=V.nice_match;const ne=V.strstart>V.w_size-m?V.strstart-(V.w_size-m):0,oe=V.window,K=V.w_mask,X=V.prev,Q=V.strstart+v;let Z=oe[z+L-1],se=oe[z+L];V.prev_length>=V.good_match&&(U>>=2),H>V.lookahead&&(H=V.lookahead);do if(A=y,oe[A+L]===se&&oe[A+L-1]===Z&&oe[A]===oe[z]&&oe[++A]===oe[z+1]){z+=2,A++;do;while(oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&oe[++z]===oe[++A]&&zL){if(V.match_start=y,L=R,R>=H)break;Z=oe[z+L-1],se=oe[z+L]}}while((y=X[y&K])>ne&&--U!=0);return L<=V.lookahead?L:V.lookahead},F=V=>{const y=V.w_size;let A,R,U,z,L;do{if(z=V.window_size-V.lookahead-V.strstart,V.strstart>=y+(y-m)){V.window.set(V.window.subarray(y,y+y),0),V.match_start-=y,V.strstart-=y,V.block_start-=y,R=V.hash_size,A=R;do U=V.head[--A],V.head[A]=U>=y?U-y:0;while(--R);R=y,A=R;do U=V.prev[--A],V.prev[A]=U>=y?U-y:0;while(--R);z+=y}if(V.strm.avail_in===0)break;if(R=W(V.strm,V.window,V.strstart+V.lookahead,z),V.lookahead+=R,V.lookahead+V.insert>=3)for(L=V.strstart-V.insert,V.ins_h=V.window[L],V.ins_h=ie(V,V.ins_h,V.window[L+1]);V.insert&&(V.ins_h=ie(V,V.ins_h,V.window[L+3-1]),V.prev[L&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=L,L++,V.insert--,!(V.lookahead+V.insert<3)););}while(V.lookahead{let A,R;for(;;){if(V.lookahead=3&&(V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),A!==0&&V.strstart-A<=V.w_size-m&&(V.match_length=Y(V,A)),V.match_length>=3)if(R=S(V,V.strstart-V.match_start,V.match_length-3),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=3){V.match_length--;do V.strstart++,V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart;while(--V.match_length!=0);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=ie(V,V.ins_h,V.window[V.strstart+1]);else R=S(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(R&&(ee(V,!1),V.strm.avail_out===0))return 1}return V.insert=V.strstart<2?V.strstart:2,y===o?(ee(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(ee(V,!1),V.strm.avail_out===0)?1:2},he=(V,y)=>{let A,R,U;for(;;){if(V.lookahead=3&&(V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),V.prev_length=V.match_length,V.prev_match=V.match_start,V.match_length=2,A!==0&&V.prev_length4096)&&(V.match_length=2)),V.prev_length>=3&&V.match_length<=V.prev_length){U=V.strstart+V.lookahead-3,R=S(V,V.strstart-1-V.prev_match,V.prev_length-3),V.lookahead-=V.prev_length-1,V.prev_length-=2;do++V.strstart<=U&&(V.ins_h=ie(V,V.ins_h,V.window[V.strstart+3-1]),A=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);while(--V.prev_length!=0);if(V.match_available=0,V.match_length=2,V.strstart++,R&&(ee(V,!1),V.strm.avail_out===0))return 1}else if(V.match_available){if(R=S(V,0,V.window[V.strstart-1]),R&&ee(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return 1}else V.match_available=1,V.strstart++,V.lookahead--}return V.match_available&&(R=S(V,0,V.window[V.strstart-1]),V.match_available=0),V.insert=V.strstart<2?V.strstart:2,y===o?(ee(V,!0),V.strm.avail_out===0?3:4):V.last_lit&&(ee(V,!1),V.strm.avail_out===0)?1:2};function le(V,y,A,R,U){this.good_length=V,this.max_lazy=y,this.nice_length=A,this.max_chain=R,this.func=U}const ce=[new le(0,0,0,0,(V,y)=>{let A=65535;for(A>V.pending_buf_size-5&&(A=V.pending_buf_size-5);;){if(V.lookahead<=1){if(F(V),V.lookahead===0&&y===s)return 1;if(V.lookahead===0)break}V.strstart+=V.lookahead,V.lookahead=0;const R=V.block_start+A;if((V.strstart===0||V.strstart>=R)&&(V.lookahead=V.strstart-R,V.strstart=R,ee(V,!1),V.strm.avail_out===0)||V.strstart-V.block_start>=V.w_size-m&&(ee(V,!1),V.strm.avail_out===0))return 1}return V.insert=0,y===o?(ee(V,!0),V.strm.avail_out===0?3:4):(V.strstart>V.block_start&&(ee(V,!1),V.strm.avail_out),1)}),new le(4,4,8,4,ae),new le(4,5,16,8,ae),new le(4,6,32,32,ae),new le(4,4,16,16,he),new le(8,16,32,32,he),new le(8,16,128,128,he),new le(8,32,128,256,he),new le(32,128,258,1024,he),new le(32,258,258,4096,he)];function ve(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=P,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),re(this.dyn_ltree),re(this.dyn_dtree),re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const de=V=>{if(!V||!V.state)return q(V,p);V.total_in=V.total_out=0,V.data_type=x;const y=V.state;return y.pending=0,y.pending_out=0,y.wrap<0&&(y.wrap=-y.wrap),y.status=y.wrap?42:B,V.adler=y.wrap===2?0:1,y.last_flush=s,w(y),f},pe=V=>{const y=de(V);var A;return y===f&&((A=V.state).window_size=2*A.w_size,re(A.head),A.max_lazy_match=ce[A.level].max_lazy,A.good_match=ce[A.level].good_length,A.nice_match=ce[A.level].nice_length,A.max_chain_length=ce[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=2,A.match_available=0,A.ins_h=0),y},ye=(V,y,A,R,U,z)=>{if(!V)return p;let L=1;if(y===I&&(y=6),R<0?(L=0,R=-R):R>15&&(L=2,R-=16),U<1||U>9||A!==P||R<8||R>15||y<0||y>9||z<0||z>N)return q(V,p);R===8&&(R=9);const H=new ve;return V.state=H,H.strm=V,H.wrap=L,H.gzhead=null,H.w_bits=R,H.w_size=1<ye(V,y,P,15,8,C),D.exports.deflateInit2=ye,D.exports.deflateReset=pe,D.exports.deflateResetKeep=de,D.exports.deflateSetHeader=(V,y)=>V&&V.state?V.state.wrap!==2?p:(V.state.gzhead=y,f):p,D.exports.deflate=(V,y)=>{let A,R;if(!V||!V.state||y>i||y<0)return V?q(V,p):p;const U=V.state;if(!V.output||!V.input&&V.avail_in!==0||U.status===T&&y!==o)return q(V,V.avail_out===0?b:p);U.strm=V;const z=U.last_flush;if(U.last_flush=y,U.status===42)if(U.wrap===2)V.adler=0,G(U,31),G(U,139),G(U,8),U.gzhead?(G(U,(U.gzhead.text?1:0)+(U.gzhead.hcrc?2:0)+(U.gzhead.extra?4:0)+(U.gzhead.name?8:0)+(U.gzhead.comment?16:0)),G(U,255&U.gzhead.time),G(U,U.gzhead.time>>8&255),G(U,U.gzhead.time>>16&255),G(U,U.gzhead.time>>24&255),G(U,U.level===9?2:U.strategy>=j||U.level<2?4:0),G(U,255&U.gzhead.os),U.gzhead.extra&&U.gzhead.extra.length&&(G(U,255&U.gzhead.extra.length),G(U,U.gzhead.extra.length>>8&255)),U.gzhead.hcrc&&(V.adler=c(V.adler,U.pending_buf,U.pending,0)),U.gzindex=0,U.status=69):(G(U,0),G(U,0),G(U,0),G(U,0),G(U,0),G(U,U.level===9?2:U.strategy>=j||U.level<2?4:0),G(U,3),U.status=B);else{let L=P+(U.w_bits-8<<4)<<8,H=-1;H=U.strategy>=j||U.level<2?0:U.level<6?1:U.level===6?2:3,L|=H<<6,U.strstart!==0&&(L|=32),L+=31-L%31,U.status=B,$(U,L),U.strstart!==0&&($(U,V.adler>>>16),$(U,65535&V.adler)),V.adler=1}if(U.status===69)if(U.gzhead.extra){for(A=U.pending;U.gzindex<(65535&U.gzhead.extra.length)&&(U.pending!==U.pending_buf_size||(U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),J(V),A=U.pending,U.pending!==U.pending_buf_size));)G(U,255&U.gzhead.extra[U.gzindex]),U.gzindex++;U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),U.gzindex===U.gzhead.extra.length&&(U.gzindex=0,U.status=73)}else U.status=73;if(U.status===73)if(U.gzhead.name){A=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),J(V),A=U.pending,U.pending===U.pending_buf_size)){R=1;break}R=U.gzindexA&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),R===0&&(U.gzindex=0,U.status=91)}else U.status=91;if(U.status===91)if(U.gzhead.comment){A=U.pending;do{if(U.pending===U.pending_buf_size&&(U.gzhead.hcrc&&U.pending>A&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),J(V),A=U.pending,U.pending===U.pending_buf_size)){R=1;break}R=U.gzindexA&&(V.adler=c(V.adler,U.pending_buf,U.pending-A,A)),R===0&&(U.status=E)}else U.status=E;if(U.status===E&&(U.gzhead.hcrc?(U.pending+2>U.pending_buf_size&&J(V),U.pending+2<=U.pending_buf_size&&(G(U,255&V.adler),G(U,V.adler>>8&255),V.adler=0,U.status=B)):U.status=B),U.pending!==0){if(J(V),V.avail_out===0)return U.last_flush=-1,f}else if(V.avail_in===0&&te(y)<=te(z)&&y!==o)return q(V,b);if(U.status===T&&V.avail_in!==0)return q(V,b);if(V.avail_in!==0||U.lookahead!==0||y!==s&&U.status!==T){let L=U.strategy===j?((H,ne)=>{let oe;for(;;){if(H.lookahead===0&&(F(H),H.lookahead===0)){if(ne===s)return 1;break}if(H.match_length=0,oe=S(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,oe&&(ee(H,!1),H.strm.avail_out===0))return 1}return H.insert=0,ne===o?(ee(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(ee(H,!1),H.strm.avail_out===0)?1:2})(U,y):U.strategy===M?((H,ne)=>{let oe,K,X,Q;const Z=H.window;for(;;){if(H.lookahead<=v){if(F(H),H.lookahead<=v&&ne===s)return 1;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=3&&H.strstart>0&&(X=H.strstart-1,K=Z[X],K===Z[++X]&&K===Z[++X]&&K===Z[++X])){Q=H.strstart+v;do;while(K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&K===Z[++X]&&XH.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=3?(oe=S(H,1,H.match_length-3),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(oe=S(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),oe&&(ee(H,!1),H.strm.avail_out===0))return 1}return H.insert=0,ne===o?(ee(H,!0),H.strm.avail_out===0?3:4):H.last_lit&&(ee(H,!1),H.strm.avail_out===0)?1:2})(U,y):ce[U.level].func(U,y);if(L!==3&&L!==4||(U.status=T),L===1||L===3)return V.avail_out===0&&(U.last_flush=-1),f;if(L===2&&(y===r?a(U):y!==i&&(O(U,0,0,!1),y===n&&(re(U.head),U.lookahead===0&&(U.strstart=0,U.block_start=0,U.insert=0))),J(V),V.avail_out===0))return U.last_flush=-1,f}return y!==o?f:U.wrap<=0?d:(U.wrap===2?(G(U,255&V.adler),G(U,V.adler>>8&255),G(U,V.adler>>16&255),G(U,V.adler>>24&255),G(U,255&V.total_in),G(U,V.total_in>>8&255),G(U,V.total_in>>16&255),G(U,V.total_in>>24&255)):($(U,V.adler>>>16),$(U,65535&V.adler)),J(V),U.wrap>0&&(U.wrap=-U.wrap),U.pending!==0?f:d)},D.exports.deflateEnd=V=>{if(!V||!V.state)return p;const y=V.state.status;return y!==42&&y!==69&&y!==73&&y!==91&&y!==E&&y!==B&&y!==T?q(V,p):(V.state=null,y===B?q(V,_):f)},D.exports.deflateSetDictionary=(V,y)=>{let A=y.length;if(!V||!V.state)return p;const R=V.state,U=R.wrap;if(U===2||U===1&&R.status!==42||R.lookahead)return p;if(U===1&&(V.adler=t(V.adler,y,A,0)),R.wrap=0,A>=R.w_size){U===0&&(re(R.head),R.strstart=0,R.block_start=0,R.insert=0);let ne=new Uint8Array(R.w_size);ne.set(y.subarray(A-R.w_size,A),0),y=ne,A=R.w_size}const z=V.avail_in,L=V.next_in,H=V.input;for(V.avail_in=A,V.next_in=0,V.input=y,F(R);R.lookahead>=3;){let ne=R.strstart,oe=R.lookahead-2;do R.ins_h=ie(R,R.ins_h,R.window[ne+3-1]),R.prev[ne&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=ne,ne++;while(--oe);R.strstart=ne,R.lookahead=2,F(R)}return R.strstart+=R.lookahead,R.block_start=R.strstart,R.insert=R.lookahead,R.lookahead=0,R.match_length=R.prev_length=2,R.match_available=0,V.next_in=L,V.input=H,V.avail_in=z,R.wrap=U,f},D.exports.deflateInfo="pako deflate (from Nodeca project)"},188:D=>{D.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},4264:D=>{D.exports=function(e,h){let w,O,k,S,a,t,c,u,s,r,n,o,i,f,d,p,_,b,I,l,j,M,N,C;const x=e.state;w=e.next_in,N=e.input,O=w+(e.avail_in-5),k=e.next_out,C=e.output,S=k-(h-e.avail_out),a=k+(e.avail_out-257),t=x.dmax,c=x.wsize,u=x.whave,s=x.wnext,r=x.window,n=x.hold,o=x.bits,i=x.lencode,f=x.distcode,d=(1<>>24,n>>>=b,o-=b,b=_>>>16&255,b===0)C[k++]=65535&_;else{if(!(16&b)){if(!(64&b)){_=i[(65535&_)+(n&(1<>>=b,o-=b),o<15&&(n+=N[w++]<>>24,n>>>=b,o-=b,b=_>>>16&255,!(16&b)){if(!(64&b)){_=f[(65535&_)+(n&(1<t){e.msg="invalid distance too far back",x.mode=30;break e}if(n>>>=b,o-=b,b=k-S,l>b){if(b=l-b,b>u&&x.sane){e.msg="invalid distance too far back",x.mode=30;break e}if(j=0,M=r,s===0){if(j+=c-b,b2;)C[k++]=M[j++],C[k++]=M[j++],C[k++]=M[j++],I-=3;I&&(C[k++]=M[j++],I>1&&(C[k++]=M[j++]))}else{j=k-l;do C[k++]=C[j++],C[k++]=C[j++],C[k++]=C[j++],I-=3;while(I>2);I&&(C[k++]=C[j++],I>1&&(C[k++]=C[j++]))}break}}break}}while(w>3,w-=I,o-=I<<3,n&=(1<{const w=h(6069),O=h(2869),k=h(4264),S=h(9241),{Z_FINISH:a,Z_BLOCK:t,Z_TREES:c,Z_OK:u,Z_STREAM_END:s,Z_NEED_DICT:r,Z_STREAM_ERROR:n,Z_DATA_ERROR:o,Z_MEM_ERROR:i,Z_BUF_ERROR:f,Z_DEFLATED:d}=h(1619),p=12,_=30,b=E=>(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24);function I(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const l=E=>{if(!E||!E.state)return n;const B=E.state;return E.total_in=E.total_out=B.total=0,E.msg="",B.wrap&&(E.adler=1&B.wrap),B.mode=1,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new Int32Array(852),B.distcode=B.distdyn=new Int32Array(592),B.sane=1,B.back=-1,u},j=E=>{if(!E||!E.state)return n;const B=E.state;return B.wsize=0,B.whave=0,B.wnext=0,l(E)},M=(E,B)=>{let T;if(!E||!E.state)return n;const q=E.state;return B<0?(T=0,B=-B):(T=1+(B>>4),B<48&&(B&=15)),B&&(B<8||B>15)?n:(q.window!==null&&q.wbits!==B&&(q.window=null),q.wrap=T,q.wbits=B,j(E))},N=(E,B)=>{if(!E)return n;const T=new I;E.state=T,T.window=null;const q=M(E,B);return q!==u&&(E.state=null),q};let C,x,P=!0;const v=E=>{if(P){C=new Int32Array(512),x=new Int32Array(32);let B=0;for(;B<144;)E.lens[B++]=8;for(;B<256;)E.lens[B++]=9;for(;B<280;)E.lens[B++]=7;for(;B<288;)E.lens[B++]=8;for(S(1,E.lens,0,288,C,0,E.work,{bits:9}),B=0;B<32;)E.lens[B++]=5;S(2,E.lens,0,32,x,0,E.work,{bits:5}),P=!1}E.lencode=C,E.lenbits=9,E.distcode=x,E.distbits=5},m=(E,B,T,q)=>{let te;const re=E.state;return re.window===null&&(re.wsize=1<=re.wsize?(re.window.set(B.subarray(T-re.wsize,T),0),re.wnext=0,re.whave=re.wsize):(te=re.wsize-re.wnext,te>q&&(te=q),re.window.set(B.subarray(T-q,T-q+te),re.wnext),(q-=te)?(re.window.set(B.subarray(T-q,T),0),re.wnext=q,re.whave=re.wsize):(re.wnext+=te,re.wnext===re.wsize&&(re.wnext=0),re.whaveN(E,15),D.exports.inflateInit2=N,D.exports.inflate=(E,B)=>{let T,q,te,re,ie,J,ee,G,$,W,Y,F,ae,he,le,ce,ve,de,pe,ye,V,y,A=0;const R=new Uint8Array(4);let U,z;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return n;T=E.state,T.mode===p&&(T.mode=13),ie=E.next_out,te=E.output,ee=E.avail_out,re=E.next_in,q=E.input,J=E.avail_in,G=T.hold,$=T.bits,W=J,Y=ee,y=u;e:for(;;)switch(T.mode){case 1:if(T.wrap===0){T.mode=13;break}for(;$<16;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(2&T.wrap&&G===35615){T.check=0,R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0),G=0,$=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&G)<<8)+(G>>8))%31){E.msg="incorrect header check",T.mode=_;break}if((15&G)!==d){E.msg="unknown compression method",T.mode=_;break}if(G>>>=4,$-=4,V=8+(15&G),T.wbits===0)T.wbits=V;else if(V>T.wbits){E.msg="invalid window size",T.mode=_;break}T.dmax=1<>8&1),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0)),G=0,$=0,T.mode=3;case 3:for(;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}T.head&&(T.head.time=G),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,R[2]=G>>>16&255,R[3]=G>>>24&255,T.check=O(T.check,R,4,0)),G=0,$=0,T.mode=4;case 4:for(;$<16;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}T.head&&(T.head.xflags=255&G,T.head.os=G>>8),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0)),G=0,$=0,T.mode=5;case 5:if(1024&T.flags){for(;$<16;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}T.length=G,T.head&&(T.head.extra_len=G),512&T.flags&&(R[0]=255&G,R[1]=G>>>8&255,T.check=O(T.check,R,2,0)),G=0,$=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(F=T.length,F>J&&(F=J),F&&(T.head&&(V=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Uint8Array(T.head.extra_len)),T.head.extra.set(q.subarray(re,re+F),V)),512&T.flags&&(T.check=O(T.check,q,F,re)),J-=F,re+=F,T.length-=F),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(J===0)break e;F=0;do V=q[re+F++],T.head&&V&&T.length<65536&&(T.head.name+=String.fromCharCode(V));while(V&&F>9&1,T.head.done=!0),E.adler=T.check=0,T.mode=p;break;case 10:for(;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}E.adler=T.check=b(G),G=0,$=0,T.mode=11;case 11:if(T.havedict===0)return E.next_out=ie,E.avail_out=ee,E.next_in=re,E.avail_in=J,T.hold=G,T.bits=$,r;E.adler=T.check=1,T.mode=p;case p:if(B===t||B===c)break e;case 13:if(T.last){G>>>=7&$,$-=7&$,T.mode=27;break}for(;$<3;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}switch(T.last=1&G,G>>>=1,$-=1,3&G){case 0:T.mode=14;break;case 1:if(v(T),T.mode=20,B===c){G>>>=2,$-=2;break e}break;case 2:T.mode=17;break;case 3:E.msg="invalid block type",T.mode=_}G>>>=2,$-=2;break;case 14:for(G>>>=7&$,$-=7&$;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if((65535&G)!=(G>>>16^65535)){E.msg="invalid stored block lengths",T.mode=_;break}if(T.length=65535&G,G=0,$=0,T.mode=15,B===c)break e;case 15:T.mode=16;case 16:if(F=T.length,F){if(F>J&&(F=J),F>ee&&(F=ee),F===0)break e;te.set(q.subarray(re,re+F),ie),J-=F,re+=F,ee-=F,ie+=F,T.length-=F;break}T.mode=p;break;case 17:for(;$<14;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(T.nlen=257+(31&G),G>>>=5,$-=5,T.ndist=1+(31&G),G>>>=5,$-=5,T.ncode=4+(15&G),G>>>=4,$-=4,T.nlen>286||T.ndist>30){E.msg="too many length or distance symbols",T.mode=_;break}T.have=0,T.mode=18;case 18:for(;T.have>>=3,$-=3}for(;T.have<19;)T.lens[L[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,U={bits:T.lenbits},y=S(0,T.lens,0,19,T.lencode,0,T.work,U),T.lenbits=U.bits,y){E.msg="invalid code lengths set",T.mode=_;break}T.have=0,T.mode=19;case 19:for(;T.have>>24,ce=A>>>16&255,ve=65535&A,!(le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(ve<16)G>>>=le,$-=le,T.lens[T.have++]=ve;else{if(ve===16){for(z=le+2;$>>=le,$-=le,T.have===0){E.msg="invalid bit length repeat",T.mode=_;break}V=T.lens[T.have-1],F=3+(3&G),G>>>=2,$-=2}else if(ve===17){for(z=le+3;$>>=le,$-=le,V=0,F=3+(7&G),G>>>=3,$-=3}else{for(z=le+7;$>>=le,$-=le,V=0,F=11+(127&G),G>>>=7,$-=7}if(T.have+F>T.nlen+T.ndist){E.msg="invalid bit length repeat",T.mode=_;break}for(;F--;)T.lens[T.have++]=V}}if(T.mode===_)break;if(T.lens[256]===0){E.msg="invalid code -- missing end-of-block",T.mode=_;break}if(T.lenbits=9,U={bits:T.lenbits},y=S(1,T.lens,0,T.nlen,T.lencode,0,T.work,U),T.lenbits=U.bits,y){E.msg="invalid literal/lengths set",T.mode=_;break}if(T.distbits=6,T.distcode=T.distdyn,U={bits:T.distbits},y=S(2,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,U),T.distbits=U.bits,y){E.msg="invalid distances set",T.mode=_;break}if(T.mode=20,B===c)break e;case 20:T.mode=21;case 21:if(J>=6&&ee>=258){E.next_out=ie,E.avail_out=ee,E.next_in=re,E.avail_in=J,T.hold=G,T.bits=$,k(E,Y),ie=E.next_out,te=E.output,ee=E.avail_out,re=E.next_in,q=E.input,J=E.avail_in,G=T.hold,$=T.bits,T.mode===p&&(T.back=-1);break}for(T.back=0;A=T.lencode[G&(1<>>24,ce=A>>>16&255,ve=65535&A,!(le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(ce&&!(240&ce)){for(de=le,pe=ce,ye=ve;A=T.lencode[ye+((G&(1<>de)],le=A>>>24,ce=A>>>16&255,ve=65535&A,!(de+le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}G>>>=de,$-=de,T.back+=de}if(G>>>=le,$-=le,T.back+=le,T.length=ve,ce===0){T.mode=26;break}if(32&ce){T.back=-1,T.mode=p;break}if(64&ce){E.msg="invalid literal/length code",T.mode=_;break}T.extra=15&ce,T.mode=22;case 22:if(T.extra){for(z=T.extra;$>>=T.extra,$-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;A=T.distcode[G&(1<>>24,ce=A>>>16&255,ve=65535&A,!(le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(!(240&ce)){for(de=le,pe=ce,ye=ve;A=T.distcode[ye+((G&(1<>de)],le=A>>>24,ce=A>>>16&255,ve=65535&A,!(de+le<=$);){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}G>>>=de,$-=de,T.back+=de}if(G>>>=le,$-=le,T.back+=le,64&ce){E.msg="invalid distance code",T.mode=_;break}T.offset=ve,T.extra=15&ce,T.mode=24;case 24:if(T.extra){for(z=T.extra;$>>=T.extra,$-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){E.msg="invalid distance too far back",T.mode=_;break}T.mode=25;case 25:if(ee===0)break e;if(F=Y-ee,T.offset>F){if(F=T.offset-F,F>T.whave&&T.sane){E.msg="invalid distance too far back",T.mode=_;break}F>T.wnext?(F-=T.wnext,ae=T.wsize-F):ae=T.wnext-F,F>T.length&&(F=T.length),he=T.window}else he=te,ae=ie-T.offset,F=T.length;F>ee&&(F=ee),ee-=F,T.length-=F;do te[ie++]=he[ae++];while(--F);T.length===0&&(T.mode=21);break;case 26:if(ee===0)break e;te[ie++]=T.length,ee--,T.mode=21;break;case 27:if(T.wrap){for(;$<32;){if(J===0)break e;J--,G|=q[re++]<<$,$+=8}if(Y-=ee,E.total_out+=Y,T.total+=Y,Y&&(E.adler=T.check=T.flags?O(T.check,te,Y,ie-Y):w(T.check,te,Y,ie-Y)),Y=ee,(T.flags?G:b(G))!==T.check){E.msg="incorrect data check",T.mode=_;break}G=0,$=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;$<32;){if(J===0)break e;J--,G+=q[re++]<<$,$+=8}if(G!==(4294967295&T.total)){E.msg="incorrect length check",T.mode=_;break}G=0,$=0}T.mode=29;case 29:y=s;break e;case _:y=o;break e;case 31:return i;default:return n}return E.next_out=ie,E.avail_out=ee,E.next_in=re,E.avail_in=J,T.hold=G,T.bits=$,(T.wsize||Y!==E.avail_out&&T.mode<_&&(T.mode<27||B!==a))&&m(E,E.output,E.next_out,Y-E.avail_out)?(T.mode=31,i):(W-=E.avail_in,Y-=E.avail_out,E.total_in+=W,E.total_out+=Y,T.total+=Y,T.wrap&&Y&&(E.adler=T.check=T.flags?O(T.check,te,Y,E.next_out-Y):w(T.check,te,Y,E.next_out-Y)),E.data_type=T.bits+(T.last?64:0)+(T.mode===p?128:0)+(T.mode===20||T.mode===15?256:0),(W===0&&Y===0||B===a)&&y===u&&(y=f),y)},D.exports.inflateEnd=E=>{if(!E||!E.state)return n;let B=E.state;return B.window&&(B.window=null),E.state=null,u},D.exports.inflateGetHeader=(E,B)=>{if(!E||!E.state)return n;const T=E.state;return 2&T.wrap?(T.head=B,B.done=!1,u):n},D.exports.inflateSetDictionary=(E,B)=>{const T=B.length;let q,te,re;return E&&E.state?(q=E.state,q.wrap!==0&&q.mode!==11?n:q.mode===11&&(te=1,te=w(te,B,T,0),te!==q.check)?o:(re=m(E,B,T,T),re?(q.mode=31,i):(q.havedict=1,u))):n},D.exports.inflateInfo="pako inflate (from Nodeca project)"},9241:D=>{const e=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),h=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),w=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),O=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);D.exports=(k,S,a,t,c,u,s,r)=>{const n=r.bits;let o,i,f,d,p,_,b=0,I=0,l=0,j=0,M=0,N=0,C=0,x=0,P=0,v=0,m=null,E=0;const B=new Uint16Array(16),T=new Uint16Array(16);let q,te,re,ie=null,J=0;for(b=0;b<=15;b++)B[b]=0;for(I=0;I=1&&B[j]===0;j--);if(M>j&&(M=j),j===0)return c[u++]=20971520,c[u++]=20971520,r.bits=1,0;for(l=1;l0&&(k===0||j!==1))return-1;for(T[1]=0,b=1;b<15;b++)T[b+1]=T[b]+B[b];for(I=0;I852||k===2&&P>592)return 1;for(;;){q=b-C,s[I]<_?(te=0,re=s[I]):s[I]>_?(te=ie[J+s[I]],re=m[E+s[I]]):(te=96,re=0),o=1<>C)+i]=q<<24|te<<16|re|0;while(i!==0);for(o=1<>=1;if(o!==0?(v&=o-1,v+=o):v=0,I++,--B[b]==0){if(b===j)break;b=S[a+s[I]]}if(b>M&&(v&d)!==f){for(C===0&&(C=M),p+=l,N=b-C,x=1<852||k===2&&P>592)return 1;f=v&d,c[f]=M<<24|N<<16|p-u|0}}return v!==0&&(c[p+v]=b-C<<24|4194304|0),r.bits=M,0}},8898:D=>{D.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},342:D=>{function e(T){let q=T.length;for(;--q>=0;)T[q]=0}const h=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),w=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),O=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),S=new Array(576);e(S);const a=new Array(60);e(a);const t=new Array(512);e(t);const c=new Array(256);e(c);const u=new Array(29);e(u);const s=new Array(30);function r(T,q,te,re,ie){this.static_tree=T,this.extra_bits=q,this.extra_base=te,this.elems=re,this.max_length=ie,this.has_stree=T&&T.length}let n,o,i;function f(T,q){this.dyn_tree=T,this.max_code=0,this.stat_desc=q}e(s);const d=T=>T<256?t[T]:t[256+(T>>>7)],p=(T,q)=>{T.pending_buf[T.pending++]=255&q,T.pending_buf[T.pending++]=q>>>8&255},_=(T,q,te)=>{T.bi_valid>16-te?(T.bi_buf|=q<>16-T.bi_valid,T.bi_valid+=te-16):(T.bi_buf|=q<{_(T,te[2*q],te[2*q+1])},I=(T,q)=>{let te=0;do te|=1&T,T>>>=1,te<<=1;while(--q>0);return te>>>1},l=(T,q,te)=>{const re=new Array(16);let ie,J,ee=0;for(ie=1;ie<=15;ie++)re[ie]=ee=ee+te[ie-1]<<1;for(J=0;J<=q;J++){let G=T[2*J+1];G!==0&&(T[2*J]=I(re[G]++,G))}},j=T=>{let q;for(q=0;q<286;q++)T.dyn_ltree[2*q]=0;for(q=0;q<30;q++)T.dyn_dtree[2*q]=0;for(q=0;q<19;q++)T.bl_tree[2*q]=0;T.dyn_ltree[512]=1,T.opt_len=T.static_len=0,T.last_lit=T.matches=0},M=T=>{T.bi_valid>8?p(T,T.bi_buf):T.bi_valid>0&&(T.pending_buf[T.pending++]=T.bi_buf),T.bi_buf=0,T.bi_valid=0},N=(T,q,te,re)=>{const ie=2*q,J=2*te;return T[ie]{const re=T.heap[te];let ie=te<<1;for(;ie<=T.heap_len&&(ie{let re,ie,J,ee,G=0;if(T.last_lit!==0)do re=T.pending_buf[T.d_buf+2*G]<<8|T.pending_buf[T.d_buf+2*G+1],ie=T.pending_buf[T.l_buf+G],G++,re===0?b(T,ie,q):(J=c[ie],b(T,J+256+1,q),ee=h[J],ee!==0&&(ie-=u[J],_(T,ie,ee)),re--,J=d(re),b(T,J,te),ee=w[J],ee!==0&&(re-=s[J],_(T,re,ee)));while(G{const te=q.dyn_tree,re=q.stat_desc.static_tree,ie=q.stat_desc.has_stree,J=q.stat_desc.elems;let ee,G,$,W=-1;for(T.heap_len=0,T.heap_max=573,ee=0;ee>1;ee>=1;ee--)C(T,te,ee);$=J;do ee=T.heap[1],T.heap[1]=T.heap[T.heap_len--],C(T,te,1),G=T.heap[1],T.heap[--T.heap_max]=ee,T.heap[--T.heap_max]=G,te[2*$]=te[2*ee]+te[2*G],T.depth[$]=(T.depth[ee]>=T.depth[G]?T.depth[ee]:T.depth[G])+1,te[2*ee+1]=te[2*G+1]=$,T.heap[1]=$++,C(T,te,1);while(T.heap_len>=2);T.heap[--T.heap_max]=T.heap[1],((Y,F)=>{const ae=F.dyn_tree,he=F.max_code,le=F.stat_desc.static_tree,ce=F.stat_desc.has_stree,ve=F.stat_desc.extra_bits,de=F.stat_desc.extra_base,pe=F.stat_desc.max_length;let ye,V,y,A,R,U,z=0;for(A=0;A<=15;A++)Y.bl_count[A]=0;for(ae[2*Y.heap[Y.heap_max]+1]=0,ye=Y.heap_max+1;ye<573;ye++)V=Y.heap[ye],A=ae[2*ae[2*V+1]+1]+1,A>pe&&(A=pe,z++),ae[2*V+1]=A,V>he||(Y.bl_count[A]++,R=0,V>=de&&(R=ve[V-de]),U=ae[2*V],Y.opt_len+=U*(A+R),ce&&(Y.static_len+=U*(le[2*V+1]+R)));if(z!==0){do{for(A=pe-1;Y.bl_count[A]===0;)A--;Y.bl_count[A]--,Y.bl_count[A+1]+=2,Y.bl_count[pe]--,z-=2}while(z>0);for(A=pe;A!==0;A--)for(V=Y.bl_count[A];V!==0;)y=Y.heap[--ye],y>he||(ae[2*y+1]!==A&&(Y.opt_len+=(A-ae[2*y+1])*ae[2*y],ae[2*y+1]=A),V--)}})(T,q),l(te,W,T.bl_count)},v=(T,q,te)=>{let re,ie,J=-1,ee=q[1],G=0,$=7,W=4;for(ee===0&&($=138,W=3),q[2*(te+1)+1]=65535,re=0;re<=te;re++)ie=ee,ee=q[2*(re+1)+1],++G<$&&ie===ee||(G{let re,ie,J=-1,ee=q[1],G=0,$=7,W=4;for(ee===0&&($=138,W=3),re=0;re<=te;re++)if(ie=ee,ee=q[2*(re+1)+1],!(++G<$&&ie===ee)){if(G{_(T,0+(re?1:0),3),((ie,J,ee,G)=>{M(ie),p(ie,ee),p(ie,~ee),ie.pending_buf.set(ie.window.subarray(J,J+ee),ie.pending),ie.pending+=ee})(T,q,te)};D.exports._tr_init=T=>{E||((()=>{let q,te,re,ie,J;const ee=new Array(16);for(re=0,ie=0;ie<28;ie++)for(u[ie]=re,q=0;q<1<>=7;ie<30;ie++)for(s[ie]=J<<7,q=0;q<1<{let ie,J,ee=0;T.level>0?(T.strm.data_type===2&&(T.strm.data_type=(G=>{let $,W=4093624447;for($=0;$<=31;$++,W>>>=1)if(1&W&&G.dyn_ltree[2*$]!==0)return 0;if(G.dyn_ltree[18]!==0||G.dyn_ltree[20]!==0||G.dyn_ltree[26]!==0)return 1;for($=32;$<256;$++)if(G.dyn_ltree[2*$]!==0)return 1;return 0})(T)),P(T,T.l_desc),P(T,T.d_desc),ee=(G=>{let $;for(v(G,G.dyn_ltree,G.l_desc.max_code),v(G,G.dyn_dtree,G.d_desc.max_code),P(G,G.bl_desc),$=18;$>=3&&G.bl_tree[2*k[$]+1]===0;$--);return G.opt_len+=3*($+1)+5+5+4,$})(T),ie=T.opt_len+3+7>>>3,J=T.static_len+3+7>>>3,J<=ie&&(ie=J)):ie=J=te+5,te+4<=ie&&q!==-1?B(T,q,te,re):T.strategy===4||J===ie?(_(T,2+(re?1:0),3),x(T,S,a)):(_(T,4+(re?1:0),3),((G,$,W,Y)=>{let F;for(_(G,$-257,5),_(G,W-1,5),_(G,Y-4,4),F=0;F(T.pending_buf[T.d_buf+2*T.last_lit]=q>>>8&255,T.pending_buf[T.d_buf+2*T.last_lit+1]=255&q,T.pending_buf[T.l_buf+T.last_lit]=255&te,T.last_lit++,q===0?T.dyn_ltree[2*te]++:(T.matches++,q--,T.dyn_ltree[2*(c[te]+256+1)]++,T.dyn_dtree[2*d(q)]++),T.last_lit===T.lit_bufsize-1),D.exports._tr_align=T=>{_(T,2,3),b(T,256,S),(q=>{q.bi_valid===16?(p(q,q.bi_buf),q.bi_buf=0,q.bi_valid=0):q.bi_valid>=8&&(q.pending_buf[q.pending++]=255&q.bi_buf,q.bi_buf>>=8,q.bi_valid-=8)})(T)}},2292:D=>{D.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},5632:(D,e,h)=>{e.pbkdf2=h(8638),e.pbkdf2Sync=h(1257)},8638:(D,e,h)=>{var w,O,k=h(9509).Buffer,S=h(7357),a=h(2368),t=h(1257),c=h(7777),u=h.g.crypto&&h.g.crypto.subtle,s={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},r=[];function n(){return O||(O=h.g.process&&h.g.process.nextTick?h.g.process.nextTick:h.g.queueMicrotask?h.g.queueMicrotask:h.g.setImmediate?h.g.setImmediate:h.g.setTimeout)}function o(i,f,d,p,_){return u.importKey("raw",i,{name:"PBKDF2"},!1,["deriveBits"]).then(function(b){return u.deriveBits({name:"PBKDF2",salt:f,iterations:d,hash:{name:_}},b,p<<3)}).then(function(b){return k.from(b)})}D.exports=function(i,f,d,p,_,b){typeof _=="function"&&(b=_,_=void 0);var I=s[(_=_||"sha1").toLowerCase()];if(I&&typeof h.g.Promise=="function"){if(S(d,p),i=c(i,a,"Password"),f=c(f,a,"Salt"),typeof b!="function")throw new Error("No callback provided to pbkdf2");(function(l,j){l.then(function(M){n()(function(){j(null,M)})},function(M){n()(function(){j(M)})})})(function(l){if(h.g.process&&!h.g.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(r[l]!==void 0)return r[l];var j=o(w=w||k.alloc(8),w,10,128,l).then(function(){return!0}).catch(function(){return!1});return r[l]=j,j}(I).then(function(l){return l?o(i,f,d,p,I):t(i,f,d,p,_)}),b)}else n()(function(){var l;try{l=t(i,f,d,p,_)}catch(j){return b(j)}b(null,l)})}},2368:(D,e,h)=>{var w,O=h(4155);w=h.g.process&&h.g.process.browser?"utf-8":h.g.process&&h.g.process.version?parseInt(O.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",D.exports=w},7357:D=>{var e=Math.pow(2,30)-1;D.exports=function(h,w){if(typeof h!="number")throw new TypeError("Iterations not a number");if(h<0)throw new TypeError("Bad iterations");if(typeof w!="number")throw new TypeError("Key length not a number");if(w<0||w>e||w!=w)throw new TypeError("Bad key length")}},1257:(D,e,h)=>{var w=h(8028),O=h(9785),k=h(9072),S=h(9509).Buffer,a=h(7357),t=h(2368),c=h(7777),u=S.alloc(128),s={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function r(n,o,i){var f=function(l){return l==="rmd160"||l==="ripemd160"?function(j){return new O().update(j).digest()}:l==="md5"?w:function(j){return k(l).update(j).digest()}}(n),d=n==="sha512"||n==="sha384"?128:64;o.length>d?o=f(o):o.length{var w=h(9509).Buffer;D.exports=function(O,k,S){if(w.isBuffer(O))return O;if(typeof O=="string")return w.from(O,k);if(ArrayBuffer.isView(O))return w.from(O.buffer);throw new TypeError(S+" must be a string, a Buffer, a typed array or a DataView")}},4155:D=>{var e,h,w=D.exports={};function O(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}function S(i){if(e===setTimeout)return setTimeout(i,0);if((e===O||!e)&&setTimeout)return e=setTimeout,setTimeout(i,0);try{return e(i,0)}catch{try{return e.call(null,i,0)}catch{return e.call(this,i,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:O}catch{e=O}try{h=typeof clearTimeout=="function"?clearTimeout:k}catch{h=k}})();var a,t=[],c=!1,u=-1;function s(){c&&a&&(c=!1,a.length?t=a.concat(t):u=-1,t.length&&r())}function r(){if(!c){var i=S(s);c=!0;for(var f=t.length;f;){for(a=t,t=[];++u1)for(var d=1;d{D.exports=h(9482)},9482:(D,e,h)=>{var w=e;function O(){w.util._configure(),w.Writer._configure(w.BufferWriter),w.Reader._configure(w.BufferReader)}w.build="minimal",w.Writer=h(1173),w.BufferWriter=h(3155),w.Reader=h(1408),w.BufferReader=h(593),w.util=h(9693),w.rpc=h(5994),w.roots=h(5054),w.configure=O,O()},1408:(D,e,h)=>{D.exports=t;var w,O=h(9693),k=O.LongBits,S=O.utf8;function a(i,f){return RangeError("index out of range: "+i.pos+" + "+(f||1)+" > "+i.len)}function t(i){this.buf=i,this.pos=0,this.len=i.length}var c,u=typeof Uint8Array<"u"?function(i){if(i instanceof Uint8Array||Array.isArray(i))return new t(i);throw Error("illegal buffer")}:function(i){if(Array.isArray(i))return new t(i);throw Error("illegal buffer")},s=function(){return O.Buffer?function(i){return(t.create=function(f){return O.Buffer.isBuffer(f)?new w(f):u(f)})(i)}:u};function r(){var i=new k(0,0),f=0;if(!(this.len-this.pos>4)){for(;f<3;++f){if(this.pos>=this.len)throw a(this);if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*f)>>>0,this.buf[this.pos++]<128)return i}return i.lo=(i.lo|(127&this.buf[this.pos++])<<7*f)>>>0,i}for(;f<4;++f)if(i.lo=(i.lo|(127&this.buf[this.pos])<<7*f)>>>0,this.buf[this.pos++]<128)return i;if(i.lo=(i.lo|(127&this.buf[this.pos])<<28)>>>0,i.hi=(i.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return i;if(f=0,this.len-this.pos>4){for(;f<5;++f)if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*f+3)>>>0,this.buf[this.pos++]<128)return i}else for(;f<5;++f){if(this.pos>=this.len)throw a(this);if(i.hi=(i.hi|(127&this.buf[this.pos])<<7*f+3)>>>0,this.buf[this.pos++]<128)return i}throw Error("invalid varint encoding")}function n(i,f){return(i[f-4]|i[f-3]<<8|i[f-2]<<16|i[f-1]<<24)>>>0}function o(){if(this.pos+8>this.len)throw a(this,8);return new k(n(this.buf,this.pos+=4),n(this.buf,this.pos+=4))}t.create=s(),t.prototype._slice=O.Array.prototype.subarray||O.Array.prototype.slice,t.prototype.uint32=(c=4294967295,function(){if(c=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(c=(c|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(c=(c|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(c=(c|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(c=(c|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return c;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return c}),t.prototype.int32=function(){return 0|this.uint32()},t.prototype.sint32=function(){var i=this.uint32();return i>>>1^-(1&i)|0},t.prototype.bool=function(){return this.uint32()!==0},t.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return n(this.buf,this.pos+=4)},t.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|n(this.buf,this.pos+=4)},t.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var i=O.float.readFloatLE(this.buf,this.pos);return this.pos+=4,i},t.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var i=O.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,i},t.prototype.bytes=function(){var i=this.uint32(),f=this.pos,d=this.pos+i;if(d>this.len)throw a(this,i);if(this.pos+=i,Array.isArray(this.buf))return this.buf.slice(f,d);if(f===d){var p=O.Buffer;return p?p.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,f,d)},t.prototype.string=function(){var i=this.bytes();return S.read(i,0,i.length)},t.prototype.skip=function(i){if(typeof i=="number"){if(this.pos+i>this.len)throw a(this,i);this.pos+=i}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},t.prototype.skipType=function(i){switch(i){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(i=7&this.uint32())!=4;)this.skipType(i);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+i+" at offset "+this.pos)}return this},t._configure=function(i){w=i,t.create=s(),w._configure();var f=O.Long?"toLong":"toNumber";O.merge(t.prototype,{int64:function(){return r.call(this)[f](!1)},uint64:function(){return r.call(this)[f](!0)},sint64:function(){return r.call(this).zzDecode()[f](!1)},fixed64:function(){return o.call(this)[f](!0)},sfixed64:function(){return o.call(this)[f](!1)}})}},593:(D,e,h)=>{D.exports=k;var w=h(1408);(k.prototype=Object.create(w.prototype)).constructor=k;var O=h(9693);function k(S){w.call(this,S)}k._configure=function(){O.Buffer&&(k.prototype._slice=O.Buffer.prototype.slice)},k.prototype.string=function(){var S=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+S,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+S,this.len))},k._configure()},5054:D=>{D.exports={}},5994:(D,e,h)=>{e.Service=h(7948)},7948:(D,e,h)=>{D.exports=O;var w=h(9693);function O(k,S,a){if(typeof k!="function")throw TypeError("rpcImpl must be a function");w.EventEmitter.call(this),this.rpcImpl=k,this.requestDelimited=!!S,this.responseDelimited=!!a}(O.prototype=Object.create(w.EventEmitter.prototype)).constructor=O,O.prototype.rpcCall=function k(S,a,t,c,u){if(!c)throw TypeError("request must be specified");var s=this;if(!u)return w.asPromise(k,s,S,a,t,c);if(s.rpcImpl)try{return s.rpcImpl(S,a[s.requestDelimited?"encodeDelimited":"encode"](c).finish(),function(r,n){if(r)return s.emit("error",r,S),u(r);if(n!==null){if(!(n instanceof t))try{n=t[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(o){return s.emit("error",o,S),u(o)}return s.emit("data",n,S),u(null,n)}s.end(!0)})}catch(r){return s.emit("error",r,S),void setTimeout(function(){u(r)},0)}else setTimeout(function(){u(Error("already ended"))},0)},O.prototype.end=function(k){return this.rpcImpl&&(k||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2630:(D,e,h)=>{D.exports=O;var w=h(9693);function O(t,c){this.lo=t>>>0,this.hi=c>>>0}var k=O.zero=new O(0,0);k.toNumber=function(){return 0},k.zzEncode=k.zzDecode=function(){return this},k.length=function(){return 1};var S=O.zeroHash="\0\0\0\0\0\0\0\0";O.fromNumber=function(t){if(t===0)return k;var c=t<0;c&&(t=-t);var u=t>>>0,s=(t-u)/4294967296>>>0;return c&&(s=~s>>>0,u=~u>>>0,++u>4294967295&&(u=0,++s>4294967295&&(s=0))),new O(u,s)},O.from=function(t){if(typeof t=="number")return O.fromNumber(t);if(w.isString(t)){if(!w.Long)return O.fromNumber(parseInt(t,10));t=w.Long.fromString(t)}return t.low||t.high?new O(t.low>>>0,t.high>>>0):k},O.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var c=1+~this.lo>>>0,u=~this.hi>>>0;return c||(u=u+1>>>0),-(c+4294967296*u)}return this.lo+4294967296*this.hi},O.prototype.toLong=function(t){return w.Long?new w.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var a=String.prototype.charCodeAt;O.fromHash=function(t){return t===S?k:new O((a.call(t,0)|a.call(t,1)<<8|a.call(t,2)<<16|a.call(t,3)<<24)>>>0,(a.call(t,4)|a.call(t,5)<<8|a.call(t,6)<<16|a.call(t,7)<<24)>>>0)},O.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)},O.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},O.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},O.prototype.length=function(){var t=this.lo,c=(this.lo>>>28|this.hi<<4)>>>0,u=this.hi>>>24;return u===0?c===0?t<16384?t<128?1:2:t<2097152?3:4:c<16384?c<128?5:6:c<2097152?7:8:u<128?9:10}},9693:function(D,e,h){var w=e;function O(S,a,t){for(var c=Object.keys(a),u=0;u0)},w.Buffer=function(){try{var S=w.inquire("buffer").Buffer;return S.prototype.utf8Write?S:null}catch{return null}}(),w._Buffer_from=null,w._Buffer_allocUnsafe=null,w.newBuffer=function(S){return typeof S=="number"?w.Buffer?w._Buffer_allocUnsafe(S):new w.Array(S):w.Buffer?w._Buffer_from(S):typeof Uint8Array>"u"?S:new Uint8Array(S)},w.Array=typeof Uint8Array<"u"?Uint8Array:Array,w.Long=w.global.dcodeIO&&w.global.dcodeIO.Long||w.global.Long||w.inquire("long"),w.key2Re=/^true|false|0|1$/,w.key32Re=/^-?(?:0|[1-9][0-9]*)$/,w.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,w.longToHash=function(S){return S?w.LongBits.from(S).toHash():w.LongBits.zeroHash},w.longFromHash=function(S,a){var t=w.LongBits.fromHash(S);return w.Long?w.Long.fromBits(t.lo,t.hi,a):t.toNumber(!!a)},w.merge=O,w.lcFirst=function(S){return S.charAt(0).toLowerCase()+S.substring(1)},w.newError=k,w.ProtocolError=k("ProtocolError"),w.oneOfGetter=function(S){for(var a={},t=0;t-1;--u)if(a[c[u]]===1&&this[c[u]]!==void 0&&this[c[u]]!==null)return c[u]}},w.oneOfSetter=function(S){return function(a){for(var t=0;t{D.exports=s;var w,O=h(9693),k=O.LongBits,S=O.base64,a=O.utf8;function t(p,_,b){this.fn=p,this.len=_,this.next=void 0,this.val=b}function c(){}function u(p){this.head=p.head,this.tail=p.tail,this.len=p.len,this.next=p.states}function s(){this.len=0,this.head=new t(c,0,0),this.tail=this.head,this.states=null}var r=function(){return O.Buffer?function(){return(s.create=function(){return new w})()}:function(){return new s}};function n(p,_,b){_[b]=255&p}function o(p,_){this.len=p,this.next=void 0,this.val=_}function i(p,_,b){for(;p.hi;)_[b++]=127&p.lo|128,p.lo=(p.lo>>>7|p.hi<<25)>>>0,p.hi>>>=7;for(;p.lo>127;)_[b++]=127&p.lo|128,p.lo=p.lo>>>7;_[b++]=p.lo}function f(p,_,b){_[b]=255&p,_[b+1]=p>>>8&255,_[b+2]=p>>>16&255,_[b+3]=p>>>24}s.create=r(),s.alloc=function(p){return new O.Array(p)},O.Array!==Array&&(s.alloc=O.pool(s.alloc,O.Array.prototype.subarray)),s.prototype._push=function(p,_,b){return this.tail=this.tail.next=new t(p,_,b),this.len+=_,this},o.prototype=Object.create(t.prototype),o.prototype.fn=function(p,_,b){for(;p>127;)_[b++]=127&p|128,p>>>=7;_[b]=p},s.prototype.uint32=function(p){return this.len+=(this.tail=this.tail.next=new o((p>>>=0)<128?1:p<16384?2:p<2097152?3:p<268435456?4:5,p)).len,this},s.prototype.int32=function(p){return p<0?this._push(i,10,k.fromNumber(p)):this.uint32(p)},s.prototype.sint32=function(p){return this.uint32((p<<1^p>>31)>>>0)},s.prototype.uint64=function(p){var _=k.from(p);return this._push(i,_.length(),_)},s.prototype.int64=s.prototype.uint64,s.prototype.sint64=function(p){var _=k.from(p).zzEncode();return this._push(i,_.length(),_)},s.prototype.bool=function(p){return this._push(n,1,p?1:0)},s.prototype.fixed32=function(p){return this._push(f,4,p>>>0)},s.prototype.sfixed32=s.prototype.fixed32,s.prototype.fixed64=function(p){var _=k.from(p);return this._push(f,4,_.lo)._push(f,4,_.hi)},s.prototype.sfixed64=s.prototype.fixed64,s.prototype.float=function(p){return this._push(O.float.writeFloatLE,4,p)},s.prototype.double=function(p){return this._push(O.float.writeDoubleLE,8,p)};var d=O.Array.prototype.set?function(p,_,b){_.set(p,b)}:function(p,_,b){for(var I=0;I>>0;if(!_)return this._push(n,1,0);if(O.isString(p)){var b=s.alloc(_=S.length(p));S.decode(p,b,0),p=b}return this.uint32(_)._push(d,_,p)},s.prototype.string=function(p){var _=a.length(p);return _?this.uint32(_)._push(a.write,_,p):this._push(n,1,0)},s.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new t(c,0,0),this.len=0,this},s.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 t(c,0,0),this.len=0),this},s.prototype.ldelim=function(){var p=this.head,_=this.tail,b=this.len;return this.reset().uint32(b),b&&(this.tail.next=p.next,this.tail=_,this.len+=b),this},s.prototype.finish=function(){for(var p=this.head.next,_=this.constructor.alloc(this.len),b=0;p;)p.fn(p.val,_,b),b+=p.len,p=p.next;return _},s._configure=function(p){w=p,s.create=r(),w._configure()}},3155:(D,e,h)=>{D.exports=k;var w=h(1173);(k.prototype=Object.create(w.prototype)).constructor=k;var O=h(9693);function k(){w.call(this)}function S(a,t,c){a.length<40?O.utf8.write(a,t,c):t.utf8Write?t.utf8Write(a,c):t.write(a,c)}k._configure=function(){k.alloc=O._Buffer_allocUnsafe,k.writeBytesBuffer=O.Buffer&&O.Buffer.prototype instanceof Uint8Array&&O.Buffer.prototype.set.name==="set"?function(a,t,c){t.set(a,c)}:function(a,t,c){if(a.copy)a.copy(t,c,0,a.length);else for(var u=0;u>>0;return this.uint32(t),t&&this._push(k.writeBytesBuffer,t,a),this},k.prototype.string=function(a){var t=O.Buffer.byteLength(a);return this.uint32(t),t&&this._push(S,t,a),this},k._configure()},1798:(D,e,h)=>{var w=h(4155),O=65536,k=h(9509).Buffer,S=h.g.crypto||h.g.msCrypto;S&&S.getRandomValues?D.exports=function(a,t){if(a>4294967295)throw new RangeError("requested too many random bytes");var c=k.allocUnsafe(a);if(a>0)if(a>O)for(var u=0;u{var e={};function h(O,k,S){S||(S=Error);var a=function(t){var c,u;function s(r,n,o){return t.call(this,function(i,f,d){return typeof k=="string"?k:k(i,f,d)}(r,n,o))||this}return u=t,(c=s).prototype=Object.create(u.prototype),c.prototype.constructor=c,c.__proto__=u,s}(S);a.prototype.name=S.name,a.prototype.code=O,e[O]=a}function w(O,k){if(Array.isArray(O)){var S=O.length;return O=O.map(function(a){return String(a)}),S>2?"one of ".concat(k," ").concat(O.slice(0,S-1).join(", "),", or ")+O[S-1]:S===2?"one of ".concat(k," ").concat(O[0]," or ").concat(O[1]):"of ".concat(k," ").concat(O[0])}return"of ".concat(k," ").concat(String(O))}h("ERR_INVALID_OPT_VALUE",function(O,k){return'The value "'+k+'" is invalid for option "'+O+'"'},TypeError),h("ERR_INVALID_ARG_TYPE",function(O,k,S){var a,t,c,u,s;if(typeof k=="string"&&(t="not ",k.substr(0,4)===t)?(a="must not be",k=k.replace(/^not /,"")):a="must be",function(n,o,i){return(i===void 0||i>n.length)&&(i=n.length),n.substring(i-9,i)===o}(O," argument"))c="The ".concat(O," ").concat(a," ").concat(w(k,"type"));else{var r=(typeof s!="number"&&(s=0),s+1>(u=O).length||u.indexOf(".",s)===-1?"argument":"property");c='The "'.concat(O,'" ').concat(r," ").concat(a," ").concat(w(k,"type"))}return c+". Received type ".concat(typeof S)},TypeError),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),h("ERR_METHOD_NOT_IMPLEMENTED",function(O){return"The "+O+" method is not implemented"}),h("ERR_STREAM_PREMATURE_CLOSE","Premature close"),h("ERR_STREAM_DESTROYED",function(O){return"Cannot call "+O+" after a stream was destroyed"}),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),h("ERR_STREAM_WRITE_AFTER_END","write after end"),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_UNKNOWN_ENCODING",function(O){return"Unknown encoding: "+O},TypeError),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),D.exports.q=e},6753:(D,e,h)=>{var w=h(4155),O=Object.keys||function(n){var o=[];for(var i in n)o.push(i);return o};D.exports=u;var k=h(9481),S=h(4229);h(5717)(u,k);for(var a=O(S.prototype),t=0;t{D.exports=O;var w=h(4605);function O(k){if(!(this instanceof O))return new O(k);w.call(this,k)}h(5717)(O,w),O.prototype._transform=function(k,S,a){a(null,k)}},9481:(D,e,h)=>{var w,O=h(4155);D.exports=N,N.ReadableState=M,h(7187).EventEmitter;var k,S=function(W,Y){return W.listeners(Y).length},a=h(2503),t=h(8764).Buffer,c=(h.g!==void 0?h.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},u=h(4616);k=u&&u.debuglog?u.debuglog("stream"):function(){};var s,r,n,o=h(7327),i=h(1195),f=h(2457).getHighWaterMark,d=h(4281).q,p=d.ERR_INVALID_ARG_TYPE,_=d.ERR_STREAM_PUSH_AFTER_EOF,b=d.ERR_METHOD_NOT_IMPLEMENTED,I=d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;h(5717)(N,a);var l=i.errorOrDestroy,j=["error","close","destroy","pause","resume"];function M(W,Y,F){w=w||h(6753),W=W||{},typeof F!="boolean"&&(F=Y instanceof w),this.objectMode=!!W.objectMode,F&&(this.objectMode=this.objectMode||!!W.readableObjectMode),this.highWaterMark=f(this,W,"readableHighWaterMark",F),this.buffer=new o,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=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(s||(s=h(2553).s),this.decoder=new s(W.encoding),this.encoding=W.encoding)}function N(W){if(w=w||h(6753),!(this instanceof N))return new N(W);var Y=this instanceof w;this._readableState=new M(W,this,Y),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),a.call(this)}function C(W,Y,F,ae,he){k("readableAddChunk",Y);var le,ce=W._readableState;if(Y===null)ce.reading=!1,function(ve,de){if(k("onEofChunk"),!de.ended){if(de.decoder){var pe=de.decoder.end();pe&&pe.length&&(de.buffer.push(pe),de.length+=de.objectMode?1:pe.length)}de.ended=!0,de.sync?m(ve):(de.needReadable=!1,de.emittedReadable||(de.emittedReadable=!0,E(ve)))}}(W,ce);else if(he||(le=function(ve,de){var pe,ye;return ye=de,t.isBuffer(ye)||ye instanceof c||typeof de=="string"||de===void 0||ve.objectMode||(pe=new p("chunk",["string","Buffer","Uint8Array"],de)),pe}(ce,Y)),le)l(W,le);else if(ce.objectMode||Y&&Y.length>0)if(typeof Y=="string"||ce.objectMode||Object.getPrototypeOf(Y)===t.prototype||(Y=function(ve){return t.from(ve)}(Y)),ae)ce.endEmitted?l(W,new I):x(W,ce,Y,!0);else if(ce.ended)l(W,new _);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!F?(Y=ce.decoder.write(Y),ce.objectMode||Y.length!==0?x(W,ce,Y,!1):B(W,ce)):x(W,ce,Y,!1)}else ae||(ce.reading=!1,B(W,ce));return!ce.ended&&(ce.lengthY.highWaterMark&&(Y.highWaterMark=function(F){return F>=P?F=P:(F--,F|=F>>>1,F|=F>>>2,F|=F>>>4,F|=F>>>8,F|=F>>>16,F++),F}(W)),W<=Y.length?W:Y.ended?Y.length:(Y.needReadable=!0,0))}function m(W){var Y=W._readableState;k("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(k("emitReadable",Y.flowing),Y.emittedReadable=!0,O.nextTick(E,W))}function E(W){var Y=W._readableState;k("emitReadable_",Y.destroyed,Y.length,Y.ended),Y.destroyed||!Y.length&&!Y.ended||(W.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,ie(W)}function B(W,Y){Y.readingMore||(Y.readingMore=!0,O.nextTick(T,W,Y))}function T(W,Y){for(;!Y.reading&&!Y.ended&&(Y.length0,Y.resumeScheduled&&!Y.paused?Y.flowing=!0:W.listenerCount("data")>0&&W.resume()}function te(W){k("readable nexttick read 0"),W.read(0)}function re(W,Y){k("resume",Y.reading),Y.reading||W.read(0),Y.resumeScheduled=!1,W.emit("resume"),ie(W),Y.flowing&&!Y.reading&&W.read(0)}function ie(W){var Y=W._readableState;for(k("flow",Y.flowing);Y.flowing&&W.read()!==null;);}function J(W,Y){return Y.length===0?null:(Y.objectMode?F=Y.buffer.shift():!W||W>=Y.length?(F=Y.decoder?Y.buffer.join(""):Y.buffer.length===1?Y.buffer.first():Y.buffer.concat(Y.length),Y.buffer.clear()):F=Y.buffer.consume(W,Y.decoder),F);var F}function ee(W){var Y=W._readableState;k("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,O.nextTick(G,Y,W))}function G(W,Y){if(k("endReadableNT",W.endEmitted,W.length),!W.endEmitted&&W.length===0&&(W.endEmitted=!0,Y.readable=!1,Y.emit("end"),W.autoDestroy)){var F=Y._writableState;(!F||F.autoDestroy&&F.finished)&&Y.destroy()}}function $(W,Y){for(var F=0,ae=W.length;F=Y.highWaterMark:Y.length>0)||Y.ended))return k("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?ee(this):m(this),null;if((W=v(W,Y))===0&&Y.ended)return Y.length===0&&ee(this),null;var ae,he=Y.needReadable;return k("need readable",he),(Y.length===0||Y.length-W0?J(W,Y):null)===null?(Y.needReadable=Y.length<=Y.highWaterMark,W=0):(Y.length-=W,Y.awaitDrain=0),Y.length===0&&(Y.ended||(Y.needReadable=!0),F!==W&&Y.ended&&ee(this)),ae!==null&&this.emit("data",ae),ae},N.prototype._read=function(W){l(this,new b("_read()"))},N.prototype.pipe=function(W,Y){var F=this,ae=this._readableState;switch(ae.pipesCount){case 0:ae.pipes=W;break;case 1:ae.pipes=[ae.pipes,W];break;default:ae.pipes.push(W)}ae.pipesCount+=1,k("pipe count=%d opts=%j",ae.pipesCount,Y);var he=Y&&Y.end===!1||W===O.stdout||W===O.stderr?y:le;function le(){k("onend"),W.end()}ae.endEmitted?O.nextTick(he):F.once("end",he),W.on("unpipe",function A(R,U){k("onunpipe"),R===F&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,k("cleanup"),W.removeListener("close",ye),W.removeListener("finish",V),W.removeListener("drain",ce),W.removeListener("error",pe),W.removeListener("unpipe",A),F.removeListener("end",le),F.removeListener("end",y),F.removeListener("data",de),ve=!0,!ae.awaitDrain||W._writableState&&!W._writableState.needDrain||ce())});var ce=function(A){return function(){var R=A._readableState;k("pipeOnDrain",R.awaitDrain),R.awaitDrain&&R.awaitDrain--,R.awaitDrain===0&&S(A,"data")&&(R.flowing=!0,ie(A))}}(F);W.on("drain",ce);var ve=!1;function de(A){k("ondata");var R=W.write(A);k("dest.write",R),R===!1&&((ae.pipesCount===1&&ae.pipes===W||ae.pipesCount>1&&$(ae.pipes,W)!==-1)&&!ve&&(k("false write response, pause",ae.awaitDrain),ae.awaitDrain++),F.pause())}function pe(A){k("onerror",A),y(),W.removeListener("error",pe),S(W,"error")===0&&l(W,A)}function ye(){W.removeListener("finish",V),y()}function V(){k("onfinish"),W.removeListener("close",ye),y()}function y(){k("unpipe"),F.unpipe(W)}return F.on("data",de),function(A,R,U){if(typeof A.prependListener=="function")return A.prependListener(R,U);A._events&&A._events[R]?Array.isArray(A._events[R])?A._events[R].unshift(U):A._events[R]=[U,A._events[R]]:A.on(R,U)}(W,"error",pe),W.once("close",ye),W.once("finish",V),W.emit("pipe",F),ae.flowing||(k("pipe resume"),F.resume()),W},N.prototype.unpipe=function(W){var Y=this._readableState,F={hasUnpiped:!1};if(Y.pipesCount===0)return this;if(Y.pipesCount===1)return W&&W!==Y.pipes||(W||(W=Y.pipes),Y.pipes=null,Y.pipesCount=0,Y.flowing=!1,W&&W.emit("unpipe",this,F)),this;if(!W){var ae=Y.pipes,he=Y.pipesCount;Y.pipes=null,Y.pipesCount=0,Y.flowing=!1;for(var le=0;le0,ae.flowing!==!1&&this.resume()):W==="readable"&&(ae.endEmitted||ae.readableListening||(ae.readableListening=ae.needReadable=!0,ae.flowing=!1,ae.emittedReadable=!1,k("on readable",ae.length,ae.reading),ae.length?m(this):ae.reading||O.nextTick(te,this))),F},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(W,Y){var F=a.prototype.removeListener.call(this,W,Y);return W==="readable"&&O.nextTick(q,this),F},N.prototype.removeAllListeners=function(W){var Y=a.prototype.removeAllListeners.apply(this,arguments);return W!=="readable"&&W!==void 0||O.nextTick(q,this),Y},N.prototype.resume=function(){var W=this._readableState;return W.flowing||(k("resume"),W.flowing=!W.readableListening,function(Y,F){F.resumeScheduled||(F.resumeScheduled=!0,O.nextTick(re,Y,F))}(this,W)),W.paused=!1,this},N.prototype.pause=function(){return k("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(k("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(W){var Y=this,F=this._readableState,ae=!1;for(var he in W.on("end",function(){if(k("wrapped end"),F.decoder&&!F.ended){var ce=F.decoder.end();ce&&ce.length&&Y.push(ce)}Y.push(null)}),W.on("data",function(ce){k("wrapped data"),F.decoder&&(ce=F.decoder.write(ce)),F.objectMode&&ce==null||(F.objectMode||ce&&ce.length)&&(Y.push(ce)||(ae=!0,W.pause()))}),W)this[he]===void 0&&typeof W[he]=="function"&&(this[he]=function(ce){return function(){return W[ce].apply(W,arguments)}}(he));for(var le=0;le{D.exports=u;var w=h(4281).q,O=w.ERR_METHOD_NOT_IMPLEMENTED,k=w.ERR_MULTIPLE_CALLBACK,S=w.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=w.ERR_TRANSFORM_WITH_LENGTH_0,t=h(6753);function c(n,o){var i=this._transformState;i.transforming=!1;var f=i.writecb;if(f===null)return this.emit("error",new k);i.writechunk=null,i.writecb=null,o!=null&&this.push(o),f(n);var d=this._readableState;d.reading=!1,(d.needReadable||d.length{var w,O=h(4155);function k(B){var T=this;this.next=null,this.entry=null,this.finish=function(){(function(q,te,re){var ie=q.entry;for(q.entry=null;ie;){var J=ie.callback;te.pendingcb--,J(void 0),ie=ie.next}te.corkedRequestsFree.next=q})(T,B)}}D.exports=N,N.WritableState=M;var S,a={deprecate:h(4927)},t=h(2503),c=h(8764).Buffer,u=(h.g!==void 0?h.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},s=h(1195),r=h(2457).getHighWaterMark,n=h(4281).q,o=n.ERR_INVALID_ARG_TYPE,i=n.ERR_METHOD_NOT_IMPLEMENTED,f=n.ERR_MULTIPLE_CALLBACK,d=n.ERR_STREAM_CANNOT_PIPE,p=n.ERR_STREAM_DESTROYED,_=n.ERR_STREAM_NULL_VALUES,b=n.ERR_STREAM_WRITE_AFTER_END,I=n.ERR_UNKNOWN_ENCODING,l=s.errorOrDestroy;function j(){}function M(B,T,q){w=w||h(6753),B=B||{},typeof q!="boolean"&&(q=T instanceof w),this.objectMode=!!B.objectMode,q&&(this.objectMode=this.objectMode||!!B.writableObjectMode),this.highWaterMark=r(this,B,"writableHighWaterMark",q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var te=B.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){(function(ie,J){var ee=ie._writableState,G=ee.sync,$=ee.writecb;if(typeof $!="function")throw new f;if(function(Y){Y.writing=!1,Y.writecb=null,Y.length-=Y.writelen,Y.writelen=0}(ee),J)(function(Y,F,ae,he,le){--F.pendingcb,ae?(O.nextTick(le,he),O.nextTick(E,Y,F),Y._writableState.errorEmitted=!0,l(Y,he)):(le(he),Y._writableState.errorEmitted=!0,l(Y,he),E(Y,F))})(ie,ee,G,J,$);else{var W=v(ee)||ie.destroyed;W||ee.corked||ee.bufferProcessing||!ee.bufferedRequest||P(ie,ee),G?O.nextTick(x,ie,ee,W,$):x(ie,ee,W,$)}})(T,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new k(this)}function N(B){var T=this instanceof(w=w||h(6753));if(!T&&!S.call(N,this))return new N(B);this._writableState=new M(B,this,T),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),t.call(this)}function C(B,T,q,te,re,ie,J){T.writelen=te,T.writecb=J,T.writing=!0,T.sync=!0,T.destroyed?T.onwrite(new p("write")):q?B._writev(re,T.onwrite):B._write(re,ie,T.onwrite),T.sync=!1}function x(B,T,q,te){q||function(re,ie){ie.length===0&&ie.needDrain&&(ie.needDrain=!1,re.emit("drain"))}(B,T),T.pendingcb--,te(),E(B,T)}function P(B,T){T.bufferProcessing=!0;var q=T.bufferedRequest;if(B._writev&&q&&q.next){var te=T.bufferedRequestCount,re=new Array(te),ie=T.corkedRequestsFree;ie.entry=q;for(var J=0,ee=!0;q;)re[J]=q,q.isBuf||(ee=!1),q=q.next,J+=1;re.allBuffers=ee,C(B,T,!0,T.length,re,"",ie.finish),T.pendingcb++,T.lastBufferedRequest=null,ie.next?(T.corkedRequestsFree=ie.next,ie.next=null):T.corkedRequestsFree=new k(T),T.bufferedRequestCount=0}else{for(;q;){var G=q.chunk,$=q.encoding,W=q.callback;if(C(B,T,!1,T.objectMode?1:G.length,G,$,W),q=q.next,T.bufferedRequestCount--,T.writing)break}q===null&&(T.lastBufferedRequest=null)}T.bufferedRequest=q,T.bufferProcessing=!1}function v(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function m(B,T){B._final(function(q){T.pendingcb--,q&&l(B,q),T.prefinished=!0,B.emit("prefinish"),E(B,T)})}function E(B,T){var q=v(T);if(q&&(function(re,ie){ie.prefinished||ie.finalCalled||(typeof re._final!="function"||ie.destroyed?(ie.prefinished=!0,re.emit("prefinish")):(ie.pendingcb++,ie.finalCalled=!0,O.nextTick(m,re,ie)))}(B,T),T.pendingcb===0&&(T.finished=!0,B.emit("finish"),T.autoDestroy))){var te=B._readableState;(!te||te.autoDestroy&&te.endEmitted)&&B.destroy()}return q}h(5717)(N,t),M.prototype.getBuffer=function(){for(var B=this.bufferedRequest,T=[];B;)T.push(B),B=B.next;return T},function(){try{Object.defineProperty(M.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(B){return!!S.call(this,B)||this===N&&B&&B._writableState instanceof M}})):S=function(B){return B instanceof this},N.prototype.pipe=function(){l(this,new d)},N.prototype.write=function(B,T,q){var te,re=this._writableState,ie=!1,J=!re.objectMode&&(te=B,c.isBuffer(te)||te instanceof u);return J&&!c.isBuffer(B)&&(B=function(ee){return c.from(ee)}(B)),typeof T=="function"&&(q=T,T=null),J?T="buffer":T||(T=re.defaultEncoding),typeof q!="function"&&(q=j),re.ending?function(ee,G){var $=new b;l(ee,$),O.nextTick(G,$)}(this,q):(J||function(ee,G,$,W){var Y;return $===null?Y=new _:typeof $=="string"||G.objectMode||(Y=new o("chunk",["string","Buffer"],$)),!Y||(l(ee,Y),O.nextTick(W,Y),!1)}(this,re,B,q))&&(re.pendingcb++,ie=function(ee,G,$,W,Y,F){if(!$){var ae=function(ve,de,pe){return ve.objectMode||ve.decodeStrings===!1||typeof de!="string"||(de=c.from(de,pe)),de}(G,W,Y);W!==ae&&($=!0,Y="buffer",W=ae)}var he=G.objectMode?1:W.length;G.length+=he;var le=G.length-1))throw new I(B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(B,T,q){q(new i("_write()"))},N.prototype._writev=null,N.prototype.end=function(B,T,q){var te=this._writableState;return typeof B=="function"?(q=B,B=null,T=null):typeof T=="function"&&(q=T,T=null),B!=null&&this.write(B,T),te.corked&&(te.corked=1,this.uncork()),te.ending||function(re,ie,J){ie.ending=!0,E(re,ie),J&&(ie.finished?O.nextTick(J):re.once("finish",J)),ie.ended=!0,re.writable=!1}(this,te,q),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),N.prototype.destroy=s.destroy,N.prototype._undestroy=s.undestroy,N.prototype._destroy=function(B,T){T(B)}},5850:(D,e,h)=>{var w,O=h(4155);function k(_,b,I){return(b=function(l){var j=function(M,N){if(typeof M!="object"||M===null)return M;var C=M[Symbol.toPrimitive];if(C!==void 0){var x=C.call(M,"string");if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}(l);return typeof j=="symbol"?j:String(j)}(b))in _?Object.defineProperty(_,b,{value:I,enumerable:!0,configurable:!0,writable:!0}):_[b]=I,_}var S=h(8610),a=Symbol("lastResolve"),t=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),s=Symbol("lastPromise"),r=Symbol("handlePromise"),n=Symbol("stream");function o(_,b){return{value:_,done:b}}function i(_){var b=_[a];if(b!==null){var I=_[n].read();I!==null&&(_[s]=null,_[a]=null,_[t]=null,b(o(I,!1)))}}function f(_){O.nextTick(i,_)}var d=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((k(w={get stream(){return this[n]},next:function(){var _=this,b=this[c];if(b!==null)return Promise.reject(b);if(this[u])return Promise.resolve(o(void 0,!0));if(this[n].destroyed)return new Promise(function(M,N){O.nextTick(function(){_[c]?N(_[c]):M(o(void 0,!0))})});var I,l=this[s];if(l)I=new Promise(function(M,N){return function(C,x){M.then(function(){N[u]?C(o(void 0,!0)):N[r](C,x)},x)}}(l,this));else{var j=this[n].read();if(j!==null)return Promise.resolve(o(j,!1));I=new Promise(this[r])}return this[s]=I,I}},Symbol.asyncIterator,function(){return this}),k(w,"return",function(){var _=this;return new Promise(function(b,I){_[n].destroy(null,function(l){l?I(l):b(o(void 0,!0))})})}),w),d);D.exports=function(_){var b,I=Object.create(p,(k(b={},n,{value:_,writable:!0}),k(b,a,{value:null,writable:!0}),k(b,t,{value:null,writable:!0}),k(b,c,{value:null,writable:!0}),k(b,u,{value:_._readableState.endEmitted,writable:!0}),k(b,r,{value:function(l,j){var M=I[n].read();M?(I[s]=null,I[a]=null,I[t]=null,l(o(M,!1))):(I[a]=l,I[t]=j)},writable:!0}),b));return I[s]=null,S(_,function(l){if(l&&l.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=I[t];return j!==null&&(I[s]=null,I[a]=null,I[t]=null,j(l)),void(I[c]=l)}var M=I[a];M!==null&&(I[s]=null,I[a]=null,I[t]=null,M(o(void 0,!0))),I[u]=!0}),_.on("readable",f.bind(null,I)),I}},7327:(D,e,h)=>{function w(s,r){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);r&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),n.push.apply(n,o)}return n}function O(s){for(var r=1;r0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(o){var i={data:o,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var o=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,o}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(o){if(this.length===0)return"";for(var i=this.head,f=""+i.data;i=i.next;)f+=o+i.data;return f}},{key:"concat",value:function(o){if(this.length===0)return t.alloc(0);for(var i,f,d,p=t.allocUnsafe(o>>>0),_=this.head,b=0;_;)i=_.data,f=p,d=b,t.prototype.copy.call(i,f,d),b+=_.data.length,_=_.next;return p}},{key:"consume",value:function(o,i){var f;return op.length?p.length:o;if(_===p.length?d+=p:d+=p.slice(0,o),(o-=_)==0){_===p.length?(++f,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=p.slice(_));break}++f}return this.length-=f,d}},{key:"_getBuffer",value:function(o){var i=t.allocUnsafe(o),f=this.head,d=1;for(f.data.copy(i),o-=f.data.length;f=f.next;){var p=f.data,_=o>p.length?p.length:o;if(p.copy(i,i.length-o,0,_),(o-=_)==0){_===p.length?(++d,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=p.slice(_));break}++d}return this.length-=d,i}},{key:u,value:function(o,i){return c(this,O(O({},i),{},{depth:0,customInspect:!1}))}}])&&S(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),s}()},1195:(D,e,h)=>{var w=h(4155);function O(a,t){S(a,t),k(a)}function k(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function S(a,t){a.emit("error",t)}D.exports={destroy:function(a,t){var c=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?(t?t(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,w.nextTick(S,this,a)):w.nextTick(S,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(r){!t&&r?c._writableState?c._writableState.errorEmitted?w.nextTick(k,c):(c._writableState.errorEmitted=!0,w.nextTick(O,c,r)):w.nextTick(O,c,r):t?(w.nextTick(k,c),t(r)):w.nextTick(k,c)}),this)},undestroy:function(){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)},errorOrDestroy:function(a,t){var c=a._readableState,u=a._writableState;c&&c.autoDestroy||u&&u.autoDestroy?a.destroy(t):a.emit("error",t)}}},8610:(D,e,h)=>{var w=h(4281).q.ERR_STREAM_PREMATURE_CLOSE;function O(){}D.exports=function k(S,a,t){if(typeof a=="function")return k(S,null,a);a||(a={}),t=function(_){var b=!1;return function(){if(!b){b=!0;for(var I=arguments.length,l=new Array(I),j=0;j{D.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(D,e,h)=>{var w,O=h(4281).q,k=O.ERR_MISSING_ARGS,S=O.ERR_STREAM_DESTROYED;function a(u){if(u)throw u}function t(u){u()}function c(u,s){return u.pipe(s)}D.exports=function(){for(var u=arguments.length,s=new Array(u),r=0;r0,function(_){n||(n=_),_&&i.forEach(t),p||(i.forEach(t),o(n))})});return s.reduce(c)}},2457:(D,e,h)=>{var w=h(4281).q.ERR_INVALID_OPT_VALUE;D.exports={getHighWaterMark:function(O,k,S,a){var t=function(c,u,s){return c.highWaterMark!=null?c.highWaterMark:u?c[s]:null}(k,a,S);if(t!=null){if(!isFinite(t)||Math.floor(t)!==t||t<0)throw new w(a?S:"highWaterMark",t);return Math.floor(t)}return O.objectMode?16:16384}}},2503:(D,e,h)=>{D.exports=h(7187).EventEmitter},8473:(D,e,h)=>{(e=D.exports=h(9481)).Stream=e,e.Readable=e,e.Writable=h(4229),e.Duplex=h(6753),e.Transform=h(4605),e.PassThrough=h(2725),e.finished=h(8610),e.pipeline=h(9946)},9785:(D,e,h)=>{var w=h(8764).Buffer,O=h(5717),k=h(3349),S=new Array(16),a=[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],t=[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],c=[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],u=[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],s=[0,1518500249,1859775393,2400959708,2840853838],r=[1352829926,1548603684,1836072691,2053994217,0];function n(){k.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function o(b,I){return b<>>32-I}function i(b,I,l,j,M,N,C,x){return o(b+(I^l^j)+N+C|0,x)+M|0}function f(b,I,l,j,M,N,C,x){return o(b+(I&l|~I&j)+N+C|0,x)+M|0}function d(b,I,l,j,M,N,C,x){return o(b+((I|~l)^j)+N+C|0,x)+M|0}function p(b,I,l,j,M,N,C,x){return o(b+(I&j|l&~j)+N+C|0,x)+M|0}function _(b,I,l,j,M,N,C,x){return o(b+(I^(l|~j))+N+C|0,x)+M|0}O(n,k),n.prototype._update=function(){for(var b=S,I=0;I<16;++I)b[I]=this._block.readInt32LE(4*I);for(var l=0|this._a,j=0|this._b,M=0|this._c,N=0|this._d,C=0|this._e,x=0|this._a,P=0|this._b,v=0|this._c,m=0|this._d,E=0|this._e,B=0;B<80;B+=1){var T,q;B<16?(T=i(l,j,M,N,C,b[a[B]],s[0],c[B]),q=_(x,P,v,m,E,b[t[B]],r[0],u[B])):B<32?(T=f(l,j,M,N,C,b[a[B]],s[1],c[B]),q=p(x,P,v,m,E,b[t[B]],r[1],u[B])):B<48?(T=d(l,j,M,N,C,b[a[B]],s[2],c[B]),q=d(x,P,v,m,E,b[t[B]],r[2],u[B])):B<64?(T=p(l,j,M,N,C,b[a[B]],s[3],c[B]),q=f(x,P,v,m,E,b[t[B]],r[3],u[B])):(T=_(l,j,M,N,C,b[a[B]],s[4],c[B]),q=i(x,P,v,m,E,b[t[B]],r[4],u[B])),l=C,C=N,N=o(M,10),M=j,j=T,x=E,E=m,m=o(v,10),v=P,P=q}var te=this._b+M+m|0;this._b=this._c+N+E|0,this._c=this._d+C+x|0,this._d=this._e+l+P|0,this._e=this._a+j+v|0,this._a=te},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var b=w.alloc?w.alloc(20):new w(20);return b.writeInt32LE(this._a,0),b.writeInt32LE(this._b,4),b.writeInt32LE(this._c,8),b.writeInt32LE(this._d,12),b.writeInt32LE(this._e,16),b},D.exports=n},9509:(D,e,h)=>{var w=h(8764),O=w.Buffer;function k(a,t){for(var c in a)t[c]=a[c]}function S(a,t,c){return O(a,t,c)}O.from&&O.alloc&&O.allocUnsafe&&O.allocUnsafeSlow?D.exports=w:(k(w,e),e.Buffer=S),S.prototype=Object.create(O.prototype),k(O,S),S.from=function(a,t,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return O(a,t,c)},S.alloc=function(a,t,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=O(a);return t!==void 0?typeof c=="string"?u.fill(t,c):u.fill(t):u.fill(0),u},S.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return O(a)},S.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(a)}},64:function(D,e,h){var w,O=h(4155),k=h(8764).Buffer;(function(S){function a(t,c){if(c=c||{type:"Array"},O!==void 0&&typeof O.pid=="number"&&O.versions&&O.versions.node)return function(u,s){var r=h(3954).randomBytes(u);switch(s.type){case"Array":return[].slice.call(r);case"Buffer":return r;case"Uint8Array":for(var n=new Uint8Array(u),o=0;o{var w=h(9509).Buffer;function O(k,S){this._block=w.alloc(k),this._finalSize=S,this._blockSize=k,this._len=0}O.prototype.update=function(k,S){typeof k=="string"&&(S=S||"utf8",k=w.from(k,S));for(var a=this._block,t=this._blockSize,c=k.length,u=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var t=(4294967295&a)>>>0,c=(a-t)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(t,this._blockSize-4)}this._update(this._block);var u=this._hash();return k?u.toString(k):u},O.prototype._update=function(){throw new Error("_update must be implemented by subclass")},D.exports=O},9072:(D,e,h)=>{var w=D.exports=function(O){O=O.toLowerCase();var k=w[O];if(!k)throw new Error(O+" is not supported (we accept pull requests)");return new k};w.sha=h(4448),w.sha1=h(8336),w.sha224=h(8432),w.sha256=h(7499),w.sha384=h(1686),w.sha512=h(7816)},4448:(D,e,h)=>{var w=h(5717),O=h(4189),k=h(9509).Buffer,S=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function t(){this.init(),this._w=a,O.call(this,64,56)}function c(s){return s<<30|s>>>2}function u(s,r,n,o){return s===0?r&n|~r&o:s===2?r&n|r&o|n&o:r^n^o}w(t,O),t.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},t.prototype._update=function(s){for(var r,n=this._w,o=0|this._a,i=0|this._b,f=0|this._c,d=0|this._d,p=0|this._e,_=0;_<16;++_)n[_]=s.readInt32BE(4*_);for(;_<80;++_)n[_]=n[_-3]^n[_-8]^n[_-14]^n[_-16];for(var b=0;b<80;++b){var I=~~(b/20),l=0|((r=o)<<5|r>>>27)+u(I,i,f,d)+p+n[b]+S[I];p=d,d=f,f=c(i),i=o,o=l}this._a=o+this._a|0,this._b=i+this._b|0,this._c=f+this._c|0,this._d=d+this._d|0,this._e=p+this._e|0},t.prototype._hash=function(){var s=k.allocUnsafe(20);return s.writeInt32BE(0|this._a,0),s.writeInt32BE(0|this._b,4),s.writeInt32BE(0|this._c,8),s.writeInt32BE(0|this._d,12),s.writeInt32BE(0|this._e,16),s},D.exports=t},8336:(D,e,h)=>{var w=h(5717),O=h(4189),k=h(9509).Buffer,S=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function t(){this.init(),this._w=a,O.call(this,64,56)}function c(r){return r<<5|r>>>27}function u(r){return r<<30|r>>>2}function s(r,n,o,i){return r===0?n&o|~n&i:r===2?n&o|n&i|o&i:n^o^i}w(t,O),t.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},t.prototype._update=function(r){for(var n,o=this._w,i=0|this._a,f=0|this._b,d=0|this._c,p=0|this._d,_=0|this._e,b=0;b<16;++b)o[b]=r.readInt32BE(4*b);for(;b<80;++b)o[b]=(n=o[b-3]^o[b-8]^o[b-14]^o[b-16])<<1|n>>>31;for(var I=0;I<80;++I){var l=~~(I/20),j=c(i)+s(l,f,d,p)+_+o[I]+S[l]|0;_=p,p=d,d=u(f),f=i,i=j}this._a=i+this._a|0,this._b=f+this._b|0,this._c=d+this._c|0,this._d=p+this._d|0,this._e=_+this._e|0},t.prototype._hash=function(){var r=k.allocUnsafe(20);return r.writeInt32BE(0|this._a,0),r.writeInt32BE(0|this._b,4),r.writeInt32BE(0|this._c,8),r.writeInt32BE(0|this._d,12),r.writeInt32BE(0|this._e,16),r},D.exports=t},8432:(D,e,h)=>{var w=h(5717),O=h(7499),k=h(4189),S=h(9509).Buffer,a=new Array(64);function t(){this.init(),this._w=a,k.call(this,64,56)}w(t,O),t.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},t.prototype._hash=function(){var c=S.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},D.exports=t},7499:(D,e,h)=>{var w=h(5717),O=h(4189),k=h(9509).Buffer,S=[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],a=new Array(64);function t(){this.init(),this._w=a,O.call(this,64,56)}function c(o,i,f){return f^o&(i^f)}function u(o,i,f){return o&i|f&(o|i)}function s(o){return(o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10)}function r(o){return(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7)}function n(o){return(o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3}w(t,O),t.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},t.prototype._update=function(o){for(var i,f=this._w,d=0|this._a,p=0|this._b,_=0|this._c,b=0|this._d,I=0|this._e,l=0|this._f,j=0|this._g,M=0|this._h,N=0;N<16;++N)f[N]=o.readInt32BE(4*N);for(;N<64;++N)f[N]=0|(((i=f[N-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10)+f[N-7]+n(f[N-15])+f[N-16];for(var C=0;C<64;++C){var x=M+r(I)+c(I,l,j)+S[C]+f[C]|0,P=s(d)+u(d,p,_)|0;M=j,j=l,l=I,I=b+x|0,b=_,_=p,p=d,d=x+P|0}this._a=d+this._a|0,this._b=p+this._b|0,this._c=_+this._c|0,this._d=b+this._d|0,this._e=I+this._e|0,this._f=l+this._f|0,this._g=j+this._g|0,this._h=M+this._h|0},t.prototype._hash=function(){var o=k.allocUnsafe(32);return o.writeInt32BE(this._a,0),o.writeInt32BE(this._b,4),o.writeInt32BE(this._c,8),o.writeInt32BE(this._d,12),o.writeInt32BE(this._e,16),o.writeInt32BE(this._f,20),o.writeInt32BE(this._g,24),o.writeInt32BE(this._h,28),o},D.exports=t},1686:(D,e,h)=>{var w=h(5717),O=h(7816),k=h(4189),S=h(9509).Buffer,a=new Array(160);function t(){this.init(),this._w=a,k.call(this,128,112)}w(t,O),t.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},t.prototype._hash=function(){var c=S.allocUnsafe(48);function u(s,r,n){c.writeInt32BE(s,n),c.writeInt32BE(r,n+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),c},D.exports=t},7816:(D,e,h)=>{var w=h(5717),O=h(4189),k=h(9509).Buffer,S=[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,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function t(){this.init(),this._w=a,O.call(this,128,112)}function c(p,_,b){return b^p&(_^b)}function u(p,_,b){return p&_|b&(p|_)}function s(p,_){return(p>>>28|_<<4)^(_>>>2|p<<30)^(_>>>7|p<<25)}function r(p,_){return(p>>>14|_<<18)^(p>>>18|_<<14)^(_>>>9|p<<23)}function n(p,_){return(p>>>1|_<<31)^(p>>>8|_<<24)^p>>>7}function o(p,_){return(p>>>1|_<<31)^(p>>>8|_<<24)^(p>>>7|_<<25)}function i(p,_){return(p>>>19|_<<13)^(_>>>29|p<<3)^p>>>6}function f(p,_){return(p>>>19|_<<13)^(_>>>29|p<<3)^(p>>>6|_<<26)}function d(p,_){return p>>>0<_>>>0?1:0}w(t,O),t.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},t.prototype._update=function(p){for(var _=this._w,b=0|this._ah,I=0|this._bh,l=0|this._ch,j=0|this._dh,M=0|this._eh,N=0|this._fh,C=0|this._gh,x=0|this._hh,P=0|this._al,v=0|this._bl,m=0|this._cl,E=0|this._dl,B=0|this._el,T=0|this._fl,q=0|this._gl,te=0|this._hl,re=0;re<32;re+=2)_[re]=p.readInt32BE(4*re),_[re+1]=p.readInt32BE(4*re+4);for(;re<160;re+=2){var ie=_[re-30],J=_[re-30+1],ee=n(ie,J),G=o(J,ie),$=i(ie=_[re-4],J=_[re-4+1]),W=f(J,ie),Y=_[re-14],F=_[re-14+1],ae=_[re-32],he=_[re-32+1],le=G+F|0,ce=ee+Y+d(le,G)|0;ce=(ce=ce+$+d(le=le+W|0,W)|0)+ae+d(le=le+he|0,he)|0,_[re]=ce,_[re+1]=le}for(var ve=0;ve<160;ve+=2){ce=_[ve],le=_[ve+1];var de=u(b,I,l),pe=u(P,v,m),ye=s(b,P),V=s(P,b),y=r(M,B),A=r(B,M),R=S[ve],U=S[ve+1],z=c(M,N,C),L=c(B,T,q),H=te+A|0,ne=x+y+d(H,te)|0;ne=(ne=(ne=ne+z+d(H=H+L|0,L)|0)+R+d(H=H+U|0,U)|0)+ce+d(H=H+le|0,le)|0;var oe=V+pe|0,K=ye+de+d(oe,V)|0;x=C,te=q,C=N,q=T,N=M,T=B,M=j+ne+d(B=E+H|0,E)|0,j=l,E=m,l=I,m=v,I=b,v=P,b=ne+K+d(P=H+oe|0,H)|0}this._al=this._al+P|0,this._bl=this._bl+v|0,this._cl=this._cl+m|0,this._dl=this._dl+E|0,this._el=this._el+B|0,this._fl=this._fl+T|0,this._gl=this._gl+q|0,this._hl=this._hl+te|0,this._ah=this._ah+b+d(this._al,P)|0,this._bh=this._bh+I+d(this._bl,v)|0,this._ch=this._ch+l+d(this._cl,m)|0,this._dh=this._dh+j+d(this._dl,E)|0,this._eh=this._eh+M+d(this._el,B)|0,this._fh=this._fh+N+d(this._fl,T)|0,this._gh=this._gh+C+d(this._gl,q)|0,this._hh=this._hh+x+d(this._hl,te)|0},t.prototype._hash=function(){var p=k.allocUnsafe(64);function _(b,I,l){p.writeInt32BE(b,l),p.writeInt32BE(I,l+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),_(this._gh,this._gl,48),_(this._hh,this._hl,56),p},D.exports=t},2830:(D,e,h)=>{D.exports=O;var w=h(7187).EventEmitter;function O(){w.call(this)}h(5717)(O,w),O.Readable=h(9481),O.Writable=h(4229),O.Duplex=h(6753),O.Transform=h(4605),O.PassThrough=h(2725),O.finished=h(8610),O.pipeline=h(9946),O.Stream=O,O.prototype.pipe=function(k,S){var a=this;function t(i){k.writable&&k.write(i)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",t),k.on("drain",c),k._isStdio||S&&S.end===!1||(a.on("end",s),a.on("close",r));var u=!1;function s(){u||(u=!0,k.end())}function r(){u||(u=!0,typeof k.destroy=="function"&&k.destroy())}function n(i){if(o(),w.listenerCount(this,"error")===0)throw i}function o(){a.removeListener("data",t),k.removeListener("drain",c),a.removeListener("end",s),a.removeListener("close",r),a.removeListener("error",n),k.removeListener("error",n),a.removeListener("end",o),a.removeListener("close",o),k.removeListener("close",o)}return a.on("error",n),k.on("error",n),a.on("end",o),a.on("close",o),k.on("close",o),k.emit("pipe",a),k}},2553:(D,e,h)=>{var w=h(9509).Buffer,O=w.isEncoding||function(o){switch((o=""+o)&&o.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 k(o){var i;switch(this.encoding=function(f){var d=function(p){if(!p)return"utf8";for(var _;;)switch(p){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 p;default:if(_)return;p=(""+p).toLowerCase(),_=!0}}(f);if(typeof d!="string"&&(w.isEncoding===O||!O(f)))throw new Error("Unknown encoding: "+f);return d||f}(o),this.encoding){case"utf16le":this.text=t,this.end=c,i=4;break;case"utf8":this.fillLast=a,i=4;break;case"base64":this.text=u,this.end=s,i=3;break;default:return this.write=r,void(this.end=n)}this.lastNeed=0,this.lastTotal=0,this.lastChar=w.allocUnsafe(i)}function S(o){return o<=127?0:o>>5==6?2:o>>4==14?3:o>>3==30?4:o>>6==2?-1:-2}function a(o){var i=this.lastTotal-this.lastNeed,f=function(d,p,_){if((192&p[0])!=128)return d.lastNeed=0,"�";if(d.lastNeed>1&&p.length>1){if((192&p[1])!=128)return d.lastNeed=1,"�";if(d.lastNeed>2&&p.length>2&&(192&p[2])!=128)return d.lastNeed=2,"�"}}(this,o);return f!==void 0?f:this.lastNeed<=o.length?(o.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(o.copy(this.lastChar,i,0,o.length),void(this.lastNeed-=o.length))}function t(o,i){if((o.length-i)%2==0){var f=o.toString("utf16le",i);if(f){var d=f.charCodeAt(f.length-1);if(d>=55296&&d<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1],f.slice(0,-1)}return f}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=o[o.length-1],o.toString("utf16le",i,o.length-1)}function c(o){var i=o&&o.length?this.write(o):"";if(this.lastNeed){var f=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,f)}return i}function u(o,i){var f=(o.length-i)%3;return f===0?o.toString("base64",i):(this.lastNeed=3-f,this.lastTotal=3,f===1?this.lastChar[0]=o[o.length-1]:(this.lastChar[0]=o[o.length-2],this.lastChar[1]=o[o.length-1]),o.toString("base64",i,o.length-f))}function s(o){var i=o&&o.length?this.write(o):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function r(o){return o.toString(this.encoding)}function n(o){return o&&o.length?this.write(o):""}e.s=k,k.prototype.write=function(o){if(o.length===0)return"";var i,f;if(this.lastNeed){if((i=this.fillLast(o))===void 0)return"";f=this.lastNeed,this.lastNeed=0}else f=0;return f=0?(l>0&&(p.lastNeed=l-1),l):--I=0?(l>0&&(p.lastNeed=l-2),l):--I=0?(l>0&&(l===2?l=0:p.lastNeed=l-3),l):0}(this,o,i);if(!this.lastNeed)return o.toString("utf8",i);this.lastTotal=f;var d=o.length-(f-this.lastNeed);return o.copy(this.lastChar,0,d),o.toString("utf8",i,d)},k.prototype.fillLast=function(o){if(this.lastNeed<=o.length)return o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);o.copy(this.lastChar,this.lastTotal-this.lastNeed,0,o.length),this.lastNeed-=o.length}},5892:(D,e,h)=>{var w=h(8764).Buffer;const O=h(3550),k=new(h(6266)).ec("secp256k1"),S=h(4142),a=w.alloc(32,0),t=w.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),c=w.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),u=k.curve.n,s=u.shrn(1),r=k.curve.g,n="Expected Private",o="Expected Point",i="Expected Tweak",f="Expected Hash";function d(P){return w.isBuffer(P)&&P.length===32}function p(P){return!!d(P)&&P.compare(t)<0}function _(P){if(!w.isBuffer(P)||P.length<33)return!1;const v=P[0],m=P.slice(1,33);if(m.compare(a)===0||m.compare(c)>=0)return!1;if((v===2||v===3)&&P.length===33){try{N(P)}catch{return!1}return!0}const E=P.slice(33);return E.compare(a)!==0&&!(E.compare(c)>=0)&&v===4&&P.length===65}function b(P){return P[0]!==4}function I(P){return!!d(P)&&P.compare(a)>0&&P.compare(t)<0}function l(P,v){return P===void 0&&v!==void 0?b(v):P===void 0||P}function j(P){return new O(P)}function M(P){return P.toArrayLike(w,"be",32)}function N(P){return k.curve.decodePoint(P)}function C(P,v){return w.from(P._encode(v))}function x(P,v,m){if(!d(P))throw new TypeError(f);if(!I(v))throw new TypeError(n);if(m!==void 0&&!d(m))throw new TypeError("Expected Extra Data (32 bytes)");const E=j(v),B=j(P);let T,q;S(P,v,function(re){const ie=j(re),J=r.mul(ie);return!J.isInfinity()&&(T=J.x.umod(u),T.isZero()!==0&&(q=ie.invm(u).mul(B.add(E.mul(T))).umod(u),q.isZero()!==0))},I,m),q.cmp(s)>0&&(q=u.sub(q));const te=w.allocUnsafe(64);return M(T).copy(te,0),M(q).copy(te,32),te}D.exports={isPoint:_,isPointCompressed:function(P){return!!_(P)&&b(P)},isPrivate:I,pointAdd:function(P,v,m){if(!_(P))throw new TypeError(o);if(!_(v))throw new TypeError(o);const E=N(P),B=N(v),T=E.add(B);return T.isInfinity()?null:C(T,l(m,P))},pointAddScalar:function(P,v,m){if(!_(P))throw new TypeError(o);if(!p(v))throw new TypeError(i);const E=l(m,P),B=N(P);if(v.compare(a)===0)return C(B,E);const T=j(v),q=r.mul(T),te=B.add(q);return te.isInfinity()?null:C(te,E)},pointCompress:function(P,v){if(!_(P))throw new TypeError(o);const m=N(P);if(m.isInfinity())throw new TypeError(o);return C(m,l(v,P))},pointFromScalar:function(P,v){if(!I(P))throw new TypeError(n);const m=j(P),E=r.mul(m);return E.isInfinity()?null:C(E,l(v))},pointMultiply:function(P,v,m){if(!_(P))throw new TypeError(o);if(!p(v))throw new TypeError(i);const E=l(m,P),B=N(P),T=j(v),q=B.mul(T);return q.isInfinity()?null:C(q,E)},privateAdd:function(P,v){if(!I(P))throw new TypeError(n);if(!p(v))throw new TypeError(i);const m=j(P),E=j(v),B=M(m.add(E).umod(u));return I(B)?B:null},privateSub:function(P,v){if(!I(P))throw new TypeError(n);if(!p(v))throw new TypeError(i);const m=j(P),E=j(v),B=M(m.sub(E).umod(u));return I(B)?B:null},sign:function(P,v){return x(P,v)},signWithEntropy:function(P,v,m){return x(P,v,m)},verify:function(P,v,m,E){if(!d(P))throw new TypeError(f);if(!_(v))throw new TypeError(o);if(!function(G){const $=G.slice(0,32),W=G.slice(32,64);return w.isBuffer(G)&&G.length===64&&$.compare(t)<0&&W.compare(t)<0}(m))throw new TypeError("Expected Signature");const B=N(v),T=j(m.slice(0,32)),q=j(m.slice(32,64));if(E&&q.cmp(s)>0||T.gtn(0)<=0||q.gtn(0)<=0)return!1;const te=j(P),re=q.invm(u),ie=te.mul(re).umod(u),J=T.mul(re).umod(u),ee=r.mulAdd(ie,B,J);return!ee.isInfinity()&&ee.x.umod(u).eq(T)}}},4142:(D,e,h)=>{var w=h(8764).Buffer;const O=h(8355),k=w.alloc(1,1),S=w.alloc(1,0);D.exports=function(a,t,c,u,s){let r=w.alloc(32,0),n=w.alloc(32,1);r=O("sha256",r).update(n).update(S).update(t).update(a).update(s||"").digest(),n=O("sha256",r).update(n).digest(),r=O("sha256",r).update(n).update(k).update(t).update(a).update(s||"").digest(),n=O("sha256",r).update(n).digest(),n=O("sha256",r).update(n).digest();let o=n;for(;!u(o)||!c(o);)r=O("sha256",r).update(n).update(S).digest(),n=O("sha256",r).update(n).digest(),n=O("sha256",r).update(n).digest(),o=n;return o}},8136:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(b,I,l,j){j===void 0&&(j=l),Object.defineProperty(b,j,{enumerable:!0,get:function(){return I[l]}})}:function(b,I,l,j){j===void 0&&(j=l),b[j]=I[l]}),O=this&&this.__setModuleDefault||(Object.create?function(b,I){Object.defineProperty(b,"default",{enumerable:!0,value:I})}:function(b,I){b.default=I}),k=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var I={};if(b!=null)for(var l in b)l!=="default"&&Object.prototype.hasOwnProperty.call(b,l)&&w(I,b,l);return O(I,b),I},S=this&&this.__awaiter||function(b,I,l,j){return new(l||(l=Promise))(function(M,N){function C(v){try{P(j.next(v))}catch(m){N(m)}}function x(v){try{P(j.throw(v))}catch(m){N(m)}}function P(v){var m;v.done?M(v.value):(m=v.value,m instanceof l?m:new l(function(E){E(m)})).then(C,x)}P((j=j.apply(b,I||[])).next())})},a=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.EncryptionUtilsImpl=void 0;const t=h(8972),c=h(4330),u=h(3061),s=h(4063),r=k(h(9463)),n=a(h(64)),o=h(6402),i=new r.PolyfillCryptoProvider,f=(0,t.fromHex)("000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"),d=(0,t.fromBase64)("79++5YOHfm0SwhlpUDClv7cuCjq9xBZlWqSjDJWkRG8="),p=new Set(["secret-2","secret-3","secret-4"]);class _{constructor(I,l,j){if(this.url=I,this.consensusIoPubKey=new Uint8Array,l){if(l.length!==32)throw new Error("encryptionSeed must be a Uint8Array of length 32");this.seed=l}else this.seed=_.GenerateNewSeed();const{privkey:M,pubkey:N}=_.GenerateNewKeyPairFromSeed(this.seed);this.privkey=M,this.pubkey=N,j&&p.has(j)&&(this.consensusIoPubKey=d)}static GenerateNewKeyPair(){return _.GenerateNewKeyPairFromSeed(_.GenerateNewSeed())}static GenerateNewSeed(){return(0,n.default)(32,{type:"Uint8Array"})}static GenerateNewKeyPairFromSeed(I){const{private:l,public:j}=(0,s.generateKeyPair)(I);return{privkey:l,pubkey:j}}getConsensusIoPubKey(){return S(this,void 0,void 0,function*(){if(this.consensusIoPubKey.length===32)return this.consensusIoPubKey;const{key:I}=yield o.Query.TxKey({},{pathPrefix:this.url});return this.consensusIoPubKey=(0,t.fromBase64)(I),this.consensusIoPubKey})}getTxEncryptionKey(I){return S(this,void 0,void 0,function*(){const l=yield this.getConsensusIoPubKey(),j=(0,s.sharedKey)(this.privkey,l);return(0,c.hkdf)(u.sha256,Uint8Array.from([...j,...I]),f,"",32)})}encrypt(I,l){return S(this,void 0,void 0,function*(){const j=(0,n.default)(32,{type:"Uint8Array"}),M=yield this.getTxEncryptionKey(j),N=yield r.SIV.importKey(M,"AES-SIV",i),C=(0,t.toUtf8)(I+JSON.stringify(l)),x=yield N.seal(C,[new Uint8Array]);return Uint8Array.from([...j,...this.pubkey,...x])})}decrypt(I,l){return S(this,void 0,void 0,function*(){if(!(I!=null&&I.length))return new Uint8Array;const j=yield this.getTxEncryptionKey(l);return yield(yield r.SIV.importKey(j,"AES-SIV",i)).open(I,[new Uint8Array])})}getPubkey(){return Promise.resolve(this.pubkey)}}e.EncryptionUtilsImpl=_},7061:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(h(7131),e),O(h(8680),e)},7131:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(_,b,I,l){l===void 0&&(l=I),Object.defineProperty(_,l,{enumerable:!0,get:function(){return b[I]}})}:function(_,b,I,l){l===void 0&&(l=I),_[l]=b[I]}),O=this&&this.__setModuleDefault||(Object.create?function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}:function(_,b){_.default=b}),k=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var I in _)I!=="default"&&Object.prototype.hasOwnProperty.call(_,I)&&w(b,_,I);return O(b,_),b},S=this&&this.__awaiter||function(_,b,I,l){return new(I||(I=Promise))(function(j,M){function N(P){try{x(l.next(P))}catch(v){M(v)}}function C(P){try{x(l.throw(P))}catch(v){M(v)}}function x(P){var v;P.done?j(P.value):(v=P.value,v instanceof I?v:new I(function(m){m(v)})).then(N,C)}x((l=l.apply(_,b||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.validatePermit=e.newPermit=e.newSignDoc=e.PermissionNotInPermit=e.SignerIsNotAddress=e.SignatureInvalid=e.ContractNotInPermit=e.PermitError=void 0;const a=h(8972),t=h(3061),c=k(h(9656)),u=h(7715),s=h(3607),r=h(5360);class n extends Error{constructor(b){super(b),this.type="PermitError",this.name="PermitError"}}e.PermitError=n;class o extends n{constructor(b,I){super(`Contract ${b} is not allowed for this permit`),this.name="ContractNotInPermit",this.contract=b,this.allowed_contracts=I}}e.ContractNotInPermit=o;class i extends n{constructor(b,I){super("Signature invalid"),this.name="SignatureInvalid",this.key=I,this.signature=b}}e.SignatureInvalid=i;class f extends n{constructor(b,I){super(`Address ${I} is not the permit signer`),this.name="SignerIsNotAddress",this.address=I,this.publicKey=b}}e.SignerIsNotAddress=f;class d extends n{constructor(b,I){super("Permit does not contain required the permissions"),this.name="PermissionNotInPermit",this.permission=b,this.permissionsInContract=I}}e.PermissionNotInPermit=d,e.newSignDoc=(_,b,I,l)=>({chain_id:_,account_number:"0",sequence:"0",fee:{amount:(0,s.stringToCoins)("0uscrt"),gas:"1"},msgs:[{type:"query_permit",value:{permit_name:b,allowed_tokens:I,permissions:l}}],memo:""}),e.newPermit=(_,b,I,l,j,M,N)=>S(void 0,void 0,void 0,function*(){let C;if(N){if(!(window!=null&&window.keplr))throw new Error("Cannot sign with Keplr - extension not enabled; enable Keplr or change signing mode");({signature:C}=yield window.keplr.signAmino(I,b,{chain_id:I,account_number:"0",sequence:"0",fee:{amount:(0,s.stringToCoins)("0uscrt"),gas:"1"},msgs:[{type:"query_permit",value:{permit_name:l,allowed_tokens:j,permissions:M}}],memo:""},{preferNoSetFee:!0,preferNoSetMemo:!0}))}else C=typeof _.signPermit=="function"?(yield _.signPermit(b,(0,e.newSignDoc)(I,l,j,M))).signature:(yield _.signAmino(b,(0,e.newSignDoc)(I,l,j,M))).signature;return{params:{chain_id:I,permit_name:l,allowed_tokens:j,permissions:M},signature:C}}),e.validatePermit=(_,b,I,l,j=!0)=>{if(!_.params.allowed_tokens.includes(I)){if(!j)return!1;throw new o(I,_.params.allowed_tokens)}if(!_.params.permissions.find(x=>l.includes(x))){if(!j)return!1;throw new d(l,_.params.permissions)}let M="";try{M=u.bech32.decode(b).prefix}catch{throw new Error(`Address address=${b} must be a valid bech32 address`)}let N="";try{N=(0,s.base64PubkeyToAddress)(_.signature.pub_key.value,M)}catch{throw new n("Pubkey invalid")}if(N!==b){if(!j)return!1;throw new f(_.signature.pub_key,b)}let C=!1;try{C=p(_)}catch{if(!j)return!1;throw new i(_.signature.signature,_.signature.pub_key.value)}if(!C){if(!j)return!1;throw new i(_.signature.signature,_.signature.pub_key.value)}return!0};const p=_=>{let b=(0,e.newSignDoc)(_.params.chain_id,_.params.permit_name,_.params.allowed_tokens,_.params.permissions);const I=(0,t.sha256)((0,r.serializeStdSignDoc)(b));let l=c.Signature.fromCompact((0,a.fromBase64)(_.signature.signature));return c.verify(l,I,(0,a.fromBase64)(_.signature.pub_key.value))}},3117:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PermitSigner=e.DirectSignerUnsupported=void 0;const w=h(7131);class O extends w.PermitError{constructor(){super("Only amino signer is supported for permits")}}e.DirectSignerUnsupported=O,e.PermitSigner=class{constructor(k){this.isAminoSigner=S=>"signAmino"in S,this.signer=k}_checkSigner(){if(!this.isAminoSigner(this.signer))throw new O}sign(k,S,a,t,c,u=!0){return this._checkSigner(),(0,w.newPermit)(this.signer,k,S,a,t,c,u)}verify(k,S,a,t){return(0,w.validatePermit)(k,S,a,t)}verifyNoExcept(k,S,a,t){return(0,w.validatePermit)(k,S,a,t,!1)}}},8680:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},1610:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateViewingKey=e.MsgSetViewingKey=void 0;const w=h(3745);class O extends w.MsgExecuteContract{}e.MsgSetViewingKey=O;class k extends w.MsgExecuteContract{}e.MsgCreateViewingKey=k},4447:function(D,e,h){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?u(i.value):(f=i.value,f instanceof t?f:new t(function(d){d(f)})).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip1155Querier=void 0;const O=h(9150);class k extends O.ComputeQuerier{constructor(){super(...arguments),this.getBalance=({contract:a,token_id:t,owner:c,auth:u})=>w(this,void 0,void 0,function*(){if(u.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{balance:{token_id:t,owner:c,viewer:u.viewer.address,key:u.viewer.viewing_key}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{balance:{token_id:t,owner:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetBalance")}),this.getAllBalances=({contract:a,auth:t,owner:c,tx_history_page:u,tx_history_page_size:s})=>w(this,void 0,void 0,function*(){if(t.viewer&&c){if(t.viewer.address!==c)throw new Error("only owner can query all balances");return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{all_balances:{owner:c,key:t.viewer.viewing_key,tx_history_page:u,tx_history_page_size:s}}})}if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:t.permit,query:{all_balances:{tx_history_page:u,tx_history_page_size:s}}}}});throw new Error("Empty auth parameter for authenticated query: GetAllBalances")}),this.getTransactionHistory=({contract:a,auth:t,page_size:c,page:u})=>w(this,void 0,void 0,function*(){if(t.viewer)return this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transaction_history:{key:t.viewer.viewing_key,address:t.viewer.address,page_size:c,page:u}}});if(t.permit)return this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:t.permit,query:{transaction_history:{page_size:c,page:u}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")}),this.getPublicTokenInfo=({contract:a,token_id:t})=>w(this,void 0,void 0,function*(){return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_id_public_info:{token_id:t}}})}),this.getPrivateTokenInfo=({contract:a,token_id:t,auth:c})=>w(this,void 0,void 0,function*(){if(c.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_id_private_info:{token_id:t,address:c.viewer.address,key:c.viewer.viewing_key}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{token_id_private_info:{token_id:t}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")})}}e.Snip1155Querier=k},7350:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip1155ChangeMetadata=e.MsgSnip1155RemoveMinter=e.MsgSnipAddMinter=e.MsgSnip1155BatchTransfer=e.MsgSnip1155Transfer=e.MsgSnip1155Burn=e.MsgSnip1155Mint=e.MsgSnip1155BatchSend=e.MsgSnip1155Send=e.MsgSnip1155RemoveCurator=e.MsgSnip1155AddCurator=e.MsgSnip1155CurateTokens=e.MsgSnip1155RemoveAdmin=e.MsgSnip1155ChangeAdmin=void 0;const w=h(3745);class O extends w.MsgExecuteContract{}e.MsgSnip1155ChangeAdmin=O;class k extends w.MsgExecuteContract{}e.MsgSnip1155RemoveAdmin=k;class S extends w.MsgExecuteContract{}e.MsgSnip1155CurateTokens=S;class a extends w.MsgExecuteContract{}e.MsgSnip1155AddCurator=a;class t extends w.MsgExecuteContract{}e.MsgSnip1155RemoveCurator=t;class c extends w.MsgExecuteContract{}e.MsgSnip1155Send=c;class u extends w.MsgExecuteContract{}e.MsgSnip1155BatchSend=u;class s extends w.MsgExecuteContract{}e.MsgSnip1155Mint=s;class r extends w.MsgExecuteContract{}e.MsgSnip1155Burn=r;class n extends w.MsgExecuteContract{}e.MsgSnip1155Transfer=n;class o extends w.MsgExecuteContract{}e.MsgSnip1155BatchTransfer=o;class i extends w.MsgExecuteContract{}e.MsgSnipAddMinter=i;class f extends w.MsgExecuteContract{}e.MsgSnip1155RemoveMinter=f;class d extends w.MsgExecuteContract{}e.MsgSnip1155ChangeMetadata=d},8471:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(h(3655),e),O(h(1047),e)},3655:function(D,e,h){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?u(i.value):(f=i.value,f instanceof t?f:new t(function(d){d(f)})).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip20Querier=void 0;const O=h(3607);class k extends O.ComputeQuerier{constructor(){super(...arguments),this.getSnip20Params=({contract:a})=>w(this,void 0,void 0,function*(){return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{token_info:{}}})}),this.getBalance=({contract:a,address:t,auth:c})=>w(this,void 0,void 0,function*(){if(c.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{balance:{address:t,key:c.key}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{balance:{}}}}});throw new Error("Empty auth parameter for authenticated query: GetBalance")}),this.getTransferHistory=({contract:a,address:t,auth:c,page:u,page_size:s,should_filter_decoys:r})=>w(this,void 0,void 0,function*(){if(c.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transfer_history:{address:t,key:c.key,page:u,page_size:s,should_filter_decoys:r}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{transfer_history:{page:u,page_size:s,should_filter_decoys:r}}}}});throw new Error("Empty auth parameter for authenticated query: getTransferHistory")}),this.getTransactionHistory=({contract:a,address:t,auth:c,page:u,page_size:s,should_filter_decoys:r})=>w(this,void 0,void 0,function*(){if(c.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{transaction_history:{address:t,key:c.key,page:u,page_size:s,should_filter_decoys:r}}});if(c.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:c.permit,query:{transaction_history:{page:u,page_size:s,should_filter_decoys:r}}}}});throw new Error("Empty auth parameter for authenticated query: getTransactionHistory")}),this.GetAllowance=({contract:a,owner:t,spender:c,auth:u})=>w(this,void 0,void 0,function*(){if(u.key)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{allowance:{owner:t,spender:c,key:u.key}}});if(u.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.code_hash,query:{with_permit:{permit:u.permit,query:{allowance:{owner:t,spender:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetAllowance")})}}e.Snip20Querier=k},1047:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip20SetViewingKey=e.MsgSnip20DecreaseAllowance=e.MsgSnip20IncreaseAllowance=e.MsgSnip20Transfer=e.MsgSnip20Send=void 0;const w=h(3745);class O extends w.MsgExecuteContract{}e.MsgSnip20Send=O;class k extends w.MsgExecuteContract{}e.MsgSnip20Transfer=k;class S extends w.MsgExecuteContract{}e.MsgSnip20IncreaseAllowance=S;class a extends w.MsgExecuteContract{}e.MsgSnip20DecreaseAllowance=a;class t extends w.MsgExecuteContract{}e.MsgSnip20SetViewingKey=t},2412:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(h(3449),e),O(h(4539),e)},3449:function(D,e,h){var w=this&&this.__awaiter||function(S,a,t,c){return new(t||(t=Promise))(function(u,s){function r(i){try{o(c.next(i))}catch(f){s(f)}}function n(i){try{o(c.throw(i))}catch(f){s(f)}}function o(i){var f;i.done?u(i.value):(f=i.value,f instanceof t?f:new t(function(d){d(f)})).then(r,n)}o((c=c.apply(S,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Snip721Querier=void 0;const O=h(9150);class k extends O.ComputeQuerier{constructor(){super(...arguments),this.GetTokenInfo=({contract:a,auth:t,token_id:c})=>w(this,void 0,void 0,function*(){if(t.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{all_nft_info:{token_id:c,viewer:t.viewer}}});if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{with_permit:{permit:t.permit,query:{all_nft_info:{token_id:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetTokenInfo")}),this.GetOwnedTokens=({contract:a,auth:t,owner:c})=>w(this,void 0,void 0,function*(){if(t.viewer)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{tokens:{owner:c,viewing_key:t.viewer.viewing_key}}});if(t.permit)return yield this.queryContract({contract_address:a.address,code_hash:a.codeHash,query:{with_permit:{permit:t.permit,query:{tokens:{owner:c}}}}});throw new Error("Empty auth parameter for authenticated query: GetOwnedTokens")})}}e.Snip721Querier=k},4539:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSnip721Mint=e.MsgSnip721AddMinter=e.MsgSnip721Send=void 0;const w=h(3745);class O extends w.MsgExecuteContract{}e.MsgSnip721Send=O;class k extends w.MsgExecuteContract{}e.MsgSnip721AddMinter=k;class S extends w.MsgExecuteContract{}e.MsgSnip721Mint=S},3004:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Accounts(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/accounts?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Account(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/accounts/${a.address}?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ModuleAccountByName(a,t){return S.fetchReq(`/cosmos/auth/v1beta1/module_accounts/${a.name}?${S.renderURLSearchParams(a,["name"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},3704:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Grants(a,t){return S.fetchReq(`/cosmos/authz/v1beta1/grants?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GranterGrants(a,t){return S.fetchReq(`/cosmos/authz/v1beta1/grants/granter/${a.granter}?${S.renderURLSearchParams(a,["granter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GranteeGrants(a,t){return S.fetchReq(`/cosmos/authz/v1beta1/grants/grantee/${a.grantee}?${S.renderURLSearchParams(a,["grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1926:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Balance(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}/by_denom?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllBalances(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SpendableBalances(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/spendable_balances/${a.address}?${S.renderURLSearchParams(a,["address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalSupply(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/supply?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SupplyOf(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/supply/${a.denom}?${S.renderURLSearchParams(a,["denom"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomMetadata(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata/${a.denom}?${S.renderURLSearchParams(a,["denom"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomsMetadata(a,t){return S.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4210:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;const S=k(h(1704));e.Service=class{static Config(a,t){return S.fetchReq(`/cosmos/base/node/v1beta1/config?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},2390:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=void 0;const S=k(h(1704));e.Service=class{static GetNodeInfo(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/node_info?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetSyncing(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/syncing?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetLatestBlock(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/latest?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetBlockByHeight(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/blocks/${a.height}?${S.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetLatestValidatorSet(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/latest?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static GetValidatorSetByHeight(a,t){return S.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/${a.height}?${S.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},406:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorOutstandingRewards(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/outstanding_rewards?${S.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorCommission(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/commission?${S.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorSlashes(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/validators/${a.validator_address}/slashes?${S.renderURLSearchParams(a,["validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegationRewards(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards/${a.validator_address}?${S.renderURLSearchParams(a,["delegator_address","validator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegationTotalRewards(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/rewards?${S.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidators(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/validators?${S.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorWithdrawAddress(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/delegators/${a.delegator_address}/withdraw_address?${S.renderURLSearchParams(a,["delegator_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CommunityPool(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/community_pool?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FoundationTax(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/foundation_tax?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RestakeThreshold(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/restake_threshold?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RestakingEntries(a,t){return S.fetchReq(`/cosmos/distribution/v1beta1/restake_entries?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6898:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Evidence(a,t){return S.fetchReq(`/cosmos/evidence/v1beta1/evidence/${a.evidence_hash}?${S.renderURLSearchParams(a,["evidence_hash"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllEvidence(a,t){return S.fetchReq(`/cosmos/evidence/v1beta1/evidence?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},876:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Allowance(a,t){return S.fetchReq(`/cosmos/feegrant/v1beta1/allowance/${a.granter}/${a.grantee}?${S.renderURLSearchParams(a,["granter","grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Allowances(a,t){return S.fetchReq(`/cosmos/feegrant/v1beta1/allowances/${a.grantee}?${S.renderURLSearchParams(a,["grantee"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AllowancesByGranter(a,t){return S.fetchReq(`/cosmos/feegrant/v1beta1/issued/${a.granter}?${S.renderURLSearchParams(a,["granter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},7331:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Proposal(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Proposals(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Vote(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes/${a.voter}?${S.renderURLSearchParams(a,["proposal_id","voter"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Votes(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/votes?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/params/${a.params_type}?${S.renderURLSearchParams(a,["params_type"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Deposit(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits/${a.depositor}?${S.renderURLSearchParams(a,["proposal_id","depositor"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Deposits(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/deposits?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TallyResult(a,t){return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/tally?${S.renderURLSearchParams(a,["proposal_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},468:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/mint/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Inflation(a,t){return S.fetchReq(`/cosmos/mint/v1beta1/inflation?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AnnualProvisions(a,t){return S.fetchReq(`/cosmos/mint/v1beta1/annual_provisions?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5440:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/params/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1575:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/cosmos/slashing/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SigningInfo(a,t){return S.fetchReq(`/cosmos/slashing/v1beta1/signing_infos/${a.cons_address}?${S.renderURLSearchParams(a,["cons_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static SigningInfos(a,t){return S.fetchReq(`/cosmos/slashing/v1beta1/signing_infos?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4066:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Validators(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Validator(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}?${S.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations?${S.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ValidatorUnbondingDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/unbonding_delegations?${S.renderURLSearchParams(a,["validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Delegation(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}?${S.renderURLSearchParams(a,["validator_addr","delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnbondingDelegation(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/validators/${a.validator_addr}/delegations/${a.delegator_addr}/unbonding_delegation?${S.renderURLSearchParams(a,["validator_addr","delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegations/${a.delegator_addr}?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorUnbondingDelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/unbonding_delegations?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Redelegations(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/redelegations?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidators(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators?${S.renderURLSearchParams(a,["delegator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DelegatorValidator(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/delegators/${a.delegator_addr}/validators/${a.validator_addr}?${S.renderURLSearchParams(a,["delegator_addr","validator_addr"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static HistoricalInfo(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/historical_info/${a.height}?${S.renderURLSearchParams(a,["height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Pool(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/pool?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/cosmos/staking/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6519:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u};Object.defineProperty(e,"__esModule",{value:!0}),e.Service=e.BroadcastMode=e.OrderBy=void 0;const S=k(h(1704));var a,t;(t=e.OrderBy||(e.OrderBy={})).ORDER_BY_UNSPECIFIED="ORDER_BY_UNSPECIFIED",t.ORDER_BY_ASC="ORDER_BY_ASC",t.ORDER_BY_DESC="ORDER_BY_DESC",(a=e.BroadcastMode||(e.BroadcastMode={})).BROADCAST_MODE_UNSPECIFIED="BROADCAST_MODE_UNSPECIFIED",a.BROADCAST_MODE_BLOCK="BROADCAST_MODE_BLOCK",a.BROADCAST_MODE_SYNC="BROADCAST_MODE_SYNC",a.BROADCAST_MODE_ASYNC="BROADCAST_MODE_ASYNC",e.Service=class{static Simulate(c,u){return S.fetchReq("/cosmos/tx/v1beta1/simulate",Object.assign(Object.assign({},u),{method:"POST",body:JSON.stringify(c,S.replacer)}))}static GetTx(c,u){return S.fetchReq(`/cosmos/tx/v1beta1/txs/${c.hash}?${S.renderURLSearchParams(c,["hash"])}`,Object.assign(Object.assign({},u),{method:"GET"}))}static BroadcastTx(c,u){return S.fetchReq("/cosmos/tx/v1beta1/txs",Object.assign(Object.assign({},u),{method:"POST",body:JSON.stringify(c,S.replacer)}))}static GetTxsEvent(c,u){return S.fetchReq(`/cosmos/tx/v1beta1/txs?${S.renderURLSearchParams(c,[])}`,Object.assign(Object.assign({},u),{method:"GET"}))}static GetBlockWithTxs(c,u){return S.fetchReq(`/cosmos/tx/v1beta1/txs/block/${c.height}?${S.renderURLSearchParams(c,["height"])}`,Object.assign(Object.assign({},u),{method:"GET"}))}}},2265:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static CurrentPlan(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/current_plan?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AppliedPlan(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/applied_plan/${a.name}?${S.renderURLSearchParams(a,["name"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedConsensusState(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/upgraded_consensus_state/${a.last_height}?${S.renderURLSearchParams(a,["last_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ModuleVersions(a,t){return S.fetchReq(`/cosmos/upgrade/v1beta1/module_versions?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1704:function(D,e){var h=this&&this.__awaiter||function(u,s,r,n){return new(r||(r=Promise))(function(o,i){function f(_){try{p(n.next(_))}catch(b){i(b)}}function d(_){try{p(n.throw(_))}catch(b){i(b)}}function p(_){var b;_.done?o(_.value):(b=_.value,b instanceof r?b:new r(function(I){I(b)})).then(f,d)}p((n=n.apply(u,s||[])).next())})},w=this&&this.__rest||function(u,s){var r={};for(var n in u)Object.prototype.hasOwnProperty.call(u,n)&&s.indexOf(n)<0&&(r[n]=u[n]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(n=Object.getOwnPropertySymbols(u);o>2],i=(3&p)<<4,d=1;break;case 1:o[f++]=O[i|p>>4],i=(15&p)<<2,d=2;break;case 2:o[f++]=O[i|p>>6],o[f++]=O[63&p],d=0}f>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),f=0)}return d&&(o[f++]=O[i],o[f++]=61,d===1&&(o[f++]=61)),n?(f&&n.push(String.fromCharCode.apply(String,o.slice(0,f))),n.join("")):String.fromCharCode.apply(String,o.slice(0,f))}e.b64Encode=S;const a="invalid encoding";function t(u){return["string","number","boolean"].some(s=>typeof u===s)}function c(u,s=""){return Object.keys(u).reduce((r,n)=>{const o=u[n],i=s?[s,n].join("."):n,f=Array.isArray(o)&&o.every(_=>t(_))&&o.length>0,d=t(o)&&!function(_){return _===!1||_===0||_===""}(o);let p={};return function(_){const b=Object.prototype.toString.call(_).slice(8,-1)==="Object";if(_===null||!b||!b)return!1;const I=Object.getPrototypeOf(_);return typeof I=="object"&&I.constructor===Object.prototype.constructor}(o)?p=c(o,i):o&&o.constructor===Uint8Array?p={[i]:S(o,0,o.length)}:(d||f)&&(p={[i]:o}),Object.assign(Object.assign({},r),p)},{})}e.b64Decode=function(u){const s=[];let r,n=0,o=0;for(let i=0;i1)break;if((f=k[f])===void 0)throw Error(a);switch(o){case 0:r=f,o=1;break;case 1:s[n++]=r<<2|(48&f)>>4,r=f,o=2;break;case 2:s[n++]=(15&r)<<4|(60&f)>>2,r=f,o=3;break;case 3:s[n++]=(3&r)<<6|f,o=0}}if(o===1)throw Error(a);return new Uint8Array(s)},e.replacer=function(u,s){return s&&s.constructor===Uint8Array?S(s,0,s.length):s},e.fetchReq=function(u,s){const r=s||{},{pathPrefix:n}=r,o=w(r,["pathPrefix"]);return fetch(n?`${n}${u}`:u,o).then(i=>i.json().then(f=>{if(!i.ok)throw f;return f}))},e.fetchStreamingRequest=function(u,s,r){return h(this,void 0,void 0,function*(){const n=r||{},{pathPrefix:o}=n,i=w(n,["pathPrefix"]),f=o?`${o}${u}`:u,d=yield fetch(f,i);if(!d.ok){const _=yield d.json(),b=_.error&&_.error.message?_.error.message:"";throw new Error(b)}if(!d.body)throw new Error("response doesnt have a body");var p;yield d.body.pipeThrough(new TextDecoderStream).pipeThrough(new TransformStream({start(_){_.buf="",_.pos=0},transform(_,b){for(b.buf===void 0&&(b.buf=""),b.pos===void 0&&(b.pos=0),b.buf+=_;b.pos{s&&s(_)},new WritableStream({write(_){p(_)}})))})},e.renderURLSearchParams=function(u,s=[]){const r=c(u);return Object.keys(r).reduce((n,o)=>{const i=r[o];return s.find(f=>f===o)?n:Array.isArray(i)?[...n,...i.map(f=>[o,f.toString()])]:n=[...n,[o,i.toString()]]},[]).map(n=>new URLSearchParams({[n[0]]:n[1]}).toString()).join("&")}},187:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static IncentivizedPackets(a,t){return S.fetchReq(`/ibc/apps/fee/v1/incentivized_packets?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static IncentivizedPacket(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/incentivized_packet?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static IncentivizedPacketsForChannel(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/incentivized_packets?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalRecvFees(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_recv_fees?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalAckFees(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_ack_fees?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static TotalTimeoutFees(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a["packet_id.channel_id"]}/ports/${a["packet_id.port_id"]}/sequences/${a["packet_id.sequence"]}/total_timeout_fees?${S.renderURLSearchParams(a,["packet_id.channel_id","packet_id.port_id","packet_id.sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Payee(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/payee?${S.renderURLSearchParams(a,["channel_id","relayer"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CounterpartyPayee(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/relayers/${a.relayer}/counterparty_payee?${S.renderURLSearchParams(a,["channel_id","relayer"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FeeEnabledChannels(a,t){return S.fetchReq(`/ibc/apps/fee/v1/fee_enabled?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static FeeEnabledChannel(a,t){return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/fee_enabled?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},2847:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static InterchainAccount(a,t){return S.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/owners/${a.owner}/connections/${a.connection_id}?${S.renderURLSearchParams(a,["owner","connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1154:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/ibc/apps/interchain_accounts/host/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},1692:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/ibc/apps/router/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},4921:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static DenomTrace(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/denom_traces/${a.hash}?${S.renderURLSearchParams(a,["hash"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomTraces(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/denom_traces?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Params(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static DenomHash(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/denom_hashes/${a.trace}?${S.renderURLSearchParams(a,["trace"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static EscrowAddress(a,t){return S.fetchReq(`/ibc/apps/transfer/v1/channels/${a.channel_id}/ports/${a.port_id}/escrow_address?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6409:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Channel(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Channels(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionChannels(a,t){return S.fetchReq(`/ibc/core/channel/v1/connections/${a.connection}/channels?${S.renderURLSearchParams(a,["connection"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ChannelClientState(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/client_state?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ChannelConsensusState(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${S.renderURLSearchParams(a,["channel_id","port_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketCommitment(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.sequence}?${S.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketCommitments(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketReceipt(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_receipts/${a.sequence}?${S.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketAcknowledgement(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acks/${a.sequence}?${S.renderURLSearchParams(a,["channel_id","port_id","sequence"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static PacketAcknowledgements(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_acknowledgements?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnreceivedPackets(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_commitment_sequences}/unreceived_packets?${S.renderURLSearchParams(a,["channel_id","port_id","packet_commitment_sequences"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UnreceivedAcks(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/packet_commitments/${a.packet_ack_sequences}/unreceived_acks?${S.renderURLSearchParams(a,["channel_id","port_id","packet_ack_sequences"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static NextSequenceReceive(a,t){return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/next_sequence?${S.renderURLSearchParams(a,["channel_id","port_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},301:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static ClientState(a,t){return S.fetchReq(`/ibc/core/client/v1/client_states/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientStates(a,t){return S.fetchReq(`/ibc/core/client/v1/client_states?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusState(a,t){return S.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/revision/${a.revision_number}/height/${a.revision_height}?${S.renderURLSearchParams(a,["client_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusStates(a,t){return S.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConsensusStateHeights(a,t){return S.fetchReq(`/ibc/core/client/v1/consensus_states/${a.client_id}/heights?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientStatus(a,t){return S.fetchReq(`/ibc/core/client/v1/client_status/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientParams(a,t){return S.fetchReq(`/ibc/client/v1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedClientState(a,t){return S.fetchReq(`/ibc/core/client/v1/upgraded_client_states?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static UpgradedConsensusState(a,t){return S.fetchReq(`/ibc/core/client/v1/upgraded_consensus_states?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5258:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Connection(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}?${S.renderURLSearchParams(a,["connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Connections(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ClientConnections(a,t){return S.fetchReq(`/ibc/core/connection/v1/client_connections/${a.client_id}?${S.renderURLSearchParams(a,["client_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionClientState(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/client_state?${S.renderURLSearchParams(a,["connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ConnectionConsensusState(a,t){return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${S.renderURLSearchParams(a,["connection_id","revision_number","revision_height"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},5250:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static ContractInfo(a,t){return S.fetchReq(`/compute/v1beta1/info/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ContractsByCodeId(a,t){return S.fetchReq(`/compute/v1beta1/contracts/${a.code_id}?${S.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static QuerySecretContract(a,t){return S.fetchReq(`/compute/v1beta1/query/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Code(a,t){return S.fetchReq(`/compute/v1beta1/code/${a.code_id}?${S.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static Codes(a,t){return S.fetchReq(`/compute/v1beta1/codes?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CodeHashByContractAddress(a,t){return S.fetchReq(`/compute/v1beta1/code_hash/by_contract_address/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static CodeHashByCodeId(a,t){return S.fetchReq(`/compute/v1beta1/code_hash/by_code_id/${a.code_id}?${S.renderURLSearchParams(a,["code_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static LabelByAddress(a,t){return S.fetchReq(`/compute/v1beta1/label/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static AddressByLabel(a,t){return S.fetchReq(`/compute/v1beta1/contract_address/${a.label}?${S.renderURLSearchParams(a,["label"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static ContractHistory(a,t){return S.fetchReq(`/compute/v1beta1/contract_history/${a.contract_address}?${S.renderURLSearchParams(a,["contract_address"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},71:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static Params(a,t){return S.fetchReq(`/emergencybutton/v1beta1/params?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},9743:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static InterchainAccountFromAddress(a,t){return S.fetchReq(`/mauth/interchain_account/owner/${a.owner}/connection/${a.connection_id}?${S.renderURLSearchParams(a,["owner","connection_id"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},6402:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t};Object.defineProperty(e,"__esModule",{value:!0}),e.Query=void 0;const S=k(h(1704));e.Query=class{static TxKey(a,t){return S.fetchReq(`/registration/v1beta1/tx-key?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static RegistrationKey(a,t){return S.fetchReq(`/registration/v1beta1/registration-key?${S.renderURLSearchParams(a,[])}`,Object.assign(Object.assign({},t),{method:"GET"}))}static EncryptedSeed(a,t){return S.fetchReq(`/registration/v1beta1/encrypted-seed/${a.pub_key}?${S.renderURLSearchParams(a,["pub_key"])}`,Object.assign(Object.assign({},t),{method:"GET"}))}}},3607:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(t,c,u,s){s===void 0&&(s=u),Object.defineProperty(t,s,{enumerable:!0,get:function(){return c[u]}})}:function(t,c,u,s){s===void 0&&(s=u),t[s]=c[u]}),O=this&&this.__exportStar||function(t,c){for(var u in t)u==="default"||Object.prototype.hasOwnProperty.call(c,u)||w(c,t,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgExecuteContractResponse=e.MsgInstantiateContractResponse=e.MsgStoreCodeResponse=e.MetaMaskWallet=e.Wallet=void 0,typeof BigInt>"u"&&(h.g.BigInt=h(4736)),O(h(8972),e),O(h(8136),e),O(h(9150),e),O(h(1972),e),O(h(3745),e),O(h(8593),e);var k=h(1049);Object.defineProperty(e,"Wallet",{enumerable:!0,get:function(){return k.Wallet}});var S=h(1444);Object.defineProperty(e,"MetaMaskWallet",{enumerable:!0,get:function(){return S.MetaMaskWallet}}),O(h(8471),e),O(h(2412),e),O(h(7061),e);var a=h(2896);Object.defineProperty(e,"MsgStoreCodeResponse",{enumerable:!0,get:function(){return a.MsgStoreCodeResponse}}),Object.defineProperty(e,"MsgInstantiateContractResponse",{enumerable:!0,get:function(){return a.MsgInstantiateContractResponse}}),Object.defineProperty(e,"MsgExecuteContractResponse",{enumerable:!0,get:function(){return a.MsgExecuteContractResponse}})},6578:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(P,v,m,E){E===void 0&&(E=m),Object.defineProperty(P,E,{enumerable:!0,get:function(){return v[m]}})}:function(P,v,m,E){E===void 0&&(E=m),P[E]=v[m]}),O=this&&this.__setModuleDefault||(Object.create?function(P,v){Object.defineProperty(P,"default",{enumerable:!0,value:v})}:function(P,v){P.default=v}),k=this&&this.__importStar||function(P){if(P&&P.__esModule)return P;var v={};if(P!=null)for(var m in P)m!=="default"&&Object.prototype.hasOwnProperty.call(P,m)&&w(v,P,m);return O(v,P),v},S=this&&this.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(e,"__esModule",{value:!0}),e.CompressedNonExistenceProof=e.CompressedExistenceProof=e.CompressedBatchEntry=e.CompressedBatchProof=e.BatchEntry=e.BatchProof=e.InnerSpec=e.ProofSpec=e.InnerOp=e.LeafOp=e.CommitmentProof=e.NonExistenceProof=e.ExistenceProof=e.lengthOpToJSON=e.lengthOpFromJSON=e.LengthOp=e.hashOpToJSON=e.hashOpFromJSON=e.HashOp=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));var c,u;function s(P){switch(P){case 0:case"NO_HASH":return c.NO_HASH;case 1:case"SHA256":return c.SHA256;case 2:case"SHA512":return c.SHA512;case 3:case"KECCAK":return c.KECCAK;case 4:case"RIPEMD160":return c.RIPEMD160;case 5:case"BITCOIN":return c.BITCOIN;default:return c.UNRECOGNIZED}}function r(P){switch(P){case c.NO_HASH:return"NO_HASH";case c.SHA256:return"SHA256";case c.SHA512:return"SHA512";case c.KECCAK:return"KECCAK";case c.RIPEMD160:return"RIPEMD160";case c.BITCOIN:return"BITCOIN";default:return"UNKNOWN"}}function n(P){switch(P){case 0:case"NO_PREFIX":return u.NO_PREFIX;case 1:case"VAR_PROTO":return u.VAR_PROTO;case 2:case"VAR_RLP":return u.VAR_RLP;case 3:case"FIXED32_BIG":return u.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return u.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return u.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return u.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return u.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return u.REQUIRE_64_BYTES;default:return u.UNRECOGNIZED}}function o(P){switch(P){case u.NO_PREFIX:return"NO_PREFIX";case u.VAR_PROTO:return"VAR_PROTO";case u.VAR_RLP:return"VAR_RLP";case u.FIXED32_BIG:return"FIXED32_BIG";case u.FIXED32_LITTLE:return"FIXED32_LITTLE";case u.FIXED64_BIG:return"FIXED64_BIG";case u.FIXED64_LITTLE:return"FIXED64_LITTLE";case u.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case u.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";default:return"UNKNOWN"}}function i(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function f(){return{key:new Uint8Array,left:void 0,right:void 0}}function d(){return{hash:0,prehash_key:0,prehash_value:0,length:0,prefix:new Uint8Array}}function p(){return{hash:0,prefix:new Uint8Array,suffix:new Uint8Array}}function _(){return{child_order:[],child_size:0,min_prefix_length:0,max_prefix_length:0,empty_child:new Uint8Array,hash:0}}function b(){return{key:new Uint8Array,value:new Uint8Array,leaf:void 0,path:[]}}function I(){return{key:new Uint8Array,left:void 0,right:void 0}}e.protobufPackage="ics23",function(P){P[P.NO_HASH=0]="NO_HASH",P[P.SHA256=1]="SHA256",P[P.SHA512=2]="SHA512",P[P.KECCAK=3]="KECCAK",P[P.RIPEMD160=4]="RIPEMD160",P[P.BITCOIN=5]="BITCOIN",P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=e.HashOp||(e.HashOp={})),e.hashOpFromJSON=s,e.hashOpToJSON=r,function(P){P[P.NO_PREFIX=0]="NO_PREFIX",P[P.VAR_PROTO=1]="VAR_PROTO",P[P.VAR_RLP=2]="VAR_RLP",P[P.FIXED32_BIG=3]="FIXED32_BIG",P[P.FIXED32_LITTLE=4]="FIXED32_LITTLE",P[P.FIXED64_BIG=5]="FIXED64_BIG",P[P.FIXED64_LITTLE=6]="FIXED64_LITTLE",P[P.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",P[P.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",P[P.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.LengthOp||(e.LengthOp={})),e.lengthOpFromJSON=n,e.lengthOpToJSON=o,e.ExistenceProof={encode(P,v=t.Writer.create()){P.key.length!==0&&v.uint32(10).bytes(P.key),P.value.length!==0&&v.uint32(18).bytes(P.value),P.leaf!==void 0&&e.LeafOp.encode(P.leaf,v.uint32(26).fork()).ldelim();for(const m of P.path)e.InnerOp.encode(m,v.uint32(34).fork()).ldelim();return v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=i();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.value=m.bytes();break;case 3:B.leaf=e.LeafOp.decode(m,m.uint32());break;case 4:B.path.push(e.InnerOp.decode(m,m.uint32()));break;default:m.skipType(7&T)}}return B},fromJSON:P=>({key:x(P.key)?M(P.key):new Uint8Array,value:x(P.value)?M(P.value):new Uint8Array,leaf:x(P.leaf)?e.LeafOp.fromJSON(P.leaf):void 0,path:Array.isArray(P==null?void 0:P.path)?P.path.map(v=>e.InnerOp.fromJSON(v)):[]}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.value!==void 0&&(v.value=C(P.value!==void 0?P.value:new Uint8Array)),P.leaf!==void 0&&(v.leaf=P.leaf?e.LeafOp.toJSON(P.leaf):void 0),P.path?v.path=P.path.map(m=>m?e.InnerOp.toJSON(m):void 0):v.path=[],v},fromPartial(P){var v,m,E;const B=i();return B.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,B.value=(m=P.value)!==null&&m!==void 0?m:new Uint8Array,B.leaf=P.leaf!==void 0&&P.leaf!==null?e.LeafOp.fromPartial(P.leaf):void 0,B.path=((E=P.path)===null||E===void 0?void 0:E.map(T=>e.InnerOp.fromPartial(T)))||[],B}},e.NonExistenceProof={encode:(P,v=t.Writer.create())=>(P.key.length!==0&&v.uint32(10).bytes(P.key),P.left!==void 0&&e.ExistenceProof.encode(P.left,v.uint32(18).fork()).ldelim(),P.right!==void 0&&e.ExistenceProof.encode(P.right,v.uint32(26).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=f();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.left=e.ExistenceProof.decode(m,m.uint32());break;case 3:B.right=e.ExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({key:x(P.key)?M(P.key):new Uint8Array,left:x(P.left)?e.ExistenceProof.fromJSON(P.left):void 0,right:x(P.right)?e.ExistenceProof.fromJSON(P.right):void 0}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.left!==void 0&&(v.left=P.left?e.ExistenceProof.toJSON(P.left):void 0),P.right!==void 0&&(v.right=P.right?e.ExistenceProof.toJSON(P.right):void 0),v},fromPartial(P){var v;const m=f();return m.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,m.left=P.left!==void 0&&P.left!==null?e.ExistenceProof.fromPartial(P.left):void 0,m.right=P.right!==void 0&&P.right!==null?e.ExistenceProof.fromPartial(P.right):void 0,m}},e.CommitmentProof={encode:(P,v=t.Writer.create())=>(P.exist!==void 0&&e.ExistenceProof.encode(P.exist,v.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.NonExistenceProof.encode(P.nonexist,v.uint32(18).fork()).ldelim(),P.batch!==void 0&&e.BatchProof.encode(P.batch,v.uint32(26).fork()).ldelim(),P.compressed!==void 0&&e.CompressedBatchProof.encode(P.compressed,v.uint32(34).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0};for(;m.pos>>3){case 1:B.exist=e.ExistenceProof.decode(m,m.uint32());break;case 2:B.nonexist=e.NonExistenceProof.decode(m,m.uint32());break;case 3:B.batch=e.BatchProof.decode(m,m.uint32());break;case 4:B.compressed=e.CompressedBatchProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({exist:x(P.exist)?e.ExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.NonExistenceProof.fromJSON(P.nonexist):void 0,batch:x(P.batch)?e.BatchProof.fromJSON(P.batch):void 0,compressed:x(P.compressed)?e.CompressedBatchProof.fromJSON(P.compressed):void 0}),toJSON(P){const v={};return P.exist!==void 0&&(v.exist=P.exist?e.ExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(v.nonexist=P.nonexist?e.NonExistenceProof.toJSON(P.nonexist):void 0),P.batch!==void 0&&(v.batch=P.batch?e.BatchProof.toJSON(P.batch):void 0),P.compressed!==void 0&&(v.compressed=P.compressed?e.CompressedBatchProof.toJSON(P.compressed):void 0),v},fromPartial(P){const v={exist:void 0,nonexist:void 0,batch:void 0,compressed:void 0};return v.exist=P.exist!==void 0&&P.exist!==null?e.ExistenceProof.fromPartial(P.exist):void 0,v.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.NonExistenceProof.fromPartial(P.nonexist):void 0,v.batch=P.batch!==void 0&&P.batch!==null?e.BatchProof.fromPartial(P.batch):void 0,v.compressed=P.compressed!==void 0&&P.compressed!==null?e.CompressedBatchProof.fromPartial(P.compressed):void 0,v}},e.LeafOp={encode:(P,v=t.Writer.create())=>(P.hash!==0&&v.uint32(8).int32(P.hash),P.prehash_key!==0&&v.uint32(16).int32(P.prehash_key),P.prehash_value!==0&&v.uint32(24).int32(P.prehash_value),P.length!==0&&v.uint32(32).int32(P.length),P.prefix.length!==0&&v.uint32(42).bytes(P.prefix),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=d();for(;m.pos>>3){case 1:B.hash=m.int32();break;case 2:B.prehash_key=m.int32();break;case 3:B.prehash_value=m.int32();break;case 4:B.length=m.int32();break;case 5:B.prefix=m.bytes();break;default:m.skipType(7&T)}}return B},fromJSON:P=>({hash:x(P.hash)?s(P.hash):0,prehash_key:x(P.prehash_key)?s(P.prehash_key):0,prehash_value:x(P.prehash_value)?s(P.prehash_value):0,length:x(P.length)?n(P.length):0,prefix:x(P.prefix)?M(P.prefix):new Uint8Array}),toJSON(P){const v={};return P.hash!==void 0&&(v.hash=r(P.hash)),P.prehash_key!==void 0&&(v.prehash_key=r(P.prehash_key)),P.prehash_value!==void 0&&(v.prehash_value=r(P.prehash_value)),P.length!==void 0&&(v.length=o(P.length)),P.prefix!==void 0&&(v.prefix=C(P.prefix!==void 0?P.prefix:new Uint8Array)),v},fromPartial(P){var v,m,E,B,T;const q=d();return q.hash=(v=P.hash)!==null&&v!==void 0?v:0,q.prehash_key=(m=P.prehash_key)!==null&&m!==void 0?m:0,q.prehash_value=(E=P.prehash_value)!==null&&E!==void 0?E:0,q.length=(B=P.length)!==null&&B!==void 0?B:0,q.prefix=(T=P.prefix)!==null&&T!==void 0?T:new Uint8Array,q}},e.InnerOp={encode:(P,v=t.Writer.create())=>(P.hash!==0&&v.uint32(8).int32(P.hash),P.prefix.length!==0&&v.uint32(18).bytes(P.prefix),P.suffix.length!==0&&v.uint32(26).bytes(P.suffix),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=p();for(;m.pos>>3){case 1:B.hash=m.int32();break;case 2:B.prefix=m.bytes();break;case 3:B.suffix=m.bytes();break;default:m.skipType(7&T)}}return B},fromJSON:P=>({hash:x(P.hash)?s(P.hash):0,prefix:x(P.prefix)?M(P.prefix):new Uint8Array,suffix:x(P.suffix)?M(P.suffix):new Uint8Array}),toJSON(P){const v={};return P.hash!==void 0&&(v.hash=r(P.hash)),P.prefix!==void 0&&(v.prefix=C(P.prefix!==void 0?P.prefix:new Uint8Array)),P.suffix!==void 0&&(v.suffix=C(P.suffix!==void 0?P.suffix:new Uint8Array)),v},fromPartial(P){var v,m,E;const B=p();return B.hash=(v=P.hash)!==null&&v!==void 0?v:0,B.prefix=(m=P.prefix)!==null&&m!==void 0?m:new Uint8Array,B.suffix=(E=P.suffix)!==null&&E!==void 0?E:new Uint8Array,B}},e.ProofSpec={encode:(P,v=t.Writer.create())=>(P.leaf_spec!==void 0&&e.LeafOp.encode(P.leaf_spec,v.uint32(10).fork()).ldelim(),P.inner_spec!==void 0&&e.InnerSpec.encode(P.inner_spec,v.uint32(18).fork()).ldelim(),P.max_depth!==0&&v.uint32(24).int32(P.max_depth),P.min_depth!==0&&v.uint32(32).int32(P.min_depth),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={leaf_spec:void 0,inner_spec:void 0,max_depth:0,min_depth:0};for(;m.pos>>3){case 1:B.leaf_spec=e.LeafOp.decode(m,m.uint32());break;case 2:B.inner_spec=e.InnerSpec.decode(m,m.uint32());break;case 3:B.max_depth=m.int32();break;case 4:B.min_depth=m.int32();break;default:m.skipType(7&T)}}return B},fromJSON:P=>({leaf_spec:x(P.leaf_spec)?e.LeafOp.fromJSON(P.leaf_spec):void 0,inner_spec:x(P.inner_spec)?e.InnerSpec.fromJSON(P.inner_spec):void 0,max_depth:x(P.max_depth)?Number(P.max_depth):0,min_depth:x(P.min_depth)?Number(P.min_depth):0}),toJSON(P){const v={};return P.leaf_spec!==void 0&&(v.leaf_spec=P.leaf_spec?e.LeafOp.toJSON(P.leaf_spec):void 0),P.inner_spec!==void 0&&(v.inner_spec=P.inner_spec?e.InnerSpec.toJSON(P.inner_spec):void 0),P.max_depth!==void 0&&(v.max_depth=Math.round(P.max_depth)),P.min_depth!==void 0&&(v.min_depth=Math.round(P.min_depth)),v},fromPartial(P){var v,m;const E={leaf_spec:void 0,inner_spec:void 0,max_depth:0,min_depth:0};return E.leaf_spec=P.leaf_spec!==void 0&&P.leaf_spec!==null?e.LeafOp.fromPartial(P.leaf_spec):void 0,E.inner_spec=P.inner_spec!==void 0&&P.inner_spec!==null?e.InnerSpec.fromPartial(P.inner_spec):void 0,E.max_depth=(v=P.max_depth)!==null&&v!==void 0?v:0,E.min_depth=(m=P.min_depth)!==null&&m!==void 0?m:0,E}},e.InnerSpec={encode(P,v=t.Writer.create()){v.uint32(10).fork();for(const m of P.child_order)v.int32(m);return v.ldelim(),P.child_size!==0&&v.uint32(16).int32(P.child_size),P.min_prefix_length!==0&&v.uint32(24).int32(P.min_prefix_length),P.max_prefix_length!==0&&v.uint32(32).int32(P.max_prefix_length),P.empty_child.length!==0&&v.uint32(42).bytes(P.empty_child),P.hash!==0&&v.uint32(48).int32(P.hash),v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=_();for(;m.pos>>3){case 1:if((7&T)==2){const q=m.uint32()+m.pos;for(;m.pos({child_order:Array.isArray(P==null?void 0:P.child_order)?P.child_order.map(v=>Number(v)):[],child_size:x(P.child_size)?Number(P.child_size):0,min_prefix_length:x(P.min_prefix_length)?Number(P.min_prefix_length):0,max_prefix_length:x(P.max_prefix_length)?Number(P.max_prefix_length):0,empty_child:x(P.empty_child)?M(P.empty_child):new Uint8Array,hash:x(P.hash)?s(P.hash):0}),toJSON(P){const v={};return P.child_order?v.child_order=P.child_order.map(m=>Math.round(m)):v.child_order=[],P.child_size!==void 0&&(v.child_size=Math.round(P.child_size)),P.min_prefix_length!==void 0&&(v.min_prefix_length=Math.round(P.min_prefix_length)),P.max_prefix_length!==void 0&&(v.max_prefix_length=Math.round(P.max_prefix_length)),P.empty_child!==void 0&&(v.empty_child=C(P.empty_child!==void 0?P.empty_child:new Uint8Array)),P.hash!==void 0&&(v.hash=r(P.hash)),v},fromPartial(P){var v,m,E,B,T,q;const te=_();return te.child_order=((v=P.child_order)===null||v===void 0?void 0:v.map(re=>re))||[],te.child_size=(m=P.child_size)!==null&&m!==void 0?m:0,te.min_prefix_length=(E=P.min_prefix_length)!==null&&E!==void 0?E:0,te.max_prefix_length=(B=P.max_prefix_length)!==null&&B!==void 0?B:0,te.empty_child=(T=P.empty_child)!==null&&T!==void 0?T:new Uint8Array,te.hash=(q=P.hash)!==null&&q!==void 0?q:0,te}},e.BatchProof={encode(P,v=t.Writer.create()){for(const m of P.entries)e.BatchEntry.encode(m,v.uint32(10).fork()).ldelim();return v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={entries:[]};for(;m.pos>>3==1?B.entries.push(e.BatchEntry.decode(m,m.uint32())):m.skipType(7&T)}return B},fromJSON:P=>({entries:Array.isArray(P==null?void 0:P.entries)?P.entries.map(v=>e.BatchEntry.fromJSON(v)):[]}),toJSON(P){const v={};return P.entries?v.entries=P.entries.map(m=>m?e.BatchEntry.toJSON(m):void 0):v.entries=[],v},fromPartial(P){var v;const m={entries:[]};return m.entries=((v=P.entries)===null||v===void 0?void 0:v.map(E=>e.BatchEntry.fromPartial(E)))||[],m}},e.BatchEntry={encode:(P,v=t.Writer.create())=>(P.exist!==void 0&&e.ExistenceProof.encode(P.exist,v.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.NonExistenceProof.encode(P.nonexist,v.uint32(18).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={exist:void 0,nonexist:void 0};for(;m.pos>>3){case 1:B.exist=e.ExistenceProof.decode(m,m.uint32());break;case 2:B.nonexist=e.NonExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({exist:x(P.exist)?e.ExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.NonExistenceProof.fromJSON(P.nonexist):void 0}),toJSON(P){const v={};return P.exist!==void 0&&(v.exist=P.exist?e.ExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(v.nonexist=P.nonexist?e.NonExistenceProof.toJSON(P.nonexist):void 0),v},fromPartial(P){const v={exist:void 0,nonexist:void 0};return v.exist=P.exist!==void 0&&P.exist!==null?e.ExistenceProof.fromPartial(P.exist):void 0,v.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.NonExistenceProof.fromPartial(P.nonexist):void 0,v}},e.CompressedBatchProof={encode(P,v=t.Writer.create()){for(const m of P.entries)e.CompressedBatchEntry.encode(m,v.uint32(10).fork()).ldelim();for(const m of P.lookup_inners)e.InnerOp.encode(m,v.uint32(18).fork()).ldelim();return v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={entries:[],lookup_inners:[]};for(;m.pos>>3){case 1:B.entries.push(e.CompressedBatchEntry.decode(m,m.uint32()));break;case 2:B.lookup_inners.push(e.InnerOp.decode(m,m.uint32()));break;default:m.skipType(7&T)}}return B},fromJSON:P=>({entries:Array.isArray(P==null?void 0:P.entries)?P.entries.map(v=>e.CompressedBatchEntry.fromJSON(v)):[],lookup_inners:Array.isArray(P==null?void 0:P.lookup_inners)?P.lookup_inners.map(v=>e.InnerOp.fromJSON(v)):[]}),toJSON(P){const v={};return P.entries?v.entries=P.entries.map(m=>m?e.CompressedBatchEntry.toJSON(m):void 0):v.entries=[],P.lookup_inners?v.lookup_inners=P.lookup_inners.map(m=>m?e.InnerOp.toJSON(m):void 0):v.lookup_inners=[],v},fromPartial(P){var v,m;const E={entries:[],lookup_inners:[]};return E.entries=((v=P.entries)===null||v===void 0?void 0:v.map(B=>e.CompressedBatchEntry.fromPartial(B)))||[],E.lookup_inners=((m=P.lookup_inners)===null||m===void 0?void 0:m.map(B=>e.InnerOp.fromPartial(B)))||[],E}},e.CompressedBatchEntry={encode:(P,v=t.Writer.create())=>(P.exist!==void 0&&e.CompressedExistenceProof.encode(P.exist,v.uint32(10).fork()).ldelim(),P.nonexist!==void 0&&e.CompressedNonExistenceProof.encode(P.nonexist,v.uint32(18).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B={exist:void 0,nonexist:void 0};for(;m.pos>>3){case 1:B.exist=e.CompressedExistenceProof.decode(m,m.uint32());break;case 2:B.nonexist=e.CompressedNonExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({exist:x(P.exist)?e.CompressedExistenceProof.fromJSON(P.exist):void 0,nonexist:x(P.nonexist)?e.CompressedNonExistenceProof.fromJSON(P.nonexist):void 0}),toJSON(P){const v={};return P.exist!==void 0&&(v.exist=P.exist?e.CompressedExistenceProof.toJSON(P.exist):void 0),P.nonexist!==void 0&&(v.nonexist=P.nonexist?e.CompressedNonExistenceProof.toJSON(P.nonexist):void 0),v},fromPartial(P){const v={exist:void 0,nonexist:void 0};return v.exist=P.exist!==void 0&&P.exist!==null?e.CompressedExistenceProof.fromPartial(P.exist):void 0,v.nonexist=P.nonexist!==void 0&&P.nonexist!==null?e.CompressedNonExistenceProof.fromPartial(P.nonexist):void 0,v}},e.CompressedExistenceProof={encode(P,v=t.Writer.create()){P.key.length!==0&&v.uint32(10).bytes(P.key),P.value.length!==0&&v.uint32(18).bytes(P.value),P.leaf!==void 0&&e.LeafOp.encode(P.leaf,v.uint32(26).fork()).ldelim(),v.uint32(34).fork();for(const m of P.path)v.int32(m);return v.ldelim(),v},decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=b();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.value=m.bytes();break;case 3:B.leaf=e.LeafOp.decode(m,m.uint32());break;case 4:if((7&T)==2){const q=m.uint32()+m.pos;for(;m.pos({key:x(P.key)?M(P.key):new Uint8Array,value:x(P.value)?M(P.value):new Uint8Array,leaf:x(P.leaf)?e.LeafOp.fromJSON(P.leaf):void 0,path:Array.isArray(P==null?void 0:P.path)?P.path.map(v=>Number(v)):[]}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.value!==void 0&&(v.value=C(P.value!==void 0?P.value:new Uint8Array)),P.leaf!==void 0&&(v.leaf=P.leaf?e.LeafOp.toJSON(P.leaf):void 0),P.path?v.path=P.path.map(m=>Math.round(m)):v.path=[],v},fromPartial(P){var v,m,E;const B=b();return B.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,B.value=(m=P.value)!==null&&m!==void 0?m:new Uint8Array,B.leaf=P.leaf!==void 0&&P.leaf!==null?e.LeafOp.fromPartial(P.leaf):void 0,B.path=((E=P.path)===null||E===void 0?void 0:E.map(T=>T))||[],B}},e.CompressedNonExistenceProof={encode:(P,v=t.Writer.create())=>(P.key.length!==0&&v.uint32(10).bytes(P.key),P.left!==void 0&&e.CompressedExistenceProof.encode(P.left,v.uint32(18).fork()).ldelim(),P.right!==void 0&&e.CompressedExistenceProof.encode(P.right,v.uint32(26).fork()).ldelim(),v),decode(P,v){const m=P instanceof t.Reader?P:new t.Reader(P);let E=v===void 0?m.len:m.pos+v;const B=I();for(;m.pos>>3){case 1:B.key=m.bytes();break;case 2:B.left=e.CompressedExistenceProof.decode(m,m.uint32());break;case 3:B.right=e.CompressedExistenceProof.decode(m,m.uint32());break;default:m.skipType(7&T)}}return B},fromJSON:P=>({key:x(P.key)?M(P.key):new Uint8Array,left:x(P.left)?e.CompressedExistenceProof.fromJSON(P.left):void 0,right:x(P.right)?e.CompressedExistenceProof.fromJSON(P.right):void 0}),toJSON(P){const v={};return P.key!==void 0&&(v.key=C(P.key!==void 0?P.key:new Uint8Array)),P.left!==void 0&&(v.left=P.left?e.CompressedExistenceProof.toJSON(P.left):void 0),P.right!==void 0&&(v.right=P.right?e.CompressedExistenceProof.toJSON(P.right):void 0),v},fromPartial(P){var v;const m=I();return m.key=(v=P.key)!==null&&v!==void 0?v:new Uint8Array,m.left=P.left!==void 0&&P.left!==null?e.CompressedExistenceProof.fromPartial(P.left):void 0,m.right=P.right!==void 0&&P.right!==null?e.CompressedExistenceProof.fromPartial(P.right):void 0,m}};var l=(()=>{if(l!==void 0)return l;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const j=l.atob||(P=>l.Buffer.from(P,"base64").toString("binary"));function M(P){const v=j(P),m=new Uint8Array(v.length);for(let E=0;El.Buffer.from(P,"binary").toString("base64"));function C(P){const v=[];for(const m of P)v.push(String.fromCharCode(m));return N(v.join(""))}function x(P){return P!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9094:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(i,f,d,p){p===void 0&&(p=d),Object.defineProperty(i,p,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,p){p===void 0&&(p=d),i[p]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.GrantAuthorization=e.Grant=e.GenericAuthorization=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191),u=h(5090);function s(i){return{seconds:Math.trunc(i.getTime()/1e3).toString(),nanos:i.getTime()%1e3*1e6}}function r(i){let f=1e3*Number(i.seconds);return f+=i.nanos/1e6,new Date(f)}function n(i){return i instanceof Date?s(i):typeof i=="string"?s(new Date(i)):u.Timestamp.fromJSON(i)}function o(i){return i!=null}e.protobufPackage="cosmos.authz.v1beta1",e.GenericAuthorization={encode:(i,f=t.Writer.create())=>(i.msg!==""&&f.uint32(10).string(i.msg),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={msg:""};for(;d.pos>>3==1?_.msg=d.string():d.skipType(7&b)}return _},fromJSON:i=>({msg:o(i.msg)?String(i.msg):""}),toJSON(i){const f={};return i.msg!==void 0&&(f.msg=i.msg),f},fromPartial(i){var f;const d={msg:""};return d.msg=(f=i.msg)!==null&&f!==void 0?f:"",d}},e.Grant={encode:(i,f=t.Writer.create())=>(i.authorization!==void 0&&c.Any.encode(i.authorization,f.uint32(10).fork()).ldelim(),i.expiration!==void 0&&u.Timestamp.encode(i.expiration,f.uint32(18).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={authorization:void 0,expiration:void 0};for(;d.pos>>3){case 1:_.authorization=c.Any.decode(d,d.uint32());break;case 2:_.expiration=u.Timestamp.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({authorization:o(i.authorization)?c.Any.fromJSON(i.authorization):void 0,expiration:o(i.expiration)?n(i.expiration):void 0}),toJSON(i){const f={};return i.authorization!==void 0&&(f.authorization=i.authorization?c.Any.toJSON(i.authorization):void 0),i.expiration!==void 0&&(f.expiration=r(i.expiration).toISOString()),f},fromPartial(i){const f={authorization:void 0,expiration:void 0};return f.authorization=i.authorization!==void 0&&i.authorization!==null?c.Any.fromPartial(i.authorization):void 0,f.expiration=i.expiration!==void 0&&i.expiration!==null?u.Timestamp.fromPartial(i.expiration):void 0,f}},e.GrantAuthorization={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.authorization!==void 0&&c.Any.encode(i.authorization,f.uint32(26).fork()).ldelim(),i.expiration!==void 0&&u.Timestamp.encode(i.expiration,f.uint32(34).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={granter:"",grantee:"",authorization:void 0,expiration:void 0};for(;d.pos>>3){case 1:_.granter=d.string();break;case 2:_.grantee=d.string();break;case 3:_.authorization=c.Any.decode(d,d.uint32());break;case 4:_.expiration=u.Timestamp.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",authorization:o(i.authorization)?c.Any.fromJSON(i.authorization):void 0,expiration:o(i.expiration)?n(i.expiration):void 0}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.authorization!==void 0&&(f.authorization=i.authorization?c.Any.toJSON(i.authorization):void 0),i.expiration!==void 0&&(f.expiration=r(i.expiration).toISOString()),f},fromPartial(i){var f,d;const p={granter:"",grantee:"",authorization:void 0,expiration:void 0};return p.granter=(f=i.granter)!==null&&f!==void 0?f:"",p.grantee=(d=i.grantee)!==null&&d!==void 0?d:"",p.authorization=i.authorization!==void 0&&i.authorization!==null?c.Any.fromPartial(i.authorization):void 0,p.expiration=i.expiration!==void 0&&i.expiration!==null?u.Timestamp.fromPartial(i.expiration):void 0,p}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5635:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(i,f,d,p){p===void 0&&(p=d),Object.defineProperty(i,p,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,p){p===void 0&&(p=d),i[p]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgRevokeResponse=e.MsgRevoke=e.MsgGrantResponse=e.MsgExec=e.MsgExecResponse=e.MsgGrant=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(9094),u=h(4191);e.protobufPackage="cosmos.authz.v1beta1",e.MsgGrant={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.grant!==void 0&&c.Grant.encode(i.grant,f.uint32(26).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={granter:"",grantee:"",grant:void 0};for(;d.pos>>3){case 1:_.granter=d.string();break;case 2:_.grantee=d.string();break;case 3:_.grant=c.Grant.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",grant:o(i.grant)?c.Grant.fromJSON(i.grant):void 0}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.grant!==void 0&&(f.grant=i.grant?c.Grant.toJSON(i.grant):void 0),f},fromPartial(i){var f,d;const p={granter:"",grantee:"",grant:void 0};return p.granter=(f=i.granter)!==null&&f!==void 0?f:"",p.grantee=(d=i.grantee)!==null&&d!==void 0?d:"",p.grant=i.grant!==void 0&&i.grant!==null?c.Grant.fromPartial(i.grant):void 0,p}},e.MsgExecResponse={encode(i,f=t.Writer.create()){for(const d of i.results)f.uint32(10).bytes(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={results:[]};for(;d.pos>>3==1?_.results.push(d.bytes()):d.skipType(7&b)}return _},fromJSON:i=>({results:Array.isArray(i==null?void 0:i.results)?i.results.map(f=>function(d){const p=r(d),_=new Uint8Array(p.length);for(let b=0;bfunction(p){const _=[];for(const b of p)_.push(String.fromCharCode(b));return n(_.join(""))}(d!==void 0?d:new Uint8Array)):f.results=[],f},fromPartial(i){var f;const d={results:[]};return d.results=((f=i.results)===null||f===void 0?void 0:f.map(p=>p))||[],d}},e.MsgExec={encode(i,f=t.Writer.create()){i.grantee!==""&&f.uint32(10).string(i.grantee);for(const d of i.msgs)u.Any.encode(d,f.uint32(18).fork()).ldelim();return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={grantee:"",msgs:[]};for(;d.pos>>3){case 1:_.grantee=d.string();break;case 2:_.msgs.push(u.Any.decode(d,d.uint32()));break;default:d.skipType(7&b)}}return _},fromJSON:i=>({grantee:o(i.grantee)?String(i.grantee):"",msgs:Array.isArray(i==null?void 0:i.msgs)?i.msgs.map(f=>u.Any.fromJSON(f)):[]}),toJSON(i){const f={};return i.grantee!==void 0&&(f.grantee=i.grantee),i.msgs?f.msgs=i.msgs.map(d=>d?u.Any.toJSON(d):void 0):f.msgs=[],f},fromPartial(i){var f,d;const p={grantee:"",msgs:[]};return p.grantee=(f=i.grantee)!==null&&f!==void 0?f:"",p.msgs=((d=i.msgs)===null||d===void 0?void 0:d.map(_=>u.Any.fromPartial(_)))||[],p}},e.MsgGrantResponse={encode:(i,f=t.Writer.create())=>f,decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;for(;d.pos({}),toJSON:i=>({}),fromPartial:i=>({})},e.MsgRevoke={encode:(i,f=t.Writer.create())=>(i.granter!==""&&f.uint32(10).string(i.granter),i.grantee!==""&&f.uint32(18).string(i.grantee),i.msg_type_url!==""&&f.uint32(26).string(i.msg_type_url),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={granter:"",grantee:"",msg_type_url:""};for(;d.pos>>3){case 1:_.granter=d.string();break;case 2:_.grantee=d.string();break;case 3:_.msg_type_url=d.string();break;default:d.skipType(7&b)}}return _},fromJSON:i=>({granter:o(i.granter)?String(i.granter):"",grantee:o(i.grantee)?String(i.grantee):"",msg_type_url:o(i.msg_type_url)?String(i.msg_type_url):""}),toJSON(i){const f={};return i.granter!==void 0&&(f.granter=i.granter),i.grantee!==void 0&&(f.grantee=i.grantee),i.msg_type_url!==void 0&&(f.msg_type_url=i.msg_type_url),f},fromPartial(i){var f,d,p;const _={granter:"",grantee:"",msg_type_url:""};return _.granter=(f=i.granter)!==null&&f!==void 0?f:"",_.grantee=(d=i.grantee)!==null&&d!==void 0?d:"",_.msg_type_url=(p=i.msg_type_url)!==null&&p!==void 0?p:"",_}},e.MsgRevokeResponse={encode:(i,f=t.Writer.create())=>f,decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;for(;d.pos({}),toJSON:i=>({}),fromPartial:i=>({})},e.MsgClientImpl=class{constructor(i){this.rpc=i,this.Grant=this.Grant.bind(this),this.Exec=this.Exec.bind(this),this.Revoke=this.Revoke.bind(this)}Grant(i){const f=e.MsgGrant.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Grant",f).then(d=>e.MsgGrantResponse.decode(new t.Reader(d)))}Exec(i){const f=e.MsgExec.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Exec",f).then(d=>e.MsgExecResponse.decode(new t.Reader(d)))}Revoke(i){const f=e.MsgRevoke.encode(i).finish();return this.rpc.request("cosmos.authz.v1beta1.Msg","Revoke",f).then(d=>e.MsgRevokeResponse.decode(new t.Reader(d)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const r=s.atob||(i=>s.Buffer.from(i,"base64").toString("binary")),n=s.btoa||(i=>s.Buffer.from(i,"binary").toString("base64"));function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5939:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.SendAuthorization=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976);e.protobufPackage="cosmos.bank.v1beta1",e.SendAuthorization={encode(u,s=t.Writer.create()){for(const r of u.spend_limit)c.Coin.encode(r,s.uint32(10).fork()).ldelim();return s},decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={spend_limit:[]};for(;r.pos>>3==1?o.spend_limit.push(c.Coin.decode(r,r.uint32())):r.skipType(7&i)}return o},fromJSON:u=>({spend_limit:Array.isArray(u==null?void 0:u.spend_limit)?u.spend_limit.map(s=>c.Coin.fromJSON(s)):[]}),toJSON(u){const s={};return u.spend_limit?s.spend_limit=u.spend_limit.map(r=>r?c.Coin.toJSON(r):void 0):s.spend_limit=[],s},fromPartial(u){var s;const r={spend_limit:[]};return r.spend_limit=((s=u.spend_limit)===null||s===void 0?void 0:s.map(n=>c.Coin.fromPartial(n)))||[],r}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7725:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=e.DenomUnit=e.Supply=e.Output=e.Input=e.SendEnabled=e.Params=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976);function u(s){return s!=null}e.protobufPackage="cosmos.bank.v1beta1",e.Params={encode(s,r=t.Writer.create()){for(const n of s.send_enabled)e.SendEnabled.encode(n,r.uint32(10).fork()).ldelim();return s.default_send_enabled===!0&&r.uint32(16).bool(s.default_send_enabled),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={send_enabled:[],default_send_enabled:!1};for(;n.pos>>3){case 1:i.send_enabled.push(e.SendEnabled.decode(n,n.uint32()));break;case 2:i.default_send_enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({send_enabled:Array.isArray(s==null?void 0:s.send_enabled)?s.send_enabled.map(r=>e.SendEnabled.fromJSON(r)):[],default_send_enabled:!!u(s.default_send_enabled)&&!!s.default_send_enabled}),toJSON(s){const r={};return s.send_enabled?r.send_enabled=s.send_enabled.map(n=>n?e.SendEnabled.toJSON(n):void 0):r.send_enabled=[],s.default_send_enabled!==void 0&&(r.default_send_enabled=s.default_send_enabled),r},fromPartial(s){var r,n;const o={send_enabled:[],default_send_enabled:!1};return o.send_enabled=((r=s.send_enabled)===null||r===void 0?void 0:r.map(i=>e.SendEnabled.fromPartial(i)))||[],o.default_send_enabled=(n=s.default_send_enabled)!==null&&n!==void 0&&n,o}},e.SendEnabled={encode:(s,r=t.Writer.create())=>(s.denom!==""&&r.uint32(10).string(s.denom),s.enabled===!0&&r.uint32(16).bool(s.enabled),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={denom:"",enabled:!1};for(;n.pos>>3){case 1:i.denom=n.string();break;case 2:i.enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({denom:u(s.denom)?String(s.denom):"",enabled:!!u(s.enabled)&&!!s.enabled}),toJSON(s){const r={};return s.denom!==void 0&&(r.denom=s.denom),s.enabled!==void 0&&(r.enabled=s.enabled),r},fromPartial(s){var r,n;const o={denom:"",enabled:!1};return o.denom=(r=s.denom)!==null&&r!==void 0?r:"",o.enabled=(n=s.enabled)!==null&&n!==void 0&&n,o}},e.Input={encode(s,r=t.Writer.create()){s.address!==""&&r.uint32(10).string(s.address);for(const n of s.coins)c.Coin.encode(n,r.uint32(18).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={address:"",coins:[]};for(;n.pos>>3){case 1:i.address=n.string();break;case 2:i.coins.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&f)}}return i},fromJSON:s=>({address:u(s.address)?String(s.address):"",coins:Array.isArray(s==null?void 0:s.coins)?s.coins.map(r=>c.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.address!==void 0&&(r.address=s.address),s.coins?r.coins=s.coins.map(n=>n?c.Coin.toJSON(n):void 0):r.coins=[],r},fromPartial(s){var r,n;const o={address:"",coins:[]};return o.address=(r=s.address)!==null&&r!==void 0?r:"",o.coins=((n=s.coins)===null||n===void 0?void 0:n.map(i=>c.Coin.fromPartial(i)))||[],o}},e.Output={encode(s,r=t.Writer.create()){s.address!==""&&r.uint32(10).string(s.address);for(const n of s.coins)c.Coin.encode(n,r.uint32(18).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={address:"",coins:[]};for(;n.pos>>3){case 1:i.address=n.string();break;case 2:i.coins.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&f)}}return i},fromJSON:s=>({address:u(s.address)?String(s.address):"",coins:Array.isArray(s==null?void 0:s.coins)?s.coins.map(r=>c.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.address!==void 0&&(r.address=s.address),s.coins?r.coins=s.coins.map(n=>n?c.Coin.toJSON(n):void 0):r.coins=[],r},fromPartial(s){var r,n;const o={address:"",coins:[]};return o.address=(r=s.address)!==null&&r!==void 0?r:"",o.coins=((n=s.coins)===null||n===void 0?void 0:n.map(i=>c.Coin.fromPartial(i)))||[],o}},e.Supply={encode(s,r=t.Writer.create()){for(const n of s.total)c.Coin.encode(n,r.uint32(10).fork()).ldelim();return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={total:[]};for(;n.pos>>3==1?i.total.push(c.Coin.decode(n,n.uint32())):n.skipType(7&f)}return i},fromJSON:s=>({total:Array.isArray(s==null?void 0:s.total)?s.total.map(r=>c.Coin.fromJSON(r)):[]}),toJSON(s){const r={};return s.total?r.total=s.total.map(n=>n?c.Coin.toJSON(n):void 0):r.total=[],r},fromPartial(s){var r;const n={total:[]};return n.total=((r=s.total)===null||r===void 0?void 0:r.map(o=>c.Coin.fromPartial(o)))||[],n}},e.DenomUnit={encode(s,r=t.Writer.create()){s.denom!==""&&r.uint32(10).string(s.denom),s.exponent!==0&&r.uint32(16).uint32(s.exponent);for(const n of s.aliases)r.uint32(26).string(n);return r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={denom:"",exponent:0,aliases:[]};for(;n.pos>>3){case 1:i.denom=n.string();break;case 2:i.exponent=n.uint32();break;case 3:i.aliases.push(n.string());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({denom:u(s.denom)?String(s.denom):"",exponent:u(s.exponent)?Number(s.exponent):0,aliases:Array.isArray(s==null?void 0:s.aliases)?s.aliases.map(r=>String(r)):[]}),toJSON(s){const r={};return s.denom!==void 0&&(r.denom=s.denom),s.exponent!==void 0&&(r.exponent=Math.round(s.exponent)),s.aliases?r.aliases=s.aliases.map(n=>n):r.aliases=[],r},fromPartial(s){var r,n,o;const i={denom:"",exponent:0,aliases:[]};return i.denom=(r=s.denom)!==null&&r!==void 0?r:"",i.exponent=(n=s.exponent)!==null&&n!==void 0?n:0,i.aliases=((o=s.aliases)===null||o===void 0?void 0:o.map(f=>f))||[],i}},e.Metadata={encode(s,r=t.Writer.create()){s.description!==""&&r.uint32(10).string(s.description);for(const n of s.denom_units)e.DenomUnit.encode(n,r.uint32(18).fork()).ldelim();return s.base!==""&&r.uint32(26).string(s.base),s.display!==""&&r.uint32(34).string(s.display),s.name!==""&&r.uint32(42).string(s.name),s.symbol!==""&&r.uint32(50).string(s.symbol),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={description:"",denom_units:[],base:"",display:"",name:"",symbol:""};for(;n.pos>>3){case 1:i.description=n.string();break;case 2:i.denom_units.push(e.DenomUnit.decode(n,n.uint32()));break;case 3:i.base=n.string();break;case 4:i.display=n.string();break;case 5:i.name=n.string();break;case 6:i.symbol=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({description:u(s.description)?String(s.description):"",denom_units:Array.isArray(s==null?void 0:s.denom_units)?s.denom_units.map(r=>e.DenomUnit.fromJSON(r)):[],base:u(s.base)?String(s.base):"",display:u(s.display)?String(s.display):"",name:u(s.name)?String(s.name):"",symbol:u(s.symbol)?String(s.symbol):""}),toJSON(s){const r={};return s.description!==void 0&&(r.description=s.description),s.denom_units?r.denom_units=s.denom_units.map(n=>n?e.DenomUnit.toJSON(n):void 0):r.denom_units=[],s.base!==void 0&&(r.base=s.base),s.display!==void 0&&(r.display=s.display),s.name!==void 0&&(r.name=s.name),s.symbol!==void 0&&(r.symbol=s.symbol),r},fromPartial(s){var r,n,o,i,f,d;const p={description:"",denom_units:[],base:"",display:"",name:"",symbol:""};return p.description=(r=s.description)!==null&&r!==void 0?r:"",p.denom_units=((n=s.denom_units)===null||n===void 0?void 0:n.map(_=>e.DenomUnit.fromPartial(_)))||[],p.base=(o=s.base)!==null&&o!==void 0?o:"",p.display=(i=s.display)!==null&&i!==void 0?i:"",p.name=(f=s.name)!==null&&f!==void 0?f:"",p.symbol=(d=s.symbol)!==null&&d!==void 0?d:"",p}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},810:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgMultiSendResponse=e.MsgMultiSend=e.MsgSendResponse=e.MsgSend=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976),u=h(7725);function s(r){return r!=null}e.protobufPackage="cosmos.bank.v1beta1",e.MsgSend={encode(r,n=t.Writer.create()){r.from_address!==""&&n.uint32(10).string(r.from_address),r.to_address!==""&&n.uint32(18).string(r.to_address);for(const o of r.amount)c.Coin.encode(o,n.uint32(26).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={from_address:"",to_address:"",amount:[]};for(;o.pos>>3){case 1:f.from_address=o.string();break;case 2:f.to_address=o.string();break;case 3:f.amount.push(c.Coin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({from_address:s(r.from_address)?String(r.from_address):"",to_address:s(r.to_address)?String(r.to_address):"",amount:Array.isArray(r==null?void 0:r.amount)?r.amount.map(n=>c.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.from_address!==void 0&&(n.from_address=r.from_address),r.to_address!==void 0&&(n.to_address=r.to_address),r.amount?n.amount=r.amount.map(o=>o?c.Coin.toJSON(o):void 0):n.amount=[],n},fromPartial(r){var n,o,i;const f={from_address:"",to_address:"",amount:[]};return f.from_address=(n=r.from_address)!==null&&n!==void 0?n:"",f.to_address=(o=r.to_address)!==null&&o!==void 0?o:"",f.amount=((i=r.amount)===null||i===void 0?void 0:i.map(d=>c.Coin.fromPartial(d)))||[],f}},e.MsgSendResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgMultiSend={encode(r,n=t.Writer.create()){for(const o of r.inputs)u.Input.encode(o,n.uint32(10).fork()).ldelim();for(const o of r.outputs)u.Output.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={inputs:[],outputs:[]};for(;o.pos>>3){case 1:f.inputs.push(u.Input.decode(o,o.uint32()));break;case 2:f.outputs.push(u.Output.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({inputs:Array.isArray(r==null?void 0:r.inputs)?r.inputs.map(n=>u.Input.fromJSON(n)):[],outputs:Array.isArray(r==null?void 0:r.outputs)?r.outputs.map(n=>u.Output.fromJSON(n)):[]}),toJSON(r){const n={};return r.inputs?n.inputs=r.inputs.map(o=>o?u.Input.toJSON(o):void 0):n.inputs=[],r.outputs?n.outputs=r.outputs.map(o=>o?u.Output.toJSON(o):void 0):n.outputs=[],n},fromPartial(r){var n,o;const i={inputs:[],outputs:[]};return i.inputs=((n=r.inputs)===null||n===void 0?void 0:n.map(f=>u.Input.fromPartial(f)))||[],i.outputs=((o=r.outputs)===null||o===void 0?void 0:o.map(f=>u.Output.fromPartial(f)))||[],i}},e.MsgMultiSendResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgClientImpl=class{constructor(r){this.rpc=r,this.Send=this.Send.bind(this),this.MultiSend=this.MultiSend.bind(this)}Send(r){const n=e.MsgSend.encode(r).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","Send",n).then(o=>e.MsgSendResponse.decode(new t.Reader(o)))}MultiSend(r){const n=e.MsgMultiSend.encode(r).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","MultiSend",n).then(o=>e.MsgMultiSendResponse.decode(new t.Reader(o)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9849:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(b,I,l,j){j===void 0&&(j=l),Object.defineProperty(b,j,{enumerable:!0,get:function(){return I[l]}})}:function(b,I,l,j){j===void 0&&(j=l),b[j]=I[l]}),O=this&&this.__setModuleDefault||(Object.create?function(b,I){Object.defineProperty(b,"default",{enumerable:!0,value:I})}:function(b,I){b.default=I}),k=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var I={};if(b!=null)for(var l in b)l!=="default"&&Object.prototype.hasOwnProperty.call(b,l)&&w(I,b,l);return O(I,b),I},S=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.SearchTxsResult=e.TxMsgData=e.MsgData=e.SimulationResponse=e.Result=e.GasInfo=e.Attribute=e.StringEvent=e.ABCIMessageLog=e.TxResponse=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191),u=h(2093);function s(){return{data:new Uint8Array,log:"",events:[]}}function r(){return{msg_type:"",data:new Uint8Array}}e.protobufPackage="cosmos.base.abci.v1beta1",e.TxResponse={encode(b,I=t.Writer.create()){b.height!=="0"&&I.uint32(8).int64(b.height),b.txhash!==""&&I.uint32(18).string(b.txhash),b.codespace!==""&&I.uint32(26).string(b.codespace),b.code!==0&&I.uint32(32).uint32(b.code),b.data!==""&&I.uint32(42).string(b.data),b.raw_log!==""&&I.uint32(50).string(b.raw_log);for(const l of b.logs)e.ABCIMessageLog.encode(l,I.uint32(58).fork()).ldelim();b.info!==""&&I.uint32(66).string(b.info),b.gas_wanted!=="0"&&I.uint32(72).int64(b.gas_wanted),b.gas_used!=="0"&&I.uint32(80).int64(b.gas_used),b.tx!==void 0&&c.Any.encode(b.tx,I.uint32(90).fork()).ldelim(),b.timestamp!==""&&I.uint32(98).string(b.timestamp);for(const l of b.events)u.Event.encode(l,I.uint32(106).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={height:"0",txhash:"",codespace:"",code:0,data:"",raw_log:"",logs:[],info:"",gas_wanted:"0",gas_used:"0",tx:void 0,timestamp:"",events:[]};for(;l.pos>>3){case 1:M.height=p(l.int64());break;case 2:M.txhash=l.string();break;case 3:M.codespace=l.string();break;case 4:M.code=l.uint32();break;case 5:M.data=l.string();break;case 6:M.raw_log=l.string();break;case 7:M.logs.push(e.ABCIMessageLog.decode(l,l.uint32()));break;case 8:M.info=l.string();break;case 9:M.gas_wanted=p(l.int64());break;case 10:M.gas_used=p(l.int64());break;case 11:M.tx=c.Any.decode(l,l.uint32());break;case 12:M.timestamp=l.string();break;case 13:M.events.push(u.Event.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({height:_(b.height)?String(b.height):"0",txhash:_(b.txhash)?String(b.txhash):"",codespace:_(b.codespace)?String(b.codespace):"",code:_(b.code)?Number(b.code):0,data:_(b.data)?String(b.data):"",raw_log:_(b.raw_log)?String(b.raw_log):"",logs:Array.isArray(b==null?void 0:b.logs)?b.logs.map(I=>e.ABCIMessageLog.fromJSON(I)):[],info:_(b.info)?String(b.info):"",gas_wanted:_(b.gas_wanted)?String(b.gas_wanted):"0",gas_used:_(b.gas_used)?String(b.gas_used):"0",tx:_(b.tx)?c.Any.fromJSON(b.tx):void 0,timestamp:_(b.timestamp)?String(b.timestamp):"",events:Array.isArray(b==null?void 0:b.events)?b.events.map(I=>u.Event.fromJSON(I)):[]}),toJSON(b){const I={};return b.height!==void 0&&(I.height=b.height),b.txhash!==void 0&&(I.txhash=b.txhash),b.codespace!==void 0&&(I.codespace=b.codespace),b.code!==void 0&&(I.code=Math.round(b.code)),b.data!==void 0&&(I.data=b.data),b.raw_log!==void 0&&(I.raw_log=b.raw_log),b.logs?I.logs=b.logs.map(l=>l?e.ABCIMessageLog.toJSON(l):void 0):I.logs=[],b.info!==void 0&&(I.info=b.info),b.gas_wanted!==void 0&&(I.gas_wanted=b.gas_wanted),b.gas_used!==void 0&&(I.gas_used=b.gas_used),b.tx!==void 0&&(I.tx=b.tx?c.Any.toJSON(b.tx):void 0),b.timestamp!==void 0&&(I.timestamp=b.timestamp),b.events?I.events=b.events.map(l=>l?u.Event.toJSON(l):void 0):I.events=[],I},fromPartial(b){var I,l,j,M,N,C,x,P,v,m,E,B;const T={height:"0",txhash:"",codespace:"",code:0,data:"",raw_log:"",logs:[],info:"",gas_wanted:"0",gas_used:"0",tx:void 0,timestamp:"",events:[]};return T.height=(I=b.height)!==null&&I!==void 0?I:"0",T.txhash=(l=b.txhash)!==null&&l!==void 0?l:"",T.codespace=(j=b.codespace)!==null&&j!==void 0?j:"",T.code=(M=b.code)!==null&&M!==void 0?M:0,T.data=(N=b.data)!==null&&N!==void 0?N:"",T.raw_log=(C=b.raw_log)!==null&&C!==void 0?C:"",T.logs=((x=b.logs)===null||x===void 0?void 0:x.map(q=>e.ABCIMessageLog.fromPartial(q)))||[],T.info=(P=b.info)!==null&&P!==void 0?P:"",T.gas_wanted=(v=b.gas_wanted)!==null&&v!==void 0?v:"0",T.gas_used=(m=b.gas_used)!==null&&m!==void 0?m:"0",T.tx=b.tx!==void 0&&b.tx!==null?c.Any.fromPartial(b.tx):void 0,T.timestamp=(E=b.timestamp)!==null&&E!==void 0?E:"",T.events=((B=b.events)===null||B===void 0?void 0:B.map(q=>u.Event.fromPartial(q)))||[],T}},e.ABCIMessageLog={encode(b,I=t.Writer.create()){b.msg_index!==0&&I.uint32(8).uint32(b.msg_index),b.log!==""&&I.uint32(18).string(b.log);for(const l of b.events)e.StringEvent.encode(l,I.uint32(26).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={msg_index:0,log:"",events:[]};for(;l.pos>>3){case 1:M.msg_index=l.uint32();break;case 2:M.log=l.string();break;case 3:M.events.push(e.StringEvent.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({msg_index:_(b.msg_index)?Number(b.msg_index):0,log:_(b.log)?String(b.log):"",events:Array.isArray(b==null?void 0:b.events)?b.events.map(I=>e.StringEvent.fromJSON(I)):[]}),toJSON(b){const I={};return b.msg_index!==void 0&&(I.msg_index=Math.round(b.msg_index)),b.log!==void 0&&(I.log=b.log),b.events?I.events=b.events.map(l=>l?e.StringEvent.toJSON(l):void 0):I.events=[],I},fromPartial(b){var I,l,j;const M={msg_index:0,log:"",events:[]};return M.msg_index=(I=b.msg_index)!==null&&I!==void 0?I:0,M.log=(l=b.log)!==null&&l!==void 0?l:"",M.events=((j=b.events)===null||j===void 0?void 0:j.map(N=>e.StringEvent.fromPartial(N)))||[],M}},e.StringEvent={encode(b,I=t.Writer.create()){b.type!==""&&I.uint32(10).string(b.type);for(const l of b.attributes)e.Attribute.encode(l,I.uint32(18).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={type:"",attributes:[]};for(;l.pos>>3){case 1:M.type=l.string();break;case 2:M.attributes.push(e.Attribute.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({type:_(b.type)?String(b.type):"",attributes:Array.isArray(b==null?void 0:b.attributes)?b.attributes.map(I=>e.Attribute.fromJSON(I)):[]}),toJSON(b){const I={};return b.type!==void 0&&(I.type=b.type),b.attributes?I.attributes=b.attributes.map(l=>l?e.Attribute.toJSON(l):void 0):I.attributes=[],I},fromPartial(b){var I,l;const j={type:"",attributes:[]};return j.type=(I=b.type)!==null&&I!==void 0?I:"",j.attributes=((l=b.attributes)===null||l===void 0?void 0:l.map(M=>e.Attribute.fromPartial(M)))||[],j}},e.Attribute={encode:(b,I=t.Writer.create())=>(b.key!==""&&I.uint32(10).string(b.key),b.value!==""&&I.uint32(18).string(b.value),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={key:"",value:""};for(;l.pos>>3){case 1:M.key=l.string();break;case 2:M.value=l.string();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({key:_(b.key)?String(b.key):"",value:_(b.value)?String(b.value):""}),toJSON(b){const I={};return b.key!==void 0&&(I.key=b.key),b.value!==void 0&&(I.value=b.value),I},fromPartial(b){var I,l;const j={key:"",value:""};return j.key=(I=b.key)!==null&&I!==void 0?I:"",j.value=(l=b.value)!==null&&l!==void 0?l:"",j}},e.GasInfo={encode:(b,I=t.Writer.create())=>(b.gas_wanted!=="0"&&I.uint32(8).uint64(b.gas_wanted),b.gas_used!=="0"&&I.uint32(16).uint64(b.gas_used),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={gas_wanted:"0",gas_used:"0"};for(;l.pos>>3){case 1:M.gas_wanted=p(l.uint64());break;case 2:M.gas_used=p(l.uint64());break;default:l.skipType(7&N)}}return M},fromJSON:b=>({gas_wanted:_(b.gas_wanted)?String(b.gas_wanted):"0",gas_used:_(b.gas_used)?String(b.gas_used):"0"}),toJSON(b){const I={};return b.gas_wanted!==void 0&&(I.gas_wanted=b.gas_wanted),b.gas_used!==void 0&&(I.gas_used=b.gas_used),I},fromPartial(b){var I,l;const j={gas_wanted:"0",gas_used:"0"};return j.gas_wanted=(I=b.gas_wanted)!==null&&I!==void 0?I:"0",j.gas_used=(l=b.gas_used)!==null&&l!==void 0?l:"0",j}},e.Result={encode(b,I=t.Writer.create()){b.data.length!==0&&I.uint32(10).bytes(b.data),b.log!==""&&I.uint32(18).string(b.log);for(const l of b.events)u.Event.encode(l,I.uint32(26).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M=s();for(;l.pos>>3){case 1:M.data=l.bytes();break;case 2:M.log=l.string();break;case 3:M.events.push(u.Event.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({data:_(b.data)?i(b.data):new Uint8Array,log:_(b.log)?String(b.log):"",events:Array.isArray(b==null?void 0:b.events)?b.events.map(I=>u.Event.fromJSON(I)):[]}),toJSON(b){const I={};return b.data!==void 0&&(I.data=d(b.data!==void 0?b.data:new Uint8Array)),b.log!==void 0&&(I.log=b.log),b.events?I.events=b.events.map(l=>l?u.Event.toJSON(l):void 0):I.events=[],I},fromPartial(b){var I,l,j;const M=s();return M.data=(I=b.data)!==null&&I!==void 0?I:new Uint8Array,M.log=(l=b.log)!==null&&l!==void 0?l:"",M.events=((j=b.events)===null||j===void 0?void 0:j.map(N=>u.Event.fromPartial(N)))||[],M}},e.SimulationResponse={encode:(b,I=t.Writer.create())=>(b.gas_info!==void 0&&e.GasInfo.encode(b.gas_info,I.uint32(10).fork()).ldelim(),b.result!==void 0&&e.Result.encode(b.result,I.uint32(18).fork()).ldelim(),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={gas_info:void 0,result:void 0};for(;l.pos>>3){case 1:M.gas_info=e.GasInfo.decode(l,l.uint32());break;case 2:M.result=e.Result.decode(l,l.uint32());break;default:l.skipType(7&N)}}return M},fromJSON:b=>({gas_info:_(b.gas_info)?e.GasInfo.fromJSON(b.gas_info):void 0,result:_(b.result)?e.Result.fromJSON(b.result):void 0}),toJSON(b){const I={};return b.gas_info!==void 0&&(I.gas_info=b.gas_info?e.GasInfo.toJSON(b.gas_info):void 0),b.result!==void 0&&(I.result=b.result?e.Result.toJSON(b.result):void 0),I},fromPartial(b){const I={gas_info:void 0,result:void 0};return I.gas_info=b.gas_info!==void 0&&b.gas_info!==null?e.GasInfo.fromPartial(b.gas_info):void 0,I.result=b.result!==void 0&&b.result!==null?e.Result.fromPartial(b.result):void 0,I}},e.MsgData={encode:(b,I=t.Writer.create())=>(b.msg_type!==""&&I.uint32(10).string(b.msg_type),b.data.length!==0&&I.uint32(18).bytes(b.data),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M=r();for(;l.pos>>3){case 1:M.msg_type=l.string();break;case 2:M.data=l.bytes();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({msg_type:_(b.msg_type)?String(b.msg_type):"",data:_(b.data)?i(b.data):new Uint8Array}),toJSON(b){const I={};return b.msg_type!==void 0&&(I.msg_type=b.msg_type),b.data!==void 0&&(I.data=d(b.data!==void 0?b.data:new Uint8Array)),I},fromPartial(b){var I,l;const j=r();return j.msg_type=(I=b.msg_type)!==null&&I!==void 0?I:"",j.data=(l=b.data)!==null&&l!==void 0?l:new Uint8Array,j}},e.TxMsgData={encode(b,I=t.Writer.create()){for(const l of b.data)e.MsgData.encode(l,I.uint32(10).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={data:[]};for(;l.pos>>3==1?M.data.push(e.MsgData.decode(l,l.uint32())):l.skipType(7&N)}return M},fromJSON:b=>({data:Array.isArray(b==null?void 0:b.data)?b.data.map(I=>e.MsgData.fromJSON(I)):[]}),toJSON(b){const I={};return b.data?I.data=b.data.map(l=>l?e.MsgData.toJSON(l):void 0):I.data=[],I},fromPartial(b){var I;const l={data:[]};return l.data=((I=b.data)===null||I===void 0?void 0:I.map(j=>e.MsgData.fromPartial(j)))||[],l}},e.SearchTxsResult={encode(b,I=t.Writer.create()){b.total_count!=="0"&&I.uint32(8).uint64(b.total_count),b.count!=="0"&&I.uint32(16).uint64(b.count),b.page_number!=="0"&&I.uint32(24).uint64(b.page_number),b.page_total!=="0"&&I.uint32(32).uint64(b.page_total),b.limit!=="0"&&I.uint32(40).uint64(b.limit);for(const l of b.txs)e.TxResponse.encode(l,I.uint32(50).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={total_count:"0",count:"0",page_number:"0",page_total:"0",limit:"0",txs:[]};for(;l.pos>>3){case 1:M.total_count=p(l.uint64());break;case 2:M.count=p(l.uint64());break;case 3:M.page_number=p(l.uint64());break;case 4:M.page_total=p(l.uint64());break;case 5:M.limit=p(l.uint64());break;case 6:M.txs.push(e.TxResponse.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({total_count:_(b.total_count)?String(b.total_count):"0",count:_(b.count)?String(b.count):"0",page_number:_(b.page_number)?String(b.page_number):"0",page_total:_(b.page_total)?String(b.page_total):"0",limit:_(b.limit)?String(b.limit):"0",txs:Array.isArray(b==null?void 0:b.txs)?b.txs.map(I=>e.TxResponse.fromJSON(I)):[]}),toJSON(b){const I={};return b.total_count!==void 0&&(I.total_count=b.total_count),b.count!==void 0&&(I.count=b.count),b.page_number!==void 0&&(I.page_number=b.page_number),b.page_total!==void 0&&(I.page_total=b.page_total),b.limit!==void 0&&(I.limit=b.limit),b.txs?I.txs=b.txs.map(l=>l?e.TxResponse.toJSON(l):void 0):I.txs=[],I},fromPartial(b){var I,l,j,M,N,C;const x={total_count:"0",count:"0",page_number:"0",page_total:"0",limit:"0",txs:[]};return x.total_count=(I=b.total_count)!==null&&I!==void 0?I:"0",x.count=(l=b.count)!==null&&l!==void 0?l:"0",x.page_number=(j=b.page_number)!==null&&j!==void 0?j:"0",x.page_total=(M=b.page_total)!==null&&M!==void 0?M:"0",x.limit=(N=b.limit)!==null&&N!==void 0?N:"0",x.txs=((C=b.txs)===null||C===void 0?void 0:C.map(P=>e.TxResponse.fromPartial(P)))||[],x}};var n=(()=>{if(n!==void 0)return n;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const o=n.atob||(b=>n.Buffer.from(b,"base64").toString("binary"));function i(b){const I=o(b),l=new Uint8Array(I.length);for(let j=0;jn.Buffer.from(b,"binary").toString("base64"));function d(b){const I=[];for(const l of b)I.push(String.fromCharCode(l));return f(I.join(""))}function p(b){return b.toString()}function _(b){return b!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2976:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecProto=e.IntProto=e.DecCoin=e.Coin=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(u){return u!=null}e.protobufPackage="cosmos.base.v1beta1",e.Coin={encode:(u,s=t.Writer.create())=>(u.denom!==""&&s.uint32(10).string(u.denom),u.amount!==""&&s.uint32(18).string(u.amount),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={denom:"",amount:""};for(;r.pos>>3){case 1:o.denom=r.string();break;case 2:o.amount=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({denom:c(u.denom)?String(u.denom):"",amount:c(u.amount)?String(u.amount):""}),toJSON(u){const s={};return u.denom!==void 0&&(s.denom=u.denom),u.amount!==void 0&&(s.amount=u.amount),s},fromPartial(u){var s,r;const n={denom:"",amount:""};return n.denom=(s=u.denom)!==null&&s!==void 0?s:"",n.amount=(r=u.amount)!==null&&r!==void 0?r:"",n}},e.DecCoin={encode:(u,s=t.Writer.create())=>(u.denom!==""&&s.uint32(10).string(u.denom),u.amount!==""&&s.uint32(18).string(u.amount),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={denom:"",amount:""};for(;r.pos>>3){case 1:o.denom=r.string();break;case 2:o.amount=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({denom:c(u.denom)?String(u.denom):"",amount:c(u.amount)?String(u.amount):""}),toJSON(u){const s={};return u.denom!==void 0&&(s.denom=u.denom),u.amount!==void 0&&(s.amount=u.amount),s},fromPartial(u){var s,r;const n={denom:"",amount:""};return n.denom=(s=u.denom)!==null&&s!==void 0?s:"",n.amount=(r=u.amount)!==null&&r!==void 0?r:"",n}},e.IntProto={encode:(u,s=t.Writer.create())=>(u.int!==""&&s.uint32(10).string(u.int),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={int:""};for(;r.pos>>3==1?o.int=r.string():r.skipType(7&i)}return o},fromJSON:u=>({int:c(u.int)?String(u.int):""}),toJSON(u){const s={};return u.int!==void 0&&(s.int=u.int),s},fromPartial(u){var s;const r={int:""};return r.int=(s=u.int)!==null&&s!==void 0?s:"",r}},e.DecProto={encode:(u,s=t.Writer.create())=>(u.dec!==""&&s.uint32(10).string(u.dec),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={dec:""};for(;r.pos>>3==1?o.dec=r.string():r.skipType(7&i)}return o},fromJSON:u=>({dec:c(u.dec)?String(u.dec):""}),toJSON(u){const s={};return u.dec!==void 0&&(s.dec=u.dec),s},fromPartial(u){var s;const r={dec:""};return r.dec=(s=u.dec)!==null&&s!==void 0?s:"",r}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4489:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgVerifyInvariantResponse=e.MsgVerifyInvariant=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(u){return u!=null}e.protobufPackage="cosmos.crisis.v1beta1",e.MsgVerifyInvariant={encode:(u,s=t.Writer.create())=>(u.sender!==""&&s.uint32(10).string(u.sender),u.invariant_module_name!==""&&s.uint32(18).string(u.invariant_module_name),u.invariant_route!==""&&s.uint32(26).string(u.invariant_route),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={sender:"",invariant_module_name:"",invariant_route:""};for(;r.pos>>3){case 1:o.sender=r.string();break;case 2:o.invariant_module_name=r.string();break;case 3:o.invariant_route=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({sender:c(u.sender)?String(u.sender):"",invariant_module_name:c(u.invariant_module_name)?String(u.invariant_module_name):"",invariant_route:c(u.invariant_route)?String(u.invariant_route):""}),toJSON(u){const s={};return u.sender!==void 0&&(s.sender=u.sender),u.invariant_module_name!==void 0&&(s.invariant_module_name=u.invariant_module_name),u.invariant_route!==void 0&&(s.invariant_route=u.invariant_route),s},fromPartial(u){var s,r,n;const o={sender:"",invariant_module_name:"",invariant_route:""};return o.sender=(s=u.sender)!==null&&s!==void 0?s:"",o.invariant_module_name=(r=u.invariant_module_name)!==null&&r!==void 0?r:"",o.invariant_route=(n=u.invariant_route)!==null&&n!==void 0?n:"",o}},e.MsgVerifyInvariantResponse={encode:(u,s=t.Writer.create())=>s,decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;for(;r.pos({}),toJSON:u=>({}),fromPartial:u=>({})},e.MsgClientImpl=class{constructor(u){this.rpc=u,this.VerifyInvariant=this.VerifyInvariant.bind(this)}VerifyInvariant(u){const s=e.MsgVerifyInvariant.encode(u).finish();return this.rpc.request("cosmos.crisis.v1beta1.Msg","VerifyInvariant",s).then(r=>e.MsgVerifyInvariantResponse.decode(new t.Reader(r)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7776:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(d,p,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return p[_]}})}:function(d,p,_,b){b===void 0&&(b=_),d[b]=p[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(p,d,_);return O(p,d),p},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrivKey=e.PubKey=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}e.protobufPackage="cosmos.crypto.ed25519",e.PubKey={encode:(d,p=t.Writer.create())=>(d.key.length!==0&&p.uint32(10).bytes(d.key),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I=c();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const p={};return d.key!==void 0&&(p.key=i(d.key!==void 0?d.key:new Uint8Array)),p},fromPartial(d){var p;const _=c();return _.key=(p=d.key)!==null&&p!==void 0?p:new Uint8Array,_}},e.PrivKey={encode:(d,p=t.Writer.create())=>(d.key.length!==0&&p.uint32(10).bytes(d.key),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I=u();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const p={};return d.key!==void 0&&(p.key=i(d.key!==void 0?d.key:new Uint8Array)),p},fromPartial(d){var p;const _=u();return _.key=(p=d.key)!==null&&p!==void 0?p:new Uint8Array,_}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const p=r(d),_=new Uint8Array(p.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){const p=[];for(const _ of d)p.push(String.fromCharCode(_));return o(p.join(""))}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5818:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.LegacyAminoPubKey=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191);e.protobufPackage="cosmos.crypto.multisig",e.LegacyAminoPubKey={encode(u,s=t.Writer.create()){u.threshold!==0&&s.uint32(8).uint32(u.threshold);for(const r of u.public_keys)c.Any.encode(r,s.uint32(18).fork()).ldelim();return s},decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={threshold:0,public_keys:[]};for(;r.pos>>3){case 1:o.threshold=r.uint32();break;case 2:o.public_keys.push(c.Any.decode(r,r.uint32()));break;default:r.skipType(7&i)}}return o},fromJSON(u){return{threshold:(s=u.threshold,s!=null?Number(u.threshold):0),public_keys:Array.isArray(u==null?void 0:u.public_keys)?u.public_keys.map(r=>c.Any.fromJSON(r)):[]};var s},toJSON(u){const s={};return u.threshold!==void 0&&(s.threshold=Math.round(u.threshold)),u.public_keys?s.public_keys=u.public_keys.map(r=>r?c.Any.toJSON(r):void 0):s.public_keys=[],s},fromPartial(u){var s,r;const n={threshold:0,public_keys:[]};return n.threshold=(s=u.threshold)!==null&&s!==void 0?s:0,n.public_keys=((r=u.public_keys)===null||r===void 0?void 0:r.map(o=>c.Any.fromPartial(o)))||[],n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4271:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(f,d,p,_){_===void 0&&(_=p),Object.defineProperty(f,_,{enumerable:!0,get:function(){return d[p]}})}:function(f,d,p,_){_===void 0&&(_=p),f[_]=d[p]}),O=this&&this.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),k=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var p in f)p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)&&w(d,f,p);return O(d,f),d},S=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.CompactBitArray=e.MultiSignature=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(){return{extra_bits_stored:0,elems:new Uint8Array}}e.protobufPackage="cosmos.crypto.multisig.v1beta1",e.MultiSignature={encode(f,d=t.Writer.create()){for(const p of f.signatures)d.uint32(10).bytes(p);return d},decode(f,d){const p=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?p.len:p.pos+d;const b={signatures:[]};for(;p.pos<_;){const I=p.uint32();I>>>3==1?b.signatures.push(p.bytes()):p.skipType(7&I)}return b},fromJSON:f=>({signatures:Array.isArray(f==null?void 0:f.signatures)?f.signatures.map(d=>r(d)):[]}),toJSON(f){const d={};return f.signatures?d.signatures=f.signatures.map(p=>o(p!==void 0?p:new Uint8Array)):d.signatures=[],d},fromPartial(f){var d;const p={signatures:[]};return p.signatures=((d=f.signatures)===null||d===void 0?void 0:d.map(_=>_))||[],p}},e.CompactBitArray={encode:(f,d=t.Writer.create())=>(f.extra_bits_stored!==0&&d.uint32(8).uint32(f.extra_bits_stored),f.elems.length!==0&&d.uint32(18).bytes(f.elems),d),decode(f,d){const p=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?p.len:p.pos+d;const b=c();for(;p.pos<_;){const I=p.uint32();switch(I>>>3){case 1:b.extra_bits_stored=p.uint32();break;case 2:b.elems=p.bytes();break;default:p.skipType(7&I)}}return b},fromJSON:f=>({extra_bits_stored:i(f.extra_bits_stored)?Number(f.extra_bits_stored):0,elems:i(f.elems)?r(f.elems):new Uint8Array}),toJSON(f){const d={};return f.extra_bits_stored!==void 0&&(d.extra_bits_stored=Math.round(f.extra_bits_stored)),f.elems!==void 0&&(d.elems=o(f.elems!==void 0?f.elems:new Uint8Array)),d},fromPartial(f){var d,p;const _=c();return _.extra_bits_stored=(d=f.extra_bits_stored)!==null&&d!==void 0?d:0,_.elems=(p=f.elems)!==null&&p!==void 0?p:new Uint8Array,_}};var u=(()=>{if(u!==void 0)return u;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const s=u.atob||(f=>u.Buffer.from(f,"base64").toString("binary"));function r(f){const d=s(f),p=new Uint8Array(d.length);for(let _=0;_u.Buffer.from(f,"binary").toString("base64"));function o(f){const d=[];for(const p of f)d.push(String.fromCharCode(p));return n(d.join(""))}function i(f){return f!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6010:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(d,p,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return p[_]}})}:function(d,p,_,b){b===void 0&&(b=_),d[b]=p[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(p,d,_);return O(p,d),p},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.PrivKey=e.PubKey=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}e.protobufPackage="cosmos.crypto.secp256k1",e.PubKey={encode:(d,p=t.Writer.create())=>(d.key.length!==0&&p.uint32(10).bytes(d.key),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I=c();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const p={};return d.key!==void 0&&(p.key=i(d.key!==void 0?d.key:new Uint8Array)),p},fromPartial(d){var p;const _=c();return _.key=(p=d.key)!==null&&p!==void 0?p:new Uint8Array,_}},e.PrivKey={encode:(d,p=t.Writer.create())=>(d.key.length!==0&&p.uint32(10).bytes(d.key),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I=u();for(;_.pos>>3==1?I.key=_.bytes():_.skipType(7&l)}return I},fromJSON:d=>({key:f(d.key)?n(d.key):new Uint8Array}),toJSON(d){const p={};return d.key!==void 0&&(p.key=i(d.key!==void 0?d.key:new Uint8Array)),p},fromPartial(d){var p;const _=u();return _.key=(p=d.key)!==null&&p!==void 0?p:new Uint8Array,_}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const p=r(d),_=new Uint8Array(p.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){const p=[];for(const _ of d)p.push(String.fromCharCode(_));return o(p.join(""))}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8866:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.CommunityPoolSpendProposalWithDeposit=e.DelegationDelegatorReward=e.DelegatorStartingInfo=e.CommunityPoolSpendProposal=e.FeePool=e.ValidatorSlashEvents=e.ValidatorSlashEvent=e.ValidatorOutstandingRewards=e.ValidatorAccumulatedCommission=e.ValidatorCurrentRewards=e.ValidatorHistoricalRewards=e.Params=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976);function u(r){return r.toString()}function s(r){return r!=null}e.protobufPackage="cosmos.distribution.v1beta1",e.Params={encode:(r,n=t.Writer.create())=>(r.community_tax!==""&&n.uint32(10).string(r.community_tax),r.base_proposer_reward!==""&&n.uint32(18).string(r.base_proposer_reward),r.bonus_proposer_reward!==""&&n.uint32(26).string(r.bonus_proposer_reward),r.withdraw_addr_enabled===!0&&n.uint32(32).bool(r.withdraw_addr_enabled),r.secret_foundation_tax!==""&&n.uint32(42).string(r.secret_foundation_tax),r.secret_foundation_address!==""&&n.uint32(50).string(r.secret_foundation_address),r.minimum_restake_threshold!==""&&n.uint32(58).string(r.minimum_restake_threshold),r.restake_period!==""&&n.uint32(66).string(r.restake_period),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={community_tax:"",base_proposer_reward:"",bonus_proposer_reward:"",withdraw_addr_enabled:!1,secret_foundation_tax:"",secret_foundation_address:"",minimum_restake_threshold:"",restake_period:""};for(;o.pos>>3){case 1:f.community_tax=o.string();break;case 2:f.base_proposer_reward=o.string();break;case 3:f.bonus_proposer_reward=o.string();break;case 4:f.withdraw_addr_enabled=o.bool();break;case 5:f.secret_foundation_tax=o.string();break;case 6:f.secret_foundation_address=o.string();break;case 7:f.minimum_restake_threshold=o.string();break;case 8:f.restake_period=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({community_tax:s(r.community_tax)?String(r.community_tax):"",base_proposer_reward:s(r.base_proposer_reward)?String(r.base_proposer_reward):"",bonus_proposer_reward:s(r.bonus_proposer_reward)?String(r.bonus_proposer_reward):"",withdraw_addr_enabled:!!s(r.withdraw_addr_enabled)&&!!r.withdraw_addr_enabled,secret_foundation_tax:s(r.secret_foundation_tax)?String(r.secret_foundation_tax):"",secret_foundation_address:s(r.secret_foundation_address)?String(r.secret_foundation_address):"",minimum_restake_threshold:s(r.minimum_restake_threshold)?String(r.minimum_restake_threshold):"",restake_period:s(r.restake_period)?String(r.restake_period):""}),toJSON(r){const n={};return r.community_tax!==void 0&&(n.community_tax=r.community_tax),r.base_proposer_reward!==void 0&&(n.base_proposer_reward=r.base_proposer_reward),r.bonus_proposer_reward!==void 0&&(n.bonus_proposer_reward=r.bonus_proposer_reward),r.withdraw_addr_enabled!==void 0&&(n.withdraw_addr_enabled=r.withdraw_addr_enabled),r.secret_foundation_tax!==void 0&&(n.secret_foundation_tax=r.secret_foundation_tax),r.secret_foundation_address!==void 0&&(n.secret_foundation_address=r.secret_foundation_address),r.minimum_restake_threshold!==void 0&&(n.minimum_restake_threshold=r.minimum_restake_threshold),r.restake_period!==void 0&&(n.restake_period=r.restake_period),n},fromPartial(r){var n,o,i,f,d,p,_,b;const I={community_tax:"",base_proposer_reward:"",bonus_proposer_reward:"",withdraw_addr_enabled:!1,secret_foundation_tax:"",secret_foundation_address:"",minimum_restake_threshold:"",restake_period:""};return I.community_tax=(n=r.community_tax)!==null&&n!==void 0?n:"",I.base_proposer_reward=(o=r.base_proposer_reward)!==null&&o!==void 0?o:"",I.bonus_proposer_reward=(i=r.bonus_proposer_reward)!==null&&i!==void 0?i:"",I.withdraw_addr_enabled=(f=r.withdraw_addr_enabled)!==null&&f!==void 0&&f,I.secret_foundation_tax=(d=r.secret_foundation_tax)!==null&&d!==void 0?d:"",I.secret_foundation_address=(p=r.secret_foundation_address)!==null&&p!==void 0?p:"",I.minimum_restake_threshold=(_=r.minimum_restake_threshold)!==null&&_!==void 0?_:"",I.restake_period=(b=r.restake_period)!==null&&b!==void 0?b:"",I}},e.ValidatorHistoricalRewards={encode(r,n=t.Writer.create()){for(const o of r.cumulative_reward_ratio)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return r.reference_count!==0&&n.uint32(16).uint32(r.reference_count),n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={cumulative_reward_ratio:[],reference_count:0};for(;o.pos>>3){case 1:f.cumulative_reward_ratio.push(c.DecCoin.decode(o,o.uint32()));break;case 2:f.reference_count=o.uint32();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({cumulative_reward_ratio:Array.isArray(r==null?void 0:r.cumulative_reward_ratio)?r.cumulative_reward_ratio.map(n=>c.DecCoin.fromJSON(n)):[],reference_count:s(r.reference_count)?Number(r.reference_count):0}),toJSON(r){const n={};return r.cumulative_reward_ratio?n.cumulative_reward_ratio=r.cumulative_reward_ratio.map(o=>o?c.DecCoin.toJSON(o):void 0):n.cumulative_reward_ratio=[],r.reference_count!==void 0&&(n.reference_count=Math.round(r.reference_count)),n},fromPartial(r){var n,o;const i={cumulative_reward_ratio:[],reference_count:0};return i.cumulative_reward_ratio=((n=r.cumulative_reward_ratio)===null||n===void 0?void 0:n.map(f=>c.DecCoin.fromPartial(f)))||[],i.reference_count=(o=r.reference_count)!==null&&o!==void 0?o:0,i}},e.ValidatorCurrentRewards={encode(r,n=t.Writer.create()){for(const o of r.rewards)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return r.period!=="0"&&n.uint32(16).uint64(r.period),n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={rewards:[],period:"0"};for(;o.pos>>3){case 1:f.rewards.push(c.DecCoin.decode(o,o.uint32()));break;case 2:f.period=u(o.uint64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({rewards:Array.isArray(r==null?void 0:r.rewards)?r.rewards.map(n=>c.DecCoin.fromJSON(n)):[],period:s(r.period)?String(r.period):"0"}),toJSON(r){const n={};return r.rewards?n.rewards=r.rewards.map(o=>o?c.DecCoin.toJSON(o):void 0):n.rewards=[],r.period!==void 0&&(n.period=r.period),n},fromPartial(r){var n,o;const i={rewards:[],period:"0"};return i.rewards=((n=r.rewards)===null||n===void 0?void 0:n.map(f=>c.DecCoin.fromPartial(f)))||[],i.period=(o=r.period)!==null&&o!==void 0?o:"0",i}},e.ValidatorAccumulatedCommission={encode(r,n=t.Writer.create()){for(const o of r.commission)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={commission:[]};for(;o.pos>>3==1?f.commission.push(c.DecCoin.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({commission:Array.isArray(r==null?void 0:r.commission)?r.commission.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.commission?n.commission=r.commission.map(o=>o?c.DecCoin.toJSON(o):void 0):n.commission=[],n},fromPartial(r){var n;const o={commission:[]};return o.commission=((n=r.commission)===null||n===void 0?void 0:n.map(i=>c.DecCoin.fromPartial(i)))||[],o}},e.ValidatorOutstandingRewards={encode(r,n=t.Writer.create()){for(const o of r.rewards)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={rewards:[]};for(;o.pos>>3==1?f.rewards.push(c.DecCoin.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({rewards:Array.isArray(r==null?void 0:r.rewards)?r.rewards.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.rewards?n.rewards=r.rewards.map(o=>o?c.DecCoin.toJSON(o):void 0):n.rewards=[],n},fromPartial(r){var n;const o={rewards:[]};return o.rewards=((n=r.rewards)===null||n===void 0?void 0:n.map(i=>c.DecCoin.fromPartial(i)))||[],o}},e.ValidatorSlashEvent={encode:(r,n=t.Writer.create())=>(r.validator_period!=="0"&&n.uint32(8).uint64(r.validator_period),r.fraction!==""&&n.uint32(18).string(r.fraction),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_period:"0",fraction:""};for(;o.pos>>3){case 1:f.validator_period=u(o.uint64());break;case 2:f.fraction=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({validator_period:s(r.validator_period)?String(r.validator_period):"0",fraction:s(r.fraction)?String(r.fraction):""}),toJSON(r){const n={};return r.validator_period!==void 0&&(n.validator_period=r.validator_period),r.fraction!==void 0&&(n.fraction=r.fraction),n},fromPartial(r){var n,o;const i={validator_period:"0",fraction:""};return i.validator_period=(n=r.validator_period)!==null&&n!==void 0?n:"0",i.fraction=(o=r.fraction)!==null&&o!==void 0?o:"",i}},e.ValidatorSlashEvents={encode(r,n=t.Writer.create()){for(const o of r.validator_slash_events)e.ValidatorSlashEvent.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_slash_events:[]};for(;o.pos>>3==1?f.validator_slash_events.push(e.ValidatorSlashEvent.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({validator_slash_events:Array.isArray(r==null?void 0:r.validator_slash_events)?r.validator_slash_events.map(n=>e.ValidatorSlashEvent.fromJSON(n)):[]}),toJSON(r){const n={};return r.validator_slash_events?n.validator_slash_events=r.validator_slash_events.map(o=>o?e.ValidatorSlashEvent.toJSON(o):void 0):n.validator_slash_events=[],n},fromPartial(r){var n;const o={validator_slash_events:[]};return o.validator_slash_events=((n=r.validator_slash_events)===null||n===void 0?void 0:n.map(i=>e.ValidatorSlashEvent.fromPartial(i)))||[],o}},e.FeePool={encode(r,n=t.Writer.create()){for(const o of r.community_pool)c.DecCoin.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={community_pool:[]};for(;o.pos>>3==1?f.community_pool.push(c.DecCoin.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({community_pool:Array.isArray(r==null?void 0:r.community_pool)?r.community_pool.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.community_pool?n.community_pool=r.community_pool.map(o=>o?c.DecCoin.toJSON(o):void 0):n.community_pool=[],n},fromPartial(r){var n;const o={community_pool:[]};return o.community_pool=((n=r.community_pool)===null||n===void 0?void 0:n.map(i=>c.DecCoin.fromPartial(i)))||[],o}},e.CommunityPoolSpendProposal={encode(r,n=t.Writer.create()){r.title!==""&&n.uint32(10).string(r.title),r.description!==""&&n.uint32(18).string(r.description),r.recipient!==""&&n.uint32(26).string(r.recipient);for(const o of r.amount)c.Coin.encode(o,n.uint32(34).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={title:"",description:"",recipient:"",amount:[]};for(;o.pos>>3){case 1:f.title=o.string();break;case 2:f.description=o.string();break;case 3:f.recipient=o.string();break;case 4:f.amount.push(c.Coin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({title:s(r.title)?String(r.title):"",description:s(r.description)?String(r.description):"",recipient:s(r.recipient)?String(r.recipient):"",amount:Array.isArray(r==null?void 0:r.amount)?r.amount.map(n=>c.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.title!==void 0&&(n.title=r.title),r.description!==void 0&&(n.description=r.description),r.recipient!==void 0&&(n.recipient=r.recipient),r.amount?n.amount=r.amount.map(o=>o?c.Coin.toJSON(o):void 0):n.amount=[],n},fromPartial(r){var n,o,i,f;const d={title:"",description:"",recipient:"",amount:[]};return d.title=(n=r.title)!==null&&n!==void 0?n:"",d.description=(o=r.description)!==null&&o!==void 0?o:"",d.recipient=(i=r.recipient)!==null&&i!==void 0?i:"",d.amount=((f=r.amount)===null||f===void 0?void 0:f.map(p=>c.Coin.fromPartial(p)))||[],d}},e.DelegatorStartingInfo={encode:(r,n=t.Writer.create())=>(r.previous_period!=="0"&&n.uint32(8).uint64(r.previous_period),r.stake!==""&&n.uint32(18).string(r.stake),r.height!=="0"&&n.uint32(24).uint64(r.height),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={previous_period:"0",stake:"",height:"0"};for(;o.pos>>3){case 1:f.previous_period=u(o.uint64());break;case 2:f.stake=o.string();break;case 3:f.height=u(o.uint64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({previous_period:s(r.previous_period)?String(r.previous_period):"0",stake:s(r.stake)?String(r.stake):"",height:s(r.height)?String(r.height):"0"}),toJSON(r){const n={};return r.previous_period!==void 0&&(n.previous_period=r.previous_period),r.stake!==void 0&&(n.stake=r.stake),r.height!==void 0&&(n.height=r.height),n},fromPartial(r){var n,o,i;const f={previous_period:"0",stake:"",height:"0"};return f.previous_period=(n=r.previous_period)!==null&&n!==void 0?n:"0",f.stake=(o=r.stake)!==null&&o!==void 0?o:"",f.height=(i=r.height)!==null&&i!==void 0?i:"0",f}},e.DelegationDelegatorReward={encode(r,n=t.Writer.create()){r.validator_address!==""&&n.uint32(10).string(r.validator_address);for(const o of r.reward)c.DecCoin.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={validator_address:"",reward:[]};for(;o.pos>>3){case 1:f.validator_address=o.string();break;case 2:f.reward.push(c.DecCoin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({validator_address:s(r.validator_address)?String(r.validator_address):"",reward:Array.isArray(r==null?void 0:r.reward)?r.reward.map(n=>c.DecCoin.fromJSON(n)):[]}),toJSON(r){const n={};return r.validator_address!==void 0&&(n.validator_address=r.validator_address),r.reward?n.reward=r.reward.map(o=>o?c.DecCoin.toJSON(o):void 0):n.reward=[],n},fromPartial(r){var n,o;const i={validator_address:"",reward:[]};return i.validator_address=(n=r.validator_address)!==null&&n!==void 0?n:"",i.reward=((o=r.reward)===null||o===void 0?void 0:o.map(f=>c.DecCoin.fromPartial(f)))||[],i}},e.CommunityPoolSpendProposalWithDeposit={encode:(r,n=t.Writer.create())=>(r.title!==""&&n.uint32(10).string(r.title),r.description!==""&&n.uint32(18).string(r.description),r.recipient!==""&&n.uint32(26).string(r.recipient),r.amount!==""&&n.uint32(34).string(r.amount),r.deposit!==""&&n.uint32(42).string(r.deposit),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={title:"",description:"",recipient:"",amount:"",deposit:""};for(;o.pos>>3){case 1:f.title=o.string();break;case 2:f.description=o.string();break;case 3:f.recipient=o.string();break;case 4:f.amount=o.string();break;case 5:f.deposit=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({title:s(r.title)?String(r.title):"",description:s(r.description)?String(r.description):"",recipient:s(r.recipient)?String(r.recipient):"",amount:s(r.amount)?String(r.amount):"",deposit:s(r.deposit)?String(r.deposit):""}),toJSON(r){const n={};return r.title!==void 0&&(n.title=r.title),r.description!==void 0&&(n.description=r.description),r.recipient!==void 0&&(n.recipient=r.recipient),r.amount!==void 0&&(n.amount=r.amount),r.deposit!==void 0&&(n.deposit=r.deposit),n},fromPartial(r){var n,o,i,f,d;const p={title:"",description:"",recipient:"",amount:"",deposit:""};return p.title=(n=r.title)!==null&&n!==void 0?n:"",p.description=(o=r.description)!==null&&o!==void 0?o:"",p.recipient=(i=r.recipient)!==null&&i!==void 0?i:"",p.amount=(f=r.amount)!==null&&f!==void 0?f:"",p.deposit=(d=r.deposit)!==null&&d!==void 0?d:"",p}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4301:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgFundCommunityPoolResponse=e.MsgFundCommunityPool=e.MsgWithdrawValidatorCommissionResponse=e.MsgWithdrawValidatorCommission=e.MsgWithdrawDelegatorRewardResponse=e.MsgWithdrawDelegatorReward=e.MsgSetWithdrawAddressResponse=e.MsgSetAutoRestakeResponse=e.MsgSetAutoRestake=e.MsgSetWithdrawAddress=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976);function u(s){return s!=null}e.protobufPackage="cosmos.distribution.v1beta1",e.MsgSetWithdrawAddress={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.withdraw_address!==""&&r.uint32(18).string(s.withdraw_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",withdraw_address:""};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.withdraw_address=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:u(s.delegator_address)?String(s.delegator_address):"",withdraw_address:u(s.withdraw_address)?String(s.withdraw_address):""}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.withdraw_address!==void 0&&(r.withdraw_address=s.withdraw_address),r},fromPartial(s){var r,n;const o={delegator_address:"",withdraw_address:""};return o.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",o.withdraw_address=(n=s.withdraw_address)!==null&&n!==void 0?n:"",o}},e.MsgSetAutoRestake={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.validator_address!==""&&r.uint32(18).string(s.validator_address),s.enabled===!0&&r.uint32(24).bool(s.enabled),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",validator_address:"",enabled:!1};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.validator_address=n.string();break;case 3:i.enabled=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:u(s.delegator_address)?String(s.delegator_address):"",validator_address:u(s.validator_address)?String(s.validator_address):"",enabled:!!u(s.enabled)&&!!s.enabled}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.validator_address!==void 0&&(r.validator_address=s.validator_address),s.enabled!==void 0&&(r.enabled=s.enabled),r},fromPartial(s){var r,n,o;const i={delegator_address:"",validator_address:"",enabled:!1};return i.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",i.validator_address=(n=s.validator_address)!==null&&n!==void 0?n:"",i.enabled=(o=s.enabled)!==null&&o!==void 0&&o,i}},e.MsgSetAutoRestakeResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgSetWithdrawAddressResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgWithdrawDelegatorReward={encode:(s,r=t.Writer.create())=>(s.delegator_address!==""&&r.uint32(10).string(s.delegator_address),s.validator_address!==""&&r.uint32(18).string(s.validator_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={delegator_address:"",validator_address:""};for(;n.pos>>3){case 1:i.delegator_address=n.string();break;case 2:i.validator_address=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({delegator_address:u(s.delegator_address)?String(s.delegator_address):"",validator_address:u(s.validator_address)?String(s.validator_address):""}),toJSON(s){const r={};return s.delegator_address!==void 0&&(r.delegator_address=s.delegator_address),s.validator_address!==void 0&&(r.validator_address=s.validator_address),r},fromPartial(s){var r,n;const o={delegator_address:"",validator_address:""};return o.delegator_address=(r=s.delegator_address)!==null&&r!==void 0?r:"",o.validator_address=(n=s.validator_address)!==null&&n!==void 0?n:"",o}},e.MsgWithdrawDelegatorRewardResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgWithdrawValidatorCommission={encode:(s,r=t.Writer.create())=>(s.validator_address!==""&&r.uint32(10).string(s.validator_address),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={validator_address:""};for(;n.pos>>3==1?i.validator_address=n.string():n.skipType(7&f)}return i},fromJSON:s=>({validator_address:u(s.validator_address)?String(s.validator_address):""}),toJSON(s){const r={};return s.validator_address!==void 0&&(r.validator_address=s.validator_address),r},fromPartial(s){var r;const n={validator_address:""};return n.validator_address=(r=s.validator_address)!==null&&r!==void 0?r:"",n}},e.MsgWithdrawValidatorCommissionResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgFundCommunityPool={encode(s,r=t.Writer.create()){for(const n of s.amount)c.Coin.encode(n,r.uint32(10).fork()).ldelim();return s.depositor!==""&&r.uint32(18).string(s.depositor),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={amount:[],depositor:""};for(;n.pos>>3){case 1:i.amount.push(c.Coin.decode(n,n.uint32()));break;case 2:i.depositor=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({amount:Array.isArray(s==null?void 0:s.amount)?s.amount.map(r=>c.Coin.fromJSON(r)):[],depositor:u(s.depositor)?String(s.depositor):""}),toJSON(s){const r={};return s.amount?r.amount=s.amount.map(n=>n?c.Coin.toJSON(n):void 0):r.amount=[],s.depositor!==void 0&&(r.depositor=s.depositor),r},fromPartial(s){var r,n;const o={amount:[],depositor:""};return o.amount=((r=s.amount)===null||r===void 0?void 0:r.map(i=>c.Coin.fromPartial(i)))||[],o.depositor=(n=s.depositor)!==null&&n!==void 0?n:"",o}},e.MsgFundCommunityPoolResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,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.SetAutoRestake=this.SetAutoRestake.bind(this)}SetWithdrawAddress(s){const r=e.MsgSetWithdrawAddress.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetWithdrawAddress",r).then(n=>e.MsgSetWithdrawAddressResponse.decode(new t.Reader(n)))}WithdrawDelegatorReward(s){const r=e.MsgWithdrawDelegatorReward.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawDelegatorReward",r).then(n=>e.MsgWithdrawDelegatorRewardResponse.decode(new t.Reader(n)))}WithdrawValidatorCommission(s){const r=e.MsgWithdrawValidatorCommission.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","WithdrawValidatorCommission",r).then(n=>e.MsgWithdrawValidatorCommissionResponse.decode(new t.Reader(n)))}FundCommunityPool(s){const r=e.MsgFundCommunityPool.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","FundCommunityPool",r).then(n=>e.MsgFundCommunityPoolResponse.decode(new t.Reader(n)))}SetAutoRestake(s){const r=e.MsgSetAutoRestake.encode(s).finish();return this.rpc.request("cosmos.distribution.v1beta1.Msg","SetAutoRestake",r).then(n=>e.MsgSetAutoRestakeResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},3676:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(f,d,p,_){_===void 0&&(_=p),Object.defineProperty(f,_,{enumerable:!0,get:function(){return d[p]}})}:function(f,d,p,_){_===void 0&&(_=p),f[_]=d[p]}),O=this&&this.__setModuleDefault||(Object.create?function(f,d){Object.defineProperty(f,"default",{enumerable:!0,value:d})}:function(f,d){f.default=d}),k=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var d={};if(f!=null)for(var p in f)p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)&&w(d,f,p);return O(d,f),d},S=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgSubmitEvidenceResponse=e.MsgSubmitEvidence=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191);function u(){return{hash:new Uint8Array}}e.protobufPackage="cosmos.evidence.v1beta1",e.MsgSubmitEvidence={encode:(f,d=t.Writer.create())=>(f.submitter!==""&&d.uint32(10).string(f.submitter),f.evidence!==void 0&&c.Any.encode(f.evidence,d.uint32(18).fork()).ldelim(),d),decode(f,d){const p=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?p.len:p.pos+d;const b={submitter:"",evidence:void 0};for(;p.pos<_;){const I=p.uint32();switch(I>>>3){case 1:b.submitter=p.string();break;case 2:b.evidence=c.Any.decode(p,p.uint32());break;default:p.skipType(7&I)}}return b},fromJSON:f=>({submitter:i(f.submitter)?String(f.submitter):"",evidence:i(f.evidence)?c.Any.fromJSON(f.evidence):void 0}),toJSON(f){const d={};return f.submitter!==void 0&&(d.submitter=f.submitter),f.evidence!==void 0&&(d.evidence=f.evidence?c.Any.toJSON(f.evidence):void 0),d},fromPartial(f){var d;const p={submitter:"",evidence:void 0};return p.submitter=(d=f.submitter)!==null&&d!==void 0?d:"",p.evidence=f.evidence!==void 0&&f.evidence!==null?c.Any.fromPartial(f.evidence):void 0,p}},e.MsgSubmitEvidenceResponse={encode:(f,d=t.Writer.create())=>(f.hash.length!==0&&d.uint32(34).bytes(f.hash),d),decode(f,d){const p=f instanceof t.Reader?f:new t.Reader(f);let _=d===void 0?p.len:p.pos+d;const b=u();for(;p.pos<_;){const I=p.uint32();I>>>3==4?b.hash=p.bytes():p.skipType(7&I)}return b},fromJSON:f=>({hash:i(f.hash)?n(f.hash):new Uint8Array}),toJSON(f){const d={};return f.hash!==void 0&&(d.hash=function(p){const _=[];for(const b of p)_.push(String.fromCharCode(b));return o(_.join(""))}(f.hash!==void 0?f.hash:new Uint8Array)),d},fromPartial(f){var d;const p=u();return p.hash=(d=f.hash)!==null&&d!==void 0?d:new Uint8Array,p}},e.MsgClientImpl=class{constructor(f){this.rpc=f,this.SubmitEvidence=this.SubmitEvidence.bind(this)}SubmitEvidence(f){const d=e.MsgSubmitEvidence.encode(f).finish();return this.rpc.request("cosmos.evidence.v1beta1.Msg","SubmitEvidence",d).then(p=>e.MsgSubmitEvidenceResponse.decode(new t.Reader(p)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const r=s.atob||(f=>s.Buffer.from(f,"base64").toString("binary"));function n(f){const d=r(f),p=new Uint8Array(d.length);for(let _=0;_s.Buffer.from(f,"binary").toString("base64"));function i(f){return f!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4932:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(d,p,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return p[_]}})}:function(d,p,_,b){b===void 0&&(b=_),d[b]=p[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(p,d,_);return O(p,d),p},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Grant=e.AllowedMsgAllowance=e.PeriodicAllowance=e.BasicAllowance=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(5090),u=h(6138),s=h(4191),r=h(2976);function n(d){return{seconds:Math.trunc(d.getTime()/1e3).toString(),nanos:d.getTime()%1e3*1e6}}function o(d){let p=1e3*Number(d.seconds);return p+=d.nanos/1e6,new Date(p)}function i(d){return d instanceof Date?n(d):typeof d=="string"?n(new Date(d)):c.Timestamp.fromJSON(d)}function f(d){return d!=null}e.protobufPackage="cosmos.feegrant.v1beta1",e.BasicAllowance={encode(d,p=t.Writer.create()){for(const _ of d.spend_limit)r.Coin.encode(_,p.uint32(10).fork()).ldelim();return d.expiration!==void 0&&c.Timestamp.encode(d.expiration,p.uint32(18).fork()).ldelim(),p},decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={spend_limit:[],expiration:void 0};for(;_.pos>>3){case 1:I.spend_limit.push(r.Coin.decode(_,_.uint32()));break;case 2:I.expiration=c.Timestamp.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({spend_limit:Array.isArray(d==null?void 0:d.spend_limit)?d.spend_limit.map(p=>r.Coin.fromJSON(p)):[],expiration:f(d.expiration)?i(d.expiration):void 0}),toJSON(d){const p={};return d.spend_limit?p.spend_limit=d.spend_limit.map(_=>_?r.Coin.toJSON(_):void 0):p.spend_limit=[],d.expiration!==void 0&&(p.expiration=o(d.expiration).toISOString()),p},fromPartial(d){var p;const _={spend_limit:[],expiration:void 0};return _.spend_limit=((p=d.spend_limit)===null||p===void 0?void 0:p.map(b=>r.Coin.fromPartial(b)))||[],_.expiration=d.expiration!==void 0&&d.expiration!==null?c.Timestamp.fromPartial(d.expiration):void 0,_}},e.PeriodicAllowance={encode(d,p=t.Writer.create()){d.basic!==void 0&&e.BasicAllowance.encode(d.basic,p.uint32(10).fork()).ldelim(),d.period!==void 0&&u.Duration.encode(d.period,p.uint32(18).fork()).ldelim();for(const _ of d.period_spend_limit)r.Coin.encode(_,p.uint32(26).fork()).ldelim();for(const _ of d.period_can_spend)r.Coin.encode(_,p.uint32(34).fork()).ldelim();return d.period_reset!==void 0&&c.Timestamp.encode(d.period_reset,p.uint32(42).fork()).ldelim(),p},decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={basic:void 0,period:void 0,period_spend_limit:[],period_can_spend:[],period_reset:void 0};for(;_.pos>>3){case 1:I.basic=e.BasicAllowance.decode(_,_.uint32());break;case 2:I.period=u.Duration.decode(_,_.uint32());break;case 3:I.period_spend_limit.push(r.Coin.decode(_,_.uint32()));break;case 4:I.period_can_spend.push(r.Coin.decode(_,_.uint32()));break;case 5:I.period_reset=c.Timestamp.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({basic:f(d.basic)?e.BasicAllowance.fromJSON(d.basic):void 0,period:f(d.period)?u.Duration.fromJSON(d.period):void 0,period_spend_limit:Array.isArray(d==null?void 0:d.period_spend_limit)?d.period_spend_limit.map(p=>r.Coin.fromJSON(p)):[],period_can_spend:Array.isArray(d==null?void 0:d.period_can_spend)?d.period_can_spend.map(p=>r.Coin.fromJSON(p)):[],period_reset:f(d.period_reset)?i(d.period_reset):void 0}),toJSON(d){const p={};return d.basic!==void 0&&(p.basic=d.basic?e.BasicAllowance.toJSON(d.basic):void 0),d.period!==void 0&&(p.period=d.period?u.Duration.toJSON(d.period):void 0),d.period_spend_limit?p.period_spend_limit=d.period_spend_limit.map(_=>_?r.Coin.toJSON(_):void 0):p.period_spend_limit=[],d.period_can_spend?p.period_can_spend=d.period_can_spend.map(_=>_?r.Coin.toJSON(_):void 0):p.period_can_spend=[],d.period_reset!==void 0&&(p.period_reset=o(d.period_reset).toISOString()),p},fromPartial(d){var p,_;const b={basic:void 0,period:void 0,period_spend_limit:[],period_can_spend:[],period_reset:void 0};return b.basic=d.basic!==void 0&&d.basic!==null?e.BasicAllowance.fromPartial(d.basic):void 0,b.period=d.period!==void 0&&d.period!==null?u.Duration.fromPartial(d.period):void 0,b.period_spend_limit=((p=d.period_spend_limit)===null||p===void 0?void 0:p.map(I=>r.Coin.fromPartial(I)))||[],b.period_can_spend=((_=d.period_can_spend)===null||_===void 0?void 0:_.map(I=>r.Coin.fromPartial(I)))||[],b.period_reset=d.period_reset!==void 0&&d.period_reset!==null?c.Timestamp.fromPartial(d.period_reset):void 0,b}},e.AllowedMsgAllowance={encode(d,p=t.Writer.create()){d.allowance!==void 0&&s.Any.encode(d.allowance,p.uint32(10).fork()).ldelim();for(const _ of d.allowed_messages)p.uint32(18).string(_);return p},decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={allowance:void 0,allowed_messages:[]};for(;_.pos>>3){case 1:I.allowance=s.Any.decode(_,_.uint32());break;case 2:I.allowed_messages.push(_.string());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({allowance:f(d.allowance)?s.Any.fromJSON(d.allowance):void 0,allowed_messages:Array.isArray(d==null?void 0:d.allowed_messages)?d.allowed_messages.map(p=>String(p)):[]}),toJSON(d){const p={};return d.allowance!==void 0&&(p.allowance=d.allowance?s.Any.toJSON(d.allowance):void 0),d.allowed_messages?p.allowed_messages=d.allowed_messages.map(_=>_):p.allowed_messages=[],p},fromPartial(d){var p;const _={allowance:void 0,allowed_messages:[]};return _.allowance=d.allowance!==void 0&&d.allowance!==null?s.Any.fromPartial(d.allowance):void 0,_.allowed_messages=((p=d.allowed_messages)===null||p===void 0?void 0:p.map(b=>b))||[],_}},e.Grant={encode:(d,p=t.Writer.create())=>(d.granter!==""&&p.uint32(10).string(d.granter),d.grantee!==""&&p.uint32(18).string(d.grantee),d.allowance!==void 0&&s.Any.encode(d.allowance,p.uint32(26).fork()).ldelim(),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={granter:"",grantee:"",allowance:void 0};for(;_.pos>>3){case 1:I.granter=_.string();break;case 2:I.grantee=_.string();break;case 3:I.allowance=s.Any.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({granter:f(d.granter)?String(d.granter):"",grantee:f(d.grantee)?String(d.grantee):"",allowance:f(d.allowance)?s.Any.fromJSON(d.allowance):void 0}),toJSON(d){const p={};return d.granter!==void 0&&(p.granter=d.granter),d.grantee!==void 0&&(p.grantee=d.grantee),d.allowance!==void 0&&(p.allowance=d.allowance?s.Any.toJSON(d.allowance):void 0),p},fromPartial(d){var p,_;const b={granter:"",grantee:"",allowance:void 0};return b.granter=(p=d.granter)!==null&&p!==void 0?p:"",b.grantee=(_=d.grantee)!==null&&_!==void 0?_:"",b.allowance=d.allowance!==void 0&&d.allowance!==null?s.Any.fromPartial(d.allowance):void 0,b}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6513:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgRevokeAllowanceResponse=e.MsgRevokeAllowance=e.MsgGrantAllowanceResponse=e.MsgGrantAllowance=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191);function u(s){return s!=null}e.protobufPackage="cosmos.feegrant.v1beta1",e.MsgGrantAllowance={encode:(s,r=t.Writer.create())=>(s.granter!==""&&r.uint32(10).string(s.granter),s.grantee!==""&&r.uint32(18).string(s.grantee),s.allowance!==void 0&&c.Any.encode(s.allowance,r.uint32(26).fork()).ldelim(),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={granter:"",grantee:"",allowance:void 0};for(;n.pos>>3){case 1:i.granter=n.string();break;case 2:i.grantee=n.string();break;case 3:i.allowance=c.Any.decode(n,n.uint32());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({granter:u(s.granter)?String(s.granter):"",grantee:u(s.grantee)?String(s.grantee):"",allowance:u(s.allowance)?c.Any.fromJSON(s.allowance):void 0}),toJSON(s){const r={};return s.granter!==void 0&&(r.granter=s.granter),s.grantee!==void 0&&(r.grantee=s.grantee),s.allowance!==void 0&&(r.allowance=s.allowance?c.Any.toJSON(s.allowance):void 0),r},fromPartial(s){var r,n;const o={granter:"",grantee:"",allowance:void 0};return o.granter=(r=s.granter)!==null&&r!==void 0?r:"",o.grantee=(n=s.grantee)!==null&&n!==void 0?n:"",o.allowance=s.allowance!==void 0&&s.allowance!==null?c.Any.fromPartial(s.allowance):void 0,o}},e.MsgGrantAllowanceResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgRevokeAllowance={encode:(s,r=t.Writer.create())=>(s.granter!==""&&r.uint32(10).string(s.granter),s.grantee!==""&&r.uint32(18).string(s.grantee),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={granter:"",grantee:""};for(;n.pos>>3){case 1:i.granter=n.string();break;case 2:i.grantee=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({granter:u(s.granter)?String(s.granter):"",grantee:u(s.grantee)?String(s.grantee):""}),toJSON(s){const r={};return s.granter!==void 0&&(r.granter=s.granter),s.grantee!==void 0&&(r.grantee=s.grantee),r},fromPartial(s){var r,n;const o={granter:"",grantee:""};return o.granter=(r=s.granter)!==null&&r!==void 0?r:"",o.grantee=(n=s.grantee)!==null&&n!==void 0?n:"",o}},e.MsgRevokeAllowanceResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,this.GrantAllowance=this.GrantAllowance.bind(this),this.RevokeAllowance=this.RevokeAllowance.bind(this)}GrantAllowance(s){const r=e.MsgGrantAllowance.encode(s).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","GrantAllowance",r).then(n=>e.MsgGrantAllowanceResponse.decode(new t.Reader(n)))}RevokeAllowance(s){const r=e.MsgRevokeAllowance.encode(s).finish();return this.rpc.request("cosmos.feegrant.v1beta1.Msg","RevokeAllowance",r).then(n=>e.MsgRevokeAllowanceResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9074:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(m,E,B,T){T===void 0&&(T=B),Object.defineProperty(m,T,{enumerable:!0,get:function(){return E[B]}})}:function(m,E,B,T){T===void 0&&(T=B),m[T]=E[B]}),O=this&&this.__setModuleDefault||(Object.create?function(m,E){Object.defineProperty(m,"default",{enumerable:!0,value:E})}:function(m,E){m.default=E}),k=this&&this.__importStar||function(m){if(m&&m.__esModule)return m;var E={};if(m!=null)for(var B in m)B!=="default"&&Object.prototype.hasOwnProperty.call(m,B)&&w(E,m,B);return O(E,m),E},S=this&&this.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.TallyParams=e.VotingParams=e.DepositParams=e.Vote=e.TallyResult=e.Proposal=e.Deposit=e.TextProposal=e.WeightedVoteOption=e.proposalStatusToJSON=e.proposalStatusFromJSON=e.ProposalStatus=e.voteOptionToJSON=e.voteOptionFromJSON=e.VoteOption=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191),u=h(5090),s=h(6138),r=h(2976);var n,o;function i(m){switch(m){case 0:case"VOTE_OPTION_UNSPECIFIED":return n.VOTE_OPTION_UNSPECIFIED;case 1:case"VOTE_OPTION_YES":return n.VOTE_OPTION_YES;case 2:case"VOTE_OPTION_ABSTAIN":return n.VOTE_OPTION_ABSTAIN;case 3:case"VOTE_OPTION_NO":return n.VOTE_OPTION_NO;case 4:case"VOTE_OPTION_NO_WITH_VETO":return n.VOTE_OPTION_NO_WITH_VETO;default:return n.UNRECOGNIZED}}function f(m){switch(m){case n.VOTE_OPTION_UNSPECIFIED:return"VOTE_OPTION_UNSPECIFIED";case n.VOTE_OPTION_YES:return"VOTE_OPTION_YES";case n.VOTE_OPTION_ABSTAIN:return"VOTE_OPTION_ABSTAIN";case n.VOTE_OPTION_NO:return"VOTE_OPTION_NO";case n.VOTE_OPTION_NO_WITH_VETO:return"VOTE_OPTION_NO_WITH_VETO";default:return"UNKNOWN"}}function d(m){switch(m){case 0:case"PROPOSAL_STATUS_UNSPECIFIED":return o.PROPOSAL_STATUS_UNSPECIFIED;case 1:case"PROPOSAL_STATUS_DEPOSIT_PERIOD":return o.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case"PROPOSAL_STATUS_VOTING_PERIOD":return o.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case"PROPOSAL_STATUS_PASSED":return o.PROPOSAL_STATUS_PASSED;case 4:case"PROPOSAL_STATUS_REJECTED":return o.PROPOSAL_STATUS_REJECTED;case 5:case"PROPOSAL_STATUS_FAILED":return o.PROPOSAL_STATUS_FAILED;default:return o.UNRECOGNIZED}}function p(m){switch(m){case o.PROPOSAL_STATUS_UNSPECIFIED:return"PROPOSAL_STATUS_UNSPECIFIED";case o.PROPOSAL_STATUS_DEPOSIT_PERIOD:return"PROPOSAL_STATUS_DEPOSIT_PERIOD";case o.PROPOSAL_STATUS_VOTING_PERIOD:return"PROPOSAL_STATUS_VOTING_PERIOD";case o.PROPOSAL_STATUS_PASSED:return"PROPOSAL_STATUS_PASSED";case o.PROPOSAL_STATUS_REJECTED:return"PROPOSAL_STATUS_REJECTED";case o.PROPOSAL_STATUS_FAILED:return"PROPOSAL_STATUS_FAILED";default:return"UNKNOWN"}}function _(){return{quorum:new Uint8Array,threshold:new Uint8Array,veto_threshold:new Uint8Array,expedited_threshold:new Uint8Array}}e.protobufPackage="cosmos.gov.v1beta1",function(m){m[m.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",m[m.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",m[m.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",m[m.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",m[m.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",m[m.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=e.VoteOption||(e.VoteOption={})),e.voteOptionFromJSON=i,e.voteOptionToJSON=f,function(m){m[m.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",m[m.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",m[m.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",m[m.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",m[m.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",m[m.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",m[m.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.ProposalStatus||(e.ProposalStatus={})),e.proposalStatusFromJSON=d,e.proposalStatusToJSON=p,e.WeightedVoteOption={encode:(m,E=t.Writer.create())=>(m.option!==0&&E.uint32(8).int32(m.option),m.weight!==""&&E.uint32(18).string(m.weight),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={option:0,weight:""};for(;B.pos>>3){case 1:q.option=B.int32();break;case 2:q.weight=B.string();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({option:v(m.option)?i(m.option):0,weight:v(m.weight)?String(m.weight):""}),toJSON(m){const E={};return m.option!==void 0&&(E.option=f(m.option)),m.weight!==void 0&&(E.weight=m.weight),E},fromPartial(m){var E,B;const T={option:0,weight:""};return T.option=(E=m.option)!==null&&E!==void 0?E:0,T.weight=(B=m.weight)!==null&&B!==void 0?B:"",T}},e.TextProposal={encode:(m,E=t.Writer.create())=>(m.title!==""&&E.uint32(10).string(m.title),m.description!==""&&E.uint32(18).string(m.description),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={title:"",description:""};for(;B.pos>>3){case 1:q.title=B.string();break;case 2:q.description=B.string();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({title:v(m.title)?String(m.title):"",description:v(m.description)?String(m.description):""}),toJSON(m){const E={};return m.title!==void 0&&(E.title=m.title),m.description!==void 0&&(E.description=m.description),E},fromPartial(m){var E,B;const T={title:"",description:""};return T.title=(E=m.title)!==null&&E!==void 0?E:"",T.description=(B=m.description)!==null&&B!==void 0?B:"",T}},e.Deposit={encode(m,E=t.Writer.create()){m.proposal_id!=="0"&&E.uint32(8).uint64(m.proposal_id),m.depositor!==""&&E.uint32(18).string(m.depositor);for(const B of m.amount)r.Coin.encode(B,E.uint32(26).fork()).ldelim();return E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={proposal_id:"0",depositor:"",amount:[]};for(;B.pos>>3){case 1:q.proposal_id=P(B.uint64());break;case 2:q.depositor=B.string();break;case 3:q.amount.push(r.Coin.decode(B,B.uint32()));break;default:B.skipType(7&te)}}return q},fromJSON:m=>({proposal_id:v(m.proposal_id)?String(m.proposal_id):"0",depositor:v(m.depositor)?String(m.depositor):"",amount:Array.isArray(m==null?void 0:m.amount)?m.amount.map(E=>r.Coin.fromJSON(E)):[]}),toJSON(m){const E={};return m.proposal_id!==void 0&&(E.proposal_id=m.proposal_id),m.depositor!==void 0&&(E.depositor=m.depositor),m.amount?E.amount=m.amount.map(B=>B?r.Coin.toJSON(B):void 0):E.amount=[],E},fromPartial(m){var E,B,T;const q={proposal_id:"0",depositor:"",amount:[]};return q.proposal_id=(E=m.proposal_id)!==null&&E!==void 0?E:"0",q.depositor=(B=m.depositor)!==null&&B!==void 0?B:"",q.amount=((T=m.amount)===null||T===void 0?void 0:T.map(te=>r.Coin.fromPartial(te)))||[],q}},e.Proposal={encode(m,E=t.Writer.create()){m.proposal_id!=="0"&&E.uint32(8).uint64(m.proposal_id),m.content!==void 0&&c.Any.encode(m.content,E.uint32(18).fork()).ldelim(),m.status!==0&&E.uint32(24).int32(m.status),m.final_tally_result!==void 0&&e.TallyResult.encode(m.final_tally_result,E.uint32(34).fork()).ldelim(),m.submit_time!==void 0&&u.Timestamp.encode(m.submit_time,E.uint32(42).fork()).ldelim(),m.deposit_end_time!==void 0&&u.Timestamp.encode(m.deposit_end_time,E.uint32(50).fork()).ldelim();for(const B of m.total_deposit)r.Coin.encode(B,E.uint32(58).fork()).ldelim();return m.voting_start_time!==void 0&&u.Timestamp.encode(m.voting_start_time,E.uint32(66).fork()).ldelim(),m.voting_end_time!==void 0&&u.Timestamp.encode(m.voting_end_time,E.uint32(74).fork()).ldelim(),m.is_expedited===!0&&E.uint32(80).bool(m.is_expedited),E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={proposal_id:"0",content:void 0,status:0,final_tally_result:void 0,submit_time:void 0,deposit_end_time:void 0,total_deposit:[],voting_start_time:void 0,voting_end_time:void 0,is_expedited:!1};for(;B.pos>>3){case 1:q.proposal_id=P(B.uint64());break;case 2:q.content=c.Any.decode(B,B.uint32());break;case 3:q.status=B.int32();break;case 4:q.final_tally_result=e.TallyResult.decode(B,B.uint32());break;case 5:q.submit_time=u.Timestamp.decode(B,B.uint32());break;case 6:q.deposit_end_time=u.Timestamp.decode(B,B.uint32());break;case 7:q.total_deposit.push(r.Coin.decode(B,B.uint32()));break;case 8:q.voting_start_time=u.Timestamp.decode(B,B.uint32());break;case 9:q.voting_end_time=u.Timestamp.decode(B,B.uint32());break;case 10:q.is_expedited=B.bool();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({proposal_id:v(m.proposal_id)?String(m.proposal_id):"0",content:v(m.content)?c.Any.fromJSON(m.content):void 0,status:v(m.status)?d(m.status):0,final_tally_result:v(m.final_tally_result)?e.TallyResult.fromJSON(m.final_tally_result):void 0,submit_time:v(m.submit_time)?x(m.submit_time):void 0,deposit_end_time:v(m.deposit_end_time)?x(m.deposit_end_time):void 0,total_deposit:Array.isArray(m==null?void 0:m.total_deposit)?m.total_deposit.map(E=>r.Coin.fromJSON(E)):[],voting_start_time:v(m.voting_start_time)?x(m.voting_start_time):void 0,voting_end_time:v(m.voting_end_time)?x(m.voting_end_time):void 0,is_expedited:!!v(m.is_expedited)&&!!m.is_expedited}),toJSON(m){const E={};return m.proposal_id!==void 0&&(E.proposal_id=m.proposal_id),m.content!==void 0&&(E.content=m.content?c.Any.toJSON(m.content):void 0),m.status!==void 0&&(E.status=p(m.status)),m.final_tally_result!==void 0&&(E.final_tally_result=m.final_tally_result?e.TallyResult.toJSON(m.final_tally_result):void 0),m.submit_time!==void 0&&(E.submit_time=C(m.submit_time).toISOString()),m.deposit_end_time!==void 0&&(E.deposit_end_time=C(m.deposit_end_time).toISOString()),m.total_deposit?E.total_deposit=m.total_deposit.map(B=>B?r.Coin.toJSON(B):void 0):E.total_deposit=[],m.voting_start_time!==void 0&&(E.voting_start_time=C(m.voting_start_time).toISOString()),m.voting_end_time!==void 0&&(E.voting_end_time=C(m.voting_end_time).toISOString()),m.is_expedited!==void 0&&(E.is_expedited=m.is_expedited),E},fromPartial(m){var E,B,T,q;const te={proposal_id:"0",content:void 0,status:0,final_tally_result:void 0,submit_time:void 0,deposit_end_time:void 0,total_deposit:[],voting_start_time:void 0,voting_end_time:void 0,is_expedited:!1};return te.proposal_id=(E=m.proposal_id)!==null&&E!==void 0?E:"0",te.content=m.content!==void 0&&m.content!==null?c.Any.fromPartial(m.content):void 0,te.status=(B=m.status)!==null&&B!==void 0?B:0,te.final_tally_result=m.final_tally_result!==void 0&&m.final_tally_result!==null?e.TallyResult.fromPartial(m.final_tally_result):void 0,te.submit_time=m.submit_time!==void 0&&m.submit_time!==null?u.Timestamp.fromPartial(m.submit_time):void 0,te.deposit_end_time=m.deposit_end_time!==void 0&&m.deposit_end_time!==null?u.Timestamp.fromPartial(m.deposit_end_time):void 0,te.total_deposit=((T=m.total_deposit)===null||T===void 0?void 0:T.map(re=>r.Coin.fromPartial(re)))||[],te.voting_start_time=m.voting_start_time!==void 0&&m.voting_start_time!==null?u.Timestamp.fromPartial(m.voting_start_time):void 0,te.voting_end_time=m.voting_end_time!==void 0&&m.voting_end_time!==null?u.Timestamp.fromPartial(m.voting_end_time):void 0,te.is_expedited=(q=m.is_expedited)!==null&&q!==void 0&&q,te}},e.TallyResult={encode:(m,E=t.Writer.create())=>(m.yes!==""&&E.uint32(10).string(m.yes),m.abstain!==""&&E.uint32(18).string(m.abstain),m.no!==""&&E.uint32(26).string(m.no),m.no_with_veto!==""&&E.uint32(34).string(m.no_with_veto),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={yes:"",abstain:"",no:"",no_with_veto:""};for(;B.pos>>3){case 1:q.yes=B.string();break;case 2:q.abstain=B.string();break;case 3:q.no=B.string();break;case 4:q.no_with_veto=B.string();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({yes:v(m.yes)?String(m.yes):"",abstain:v(m.abstain)?String(m.abstain):"",no:v(m.no)?String(m.no):"",no_with_veto:v(m.no_with_veto)?String(m.no_with_veto):""}),toJSON(m){const E={};return m.yes!==void 0&&(E.yes=m.yes),m.abstain!==void 0&&(E.abstain=m.abstain),m.no!==void 0&&(E.no=m.no),m.no_with_veto!==void 0&&(E.no_with_veto=m.no_with_veto),E},fromPartial(m){var E,B,T,q;const te={yes:"",abstain:"",no:"",no_with_veto:""};return te.yes=(E=m.yes)!==null&&E!==void 0?E:"",te.abstain=(B=m.abstain)!==null&&B!==void 0?B:"",te.no=(T=m.no)!==null&&T!==void 0?T:"",te.no_with_veto=(q=m.no_with_veto)!==null&&q!==void 0?q:"",te}},e.Vote={encode(m,E=t.Writer.create()){m.proposal_id!=="0"&&E.uint32(8).uint64(m.proposal_id),m.voter!==""&&E.uint32(18).string(m.voter),m.option!==0&&E.uint32(24).int32(m.option);for(const B of m.options)e.WeightedVoteOption.encode(B,E.uint32(34).fork()).ldelim();return E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={proposal_id:"0",voter:"",option:0,options:[]};for(;B.pos>>3){case 1:q.proposal_id=P(B.uint64());break;case 2:q.voter=B.string();break;case 3:q.option=B.int32();break;case 4:q.options.push(e.WeightedVoteOption.decode(B,B.uint32()));break;default:B.skipType(7&te)}}return q},fromJSON:m=>({proposal_id:v(m.proposal_id)?String(m.proposal_id):"0",voter:v(m.voter)?String(m.voter):"",option:v(m.option)?i(m.option):0,options:Array.isArray(m==null?void 0:m.options)?m.options.map(E=>e.WeightedVoteOption.fromJSON(E)):[]}),toJSON(m){const E={};return m.proposal_id!==void 0&&(E.proposal_id=m.proposal_id),m.voter!==void 0&&(E.voter=m.voter),m.option!==void 0&&(E.option=f(m.option)),m.options?E.options=m.options.map(B=>B?e.WeightedVoteOption.toJSON(B):void 0):E.options=[],E},fromPartial(m){var E,B,T,q;const te={proposal_id:"0",voter:"",option:0,options:[]};return te.proposal_id=(E=m.proposal_id)!==null&&E!==void 0?E:"0",te.voter=(B=m.voter)!==null&&B!==void 0?B:"",te.option=(T=m.option)!==null&&T!==void 0?T:0,te.options=((q=m.options)===null||q===void 0?void 0:q.map(re=>e.WeightedVoteOption.fromPartial(re)))||[],te}},e.DepositParams={encode(m,E=t.Writer.create()){for(const B of m.min_deposit)r.Coin.encode(B,E.uint32(10).fork()).ldelim();m.max_deposit_period!==void 0&&s.Duration.encode(m.max_deposit_period,E.uint32(18).fork()).ldelim();for(const B of m.min_expedited_deposit)r.Coin.encode(B,E.uint32(26).fork()).ldelim();return E},decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={min_deposit:[],max_deposit_period:void 0,min_expedited_deposit:[]};for(;B.pos>>3){case 1:q.min_deposit.push(r.Coin.decode(B,B.uint32()));break;case 2:q.max_deposit_period=s.Duration.decode(B,B.uint32());break;case 3:q.min_expedited_deposit.push(r.Coin.decode(B,B.uint32()));break;default:B.skipType(7&te)}}return q},fromJSON:m=>({min_deposit:Array.isArray(m==null?void 0:m.min_deposit)?m.min_deposit.map(E=>r.Coin.fromJSON(E)):[],max_deposit_period:v(m.max_deposit_period)?s.Duration.fromJSON(m.max_deposit_period):void 0,min_expedited_deposit:Array.isArray(m==null?void 0:m.min_expedited_deposit)?m.min_expedited_deposit.map(E=>r.Coin.fromJSON(E)):[]}),toJSON(m){const E={};return m.min_deposit?E.min_deposit=m.min_deposit.map(B=>B?r.Coin.toJSON(B):void 0):E.min_deposit=[],m.max_deposit_period!==void 0&&(E.max_deposit_period=m.max_deposit_period?s.Duration.toJSON(m.max_deposit_period):void 0),m.min_expedited_deposit?E.min_expedited_deposit=m.min_expedited_deposit.map(B=>B?r.Coin.toJSON(B):void 0):E.min_expedited_deposit=[],E},fromPartial(m){var E,B;const T={min_deposit:[],max_deposit_period:void 0,min_expedited_deposit:[]};return T.min_deposit=((E=m.min_deposit)===null||E===void 0?void 0:E.map(q=>r.Coin.fromPartial(q)))||[],T.max_deposit_period=m.max_deposit_period!==void 0&&m.max_deposit_period!==null?s.Duration.fromPartial(m.max_deposit_period):void 0,T.min_expedited_deposit=((B=m.min_expedited_deposit)===null||B===void 0?void 0:B.map(q=>r.Coin.fromPartial(q)))||[],T}},e.VotingParams={encode:(m,E=t.Writer.create())=>(m.voting_period!==void 0&&s.Duration.encode(m.voting_period,E.uint32(10).fork()).ldelim(),m.expedited_voting_period!==void 0&&s.Duration.encode(m.expedited_voting_period,E.uint32(26).fork()).ldelim(),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q={voting_period:void 0,expedited_voting_period:void 0};for(;B.pos>>3){case 1:q.voting_period=s.Duration.decode(B,B.uint32());break;case 3:q.expedited_voting_period=s.Duration.decode(B,B.uint32());break;default:B.skipType(7&te)}}return q},fromJSON:m=>({voting_period:v(m.voting_period)?s.Duration.fromJSON(m.voting_period):void 0,expedited_voting_period:v(m.expedited_voting_period)?s.Duration.fromJSON(m.expedited_voting_period):void 0}),toJSON(m){const E={};return m.voting_period!==void 0&&(E.voting_period=m.voting_period?s.Duration.toJSON(m.voting_period):void 0),m.expedited_voting_period!==void 0&&(E.expedited_voting_period=m.expedited_voting_period?s.Duration.toJSON(m.expedited_voting_period):void 0),E},fromPartial(m){const E={voting_period:void 0,expedited_voting_period:void 0};return E.voting_period=m.voting_period!==void 0&&m.voting_period!==null?s.Duration.fromPartial(m.voting_period):void 0,E.expedited_voting_period=m.expedited_voting_period!==void 0&&m.expedited_voting_period!==null?s.Duration.fromPartial(m.expedited_voting_period):void 0,E}},e.TallyParams={encode:(m,E=t.Writer.create())=>(m.quorum.length!==0&&E.uint32(10).bytes(m.quorum),m.threshold.length!==0&&E.uint32(18).bytes(m.threshold),m.veto_threshold.length!==0&&E.uint32(26).bytes(m.veto_threshold),m.expedited_threshold.length!==0&&E.uint32(34).bytes(m.expedited_threshold),E),decode(m,E){const B=m instanceof t.Reader?m:new t.Reader(m);let T=E===void 0?B.len:B.pos+E;const q=_();for(;B.pos>>3){case 1:q.quorum=B.bytes();break;case 2:q.threshold=B.bytes();break;case 3:q.veto_threshold=B.bytes();break;case 4:q.expedited_threshold=B.bytes();break;default:B.skipType(7&te)}}return q},fromJSON:m=>({quorum:v(m.quorum)?l(m.quorum):new Uint8Array,threshold:v(m.threshold)?l(m.threshold):new Uint8Array,veto_threshold:v(m.veto_threshold)?l(m.veto_threshold):new Uint8Array,expedited_threshold:v(m.expedited_threshold)?l(m.expedited_threshold):new Uint8Array}),toJSON(m){const E={};return m.quorum!==void 0&&(E.quorum=M(m.quorum!==void 0?m.quorum:new Uint8Array)),m.threshold!==void 0&&(E.threshold=M(m.threshold!==void 0?m.threshold:new Uint8Array)),m.veto_threshold!==void 0&&(E.veto_threshold=M(m.veto_threshold!==void 0?m.veto_threshold:new Uint8Array)),m.expedited_threshold!==void 0&&(E.expedited_threshold=M(m.expedited_threshold!==void 0?m.expedited_threshold:new Uint8Array)),E},fromPartial(m){var E,B,T,q;const te=_();return te.quorum=(E=m.quorum)!==null&&E!==void 0?E:new Uint8Array,te.threshold=(B=m.threshold)!==null&&B!==void 0?B:new Uint8Array,te.veto_threshold=(T=m.veto_threshold)!==null&&T!==void 0?T:new Uint8Array,te.expedited_threshold=(q=m.expedited_threshold)!==null&&q!==void 0?q:new Uint8Array,te}};var b=(()=>{if(b!==void 0)return b;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const I=b.atob||(m=>b.Buffer.from(m,"base64").toString("binary"));function l(m){const E=I(m),B=new Uint8Array(E.length);for(let T=0;Tb.Buffer.from(m,"binary").toString("base64"));function M(m){const E=[];for(const B of m)E.push(String.fromCharCode(B));return j(E.join(""))}function N(m){return{seconds:Math.trunc(m.getTime()/1e3).toString(),nanos:m.getTime()%1e3*1e6}}function C(m){let E=1e3*Number(m.seconds);return E+=m.nanos/1e6,new Date(E)}function x(m){return m instanceof Date?N(m):typeof m=="string"?N(new Date(m)):u.Timestamp.fromJSON(m)}function P(m){return m.toString()}function v(m){return m!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},88:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgDepositResponse=e.MsgDeposit=e.MsgVoteWeightedResponse=e.MsgVoteWeighted=e.MsgVoteResponse=e.MsgVote=e.MsgSubmitProposalResponse=e.MsgSubmitProposal=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191),u=h(9074),s=h(2976);function r(o){return o.toString()}function n(o){return o!=null}e.protobufPackage="cosmos.gov.v1beta1",e.MsgSubmitProposal={encode(o,i=t.Writer.create()){o.content!==void 0&&c.Any.encode(o.content,i.uint32(10).fork()).ldelim();for(const f of o.initial_deposit)s.Coin.encode(f,i.uint32(18).fork()).ldelim();return o.proposer!==""&&i.uint32(26).string(o.proposer),o.is_expedited===!0&&i.uint32(32).bool(o.is_expedited),i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={content:void 0,initial_deposit:[],proposer:"",is_expedited:!1};for(;f.pos>>3){case 1:p.content=c.Any.decode(f,f.uint32());break;case 2:p.initial_deposit.push(s.Coin.decode(f,f.uint32()));break;case 3:p.proposer=f.string();break;case 4:p.is_expedited=f.bool();break;default:f.skipType(7&_)}}return p},fromJSON:o=>({content:n(o.content)?c.Any.fromJSON(o.content):void 0,initial_deposit:Array.isArray(o==null?void 0:o.initial_deposit)?o.initial_deposit.map(i=>s.Coin.fromJSON(i)):[],proposer:n(o.proposer)?String(o.proposer):"",is_expedited:!!n(o.is_expedited)&&!!o.is_expedited}),toJSON(o){const i={};return o.content!==void 0&&(i.content=o.content?c.Any.toJSON(o.content):void 0),o.initial_deposit?i.initial_deposit=o.initial_deposit.map(f=>f?s.Coin.toJSON(f):void 0):i.initial_deposit=[],o.proposer!==void 0&&(i.proposer=o.proposer),o.is_expedited!==void 0&&(i.is_expedited=o.is_expedited),i},fromPartial(o){var i,f,d;const p={content:void 0,initial_deposit:[],proposer:"",is_expedited:!1};return p.content=o.content!==void 0&&o.content!==null?c.Any.fromPartial(o.content):void 0,p.initial_deposit=((i=o.initial_deposit)===null||i===void 0?void 0:i.map(_=>s.Coin.fromPartial(_)))||[],p.proposer=(f=o.proposer)!==null&&f!==void 0?f:"",p.is_expedited=(d=o.is_expedited)!==null&&d!==void 0&&d,p}},e.MsgSubmitProposalResponse={encode:(o,i=t.Writer.create())=>(o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={proposal_id:"0"};for(;f.pos>>3==1?p.proposal_id=r(f.uint64()):f.skipType(7&_)}return p},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0"}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),i},fromPartial(o){var i;const f={proposal_id:"0"};return f.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",f}},e.MsgVote={encode:(o,i=t.Writer.create())=>(o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.voter!==""&&i.uint32(18).string(o.voter),o.option!==0&&i.uint32(24).int32(o.option),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={proposal_id:"0",voter:"",option:0};for(;f.pos>>3){case 1:p.proposal_id=r(f.uint64());break;case 2:p.voter=f.string();break;case 3:p.option=f.int32();break;default:f.skipType(7&_)}}return p},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",voter:n(o.voter)?String(o.voter):"",option:n(o.option)?(0,u.voteOptionFromJSON)(o.option):0}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.voter!==void 0&&(i.voter=o.voter),o.option!==void 0&&(i.option=(0,u.voteOptionToJSON)(o.option)),i},fromPartial(o){var i,f,d;const p={proposal_id:"0",voter:"",option:0};return p.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",p.voter=(f=o.voter)!==null&&f!==void 0?f:"",p.option=(d=o.option)!==null&&d!==void 0?d:0,p}},e.MsgVoteResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgVoteWeighted={encode(o,i=t.Writer.create()){o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.voter!==""&&i.uint32(18).string(o.voter);for(const f of o.options)u.WeightedVoteOption.encode(f,i.uint32(26).fork()).ldelim();return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={proposal_id:"0",voter:"",options:[]};for(;f.pos>>3){case 1:p.proposal_id=r(f.uint64());break;case 2:p.voter=f.string();break;case 3:p.options.push(u.WeightedVoteOption.decode(f,f.uint32()));break;default:f.skipType(7&_)}}return p},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",voter:n(o.voter)?String(o.voter):"",options:Array.isArray(o==null?void 0:o.options)?o.options.map(i=>u.WeightedVoteOption.fromJSON(i)):[]}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.voter!==void 0&&(i.voter=o.voter),o.options?i.options=o.options.map(f=>f?u.WeightedVoteOption.toJSON(f):void 0):i.options=[],i},fromPartial(o){var i,f,d;const p={proposal_id:"0",voter:"",options:[]};return p.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",p.voter=(f=o.voter)!==null&&f!==void 0?f:"",p.options=((d=o.options)===null||d===void 0?void 0:d.map(_=>u.WeightedVoteOption.fromPartial(_)))||[],p}},e.MsgVoteWeightedResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgDeposit={encode(o,i=t.Writer.create()){o.proposal_id!=="0"&&i.uint32(8).uint64(o.proposal_id),o.depositor!==""&&i.uint32(18).string(o.depositor);for(const f of o.amount)s.Coin.encode(f,i.uint32(26).fork()).ldelim();return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={proposal_id:"0",depositor:"",amount:[]};for(;f.pos>>3){case 1:p.proposal_id=r(f.uint64());break;case 2:p.depositor=f.string();break;case 3:p.amount.push(s.Coin.decode(f,f.uint32()));break;default:f.skipType(7&_)}}return p},fromJSON:o=>({proposal_id:n(o.proposal_id)?String(o.proposal_id):"0",depositor:n(o.depositor)?String(o.depositor):"",amount:Array.isArray(o==null?void 0:o.amount)?o.amount.map(i=>s.Coin.fromJSON(i)):[]}),toJSON(o){const i={};return o.proposal_id!==void 0&&(i.proposal_id=o.proposal_id),o.depositor!==void 0&&(i.depositor=o.depositor),o.amount?i.amount=o.amount.map(f=>f?s.Coin.toJSON(f):void 0):i.amount=[],i},fromPartial(o){var i,f,d;const p={proposal_id:"0",depositor:"",amount:[]};return p.proposal_id=(i=o.proposal_id)!==null&&i!==void 0?i:"0",p.depositor=(f=o.depositor)!==null&&f!==void 0?f:"",p.amount=((d=o.amount)===null||d===void 0?void 0:d.map(_=>s.Coin.fromPartial(_)))||[],p}},e.MsgDepositResponse={encode:(o,i=t.Writer.create())=>i,decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;for(;f.pos({}),toJSON:o=>({}),fromPartial:o=>({})},e.MsgClientImpl=class{constructor(o){this.rpc=o,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(o){const i=e.MsgSubmitProposal.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","SubmitProposal",i).then(f=>e.MsgSubmitProposalResponse.decode(new t.Reader(f)))}Vote(o){const i=e.MsgVote.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Vote",i).then(f=>e.MsgVoteResponse.decode(new t.Reader(f)))}VoteWeighted(o){const i=e.MsgVoteWeighted.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","VoteWeighted",i).then(f=>e.MsgVoteWeightedResponse.decode(new t.Reader(f)))}Deposit(o){const i=e.MsgDeposit.encode(o).finish();return this.rpc.request("cosmos.gov.v1beta1.Msg","Deposit",i).then(f=>e.MsgDepositResponse.decode(new t.Reader(f)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9913:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParamChange=e.ParameterChangeProposal=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(u){return u!=null}e.protobufPackage="cosmos.params.v1beta1",e.ParameterChangeProposal={encode(u,s=t.Writer.create()){u.title!==""&&s.uint32(10).string(u.title),u.description!==""&&s.uint32(18).string(u.description);for(const r of u.changes)e.ParamChange.encode(r,s.uint32(26).fork()).ldelim();return s},decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={title:"",description:"",changes:[]};for(;r.pos>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.changes.push(e.ParamChange.decode(r,r.uint32()));break;default:r.skipType(7&i)}}return o},fromJSON:u=>({title:c(u.title)?String(u.title):"",description:c(u.description)?String(u.description):"",changes:Array.isArray(u==null?void 0:u.changes)?u.changes.map(s=>e.ParamChange.fromJSON(s)):[]}),toJSON(u){const s={};return u.title!==void 0&&(s.title=u.title),u.description!==void 0&&(s.description=u.description),u.changes?s.changes=u.changes.map(r=>r?e.ParamChange.toJSON(r):void 0):s.changes=[],s},fromPartial(u){var s,r,n;const o={title:"",description:"",changes:[]};return o.title=(s=u.title)!==null&&s!==void 0?s:"",o.description=(r=u.description)!==null&&r!==void 0?r:"",o.changes=((n=u.changes)===null||n===void 0?void 0:n.map(i=>e.ParamChange.fromPartial(i)))||[],o}},e.ParamChange={encode:(u,s=t.Writer.create())=>(u.subspace!==""&&s.uint32(10).string(u.subspace),u.key!==""&&s.uint32(18).string(u.key),u.value!==""&&s.uint32(26).string(u.value),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={subspace:"",key:"",value:""};for(;r.pos>>3){case 1:o.subspace=r.string();break;case 2:o.key=r.string();break;case 3:o.value=r.string();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({subspace:c(u.subspace)?String(u.subspace):"",key:c(u.key)?String(u.key):"",value:c(u.value)?String(u.value):""}),toJSON(u){const s={};return u.subspace!==void 0&&(s.subspace=u.subspace),u.key!==void 0&&(s.key=u.key),u.value!==void 0&&(s.value=u.value),s},fromPartial(u){var s,r,n;const o={subspace:"",key:"",value:""};return o.subspace=(s=u.subspace)!==null&&s!==void 0?s:"",o.key=(r=u.key)!==null&&r!==void 0?r:"",o.value=(n=u.value)!==null&&n!==void 0?n:"",o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5925:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgUnjailResponse=e.MsgUnjail=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));e.protobufPackage="cosmos.slashing.v1beta1",e.MsgUnjail={encode:(c,u=t.Writer.create())=>(c.validator_addr!==""&&u.uint32(10).string(c.validator_addr),u),decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;const n={validator_addr:""};for(;s.pos>>3==1?n.validator_addr=s.string():s.skipType(7&o)}return n},fromJSON(c){return{validator_addr:(u=c.validator_addr,u!=null?String(c.validator_addr):"")};var u},toJSON(c){const u={};return c.validator_addr!==void 0&&(u.validator_addr=c.validator_addr),u},fromPartial(c){var u;const s={validator_addr:""};return s.validator_addr=(u=c.validator_addr)!==null&&u!==void 0?u:"",s}},e.MsgUnjailResponse={encode:(c,u=t.Writer.create())=>u,decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;for(;s.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgClientImpl=class{constructor(c){this.rpc=c,this.Unjail=this.Unjail.bind(this)}Unjail(c){const u=e.MsgUnjail.encode(c).finish();return this.rpc.request("cosmos.slashing.v1beta1.Msg","Unjail",u).then(s=>e.MsgUnjailResponse.decode(new t.Reader(s)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},837:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.StakeAuthorization_Validators=e.StakeAuthorization=e.authorizationTypeToJSON=e.authorizationTypeFromJSON=e.AuthorizationType=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976);var u;function s(o){switch(o){case 0:case"AUTHORIZATION_TYPE_UNSPECIFIED":return u.AUTHORIZATION_TYPE_UNSPECIFIED;case 1:case"AUTHORIZATION_TYPE_DELEGATE":return u.AUTHORIZATION_TYPE_DELEGATE;case 2:case"AUTHORIZATION_TYPE_UNDELEGATE":return u.AUTHORIZATION_TYPE_UNDELEGATE;case 3:case"AUTHORIZATION_TYPE_REDELEGATE":return u.AUTHORIZATION_TYPE_REDELEGATE;default:return u.UNRECOGNIZED}}function r(o){switch(o){case u.AUTHORIZATION_TYPE_UNSPECIFIED:return"AUTHORIZATION_TYPE_UNSPECIFIED";case u.AUTHORIZATION_TYPE_DELEGATE:return"AUTHORIZATION_TYPE_DELEGATE";case u.AUTHORIZATION_TYPE_UNDELEGATE:return"AUTHORIZATION_TYPE_UNDELEGATE";case u.AUTHORIZATION_TYPE_REDELEGATE:return"AUTHORIZATION_TYPE_REDELEGATE";default:return"UNKNOWN"}}function n(o){return o!=null}e.protobufPackage="cosmos.staking.v1beta1",function(o){o[o.AUTHORIZATION_TYPE_UNSPECIFIED=0]="AUTHORIZATION_TYPE_UNSPECIFIED",o[o.AUTHORIZATION_TYPE_DELEGATE=1]="AUTHORIZATION_TYPE_DELEGATE",o[o.AUTHORIZATION_TYPE_UNDELEGATE=2]="AUTHORIZATION_TYPE_UNDELEGATE",o[o.AUTHORIZATION_TYPE_REDELEGATE=3]="AUTHORIZATION_TYPE_REDELEGATE",o[o.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.AuthorizationType||(e.AuthorizationType={})),e.authorizationTypeFromJSON=s,e.authorizationTypeToJSON=r,e.StakeAuthorization={encode:(o,i=t.Writer.create())=>(o.max_tokens!==void 0&&c.Coin.encode(o.max_tokens,i.uint32(10).fork()).ldelim(),o.allow_list!==void 0&&e.StakeAuthorization_Validators.encode(o.allow_list,i.uint32(18).fork()).ldelim(),o.deny_list!==void 0&&e.StakeAuthorization_Validators.encode(o.deny_list,i.uint32(26).fork()).ldelim(),o.authorization_type!==0&&i.uint32(32).int32(o.authorization_type),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={max_tokens:void 0,allow_list:void 0,deny_list:void 0,authorization_type:0};for(;f.pos>>3){case 1:p.max_tokens=c.Coin.decode(f,f.uint32());break;case 2:p.allow_list=e.StakeAuthorization_Validators.decode(f,f.uint32());break;case 3:p.deny_list=e.StakeAuthorization_Validators.decode(f,f.uint32());break;case 4:p.authorization_type=f.int32();break;default:f.skipType(7&_)}}return p},fromJSON:o=>({max_tokens:n(o.max_tokens)?c.Coin.fromJSON(o.max_tokens):void 0,allow_list:n(o.allow_list)?e.StakeAuthorization_Validators.fromJSON(o.allow_list):void 0,deny_list:n(o.deny_list)?e.StakeAuthorization_Validators.fromJSON(o.deny_list):void 0,authorization_type:n(o.authorization_type)?s(o.authorization_type):0}),toJSON(o){const i={};return o.max_tokens!==void 0&&(i.max_tokens=o.max_tokens?c.Coin.toJSON(o.max_tokens):void 0),o.allow_list!==void 0&&(i.allow_list=o.allow_list?e.StakeAuthorization_Validators.toJSON(o.allow_list):void 0),o.deny_list!==void 0&&(i.deny_list=o.deny_list?e.StakeAuthorization_Validators.toJSON(o.deny_list):void 0),o.authorization_type!==void 0&&(i.authorization_type=r(o.authorization_type)),i},fromPartial(o){var i;const f={max_tokens:void 0,allow_list:void 0,deny_list:void 0,authorization_type:0};return f.max_tokens=o.max_tokens!==void 0&&o.max_tokens!==null?c.Coin.fromPartial(o.max_tokens):void 0,f.allow_list=o.allow_list!==void 0&&o.allow_list!==null?e.StakeAuthorization_Validators.fromPartial(o.allow_list):void 0,f.deny_list=o.deny_list!==void 0&&o.deny_list!==null?e.StakeAuthorization_Validators.fromPartial(o.deny_list):void 0,f.authorization_type=(i=o.authorization_type)!==null&&i!==void 0?i:0,f}},e.StakeAuthorization_Validators={encode(o,i=t.Writer.create()){for(const f of o.address)i.uint32(10).string(f);return i},decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={address:[]};for(;f.pos>>3==1?p.address.push(f.string()):f.skipType(7&_)}return p},fromJSON:o=>({address:Array.isArray(o==null?void 0:o.address)?o.address.map(i=>String(i)):[]}),toJSON(o){const i={};return o.address?i.address=o.address.map(f=>f):i.address=[],i},fromPartial(o){var i;const f={address:[]};return f.address=((i=o.address)===null||i===void 0?void 0:i.map(d=>d))||[],f}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2572:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(l,j,M,N){N===void 0&&(N=M),Object.defineProperty(l,N,{enumerable:!0,get:function(){return j[M]}})}:function(l,j,M,N){N===void 0&&(N=M),l[N]=j[M]}),O=this&&this.__setModuleDefault||(Object.create?function(l,j){Object.defineProperty(l,"default",{enumerable:!0,value:j})}:function(l,j){l.default=j}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var j={};if(l!=null)for(var M in l)M!=="default"&&Object.prototype.hasOwnProperty.call(l,M)&&w(j,l,M);return O(j,l),j},S=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.Pool=e.RedelegationResponse=e.RedelegationEntryResponse=e.DelegationResponse=e.Params=e.Redelegation=e.RedelegationEntry=e.UnbondingDelegationEntry=e.UnbondingDelegation=e.Delegation=e.DVVTriplets=e.DVVTriplet=e.DVPairs=e.DVPair=e.ValAddresses=e.Validator=e.Description=e.Commission=e.CommissionRates=e.HistoricalInfo=e.bondStatusToJSON=e.bondStatusFromJSON=e.BondStatus=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(9928),u=h(5090),s=h(4191),r=h(6138),n=h(2976);var o;function i(l){switch(l){case 0:case"BOND_STATUS_UNSPECIFIED":return o.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return o.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return o.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return o.BOND_STATUS_BONDED;default:return o.UNRECOGNIZED}}function f(l){switch(l){case o.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case o.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case o.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case o.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";default:return"UNKNOWN"}}function d(l){return{seconds:Math.trunc(l.getTime()/1e3).toString(),nanos:l.getTime()%1e3*1e6}}function p(l){let j=1e3*Number(l.seconds);return j+=l.nanos/1e6,new Date(j)}function _(l){return l instanceof Date?d(l):typeof l=="string"?d(new Date(l)):u.Timestamp.fromJSON(l)}function b(l){return l.toString()}function I(l){return l!=null}e.protobufPackage="cosmos.staking.v1beta1",function(l){l[l.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",l[l.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",l[l.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",l[l.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",l[l.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.BondStatus||(e.BondStatus={})),e.bondStatusFromJSON=i,e.bondStatusToJSON=f,e.HistoricalInfo={encode(l,j=t.Writer.create()){l.header!==void 0&&c.Header.encode(l.header,j.uint32(10).fork()).ldelim();for(const M of l.valset)e.Validator.encode(M,j.uint32(18).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={header:void 0,valset:[]};for(;M.pos>>3){case 1:C.header=c.Header.decode(M,M.uint32());break;case 2:C.valset.push(e.Validator.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({header:I(l.header)?c.Header.fromJSON(l.header):void 0,valset:Array.isArray(l==null?void 0:l.valset)?l.valset.map(j=>e.Validator.fromJSON(j)):[]}),toJSON(l){const j={};return l.header!==void 0&&(j.header=l.header?c.Header.toJSON(l.header):void 0),l.valset?j.valset=l.valset.map(M=>M?e.Validator.toJSON(M):void 0):j.valset=[],j},fromPartial(l){var j;const M={header:void 0,valset:[]};return M.header=l.header!==void 0&&l.header!==null?c.Header.fromPartial(l.header):void 0,M.valset=((j=l.valset)===null||j===void 0?void 0:j.map(N=>e.Validator.fromPartial(N)))||[],M}},e.CommissionRates={encode:(l,j=t.Writer.create())=>(l.rate!==""&&j.uint32(10).string(l.rate),l.max_rate!==""&&j.uint32(18).string(l.max_rate),l.max_change_rate!==""&&j.uint32(26).string(l.max_change_rate),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={rate:"",max_rate:"",max_change_rate:""};for(;M.pos>>3){case 1:C.rate=M.string();break;case 2:C.max_rate=M.string();break;case 3:C.max_change_rate=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({rate:I(l.rate)?String(l.rate):"",max_rate:I(l.max_rate)?String(l.max_rate):"",max_change_rate:I(l.max_change_rate)?String(l.max_change_rate):""}),toJSON(l){const j={};return l.rate!==void 0&&(j.rate=l.rate),l.max_rate!==void 0&&(j.max_rate=l.max_rate),l.max_change_rate!==void 0&&(j.max_change_rate=l.max_change_rate),j},fromPartial(l){var j,M,N;const C={rate:"",max_rate:"",max_change_rate:""};return C.rate=(j=l.rate)!==null&&j!==void 0?j:"",C.max_rate=(M=l.max_rate)!==null&&M!==void 0?M:"",C.max_change_rate=(N=l.max_change_rate)!==null&&N!==void 0?N:"",C}},e.Commission={encode:(l,j=t.Writer.create())=>(l.commission_rates!==void 0&&e.CommissionRates.encode(l.commission_rates,j.uint32(10).fork()).ldelim(),l.update_time!==void 0&&u.Timestamp.encode(l.update_time,j.uint32(18).fork()).ldelim(),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={commission_rates:void 0,update_time:void 0};for(;M.pos>>3){case 1:C.commission_rates=e.CommissionRates.decode(M,M.uint32());break;case 2:C.update_time=u.Timestamp.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({commission_rates:I(l.commission_rates)?e.CommissionRates.fromJSON(l.commission_rates):void 0,update_time:I(l.update_time)?_(l.update_time):void 0}),toJSON(l){const j={};return l.commission_rates!==void 0&&(j.commission_rates=l.commission_rates?e.CommissionRates.toJSON(l.commission_rates):void 0),l.update_time!==void 0&&(j.update_time=p(l.update_time).toISOString()),j},fromPartial(l){const j={commission_rates:void 0,update_time:void 0};return j.commission_rates=l.commission_rates!==void 0&&l.commission_rates!==null?e.CommissionRates.fromPartial(l.commission_rates):void 0,j.update_time=l.update_time!==void 0&&l.update_time!==null?u.Timestamp.fromPartial(l.update_time):void 0,j}},e.Description={encode:(l,j=t.Writer.create())=>(l.moniker!==""&&j.uint32(10).string(l.moniker),l.identity!==""&&j.uint32(18).string(l.identity),l.website!==""&&j.uint32(26).string(l.website),l.security_contact!==""&&j.uint32(34).string(l.security_contact),l.details!==""&&j.uint32(42).string(l.details),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={moniker:"",identity:"",website:"",security_contact:"",details:""};for(;M.pos>>3){case 1:C.moniker=M.string();break;case 2:C.identity=M.string();break;case 3:C.website=M.string();break;case 4:C.security_contact=M.string();break;case 5:C.details=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({moniker:I(l.moniker)?String(l.moniker):"",identity:I(l.identity)?String(l.identity):"",website:I(l.website)?String(l.website):"",security_contact:I(l.security_contact)?String(l.security_contact):"",details:I(l.details)?String(l.details):""}),toJSON(l){const j={};return l.moniker!==void 0&&(j.moniker=l.moniker),l.identity!==void 0&&(j.identity=l.identity),l.website!==void 0&&(j.website=l.website),l.security_contact!==void 0&&(j.security_contact=l.security_contact),l.details!==void 0&&(j.details=l.details),j},fromPartial(l){var j,M,N,C,x;const P={moniker:"",identity:"",website:"",security_contact:"",details:""};return P.moniker=(j=l.moniker)!==null&&j!==void 0?j:"",P.identity=(M=l.identity)!==null&&M!==void 0?M:"",P.website=(N=l.website)!==null&&N!==void 0?N:"",P.security_contact=(C=l.security_contact)!==null&&C!==void 0?C:"",P.details=(x=l.details)!==null&&x!==void 0?x:"",P}},e.Validator={encode:(l,j=t.Writer.create())=>(l.operator_address!==""&&j.uint32(10).string(l.operator_address),l.consensus_pubkey!==void 0&&s.Any.encode(l.consensus_pubkey,j.uint32(18).fork()).ldelim(),l.jailed===!0&&j.uint32(24).bool(l.jailed),l.status!==0&&j.uint32(32).int32(l.status),l.tokens!==""&&j.uint32(42).string(l.tokens),l.delegator_shares!==""&&j.uint32(50).string(l.delegator_shares),l.description!==void 0&&e.Description.encode(l.description,j.uint32(58).fork()).ldelim(),l.unbonding_height!=="0"&&j.uint32(64).int64(l.unbonding_height),l.unbonding_time!==void 0&&u.Timestamp.encode(l.unbonding_time,j.uint32(74).fork()).ldelim(),l.commission!==void 0&&e.Commission.encode(l.commission,j.uint32(82).fork()).ldelim(),l.min_self_delegation!==""&&j.uint32(90).string(l.min_self_delegation),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={operator_address:"",consensus_pubkey:void 0,jailed:!1,status:0,tokens:"",delegator_shares:"",description:void 0,unbonding_height:"0",unbonding_time:void 0,commission:void 0,min_self_delegation:""};for(;M.pos>>3){case 1:C.operator_address=M.string();break;case 2:C.consensus_pubkey=s.Any.decode(M,M.uint32());break;case 3:C.jailed=M.bool();break;case 4:C.status=M.int32();break;case 5:C.tokens=M.string();break;case 6:C.delegator_shares=M.string();break;case 7:C.description=e.Description.decode(M,M.uint32());break;case 8:C.unbonding_height=b(M.int64());break;case 9:C.unbonding_time=u.Timestamp.decode(M,M.uint32());break;case 10:C.commission=e.Commission.decode(M,M.uint32());break;case 11:C.min_self_delegation=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({operator_address:I(l.operator_address)?String(l.operator_address):"",consensus_pubkey:I(l.consensus_pubkey)?s.Any.fromJSON(l.consensus_pubkey):void 0,jailed:!!I(l.jailed)&&!!l.jailed,status:I(l.status)?i(l.status):0,tokens:I(l.tokens)?String(l.tokens):"",delegator_shares:I(l.delegator_shares)?String(l.delegator_shares):"",description:I(l.description)?e.Description.fromJSON(l.description):void 0,unbonding_height:I(l.unbonding_height)?String(l.unbonding_height):"0",unbonding_time:I(l.unbonding_time)?_(l.unbonding_time):void 0,commission:I(l.commission)?e.Commission.fromJSON(l.commission):void 0,min_self_delegation:I(l.min_self_delegation)?String(l.min_self_delegation):""}),toJSON(l){const j={};return l.operator_address!==void 0&&(j.operator_address=l.operator_address),l.consensus_pubkey!==void 0&&(j.consensus_pubkey=l.consensus_pubkey?s.Any.toJSON(l.consensus_pubkey):void 0),l.jailed!==void 0&&(j.jailed=l.jailed),l.status!==void 0&&(j.status=f(l.status)),l.tokens!==void 0&&(j.tokens=l.tokens),l.delegator_shares!==void 0&&(j.delegator_shares=l.delegator_shares),l.description!==void 0&&(j.description=l.description?e.Description.toJSON(l.description):void 0),l.unbonding_height!==void 0&&(j.unbonding_height=l.unbonding_height),l.unbonding_time!==void 0&&(j.unbonding_time=p(l.unbonding_time).toISOString()),l.commission!==void 0&&(j.commission=l.commission?e.Commission.toJSON(l.commission):void 0),l.min_self_delegation!==void 0&&(j.min_self_delegation=l.min_self_delegation),j},fromPartial(l){var j,M,N,C,x,P,v;const m={operator_address:"",consensus_pubkey:void 0,jailed:!1,status:0,tokens:"",delegator_shares:"",description:void 0,unbonding_height:"0",unbonding_time:void 0,commission:void 0,min_self_delegation:""};return m.operator_address=(j=l.operator_address)!==null&&j!==void 0?j:"",m.consensus_pubkey=l.consensus_pubkey!==void 0&&l.consensus_pubkey!==null?s.Any.fromPartial(l.consensus_pubkey):void 0,m.jailed=(M=l.jailed)!==null&&M!==void 0&&M,m.status=(N=l.status)!==null&&N!==void 0?N:0,m.tokens=(C=l.tokens)!==null&&C!==void 0?C:"",m.delegator_shares=(x=l.delegator_shares)!==null&&x!==void 0?x:"",m.description=l.description!==void 0&&l.description!==null?e.Description.fromPartial(l.description):void 0,m.unbonding_height=(P=l.unbonding_height)!==null&&P!==void 0?P:"0",m.unbonding_time=l.unbonding_time!==void 0&&l.unbonding_time!==null?u.Timestamp.fromPartial(l.unbonding_time):void 0,m.commission=l.commission!==void 0&&l.commission!==null?e.Commission.fromPartial(l.commission):void 0,m.min_self_delegation=(v=l.min_self_delegation)!==null&&v!==void 0?v:"",m}},e.ValAddresses={encode(l,j=t.Writer.create()){for(const M of l.addresses)j.uint32(10).string(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={addresses:[]};for(;M.pos>>3==1?C.addresses.push(M.string()):M.skipType(7&x)}return C},fromJSON:l=>({addresses:Array.isArray(l==null?void 0:l.addresses)?l.addresses.map(j=>String(j)):[]}),toJSON(l){const j={};return l.addresses?j.addresses=l.addresses.map(M=>M):j.addresses=[],j},fromPartial(l){var j;const M={addresses:[]};return M.addresses=((j=l.addresses)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.DVPair={encode:(l,j=t.Writer.create())=>(l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_address!==""&&j.uint32(18).string(l.validator_address),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_address:""};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_address=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_address:I(l.validator_address)?String(l.validator_address):""}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_address!==void 0&&(j.validator_address=l.validator_address),j},fromPartial(l){var j,M;const N={delegator_address:"",validator_address:""};return N.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",N.validator_address=(M=l.validator_address)!==null&&M!==void 0?M:"",N}},e.DVPairs={encode(l,j=t.Writer.create()){for(const M of l.pairs)e.DVPair.encode(M,j.uint32(10).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={pairs:[]};for(;M.pos>>3==1?C.pairs.push(e.DVPair.decode(M,M.uint32())):M.skipType(7&x)}return C},fromJSON:l=>({pairs:Array.isArray(l==null?void 0:l.pairs)?l.pairs.map(j=>e.DVPair.fromJSON(j)):[]}),toJSON(l){const j={};return l.pairs?j.pairs=l.pairs.map(M=>M?e.DVPair.toJSON(M):void 0):j.pairs=[],j},fromPartial(l){var j;const M={pairs:[]};return M.pairs=((j=l.pairs)===null||j===void 0?void 0:j.map(N=>e.DVPair.fromPartial(N)))||[],M}},e.DVVTriplet={encode:(l,j=t.Writer.create())=>(l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_src_address!==""&&j.uint32(18).string(l.validator_src_address),l.validator_dst_address!==""&&j.uint32(26).string(l.validator_dst_address),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_src_address:"",validator_dst_address:""};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_src_address=M.string();break;case 3:C.validator_dst_address=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_src_address:I(l.validator_src_address)?String(l.validator_src_address):"",validator_dst_address:I(l.validator_dst_address)?String(l.validator_dst_address):""}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_src_address!==void 0&&(j.validator_src_address=l.validator_src_address),l.validator_dst_address!==void 0&&(j.validator_dst_address=l.validator_dst_address),j},fromPartial(l){var j,M,N;const C={delegator_address:"",validator_src_address:"",validator_dst_address:""};return C.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",C.validator_src_address=(M=l.validator_src_address)!==null&&M!==void 0?M:"",C.validator_dst_address=(N=l.validator_dst_address)!==null&&N!==void 0?N:"",C}},e.DVVTriplets={encode(l,j=t.Writer.create()){for(const M of l.triplets)e.DVVTriplet.encode(M,j.uint32(10).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={triplets:[]};for(;M.pos>>3==1?C.triplets.push(e.DVVTriplet.decode(M,M.uint32())):M.skipType(7&x)}return C},fromJSON:l=>({triplets:Array.isArray(l==null?void 0:l.triplets)?l.triplets.map(j=>e.DVVTriplet.fromJSON(j)):[]}),toJSON(l){const j={};return l.triplets?j.triplets=l.triplets.map(M=>M?e.DVVTriplet.toJSON(M):void 0):j.triplets=[],j},fromPartial(l){var j;const M={triplets:[]};return M.triplets=((j=l.triplets)===null||j===void 0?void 0:j.map(N=>e.DVVTriplet.fromPartial(N)))||[],M}},e.Delegation={encode:(l,j=t.Writer.create())=>(l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_address!==""&&j.uint32(18).string(l.validator_address),l.shares!==""&&j.uint32(26).string(l.shares),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_address:"",shares:""};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_address=M.string();break;case 3:C.shares=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_address:I(l.validator_address)?String(l.validator_address):"",shares:I(l.shares)?String(l.shares):""}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_address!==void 0&&(j.validator_address=l.validator_address),l.shares!==void 0&&(j.shares=l.shares),j},fromPartial(l){var j,M,N;const C={delegator_address:"",validator_address:"",shares:""};return C.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",C.validator_address=(M=l.validator_address)!==null&&M!==void 0?M:"",C.shares=(N=l.shares)!==null&&N!==void 0?N:"",C}},e.UnbondingDelegation={encode(l,j=t.Writer.create()){l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_address!==""&&j.uint32(18).string(l.validator_address);for(const M of l.entries)e.UnbondingDelegationEntry.encode(M,j.uint32(26).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_address:"",entries:[]};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_address=M.string();break;case 3:C.entries.push(e.UnbondingDelegationEntry.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_address:I(l.validator_address)?String(l.validator_address):"",entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(j=>e.UnbondingDelegationEntry.fromJSON(j)):[]}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_address!==void 0&&(j.validator_address=l.validator_address),l.entries?j.entries=l.entries.map(M=>M?e.UnbondingDelegationEntry.toJSON(M):void 0):j.entries=[],j},fromPartial(l){var j,M,N;const C={delegator_address:"",validator_address:"",entries:[]};return C.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",C.validator_address=(M=l.validator_address)!==null&&M!==void 0?M:"",C.entries=((N=l.entries)===null||N===void 0?void 0:N.map(x=>e.UnbondingDelegationEntry.fromPartial(x)))||[],C}},e.UnbondingDelegationEntry={encode:(l,j=t.Writer.create())=>(l.creation_height!=="0"&&j.uint32(8).int64(l.creation_height),l.completion_time!==void 0&&u.Timestamp.encode(l.completion_time,j.uint32(18).fork()).ldelim(),l.initial_balance!==""&&j.uint32(26).string(l.initial_balance),l.balance!==""&&j.uint32(34).string(l.balance),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={creation_height:"0",completion_time:void 0,initial_balance:"",balance:""};for(;M.pos>>3){case 1:C.creation_height=b(M.int64());break;case 2:C.completion_time=u.Timestamp.decode(M,M.uint32());break;case 3:C.initial_balance=M.string();break;case 4:C.balance=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({creation_height:I(l.creation_height)?String(l.creation_height):"0",completion_time:I(l.completion_time)?_(l.completion_time):void 0,initial_balance:I(l.initial_balance)?String(l.initial_balance):"",balance:I(l.balance)?String(l.balance):""}),toJSON(l){const j={};return l.creation_height!==void 0&&(j.creation_height=l.creation_height),l.completion_time!==void 0&&(j.completion_time=p(l.completion_time).toISOString()),l.initial_balance!==void 0&&(j.initial_balance=l.initial_balance),l.balance!==void 0&&(j.balance=l.balance),j},fromPartial(l){var j,M,N;const C={creation_height:"0",completion_time:void 0,initial_balance:"",balance:""};return C.creation_height=(j=l.creation_height)!==null&&j!==void 0?j:"0",C.completion_time=l.completion_time!==void 0&&l.completion_time!==null?u.Timestamp.fromPartial(l.completion_time):void 0,C.initial_balance=(M=l.initial_balance)!==null&&M!==void 0?M:"",C.balance=(N=l.balance)!==null&&N!==void 0?N:"",C}},e.RedelegationEntry={encode:(l,j=t.Writer.create())=>(l.creation_height!=="0"&&j.uint32(8).int64(l.creation_height),l.completion_time!==void 0&&u.Timestamp.encode(l.completion_time,j.uint32(18).fork()).ldelim(),l.initial_balance!==""&&j.uint32(26).string(l.initial_balance),l.shares_dst!==""&&j.uint32(34).string(l.shares_dst),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={creation_height:"0",completion_time:void 0,initial_balance:"",shares_dst:""};for(;M.pos>>3){case 1:C.creation_height=b(M.int64());break;case 2:C.completion_time=u.Timestamp.decode(M,M.uint32());break;case 3:C.initial_balance=M.string();break;case 4:C.shares_dst=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({creation_height:I(l.creation_height)?String(l.creation_height):"0",completion_time:I(l.completion_time)?_(l.completion_time):void 0,initial_balance:I(l.initial_balance)?String(l.initial_balance):"",shares_dst:I(l.shares_dst)?String(l.shares_dst):""}),toJSON(l){const j={};return l.creation_height!==void 0&&(j.creation_height=l.creation_height),l.completion_time!==void 0&&(j.completion_time=p(l.completion_time).toISOString()),l.initial_balance!==void 0&&(j.initial_balance=l.initial_balance),l.shares_dst!==void 0&&(j.shares_dst=l.shares_dst),j},fromPartial(l){var j,M,N;const C={creation_height:"0",completion_time:void 0,initial_balance:"",shares_dst:""};return C.creation_height=(j=l.creation_height)!==null&&j!==void 0?j:"0",C.completion_time=l.completion_time!==void 0&&l.completion_time!==null?u.Timestamp.fromPartial(l.completion_time):void 0,C.initial_balance=(M=l.initial_balance)!==null&&M!==void 0?M:"",C.shares_dst=(N=l.shares_dst)!==null&&N!==void 0?N:"",C}},e.Redelegation={encode(l,j=t.Writer.create()){l.delegator_address!==""&&j.uint32(10).string(l.delegator_address),l.validator_src_address!==""&&j.uint32(18).string(l.validator_src_address),l.validator_dst_address!==""&&j.uint32(26).string(l.validator_dst_address);for(const M of l.entries)e.RedelegationEntry.encode(M,j.uint32(34).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegator_address:"",validator_src_address:"",validator_dst_address:"",entries:[]};for(;M.pos>>3){case 1:C.delegator_address=M.string();break;case 2:C.validator_src_address=M.string();break;case 3:C.validator_dst_address=M.string();break;case 4:C.entries.push(e.RedelegationEntry.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegator_address:I(l.delegator_address)?String(l.delegator_address):"",validator_src_address:I(l.validator_src_address)?String(l.validator_src_address):"",validator_dst_address:I(l.validator_dst_address)?String(l.validator_dst_address):"",entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(j=>e.RedelegationEntry.fromJSON(j)):[]}),toJSON(l){const j={};return l.delegator_address!==void 0&&(j.delegator_address=l.delegator_address),l.validator_src_address!==void 0&&(j.validator_src_address=l.validator_src_address),l.validator_dst_address!==void 0&&(j.validator_dst_address=l.validator_dst_address),l.entries?j.entries=l.entries.map(M=>M?e.RedelegationEntry.toJSON(M):void 0):j.entries=[],j},fromPartial(l){var j,M,N,C;const x={delegator_address:"",validator_src_address:"",validator_dst_address:"",entries:[]};return x.delegator_address=(j=l.delegator_address)!==null&&j!==void 0?j:"",x.validator_src_address=(M=l.validator_src_address)!==null&&M!==void 0?M:"",x.validator_dst_address=(N=l.validator_dst_address)!==null&&N!==void 0?N:"",x.entries=((C=l.entries)===null||C===void 0?void 0:C.map(P=>e.RedelegationEntry.fromPartial(P)))||[],x}},e.Params={encode:(l,j=t.Writer.create())=>(l.unbonding_time!==void 0&&r.Duration.encode(l.unbonding_time,j.uint32(10).fork()).ldelim(),l.max_validators!==0&&j.uint32(16).uint32(l.max_validators),l.max_entries!==0&&j.uint32(24).uint32(l.max_entries),l.historical_entries!==0&&j.uint32(32).uint32(l.historical_entries),l.bond_denom!==""&&j.uint32(42).string(l.bond_denom),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={unbonding_time:void 0,max_validators:0,max_entries:0,historical_entries:0,bond_denom:""};for(;M.pos>>3){case 1:C.unbonding_time=r.Duration.decode(M,M.uint32());break;case 2:C.max_validators=M.uint32();break;case 3:C.max_entries=M.uint32();break;case 4:C.historical_entries=M.uint32();break;case 5:C.bond_denom=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({unbonding_time:I(l.unbonding_time)?r.Duration.fromJSON(l.unbonding_time):void 0,max_validators:I(l.max_validators)?Number(l.max_validators):0,max_entries:I(l.max_entries)?Number(l.max_entries):0,historical_entries:I(l.historical_entries)?Number(l.historical_entries):0,bond_denom:I(l.bond_denom)?String(l.bond_denom):""}),toJSON(l){const j={};return l.unbonding_time!==void 0&&(j.unbonding_time=l.unbonding_time?r.Duration.toJSON(l.unbonding_time):void 0),l.max_validators!==void 0&&(j.max_validators=Math.round(l.max_validators)),l.max_entries!==void 0&&(j.max_entries=Math.round(l.max_entries)),l.historical_entries!==void 0&&(j.historical_entries=Math.round(l.historical_entries)),l.bond_denom!==void 0&&(j.bond_denom=l.bond_denom),j},fromPartial(l){var j,M,N,C;const x={unbonding_time:void 0,max_validators:0,max_entries:0,historical_entries:0,bond_denom:""};return x.unbonding_time=l.unbonding_time!==void 0&&l.unbonding_time!==null?r.Duration.fromPartial(l.unbonding_time):void 0,x.max_validators=(j=l.max_validators)!==null&&j!==void 0?j:0,x.max_entries=(M=l.max_entries)!==null&&M!==void 0?M:0,x.historical_entries=(N=l.historical_entries)!==null&&N!==void 0?N:0,x.bond_denom=(C=l.bond_denom)!==null&&C!==void 0?C:"",x}},e.DelegationResponse={encode:(l,j=t.Writer.create())=>(l.delegation!==void 0&&e.Delegation.encode(l.delegation,j.uint32(10).fork()).ldelim(),l.balance!==void 0&&n.Coin.encode(l.balance,j.uint32(18).fork()).ldelim(),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={delegation:void 0,balance:void 0};for(;M.pos>>3){case 1:C.delegation=e.Delegation.decode(M,M.uint32());break;case 2:C.balance=n.Coin.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({delegation:I(l.delegation)?e.Delegation.fromJSON(l.delegation):void 0,balance:I(l.balance)?n.Coin.fromJSON(l.balance):void 0}),toJSON(l){const j={};return l.delegation!==void 0&&(j.delegation=l.delegation?e.Delegation.toJSON(l.delegation):void 0),l.balance!==void 0&&(j.balance=l.balance?n.Coin.toJSON(l.balance):void 0),j},fromPartial(l){const j={delegation:void 0,balance:void 0};return j.delegation=l.delegation!==void 0&&l.delegation!==null?e.Delegation.fromPartial(l.delegation):void 0,j.balance=l.balance!==void 0&&l.balance!==null?n.Coin.fromPartial(l.balance):void 0,j}},e.RedelegationEntryResponse={encode:(l,j=t.Writer.create())=>(l.redelegation_entry!==void 0&&e.RedelegationEntry.encode(l.redelegation_entry,j.uint32(10).fork()).ldelim(),l.balance!==""&&j.uint32(34).string(l.balance),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={redelegation_entry:void 0,balance:""};for(;M.pos>>3){case 1:C.redelegation_entry=e.RedelegationEntry.decode(M,M.uint32());break;case 4:C.balance=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({redelegation_entry:I(l.redelegation_entry)?e.RedelegationEntry.fromJSON(l.redelegation_entry):void 0,balance:I(l.balance)?String(l.balance):""}),toJSON(l){const j={};return l.redelegation_entry!==void 0&&(j.redelegation_entry=l.redelegation_entry?e.RedelegationEntry.toJSON(l.redelegation_entry):void 0),l.balance!==void 0&&(j.balance=l.balance),j},fromPartial(l){var j;const M={redelegation_entry:void 0,balance:""};return M.redelegation_entry=l.redelegation_entry!==void 0&&l.redelegation_entry!==null?e.RedelegationEntry.fromPartial(l.redelegation_entry):void 0,M.balance=(j=l.balance)!==null&&j!==void 0?j:"",M}},e.RedelegationResponse={encode(l,j=t.Writer.create()){l.redelegation!==void 0&&e.Redelegation.encode(l.redelegation,j.uint32(10).fork()).ldelim();for(const M of l.entries)e.RedelegationEntryResponse.encode(M,j.uint32(18).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={redelegation:void 0,entries:[]};for(;M.pos>>3){case 1:C.redelegation=e.Redelegation.decode(M,M.uint32());break;case 2:C.entries.push(e.RedelegationEntryResponse.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({redelegation:I(l.redelegation)?e.Redelegation.fromJSON(l.redelegation):void 0,entries:Array.isArray(l==null?void 0:l.entries)?l.entries.map(j=>e.RedelegationEntryResponse.fromJSON(j)):[]}),toJSON(l){const j={};return l.redelegation!==void 0&&(j.redelegation=l.redelegation?e.Redelegation.toJSON(l.redelegation):void 0),l.entries?j.entries=l.entries.map(M=>M?e.RedelegationEntryResponse.toJSON(M):void 0):j.entries=[],j},fromPartial(l){var j;const M={redelegation:void 0,entries:[]};return M.redelegation=l.redelegation!==void 0&&l.redelegation!==null?e.Redelegation.fromPartial(l.redelegation):void 0,M.entries=((j=l.entries)===null||j===void 0?void 0:j.map(N=>e.RedelegationEntryResponse.fromPartial(N)))||[],M}},e.Pool={encode:(l,j=t.Writer.create())=>(l.not_bonded_tokens!==""&&j.uint32(10).string(l.not_bonded_tokens),l.bonded_tokens!==""&&j.uint32(18).string(l.bonded_tokens),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={not_bonded_tokens:"",bonded_tokens:""};for(;M.pos>>3){case 1:C.not_bonded_tokens=M.string();break;case 2:C.bonded_tokens=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({not_bonded_tokens:I(l.not_bonded_tokens)?String(l.not_bonded_tokens):"",bonded_tokens:I(l.bonded_tokens)?String(l.bonded_tokens):""}),toJSON(l){const j={};return l.not_bonded_tokens!==void 0&&(j.not_bonded_tokens=l.not_bonded_tokens),l.bonded_tokens!==void 0&&(j.bonded_tokens=l.bonded_tokens),j},fromPartial(l){var j,M;const N={not_bonded_tokens:"",bonded_tokens:""};return N.not_bonded_tokens=(j=l.not_bonded_tokens)!==null&&j!==void 0?j:"",N.bonded_tokens=(M=l.bonded_tokens)!==null&&M!==void 0?M:"",N}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7704:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(d,p,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return p[_]}})}:function(d,p,_,b){b===void 0&&(b=_),d[b]=p[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(p,d,_);return O(p,d),p},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgUndelegateResponse=e.MsgUndelegate=e.MsgBeginRedelegateResponse=e.MsgBeginRedelegate=e.MsgDelegateResponse=e.MsgDelegate=e.MsgEditValidatorResponse=e.MsgEditValidator=e.MsgCreateValidatorResponse=e.MsgCreateValidator=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2572),u=h(4191),s=h(2976),r=h(5090);function n(d){return{seconds:Math.trunc(d.getTime()/1e3).toString(),nanos:d.getTime()%1e3*1e6}}function o(d){let p=1e3*Number(d.seconds);return p+=d.nanos/1e6,new Date(p)}function i(d){return d instanceof Date?n(d):typeof d=="string"?n(new Date(d)):r.Timestamp.fromJSON(d)}function f(d){return d!=null}e.protobufPackage="cosmos.staking.v1beta1",e.MsgCreateValidator={encode:(d,p=t.Writer.create())=>(d.description!==void 0&&c.Description.encode(d.description,p.uint32(10).fork()).ldelim(),d.commission!==void 0&&c.CommissionRates.encode(d.commission,p.uint32(18).fork()).ldelim(),d.min_self_delegation!==""&&p.uint32(26).string(d.min_self_delegation),d.delegator_address!==""&&p.uint32(34).string(d.delegator_address),d.validator_address!==""&&p.uint32(42).string(d.validator_address),d.pubkey!==void 0&&u.Any.encode(d.pubkey,p.uint32(50).fork()).ldelim(),d.value!==void 0&&s.Coin.encode(d.value,p.uint32(58).fork()).ldelim(),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={description:void 0,commission:void 0,min_self_delegation:"",delegator_address:"",validator_address:"",pubkey:void 0,value:void 0};for(;_.pos>>3){case 1:I.description=c.Description.decode(_,_.uint32());break;case 2:I.commission=c.CommissionRates.decode(_,_.uint32());break;case 3:I.min_self_delegation=_.string();break;case 4:I.delegator_address=_.string();break;case 5:I.validator_address=_.string();break;case 6:I.pubkey=u.Any.decode(_,_.uint32());break;case 7:I.value=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({description:f(d.description)?c.Description.fromJSON(d.description):void 0,commission:f(d.commission)?c.CommissionRates.fromJSON(d.commission):void 0,min_self_delegation:f(d.min_self_delegation)?String(d.min_self_delegation):"",delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_address:f(d.validator_address)?String(d.validator_address):"",pubkey:f(d.pubkey)?u.Any.fromJSON(d.pubkey):void 0,value:f(d.value)?s.Coin.fromJSON(d.value):void 0}),toJSON(d){const p={};return d.description!==void 0&&(p.description=d.description?c.Description.toJSON(d.description):void 0),d.commission!==void 0&&(p.commission=d.commission?c.CommissionRates.toJSON(d.commission):void 0),d.min_self_delegation!==void 0&&(p.min_self_delegation=d.min_self_delegation),d.delegator_address!==void 0&&(p.delegator_address=d.delegator_address),d.validator_address!==void 0&&(p.validator_address=d.validator_address),d.pubkey!==void 0&&(p.pubkey=d.pubkey?u.Any.toJSON(d.pubkey):void 0),d.value!==void 0&&(p.value=d.value?s.Coin.toJSON(d.value):void 0),p},fromPartial(d){var p,_,b;const I={description:void 0,commission:void 0,min_self_delegation:"",delegator_address:"",validator_address:"",pubkey:void 0,value:void 0};return I.description=d.description!==void 0&&d.description!==null?c.Description.fromPartial(d.description):void 0,I.commission=d.commission!==void 0&&d.commission!==null?c.CommissionRates.fromPartial(d.commission):void 0,I.min_self_delegation=(p=d.min_self_delegation)!==null&&p!==void 0?p:"",I.delegator_address=(_=d.delegator_address)!==null&&_!==void 0?_:"",I.validator_address=(b=d.validator_address)!==null&&b!==void 0?b:"",I.pubkey=d.pubkey!==void 0&&d.pubkey!==null?u.Any.fromPartial(d.pubkey):void 0,I.value=d.value!==void 0&&d.value!==null?s.Coin.fromPartial(d.value):void 0,I}},e.MsgCreateValidatorResponse={encode:(d,p=t.Writer.create())=>p,decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgEditValidator={encode:(d,p=t.Writer.create())=>(d.description!==void 0&&c.Description.encode(d.description,p.uint32(10).fork()).ldelim(),d.validator_address!==""&&p.uint32(18).string(d.validator_address),d.commission_rate!==""&&p.uint32(26).string(d.commission_rate),d.min_self_delegation!==""&&p.uint32(34).string(d.min_self_delegation),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={description:void 0,validator_address:"",commission_rate:"",min_self_delegation:""};for(;_.pos>>3){case 1:I.description=c.Description.decode(_,_.uint32());break;case 2:I.validator_address=_.string();break;case 3:I.commission_rate=_.string();break;case 4:I.min_self_delegation=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({description:f(d.description)?c.Description.fromJSON(d.description):void 0,validator_address:f(d.validator_address)?String(d.validator_address):"",commission_rate:f(d.commission_rate)?String(d.commission_rate):"",min_self_delegation:f(d.min_self_delegation)?String(d.min_self_delegation):""}),toJSON(d){const p={};return d.description!==void 0&&(p.description=d.description?c.Description.toJSON(d.description):void 0),d.validator_address!==void 0&&(p.validator_address=d.validator_address),d.commission_rate!==void 0&&(p.commission_rate=d.commission_rate),d.min_self_delegation!==void 0&&(p.min_self_delegation=d.min_self_delegation),p},fromPartial(d){var p,_,b;const I={description:void 0,validator_address:"",commission_rate:"",min_self_delegation:""};return I.description=d.description!==void 0&&d.description!==null?c.Description.fromPartial(d.description):void 0,I.validator_address=(p=d.validator_address)!==null&&p!==void 0?p:"",I.commission_rate=(_=d.commission_rate)!==null&&_!==void 0?_:"",I.min_self_delegation=(b=d.min_self_delegation)!==null&&b!==void 0?b:"",I}},e.MsgEditValidatorResponse={encode:(d,p=t.Writer.create())=>p,decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgDelegate={encode:(d,p=t.Writer.create())=>(d.delegator_address!==""&&p.uint32(10).string(d.delegator_address),d.validator_address!==""&&p.uint32(18).string(d.validator_address),d.amount!==void 0&&s.Coin.encode(d.amount,p.uint32(26).fork()).ldelim(),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={delegator_address:"",validator_address:"",amount:void 0};for(;_.pos>>3){case 1:I.delegator_address=_.string();break;case 2:I.validator_address=_.string();break;case 3:I.amount=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_address:f(d.validator_address)?String(d.validator_address):"",amount:f(d.amount)?s.Coin.fromJSON(d.amount):void 0}),toJSON(d){const p={};return d.delegator_address!==void 0&&(p.delegator_address=d.delegator_address),d.validator_address!==void 0&&(p.validator_address=d.validator_address),d.amount!==void 0&&(p.amount=d.amount?s.Coin.toJSON(d.amount):void 0),p},fromPartial(d){var p,_;const b={delegator_address:"",validator_address:"",amount:void 0};return b.delegator_address=(p=d.delegator_address)!==null&&p!==void 0?p:"",b.validator_address=(_=d.validator_address)!==null&&_!==void 0?_:"",b.amount=d.amount!==void 0&&d.amount!==null?s.Coin.fromPartial(d.amount):void 0,b}},e.MsgDelegateResponse={encode:(d,p=t.Writer.create())=>p,decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgBeginRedelegate={encode:(d,p=t.Writer.create())=>(d.delegator_address!==""&&p.uint32(10).string(d.delegator_address),d.validator_src_address!==""&&p.uint32(18).string(d.validator_src_address),d.validator_dst_address!==""&&p.uint32(26).string(d.validator_dst_address),d.amount!==void 0&&s.Coin.encode(d.amount,p.uint32(34).fork()).ldelim(),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={delegator_address:"",validator_src_address:"",validator_dst_address:"",amount:void 0};for(;_.pos>>3){case 1:I.delegator_address=_.string();break;case 2:I.validator_src_address=_.string();break;case 3:I.validator_dst_address=_.string();break;case 4:I.amount=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_src_address:f(d.validator_src_address)?String(d.validator_src_address):"",validator_dst_address:f(d.validator_dst_address)?String(d.validator_dst_address):"",amount:f(d.amount)?s.Coin.fromJSON(d.amount):void 0}),toJSON(d){const p={};return d.delegator_address!==void 0&&(p.delegator_address=d.delegator_address),d.validator_src_address!==void 0&&(p.validator_src_address=d.validator_src_address),d.validator_dst_address!==void 0&&(p.validator_dst_address=d.validator_dst_address),d.amount!==void 0&&(p.amount=d.amount?s.Coin.toJSON(d.amount):void 0),p},fromPartial(d){var p,_,b;const I={delegator_address:"",validator_src_address:"",validator_dst_address:"",amount:void 0};return I.delegator_address=(p=d.delegator_address)!==null&&p!==void 0?p:"",I.validator_src_address=(_=d.validator_src_address)!==null&&_!==void 0?_:"",I.validator_dst_address=(b=d.validator_dst_address)!==null&&b!==void 0?b:"",I.amount=d.amount!==void 0&&d.amount!==null?s.Coin.fromPartial(d.amount):void 0,I}},e.MsgBeginRedelegateResponse={encode:(d,p=t.Writer.create())=>(d.completion_time!==void 0&&r.Timestamp.encode(d.completion_time,p.uint32(10).fork()).ldelim(),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={completion_time:void 0};for(;_.pos>>3==1?I.completion_time=r.Timestamp.decode(_,_.uint32()):_.skipType(7&l)}return I},fromJSON:d=>({completion_time:f(d.completion_time)?i(d.completion_time):void 0}),toJSON(d){const p={};return d.completion_time!==void 0&&(p.completion_time=o(d.completion_time).toISOString()),p},fromPartial(d){const p={completion_time:void 0};return p.completion_time=d.completion_time!==void 0&&d.completion_time!==null?r.Timestamp.fromPartial(d.completion_time):void 0,p}},e.MsgUndelegate={encode:(d,p=t.Writer.create())=>(d.delegator_address!==""&&p.uint32(10).string(d.delegator_address),d.validator_address!==""&&p.uint32(18).string(d.validator_address),d.amount!==void 0&&s.Coin.encode(d.amount,p.uint32(26).fork()).ldelim(),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={delegator_address:"",validator_address:"",amount:void 0};for(;_.pos>>3){case 1:I.delegator_address=_.string();break;case 2:I.validator_address=_.string();break;case 3:I.amount=s.Coin.decode(_,_.uint32());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({delegator_address:f(d.delegator_address)?String(d.delegator_address):"",validator_address:f(d.validator_address)?String(d.validator_address):"",amount:f(d.amount)?s.Coin.fromJSON(d.amount):void 0}),toJSON(d){const p={};return d.delegator_address!==void 0&&(p.delegator_address=d.delegator_address),d.validator_address!==void 0&&(p.validator_address=d.validator_address),d.amount!==void 0&&(p.amount=d.amount?s.Coin.toJSON(d.amount):void 0),p},fromPartial(d){var p,_;const b={delegator_address:"",validator_address:"",amount:void 0};return b.delegator_address=(p=d.delegator_address)!==null&&p!==void 0?p:"",b.validator_address=(_=d.validator_address)!==null&&_!==void 0?_:"",b.amount=d.amount!==void 0&&d.amount!==null?s.Coin.fromPartial(d.amount):void 0,b}},e.MsgUndelegateResponse={encode:(d,p=t.Writer.create())=>(d.completion_time!==void 0&&r.Timestamp.encode(d.completion_time,p.uint32(10).fork()).ldelim(),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={completion_time:void 0};for(;_.pos>>3==1?I.completion_time=r.Timestamp.decode(_,_.uint32()):_.skipType(7&l)}return I},fromJSON:d=>({completion_time:f(d.completion_time)?i(d.completion_time):void 0}),toJSON(d){const p={};return d.completion_time!==void 0&&(p.completion_time=o(d.completion_time).toISOString()),p},fromPartial(d){const p={completion_time:void 0};return p.completion_time=d.completion_time!==void 0&&d.completion_time!==null?r.Timestamp.fromPartial(d.completion_time):void 0,p}},e.MsgClientImpl=class{constructor(d){this.rpc=d,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)}CreateValidator(d){const p=e.MsgCreateValidator.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","CreateValidator",p).then(_=>e.MsgCreateValidatorResponse.decode(new t.Reader(_)))}EditValidator(d){const p=e.MsgEditValidator.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","EditValidator",p).then(_=>e.MsgEditValidatorResponse.decode(new t.Reader(_)))}Delegate(d){const p=e.MsgDelegate.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Delegate",p).then(_=>e.MsgDelegateResponse.decode(new t.Reader(_)))}BeginRedelegate(d){const p=e.MsgBeginRedelegate.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","BeginRedelegate",p).then(_=>e.MsgBeginRedelegateResponse.decode(new t.Reader(_)))}Undelegate(d){const p=e.MsgUndelegate.encode(d).finish();return this.rpc.request("cosmos.staking.v1beta1.Msg","Undelegate",p).then(_=>e.MsgUndelegateResponse.decode(new t.Reader(_)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8502:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(b,I,l,j){j===void 0&&(j=l),Object.defineProperty(b,j,{enumerable:!0,get:function(){return I[l]}})}:function(b,I,l,j){j===void 0&&(j=l),b[j]=I[l]}),O=this&&this.__setModuleDefault||(Object.create?function(b,I){Object.defineProperty(b,"default",{enumerable:!0,value:I})}:function(b,I){b.default=I}),k=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var I={};if(b!=null)for(var l in b)l!=="default"&&Object.prototype.hasOwnProperty.call(b,l)&&w(I,b,l);return O(I,b),I},S=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.SignatureDescriptor_Data_Multi=e.SignatureDescriptor_Data_Single=e.SignatureDescriptor_Data=e.SignatureDescriptor=e.SignatureDescriptors=e.signModeToJSON=e.signModeFromJSON=e.SignMode=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191),u=h(4271);var s;function r(b){switch(b){case 0:case"SIGN_MODE_UNSPECIFIED":return s.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return s.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return s.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return s.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return s.SIGN_MODE_EIP_191;default:return s.UNRECOGNIZED}}function n(b){switch(b){case s.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case s.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case s.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case s.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case s.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";default:return"UNKNOWN"}}function o(){return{mode:0,signature:new Uint8Array}}e.protobufPackage="cosmos.tx.signing.v1beta1",function(b){b[b.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",b[b.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",b[b.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",b[b.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",b[b.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",b[b.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.SignMode||(e.SignMode={})),e.signModeFromJSON=r,e.signModeToJSON=n,e.SignatureDescriptors={encode(b,I=t.Writer.create()){for(const l of b.signatures)e.SignatureDescriptor.encode(l,I.uint32(10).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={signatures:[]};for(;l.pos>>3==1?M.signatures.push(e.SignatureDescriptor.decode(l,l.uint32())):l.skipType(7&N)}return M},fromJSON:b=>({signatures:Array.isArray(b==null?void 0:b.signatures)?b.signatures.map(I=>e.SignatureDescriptor.fromJSON(I)):[]}),toJSON(b){const I={};return b.signatures?I.signatures=b.signatures.map(l=>l?e.SignatureDescriptor.toJSON(l):void 0):I.signatures=[],I},fromPartial(b){var I;const l={signatures:[]};return l.signatures=((I=b.signatures)===null||I===void 0?void 0:I.map(j=>e.SignatureDescriptor.fromPartial(j)))||[],l}},e.SignatureDescriptor={encode:(b,I=t.Writer.create())=>(b.public_key!==void 0&&c.Any.encode(b.public_key,I.uint32(10).fork()).ldelim(),b.data!==void 0&&e.SignatureDescriptor_Data.encode(b.data,I.uint32(18).fork()).ldelim(),b.sequence!=="0"&&I.uint32(24).uint64(b.sequence),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={public_key:void 0,data:void 0,sequence:"0"};for(;l.pos>>3){case 1:M.public_key=c.Any.decode(l,l.uint32());break;case 2:M.data=e.SignatureDescriptor_Data.decode(l,l.uint32());break;case 3:M.sequence=l.uint64().toString();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({public_key:_(b.public_key)?c.Any.fromJSON(b.public_key):void 0,data:_(b.data)?e.SignatureDescriptor_Data.fromJSON(b.data):void 0,sequence:_(b.sequence)?String(b.sequence):"0"}),toJSON(b){const I={};return b.public_key!==void 0&&(I.public_key=b.public_key?c.Any.toJSON(b.public_key):void 0),b.data!==void 0&&(I.data=b.data?e.SignatureDescriptor_Data.toJSON(b.data):void 0),b.sequence!==void 0&&(I.sequence=b.sequence),I},fromPartial(b){var I;const l={public_key:void 0,data:void 0,sequence:"0"};return l.public_key=b.public_key!==void 0&&b.public_key!==null?c.Any.fromPartial(b.public_key):void 0,l.data=b.data!==void 0&&b.data!==null?e.SignatureDescriptor_Data.fromPartial(b.data):void 0,l.sequence=(I=b.sequence)!==null&&I!==void 0?I:"0",l}},e.SignatureDescriptor_Data={encode:(b,I=t.Writer.create())=>(b.single!==void 0&&e.SignatureDescriptor_Data_Single.encode(b.single,I.uint32(10).fork()).ldelim(),b.multi!==void 0&&e.SignatureDescriptor_Data_Multi.encode(b.multi,I.uint32(18).fork()).ldelim(),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={single:void 0,multi:void 0};for(;l.pos>>3){case 1:M.single=e.SignatureDescriptor_Data_Single.decode(l,l.uint32());break;case 2:M.multi=e.SignatureDescriptor_Data_Multi.decode(l,l.uint32());break;default:l.skipType(7&N)}}return M},fromJSON:b=>({single:_(b.single)?e.SignatureDescriptor_Data_Single.fromJSON(b.single):void 0,multi:_(b.multi)?e.SignatureDescriptor_Data_Multi.fromJSON(b.multi):void 0}),toJSON(b){const I={};return b.single!==void 0&&(I.single=b.single?e.SignatureDescriptor_Data_Single.toJSON(b.single):void 0),b.multi!==void 0&&(I.multi=b.multi?e.SignatureDescriptor_Data_Multi.toJSON(b.multi):void 0),I},fromPartial(b){const I={single:void 0,multi:void 0};return I.single=b.single!==void 0&&b.single!==null?e.SignatureDescriptor_Data_Single.fromPartial(b.single):void 0,I.multi=b.multi!==void 0&&b.multi!==null?e.SignatureDescriptor_Data_Multi.fromPartial(b.multi):void 0,I}},e.SignatureDescriptor_Data_Single={encode:(b,I=t.Writer.create())=>(b.mode!==0&&I.uint32(8).int32(b.mode),b.signature.length!==0&&I.uint32(18).bytes(b.signature),I),decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M=o();for(;l.pos>>3){case 1:M.mode=l.int32();break;case 2:M.signature=l.bytes();break;default:l.skipType(7&N)}}return M},fromJSON:b=>({mode:_(b.mode)?r(b.mode):0,signature:_(b.signature)?d(b.signature):new Uint8Array}),toJSON(b){const I={};return b.mode!==void 0&&(I.mode=n(b.mode)),b.signature!==void 0&&(I.signature=function(l){const j=[];for(const M of l)j.push(String.fromCharCode(M));return p(j.join(""))}(b.signature!==void 0?b.signature:new Uint8Array)),I},fromPartial(b){var I,l;const j=o();return j.mode=(I=b.mode)!==null&&I!==void 0?I:0,j.signature=(l=b.signature)!==null&&l!==void 0?l:new Uint8Array,j}},e.SignatureDescriptor_Data_Multi={encode(b,I=t.Writer.create()){b.bitarray!==void 0&&u.CompactBitArray.encode(b.bitarray,I.uint32(10).fork()).ldelim();for(const l of b.signatures)e.SignatureDescriptor_Data.encode(l,I.uint32(18).fork()).ldelim();return I},decode(b,I){const l=b instanceof t.Reader?b:new t.Reader(b);let j=I===void 0?l.len:l.pos+I;const M={bitarray:void 0,signatures:[]};for(;l.pos>>3){case 1:M.bitarray=u.CompactBitArray.decode(l,l.uint32());break;case 2:M.signatures.push(e.SignatureDescriptor_Data.decode(l,l.uint32()));break;default:l.skipType(7&N)}}return M},fromJSON:b=>({bitarray:_(b.bitarray)?u.CompactBitArray.fromJSON(b.bitarray):void 0,signatures:Array.isArray(b==null?void 0:b.signatures)?b.signatures.map(I=>e.SignatureDescriptor_Data.fromJSON(I)):[]}),toJSON(b){const I={};return b.bitarray!==void 0&&(I.bitarray=b.bitarray?u.CompactBitArray.toJSON(b.bitarray):void 0),b.signatures?I.signatures=b.signatures.map(l=>l?e.SignatureDescriptor_Data.toJSON(l):void 0):I.signatures=[],I},fromPartial(b){var I;const l={bitarray:void 0,signatures:[]};return l.bitarray=b.bitarray!==void 0&&b.bitarray!==null?u.CompactBitArray.fromPartial(b.bitarray):void 0,l.signatures=((I=b.signatures)===null||I===void 0?void 0:I.map(j=>e.SignatureDescriptor_Data.fromPartial(j)))||[],l}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const f=i.atob||(b=>i.Buffer.from(b,"base64").toString("binary"));function d(b){const I=f(b),l=new Uint8Array(I.length);for(let j=0;ji.Buffer.from(b,"binary").toString("base64"));function _(b){return b!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6994:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(l,j,M,N){N===void 0&&(N=M),Object.defineProperty(l,N,{enumerable:!0,get:function(){return j[M]}})}:function(l,j,M,N){N===void 0&&(N=M),l[N]=j[M]}),O=this&&this.__setModuleDefault||(Object.create?function(l,j){Object.defineProperty(l,"default",{enumerable:!0,value:j})}:function(l,j){l.default=j}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var j={};if(l!=null)for(var M in l)M!=="default"&&Object.prototype.hasOwnProperty.call(l,M)&&w(j,l,M);return O(j,l),j},S=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.Fee=e.ModeInfo_Multi=e.ModeInfo_Single=e.ModeInfo=e.SignerInfo=e.AuthInfo=e.TxBody=e.SignDoc=e.TxRaw=e.Tx=e.Txs=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191),u=h(8502),s=h(4271),r=h(2976);function n(){return{body_bytes:new Uint8Array,auth_info_bytes:new Uint8Array,signatures:[]}}function o(){return{body_bytes:new Uint8Array,auth_info_bytes:new Uint8Array,chain_id:"",account_number:"0"}}e.protobufPackage="cosmos.tx.v1beta1",e.Txs={encode(l,j=t.Writer.create()){for(const M of l.tx)j.uint32(10).bytes(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={tx:[]};for(;M.pos>>3==1?C.tx.push(M.bytes()):M.skipType(7&x)}return C},fromJSON:l=>({tx:Array.isArray(l==null?void 0:l.tx)?l.tx.map(j=>d(j)):[]}),toJSON(l){const j={};return l.tx?j.tx=l.tx.map(M=>_(M!==void 0?M:new Uint8Array)):j.tx=[],j},fromPartial(l){var j;const M={tx:[]};return M.tx=((j=l.tx)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.Tx={encode(l,j=t.Writer.create()){l.body!==void 0&&e.TxBody.encode(l.body,j.uint32(10).fork()).ldelim(),l.auth_info!==void 0&&e.AuthInfo.encode(l.auth_info,j.uint32(18).fork()).ldelim();for(const M of l.signatures)j.uint32(26).bytes(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={body:void 0,auth_info:void 0,signatures:[]};for(;M.pos>>3){case 1:C.body=e.TxBody.decode(M,M.uint32());break;case 2:C.auth_info=e.AuthInfo.decode(M,M.uint32());break;case 3:C.signatures.push(M.bytes());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({body:I(l.body)?e.TxBody.fromJSON(l.body):void 0,auth_info:I(l.auth_info)?e.AuthInfo.fromJSON(l.auth_info):void 0,signatures:Array.isArray(l==null?void 0:l.signatures)?l.signatures.map(j=>d(j)):[]}),toJSON(l){const j={};return l.body!==void 0&&(j.body=l.body?e.TxBody.toJSON(l.body):void 0),l.auth_info!==void 0&&(j.auth_info=l.auth_info?e.AuthInfo.toJSON(l.auth_info):void 0),l.signatures?j.signatures=l.signatures.map(M=>_(M!==void 0?M:new Uint8Array)):j.signatures=[],j},fromPartial(l){var j;const M={body:void 0,auth_info:void 0,signatures:[]};return M.body=l.body!==void 0&&l.body!==null?e.TxBody.fromPartial(l.body):void 0,M.auth_info=l.auth_info!==void 0&&l.auth_info!==null?e.AuthInfo.fromPartial(l.auth_info):void 0,M.signatures=((j=l.signatures)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.TxRaw={encode(l,j=t.Writer.create()){l.body_bytes.length!==0&&j.uint32(10).bytes(l.body_bytes),l.auth_info_bytes.length!==0&&j.uint32(18).bytes(l.auth_info_bytes);for(const M of l.signatures)j.uint32(26).bytes(M);return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=n();for(;M.pos>>3){case 1:C.body_bytes=M.bytes();break;case 2:C.auth_info_bytes=M.bytes();break;case 3:C.signatures.push(M.bytes());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({body_bytes:I(l.body_bytes)?d(l.body_bytes):new Uint8Array,auth_info_bytes:I(l.auth_info_bytes)?d(l.auth_info_bytes):new Uint8Array,signatures:Array.isArray(l==null?void 0:l.signatures)?l.signatures.map(j=>d(j)):[]}),toJSON(l){const j={};return l.body_bytes!==void 0&&(j.body_bytes=_(l.body_bytes!==void 0?l.body_bytes:new Uint8Array)),l.auth_info_bytes!==void 0&&(j.auth_info_bytes=_(l.auth_info_bytes!==void 0?l.auth_info_bytes:new Uint8Array)),l.signatures?j.signatures=l.signatures.map(M=>_(M!==void 0?M:new Uint8Array)):j.signatures=[],j},fromPartial(l){var j,M,N;const C=n();return C.body_bytes=(j=l.body_bytes)!==null&&j!==void 0?j:new Uint8Array,C.auth_info_bytes=(M=l.auth_info_bytes)!==null&&M!==void 0?M:new Uint8Array,C.signatures=((N=l.signatures)===null||N===void 0?void 0:N.map(x=>x))||[],C}},e.SignDoc={encode:(l,j=t.Writer.create())=>(l.body_bytes.length!==0&&j.uint32(10).bytes(l.body_bytes),l.auth_info_bytes.length!==0&&j.uint32(18).bytes(l.auth_info_bytes),l.chain_id!==""&&j.uint32(26).string(l.chain_id),l.account_number!=="0"&&j.uint32(32).uint64(l.account_number),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=o();for(;M.pos>>3){case 1:C.body_bytes=M.bytes();break;case 2:C.auth_info_bytes=M.bytes();break;case 3:C.chain_id=M.string();break;case 4:C.account_number=b(M.uint64());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({body_bytes:I(l.body_bytes)?d(l.body_bytes):new Uint8Array,auth_info_bytes:I(l.auth_info_bytes)?d(l.auth_info_bytes):new Uint8Array,chain_id:I(l.chain_id)?String(l.chain_id):"",account_number:I(l.account_number)?String(l.account_number):"0"}),toJSON(l){const j={};return l.body_bytes!==void 0&&(j.body_bytes=_(l.body_bytes!==void 0?l.body_bytes:new Uint8Array)),l.auth_info_bytes!==void 0&&(j.auth_info_bytes=_(l.auth_info_bytes!==void 0?l.auth_info_bytes:new Uint8Array)),l.chain_id!==void 0&&(j.chain_id=l.chain_id),l.account_number!==void 0&&(j.account_number=l.account_number),j},fromPartial(l){var j,M,N,C;const x=o();return x.body_bytes=(j=l.body_bytes)!==null&&j!==void 0?j:new Uint8Array,x.auth_info_bytes=(M=l.auth_info_bytes)!==null&&M!==void 0?M:new Uint8Array,x.chain_id=(N=l.chain_id)!==null&&N!==void 0?N:"",x.account_number=(C=l.account_number)!==null&&C!==void 0?C:"0",x}},e.TxBody={encode(l,j=t.Writer.create()){for(const M of l.messages)c.Any.encode(M,j.uint32(10).fork()).ldelim();l.memo!==""&&j.uint32(18).string(l.memo),l.timeout_height!=="0"&&j.uint32(24).uint64(l.timeout_height);for(const M of l.extension_options)c.Any.encode(M,j.uint32(8186).fork()).ldelim();for(const M of l.non_critical_extension_options)c.Any.encode(M,j.uint32(16378).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={messages:[],memo:"",timeout_height:"0",extension_options:[],non_critical_extension_options:[]};for(;M.pos>>3){case 1:C.messages.push(c.Any.decode(M,M.uint32()));break;case 2:C.memo=M.string();break;case 3:C.timeout_height=b(M.uint64());break;case 1023:C.extension_options.push(c.Any.decode(M,M.uint32()));break;case 2047:C.non_critical_extension_options.push(c.Any.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({messages:Array.isArray(l==null?void 0:l.messages)?l.messages.map(j=>c.Any.fromJSON(j)):[],memo:I(l.memo)?String(l.memo):"",timeout_height:I(l.timeout_height)?String(l.timeout_height):"0",extension_options:Array.isArray(l==null?void 0:l.extension_options)?l.extension_options.map(j=>c.Any.fromJSON(j)):[],non_critical_extension_options:Array.isArray(l==null?void 0:l.non_critical_extension_options)?l.non_critical_extension_options.map(j=>c.Any.fromJSON(j)):[]}),toJSON(l){const j={};return l.messages?j.messages=l.messages.map(M=>M?c.Any.toJSON(M):void 0):j.messages=[],l.memo!==void 0&&(j.memo=l.memo),l.timeout_height!==void 0&&(j.timeout_height=l.timeout_height),l.extension_options?j.extension_options=l.extension_options.map(M=>M?c.Any.toJSON(M):void 0):j.extension_options=[],l.non_critical_extension_options?j.non_critical_extension_options=l.non_critical_extension_options.map(M=>M?c.Any.toJSON(M):void 0):j.non_critical_extension_options=[],j},fromPartial(l){var j,M,N,C,x;const P={messages:[],memo:"",timeout_height:"0",extension_options:[],non_critical_extension_options:[]};return P.messages=((j=l.messages)===null||j===void 0?void 0:j.map(v=>c.Any.fromPartial(v)))||[],P.memo=(M=l.memo)!==null&&M!==void 0?M:"",P.timeout_height=(N=l.timeout_height)!==null&&N!==void 0?N:"0",P.extension_options=((C=l.extension_options)===null||C===void 0?void 0:C.map(v=>c.Any.fromPartial(v)))||[],P.non_critical_extension_options=((x=l.non_critical_extension_options)===null||x===void 0?void 0:x.map(v=>c.Any.fromPartial(v)))||[],P}},e.AuthInfo={encode(l,j=t.Writer.create()){for(const M of l.signer_infos)e.SignerInfo.encode(M,j.uint32(10).fork()).ldelim();return l.fee!==void 0&&e.Fee.encode(l.fee,j.uint32(18).fork()).ldelim(),j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={signer_infos:[],fee:void 0};for(;M.pos>>3){case 1:C.signer_infos.push(e.SignerInfo.decode(M,M.uint32()));break;case 2:C.fee=e.Fee.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({signer_infos:Array.isArray(l==null?void 0:l.signer_infos)?l.signer_infos.map(j=>e.SignerInfo.fromJSON(j)):[],fee:I(l.fee)?e.Fee.fromJSON(l.fee):void 0}),toJSON(l){const j={};return l.signer_infos?j.signer_infos=l.signer_infos.map(M=>M?e.SignerInfo.toJSON(M):void 0):j.signer_infos=[],l.fee!==void 0&&(j.fee=l.fee?e.Fee.toJSON(l.fee):void 0),j},fromPartial(l){var j;const M={signer_infos:[],fee:void 0};return M.signer_infos=((j=l.signer_infos)===null||j===void 0?void 0:j.map(N=>e.SignerInfo.fromPartial(N)))||[],M.fee=l.fee!==void 0&&l.fee!==null?e.Fee.fromPartial(l.fee):void 0,M}},e.SignerInfo={encode:(l,j=t.Writer.create())=>(l.public_key!==void 0&&c.Any.encode(l.public_key,j.uint32(10).fork()).ldelim(),l.mode_info!==void 0&&e.ModeInfo.encode(l.mode_info,j.uint32(18).fork()).ldelim(),l.sequence!=="0"&&j.uint32(24).uint64(l.sequence),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={public_key:void 0,mode_info:void 0,sequence:"0"};for(;M.pos>>3){case 1:C.public_key=c.Any.decode(M,M.uint32());break;case 2:C.mode_info=e.ModeInfo.decode(M,M.uint32());break;case 3:C.sequence=b(M.uint64());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({public_key:I(l.public_key)?c.Any.fromJSON(l.public_key):void 0,mode_info:I(l.mode_info)?e.ModeInfo.fromJSON(l.mode_info):void 0,sequence:I(l.sequence)?String(l.sequence):"0"}),toJSON(l){const j={};return l.public_key!==void 0&&(j.public_key=l.public_key?c.Any.toJSON(l.public_key):void 0),l.mode_info!==void 0&&(j.mode_info=l.mode_info?e.ModeInfo.toJSON(l.mode_info):void 0),l.sequence!==void 0&&(j.sequence=l.sequence),j},fromPartial(l){var j;const M={public_key:void 0,mode_info:void 0,sequence:"0"};return M.public_key=l.public_key!==void 0&&l.public_key!==null?c.Any.fromPartial(l.public_key):void 0,M.mode_info=l.mode_info!==void 0&&l.mode_info!==null?e.ModeInfo.fromPartial(l.mode_info):void 0,M.sequence=(j=l.sequence)!==null&&j!==void 0?j:"0",M}},e.ModeInfo={encode:(l,j=t.Writer.create())=>(l.single!==void 0&&e.ModeInfo_Single.encode(l.single,j.uint32(10).fork()).ldelim(),l.multi!==void 0&&e.ModeInfo_Multi.encode(l.multi,j.uint32(18).fork()).ldelim(),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={single:void 0,multi:void 0};for(;M.pos>>3){case 1:C.single=e.ModeInfo_Single.decode(M,M.uint32());break;case 2:C.multi=e.ModeInfo_Multi.decode(M,M.uint32());break;default:M.skipType(7&x)}}return C},fromJSON:l=>({single:I(l.single)?e.ModeInfo_Single.fromJSON(l.single):void 0,multi:I(l.multi)?e.ModeInfo_Multi.fromJSON(l.multi):void 0}),toJSON(l){const j={};return l.single!==void 0&&(j.single=l.single?e.ModeInfo_Single.toJSON(l.single):void 0),l.multi!==void 0&&(j.multi=l.multi?e.ModeInfo_Multi.toJSON(l.multi):void 0),j},fromPartial(l){const j={single:void 0,multi:void 0};return j.single=l.single!==void 0&&l.single!==null?e.ModeInfo_Single.fromPartial(l.single):void 0,j.multi=l.multi!==void 0&&l.multi!==null?e.ModeInfo_Multi.fromPartial(l.multi):void 0,j}},e.ModeInfo_Single={encode:(l,j=t.Writer.create())=>(l.mode!==0&&j.uint32(8).int32(l.mode),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={mode:0};for(;M.pos>>3==1?C.mode=M.int32():M.skipType(7&x)}return C},fromJSON:l=>({mode:I(l.mode)?(0,u.signModeFromJSON)(l.mode):0}),toJSON(l){const j={};return l.mode!==void 0&&(j.mode=(0,u.signModeToJSON)(l.mode)),j},fromPartial(l){var j;const M={mode:0};return M.mode=(j=l.mode)!==null&&j!==void 0?j:0,M}},e.ModeInfo_Multi={encode(l,j=t.Writer.create()){l.bitarray!==void 0&&s.CompactBitArray.encode(l.bitarray,j.uint32(10).fork()).ldelim();for(const M of l.mode_infos)e.ModeInfo.encode(M,j.uint32(18).fork()).ldelim();return j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={bitarray:void 0,mode_infos:[]};for(;M.pos>>3){case 1:C.bitarray=s.CompactBitArray.decode(M,M.uint32());break;case 2:C.mode_infos.push(e.ModeInfo.decode(M,M.uint32()));break;default:M.skipType(7&x)}}return C},fromJSON:l=>({bitarray:I(l.bitarray)?s.CompactBitArray.fromJSON(l.bitarray):void 0,mode_infos:Array.isArray(l==null?void 0:l.mode_infos)?l.mode_infos.map(j=>e.ModeInfo.fromJSON(j)):[]}),toJSON(l){const j={};return l.bitarray!==void 0&&(j.bitarray=l.bitarray?s.CompactBitArray.toJSON(l.bitarray):void 0),l.mode_infos?j.mode_infos=l.mode_infos.map(M=>M?e.ModeInfo.toJSON(M):void 0):j.mode_infos=[],j},fromPartial(l){var j;const M={bitarray:void 0,mode_infos:[]};return M.bitarray=l.bitarray!==void 0&&l.bitarray!==null?s.CompactBitArray.fromPartial(l.bitarray):void 0,M.mode_infos=((j=l.mode_infos)===null||j===void 0?void 0:j.map(N=>e.ModeInfo.fromPartial(N)))||[],M}},e.Fee={encode(l,j=t.Writer.create()){for(const M of l.amount)r.Coin.encode(M,j.uint32(10).fork()).ldelim();return l.gas_limit!=="0"&&j.uint32(16).uint64(l.gas_limit),l.payer!==""&&j.uint32(26).string(l.payer),l.granter!==""&&j.uint32(34).string(l.granter),j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={amount:[],gas_limit:"0",payer:"",granter:""};for(;M.pos>>3){case 1:C.amount.push(r.Coin.decode(M,M.uint32()));break;case 2:C.gas_limit=b(M.uint64());break;case 3:C.payer=M.string();break;case 4:C.granter=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({amount:Array.isArray(l==null?void 0:l.amount)?l.amount.map(j=>r.Coin.fromJSON(j)):[],gas_limit:I(l.gas_limit)?String(l.gas_limit):"0",payer:I(l.payer)?String(l.payer):"",granter:I(l.granter)?String(l.granter):""}),toJSON(l){const j={};return l.amount?j.amount=l.amount.map(M=>M?r.Coin.toJSON(M):void 0):j.amount=[],l.gas_limit!==void 0&&(j.gas_limit=l.gas_limit),l.payer!==void 0&&(j.payer=l.payer),l.granter!==void 0&&(j.granter=l.granter),j},fromPartial(l){var j,M,N,C;const x={amount:[],gas_limit:"0",payer:"",granter:""};return x.amount=((j=l.amount)===null||j===void 0?void 0:j.map(P=>r.Coin.fromPartial(P)))||[],x.gas_limit=(M=l.gas_limit)!==null&&M!==void 0?M:"0",x.payer=(N=l.payer)!==null&&N!==void 0?N:"",x.granter=(C=l.granter)!==null&&C!==void 0?C:"",x}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const f=i.atob||(l=>i.Buffer.from(l,"base64").toString("binary"));function d(l){const j=f(l),M=new Uint8Array(j.length);for(let N=0;Ni.Buffer.from(l,"binary").toString("base64"));function _(l){const j=[];for(const M of l)j.push(String.fromCharCode(M));return p(j.join(""))}function b(l){return l.toString()}function I(l){return l!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8310:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.ModuleVersion=e.CancelSoftwareUpgradeProposal=e.SoftwareUpgradeProposal=e.Plan=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(5090),u=h(4191);function s(o){return{seconds:Math.trunc(o.getTime()/1e3).toString(),nanos:o.getTime()%1e3*1e6}}function r(o){return o.toString()}function n(o){return o!=null}e.protobufPackage="cosmos.upgrade.v1beta1",e.Plan={encode:(o,i=t.Writer.create())=>(o.name!==""&&i.uint32(10).string(o.name),o.time!==void 0&&c.Timestamp.encode(o.time,i.uint32(18).fork()).ldelim(),o.height!=="0"&&i.uint32(24).int64(o.height),o.info!==""&&i.uint32(34).string(o.info),o.upgraded_client_state!==void 0&&u.Any.encode(o.upgraded_client_state,i.uint32(42).fork()).ldelim(),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={name:"",time:void 0,height:"0",info:"",upgraded_client_state:void 0};for(;f.pos>>3){case 1:p.name=f.string();break;case 2:p.time=c.Timestamp.decode(f,f.uint32());break;case 3:p.height=r(f.int64());break;case 4:p.info=f.string();break;case 5:p.upgraded_client_state=u.Any.decode(f,f.uint32());break;default:f.skipType(7&_)}}return p},fromJSON:o=>{return{name:n(o.name)?String(o.name):"",time:n(o.time)?(i=o.time,i instanceof Date?s(i):typeof i=="string"?s(new Date(i)):c.Timestamp.fromJSON(i)):void 0,height:n(o.height)?String(o.height):"0",info:n(o.info)?String(o.info):"",upgraded_client_state:n(o.upgraded_client_state)?u.Any.fromJSON(o.upgraded_client_state):void 0};var i},toJSON(o){const i={};return o.name!==void 0&&(i.name=o.name),o.time!==void 0&&(i.time=function(f){let d=1e3*Number(f.seconds);return d+=f.nanos/1e6,new Date(d)}(o.time).toISOString()),o.height!==void 0&&(i.height=o.height),o.info!==void 0&&(i.info=o.info),o.upgraded_client_state!==void 0&&(i.upgraded_client_state=o.upgraded_client_state?u.Any.toJSON(o.upgraded_client_state):void 0),i},fromPartial(o){var i,f,d;const p={name:"",time:void 0,height:"0",info:"",upgraded_client_state:void 0};return p.name=(i=o.name)!==null&&i!==void 0?i:"",p.time=o.time!==void 0&&o.time!==null?c.Timestamp.fromPartial(o.time):void 0,p.height=(f=o.height)!==null&&f!==void 0?f:"0",p.info=(d=o.info)!==null&&d!==void 0?d:"",p.upgraded_client_state=o.upgraded_client_state!==void 0&&o.upgraded_client_state!==null?u.Any.fromPartial(o.upgraded_client_state):void 0,p}},e.SoftwareUpgradeProposal={encode:(o,i=t.Writer.create())=>(o.title!==""&&i.uint32(10).string(o.title),o.description!==""&&i.uint32(18).string(o.description),o.plan!==void 0&&e.Plan.encode(o.plan,i.uint32(26).fork()).ldelim(),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={title:"",description:"",plan:void 0};for(;f.pos>>3){case 1:p.title=f.string();break;case 2:p.description=f.string();break;case 3:p.plan=e.Plan.decode(f,f.uint32());break;default:f.skipType(7&_)}}return p},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):"",plan:n(o.plan)?e.Plan.fromJSON(o.plan):void 0}),toJSON(o){const i={};return o.title!==void 0&&(i.title=o.title),o.description!==void 0&&(i.description=o.description),o.plan!==void 0&&(i.plan=o.plan?e.Plan.toJSON(o.plan):void 0),i},fromPartial(o){var i,f;const d={title:"",description:"",plan:void 0};return d.title=(i=o.title)!==null&&i!==void 0?i:"",d.description=(f=o.description)!==null&&f!==void 0?f:"",d.plan=o.plan!==void 0&&o.plan!==null?e.Plan.fromPartial(o.plan):void 0,d}},e.CancelSoftwareUpgradeProposal={encode:(o,i=t.Writer.create())=>(o.title!==""&&i.uint32(10).string(o.title),o.description!==""&&i.uint32(18).string(o.description),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={title:"",description:""};for(;f.pos>>3){case 1:p.title=f.string();break;case 2:p.description=f.string();break;default:f.skipType(7&_)}}return p},fromJSON:o=>({title:n(o.title)?String(o.title):"",description:n(o.description)?String(o.description):""}),toJSON(o){const i={};return o.title!==void 0&&(i.title=o.title),o.description!==void 0&&(i.description=o.description),i},fromPartial(o){var i,f;const d={title:"",description:""};return d.title=(i=o.title)!==null&&i!==void 0?i:"",d.description=(f=o.description)!==null&&f!==void 0?f:"",d}},e.ModuleVersion={encode:(o,i=t.Writer.create())=>(o.name!==""&&i.uint32(10).string(o.name),o.version!=="0"&&i.uint32(16).uint64(o.version),i),decode(o,i){const f=o instanceof t.Reader?o:new t.Reader(o);let d=i===void 0?f.len:f.pos+i;const p={name:"",version:"0"};for(;f.pos>>3){case 1:p.name=f.string();break;case 2:p.version=r(f.uint64());break;default:f.skipType(7&_)}}return p},fromJSON:o=>({name:n(o.name)?String(o.name):"",version:n(o.version)?String(o.version):"0"}),toJSON(o){const i={};return o.name!==void 0&&(i.name=o.name),o.version!==void 0&&(i.version=o.version),i},fromPartial(o){var i,f;const d={name:"",version:"0"};return d.name=(i=o.name)!==null&&i!==void 0?i:"",d.version=(f=o.version)!==null&&f!==void 0?f:"0",d}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8644:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgCreateVestingAccountResponse=e.MsgCreateVestingAccount=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976);function u(s){return s!=null}e.protobufPackage="cosmos.vesting.v1beta1",e.MsgCreateVestingAccount={encode(s,r=t.Writer.create()){s.from_address!==""&&r.uint32(10).string(s.from_address),s.to_address!==""&&r.uint32(18).string(s.to_address);for(const n of s.amount)c.Coin.encode(n,r.uint32(26).fork()).ldelim();return s.end_time!=="0"&&r.uint32(32).int64(s.end_time),s.delayed===!0&&r.uint32(40).bool(s.delayed),r},decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={from_address:"",to_address:"",amount:[],end_time:"0",delayed:!1};for(;n.pos>>3){case 1:i.from_address=n.string();break;case 2:i.to_address=n.string();break;case 3:i.amount.push(c.Coin.decode(n,n.uint32()));break;case 4:i.end_time=n.int64().toString();break;case 5:i.delayed=n.bool();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({from_address:u(s.from_address)?String(s.from_address):"",to_address:u(s.to_address)?String(s.to_address):"",amount:Array.isArray(s==null?void 0:s.amount)?s.amount.map(r=>c.Coin.fromJSON(r)):[],end_time:u(s.end_time)?String(s.end_time):"0",delayed:!!u(s.delayed)&&!!s.delayed}),toJSON(s){const r={};return s.from_address!==void 0&&(r.from_address=s.from_address),s.to_address!==void 0&&(r.to_address=s.to_address),s.amount?r.amount=s.amount.map(n=>n?c.Coin.toJSON(n):void 0):r.amount=[],s.end_time!==void 0&&(r.end_time=s.end_time),s.delayed!==void 0&&(r.delayed=s.delayed),r},fromPartial(s){var r,n,o,i,f;const d={from_address:"",to_address:"",amount:[],end_time:"0",delayed:!1};return d.from_address=(r=s.from_address)!==null&&r!==void 0?r:"",d.to_address=(n=s.to_address)!==null&&n!==void 0?n:"",d.amount=((o=s.amount)===null||o===void 0?void 0:o.map(p=>c.Coin.fromPartial(p)))||[],d.end_time=(i=s.end_time)!==null&&i!==void 0?i:"0",d.delayed=(f=s.delayed)!==null&&f!==void 0&&f,d}},e.MsgCreateVestingAccountResponse={encode:(s,r=t.Writer.create())=>r,decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;for(;n.pos({}),toJSON:s=>({}),fromPartial:s=>({})},e.MsgClientImpl=class{constructor(s){this.rpc=s,this.CreateVestingAccount=this.CreateVestingAccount.bind(this)}CreateVestingAccount(s){const r=e.MsgCreateVestingAccount.encode(s).finish();return this.rpc.request("cosmos.vesting.v1beta1.Msg","CreateVestingAccount",r).then(n=>e.MsgCreateVestingAccountResponse.decode(new t.Reader(n)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4191:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(i,f,d,p){p===void 0&&(p=d),Object.defineProperty(i,p,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,p){p===void 0&&(p=d),i[p]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.Any=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(){return{type_url:"",value:new Uint8Array}}e.protobufPackage="google.protobuf",e.Any={encode:(i,f=t.Writer.create())=>(i.type_url!==""&&f.uint32(10).string(i.type_url),i.value.length!==0&&f.uint32(18).bytes(i.value),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _=c();for(;d.pos>>3){case 1:_.type_url=d.string();break;case 2:_.value=d.bytes();break;default:d.skipType(7&b)}}return _},fromJSON:i=>({type_url:o(i.type_url)?String(i.type_url):"",value:o(i.value)?r(i.value):new Uint8Array}),toJSON(i){const f={};return i.type_url!==void 0&&(f.type_url=i.type_url),i.value!==void 0&&(f.value=function(d){const p=[];for(const _ of d)p.push(String.fromCharCode(_));return n(p.join(""))}(i.value!==void 0?i.value:new Uint8Array)),f},fromPartial(i){var f,d;const p=c();return p.type_url=(f=i.type_url)!==null&&f!==void 0?f:"",p.value=(d=i.value)!==null&&d!==void 0?d:new Uint8Array,p}};var u=(()=>{if(u!==void 0)return u;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const s=u.atob||(i=>u.Buffer.from(i,"base64").toString("binary"));function r(i){const f=s(i),d=new Uint8Array(f.length);for(let p=0;pu.Buffer.from(i,"binary").toString("base64"));function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6138:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.Duration=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(u){return u!=null}e.protobufPackage="google.protobuf",e.Duration={encode:(u,s=t.Writer.create())=>(u.seconds!=="0"&&s.uint32(8).int64(u.seconds),u.nanos!==0&&s.uint32(16).int32(u.nanos),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={seconds:"0",nanos:0};for(;r.pos>>3){case 1:o.seconds=r.int64().toString();break;case 2:o.nanos=r.int32();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({seconds:c(u.seconds)?String(u.seconds):"0",nanos:c(u.nanos)?Number(u.nanos):0}),toJSON(u){const s={};return u.seconds!==void 0&&(s.seconds=u.seconds),u.nanos!==void 0&&(s.nanos=Math.round(u.nanos)),s},fromPartial(u){var s,r;const n={seconds:"0",nanos:0};return n.seconds=(s=u.seconds)!==null&&s!==void 0?s:"0",n.nanos=(r=u.nanos)!==null&&r!==void 0?r:0,n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5090:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(u,s,r,n){n===void 0&&(n=r),Object.defineProperty(u,n,{enumerable:!0,get:function(){return s[r]}})}:function(u,s,r,n){n===void 0&&(n=r),u[n]=s[r]}),O=this&&this.__setModuleDefault||(Object.create?function(u,s){Object.defineProperty(u,"default",{enumerable:!0,value:s})}:function(u,s){u.default=s}),k=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var s={};if(u!=null)for(var r in u)r!=="default"&&Object.prototype.hasOwnProperty.call(u,r)&&w(s,u,r);return O(s,u),s},S=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(u){return u!=null}e.protobufPackage="google.protobuf",e.Timestamp={encode:(u,s=t.Writer.create())=>(u.seconds!=="0"&&s.uint32(8).int64(u.seconds),u.nanos!==0&&s.uint32(16).int32(u.nanos),s),decode(u,s){const r=u instanceof t.Reader?u:new t.Reader(u);let n=s===void 0?r.len:r.pos+s;const o={seconds:"0",nanos:0};for(;r.pos>>3){case 1:o.seconds=r.int64().toString();break;case 2:o.nanos=r.int32();break;default:r.skipType(7&i)}}return o},fromJSON:u=>({seconds:c(u.seconds)?String(u.seconds):"0",nanos:c(u.nanos)?Number(u.nanos):0}),toJSON(u){const s={};return u.seconds!==void 0&&(s.seconds=u.seconds),u.nanos!==void 0&&(s.nanos=Math.round(u.nanos)),s},fromPartial(u){var s,r;const n={seconds:"0",nanos:0};return n.seconds=(s=u.seconds)!==null&&s!==void 0?s:"0",n.nanos=(r=u.nanos)!==null&&r!==void 0?r:0,n}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1106:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.IdentifiedPacketFees=e.PacketFees=e.PacketFee=e.Fee=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(5414),u=h(2976);function s(r){return r!=null}e.protobufPackage="ibc.applications.fee.v1",e.Fee={encode(r,n=t.Writer.create()){for(const o of r.recv_fee)u.Coin.encode(o,n.uint32(10).fork()).ldelim();for(const o of r.ack_fee)u.Coin.encode(o,n.uint32(18).fork()).ldelim();for(const o of r.timeout_fee)u.Coin.encode(o,n.uint32(26).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={recv_fee:[],ack_fee:[],timeout_fee:[]};for(;o.pos>>3){case 1:f.recv_fee.push(u.Coin.decode(o,o.uint32()));break;case 2:f.ack_fee.push(u.Coin.decode(o,o.uint32()));break;case 3:f.timeout_fee.push(u.Coin.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({recv_fee:Array.isArray(r==null?void 0:r.recv_fee)?r.recv_fee.map(n=>u.Coin.fromJSON(n)):[],ack_fee:Array.isArray(r==null?void 0:r.ack_fee)?r.ack_fee.map(n=>u.Coin.fromJSON(n)):[],timeout_fee:Array.isArray(r==null?void 0:r.timeout_fee)?r.timeout_fee.map(n=>u.Coin.fromJSON(n)):[]}),toJSON(r){const n={};return r.recv_fee?n.recv_fee=r.recv_fee.map(o=>o?u.Coin.toJSON(o):void 0):n.recv_fee=[],r.ack_fee?n.ack_fee=r.ack_fee.map(o=>o?u.Coin.toJSON(o):void 0):n.ack_fee=[],r.timeout_fee?n.timeout_fee=r.timeout_fee.map(o=>o?u.Coin.toJSON(o):void 0):n.timeout_fee=[],n},fromPartial(r){var n,o,i;const f={recv_fee:[],ack_fee:[],timeout_fee:[]};return f.recv_fee=((n=r.recv_fee)===null||n===void 0?void 0:n.map(d=>u.Coin.fromPartial(d)))||[],f.ack_fee=((o=r.ack_fee)===null||o===void 0?void 0:o.map(d=>u.Coin.fromPartial(d)))||[],f.timeout_fee=((i=r.timeout_fee)===null||i===void 0?void 0:i.map(d=>u.Coin.fromPartial(d)))||[],f}},e.PacketFee={encode(r,n=t.Writer.create()){r.fee!==void 0&&e.Fee.encode(r.fee,n.uint32(10).fork()).ldelim(),r.refund_address!==""&&n.uint32(18).string(r.refund_address);for(const o of r.relayers)n.uint32(26).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={fee:void 0,refund_address:"",relayers:[]};for(;o.pos>>3){case 1:f.fee=e.Fee.decode(o,o.uint32());break;case 2:f.refund_address=o.string();break;case 3:f.relayers.push(o.string());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({fee:s(r.fee)?e.Fee.fromJSON(r.fee):void 0,refund_address:s(r.refund_address)?String(r.refund_address):"",relayers:Array.isArray(r==null?void 0:r.relayers)?r.relayers.map(n=>String(n)):[]}),toJSON(r){const n={};return r.fee!==void 0&&(n.fee=r.fee?e.Fee.toJSON(r.fee):void 0),r.refund_address!==void 0&&(n.refund_address=r.refund_address),r.relayers?n.relayers=r.relayers.map(o=>o):n.relayers=[],n},fromPartial(r){var n,o;const i={fee:void 0,refund_address:"",relayers:[]};return i.fee=r.fee!==void 0&&r.fee!==null?e.Fee.fromPartial(r.fee):void 0,i.refund_address=(n=r.refund_address)!==null&&n!==void 0?n:"",i.relayers=((o=r.relayers)===null||o===void 0?void 0:o.map(f=>f))||[],i}},e.PacketFees={encode(r,n=t.Writer.create()){for(const o of r.packet_fees)e.PacketFee.encode(o,n.uint32(10).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_fees:[]};for(;o.pos>>3==1?f.packet_fees.push(e.PacketFee.decode(o,o.uint32())):o.skipType(7&d)}return f},fromJSON:r=>({packet_fees:Array.isArray(r==null?void 0:r.packet_fees)?r.packet_fees.map(n=>e.PacketFee.fromJSON(n)):[]}),toJSON(r){const n={};return r.packet_fees?n.packet_fees=r.packet_fees.map(o=>o?e.PacketFee.toJSON(o):void 0):n.packet_fees=[],n},fromPartial(r){var n;const o={packet_fees:[]};return o.packet_fees=((n=r.packet_fees)===null||n===void 0?void 0:n.map(i=>e.PacketFee.fromPartial(i)))||[],o}},e.IdentifiedPacketFees={encode(r,n=t.Writer.create()){r.packet_id!==void 0&&c.PacketId.encode(r.packet_id,n.uint32(10).fork()).ldelim();for(const o of r.packet_fees)e.PacketFee.encode(o,n.uint32(18).fork()).ldelim();return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_id:void 0,packet_fees:[]};for(;o.pos>>3){case 1:f.packet_id=c.PacketId.decode(o,o.uint32());break;case 2:f.packet_fees.push(e.PacketFee.decode(o,o.uint32()));break;default:o.skipType(7&d)}}return f},fromJSON:r=>({packet_id:s(r.packet_id)?c.PacketId.fromJSON(r.packet_id):void 0,packet_fees:Array.isArray(r==null?void 0:r.packet_fees)?r.packet_fees.map(n=>e.PacketFee.fromJSON(n)):[]}),toJSON(r){const n={};return r.packet_id!==void 0&&(n.packet_id=r.packet_id?c.PacketId.toJSON(r.packet_id):void 0),r.packet_fees?n.packet_fees=r.packet_fees.map(o=>o?e.PacketFee.toJSON(o):void 0):n.packet_fees=[],n},fromPartial(r){var n;const o={packet_id:void 0,packet_fees:[]};return o.packet_id=r.packet_id!==void 0&&r.packet_id!==null?c.PacketId.fromPartial(r.packet_id):void 0,o.packet_fees=((n=r.packet_fees)===null||n===void 0?void 0:n.map(i=>e.PacketFee.fromPartial(i)))||[],o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6065:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgPayPacketFeeAsyncResponse=e.MsgPayPacketFeeAsync=e.MsgPayPacketFeeResponse=e.MsgPayPacketFee=e.MsgRegisterCounterpartyPayeeResponse=e.MsgRegisterCounterpartyPayee=e.MsgRegisterPayeeResponse=e.MsgRegisterPayee=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(1106),u=h(5414);function s(r){return r!=null}e.protobufPackage="ibc.applications.fee.v1",e.MsgRegisterPayee={encode:(r,n=t.Writer.create())=>(r.port_id!==""&&n.uint32(10).string(r.port_id),r.channel_id!==""&&n.uint32(18).string(r.channel_id),r.relayer!==""&&n.uint32(26).string(r.relayer),r.payee!==""&&n.uint32(34).string(r.payee),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={port_id:"",channel_id:"",relayer:"",payee:""};for(;o.pos>>3){case 1:f.port_id=o.string();break;case 2:f.channel_id=o.string();break;case 3:f.relayer=o.string();break;case 4:f.payee=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({port_id:s(r.port_id)?String(r.port_id):"",channel_id:s(r.channel_id)?String(r.channel_id):"",relayer:s(r.relayer)?String(r.relayer):"",payee:s(r.payee)?String(r.payee):""}),toJSON(r){const n={};return r.port_id!==void 0&&(n.port_id=r.port_id),r.channel_id!==void 0&&(n.channel_id=r.channel_id),r.relayer!==void 0&&(n.relayer=r.relayer),r.payee!==void 0&&(n.payee=r.payee),n},fromPartial(r){var n,o,i,f;const d={port_id:"",channel_id:"",relayer:"",payee:""};return d.port_id=(n=r.port_id)!==null&&n!==void 0?n:"",d.channel_id=(o=r.channel_id)!==null&&o!==void 0?o:"",d.relayer=(i=r.relayer)!==null&&i!==void 0?i:"",d.payee=(f=r.payee)!==null&&f!==void 0?f:"",d}},e.MsgRegisterPayeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgRegisterCounterpartyPayee={encode:(r,n=t.Writer.create())=>(r.port_id!==""&&n.uint32(10).string(r.port_id),r.channel_id!==""&&n.uint32(18).string(r.channel_id),r.relayer!==""&&n.uint32(26).string(r.relayer),r.counterparty_payee!==""&&n.uint32(34).string(r.counterparty_payee),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={port_id:"",channel_id:"",relayer:"",counterparty_payee:""};for(;o.pos>>3){case 1:f.port_id=o.string();break;case 2:f.channel_id=o.string();break;case 3:f.relayer=o.string();break;case 4:f.counterparty_payee=o.string();break;default:o.skipType(7&d)}}return f},fromJSON:r=>({port_id:s(r.port_id)?String(r.port_id):"",channel_id:s(r.channel_id)?String(r.channel_id):"",relayer:s(r.relayer)?String(r.relayer):"",counterparty_payee:s(r.counterparty_payee)?String(r.counterparty_payee):""}),toJSON(r){const n={};return r.port_id!==void 0&&(n.port_id=r.port_id),r.channel_id!==void 0&&(n.channel_id=r.channel_id),r.relayer!==void 0&&(n.relayer=r.relayer),r.counterparty_payee!==void 0&&(n.counterparty_payee=r.counterparty_payee),n},fromPartial(r){var n,o,i,f;const d={port_id:"",channel_id:"",relayer:"",counterparty_payee:""};return d.port_id=(n=r.port_id)!==null&&n!==void 0?n:"",d.channel_id=(o=r.channel_id)!==null&&o!==void 0?o:"",d.relayer=(i=r.relayer)!==null&&i!==void 0?i:"",d.counterparty_payee=(f=r.counterparty_payee)!==null&&f!==void 0?f:"",d}},e.MsgRegisterCounterpartyPayeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgPayPacketFee={encode(r,n=t.Writer.create()){r.fee!==void 0&&c.Fee.encode(r.fee,n.uint32(10).fork()).ldelim(),r.source_port_id!==""&&n.uint32(18).string(r.source_port_id),r.source_channel_id!==""&&n.uint32(26).string(r.source_channel_id),r.signer!==""&&n.uint32(34).string(r.signer);for(const o of r.relayers)n.uint32(42).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={fee:void 0,source_port_id:"",source_channel_id:"",signer:"",relayers:[]};for(;o.pos>>3){case 1:f.fee=c.Fee.decode(o,o.uint32());break;case 2:f.source_port_id=o.string();break;case 3:f.source_channel_id=o.string();break;case 4:f.signer=o.string();break;case 5:f.relayers.push(o.string());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({fee:s(r.fee)?c.Fee.fromJSON(r.fee):void 0,source_port_id:s(r.source_port_id)?String(r.source_port_id):"",source_channel_id:s(r.source_channel_id)?String(r.source_channel_id):"",signer:s(r.signer)?String(r.signer):"",relayers:Array.isArray(r==null?void 0:r.relayers)?r.relayers.map(n=>String(n)):[]}),toJSON(r){const n={};return r.fee!==void 0&&(n.fee=r.fee?c.Fee.toJSON(r.fee):void 0),r.source_port_id!==void 0&&(n.source_port_id=r.source_port_id),r.source_channel_id!==void 0&&(n.source_channel_id=r.source_channel_id),r.signer!==void 0&&(n.signer=r.signer),r.relayers?n.relayers=r.relayers.map(o=>o):n.relayers=[],n},fromPartial(r){var n,o,i,f;const d={fee:void 0,source_port_id:"",source_channel_id:"",signer:"",relayers:[]};return d.fee=r.fee!==void 0&&r.fee!==null?c.Fee.fromPartial(r.fee):void 0,d.source_port_id=(n=r.source_port_id)!==null&&n!==void 0?n:"",d.source_channel_id=(o=r.source_channel_id)!==null&&o!==void 0?o:"",d.signer=(i=r.signer)!==null&&i!==void 0?i:"",d.relayers=((f=r.relayers)===null||f===void 0?void 0:f.map(p=>p))||[],d}},e.MsgPayPacketFeeResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgPayPacketFeeAsync={encode:(r,n=t.Writer.create())=>(r.packet_id!==void 0&&u.PacketId.encode(r.packet_id,n.uint32(10).fork()).ldelim(),r.packet_fee!==void 0&&c.PacketFee.encode(r.packet_fee,n.uint32(18).fork()).ldelim(),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={packet_id:void 0,packet_fee:void 0};for(;o.pos>>3){case 1:f.packet_id=u.PacketId.decode(o,o.uint32());break;case 2:f.packet_fee=c.PacketFee.decode(o,o.uint32());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({packet_id:s(r.packet_id)?u.PacketId.fromJSON(r.packet_id):void 0,packet_fee:s(r.packet_fee)?c.PacketFee.fromJSON(r.packet_fee):void 0}),toJSON(r){const n={};return r.packet_id!==void 0&&(n.packet_id=r.packet_id?u.PacketId.toJSON(r.packet_id):void 0),r.packet_fee!==void 0&&(n.packet_fee=r.packet_fee?c.PacketFee.toJSON(r.packet_fee):void 0),n},fromPartial(r){const n={packet_id:void 0,packet_fee:void 0};return n.packet_id=r.packet_id!==void 0&&r.packet_id!==null?u.PacketId.fromPartial(r.packet_id):void 0,n.packet_fee=r.packet_fee!==void 0&&r.packet_fee!==null?c.PacketFee.fromPartial(r.packet_fee):void 0,n}},e.MsgPayPacketFeeAsyncResponse={encode:(r,n=t.Writer.create())=>n,decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;for(;o.pos({}),toJSON:r=>({}),fromPartial:r=>({})},e.MsgClientImpl=class{constructor(r){this.rpc=r,this.RegisterPayee=this.RegisterPayee.bind(this),this.RegisterCounterpartyPayee=this.RegisterCounterpartyPayee.bind(this),this.PayPacketFee=this.PayPacketFee.bind(this),this.PayPacketFeeAsync=this.PayPacketFeeAsync.bind(this)}RegisterPayee(r){const n=e.MsgRegisterPayee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","RegisterPayee",n).then(o=>e.MsgRegisterPayeeResponse.decode(new t.Reader(o)))}RegisterCounterpartyPayee(r){const n=e.MsgRegisterCounterpartyPayee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","RegisterCounterpartyPayee",n).then(o=>e.MsgRegisterCounterpartyPayeeResponse.decode(new t.Reader(o)))}PayPacketFee(r){const n=e.MsgPayPacketFee.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","PayPacketFee",n).then(o=>e.MsgPayPacketFeeResponse.decode(new t.Reader(o)))}PayPacketFeeAsync(r){const n=e.MsgPayPacketFeeAsync.encode(r).finish();return this.rpc.request("ibc.applications.fee.v1.Msg","PayPacketFeeAsync",n).then(o=>e.MsgPayPacketFeeAsyncResponse.decode(new t.Reader(o)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},865:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgTransferResponse=e.MsgTransfer=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976),u=h(5650);function s(n){return n.toString()}function r(n){return n!=null}e.protobufPackage="ibc.applications.transfer.v1",e.MsgTransfer={encode:(n,o=t.Writer.create())=>(n.source_port!==""&&o.uint32(10).string(n.source_port),n.source_channel!==""&&o.uint32(18).string(n.source_channel),n.token!==void 0&&c.Coin.encode(n.token,o.uint32(26).fork()).ldelim(),n.sender!==""&&o.uint32(34).string(n.sender),n.receiver!==""&&o.uint32(42).string(n.receiver),n.timeout_height!==void 0&&u.Height.encode(n.timeout_height,o.uint32(50).fork()).ldelim(),n.timeout_timestamp!=="0"&&o.uint32(56).uint64(n.timeout_timestamp),n.memo!==""&&o.uint32(66).string(n.memo),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={source_port:"",source_channel:"",token:void 0,sender:"",receiver:"",timeout_height:void 0,timeout_timestamp:"0",memo:""};for(;i.pos>>3){case 1:d.source_port=i.string();break;case 2:d.source_channel=i.string();break;case 3:d.token=c.Coin.decode(i,i.uint32());break;case 4:d.sender=i.string();break;case 5:d.receiver=i.string();break;case 6:d.timeout_height=u.Height.decode(i,i.uint32());break;case 7:d.timeout_timestamp=s(i.uint64());break;case 8:d.memo=i.string();break;default:i.skipType(7&p)}}return d},fromJSON:n=>({source_port:r(n.source_port)?String(n.source_port):"",source_channel:r(n.source_channel)?String(n.source_channel):"",token:r(n.token)?c.Coin.fromJSON(n.token):void 0,sender:r(n.sender)?String(n.sender):"",receiver:r(n.receiver)?String(n.receiver):"",timeout_height:r(n.timeout_height)?u.Height.fromJSON(n.timeout_height):void 0,timeout_timestamp:r(n.timeout_timestamp)?String(n.timeout_timestamp):"0",memo:r(n.memo)?String(n.memo):""}),toJSON(n){const o={};return n.source_port!==void 0&&(o.source_port=n.source_port),n.source_channel!==void 0&&(o.source_channel=n.source_channel),n.token!==void 0&&(o.token=n.token?c.Coin.toJSON(n.token):void 0),n.sender!==void 0&&(o.sender=n.sender),n.receiver!==void 0&&(o.receiver=n.receiver),n.timeout_height!==void 0&&(o.timeout_height=n.timeout_height?u.Height.toJSON(n.timeout_height):void 0),n.timeout_timestamp!==void 0&&(o.timeout_timestamp=n.timeout_timestamp),n.memo!==void 0&&(o.memo=n.memo),o},fromPartial(n){var o,i,f,d,p,_;const b={source_port:"",source_channel:"",token:void 0,sender:"",receiver:"",timeout_height:void 0,timeout_timestamp:"0",memo:""};return b.source_port=(o=n.source_port)!==null&&o!==void 0?o:"",b.source_channel=(i=n.source_channel)!==null&&i!==void 0?i:"",b.token=n.token!==void 0&&n.token!==null?c.Coin.fromPartial(n.token):void 0,b.sender=(f=n.sender)!==null&&f!==void 0?f:"",b.receiver=(d=n.receiver)!==null&&d!==void 0?d:"",b.timeout_height=n.timeout_height!==void 0&&n.timeout_height!==null?u.Height.fromPartial(n.timeout_height):void 0,b.timeout_timestamp=(p=n.timeout_timestamp)!==null&&p!==void 0?p:"0",b.memo=(_=n.memo)!==null&&_!==void 0?_:"",b}},e.MsgTransferResponse={encode:(n,o=t.Writer.create())=>(n.sequence!=="0"&&o.uint32(8).uint64(n.sequence),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={sequence:"0"};for(;i.pos>>3==1?d.sequence=s(i.uint64()):i.skipType(7&p)}return d},fromJSON:n=>({sequence:r(n.sequence)?String(n.sequence):"0"}),toJSON(n){const o={};return n.sequence!==void 0&&(o.sequence=n.sequence),o},fromPartial(n){var o;const i={sequence:"0"};return i.sequence=(o=n.sequence)!==null&&o!==void 0?o:"0",i}},e.MsgClientImpl=class{constructor(n){this.rpc=n,this.Transfer=this.Transfer.bind(this)}Transfer(n){const o=e.MsgTransfer.encode(n).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",o).then(i=>e.MsgTransferResponse.decode(new t.Reader(i)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5414:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(N,C,x,P){P===void 0&&(P=x),Object.defineProperty(N,P,{enumerable:!0,get:function(){return C[x]}})}:function(N,C,x,P){P===void 0&&(P=x),N[P]=C[x]}),O=this&&this.__setModuleDefault||(Object.create?function(N,C){Object.defineProperty(N,"default",{enumerable:!0,value:C})}:function(N,C){N.default=C}),k=this&&this.__importStar||function(N){if(N&&N.__esModule)return N;var C={};if(N!=null)for(var x in N)x!=="default"&&Object.prototype.hasOwnProperty.call(N,x)&&w(C,N,x);return O(C,N),C},S=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(e,"__esModule",{value:!0}),e.Acknowledgement=e.PacketId=e.PacketState=e.Packet=e.Counterparty=e.IdentifiedChannel=e.Channel=e.orderToJSON=e.orderFromJSON=e.Order=e.stateToJSON=e.stateFromJSON=e.State=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(5650);var u,s;function r(N){switch(N){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return u.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return u.STATE_INIT;case 2:case"STATE_TRYOPEN":return u.STATE_TRYOPEN;case 3:case"STATE_OPEN":return u.STATE_OPEN;case 4:case"STATE_CLOSED":return u.STATE_CLOSED;default:return u.UNRECOGNIZED}}function n(N){switch(N){case u.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case u.STATE_INIT:return"STATE_INIT";case u.STATE_TRYOPEN:return"STATE_TRYOPEN";case u.STATE_OPEN:return"STATE_OPEN";case u.STATE_CLOSED:return"STATE_CLOSED";default:return"UNKNOWN"}}function o(N){switch(N){case 0:case"ORDER_NONE_UNSPECIFIED":return s.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return s.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return s.ORDER_ORDERED;default:return s.UNRECOGNIZED}}function i(N){switch(N){case s.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case s.ORDER_UNORDERED:return"ORDER_UNORDERED";case s.ORDER_ORDERED:return"ORDER_ORDERED";default:return"UNKNOWN"}}function f(){return{sequence:"0",source_port:"",source_channel:"",destination_port:"",destination_channel:"",data:new Uint8Array,timeout_height:void 0,timeout_timestamp:"0"}}function d(){return{port_id:"",channel_id:"",sequence:"0",data:new Uint8Array}}e.protobufPackage="ibc.core.channel.v1",function(N){N[N.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",N[N.STATE_INIT=1]="STATE_INIT",N[N.STATE_TRYOPEN=2]="STATE_TRYOPEN",N[N.STATE_OPEN=3]="STATE_OPEN",N[N.STATE_CLOSED=4]="STATE_CLOSED",N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.State||(e.State={})),e.stateFromJSON=r,e.stateToJSON=n,function(N){N[N.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",N[N.ORDER_UNORDERED=1]="ORDER_UNORDERED",N[N.ORDER_ORDERED=2]="ORDER_ORDERED",N[N.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.Order||(e.Order={})),e.orderFromJSON=o,e.orderToJSON=i,e.Channel={encode(N,C=t.Writer.create()){N.state!==0&&C.uint32(8).int32(N.state),N.ordering!==0&&C.uint32(16).int32(N.ordering),N.counterparty!==void 0&&e.Counterparty.encode(N.counterparty,C.uint32(26).fork()).ldelim();for(const x of N.connection_hops)C.uint32(34).string(x);return N.version!==""&&C.uint32(42).string(N.version),C},decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:""};for(;x.pos>>3){case 1:v.state=x.int32();break;case 2:v.ordering=x.int32();break;case 3:v.counterparty=e.Counterparty.decode(x,x.uint32());break;case 4:v.connection_hops.push(x.string());break;case 5:v.version=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({state:M(N.state)?r(N.state):0,ordering:M(N.ordering)?o(N.ordering):0,counterparty:M(N.counterparty)?e.Counterparty.fromJSON(N.counterparty):void 0,connection_hops:Array.isArray(N==null?void 0:N.connection_hops)?N.connection_hops.map(C=>String(C)):[],version:M(N.version)?String(N.version):""}),toJSON(N){const C={};return N.state!==void 0&&(C.state=n(N.state)),N.ordering!==void 0&&(C.ordering=i(N.ordering)),N.counterparty!==void 0&&(C.counterparty=N.counterparty?e.Counterparty.toJSON(N.counterparty):void 0),N.connection_hops?C.connection_hops=N.connection_hops.map(x=>x):C.connection_hops=[],N.version!==void 0&&(C.version=N.version),C},fromPartial(N){var C,x,P,v;const m={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:""};return m.state=(C=N.state)!==null&&C!==void 0?C:0,m.ordering=(x=N.ordering)!==null&&x!==void 0?x:0,m.counterparty=N.counterparty!==void 0&&N.counterparty!==null?e.Counterparty.fromPartial(N.counterparty):void 0,m.connection_hops=((P=N.connection_hops)===null||P===void 0?void 0:P.map(E=>E))||[],m.version=(v=N.version)!==null&&v!==void 0?v:"",m}},e.IdentifiedChannel={encode(N,C=t.Writer.create()){N.state!==0&&C.uint32(8).int32(N.state),N.ordering!==0&&C.uint32(16).int32(N.ordering),N.counterparty!==void 0&&e.Counterparty.encode(N.counterparty,C.uint32(26).fork()).ldelim();for(const x of N.connection_hops)C.uint32(34).string(x);return N.version!==""&&C.uint32(42).string(N.version),N.port_id!==""&&C.uint32(50).string(N.port_id),N.channel_id!==""&&C.uint32(58).string(N.channel_id),C},decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:"",port_id:"",channel_id:""};for(;x.pos>>3){case 1:v.state=x.int32();break;case 2:v.ordering=x.int32();break;case 3:v.counterparty=e.Counterparty.decode(x,x.uint32());break;case 4:v.connection_hops.push(x.string());break;case 5:v.version=x.string();break;case 6:v.port_id=x.string();break;case 7:v.channel_id=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({state:M(N.state)?r(N.state):0,ordering:M(N.ordering)?o(N.ordering):0,counterparty:M(N.counterparty)?e.Counterparty.fromJSON(N.counterparty):void 0,connection_hops:Array.isArray(N==null?void 0:N.connection_hops)?N.connection_hops.map(C=>String(C)):[],version:M(N.version)?String(N.version):"",port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):""}),toJSON(N){const C={};return N.state!==void 0&&(C.state=n(N.state)),N.ordering!==void 0&&(C.ordering=i(N.ordering)),N.counterparty!==void 0&&(C.counterparty=N.counterparty?e.Counterparty.toJSON(N.counterparty):void 0),N.connection_hops?C.connection_hops=N.connection_hops.map(x=>x):C.connection_hops=[],N.version!==void 0&&(C.version=N.version),N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),C},fromPartial(N){var C,x,P,v,m,E;const B={state:0,ordering:0,counterparty:void 0,connection_hops:[],version:"",port_id:"",channel_id:""};return B.state=(C=N.state)!==null&&C!==void 0?C:0,B.ordering=(x=N.ordering)!==null&&x!==void 0?x:0,B.counterparty=N.counterparty!==void 0&&N.counterparty!==null?e.Counterparty.fromPartial(N.counterparty):void 0,B.connection_hops=((P=N.connection_hops)===null||P===void 0?void 0:P.map(T=>T))||[],B.version=(v=N.version)!==null&&v!==void 0?v:"",B.port_id=(m=N.port_id)!==null&&m!==void 0?m:"",B.channel_id=(E=N.channel_id)!==null&&E!==void 0?E:"",B}},e.Counterparty={encode:(N,C=t.Writer.create())=>(N.port_id!==""&&C.uint32(10).string(N.port_id),N.channel_id!==""&&C.uint32(18).string(N.channel_id),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={port_id:"",channel_id:""};for(;x.pos>>3){case 1:v.port_id=x.string();break;case 2:v.channel_id=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):""}),toJSON(N){const C={};return N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),C},fromPartial(N){var C,x;const P={port_id:"",channel_id:""};return P.port_id=(C=N.port_id)!==null&&C!==void 0?C:"",P.channel_id=(x=N.channel_id)!==null&&x!==void 0?x:"",P}},e.Packet={encode:(N,C=t.Writer.create())=>(N.sequence!=="0"&&C.uint32(8).uint64(N.sequence),N.source_port!==""&&C.uint32(18).string(N.source_port),N.source_channel!==""&&C.uint32(26).string(N.source_channel),N.destination_port!==""&&C.uint32(34).string(N.destination_port),N.destination_channel!==""&&C.uint32(42).string(N.destination_channel),N.data.length!==0&&C.uint32(50).bytes(N.data),N.timeout_height!==void 0&&c.Height.encode(N.timeout_height,C.uint32(58).fork()).ldelim(),N.timeout_timestamp!=="0"&&C.uint32(64).uint64(N.timeout_timestamp),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v=f();for(;x.pos>>3){case 1:v.sequence=j(x.uint64());break;case 2:v.source_port=x.string();break;case 3:v.source_channel=x.string();break;case 4:v.destination_port=x.string();break;case 5:v.destination_channel=x.string();break;case 6:v.data=x.bytes();break;case 7:v.timeout_height=c.Height.decode(x,x.uint32());break;case 8:v.timeout_timestamp=j(x.uint64());break;default:x.skipType(7&m)}}return v},fromJSON:N=>({sequence:M(N.sequence)?String(N.sequence):"0",source_port:M(N.source_port)?String(N.source_port):"",source_channel:M(N.source_channel)?String(N.source_channel):"",destination_port:M(N.destination_port)?String(N.destination_port):"",destination_channel:M(N.destination_channel)?String(N.destination_channel):"",data:M(N.data)?b(N.data):new Uint8Array,timeout_height:M(N.timeout_height)?c.Height.fromJSON(N.timeout_height):void 0,timeout_timestamp:M(N.timeout_timestamp)?String(N.timeout_timestamp):"0"}),toJSON(N){const C={};return N.sequence!==void 0&&(C.sequence=N.sequence),N.source_port!==void 0&&(C.source_port=N.source_port),N.source_channel!==void 0&&(C.source_channel=N.source_channel),N.destination_port!==void 0&&(C.destination_port=N.destination_port),N.destination_channel!==void 0&&(C.destination_channel=N.destination_channel),N.data!==void 0&&(C.data=l(N.data!==void 0?N.data:new Uint8Array)),N.timeout_height!==void 0&&(C.timeout_height=N.timeout_height?c.Height.toJSON(N.timeout_height):void 0),N.timeout_timestamp!==void 0&&(C.timeout_timestamp=N.timeout_timestamp),C},fromPartial(N){var C,x,P,v,m,E,B;const T=f();return T.sequence=(C=N.sequence)!==null&&C!==void 0?C:"0",T.source_port=(x=N.source_port)!==null&&x!==void 0?x:"",T.source_channel=(P=N.source_channel)!==null&&P!==void 0?P:"",T.destination_port=(v=N.destination_port)!==null&&v!==void 0?v:"",T.destination_channel=(m=N.destination_channel)!==null&&m!==void 0?m:"",T.data=(E=N.data)!==null&&E!==void 0?E:new Uint8Array,T.timeout_height=N.timeout_height!==void 0&&N.timeout_height!==null?c.Height.fromPartial(N.timeout_height):void 0,T.timeout_timestamp=(B=N.timeout_timestamp)!==null&&B!==void 0?B:"0",T}},e.PacketState={encode:(N,C=t.Writer.create())=>(N.port_id!==""&&C.uint32(10).string(N.port_id),N.channel_id!==""&&C.uint32(18).string(N.channel_id),N.sequence!=="0"&&C.uint32(24).uint64(N.sequence),N.data.length!==0&&C.uint32(34).bytes(N.data),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v=d();for(;x.pos>>3){case 1:v.port_id=x.string();break;case 2:v.channel_id=x.string();break;case 3:v.sequence=j(x.uint64());break;case 4:v.data=x.bytes();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):"",sequence:M(N.sequence)?String(N.sequence):"0",data:M(N.data)?b(N.data):new Uint8Array}),toJSON(N){const C={};return N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),N.sequence!==void 0&&(C.sequence=N.sequence),N.data!==void 0&&(C.data=l(N.data!==void 0?N.data:new Uint8Array)),C},fromPartial(N){var C,x,P,v;const m=d();return m.port_id=(C=N.port_id)!==null&&C!==void 0?C:"",m.channel_id=(x=N.channel_id)!==null&&x!==void 0?x:"",m.sequence=(P=N.sequence)!==null&&P!==void 0?P:"0",m.data=(v=N.data)!==null&&v!==void 0?v:new Uint8Array,m}},e.PacketId={encode:(N,C=t.Writer.create())=>(N.port_id!==""&&C.uint32(10).string(N.port_id),N.channel_id!==""&&C.uint32(18).string(N.channel_id),N.sequence!=="0"&&C.uint32(24).uint64(N.sequence),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={port_id:"",channel_id:"",sequence:"0"};for(;x.pos>>3){case 1:v.port_id=x.string();break;case 2:v.channel_id=x.string();break;case 3:v.sequence=j(x.uint64());break;default:x.skipType(7&m)}}return v},fromJSON:N=>({port_id:M(N.port_id)?String(N.port_id):"",channel_id:M(N.channel_id)?String(N.channel_id):"",sequence:M(N.sequence)?String(N.sequence):"0"}),toJSON(N){const C={};return N.port_id!==void 0&&(C.port_id=N.port_id),N.channel_id!==void 0&&(C.channel_id=N.channel_id),N.sequence!==void 0&&(C.sequence=N.sequence),C},fromPartial(N){var C,x,P;const v={port_id:"",channel_id:"",sequence:"0"};return v.port_id=(C=N.port_id)!==null&&C!==void 0?C:"",v.channel_id=(x=N.channel_id)!==null&&x!==void 0?x:"",v.sequence=(P=N.sequence)!==null&&P!==void 0?P:"0",v}},e.Acknowledgement={encode:(N,C=t.Writer.create())=>(N.result!==void 0&&C.uint32(170).bytes(N.result),N.error!==void 0&&C.uint32(178).string(N.error),C),decode(N,C){const x=N instanceof t.Reader?N:new t.Reader(N);let P=C===void 0?x.len:x.pos+C;const v={result:void 0,error:void 0};for(;x.pos>>3){case 21:v.result=x.bytes();break;case 22:v.error=x.string();break;default:x.skipType(7&m)}}return v},fromJSON:N=>({result:M(N.result)?b(N.result):void 0,error:M(N.error)?String(N.error):void 0}),toJSON(N){const C={};return N.result!==void 0&&(C.result=N.result!==void 0?l(N.result):void 0),N.error!==void 0&&(C.error=N.error),C},fromPartial(N){var C,x;const P={result:void 0,error:void 0};return P.result=(C=N.result)!==null&&C!==void 0?C:void 0,P.error=(x=N.error)!==null&&x!==void 0?x:void 0,P}};var p=(()=>{if(p!==void 0)return p;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const _=p.atob||(N=>p.Buffer.from(N,"base64").toString("binary"));function b(N){const C=_(N),x=new Uint8Array(C.length);for(let P=0;Pp.Buffer.from(N,"binary").toString("base64"));function l(N){const C=[];for(const x of N)C.push(String.fromCharCode(x));return I(C.join(""))}function j(N){return N.toString()}function M(N){return N!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},7579:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(v,m,E,B){B===void 0&&(B=E),Object.defineProperty(v,B,{enumerable:!0,get:function(){return m[E]}})}:function(v,m,E,B){B===void 0&&(B=E),v[B]=m[E]}),O=this&&this.__setModuleDefault||(Object.create?function(v,m){Object.defineProperty(v,"default",{enumerable:!0,value:m})}:function(v,m){v.default=m}),k=this&&this.__importStar||function(v){if(v&&v.__esModule)return v;var m={};if(v!=null)for(var E in v)E!=="default"&&Object.prototype.hasOwnProperty.call(v,E)&&w(m,v,E);return O(m,v),m},S=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgAcknowledgementResponse=e.MsgAcknowledgement=e.MsgTimeoutOnCloseResponse=e.MsgTimeoutOnClose=e.MsgTimeoutResponse=e.MsgTimeout=e.MsgRecvPacketResponse=e.MsgRecvPacket=e.MsgChannelCloseConfirmResponse=e.MsgChannelCloseConfirm=e.MsgChannelCloseInitResponse=e.MsgChannelCloseInit=e.MsgChannelOpenConfirmResponse=e.MsgChannelOpenConfirm=e.MsgChannelOpenAckResponse=e.MsgChannelOpenAck=e.MsgChannelOpenTryResponse=e.MsgChannelOpenTry=e.MsgChannelOpenInitResponse=e.MsgChannelOpenInit=e.responseResultTypeToJSON=e.responseResultTypeFromJSON=e.ResponseResultType=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(5414),u=h(5650);var s;function r(v){switch(v){case 0:case"RESPONSE_RESULT_TYPE_UNSPECIFIED":return s.RESPONSE_RESULT_TYPE_UNSPECIFIED;case 1:case"RESPONSE_RESULT_TYPE_NOOP":return s.RESPONSE_RESULT_TYPE_NOOP;case 2:case"RESPONSE_RESULT_TYPE_SUCCESS":return s.RESPONSE_RESULT_TYPE_SUCCESS;default:return s.UNRECOGNIZED}}function n(v){switch(v){case s.RESPONSE_RESULT_TYPE_UNSPECIFIED:return"RESPONSE_RESULT_TYPE_UNSPECIFIED";case s.RESPONSE_RESULT_TYPE_NOOP:return"RESPONSE_RESULT_TYPE_NOOP";case s.RESPONSE_RESULT_TYPE_SUCCESS:return"RESPONSE_RESULT_TYPE_SUCCESS";default:return"UNKNOWN"}}function o(){return{port_id:"",previous_channel_id:"",channel:void 0,counterparty_version:"",proof_init:new Uint8Array,proof_height:void 0,signer:""}}function i(){return{port_id:"",channel_id:"",counterparty_channel_id:"",counterparty_version:"",proof_try:new Uint8Array,proof_height:void 0,signer:""}}function f(){return{port_id:"",channel_id:"",proof_ack:new Uint8Array,proof_height:void 0,signer:""}}function d(){return{port_id:"",channel_id:"",proof_init:new Uint8Array,proof_height:void 0,signer:""}}function p(){return{packet:void 0,proof_commitment:new Uint8Array,proof_height:void 0,signer:""}}function _(){return{packet:void 0,proof_unreceived:new Uint8Array,proof_height:void 0,next_sequence_recv:"0",signer:""}}function b(){return{packet:void 0,proof_unreceived:new Uint8Array,proof_close:new Uint8Array,proof_height:void 0,next_sequence_recv:"0",signer:""}}function I(){return{packet:void 0,acknowledgement:new Uint8Array,proof_acked:new Uint8Array,proof_height:void 0,signer:""}}e.protobufPackage="ibc.core.channel.v1",function(v){v[v.RESPONSE_RESULT_TYPE_UNSPECIFIED=0]="RESPONSE_RESULT_TYPE_UNSPECIFIED",v[v.RESPONSE_RESULT_TYPE_NOOP=1]="RESPONSE_RESULT_TYPE_NOOP",v[v.RESPONSE_RESULT_TYPE_SUCCESS=2]="RESPONSE_RESULT_TYPE_SUCCESS",v[v.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=e.ResponseResultType||(e.ResponseResultType={})),e.responseResultTypeFromJSON=r,e.responseResultTypeToJSON=n,e.MsgChannelOpenInit={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel!==void 0&&c.Channel.encode(v.channel,m.uint32(18).fork()).ldelim(),v.signer!==""&&m.uint32(26).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={port_id:"",channel:void 0,signer:""};for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel=c.Channel.decode(E,E.uint32());break;case 3:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel:P(v.channel)?c.Channel.fromJSON(v.channel):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel!==void 0&&(m.channel=v.channel?c.Channel.toJSON(v.channel):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E;const B={port_id:"",channel:void 0,signer:""};return B.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",B.channel=v.channel!==void 0&&v.channel!==null?c.Channel.fromPartial(v.channel):void 0,B.signer=(E=v.signer)!==null&&E!==void 0?E:"",B}},e.MsgChannelOpenInitResponse={encode:(v,m=t.Writer.create())=>(v.channel_id!==""&&m.uint32(10).string(v.channel_id),v.version!==""&&m.uint32(18).string(v.version),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={channel_id:"",version:""};for(;E.pos>>3){case 1:T.channel_id=E.string();break;case 2:T.version=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({channel_id:P(v.channel_id)?String(v.channel_id):"",version:P(v.version)?String(v.version):""}),toJSON(v){const m={};return v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.version!==void 0&&(m.version=v.version),m},fromPartial(v){var m,E;const B={channel_id:"",version:""};return B.channel_id=(m=v.channel_id)!==null&&m!==void 0?m:"",B.version=(E=v.version)!==null&&E!==void 0?E:"",B}},e.MsgChannelOpenTry={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.previous_channel_id!==""&&m.uint32(18).string(v.previous_channel_id),v.channel!==void 0&&c.Channel.encode(v.channel,m.uint32(26).fork()).ldelim(),v.counterparty_version!==""&&m.uint32(34).string(v.counterparty_version),v.proof_init.length!==0&&m.uint32(42).bytes(v.proof_init),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(50).fork()).ldelim(),v.signer!==""&&m.uint32(58).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=o();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.previous_channel_id=E.string();break;case 3:T.channel=c.Channel.decode(E,E.uint32());break;case 4:T.counterparty_version=E.string();break;case 5:T.proof_init=E.bytes();break;case 6:T.proof_height=u.Height.decode(E,E.uint32());break;case 7:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",previous_channel_id:P(v.previous_channel_id)?String(v.previous_channel_id):"",channel:P(v.channel)?c.Channel.fromJSON(v.channel):void 0,counterparty_version:P(v.counterparty_version)?String(v.counterparty_version):"",proof_init:P(v.proof_init)?M(v.proof_init):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.previous_channel_id!==void 0&&(m.previous_channel_id=v.previous_channel_id),v.channel!==void 0&&(m.channel=v.channel?c.Channel.toJSON(v.channel):void 0),v.counterparty_version!==void 0&&(m.counterparty_version=v.counterparty_version),v.proof_init!==void 0&&(m.proof_init=C(v.proof_init!==void 0?v.proof_init:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T,q;const te=o();return te.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",te.previous_channel_id=(E=v.previous_channel_id)!==null&&E!==void 0?E:"",te.channel=v.channel!==void 0&&v.channel!==null?c.Channel.fromPartial(v.channel):void 0,te.counterparty_version=(B=v.counterparty_version)!==null&&B!==void 0?B:"",te.proof_init=(T=v.proof_init)!==null&&T!==void 0?T:new Uint8Array,te.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,te.signer=(q=v.signer)!==null&&q!==void 0?q:"",te}},e.MsgChannelOpenTryResponse={encode:(v,m=t.Writer.create())=>(v.version!==""&&m.uint32(10).string(v.version),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={version:""};for(;E.pos>>3==1?T.version=E.string():E.skipType(7&q)}return T},fromJSON:v=>({version:P(v.version)?String(v.version):""}),toJSON(v){const m={};return v.version!==void 0&&(m.version=v.version),m},fromPartial(v){var m;const E={version:""};return E.version=(m=v.version)!==null&&m!==void 0?m:"",E}},e.MsgChannelOpenAck={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.counterparty_channel_id!==""&&m.uint32(26).string(v.counterparty_channel_id),v.counterparty_version!==""&&m.uint32(34).string(v.counterparty_version),v.proof_try.length!==0&&m.uint32(42).bytes(v.proof_try),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(50).fork()).ldelim(),v.signer!==""&&m.uint32(58).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=i();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.counterparty_channel_id=E.string();break;case 4:T.counterparty_version=E.string();break;case 5:T.proof_try=E.bytes();break;case 6:T.proof_height=u.Height.decode(E,E.uint32());break;case 7:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",counterparty_channel_id:P(v.counterparty_channel_id)?String(v.counterparty_channel_id):"",counterparty_version:P(v.counterparty_version)?String(v.counterparty_version):"",proof_try:P(v.proof_try)?M(v.proof_try):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.counterparty_channel_id!==void 0&&(m.counterparty_channel_id=v.counterparty_channel_id),v.counterparty_version!==void 0&&(m.counterparty_version=v.counterparty_version),v.proof_try!==void 0&&(m.proof_try=C(v.proof_try!==void 0?v.proof_try:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T,q,te;const re=i();return re.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",re.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",re.counterparty_channel_id=(B=v.counterparty_channel_id)!==null&&B!==void 0?B:"",re.counterparty_version=(T=v.counterparty_version)!==null&&T!==void 0?T:"",re.proof_try=(q=v.proof_try)!==null&&q!==void 0?q:new Uint8Array,re.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,re.signer=(te=v.signer)!==null&&te!==void 0?te:"",re}},e.MsgChannelOpenAckResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgChannelOpenConfirm={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.proof_ack.length!==0&&m.uint32(26).bytes(v.proof_ack),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=f();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.proof_ack=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",proof_ack:P(v.proof_ack)?M(v.proof_ack):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.proof_ack!==void 0&&(m.proof_ack=C(v.proof_ack!==void 0?v.proof_ack:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T;const q=f();return q.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",q.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",q.proof_ack=(B=v.proof_ack)!==null&&B!==void 0?B:new Uint8Array,q.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,q.signer=(T=v.signer)!==null&&T!==void 0?T:"",q}},e.MsgChannelOpenConfirmResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgChannelCloseInit={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.signer!==""&&m.uint32(26).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={port_id:"",channel_id:"",signer:""};for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B;const T={port_id:"",channel_id:"",signer:""};return T.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",T.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",T.signer=(B=v.signer)!==null&&B!==void 0?B:"",T}},e.MsgChannelCloseInitResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgChannelCloseConfirm={encode:(v,m=t.Writer.create())=>(v.port_id!==""&&m.uint32(10).string(v.port_id),v.channel_id!==""&&m.uint32(18).string(v.channel_id),v.proof_init.length!==0&&m.uint32(26).bytes(v.proof_init),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=d();for(;E.pos>>3){case 1:T.port_id=E.string();break;case 2:T.channel_id=E.string();break;case 3:T.proof_init=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({port_id:P(v.port_id)?String(v.port_id):"",channel_id:P(v.channel_id)?String(v.channel_id):"",proof_init:P(v.proof_init)?M(v.proof_init):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.port_id!==void 0&&(m.port_id=v.port_id),v.channel_id!==void 0&&(m.channel_id=v.channel_id),v.proof_init!==void 0&&(m.proof_init=C(v.proof_init!==void 0?v.proof_init:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T;const q=d();return q.port_id=(m=v.port_id)!==null&&m!==void 0?m:"",q.channel_id=(E=v.channel_id)!==null&&E!==void 0?E:"",q.proof_init=(B=v.proof_init)!==null&&B!==void 0?B:new Uint8Array,q.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,q.signer=(T=v.signer)!==null&&T!==void 0?T:"",q}},e.MsgChannelCloseConfirmResponse={encode:(v,m=t.Writer.create())=>m,decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;for(;E.pos({}),toJSON:v=>({}),fromPartial:v=>({})},e.MsgRecvPacket={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.proof_commitment.length!==0&&m.uint32(18).bytes(v.proof_commitment),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(26).fork()).ldelim(),v.signer!==""&&m.uint32(34).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=p();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.proof_commitment=E.bytes();break;case 3:T.proof_height=u.Height.decode(E,E.uint32());break;case 4:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,proof_commitment:P(v.proof_commitment)?M(v.proof_commitment):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.proof_commitment!==void 0&&(m.proof_commitment=C(v.proof_commitment!==void 0?v.proof_commitment:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E;const B=p();return B.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,B.proof_commitment=(m=v.proof_commitment)!==null&&m!==void 0?m:new Uint8Array,B.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,B.signer=(E=v.signer)!==null&&E!==void 0?E:"",B}},e.MsgRecvPacketResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgTimeout={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.proof_unreceived.length!==0&&m.uint32(18).bytes(v.proof_unreceived),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(26).fork()).ldelim(),v.next_sequence_recv!=="0"&&m.uint32(32).uint64(v.next_sequence_recv),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=_();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.proof_unreceived=E.bytes();break;case 3:T.proof_height=u.Height.decode(E,E.uint32());break;case 4:T.next_sequence_recv=x(E.uint64());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,proof_unreceived:P(v.proof_unreceived)?M(v.proof_unreceived):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,next_sequence_recv:P(v.next_sequence_recv)?String(v.next_sequence_recv):"0",signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.proof_unreceived!==void 0&&(m.proof_unreceived=C(v.proof_unreceived!==void 0?v.proof_unreceived:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.next_sequence_recv!==void 0&&(m.next_sequence_recv=v.next_sequence_recv),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B;const T=_();return T.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,T.proof_unreceived=(m=v.proof_unreceived)!==null&&m!==void 0?m:new Uint8Array,T.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,T.next_sequence_recv=(E=v.next_sequence_recv)!==null&&E!==void 0?E:"0",T.signer=(B=v.signer)!==null&&B!==void 0?B:"",T}},e.MsgTimeoutResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgTimeoutOnClose={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.proof_unreceived.length!==0&&m.uint32(18).bytes(v.proof_unreceived),v.proof_close.length!==0&&m.uint32(26).bytes(v.proof_close),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.next_sequence_recv!=="0"&&m.uint32(40).uint64(v.next_sequence_recv),v.signer!==""&&m.uint32(50).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=b();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.proof_unreceived=E.bytes();break;case 3:T.proof_close=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.next_sequence_recv=x(E.uint64());break;case 6:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,proof_unreceived:P(v.proof_unreceived)?M(v.proof_unreceived):new Uint8Array,proof_close:P(v.proof_close)?M(v.proof_close):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,next_sequence_recv:P(v.next_sequence_recv)?String(v.next_sequence_recv):"0",signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.proof_unreceived!==void 0&&(m.proof_unreceived=C(v.proof_unreceived!==void 0?v.proof_unreceived:new Uint8Array)),v.proof_close!==void 0&&(m.proof_close=C(v.proof_close!==void 0?v.proof_close:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.next_sequence_recv!==void 0&&(m.next_sequence_recv=v.next_sequence_recv),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B,T;const q=b();return q.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,q.proof_unreceived=(m=v.proof_unreceived)!==null&&m!==void 0?m:new Uint8Array,q.proof_close=(E=v.proof_close)!==null&&E!==void 0?E:new Uint8Array,q.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,q.next_sequence_recv=(B=v.next_sequence_recv)!==null&&B!==void 0?B:"0",q.signer=(T=v.signer)!==null&&T!==void 0?T:"",q}},e.MsgTimeoutOnCloseResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgAcknowledgement={encode:(v,m=t.Writer.create())=>(v.packet!==void 0&&c.Packet.encode(v.packet,m.uint32(10).fork()).ldelim(),v.acknowledgement.length!==0&&m.uint32(18).bytes(v.acknowledgement),v.proof_acked.length!==0&&m.uint32(26).bytes(v.proof_acked),v.proof_height!==void 0&&u.Height.encode(v.proof_height,m.uint32(34).fork()).ldelim(),v.signer!==""&&m.uint32(42).string(v.signer),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T=I();for(;E.pos>>3){case 1:T.packet=c.Packet.decode(E,E.uint32());break;case 2:T.acknowledgement=E.bytes();break;case 3:T.proof_acked=E.bytes();break;case 4:T.proof_height=u.Height.decode(E,E.uint32());break;case 5:T.signer=E.string();break;default:E.skipType(7&q)}}return T},fromJSON:v=>({packet:P(v.packet)?c.Packet.fromJSON(v.packet):void 0,acknowledgement:P(v.acknowledgement)?M(v.acknowledgement):new Uint8Array,proof_acked:P(v.proof_acked)?M(v.proof_acked):new Uint8Array,proof_height:P(v.proof_height)?u.Height.fromJSON(v.proof_height):void 0,signer:P(v.signer)?String(v.signer):""}),toJSON(v){const m={};return v.packet!==void 0&&(m.packet=v.packet?c.Packet.toJSON(v.packet):void 0),v.acknowledgement!==void 0&&(m.acknowledgement=C(v.acknowledgement!==void 0?v.acknowledgement:new Uint8Array)),v.proof_acked!==void 0&&(m.proof_acked=C(v.proof_acked!==void 0?v.proof_acked:new Uint8Array)),v.proof_height!==void 0&&(m.proof_height=v.proof_height?u.Height.toJSON(v.proof_height):void 0),v.signer!==void 0&&(m.signer=v.signer),m},fromPartial(v){var m,E,B;const T=I();return T.packet=v.packet!==void 0&&v.packet!==null?c.Packet.fromPartial(v.packet):void 0,T.acknowledgement=(m=v.acknowledgement)!==null&&m!==void 0?m:new Uint8Array,T.proof_acked=(E=v.proof_acked)!==null&&E!==void 0?E:new Uint8Array,T.proof_height=v.proof_height!==void 0&&v.proof_height!==null?u.Height.fromPartial(v.proof_height):void 0,T.signer=(B=v.signer)!==null&&B!==void 0?B:"",T}},e.MsgAcknowledgementResponse={encode:(v,m=t.Writer.create())=>(v.result!==0&&m.uint32(8).int32(v.result),m),decode(v,m){const E=v instanceof t.Reader?v:new t.Reader(v);let B=m===void 0?E.len:E.pos+m;const T={result:0};for(;E.pos>>3==1?T.result=E.int32():E.skipType(7&q)}return T},fromJSON:v=>({result:P(v.result)?r(v.result):0}),toJSON(v){const m={};return v.result!==void 0&&(m.result=n(v.result)),m},fromPartial(v){var m;const E={result:0};return E.result=(m=v.result)!==null&&m!==void 0?m:0,E}},e.MsgClientImpl=class{constructor(v){this.rpc=v,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(v){const m=e.MsgChannelOpenInit.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenInit",m).then(E=>e.MsgChannelOpenInitResponse.decode(new t.Reader(E)))}ChannelOpenTry(v){const m=e.MsgChannelOpenTry.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenTry",m).then(E=>e.MsgChannelOpenTryResponse.decode(new t.Reader(E)))}ChannelOpenAck(v){const m=e.MsgChannelOpenAck.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenAck",m).then(E=>e.MsgChannelOpenAckResponse.decode(new t.Reader(E)))}ChannelOpenConfirm(v){const m=e.MsgChannelOpenConfirm.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelOpenConfirm",m).then(E=>e.MsgChannelOpenConfirmResponse.decode(new t.Reader(E)))}ChannelCloseInit(v){const m=e.MsgChannelCloseInit.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseInit",m).then(E=>e.MsgChannelCloseInitResponse.decode(new t.Reader(E)))}ChannelCloseConfirm(v){const m=e.MsgChannelCloseConfirm.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","ChannelCloseConfirm",m).then(E=>e.MsgChannelCloseConfirmResponse.decode(new t.Reader(E)))}RecvPacket(v){const m=e.MsgRecvPacket.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","RecvPacket",m).then(E=>e.MsgRecvPacketResponse.decode(new t.Reader(E)))}Timeout(v){const m=e.MsgTimeout.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Timeout",m).then(E=>e.MsgTimeoutResponse.decode(new t.Reader(E)))}TimeoutOnClose(v){const m=e.MsgTimeoutOnClose.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","TimeoutOnClose",m).then(E=>e.MsgTimeoutOnCloseResponse.decode(new t.Reader(E)))}Acknowledgement(v){const m=e.MsgAcknowledgement.encode(v).finish();return this.rpc.request("ibc.core.channel.v1.Msg","Acknowledgement",m).then(E=>e.MsgAcknowledgementResponse.decode(new t.Reader(E)))}};var l=(()=>{if(l!==void 0)return l;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const j=l.atob||(v=>l.Buffer.from(v,"base64").toString("binary"));function M(v){const m=j(v),E=new Uint8Array(m.length);for(let B=0;Bl.Buffer.from(v,"binary").toString("base64"));function C(v){const m=[];for(const E of v)m.push(String.fromCharCode(E));return N(m.join(""))}function x(v){return v.toString()}function P(v){return v!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5650:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.Params=e.Height=e.UpgradeProposal=e.ClientUpdateProposal=e.ClientConsensusStates=e.ConsensusStateWithHeight=e.IdentifiedClientState=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191),u=h(8310);function s(n){return n.toString()}function r(n){return n!=null}e.protobufPackage="ibc.core.client.v1",e.IdentifiedClientState={encode:(n,o=t.Writer.create())=>(n.client_id!==""&&o.uint32(10).string(n.client_id),n.client_state!==void 0&&c.Any.encode(n.client_state,o.uint32(18).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={client_id:"",client_state:void 0};for(;i.pos>>3){case 1:d.client_id=i.string();break;case 2:d.client_state=c.Any.decode(i,i.uint32());break;default:i.skipType(7&p)}}return d},fromJSON:n=>({client_id:r(n.client_id)?String(n.client_id):"",client_state:r(n.client_state)?c.Any.fromJSON(n.client_state):void 0}),toJSON(n){const o={};return n.client_id!==void 0&&(o.client_id=n.client_id),n.client_state!==void 0&&(o.client_state=n.client_state?c.Any.toJSON(n.client_state):void 0),o},fromPartial(n){var o;const i={client_id:"",client_state:void 0};return i.client_id=(o=n.client_id)!==null&&o!==void 0?o:"",i.client_state=n.client_state!==void 0&&n.client_state!==null?c.Any.fromPartial(n.client_state):void 0,i}},e.ConsensusStateWithHeight={encode:(n,o=t.Writer.create())=>(n.height!==void 0&&e.Height.encode(n.height,o.uint32(10).fork()).ldelim(),n.consensus_state!==void 0&&c.Any.encode(n.consensus_state,o.uint32(18).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={height:void 0,consensus_state:void 0};for(;i.pos>>3){case 1:d.height=e.Height.decode(i,i.uint32());break;case 2:d.consensus_state=c.Any.decode(i,i.uint32());break;default:i.skipType(7&p)}}return d},fromJSON:n=>({height:r(n.height)?e.Height.fromJSON(n.height):void 0,consensus_state:r(n.consensus_state)?c.Any.fromJSON(n.consensus_state):void 0}),toJSON(n){const o={};return n.height!==void 0&&(o.height=n.height?e.Height.toJSON(n.height):void 0),n.consensus_state!==void 0&&(o.consensus_state=n.consensus_state?c.Any.toJSON(n.consensus_state):void 0),o},fromPartial(n){const o={height:void 0,consensus_state:void 0};return o.height=n.height!==void 0&&n.height!==null?e.Height.fromPartial(n.height):void 0,o.consensus_state=n.consensus_state!==void 0&&n.consensus_state!==null?c.Any.fromPartial(n.consensus_state):void 0,o}},e.ClientConsensusStates={encode(n,o=t.Writer.create()){n.client_id!==""&&o.uint32(10).string(n.client_id);for(const i of n.consensus_states)e.ConsensusStateWithHeight.encode(i,o.uint32(18).fork()).ldelim();return o},decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={client_id:"",consensus_states:[]};for(;i.pos>>3){case 1:d.client_id=i.string();break;case 2:d.consensus_states.push(e.ConsensusStateWithHeight.decode(i,i.uint32()));break;default:i.skipType(7&p)}}return d},fromJSON:n=>({client_id:r(n.client_id)?String(n.client_id):"",consensus_states:Array.isArray(n==null?void 0:n.consensus_states)?n.consensus_states.map(o=>e.ConsensusStateWithHeight.fromJSON(o)):[]}),toJSON(n){const o={};return n.client_id!==void 0&&(o.client_id=n.client_id),n.consensus_states?o.consensus_states=n.consensus_states.map(i=>i?e.ConsensusStateWithHeight.toJSON(i):void 0):o.consensus_states=[],o},fromPartial(n){var o,i;const f={client_id:"",consensus_states:[]};return f.client_id=(o=n.client_id)!==null&&o!==void 0?o:"",f.consensus_states=((i=n.consensus_states)===null||i===void 0?void 0:i.map(d=>e.ConsensusStateWithHeight.fromPartial(d)))||[],f}},e.ClientUpdateProposal={encode:(n,o=t.Writer.create())=>(n.title!==""&&o.uint32(10).string(n.title),n.description!==""&&o.uint32(18).string(n.description),n.subject_client_id!==""&&o.uint32(26).string(n.subject_client_id),n.substitute_client_id!==""&&o.uint32(34).string(n.substitute_client_id),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={title:"",description:"",subject_client_id:"",substitute_client_id:""};for(;i.pos>>3){case 1:d.title=i.string();break;case 2:d.description=i.string();break;case 3:d.subject_client_id=i.string();break;case 4:d.substitute_client_id=i.string();break;default:i.skipType(7&p)}}return d},fromJSON:n=>({title:r(n.title)?String(n.title):"",description:r(n.description)?String(n.description):"",subject_client_id:r(n.subject_client_id)?String(n.subject_client_id):"",substitute_client_id:r(n.substitute_client_id)?String(n.substitute_client_id):""}),toJSON(n){const o={};return n.title!==void 0&&(o.title=n.title),n.description!==void 0&&(o.description=n.description),n.subject_client_id!==void 0&&(o.subject_client_id=n.subject_client_id),n.substitute_client_id!==void 0&&(o.substitute_client_id=n.substitute_client_id),o},fromPartial(n){var o,i,f,d;const p={title:"",description:"",subject_client_id:"",substitute_client_id:""};return p.title=(o=n.title)!==null&&o!==void 0?o:"",p.description=(i=n.description)!==null&&i!==void 0?i:"",p.subject_client_id=(f=n.subject_client_id)!==null&&f!==void 0?f:"",p.substitute_client_id=(d=n.substitute_client_id)!==null&&d!==void 0?d:"",p}},e.UpgradeProposal={encode:(n,o=t.Writer.create())=>(n.title!==""&&o.uint32(10).string(n.title),n.description!==""&&o.uint32(18).string(n.description),n.plan!==void 0&&u.Plan.encode(n.plan,o.uint32(26).fork()).ldelim(),n.upgraded_client_state!==void 0&&c.Any.encode(n.upgraded_client_state,o.uint32(34).fork()).ldelim(),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={title:"",description:"",plan:void 0,upgraded_client_state:void 0};for(;i.pos>>3){case 1:d.title=i.string();break;case 2:d.description=i.string();break;case 3:d.plan=u.Plan.decode(i,i.uint32());break;case 4:d.upgraded_client_state=c.Any.decode(i,i.uint32());break;default:i.skipType(7&p)}}return d},fromJSON:n=>({title:r(n.title)?String(n.title):"",description:r(n.description)?String(n.description):"",plan:r(n.plan)?u.Plan.fromJSON(n.plan):void 0,upgraded_client_state:r(n.upgraded_client_state)?c.Any.fromJSON(n.upgraded_client_state):void 0}),toJSON(n){const o={};return n.title!==void 0&&(o.title=n.title),n.description!==void 0&&(o.description=n.description),n.plan!==void 0&&(o.plan=n.plan?u.Plan.toJSON(n.plan):void 0),n.upgraded_client_state!==void 0&&(o.upgraded_client_state=n.upgraded_client_state?c.Any.toJSON(n.upgraded_client_state):void 0),o},fromPartial(n){var o,i;const f={title:"",description:"",plan:void 0,upgraded_client_state:void 0};return f.title=(o=n.title)!==null&&o!==void 0?o:"",f.description=(i=n.description)!==null&&i!==void 0?i:"",f.plan=n.plan!==void 0&&n.plan!==null?u.Plan.fromPartial(n.plan):void 0,f.upgraded_client_state=n.upgraded_client_state!==void 0&&n.upgraded_client_state!==null?c.Any.fromPartial(n.upgraded_client_state):void 0,f}},e.Height={encode:(n,o=t.Writer.create())=>(n.revision_number!=="0"&&o.uint32(8).uint64(n.revision_number),n.revision_height!=="0"&&o.uint32(16).uint64(n.revision_height),o),decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={revision_number:"0",revision_height:"0"};for(;i.pos>>3){case 1:d.revision_number=s(i.uint64());break;case 2:d.revision_height=s(i.uint64());break;default:i.skipType(7&p)}}return d},fromJSON:n=>({revision_number:r(n.revision_number)?String(n.revision_number):"0",revision_height:r(n.revision_height)?String(n.revision_height):"0"}),toJSON(n){const o={};return n.revision_number!==void 0&&(o.revision_number=n.revision_number),n.revision_height!==void 0&&(o.revision_height=n.revision_height),o},fromPartial(n){var o,i;const f={revision_number:"0",revision_height:"0"};return f.revision_number=(o=n.revision_number)!==null&&o!==void 0?o:"0",f.revision_height=(i=n.revision_height)!==null&&i!==void 0?i:"0",f}},e.Params={encode(n,o=t.Writer.create()){for(const i of n.allowed_clients)o.uint32(10).string(i);return o},decode(n,o){const i=n instanceof t.Reader?n:new t.Reader(n);let f=o===void 0?i.len:i.pos+o;const d={allowed_clients:[]};for(;i.pos>>3==1?d.allowed_clients.push(i.string()):i.skipType(7&p)}return d},fromJSON:n=>({allowed_clients:Array.isArray(n==null?void 0:n.allowed_clients)?n.allowed_clients.map(o=>String(o)):[]}),toJSON(n){const o={};return n.allowed_clients?o.allowed_clients=n.allowed_clients.map(i=>i):o.allowed_clients=[],o},fromPartial(n){var o;const i={allowed_clients:[]};return i.allowed_clients=((o=n.allowed_clients)===null||o===void 0?void 0:o.map(f=>f))||[],i}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},322:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(d,p,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return p[_]}})}:function(d,p,_,b){b===void 0&&(b=_),d[b]=p[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(p,d,_);return O(p,d),p},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgSubmitMisbehaviourResponse=e.MsgSubmitMisbehaviour=e.MsgUpgradeClientResponse=e.MsgUpgradeClient=e.MsgUpdateClientResponse=e.MsgUpdateClient=e.MsgCreateClientResponse=e.MsgCreateClient=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(4191);function u(){return{client_id:"",client_state:void 0,consensus_state:void 0,proof_upgrade_client:new Uint8Array,proof_upgrade_consensus_state:new Uint8Array,signer:""}}e.protobufPackage="ibc.core.client.v1",e.MsgCreateClient={encode:(d,p=t.Writer.create())=>(d.client_state!==void 0&&c.Any.encode(d.client_state,p.uint32(10).fork()).ldelim(),d.consensus_state!==void 0&&c.Any.encode(d.consensus_state,p.uint32(18).fork()).ldelim(),d.signer!==""&&p.uint32(26).string(d.signer),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={client_state:void 0,consensus_state:void 0,signer:""};for(;_.pos>>3){case 1:I.client_state=c.Any.decode(_,_.uint32());break;case 2:I.consensus_state=c.Any.decode(_,_.uint32());break;case 3:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_state:f(d.client_state)?c.Any.fromJSON(d.client_state):void 0,consensus_state:f(d.consensus_state)?c.Any.fromJSON(d.consensus_state):void 0,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const p={};return d.client_state!==void 0&&(p.client_state=d.client_state?c.Any.toJSON(d.client_state):void 0),d.consensus_state!==void 0&&(p.consensus_state=d.consensus_state?c.Any.toJSON(d.consensus_state):void 0),d.signer!==void 0&&(p.signer=d.signer),p},fromPartial(d){var p;const _={client_state:void 0,consensus_state:void 0,signer:""};return _.client_state=d.client_state!==void 0&&d.client_state!==null?c.Any.fromPartial(d.client_state):void 0,_.consensus_state=d.consensus_state!==void 0&&d.consensus_state!==null?c.Any.fromPartial(d.consensus_state):void 0,_.signer=(p=d.signer)!==null&&p!==void 0?p:"",_}},e.MsgCreateClientResponse={encode:(d,p=t.Writer.create())=>p,decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgUpdateClient={encode:(d,p=t.Writer.create())=>(d.client_id!==""&&p.uint32(10).string(d.client_id),d.header!==void 0&&c.Any.encode(d.header,p.uint32(18).fork()).ldelim(),d.signer!==""&&p.uint32(26).string(d.signer),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={client_id:"",header:void 0,signer:""};for(;_.pos>>3){case 1:I.client_id=_.string();break;case 2:I.header=c.Any.decode(_,_.uint32());break;case 3:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_id:f(d.client_id)?String(d.client_id):"",header:f(d.header)?c.Any.fromJSON(d.header):void 0,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const p={};return d.client_id!==void 0&&(p.client_id=d.client_id),d.header!==void 0&&(p.header=d.header?c.Any.toJSON(d.header):void 0),d.signer!==void 0&&(p.signer=d.signer),p},fromPartial(d){var p,_;const b={client_id:"",header:void 0,signer:""};return b.client_id=(p=d.client_id)!==null&&p!==void 0?p:"",b.header=d.header!==void 0&&d.header!==null?c.Any.fromPartial(d.header):void 0,b.signer=(_=d.signer)!==null&&_!==void 0?_:"",b}},e.MsgUpdateClientResponse={encode:(d,p=t.Writer.create())=>p,decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgUpgradeClient={encode:(d,p=t.Writer.create())=>(d.client_id!==""&&p.uint32(10).string(d.client_id),d.client_state!==void 0&&c.Any.encode(d.client_state,p.uint32(18).fork()).ldelim(),d.consensus_state!==void 0&&c.Any.encode(d.consensus_state,p.uint32(26).fork()).ldelim(),d.proof_upgrade_client.length!==0&&p.uint32(34).bytes(d.proof_upgrade_client),d.proof_upgrade_consensus_state.length!==0&&p.uint32(42).bytes(d.proof_upgrade_consensus_state),d.signer!==""&&p.uint32(50).string(d.signer),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I=u();for(;_.pos>>3){case 1:I.client_id=_.string();break;case 2:I.client_state=c.Any.decode(_,_.uint32());break;case 3:I.consensus_state=c.Any.decode(_,_.uint32());break;case 4:I.proof_upgrade_client=_.bytes();break;case 5:I.proof_upgrade_consensus_state=_.bytes();break;case 6:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_id:f(d.client_id)?String(d.client_id):"",client_state:f(d.client_state)?c.Any.fromJSON(d.client_state):void 0,consensus_state:f(d.consensus_state)?c.Any.fromJSON(d.consensus_state):void 0,proof_upgrade_client:f(d.proof_upgrade_client)?n(d.proof_upgrade_client):new Uint8Array,proof_upgrade_consensus_state:f(d.proof_upgrade_consensus_state)?n(d.proof_upgrade_consensus_state):new Uint8Array,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const p={};return d.client_id!==void 0&&(p.client_id=d.client_id),d.client_state!==void 0&&(p.client_state=d.client_state?c.Any.toJSON(d.client_state):void 0),d.consensus_state!==void 0&&(p.consensus_state=d.consensus_state?c.Any.toJSON(d.consensus_state):void 0),d.proof_upgrade_client!==void 0&&(p.proof_upgrade_client=i(d.proof_upgrade_client!==void 0?d.proof_upgrade_client:new Uint8Array)),d.proof_upgrade_consensus_state!==void 0&&(p.proof_upgrade_consensus_state=i(d.proof_upgrade_consensus_state!==void 0?d.proof_upgrade_consensus_state:new Uint8Array)),d.signer!==void 0&&(p.signer=d.signer),p},fromPartial(d){var p,_,b,I;const l=u();return l.client_id=(p=d.client_id)!==null&&p!==void 0?p:"",l.client_state=d.client_state!==void 0&&d.client_state!==null?c.Any.fromPartial(d.client_state):void 0,l.consensus_state=d.consensus_state!==void 0&&d.consensus_state!==null?c.Any.fromPartial(d.consensus_state):void 0,l.proof_upgrade_client=(_=d.proof_upgrade_client)!==null&&_!==void 0?_:new Uint8Array,l.proof_upgrade_consensus_state=(b=d.proof_upgrade_consensus_state)!==null&&b!==void 0?b:new Uint8Array,l.signer=(I=d.signer)!==null&&I!==void 0?I:"",l}},e.MsgUpgradeClientResponse={encode:(d,p=t.Writer.create())=>p,decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgSubmitMisbehaviour={encode:(d,p=t.Writer.create())=>(d.client_id!==""&&p.uint32(10).string(d.client_id),d.misbehaviour!==void 0&&c.Any.encode(d.misbehaviour,p.uint32(18).fork()).ldelim(),d.signer!==""&&p.uint32(26).string(d.signer),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={client_id:"",misbehaviour:void 0,signer:""};for(;_.pos>>3){case 1:I.client_id=_.string();break;case 2:I.misbehaviour=c.Any.decode(_,_.uint32());break;case 3:I.signer=_.string();break;default:_.skipType(7&l)}}return I},fromJSON:d=>({client_id:f(d.client_id)?String(d.client_id):"",misbehaviour:f(d.misbehaviour)?c.Any.fromJSON(d.misbehaviour):void 0,signer:f(d.signer)?String(d.signer):""}),toJSON(d){const p={};return d.client_id!==void 0&&(p.client_id=d.client_id),d.misbehaviour!==void 0&&(p.misbehaviour=d.misbehaviour?c.Any.toJSON(d.misbehaviour):void 0),d.signer!==void 0&&(p.signer=d.signer),p},fromPartial(d){var p,_;const b={client_id:"",misbehaviour:void 0,signer:""};return b.client_id=(p=d.client_id)!==null&&p!==void 0?p:"",b.misbehaviour=d.misbehaviour!==void 0&&d.misbehaviour!==null?c.Any.fromPartial(d.misbehaviour):void 0,b.signer=(_=d.signer)!==null&&_!==void 0?_:"",b}},e.MsgSubmitMisbehaviourResponse={encode:(d,p=t.Writer.create())=>p,decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;for(;_.pos({}),toJSON:d=>({}),fromPartial:d=>({})},e.MsgClientImpl=class{constructor(d){this.rpc=d,this.CreateClient=this.CreateClient.bind(this),this.UpdateClient=this.UpdateClient.bind(this),this.UpgradeClient=this.UpgradeClient.bind(this),this.SubmitMisbehaviour=this.SubmitMisbehaviour.bind(this)}CreateClient(d){const p=e.MsgCreateClient.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","CreateClient",p).then(_=>e.MsgCreateClientResponse.decode(new t.Reader(_)))}UpdateClient(d){const p=e.MsgUpdateClient.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpdateClient",p).then(_=>e.MsgUpdateClientResponse.decode(new t.Reader(_)))}UpgradeClient(d){const p=e.MsgUpgradeClient.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","UpgradeClient",p).then(_=>e.MsgUpgradeClientResponse.decode(new t.Reader(_)))}SubmitMisbehaviour(d){const p=e.MsgSubmitMisbehaviour.encode(d).finish();return this.rpc.request("ibc.core.client.v1.Msg","SubmitMisbehaviour",p).then(_=>e.MsgSubmitMisbehaviourResponse.decode(new t.Reader(_)))}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const p=r(d),_=new Uint8Array(p.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){const p=[];for(const _ of d)p.push(String.fromCharCode(_));return o(p.join(""))}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5261:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(p,_,b,I){I===void 0&&(I=b),Object.defineProperty(p,I,{enumerable:!0,get:function(){return _[b]}})}:function(p,_,b,I){I===void 0&&(I=b),p[I]=_[b]}),O=this&&this.__setModuleDefault||(Object.create?function(p,_){Object.defineProperty(p,"default",{enumerable:!0,value:_})}:function(p,_){p.default=_}),k=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var _={};if(p!=null)for(var b in p)b!=="default"&&Object.prototype.hasOwnProperty.call(p,b)&&w(_,p,b);return O(_,p),_},S=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleProof=e.MerklePath=e.MerklePrefix=e.MerkleRoot=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(6578);function u(){return{hash:new Uint8Array}}function s(){return{key_prefix:new Uint8Array}}e.protobufPackage="ibc.core.commitment.v1",e.MerkleRoot={encode:(p,_=t.Writer.create())=>(p.hash.length!==0&&_.uint32(10).bytes(p.hash),_),decode(p,_){const b=p instanceof t.Reader?p:new t.Reader(p);let I=_===void 0?b.len:b.pos+_;const l=u();for(;b.pos>>3==1?l.hash=b.bytes():b.skipType(7&j)}return l},fromJSON:p=>({hash:d(p.hash)?o(p.hash):new Uint8Array}),toJSON(p){const _={};return p.hash!==void 0&&(_.hash=f(p.hash!==void 0?p.hash:new Uint8Array)),_},fromPartial(p){var _;const b=u();return b.hash=(_=p.hash)!==null&&_!==void 0?_:new Uint8Array,b}},e.MerklePrefix={encode:(p,_=t.Writer.create())=>(p.key_prefix.length!==0&&_.uint32(10).bytes(p.key_prefix),_),decode(p,_){const b=p instanceof t.Reader?p:new t.Reader(p);let I=_===void 0?b.len:b.pos+_;const l=s();for(;b.pos>>3==1?l.key_prefix=b.bytes():b.skipType(7&j)}return l},fromJSON:p=>({key_prefix:d(p.key_prefix)?o(p.key_prefix):new Uint8Array}),toJSON(p){const _={};return p.key_prefix!==void 0&&(_.key_prefix=f(p.key_prefix!==void 0?p.key_prefix:new Uint8Array)),_},fromPartial(p){var _;const b=s();return b.key_prefix=(_=p.key_prefix)!==null&&_!==void 0?_:new Uint8Array,b}},e.MerklePath={encode(p,_=t.Writer.create()){for(const b of p.key_path)_.uint32(10).string(b);return _},decode(p,_){const b=p instanceof t.Reader?p:new t.Reader(p);let I=_===void 0?b.len:b.pos+_;const l={key_path:[]};for(;b.pos>>3==1?l.key_path.push(b.string()):b.skipType(7&j)}return l},fromJSON:p=>({key_path:Array.isArray(p==null?void 0:p.key_path)?p.key_path.map(_=>String(_)):[]}),toJSON(p){const _={};return p.key_path?_.key_path=p.key_path.map(b=>b):_.key_path=[],_},fromPartial(p){var _;const b={key_path:[]};return b.key_path=((_=p.key_path)===null||_===void 0?void 0:_.map(I=>I))||[],b}},e.MerkleProof={encode(p,_=t.Writer.create()){for(const b of p.proofs)c.CommitmentProof.encode(b,_.uint32(10).fork()).ldelim();return _},decode(p,_){const b=p instanceof t.Reader?p:new t.Reader(p);let I=_===void 0?b.len:b.pos+_;const l={proofs:[]};for(;b.pos>>3==1?l.proofs.push(c.CommitmentProof.decode(b,b.uint32())):b.skipType(7&j)}return l},fromJSON:p=>({proofs:Array.isArray(p==null?void 0:p.proofs)?p.proofs.map(_=>c.CommitmentProof.fromJSON(_)):[]}),toJSON(p){const _={};return p.proofs?_.proofs=p.proofs.map(b=>b?c.CommitmentProof.toJSON(b):void 0):_.proofs=[],_},fromPartial(p){var _;const b={proofs:[]};return b.proofs=((_=p.proofs)===null||_===void 0?void 0:_.map(I=>c.CommitmentProof.fromPartial(I)))||[],b}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const n=r.atob||(p=>r.Buffer.from(p,"base64").toString("binary"));function o(p){const _=n(p),b=new Uint8Array(_.length);for(let I=0;I<_.length;++I)b[I]=_.charCodeAt(I);return b}const i=r.btoa||(p=>r.Buffer.from(p,"binary").toString("base64"));function f(p){const _=[];for(const b of p)_.push(String.fromCharCode(b));return i(_.join(""))}function d(p){return p!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},6788:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(i,f,d,p){p===void 0&&(p=d),Object.defineProperty(i,p,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,p){p===void 0&&(p=d),i[p]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.Params=e.Version=e.ConnectionPaths=e.ClientPaths=e.Counterparty=e.IdentifiedConnection=e.ConnectionEnd=e.stateToJSON=e.stateFromJSON=e.State=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(5261);var u;function s(i){switch(i){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return u.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return u.STATE_INIT;case 2:case"STATE_TRYOPEN":return u.STATE_TRYOPEN;case 3:case"STATE_OPEN":return u.STATE_OPEN;default:return u.UNRECOGNIZED}}function r(i){switch(i){case u.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case u.STATE_INIT:return"STATE_INIT";case u.STATE_TRYOPEN:return"STATE_TRYOPEN";case u.STATE_OPEN:return"STATE_OPEN";default:return"UNKNOWN"}}function n(i){return i.toString()}function o(i){return i!=null}e.protobufPackage="ibc.core.connection.v1",function(i){i[i.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",i[i.STATE_INIT=1]="STATE_INIT",i[i.STATE_TRYOPEN=2]="STATE_TRYOPEN",i[i.STATE_OPEN=3]="STATE_OPEN",i[i.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=e.State||(e.State={})),e.stateFromJSON=s,e.stateToJSON=r,e.ConnectionEnd={encode(i,f=t.Writer.create()){i.client_id!==""&&f.uint32(10).string(i.client_id);for(const d of i.versions)e.Version.encode(d,f.uint32(18).fork()).ldelim();return i.state!==0&&f.uint32(24).int32(i.state),i.counterparty!==void 0&&e.Counterparty.encode(i.counterparty,f.uint32(34).fork()).ldelim(),i.delay_period!=="0"&&f.uint32(40).uint64(i.delay_period),f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};for(;d.pos>>3){case 1:_.client_id=d.string();break;case 2:_.versions.push(e.Version.decode(d,d.uint32()));break;case 3:_.state=d.int32();break;case 4:_.counterparty=e.Counterparty.decode(d,d.uint32());break;case 5:_.delay_period=n(d.uint64());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",versions:Array.isArray(i==null?void 0:i.versions)?i.versions.map(f=>e.Version.fromJSON(f)):[],state:o(i.state)?s(i.state):0,counterparty:o(i.counterparty)?e.Counterparty.fromJSON(i.counterparty):void 0,delay_period:o(i.delay_period)?String(i.delay_period):"0"}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.versions?f.versions=i.versions.map(d=>d?e.Version.toJSON(d):void 0):f.versions=[],i.state!==void 0&&(f.state=r(i.state)),i.counterparty!==void 0&&(f.counterparty=i.counterparty?e.Counterparty.toJSON(i.counterparty):void 0),i.delay_period!==void 0&&(f.delay_period=i.delay_period),f},fromPartial(i){var f,d,p,_;const b={client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};return b.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",b.versions=((d=i.versions)===null||d===void 0?void 0:d.map(I=>e.Version.fromPartial(I)))||[],b.state=(p=i.state)!==null&&p!==void 0?p:0,b.counterparty=i.counterparty!==void 0&&i.counterparty!==null?e.Counterparty.fromPartial(i.counterparty):void 0,b.delay_period=(_=i.delay_period)!==null&&_!==void 0?_:"0",b}},e.IdentifiedConnection={encode(i,f=t.Writer.create()){i.id!==""&&f.uint32(10).string(i.id),i.client_id!==""&&f.uint32(18).string(i.client_id);for(const d of i.versions)e.Version.encode(d,f.uint32(26).fork()).ldelim();return i.state!==0&&f.uint32(32).int32(i.state),i.counterparty!==void 0&&e.Counterparty.encode(i.counterparty,f.uint32(42).fork()).ldelim(),i.delay_period!=="0"&&f.uint32(48).uint64(i.delay_period),f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={id:"",client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};for(;d.pos>>3){case 1:_.id=d.string();break;case 2:_.client_id=d.string();break;case 3:_.versions.push(e.Version.decode(d,d.uint32()));break;case 4:_.state=d.int32();break;case 5:_.counterparty=e.Counterparty.decode(d,d.uint32());break;case 6:_.delay_period=n(d.uint64());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({id:o(i.id)?String(i.id):"",client_id:o(i.client_id)?String(i.client_id):"",versions:Array.isArray(i==null?void 0:i.versions)?i.versions.map(f=>e.Version.fromJSON(f)):[],state:o(i.state)?s(i.state):0,counterparty:o(i.counterparty)?e.Counterparty.fromJSON(i.counterparty):void 0,delay_period:o(i.delay_period)?String(i.delay_period):"0"}),toJSON(i){const f={};return i.id!==void 0&&(f.id=i.id),i.client_id!==void 0&&(f.client_id=i.client_id),i.versions?f.versions=i.versions.map(d=>d?e.Version.toJSON(d):void 0):f.versions=[],i.state!==void 0&&(f.state=r(i.state)),i.counterparty!==void 0&&(f.counterparty=i.counterparty?e.Counterparty.toJSON(i.counterparty):void 0),i.delay_period!==void 0&&(f.delay_period=i.delay_period),f},fromPartial(i){var f,d,p,_,b;const I={id:"",client_id:"",versions:[],state:0,counterparty:void 0,delay_period:"0"};return I.id=(f=i.id)!==null&&f!==void 0?f:"",I.client_id=(d=i.client_id)!==null&&d!==void 0?d:"",I.versions=((p=i.versions)===null||p===void 0?void 0:p.map(l=>e.Version.fromPartial(l)))||[],I.state=(_=i.state)!==null&&_!==void 0?_:0,I.counterparty=i.counterparty!==void 0&&i.counterparty!==null?e.Counterparty.fromPartial(i.counterparty):void 0,I.delay_period=(b=i.delay_period)!==null&&b!==void 0?b:"0",I}},e.Counterparty={encode:(i,f=t.Writer.create())=>(i.client_id!==""&&f.uint32(10).string(i.client_id),i.connection_id!==""&&f.uint32(18).string(i.connection_id),i.prefix!==void 0&&c.MerklePrefix.encode(i.prefix,f.uint32(26).fork()).ldelim(),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={client_id:"",connection_id:"",prefix:void 0};for(;d.pos>>3){case 1:_.client_id=d.string();break;case 2:_.connection_id=d.string();break;case 3:_.prefix=c.MerklePrefix.decode(d,d.uint32());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",connection_id:o(i.connection_id)?String(i.connection_id):"",prefix:o(i.prefix)?c.MerklePrefix.fromJSON(i.prefix):void 0}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.connection_id!==void 0&&(f.connection_id=i.connection_id),i.prefix!==void 0&&(f.prefix=i.prefix?c.MerklePrefix.toJSON(i.prefix):void 0),f},fromPartial(i){var f,d;const p={client_id:"",connection_id:"",prefix:void 0};return p.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",p.connection_id=(d=i.connection_id)!==null&&d!==void 0?d:"",p.prefix=i.prefix!==void 0&&i.prefix!==null?c.MerklePrefix.fromPartial(i.prefix):void 0,p}},e.ClientPaths={encode(i,f=t.Writer.create()){for(const d of i.paths)f.uint32(10).string(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={paths:[]};for(;d.pos>>3==1?_.paths.push(d.string()):d.skipType(7&b)}return _},fromJSON:i=>({paths:Array.isArray(i==null?void 0:i.paths)?i.paths.map(f=>String(f)):[]}),toJSON(i){const f={};return i.paths?f.paths=i.paths.map(d=>d):f.paths=[],f},fromPartial(i){var f;const d={paths:[]};return d.paths=((f=i.paths)===null||f===void 0?void 0:f.map(p=>p))||[],d}},e.ConnectionPaths={encode(i,f=t.Writer.create()){i.client_id!==""&&f.uint32(10).string(i.client_id);for(const d of i.paths)f.uint32(18).string(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={client_id:"",paths:[]};for(;d.pos>>3){case 1:_.client_id=d.string();break;case 2:_.paths.push(d.string());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({client_id:o(i.client_id)?String(i.client_id):"",paths:Array.isArray(i==null?void 0:i.paths)?i.paths.map(f=>String(f)):[]}),toJSON(i){const f={};return i.client_id!==void 0&&(f.client_id=i.client_id),i.paths?f.paths=i.paths.map(d=>d):f.paths=[],f},fromPartial(i){var f,d;const p={client_id:"",paths:[]};return p.client_id=(f=i.client_id)!==null&&f!==void 0?f:"",p.paths=((d=i.paths)===null||d===void 0?void 0:d.map(_=>_))||[],p}},e.Version={encode(i,f=t.Writer.create()){i.identifier!==""&&f.uint32(10).string(i.identifier);for(const d of i.features)f.uint32(18).string(d);return f},decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={identifier:"",features:[]};for(;d.pos>>3){case 1:_.identifier=d.string();break;case 2:_.features.push(d.string());break;default:d.skipType(7&b)}}return _},fromJSON:i=>({identifier:o(i.identifier)?String(i.identifier):"",features:Array.isArray(i==null?void 0:i.features)?i.features.map(f=>String(f)):[]}),toJSON(i){const f={};return i.identifier!==void 0&&(f.identifier=i.identifier),i.features?f.features=i.features.map(d=>d):f.features=[],f},fromPartial(i){var f,d;const p={identifier:"",features:[]};return p.identifier=(f=i.identifier)!==null&&f!==void 0?f:"",p.features=((d=i.features)===null||d===void 0?void 0:d.map(_=>_))||[],p}},e.Params={encode:(i,f=t.Writer.create())=>(i.max_expected_time_per_block!=="0"&&f.uint32(8).uint64(i.max_expected_time_per_block),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={max_expected_time_per_block:"0"};for(;d.pos>>3==1?_.max_expected_time_per_block=n(d.uint64()):d.skipType(7&b)}return _},fromJSON:i=>({max_expected_time_per_block:o(i.max_expected_time_per_block)?String(i.max_expected_time_per_block):"0"}),toJSON(i){const f={};return i.max_expected_time_per_block!==void 0&&(f.max_expected_time_per_block=i.max_expected_time_per_block),f},fromPartial(i){var f;const d={max_expected_time_per_block:"0"};return d.max_expected_time_per_block=(f=i.max_expected_time_per_block)!==null&&f!==void 0?f:"0",d}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},8344:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(l,j,M,N){N===void 0&&(N=M),Object.defineProperty(l,N,{enumerable:!0,get:function(){return j[M]}})}:function(l,j,M,N){N===void 0&&(N=M),l[N]=j[M]}),O=this&&this.__setModuleDefault||(Object.create?function(l,j){Object.defineProperty(l,"default",{enumerable:!0,value:j})}:function(l,j){l.default=j}),k=this&&this.__importStar||function(l){if(l&&l.__esModule)return l;var j={};if(l!=null)for(var M in l)M!=="default"&&Object.prototype.hasOwnProperty.call(l,M)&&w(j,l,M);return O(j,l),j},S=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgConnectionOpenConfirmResponse=e.MsgConnectionOpenConfirm=e.MsgConnectionOpenAckResponse=e.MsgConnectionOpenAck=e.MsgConnectionOpenTryResponse=e.MsgConnectionOpenTry=e.MsgConnectionOpenInitResponse=e.MsgConnectionOpenInit=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(6788),u=h(4191),s=h(5650);function r(){return{client_id:"",previous_connection_id:"",client_state:void 0,counterparty:void 0,delay_period:"0",counterparty_versions:[],proof_height:void 0,proof_init:new Uint8Array,proof_client:new Uint8Array,proof_consensus:new Uint8Array,consensus_height:void 0,signer:""}}function n(){return{connection_id:"",counterparty_connection_id:"",version:void 0,client_state:void 0,proof_height:void 0,proof_try:new Uint8Array,proof_client:new Uint8Array,proof_consensus:new Uint8Array,consensus_height:void 0,signer:""}}function o(){return{connection_id:"",proof_ack:new Uint8Array,proof_height:void 0,signer:""}}e.protobufPackage="ibc.core.connection.v1",e.MsgConnectionOpenInit={encode:(l,j=t.Writer.create())=>(l.client_id!==""&&j.uint32(10).string(l.client_id),l.counterparty!==void 0&&c.Counterparty.encode(l.counterparty,j.uint32(18).fork()).ldelim(),l.version!==void 0&&c.Version.encode(l.version,j.uint32(26).fork()).ldelim(),l.delay_period!=="0"&&j.uint32(32).uint64(l.delay_period),l.signer!==""&&j.uint32(42).string(l.signer),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C={client_id:"",counterparty:void 0,version:void 0,delay_period:"0",signer:""};for(;M.pos>>3){case 1:C.client_id=M.string();break;case 2:C.counterparty=c.Counterparty.decode(M,M.uint32());break;case 3:C.version=c.Version.decode(M,M.uint32());break;case 4:C.delay_period=b(M.uint64());break;case 5:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({client_id:I(l.client_id)?String(l.client_id):"",counterparty:I(l.counterparty)?c.Counterparty.fromJSON(l.counterparty):void 0,version:I(l.version)?c.Version.fromJSON(l.version):void 0,delay_period:I(l.delay_period)?String(l.delay_period):"0",signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.client_id!==void 0&&(j.client_id=l.client_id),l.counterparty!==void 0&&(j.counterparty=l.counterparty?c.Counterparty.toJSON(l.counterparty):void 0),l.version!==void 0&&(j.version=l.version?c.Version.toJSON(l.version):void 0),l.delay_period!==void 0&&(j.delay_period=l.delay_period),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N;const C={client_id:"",counterparty:void 0,version:void 0,delay_period:"0",signer:""};return C.client_id=(j=l.client_id)!==null&&j!==void 0?j:"",C.counterparty=l.counterparty!==void 0&&l.counterparty!==null?c.Counterparty.fromPartial(l.counterparty):void 0,C.version=l.version!==void 0&&l.version!==null?c.Version.fromPartial(l.version):void 0,C.delay_period=(M=l.delay_period)!==null&&M!==void 0?M:"0",C.signer=(N=l.signer)!==null&&N!==void 0?N:"",C}},e.MsgConnectionOpenInitResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenTry={encode(l,j=t.Writer.create()){l.client_id!==""&&j.uint32(10).string(l.client_id),l.previous_connection_id!==""&&j.uint32(18).string(l.previous_connection_id),l.client_state!==void 0&&u.Any.encode(l.client_state,j.uint32(26).fork()).ldelim(),l.counterparty!==void 0&&c.Counterparty.encode(l.counterparty,j.uint32(34).fork()).ldelim(),l.delay_period!=="0"&&j.uint32(40).uint64(l.delay_period);for(const M of l.counterparty_versions)c.Version.encode(M,j.uint32(50).fork()).ldelim();return l.proof_height!==void 0&&s.Height.encode(l.proof_height,j.uint32(58).fork()).ldelim(),l.proof_init.length!==0&&j.uint32(66).bytes(l.proof_init),l.proof_client.length!==0&&j.uint32(74).bytes(l.proof_client),l.proof_consensus.length!==0&&j.uint32(82).bytes(l.proof_consensus),l.consensus_height!==void 0&&s.Height.encode(l.consensus_height,j.uint32(90).fork()).ldelim(),l.signer!==""&&j.uint32(98).string(l.signer),j},decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=r();for(;M.pos>>3){case 1:C.client_id=M.string();break;case 2:C.previous_connection_id=M.string();break;case 3:C.client_state=u.Any.decode(M,M.uint32());break;case 4:C.counterparty=c.Counterparty.decode(M,M.uint32());break;case 5:C.delay_period=b(M.uint64());break;case 6:C.counterparty_versions.push(c.Version.decode(M,M.uint32()));break;case 7:C.proof_height=s.Height.decode(M,M.uint32());break;case 8:C.proof_init=M.bytes();break;case 9:C.proof_client=M.bytes();break;case 10:C.proof_consensus=M.bytes();break;case 11:C.consensus_height=s.Height.decode(M,M.uint32());break;case 12:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({client_id:I(l.client_id)?String(l.client_id):"",previous_connection_id:I(l.previous_connection_id)?String(l.previous_connection_id):"",client_state:I(l.client_state)?u.Any.fromJSON(l.client_state):void 0,counterparty:I(l.counterparty)?c.Counterparty.fromJSON(l.counterparty):void 0,delay_period:I(l.delay_period)?String(l.delay_period):"0",counterparty_versions:Array.isArray(l==null?void 0:l.counterparty_versions)?l.counterparty_versions.map(j=>c.Version.fromJSON(j)):[],proof_height:I(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,proof_init:I(l.proof_init)?d(l.proof_init):new Uint8Array,proof_client:I(l.proof_client)?d(l.proof_client):new Uint8Array,proof_consensus:I(l.proof_consensus)?d(l.proof_consensus):new Uint8Array,consensus_height:I(l.consensus_height)?s.Height.fromJSON(l.consensus_height):void 0,signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.client_id!==void 0&&(j.client_id=l.client_id),l.previous_connection_id!==void 0&&(j.previous_connection_id=l.previous_connection_id),l.client_state!==void 0&&(j.client_state=l.client_state?u.Any.toJSON(l.client_state):void 0),l.counterparty!==void 0&&(j.counterparty=l.counterparty?c.Counterparty.toJSON(l.counterparty):void 0),l.delay_period!==void 0&&(j.delay_period=l.delay_period),l.counterparty_versions?j.counterparty_versions=l.counterparty_versions.map(M=>M?c.Version.toJSON(M):void 0):j.counterparty_versions=[],l.proof_height!==void 0&&(j.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.proof_init!==void 0&&(j.proof_init=_(l.proof_init!==void 0?l.proof_init:new Uint8Array)),l.proof_client!==void 0&&(j.proof_client=_(l.proof_client!==void 0?l.proof_client:new Uint8Array)),l.proof_consensus!==void 0&&(j.proof_consensus=_(l.proof_consensus!==void 0?l.proof_consensus:new Uint8Array)),l.consensus_height!==void 0&&(j.consensus_height=l.consensus_height?s.Height.toJSON(l.consensus_height):void 0),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N,C,x,P,v,m;const E=r();return E.client_id=(j=l.client_id)!==null&&j!==void 0?j:"",E.previous_connection_id=(M=l.previous_connection_id)!==null&&M!==void 0?M:"",E.client_state=l.client_state!==void 0&&l.client_state!==null?u.Any.fromPartial(l.client_state):void 0,E.counterparty=l.counterparty!==void 0&&l.counterparty!==null?c.Counterparty.fromPartial(l.counterparty):void 0,E.delay_period=(N=l.delay_period)!==null&&N!==void 0?N:"0",E.counterparty_versions=((C=l.counterparty_versions)===null||C===void 0?void 0:C.map(B=>c.Version.fromPartial(B)))||[],E.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,E.proof_init=(x=l.proof_init)!==null&&x!==void 0?x:new Uint8Array,E.proof_client=(P=l.proof_client)!==null&&P!==void 0?P:new Uint8Array,E.proof_consensus=(v=l.proof_consensus)!==null&&v!==void 0?v:new Uint8Array,E.consensus_height=l.consensus_height!==void 0&&l.consensus_height!==null?s.Height.fromPartial(l.consensus_height):void 0,E.signer=(m=l.signer)!==null&&m!==void 0?m:"",E}},e.MsgConnectionOpenTryResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenAck={encode:(l,j=t.Writer.create())=>(l.connection_id!==""&&j.uint32(10).string(l.connection_id),l.counterparty_connection_id!==""&&j.uint32(18).string(l.counterparty_connection_id),l.version!==void 0&&c.Version.encode(l.version,j.uint32(26).fork()).ldelim(),l.client_state!==void 0&&u.Any.encode(l.client_state,j.uint32(34).fork()).ldelim(),l.proof_height!==void 0&&s.Height.encode(l.proof_height,j.uint32(42).fork()).ldelim(),l.proof_try.length!==0&&j.uint32(50).bytes(l.proof_try),l.proof_client.length!==0&&j.uint32(58).bytes(l.proof_client),l.proof_consensus.length!==0&&j.uint32(66).bytes(l.proof_consensus),l.consensus_height!==void 0&&s.Height.encode(l.consensus_height,j.uint32(74).fork()).ldelim(),l.signer!==""&&j.uint32(82).string(l.signer),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=n();for(;M.pos>>3){case 1:C.connection_id=M.string();break;case 2:C.counterparty_connection_id=M.string();break;case 3:C.version=c.Version.decode(M,M.uint32());break;case 4:C.client_state=u.Any.decode(M,M.uint32());break;case 5:C.proof_height=s.Height.decode(M,M.uint32());break;case 6:C.proof_try=M.bytes();break;case 7:C.proof_client=M.bytes();break;case 8:C.proof_consensus=M.bytes();break;case 9:C.consensus_height=s.Height.decode(M,M.uint32());break;case 10:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({connection_id:I(l.connection_id)?String(l.connection_id):"",counterparty_connection_id:I(l.counterparty_connection_id)?String(l.counterparty_connection_id):"",version:I(l.version)?c.Version.fromJSON(l.version):void 0,client_state:I(l.client_state)?u.Any.fromJSON(l.client_state):void 0,proof_height:I(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,proof_try:I(l.proof_try)?d(l.proof_try):new Uint8Array,proof_client:I(l.proof_client)?d(l.proof_client):new Uint8Array,proof_consensus:I(l.proof_consensus)?d(l.proof_consensus):new Uint8Array,consensus_height:I(l.consensus_height)?s.Height.fromJSON(l.consensus_height):void 0,signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.connection_id!==void 0&&(j.connection_id=l.connection_id),l.counterparty_connection_id!==void 0&&(j.counterparty_connection_id=l.counterparty_connection_id),l.version!==void 0&&(j.version=l.version?c.Version.toJSON(l.version):void 0),l.client_state!==void 0&&(j.client_state=l.client_state?u.Any.toJSON(l.client_state):void 0),l.proof_height!==void 0&&(j.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.proof_try!==void 0&&(j.proof_try=_(l.proof_try!==void 0?l.proof_try:new Uint8Array)),l.proof_client!==void 0&&(j.proof_client=_(l.proof_client!==void 0?l.proof_client:new Uint8Array)),l.proof_consensus!==void 0&&(j.proof_consensus=_(l.proof_consensus!==void 0?l.proof_consensus:new Uint8Array)),l.consensus_height!==void 0&&(j.consensus_height=l.consensus_height?s.Height.toJSON(l.consensus_height):void 0),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N,C,x,P;const v=n();return v.connection_id=(j=l.connection_id)!==null&&j!==void 0?j:"",v.counterparty_connection_id=(M=l.counterparty_connection_id)!==null&&M!==void 0?M:"",v.version=l.version!==void 0&&l.version!==null?c.Version.fromPartial(l.version):void 0,v.client_state=l.client_state!==void 0&&l.client_state!==null?u.Any.fromPartial(l.client_state):void 0,v.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,v.proof_try=(N=l.proof_try)!==null&&N!==void 0?N:new Uint8Array,v.proof_client=(C=l.proof_client)!==null&&C!==void 0?C:new Uint8Array,v.proof_consensus=(x=l.proof_consensus)!==null&&x!==void 0?x:new Uint8Array,v.consensus_height=l.consensus_height!==void 0&&l.consensus_height!==null?s.Height.fromPartial(l.consensus_height):void 0,v.signer=(P=l.signer)!==null&&P!==void 0?P:"",v}},e.MsgConnectionOpenAckResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgConnectionOpenConfirm={encode:(l,j=t.Writer.create())=>(l.connection_id!==""&&j.uint32(10).string(l.connection_id),l.proof_ack.length!==0&&j.uint32(18).bytes(l.proof_ack),l.proof_height!==void 0&&s.Height.encode(l.proof_height,j.uint32(26).fork()).ldelim(),l.signer!==""&&j.uint32(34).string(l.signer),j),decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;const C=o();for(;M.pos>>3){case 1:C.connection_id=M.string();break;case 2:C.proof_ack=M.bytes();break;case 3:C.proof_height=s.Height.decode(M,M.uint32());break;case 4:C.signer=M.string();break;default:M.skipType(7&x)}}return C},fromJSON:l=>({connection_id:I(l.connection_id)?String(l.connection_id):"",proof_ack:I(l.proof_ack)?d(l.proof_ack):new Uint8Array,proof_height:I(l.proof_height)?s.Height.fromJSON(l.proof_height):void 0,signer:I(l.signer)?String(l.signer):""}),toJSON(l){const j={};return l.connection_id!==void 0&&(j.connection_id=l.connection_id),l.proof_ack!==void 0&&(j.proof_ack=_(l.proof_ack!==void 0?l.proof_ack:new Uint8Array)),l.proof_height!==void 0&&(j.proof_height=l.proof_height?s.Height.toJSON(l.proof_height):void 0),l.signer!==void 0&&(j.signer=l.signer),j},fromPartial(l){var j,M,N;const C=o();return C.connection_id=(j=l.connection_id)!==null&&j!==void 0?j:"",C.proof_ack=(M=l.proof_ack)!==null&&M!==void 0?M:new Uint8Array,C.proof_height=l.proof_height!==void 0&&l.proof_height!==null?s.Height.fromPartial(l.proof_height):void 0,C.signer=(N=l.signer)!==null&&N!==void 0?N:"",C}},e.MsgConnectionOpenConfirmResponse={encode:(l,j=t.Writer.create())=>j,decode(l,j){const M=l instanceof t.Reader?l:new t.Reader(l);let N=j===void 0?M.len:M.pos+j;for(;M.pos({}),toJSON:l=>({}),fromPartial:l=>({})},e.MsgClientImpl=class{constructor(l){this.rpc=l,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(l){const j=e.MsgConnectionOpenInit.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenInit",j).then(M=>e.MsgConnectionOpenInitResponse.decode(new t.Reader(M)))}ConnectionOpenTry(l){const j=e.MsgConnectionOpenTry.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenTry",j).then(M=>e.MsgConnectionOpenTryResponse.decode(new t.Reader(M)))}ConnectionOpenAck(l){const j=e.MsgConnectionOpenAck.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenAck",j).then(M=>e.MsgConnectionOpenAckResponse.decode(new t.Reader(M)))}ConnectionOpenConfirm(l){const j=e.MsgConnectionOpenConfirm.encode(l).finish();return this.rpc.request("ibc.core.connection.v1.Msg","ConnectionOpenConfirm",j).then(M=>e.MsgConnectionOpenConfirmResponse.decode(new t.Reader(M)))}};var i=(()=>{if(i!==void 0)return i;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const f=i.atob||(l=>i.Buffer.from(l,"base64").toString("binary"));function d(l){const j=f(l),M=new Uint8Array(j.length);for(let N=0;Ni.Buffer.from(l,"binary").toString("base64"));function _(l){const j=[];for(const M of l)j.push(String.fromCharCode(M));return p(j.join(""))}function b(l){return l.toString()}function I(l){return l!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2896:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(C,x,P,v){v===void 0&&(v=P),Object.defineProperty(C,v,{enumerable:!0,get:function(){return x[P]}})}:function(C,x,P,v){v===void 0&&(v=P),C[v]=x[P]}),O=this&&this.__setModuleDefault||(Object.create?function(C,x){Object.defineProperty(C,"default",{enumerable:!0,value:x})}:function(C,x){C.default=x}),k=this&&this.__importStar||function(C){if(C&&C.__esModule)return C;var x={};if(C!=null)for(var P in C)P!=="default"&&Object.prototype.hasOwnProperty.call(C,P)&&w(x,C,P);return O(x,C),x},S=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgClearAdminResponse=e.MsgClearAdmin=e.MsgUpdateAdminResponse=e.MsgUpdateAdmin=e.MsgMigrateContractResponse=e.MsgMigrateContract=e.MsgExecuteContractResponse=e.MsgExecuteContract=e.MsgInstantiateContractResponse=e.MsgInstantiateContract=e.MsgStoreCodeResponse=e.MsgStoreCode=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2976);function u(){return{sender:new Uint8Array,wasm_byte_code:new Uint8Array,source:"",builder:""}}function s(){return{sender:new Uint8Array,callback_code_hash:"",code_id:"0",label:"",init_msg:new Uint8Array,init_funds:[],callback_sig:new Uint8Array,admin:""}}function r(){return{address:"",data:new Uint8Array}}function n(){return{sender:new Uint8Array,contract:new Uint8Array,msg:new Uint8Array,callback_code_hash:"",sent_funds:[],callback_sig:new Uint8Array}}function o(){return{data:new Uint8Array}}function i(){return{sender:"",contract:"",code_id:"0",msg:new Uint8Array,callback_sig:new Uint8Array,callback_code_hash:""}}function f(){return{data:new Uint8Array}}function d(){return{sender:"",new_admin:"",contract:"",callback_sig:new Uint8Array}}function p(){return{sender:"",contract:"",callback_sig:new Uint8Array}}e.protobufPackage="secret.compute.v1beta1",e.MsgStoreCode={encode:(C,x=t.Writer.create())=>(C.sender.length!==0&&x.uint32(10).bytes(C.sender),C.wasm_byte_code.length!==0&&x.uint32(18).bytes(C.wasm_byte_code),C.source!==""&&x.uint32(26).string(C.source),C.builder!==""&&x.uint32(34).string(C.builder),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=u();for(;P.pos>>3){case 1:m.sender=P.bytes();break;case 2:m.wasm_byte_code=P.bytes();break;case 3:m.source=P.string();break;case 4:m.builder=P.string();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?I(C.sender):new Uint8Array,wasm_byte_code:N(C.wasm_byte_code)?I(C.wasm_byte_code):new Uint8Array,source:N(C.source)?String(C.source):"",builder:N(C.builder)?String(C.builder):""}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=j(C.sender!==void 0?C.sender:new Uint8Array)),C.wasm_byte_code!==void 0&&(x.wasm_byte_code=j(C.wasm_byte_code!==void 0?C.wasm_byte_code:new Uint8Array)),C.source!==void 0&&(x.source=C.source),C.builder!==void 0&&(x.builder=C.builder),x},fromPartial(C){var x,P,v,m;const E=u();return E.sender=(x=C.sender)!==null&&x!==void 0?x:new Uint8Array,E.wasm_byte_code=(P=C.wasm_byte_code)!==null&&P!==void 0?P:new Uint8Array,E.source=(v=C.source)!==null&&v!==void 0?v:"",E.builder=(m=C.builder)!==null&&m!==void 0?m:"",E}},e.MsgStoreCodeResponse={encode:(C,x=t.Writer.create())=>(C.code_id!=="0"&&x.uint32(8).uint64(C.code_id),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m={code_id:"0"};for(;P.pos>>3==1?m.code_id=M(P.uint64()):P.skipType(7&E)}return m},fromJSON:C=>({code_id:N(C.code_id)?String(C.code_id):"0"}),toJSON(C){const x={};return C.code_id!==void 0&&(x.code_id=C.code_id),x},fromPartial(C){var x;const P={code_id:"0"};return P.code_id=(x=C.code_id)!==null&&x!==void 0?x:"0",P}},e.MsgInstantiateContract={encode(C,x=t.Writer.create()){C.sender.length!==0&&x.uint32(10).bytes(C.sender),C.callback_code_hash!==""&&x.uint32(18).string(C.callback_code_hash),C.code_id!=="0"&&x.uint32(24).uint64(C.code_id),C.label!==""&&x.uint32(34).string(C.label),C.init_msg.length!==0&&x.uint32(42).bytes(C.init_msg);for(const P of C.init_funds)c.Coin.encode(P,x.uint32(50).fork()).ldelim();return C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),C.admin!==""&&x.uint32(66).string(C.admin),x},decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=s();for(;P.pos>>3){case 1:m.sender=P.bytes();break;case 2:m.callback_code_hash=P.string();break;case 3:m.code_id=M(P.uint64());break;case 4:m.label=P.string();break;case 5:m.init_msg=P.bytes();break;case 6:m.init_funds.push(c.Coin.decode(P,P.uint32()));break;case 7:m.callback_sig=P.bytes();break;case 8:m.admin=P.string();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?I(C.sender):new Uint8Array,callback_code_hash:N(C.callback_code_hash)?String(C.callback_code_hash):"",code_id:N(C.code_id)?String(C.code_id):"0",label:N(C.label)?String(C.label):"",init_msg:N(C.init_msg)?I(C.init_msg):new Uint8Array,init_funds:Array.isArray(C==null?void 0:C.init_funds)?C.init_funds.map(x=>c.Coin.fromJSON(x)):[],callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array,admin:N(C.admin)?String(C.admin):""}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=j(C.sender!==void 0?C.sender:new Uint8Array)),C.callback_code_hash!==void 0&&(x.callback_code_hash=C.callback_code_hash),C.code_id!==void 0&&(x.code_id=C.code_id),C.label!==void 0&&(x.label=C.label),C.init_msg!==void 0&&(x.init_msg=j(C.init_msg!==void 0?C.init_msg:new Uint8Array)),C.init_funds?x.init_funds=C.init_funds.map(P=>P?c.Coin.toJSON(P):void 0):x.init_funds=[],C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),C.admin!==void 0&&(x.admin=C.admin),x},fromPartial(C){var x,P,v,m,E,B,T,q;const te=s();return te.sender=(x=C.sender)!==null&&x!==void 0?x:new Uint8Array,te.callback_code_hash=(P=C.callback_code_hash)!==null&&P!==void 0?P:"",te.code_id=(v=C.code_id)!==null&&v!==void 0?v:"0",te.label=(m=C.label)!==null&&m!==void 0?m:"",te.init_msg=(E=C.init_msg)!==null&&E!==void 0?E:new Uint8Array,te.init_funds=((B=C.init_funds)===null||B===void 0?void 0:B.map(re=>c.Coin.fromPartial(re)))||[],te.callback_sig=(T=C.callback_sig)!==null&&T!==void 0?T:new Uint8Array,te.admin=(q=C.admin)!==null&&q!==void 0?q:"",te}},e.MsgInstantiateContractResponse={encode:(C,x=t.Writer.create())=>(C.address!==""&&x.uint32(10).string(C.address),C.data.length!==0&&x.uint32(18).bytes(C.data),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=r();for(;P.pos>>3){case 1:m.address=P.string();break;case 2:m.data=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({address:N(C.address)?String(C.address):"",data:N(C.data)?I(C.data):new Uint8Array}),toJSON(C){const x={};return C.address!==void 0&&(x.address=C.address),C.data!==void 0&&(x.data=j(C.data!==void 0?C.data:new Uint8Array)),x},fromPartial(C){var x,P;const v=r();return v.address=(x=C.address)!==null&&x!==void 0?x:"",v.data=(P=C.data)!==null&&P!==void 0?P:new Uint8Array,v}},e.MsgExecuteContract={encode(C,x=t.Writer.create()){C.sender.length!==0&&x.uint32(10).bytes(C.sender),C.contract.length!==0&&x.uint32(18).bytes(C.contract),C.msg.length!==0&&x.uint32(26).bytes(C.msg),C.callback_code_hash!==""&&x.uint32(34).string(C.callback_code_hash);for(const P of C.sent_funds)c.Coin.encode(P,x.uint32(42).fork()).ldelim();return C.callback_sig.length!==0&&x.uint32(50).bytes(C.callback_sig),x},decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=n();for(;P.pos>>3){case 1:m.sender=P.bytes();break;case 2:m.contract=P.bytes();break;case 3:m.msg=P.bytes();break;case 4:m.callback_code_hash=P.string();break;case 5:m.sent_funds.push(c.Coin.decode(P,P.uint32()));break;case 6:m.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?I(C.sender):new Uint8Array,contract:N(C.contract)?I(C.contract):new Uint8Array,msg:N(C.msg)?I(C.msg):new Uint8Array,callback_code_hash:N(C.callback_code_hash)?String(C.callback_code_hash):"",sent_funds:Array.isArray(C==null?void 0:C.sent_funds)?C.sent_funds.map(x=>c.Coin.fromJSON(x)):[],callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=j(C.sender!==void 0?C.sender:new Uint8Array)),C.contract!==void 0&&(x.contract=j(C.contract!==void 0?C.contract:new Uint8Array)),C.msg!==void 0&&(x.msg=j(C.msg!==void 0?C.msg:new Uint8Array)),C.callback_code_hash!==void 0&&(x.callback_code_hash=C.callback_code_hash),C.sent_funds?x.sent_funds=C.sent_funds.map(P=>P?c.Coin.toJSON(P):void 0):x.sent_funds=[],C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),x},fromPartial(C){var x,P,v,m,E,B;const T=n();return T.sender=(x=C.sender)!==null&&x!==void 0?x:new Uint8Array,T.contract=(P=C.contract)!==null&&P!==void 0?P:new Uint8Array,T.msg=(v=C.msg)!==null&&v!==void 0?v:new Uint8Array,T.callback_code_hash=(m=C.callback_code_hash)!==null&&m!==void 0?m:"",T.sent_funds=((E=C.sent_funds)===null||E===void 0?void 0:E.map(q=>c.Coin.fromPartial(q)))||[],T.callback_sig=(B=C.callback_sig)!==null&&B!==void 0?B:new Uint8Array,T}},e.MsgExecuteContractResponse={encode:(C,x=t.Writer.create())=>(C.data.length!==0&&x.uint32(10).bytes(C.data),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=o();for(;P.pos>>3==1?m.data=P.bytes():P.skipType(7&E)}return m},fromJSON:C=>({data:N(C.data)?I(C.data):new Uint8Array}),toJSON(C){const x={};return C.data!==void 0&&(x.data=j(C.data!==void 0?C.data:new Uint8Array)),x},fromPartial(C){var x;const P=o();return P.data=(x=C.data)!==null&&x!==void 0?x:new Uint8Array,P}},e.MsgMigrateContract={encode:(C,x=t.Writer.create())=>(C.sender!==""&&x.uint32(10).string(C.sender),C.contract!==""&&x.uint32(18).string(C.contract),C.code_id!=="0"&&x.uint32(24).uint64(C.code_id),C.msg.length!==0&&x.uint32(34).bytes(C.msg),C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),C.callback_code_hash!==""&&x.uint32(66).string(C.callback_code_hash),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=i();for(;P.pos>>3){case 1:m.sender=P.string();break;case 2:m.contract=P.string();break;case 3:m.code_id=M(P.uint64());break;case 4:m.msg=P.bytes();break;case 7:m.callback_sig=P.bytes();break;case 8:m.callback_code_hash=P.string();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?String(C.sender):"",contract:N(C.contract)?String(C.contract):"",code_id:N(C.code_id)?String(C.code_id):"0",msg:N(C.msg)?I(C.msg):new Uint8Array,callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array,callback_code_hash:N(C.callback_code_hash)?String(C.callback_code_hash):""}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=C.sender),C.contract!==void 0&&(x.contract=C.contract),C.code_id!==void 0&&(x.code_id=C.code_id),C.msg!==void 0&&(x.msg=j(C.msg!==void 0?C.msg:new Uint8Array)),C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),C.callback_code_hash!==void 0&&(x.callback_code_hash=C.callback_code_hash),x},fromPartial(C){var x,P,v,m,E,B;const T=i();return T.sender=(x=C.sender)!==null&&x!==void 0?x:"",T.contract=(P=C.contract)!==null&&P!==void 0?P:"",T.code_id=(v=C.code_id)!==null&&v!==void 0?v:"0",T.msg=(m=C.msg)!==null&&m!==void 0?m:new Uint8Array,T.callback_sig=(E=C.callback_sig)!==null&&E!==void 0?E:new Uint8Array,T.callback_code_hash=(B=C.callback_code_hash)!==null&&B!==void 0?B:"",T}},e.MsgMigrateContractResponse={encode:(C,x=t.Writer.create())=>(C.data.length!==0&&x.uint32(10).bytes(C.data),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=f();for(;P.pos>>3==1?m.data=P.bytes():P.skipType(7&E)}return m},fromJSON:C=>({data:N(C.data)?I(C.data):new Uint8Array}),toJSON(C){const x={};return C.data!==void 0&&(x.data=j(C.data!==void 0?C.data:new Uint8Array)),x},fromPartial(C){var x;const P=f();return P.data=(x=C.data)!==null&&x!==void 0?x:new Uint8Array,P}},e.MsgUpdateAdmin={encode:(C,x=t.Writer.create())=>(C.sender!==""&&x.uint32(10).string(C.sender),C.new_admin!==""&&x.uint32(18).string(C.new_admin),C.contract!==""&&x.uint32(26).string(C.contract),C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=d();for(;P.pos>>3){case 1:m.sender=P.string();break;case 2:m.new_admin=P.string();break;case 3:m.contract=P.string();break;case 7:m.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?String(C.sender):"",new_admin:N(C.new_admin)?String(C.new_admin):"",contract:N(C.contract)?String(C.contract):"",callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=C.sender),C.new_admin!==void 0&&(x.new_admin=C.new_admin),C.contract!==void 0&&(x.contract=C.contract),C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),x},fromPartial(C){var x,P,v,m;const E=d();return E.sender=(x=C.sender)!==null&&x!==void 0?x:"",E.new_admin=(P=C.new_admin)!==null&&P!==void 0?P:"",E.contract=(v=C.contract)!==null&&v!==void 0?v:"",E.callback_sig=(m=C.callback_sig)!==null&&m!==void 0?m:new Uint8Array,E}},e.MsgUpdateAdminResponse={encode:(C,x=t.Writer.create())=>x,decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;for(;P.pos({}),toJSON:C=>({}),fromPartial:C=>({})},e.MsgClearAdmin={encode:(C,x=t.Writer.create())=>(C.sender!==""&&x.uint32(10).string(C.sender),C.contract!==""&&x.uint32(26).string(C.contract),C.callback_sig.length!==0&&x.uint32(58).bytes(C.callback_sig),x),decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;const m=p();for(;P.pos>>3){case 1:m.sender=P.string();break;case 3:m.contract=P.string();break;case 7:m.callback_sig=P.bytes();break;default:P.skipType(7&E)}}return m},fromJSON:C=>({sender:N(C.sender)?String(C.sender):"",contract:N(C.contract)?String(C.contract):"",callback_sig:N(C.callback_sig)?I(C.callback_sig):new Uint8Array}),toJSON(C){const x={};return C.sender!==void 0&&(x.sender=C.sender),C.contract!==void 0&&(x.contract=C.contract),C.callback_sig!==void 0&&(x.callback_sig=j(C.callback_sig!==void 0?C.callback_sig:new Uint8Array)),x},fromPartial(C){var x,P,v;const m=p();return m.sender=(x=C.sender)!==null&&x!==void 0?x:"",m.contract=(P=C.contract)!==null&&P!==void 0?P:"",m.callback_sig=(v=C.callback_sig)!==null&&v!==void 0?v:new Uint8Array,m}},e.MsgClearAdminResponse={encode:(C,x=t.Writer.create())=>x,decode(C,x){const P=C instanceof t.Reader?C:new t.Reader(C);let v=x===void 0?P.len:P.pos+x;for(;P.pos({}),toJSON:C=>({}),fromPartial:C=>({})},e.MsgClientImpl=class{constructor(C){this.rpc=C,this.StoreCode=this.StoreCode.bind(this),this.InstantiateContract=this.InstantiateContract.bind(this),this.ExecuteContract=this.ExecuteContract.bind(this),this.MigrateContract=this.MigrateContract.bind(this),this.UpdateAdmin=this.UpdateAdmin.bind(this),this.ClearAdmin=this.ClearAdmin.bind(this)}StoreCode(C){const x=e.MsgStoreCode.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","StoreCode",x).then(P=>e.MsgStoreCodeResponse.decode(new t.Reader(P)))}InstantiateContract(C){const x=e.MsgInstantiateContract.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","InstantiateContract",x).then(P=>e.MsgInstantiateContractResponse.decode(new t.Reader(P)))}ExecuteContract(C){const x=e.MsgExecuteContract.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","ExecuteContract",x).then(P=>e.MsgExecuteContractResponse.decode(new t.Reader(P)))}MigrateContract(C){const x=e.MsgMigrateContract.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","MigrateContract",x).then(P=>e.MsgMigrateContractResponse.decode(new t.Reader(P)))}UpdateAdmin(C){const x=e.MsgUpdateAdmin.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","UpdateAdmin",x).then(P=>e.MsgUpdateAdminResponse.decode(new t.Reader(P)))}ClearAdmin(C){const x=e.MsgClearAdmin.encode(C).finish();return this.rpc.request("secret.compute.v1beta1.Msg","ClearAdmin",x).then(P=>e.MsgClearAdminResponse.decode(new t.Reader(P)))}};var _=(()=>{if(_!==void 0)return _;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const b=_.atob||(C=>_.Buffer.from(C,"base64").toString("binary"));function I(C){const x=b(C),P=new Uint8Array(x.length);for(let v=0;v_.Buffer.from(C,"binary").toString("base64"));function j(C){const x=[];for(const P of C)x.push(String.fromCharCode(P));return l(x.join(""))}function M(C){return C.toString()}function N(C){return C!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},4657:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClientImpl=e.MsgToggleIbcSwitchResponse=e.MsgToggleIbcSwitch=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));e.protobufPackage="secret.emergencybutton.v1beta1",e.MsgToggleIbcSwitch={encode:(c,u=t.Writer.create())=>(c.sender!==""&&u.uint32(10).string(c.sender),u),decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;const n={sender:""};for(;s.pos>>3==1?n.sender=s.string():s.skipType(7&o)}return n},fromJSON(c){return{sender:(u=c.sender,u!=null?String(c.sender):"")};var u},toJSON(c){const u={};return c.sender!==void 0&&(u.sender=c.sender),u},fromPartial(c){var u;const s={sender:""};return s.sender=(u=c.sender)!==null&&u!==void 0?u:"",s}},e.MsgToggleIbcSwitchResponse={encode:(c,u=t.Writer.create())=>u,decode(c,u){const s=c instanceof t.Reader?c:new t.Reader(c);let r=u===void 0?s.len:s.pos+u;for(;s.pos({}),toJSON:c=>({}),fromPartial:c=>({})},e.MsgClientImpl=class{constructor(c){this.rpc=c,this.ToggleIbcSwitch=this.ToggleIbcSwitch.bind(this)}ToggleIbcSwitch(c){const u=e.MsgToggleIbcSwitch.encode(c).finish();return this.rpc.request("secret.emergencybutton.v1beta1.Msg","ToggleIbcSwitch",u).then(s=>e.MsgToggleIbcSwitchResponse.decode(new t.Reader(s)))}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1901:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(p,_,b,I){I===void 0&&(I=b),Object.defineProperty(p,I,{enumerable:!0,get:function(){return _[b]}})}:function(p,_,b,I){I===void 0&&(I=b),p[I]=_[b]}),O=this&&this.__setModuleDefault||(Object.create?function(p,_){Object.defineProperty(p,"default",{enumerable:!0,value:_})}:function(p,_){p.default=_}),k=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var _={};if(p!=null)for(var b in p)b!=="default"&&Object.prototype.hasOwnProperty.call(p,b)&&w(_,p,b);return O(_,p),_},S=this&&this.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.Key=e.MasterKey=e.RaAuthenticate=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(){return{sender:new Uint8Array,certificate:new Uint8Array}}function u(){return{bytes:new Uint8Array}}function s(){return{key:new Uint8Array}}e.protobufPackage="secret.registration.v1beta1",e.RaAuthenticate={encode:(p,_=t.Writer.create())=>(p.sender.length!==0&&_.uint32(10).bytes(p.sender),p.certificate.length!==0&&_.uint32(18).bytes(p.certificate),_),decode(p,_){const b=p instanceof t.Reader?p:new t.Reader(p);let I=_===void 0?b.len:b.pos+_;const l=c();for(;b.pos>>3){case 1:l.sender=b.bytes();break;case 2:l.certificate=b.bytes();break;default:b.skipType(7&j)}}return l},fromJSON:p=>({sender:d(p.sender)?o(p.sender):new Uint8Array,certificate:d(p.certificate)?o(p.certificate):new Uint8Array}),toJSON(p){const _={};return p.sender!==void 0&&(_.sender=f(p.sender!==void 0?p.sender:new Uint8Array)),p.certificate!==void 0&&(_.certificate=f(p.certificate!==void 0?p.certificate:new Uint8Array)),_},fromPartial(p){var _,b;const I=c();return I.sender=(_=p.sender)!==null&&_!==void 0?_:new Uint8Array,I.certificate=(b=p.certificate)!==null&&b!==void 0?b:new Uint8Array,I}},e.MasterKey={encode:(p,_=t.Writer.create())=>(p.bytes.length!==0&&_.uint32(10).bytes(p.bytes),_),decode(p,_){const b=p instanceof t.Reader?p:new t.Reader(p);let I=_===void 0?b.len:b.pos+_;const l=u();for(;b.pos>>3==1?l.bytes=b.bytes():b.skipType(7&j)}return l},fromJSON:p=>({bytes:d(p.bytes)?o(p.bytes):new Uint8Array}),toJSON(p){const _={};return p.bytes!==void 0&&(_.bytes=f(p.bytes!==void 0?p.bytes:new Uint8Array)),_},fromPartial(p){var _;const b=u();return b.bytes=(_=p.bytes)!==null&&_!==void 0?_:new Uint8Array,b}},e.Key={encode:(p,_=t.Writer.create())=>(p.key.length!==0&&_.uint32(10).bytes(p.key),_),decode(p,_){const b=p instanceof t.Reader?p:new t.Reader(p);let I=_===void 0?b.len:b.pos+_;const l=s();for(;b.pos>>3==1?l.key=b.bytes():b.skipType(7&j)}return l},fromJSON:p=>({key:d(p.key)?o(p.key):new Uint8Array}),toJSON(p){const _={};return p.key!==void 0&&(_.key=f(p.key!==void 0?p.key:new Uint8Array)),_},fromPartial(p){var _;const b=s();return b.key=(_=p.key)!==null&&_!==void 0?_:new Uint8Array,b}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const n=r.atob||(p=>r.Buffer.from(p,"base64").toString("binary"));function o(p){const _=n(p),b=new Uint8Array(_.length);for(let I=0;I<_.length;++I)b[I]=_.charCodeAt(I);return b}const i=r.btoa||(p=>r.Buffer.from(p,"binary").toString("base64"));function f(p){const _=[];for(const b of p)_.push(String.fromCharCode(b));return i(_.join(""))}function d(p){return p!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2093:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(y,A,R,U){U===void 0&&(U=R),Object.defineProperty(y,U,{enumerable:!0,get:function(){return A[R]}})}:function(y,A,R,U){U===void 0&&(U=R),y[U]=A[R]}),O=this&&this.__setModuleDefault||(Object.create?function(y,A){Object.defineProperty(y,"default",{enumerable:!0,value:A})}:function(y,A){y.default=A}),k=this&&this.__importStar||function(y){if(y&&y.__esModule)return y;var A={};if(y!=null)for(var R in y)R!=="default"&&Object.prototype.hasOwnProperty.call(y,R)&&w(A,y,R);return O(A,y),A},S=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.Event=e.LastCommitInfo=e.BlockParams=e.ConsensusParams=e.ResponseApplySnapshotChunk=e.ResponseLoadSnapshotChunk=e.ResponseOfferSnapshot=e.ResponseListSnapshots=e.ResponseCommit=e.ResponseEndBlock=e.ResponseDeliverTx=e.ResponseCheckTx=e.ResponseBeginBlock=e.ResponseQuery=e.ResponseInitChain=e.ResponseSetOption=e.ResponseInfo=e.ResponseFlush=e.ResponseEcho=e.ResponseException=e.Response=e.RequestApplySnapshotChunk=e.RequestLoadSnapshotChunk=e.RequestOfferSnapshot=e.RequestListSnapshots=e.RequestCommit=e.RequestEndBlock=e.RequestDeliverTx=e.RequestCheckTx=e.RequestBeginBlock=e.RequestQuery=e.RequestInitChain=e.RequestSetOption=e.RequestInfo=e.RequestFlush=e.RequestEcho=e.Request=e.responseApplySnapshotChunk_ResultToJSON=e.responseApplySnapshotChunk_ResultFromJSON=e.ResponseApplySnapshotChunk_Result=e.responseOfferSnapshot_ResultToJSON=e.responseOfferSnapshot_ResultFromJSON=e.ResponseOfferSnapshot_Result=e.evidenceTypeToJSON=e.evidenceTypeFromJSON=e.EvidenceType=e.checkTxTypeToJSON=e.checkTxTypeFromJSON=e.CheckTxType=e.protobufPackage=void 0,e.ABCIApplicationClientImpl=e.Snapshot=e.Evidence=e.VoteInfo=e.ValidatorUpdate=e.Validator=e.TxResult=e.EventAttribute=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(5090),u=h(9928),s=h(1093),r=h(5672),n=h(2740);var o,i,f,d;function p(y){switch(y){case 0:case"NEW":return o.NEW;case 1:case"RECHECK":return o.RECHECK;default:return o.UNRECOGNIZED}}function _(y){switch(y){case o.NEW:return"NEW";case o.RECHECK:return"RECHECK";default:return"UNKNOWN"}}function b(y){switch(y){case 0:case"UNKNOWN":return i.UNKNOWN;case 1:case"DUPLICATE_VOTE":return i.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return i.LIGHT_CLIENT_ATTACK;default:return i.UNRECOGNIZED}}function I(y){switch(y){case i.UNKNOWN:return"UNKNOWN";case i.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case i.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";default:return"UNKNOWN"}}function l(y){switch(y){case 0:case"UNKNOWN":return f.UNKNOWN;case 1:case"ACCEPT":return f.ACCEPT;case 2:case"ABORT":return f.ABORT;case 3:case"REJECT":return f.REJECT;case 4:case"REJECT_FORMAT":return f.REJECT_FORMAT;case 5:case"REJECT_SENDER":return f.REJECT_SENDER;default:return f.UNRECOGNIZED}}function j(y){switch(y){case f.UNKNOWN:return"UNKNOWN";case f.ACCEPT:return"ACCEPT";case f.ABORT:return"ABORT";case f.REJECT:return"REJECT";case f.REJECT_FORMAT:return"REJECT_FORMAT";case f.REJECT_SENDER:return"REJECT_SENDER";default:return"UNKNOWN"}}function M(y){switch(y){case 0:case"UNKNOWN":return d.UNKNOWN;case 1:case"ACCEPT":return d.ACCEPT;case 2:case"ABORT":return d.ABORT;case 3:case"RETRY":return d.RETRY;case 4:case"RETRY_SNAPSHOT":return d.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return d.REJECT_SNAPSHOT;default:return d.UNRECOGNIZED}}function N(y){switch(y){case d.UNKNOWN:return"UNKNOWN";case d.ACCEPT:return"ACCEPT";case d.ABORT:return"ABORT";case d.RETRY:return"RETRY";case d.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case d.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";default:return"UNKNOWN"}}function C(){return{time:void 0,chain_id:"",consensus_params:void 0,validators:[],app_state_bytes:new Uint8Array,initial_height:"0"}}function x(){return{data:new Uint8Array,path:"",height:"0",prove:!1}}function P(){return{hash:new Uint8Array,header:void 0,last_commit_info:void 0,byzantine_validators:[],commit:void 0,txs:[]}}function v(){return{tx:new Uint8Array,type:0}}function m(){return{tx:new Uint8Array}}function E(){return{snapshot:void 0,app_hash:new Uint8Array}}function B(){return{index:0,chunk:new Uint8Array,sender:""}}function T(){return{data:"",version:"",app_version:"0",last_block_height:"0",last_block_app_hash:new Uint8Array}}function q(){return{consensus_params:void 0,validators:[],app_hash:new Uint8Array}}function te(){return{code:0,log:"",info:"",index:"0",key:new Uint8Array,value:new Uint8Array,proof_ops:void 0,height:"0",codespace:""}}function re(){return{code:0,data:new Uint8Array,log:"",info:"",gas_wanted:"0",gas_used:"0",events:[],codespace:"",sender:"",priority:"0",mempool_error:""}}function ie(){return{code:0,data:new Uint8Array,log:"",info:"",gas_wanted:"0",gas_used:"0",events:[],codespace:""}}function J(){return{data:new Uint8Array,retain_height:"0"}}function ee(){return{chunk:new Uint8Array}}function G(){return{key:new Uint8Array,value:new Uint8Array,index:!1}}function $(){return{height:"0",index:0,tx:new Uint8Array,result:void 0}}function W(){return{address:new Uint8Array,power:"0"}}function Y(){return{height:"0",format:0,chunks:0,hash:new Uint8Array,metadata:new Uint8Array}}e.protobufPackage="tendermint.abci",function(y){y[y.NEW=0]="NEW",y[y.RECHECK=1]="RECHECK",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.CheckTxType||(e.CheckTxType={})),e.checkTxTypeFromJSON=p,e.checkTxTypeToJSON=_,function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",y[y.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=e.EvidenceType||(e.EvidenceType={})),e.evidenceTypeFromJSON=b,e.evidenceTypeToJSON=I,function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.ACCEPT=1]="ACCEPT",y[y.ABORT=2]="ABORT",y[y.REJECT=3]="REJECT",y[y.REJECT_FORMAT=4]="REJECT_FORMAT",y[y.REJECT_SENDER=5]="REJECT_SENDER",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=e.ResponseOfferSnapshot_Result||(e.ResponseOfferSnapshot_Result={})),e.responseOfferSnapshot_ResultFromJSON=l,e.responseOfferSnapshot_ResultToJSON=j,function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.ACCEPT=1]="ACCEPT",y[y.ABORT=2]="ABORT",y[y.RETRY=3]="RETRY",y[y.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",y[y.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",y[y.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=e.ResponseApplySnapshotChunk_Result||(e.ResponseApplySnapshotChunk_Result={})),e.responseApplySnapshotChunk_ResultFromJSON=M,e.responseApplySnapshotChunk_ResultToJSON=N,e.Request={encode:(y,A=t.Writer.create())=>(y.echo!==void 0&&e.RequestEcho.encode(y.echo,A.uint32(10).fork()).ldelim(),y.flush!==void 0&&e.RequestFlush.encode(y.flush,A.uint32(18).fork()).ldelim(),y.info!==void 0&&e.RequestInfo.encode(y.info,A.uint32(26).fork()).ldelim(),y.set_option!==void 0&&e.RequestSetOption.encode(y.set_option,A.uint32(34).fork()).ldelim(),y.init_chain!==void 0&&e.RequestInitChain.encode(y.init_chain,A.uint32(42).fork()).ldelim(),y.query!==void 0&&e.RequestQuery.encode(y.query,A.uint32(50).fork()).ldelim(),y.begin_block!==void 0&&e.RequestBeginBlock.encode(y.begin_block,A.uint32(58).fork()).ldelim(),y.check_tx!==void 0&&e.RequestCheckTx.encode(y.check_tx,A.uint32(66).fork()).ldelim(),y.deliver_tx!==void 0&&e.RequestDeliverTx.encode(y.deliver_tx,A.uint32(74).fork()).ldelim(),y.end_block!==void 0&&e.RequestEndBlock.encode(y.end_block,A.uint32(82).fork()).ldelim(),y.commit!==void 0&&e.RequestCommit.encode(y.commit,A.uint32(90).fork()).ldelim(),y.list_snapshots!==void 0&&e.RequestListSnapshots.encode(y.list_snapshots,A.uint32(98).fork()).ldelim(),y.offer_snapshot!==void 0&&e.RequestOfferSnapshot.encode(y.offer_snapshot,A.uint32(106).fork()).ldelim(),y.load_snapshot_chunk!==void 0&&e.RequestLoadSnapshotChunk.encode(y.load_snapshot_chunk,A.uint32(114).fork()).ldelim(),y.apply_snapshot_chunk!==void 0&&e.RequestApplySnapshotChunk.encode(y.apply_snapshot_chunk,A.uint32(122).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};for(;R.pos>>3){case 1:z.echo=e.RequestEcho.decode(R,R.uint32());break;case 2:z.flush=e.RequestFlush.decode(R,R.uint32());break;case 3:z.info=e.RequestInfo.decode(R,R.uint32());break;case 4:z.set_option=e.RequestSetOption.decode(R,R.uint32());break;case 5:z.init_chain=e.RequestInitChain.decode(R,R.uint32());break;case 6:z.query=e.RequestQuery.decode(R,R.uint32());break;case 7:z.begin_block=e.RequestBeginBlock.decode(R,R.uint32());break;case 8:z.check_tx=e.RequestCheckTx.decode(R,R.uint32());break;case 9:z.deliver_tx=e.RequestDeliverTx.decode(R,R.uint32());break;case 10:z.end_block=e.RequestEndBlock.decode(R,R.uint32());break;case 11:z.commit=e.RequestCommit.decode(R,R.uint32());break;case 12:z.list_snapshots=e.RequestListSnapshots.decode(R,R.uint32());break;case 13:z.offer_snapshot=e.RequestOfferSnapshot.decode(R,R.uint32());break;case 14:z.load_snapshot_chunk=e.RequestLoadSnapshotChunk.decode(R,R.uint32());break;case 15:z.apply_snapshot_chunk=e.RequestApplySnapshotChunk.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({echo:V(y.echo)?e.RequestEcho.fromJSON(y.echo):void 0,flush:V(y.flush)?e.RequestFlush.fromJSON(y.flush):void 0,info:V(y.info)?e.RequestInfo.fromJSON(y.info):void 0,set_option:V(y.set_option)?e.RequestSetOption.fromJSON(y.set_option):void 0,init_chain:V(y.init_chain)?e.RequestInitChain.fromJSON(y.init_chain):void 0,query:V(y.query)?e.RequestQuery.fromJSON(y.query):void 0,begin_block:V(y.begin_block)?e.RequestBeginBlock.fromJSON(y.begin_block):void 0,check_tx:V(y.check_tx)?e.RequestCheckTx.fromJSON(y.check_tx):void 0,deliver_tx:V(y.deliver_tx)?e.RequestDeliverTx.fromJSON(y.deliver_tx):void 0,end_block:V(y.end_block)?e.RequestEndBlock.fromJSON(y.end_block):void 0,commit:V(y.commit)?e.RequestCommit.fromJSON(y.commit):void 0,list_snapshots:V(y.list_snapshots)?e.RequestListSnapshots.fromJSON(y.list_snapshots):void 0,offer_snapshot:V(y.offer_snapshot)?e.RequestOfferSnapshot.fromJSON(y.offer_snapshot):void 0,load_snapshot_chunk:V(y.load_snapshot_chunk)?e.RequestLoadSnapshotChunk.fromJSON(y.load_snapshot_chunk):void 0,apply_snapshot_chunk:V(y.apply_snapshot_chunk)?e.RequestApplySnapshotChunk.fromJSON(y.apply_snapshot_chunk):void 0}),toJSON(y){const A={};return y.echo!==void 0&&(A.echo=y.echo?e.RequestEcho.toJSON(y.echo):void 0),y.flush!==void 0&&(A.flush=y.flush?e.RequestFlush.toJSON(y.flush):void 0),y.info!==void 0&&(A.info=y.info?e.RequestInfo.toJSON(y.info):void 0),y.set_option!==void 0&&(A.set_option=y.set_option?e.RequestSetOption.toJSON(y.set_option):void 0),y.init_chain!==void 0&&(A.init_chain=y.init_chain?e.RequestInitChain.toJSON(y.init_chain):void 0),y.query!==void 0&&(A.query=y.query?e.RequestQuery.toJSON(y.query):void 0),y.begin_block!==void 0&&(A.begin_block=y.begin_block?e.RequestBeginBlock.toJSON(y.begin_block):void 0),y.check_tx!==void 0&&(A.check_tx=y.check_tx?e.RequestCheckTx.toJSON(y.check_tx):void 0),y.deliver_tx!==void 0&&(A.deliver_tx=y.deliver_tx?e.RequestDeliverTx.toJSON(y.deliver_tx):void 0),y.end_block!==void 0&&(A.end_block=y.end_block?e.RequestEndBlock.toJSON(y.end_block):void 0),y.commit!==void 0&&(A.commit=y.commit?e.RequestCommit.toJSON(y.commit):void 0),y.list_snapshots!==void 0&&(A.list_snapshots=y.list_snapshots?e.RequestListSnapshots.toJSON(y.list_snapshots):void 0),y.offer_snapshot!==void 0&&(A.offer_snapshot=y.offer_snapshot?e.RequestOfferSnapshot.toJSON(y.offer_snapshot):void 0),y.load_snapshot_chunk!==void 0&&(A.load_snapshot_chunk=y.load_snapshot_chunk?e.RequestLoadSnapshotChunk.toJSON(y.load_snapshot_chunk):void 0),y.apply_snapshot_chunk!==void 0&&(A.apply_snapshot_chunk=y.apply_snapshot_chunk?e.RequestApplySnapshotChunk.toJSON(y.apply_snapshot_chunk):void 0),A},fromPartial(y){const A={echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};return A.echo=y.echo!==void 0&&y.echo!==null?e.RequestEcho.fromPartial(y.echo):void 0,A.flush=y.flush!==void 0&&y.flush!==null?e.RequestFlush.fromPartial(y.flush):void 0,A.info=y.info!==void 0&&y.info!==null?e.RequestInfo.fromPartial(y.info):void 0,A.set_option=y.set_option!==void 0&&y.set_option!==null?e.RequestSetOption.fromPartial(y.set_option):void 0,A.init_chain=y.init_chain!==void 0&&y.init_chain!==null?e.RequestInitChain.fromPartial(y.init_chain):void 0,A.query=y.query!==void 0&&y.query!==null?e.RequestQuery.fromPartial(y.query):void 0,A.begin_block=y.begin_block!==void 0&&y.begin_block!==null?e.RequestBeginBlock.fromPartial(y.begin_block):void 0,A.check_tx=y.check_tx!==void 0&&y.check_tx!==null?e.RequestCheckTx.fromPartial(y.check_tx):void 0,A.deliver_tx=y.deliver_tx!==void 0&&y.deliver_tx!==null?e.RequestDeliverTx.fromPartial(y.deliver_tx):void 0,A.end_block=y.end_block!==void 0&&y.end_block!==null?e.RequestEndBlock.fromPartial(y.end_block):void 0,A.commit=y.commit!==void 0&&y.commit!==null?e.RequestCommit.fromPartial(y.commit):void 0,A.list_snapshots=y.list_snapshots!==void 0&&y.list_snapshots!==null?e.RequestListSnapshots.fromPartial(y.list_snapshots):void 0,A.offer_snapshot=y.offer_snapshot!==void 0&&y.offer_snapshot!==null?e.RequestOfferSnapshot.fromPartial(y.offer_snapshot):void 0,A.load_snapshot_chunk=y.load_snapshot_chunk!==void 0&&y.load_snapshot_chunk!==null?e.RequestLoadSnapshotChunk.fromPartial(y.load_snapshot_chunk):void 0,A.apply_snapshot_chunk=y.apply_snapshot_chunk!==void 0&&y.apply_snapshot_chunk!==null?e.RequestApplySnapshotChunk.fromPartial(y.apply_snapshot_chunk):void 0,A}},e.RequestEcho={encode:(y,A=t.Writer.create())=>(y.message!==""&&A.uint32(10).string(y.message),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={message:""};for(;R.pos>>3==1?z.message=R.string():R.skipType(7&L)}return z},fromJSON:y=>({message:V(y.message)?String(y.message):""}),toJSON(y){const A={};return y.message!==void 0&&(A.message=y.message),A},fromPartial(y){var A;const R={message:""};return R.message=(A=y.message)!==null&&A!==void 0?A:"",R}},e.RequestFlush={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.RequestInfo={encode:(y,A=t.Writer.create())=>(y.version!==""&&A.uint32(10).string(y.version),y.block_version!=="0"&&A.uint32(16).uint64(y.block_version),y.p2p_version!=="0"&&A.uint32(24).uint64(y.p2p_version),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={version:"",block_version:"0",p2p_version:"0"};for(;R.pos>>3){case 1:z.version=R.string();break;case 2:z.block_version=ye(R.uint64());break;case 3:z.p2p_version=ye(R.uint64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({version:V(y.version)?String(y.version):"",block_version:V(y.block_version)?String(y.block_version):"0",p2p_version:V(y.p2p_version)?String(y.p2p_version):"0"}),toJSON(y){const A={};return y.version!==void 0&&(A.version=y.version),y.block_version!==void 0&&(A.block_version=y.block_version),y.p2p_version!==void 0&&(A.p2p_version=y.p2p_version),A},fromPartial(y){var A,R,U;const z={version:"",block_version:"0",p2p_version:"0"};return z.version=(A=y.version)!==null&&A!==void 0?A:"",z.block_version=(R=y.block_version)!==null&&R!==void 0?R:"0",z.p2p_version=(U=y.p2p_version)!==null&&U!==void 0?U:"0",z}},e.RequestSetOption={encode:(y,A=t.Writer.create())=>(y.key!==""&&A.uint32(10).string(y.key),y.value!==""&&A.uint32(18).string(y.value),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={key:"",value:""};for(;R.pos>>3){case 1:z.key=R.string();break;case 2:z.value=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({key:V(y.key)?String(y.key):"",value:V(y.value)?String(y.value):""}),toJSON(y){const A={};return y.key!==void 0&&(A.key=y.key),y.value!==void 0&&(A.value=y.value),A},fromPartial(y){var A,R;const U={key:"",value:""};return U.key=(A=y.key)!==null&&A!==void 0?A:"",U.value=(R=y.value)!==null&&R!==void 0?R:"",U}},e.RequestInitChain={encode(y,A=t.Writer.create()){y.time!==void 0&&c.Timestamp.encode(y.time,A.uint32(10).fork()).ldelim(),y.chain_id!==""&&A.uint32(18).string(y.chain_id),y.consensus_params!==void 0&&e.ConsensusParams.encode(y.consensus_params,A.uint32(26).fork()).ldelim();for(const R of y.validators)e.ValidatorUpdate.encode(R,A.uint32(34).fork()).ldelim();return y.app_state_bytes.length!==0&&A.uint32(42).bytes(y.app_state_bytes),y.initial_height!=="0"&&A.uint32(48).int64(y.initial_height),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=C();for(;R.pos>>3){case 1:z.time=c.Timestamp.decode(R,R.uint32());break;case 2:z.chain_id=R.string();break;case 3:z.consensus_params=e.ConsensusParams.decode(R,R.uint32());break;case 4:z.validators.push(e.ValidatorUpdate.decode(R,R.uint32()));break;case 5:z.app_state_bytes=R.bytes();break;case 6:z.initial_height=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({time:V(y.time)?pe(y.time):void 0,chain_id:V(y.chain_id)?String(y.chain_id):"",consensus_params:V(y.consensus_params)?e.ConsensusParams.fromJSON(y.consensus_params):void 0,validators:Array.isArray(y==null?void 0:y.validators)?y.validators.map(A=>e.ValidatorUpdate.fromJSON(A)):[],app_state_bytes:V(y.app_state_bytes)?he(y.app_state_bytes):new Uint8Array,initial_height:V(y.initial_height)?String(y.initial_height):"0"}),toJSON(y){const A={};return y.time!==void 0&&(A.time=de(y.time).toISOString()),y.chain_id!==void 0&&(A.chain_id=y.chain_id),y.consensus_params!==void 0&&(A.consensus_params=y.consensus_params?e.ConsensusParams.toJSON(y.consensus_params):void 0),y.validators?A.validators=y.validators.map(R=>R?e.ValidatorUpdate.toJSON(R):void 0):A.validators=[],y.app_state_bytes!==void 0&&(A.app_state_bytes=ce(y.app_state_bytes!==void 0?y.app_state_bytes:new Uint8Array)),y.initial_height!==void 0&&(A.initial_height=y.initial_height),A},fromPartial(y){var A,R,U,z;const L=C();return L.time=y.time!==void 0&&y.time!==null?c.Timestamp.fromPartial(y.time):void 0,L.chain_id=(A=y.chain_id)!==null&&A!==void 0?A:"",L.consensus_params=y.consensus_params!==void 0&&y.consensus_params!==null?e.ConsensusParams.fromPartial(y.consensus_params):void 0,L.validators=((R=y.validators)===null||R===void 0?void 0:R.map(H=>e.ValidatorUpdate.fromPartial(H)))||[],L.app_state_bytes=(U=y.app_state_bytes)!==null&&U!==void 0?U:new Uint8Array,L.initial_height=(z=y.initial_height)!==null&&z!==void 0?z:"0",L}},e.RequestQuery={encode:(y,A=t.Writer.create())=>(y.data.length!==0&&A.uint32(10).bytes(y.data),y.path!==""&&A.uint32(18).string(y.path),y.height!=="0"&&A.uint32(24).int64(y.height),y.prove===!0&&A.uint32(32).bool(y.prove),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=x();for(;R.pos>>3){case 1:z.data=R.bytes();break;case 2:z.path=R.string();break;case 3:z.height=ye(R.int64());break;case 4:z.prove=R.bool();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({data:V(y.data)?he(y.data):new Uint8Array,path:V(y.path)?String(y.path):"",height:V(y.height)?String(y.height):"0",prove:!!V(y.prove)&&!!y.prove}),toJSON(y){const A={};return y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.path!==void 0&&(A.path=y.path),y.height!==void 0&&(A.height=y.height),y.prove!==void 0&&(A.prove=y.prove),A},fromPartial(y){var A,R,U,z;const L=x();return L.data=(A=y.data)!==null&&A!==void 0?A:new Uint8Array,L.path=(R=y.path)!==null&&R!==void 0?R:"",L.height=(U=y.height)!==null&&U!==void 0?U:"0",L.prove=(z=y.prove)!==null&&z!==void 0&&z,L}},e.RequestBeginBlock={encode(y,A=t.Writer.create()){y.hash.length!==0&&A.uint32(10).bytes(y.hash),y.header!==void 0&&u.Header.encode(y.header,A.uint32(18).fork()).ldelim(),y.last_commit_info!==void 0&&e.LastCommitInfo.encode(y.last_commit_info,A.uint32(26).fork()).ldelim();for(const R of y.byzantine_validators)e.Evidence.encode(R,A.uint32(34).fork()).ldelim();y.commit!==void 0&&u.Commit.encode(y.commit,A.uint32(42).fork()).ldelim();for(const R of y.txs)A.uint32(50).bytes(R);return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=P();for(;R.pos>>3){case 1:z.hash=R.bytes();break;case 2:z.header=u.Header.decode(R,R.uint32());break;case 3:z.last_commit_info=e.LastCommitInfo.decode(R,R.uint32());break;case 4:z.byzantine_validators.push(e.Evidence.decode(R,R.uint32()));break;case 5:z.commit=u.Commit.decode(R,R.uint32());break;case 6:z.txs.push(R.bytes());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({hash:V(y.hash)?he(y.hash):new Uint8Array,header:V(y.header)?u.Header.fromJSON(y.header):void 0,last_commit_info:V(y.last_commit_info)?e.LastCommitInfo.fromJSON(y.last_commit_info):void 0,byzantine_validators:Array.isArray(y==null?void 0:y.byzantine_validators)?y.byzantine_validators.map(A=>e.Evidence.fromJSON(A)):[],commit:V(y.commit)?u.Commit.fromJSON(y.commit):void 0,txs:Array.isArray(y==null?void 0:y.txs)?y.txs.map(A=>he(A)):[]}),toJSON(y){const A={};return y.hash!==void 0&&(A.hash=ce(y.hash!==void 0?y.hash:new Uint8Array)),y.header!==void 0&&(A.header=y.header?u.Header.toJSON(y.header):void 0),y.last_commit_info!==void 0&&(A.last_commit_info=y.last_commit_info?e.LastCommitInfo.toJSON(y.last_commit_info):void 0),y.byzantine_validators?A.byzantine_validators=y.byzantine_validators.map(R=>R?e.Evidence.toJSON(R):void 0):A.byzantine_validators=[],y.commit!==void 0&&(A.commit=y.commit?u.Commit.toJSON(y.commit):void 0),y.txs?A.txs=y.txs.map(R=>ce(R!==void 0?R:new Uint8Array)):A.txs=[],A},fromPartial(y){var A,R,U;const z=P();return z.hash=(A=y.hash)!==null&&A!==void 0?A:new Uint8Array,z.header=y.header!==void 0&&y.header!==null?u.Header.fromPartial(y.header):void 0,z.last_commit_info=y.last_commit_info!==void 0&&y.last_commit_info!==null?e.LastCommitInfo.fromPartial(y.last_commit_info):void 0,z.byzantine_validators=((R=y.byzantine_validators)===null||R===void 0?void 0:R.map(L=>e.Evidence.fromPartial(L)))||[],z.commit=y.commit!==void 0&&y.commit!==null?u.Commit.fromPartial(y.commit):void 0,z.txs=((U=y.txs)===null||U===void 0?void 0:U.map(L=>L))||[],z}},e.RequestCheckTx={encode:(y,A=t.Writer.create())=>(y.tx.length!==0&&A.uint32(10).bytes(y.tx),y.type!==0&&A.uint32(16).int32(y.type),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=v();for(;R.pos>>3){case 1:z.tx=R.bytes();break;case 2:z.type=R.int32();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({tx:V(y.tx)?he(y.tx):new Uint8Array,type:V(y.type)?p(y.type):0}),toJSON(y){const A={};return y.tx!==void 0&&(A.tx=ce(y.tx!==void 0?y.tx:new Uint8Array)),y.type!==void 0&&(A.type=_(y.type)),A},fromPartial(y){var A,R;const U=v();return U.tx=(A=y.tx)!==null&&A!==void 0?A:new Uint8Array,U.type=(R=y.type)!==null&&R!==void 0?R:0,U}},e.RequestDeliverTx={encode:(y,A=t.Writer.create())=>(y.tx.length!==0&&A.uint32(10).bytes(y.tx),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=m();for(;R.pos>>3==1?z.tx=R.bytes():R.skipType(7&L)}return z},fromJSON:y=>({tx:V(y.tx)?he(y.tx):new Uint8Array}),toJSON(y){const A={};return y.tx!==void 0&&(A.tx=ce(y.tx!==void 0?y.tx:new Uint8Array)),A},fromPartial(y){var A;const R=m();return R.tx=(A=y.tx)!==null&&A!==void 0?A:new Uint8Array,R}},e.RequestEndBlock={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).int64(y.height),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={height:"0"};for(;R.pos>>3==1?z.height=ye(R.int64()):R.skipType(7&L)}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0"}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),A},fromPartial(y){var A;const R={height:"0"};return R.height=(A=y.height)!==null&&A!==void 0?A:"0",R}},e.RequestCommit={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.RequestListSnapshots={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.RequestOfferSnapshot={encode:(y,A=t.Writer.create())=>(y.snapshot!==void 0&&e.Snapshot.encode(y.snapshot,A.uint32(10).fork()).ldelim(),y.app_hash.length!==0&&A.uint32(18).bytes(y.app_hash),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=E();for(;R.pos>>3){case 1:z.snapshot=e.Snapshot.decode(R,R.uint32());break;case 2:z.app_hash=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({snapshot:V(y.snapshot)?e.Snapshot.fromJSON(y.snapshot):void 0,app_hash:V(y.app_hash)?he(y.app_hash):new Uint8Array}),toJSON(y){const A={};return y.snapshot!==void 0&&(A.snapshot=y.snapshot?e.Snapshot.toJSON(y.snapshot):void 0),y.app_hash!==void 0&&(A.app_hash=ce(y.app_hash!==void 0?y.app_hash:new Uint8Array)),A},fromPartial(y){var A;const R=E();return R.snapshot=y.snapshot!==void 0&&y.snapshot!==null?e.Snapshot.fromPartial(y.snapshot):void 0,R.app_hash=(A=y.app_hash)!==null&&A!==void 0?A:new Uint8Array,R}},e.RequestLoadSnapshotChunk={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).uint64(y.height),y.format!==0&&A.uint32(16).uint32(y.format),y.chunk!==0&&A.uint32(24).uint32(y.chunk),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={height:"0",format:0,chunk:0};for(;R.pos>>3){case 1:z.height=ye(R.uint64());break;case 2:z.format=R.uint32();break;case 3:z.chunk=R.uint32();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0",format:V(y.format)?Number(y.format):0,chunk:V(y.chunk)?Number(y.chunk):0}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),y.format!==void 0&&(A.format=Math.round(y.format)),y.chunk!==void 0&&(A.chunk=Math.round(y.chunk)),A},fromPartial(y){var A,R,U;const z={height:"0",format:0,chunk:0};return z.height=(A=y.height)!==null&&A!==void 0?A:"0",z.format=(R=y.format)!==null&&R!==void 0?R:0,z.chunk=(U=y.chunk)!==null&&U!==void 0?U:0,z}},e.RequestApplySnapshotChunk={encode:(y,A=t.Writer.create())=>(y.index!==0&&A.uint32(8).uint32(y.index),y.chunk.length!==0&&A.uint32(18).bytes(y.chunk),y.sender!==""&&A.uint32(26).string(y.sender),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=B();for(;R.pos>>3){case 1:z.index=R.uint32();break;case 2:z.chunk=R.bytes();break;case 3:z.sender=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({index:V(y.index)?Number(y.index):0,chunk:V(y.chunk)?he(y.chunk):new Uint8Array,sender:V(y.sender)?String(y.sender):""}),toJSON(y){const A={};return y.index!==void 0&&(A.index=Math.round(y.index)),y.chunk!==void 0&&(A.chunk=ce(y.chunk!==void 0?y.chunk:new Uint8Array)),y.sender!==void 0&&(A.sender=y.sender),A},fromPartial(y){var A,R,U;const z=B();return z.index=(A=y.index)!==null&&A!==void 0?A:0,z.chunk=(R=y.chunk)!==null&&R!==void 0?R:new Uint8Array,z.sender=(U=y.sender)!==null&&U!==void 0?U:"",z}},e.Response={encode:(y,A=t.Writer.create())=>(y.exception!==void 0&&e.ResponseException.encode(y.exception,A.uint32(10).fork()).ldelim(),y.echo!==void 0&&e.ResponseEcho.encode(y.echo,A.uint32(18).fork()).ldelim(),y.flush!==void 0&&e.ResponseFlush.encode(y.flush,A.uint32(26).fork()).ldelim(),y.info!==void 0&&e.ResponseInfo.encode(y.info,A.uint32(34).fork()).ldelim(),y.set_option!==void 0&&e.ResponseSetOption.encode(y.set_option,A.uint32(42).fork()).ldelim(),y.init_chain!==void 0&&e.ResponseInitChain.encode(y.init_chain,A.uint32(50).fork()).ldelim(),y.query!==void 0&&e.ResponseQuery.encode(y.query,A.uint32(58).fork()).ldelim(),y.begin_block!==void 0&&e.ResponseBeginBlock.encode(y.begin_block,A.uint32(66).fork()).ldelim(),y.check_tx!==void 0&&e.ResponseCheckTx.encode(y.check_tx,A.uint32(74).fork()).ldelim(),y.deliver_tx!==void 0&&e.ResponseDeliverTx.encode(y.deliver_tx,A.uint32(82).fork()).ldelim(),y.end_block!==void 0&&e.ResponseEndBlock.encode(y.end_block,A.uint32(90).fork()).ldelim(),y.commit!==void 0&&e.ResponseCommit.encode(y.commit,A.uint32(98).fork()).ldelim(),y.list_snapshots!==void 0&&e.ResponseListSnapshots.encode(y.list_snapshots,A.uint32(106).fork()).ldelim(),y.offer_snapshot!==void 0&&e.ResponseOfferSnapshot.encode(y.offer_snapshot,A.uint32(114).fork()).ldelim(),y.load_snapshot_chunk!==void 0&&e.ResponseLoadSnapshotChunk.encode(y.load_snapshot_chunk,A.uint32(122).fork()).ldelim(),y.apply_snapshot_chunk!==void 0&&e.ResponseApplySnapshotChunk.encode(y.apply_snapshot_chunk,A.uint32(130).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={exception:void 0,echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};for(;R.pos>>3){case 1:z.exception=e.ResponseException.decode(R,R.uint32());break;case 2:z.echo=e.ResponseEcho.decode(R,R.uint32());break;case 3:z.flush=e.ResponseFlush.decode(R,R.uint32());break;case 4:z.info=e.ResponseInfo.decode(R,R.uint32());break;case 5:z.set_option=e.ResponseSetOption.decode(R,R.uint32());break;case 6:z.init_chain=e.ResponseInitChain.decode(R,R.uint32());break;case 7:z.query=e.ResponseQuery.decode(R,R.uint32());break;case 8:z.begin_block=e.ResponseBeginBlock.decode(R,R.uint32());break;case 9:z.check_tx=e.ResponseCheckTx.decode(R,R.uint32());break;case 10:z.deliver_tx=e.ResponseDeliverTx.decode(R,R.uint32());break;case 11:z.end_block=e.ResponseEndBlock.decode(R,R.uint32());break;case 12:z.commit=e.ResponseCommit.decode(R,R.uint32());break;case 13:z.list_snapshots=e.ResponseListSnapshots.decode(R,R.uint32());break;case 14:z.offer_snapshot=e.ResponseOfferSnapshot.decode(R,R.uint32());break;case 15:z.load_snapshot_chunk=e.ResponseLoadSnapshotChunk.decode(R,R.uint32());break;case 16:z.apply_snapshot_chunk=e.ResponseApplySnapshotChunk.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({exception:V(y.exception)?e.ResponseException.fromJSON(y.exception):void 0,echo:V(y.echo)?e.ResponseEcho.fromJSON(y.echo):void 0,flush:V(y.flush)?e.ResponseFlush.fromJSON(y.flush):void 0,info:V(y.info)?e.ResponseInfo.fromJSON(y.info):void 0,set_option:V(y.set_option)?e.ResponseSetOption.fromJSON(y.set_option):void 0,init_chain:V(y.init_chain)?e.ResponseInitChain.fromJSON(y.init_chain):void 0,query:V(y.query)?e.ResponseQuery.fromJSON(y.query):void 0,begin_block:V(y.begin_block)?e.ResponseBeginBlock.fromJSON(y.begin_block):void 0,check_tx:V(y.check_tx)?e.ResponseCheckTx.fromJSON(y.check_tx):void 0,deliver_tx:V(y.deliver_tx)?e.ResponseDeliverTx.fromJSON(y.deliver_tx):void 0,end_block:V(y.end_block)?e.ResponseEndBlock.fromJSON(y.end_block):void 0,commit:V(y.commit)?e.ResponseCommit.fromJSON(y.commit):void 0,list_snapshots:V(y.list_snapshots)?e.ResponseListSnapshots.fromJSON(y.list_snapshots):void 0,offer_snapshot:V(y.offer_snapshot)?e.ResponseOfferSnapshot.fromJSON(y.offer_snapshot):void 0,load_snapshot_chunk:V(y.load_snapshot_chunk)?e.ResponseLoadSnapshotChunk.fromJSON(y.load_snapshot_chunk):void 0,apply_snapshot_chunk:V(y.apply_snapshot_chunk)?e.ResponseApplySnapshotChunk.fromJSON(y.apply_snapshot_chunk):void 0}),toJSON(y){const A={};return y.exception!==void 0&&(A.exception=y.exception?e.ResponseException.toJSON(y.exception):void 0),y.echo!==void 0&&(A.echo=y.echo?e.ResponseEcho.toJSON(y.echo):void 0),y.flush!==void 0&&(A.flush=y.flush?e.ResponseFlush.toJSON(y.flush):void 0),y.info!==void 0&&(A.info=y.info?e.ResponseInfo.toJSON(y.info):void 0),y.set_option!==void 0&&(A.set_option=y.set_option?e.ResponseSetOption.toJSON(y.set_option):void 0),y.init_chain!==void 0&&(A.init_chain=y.init_chain?e.ResponseInitChain.toJSON(y.init_chain):void 0),y.query!==void 0&&(A.query=y.query?e.ResponseQuery.toJSON(y.query):void 0),y.begin_block!==void 0&&(A.begin_block=y.begin_block?e.ResponseBeginBlock.toJSON(y.begin_block):void 0),y.check_tx!==void 0&&(A.check_tx=y.check_tx?e.ResponseCheckTx.toJSON(y.check_tx):void 0),y.deliver_tx!==void 0&&(A.deliver_tx=y.deliver_tx?e.ResponseDeliverTx.toJSON(y.deliver_tx):void 0),y.end_block!==void 0&&(A.end_block=y.end_block?e.ResponseEndBlock.toJSON(y.end_block):void 0),y.commit!==void 0&&(A.commit=y.commit?e.ResponseCommit.toJSON(y.commit):void 0),y.list_snapshots!==void 0&&(A.list_snapshots=y.list_snapshots?e.ResponseListSnapshots.toJSON(y.list_snapshots):void 0),y.offer_snapshot!==void 0&&(A.offer_snapshot=y.offer_snapshot?e.ResponseOfferSnapshot.toJSON(y.offer_snapshot):void 0),y.load_snapshot_chunk!==void 0&&(A.load_snapshot_chunk=y.load_snapshot_chunk?e.ResponseLoadSnapshotChunk.toJSON(y.load_snapshot_chunk):void 0),y.apply_snapshot_chunk!==void 0&&(A.apply_snapshot_chunk=y.apply_snapshot_chunk?e.ResponseApplySnapshotChunk.toJSON(y.apply_snapshot_chunk):void 0),A},fromPartial(y){const A={exception:void 0,echo:void 0,flush:void 0,info:void 0,set_option:void 0,init_chain:void 0,query:void 0,begin_block:void 0,check_tx:void 0,deliver_tx:void 0,end_block:void 0,commit:void 0,list_snapshots:void 0,offer_snapshot:void 0,load_snapshot_chunk:void 0,apply_snapshot_chunk:void 0};return A.exception=y.exception!==void 0&&y.exception!==null?e.ResponseException.fromPartial(y.exception):void 0,A.echo=y.echo!==void 0&&y.echo!==null?e.ResponseEcho.fromPartial(y.echo):void 0,A.flush=y.flush!==void 0&&y.flush!==null?e.ResponseFlush.fromPartial(y.flush):void 0,A.info=y.info!==void 0&&y.info!==null?e.ResponseInfo.fromPartial(y.info):void 0,A.set_option=y.set_option!==void 0&&y.set_option!==null?e.ResponseSetOption.fromPartial(y.set_option):void 0,A.init_chain=y.init_chain!==void 0&&y.init_chain!==null?e.ResponseInitChain.fromPartial(y.init_chain):void 0,A.query=y.query!==void 0&&y.query!==null?e.ResponseQuery.fromPartial(y.query):void 0,A.begin_block=y.begin_block!==void 0&&y.begin_block!==null?e.ResponseBeginBlock.fromPartial(y.begin_block):void 0,A.check_tx=y.check_tx!==void 0&&y.check_tx!==null?e.ResponseCheckTx.fromPartial(y.check_tx):void 0,A.deliver_tx=y.deliver_tx!==void 0&&y.deliver_tx!==null?e.ResponseDeliverTx.fromPartial(y.deliver_tx):void 0,A.end_block=y.end_block!==void 0&&y.end_block!==null?e.ResponseEndBlock.fromPartial(y.end_block):void 0,A.commit=y.commit!==void 0&&y.commit!==null?e.ResponseCommit.fromPartial(y.commit):void 0,A.list_snapshots=y.list_snapshots!==void 0&&y.list_snapshots!==null?e.ResponseListSnapshots.fromPartial(y.list_snapshots):void 0,A.offer_snapshot=y.offer_snapshot!==void 0&&y.offer_snapshot!==null?e.ResponseOfferSnapshot.fromPartial(y.offer_snapshot):void 0,A.load_snapshot_chunk=y.load_snapshot_chunk!==void 0&&y.load_snapshot_chunk!==null?e.ResponseLoadSnapshotChunk.fromPartial(y.load_snapshot_chunk):void 0,A.apply_snapshot_chunk=y.apply_snapshot_chunk!==void 0&&y.apply_snapshot_chunk!==null?e.ResponseApplySnapshotChunk.fromPartial(y.apply_snapshot_chunk):void 0,A}},e.ResponseException={encode:(y,A=t.Writer.create())=>(y.error!==""&&A.uint32(10).string(y.error),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={error:""};for(;R.pos>>3==1?z.error=R.string():R.skipType(7&L)}return z},fromJSON:y=>({error:V(y.error)?String(y.error):""}),toJSON(y){const A={};return y.error!==void 0&&(A.error=y.error),A},fromPartial(y){var A;const R={error:""};return R.error=(A=y.error)!==null&&A!==void 0?A:"",R}},e.ResponseEcho={encode:(y,A=t.Writer.create())=>(y.message!==""&&A.uint32(10).string(y.message),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={message:""};for(;R.pos>>3==1?z.message=R.string():R.skipType(7&L)}return z},fromJSON:y=>({message:V(y.message)?String(y.message):""}),toJSON(y){const A={};return y.message!==void 0&&(A.message=y.message),A},fromPartial(y){var A;const R={message:""};return R.message=(A=y.message)!==null&&A!==void 0?A:"",R}},e.ResponseFlush={encode:(y,A=t.Writer.create())=>A,decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;for(;R.pos({}),toJSON:y=>({}),fromPartial:y=>({})},e.ResponseInfo={encode:(y,A=t.Writer.create())=>(y.data!==""&&A.uint32(10).string(y.data),y.version!==""&&A.uint32(18).string(y.version),y.app_version!=="0"&&A.uint32(24).uint64(y.app_version),y.last_block_height!=="0"&&A.uint32(32).int64(y.last_block_height),y.last_block_app_hash.length!==0&&A.uint32(42).bytes(y.last_block_app_hash),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=T();for(;R.pos>>3){case 1:z.data=R.string();break;case 2:z.version=R.string();break;case 3:z.app_version=ye(R.uint64());break;case 4:z.last_block_height=ye(R.int64());break;case 5:z.last_block_app_hash=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({data:V(y.data)?String(y.data):"",version:V(y.version)?String(y.version):"",app_version:V(y.app_version)?String(y.app_version):"0",last_block_height:V(y.last_block_height)?String(y.last_block_height):"0",last_block_app_hash:V(y.last_block_app_hash)?he(y.last_block_app_hash):new Uint8Array}),toJSON(y){const A={};return y.data!==void 0&&(A.data=y.data),y.version!==void 0&&(A.version=y.version),y.app_version!==void 0&&(A.app_version=y.app_version),y.last_block_height!==void 0&&(A.last_block_height=y.last_block_height),y.last_block_app_hash!==void 0&&(A.last_block_app_hash=ce(y.last_block_app_hash!==void 0?y.last_block_app_hash:new Uint8Array)),A},fromPartial(y){var A,R,U,z,L;const H=T();return H.data=(A=y.data)!==null&&A!==void 0?A:"",H.version=(R=y.version)!==null&&R!==void 0?R:"",H.app_version=(U=y.app_version)!==null&&U!==void 0?U:"0",H.last_block_height=(z=y.last_block_height)!==null&&z!==void 0?z:"0",H.last_block_app_hash=(L=y.last_block_app_hash)!==null&&L!==void 0?L:new Uint8Array,H}},e.ResponseSetOption={encode:(y,A=t.Writer.create())=>(y.code!==0&&A.uint32(8).uint32(y.code),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={code:0,log:"",info:""};for(;R.pos>>3){case 1:z.code=R.uint32();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),A},fromPartial(y){var A,R,U;const z={code:0,log:"",info:""};return z.code=(A=y.code)!==null&&A!==void 0?A:0,z.log=(R=y.log)!==null&&R!==void 0?R:"",z.info=(U=y.info)!==null&&U!==void 0?U:"",z}},e.ResponseInitChain={encode(y,A=t.Writer.create()){y.consensus_params!==void 0&&e.ConsensusParams.encode(y.consensus_params,A.uint32(10).fork()).ldelim();for(const R of y.validators)e.ValidatorUpdate.encode(R,A.uint32(18).fork()).ldelim();return y.app_hash.length!==0&&A.uint32(26).bytes(y.app_hash),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=q();for(;R.pos>>3){case 1:z.consensus_params=e.ConsensusParams.decode(R,R.uint32());break;case 2:z.validators.push(e.ValidatorUpdate.decode(R,R.uint32()));break;case 3:z.app_hash=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({consensus_params:V(y.consensus_params)?e.ConsensusParams.fromJSON(y.consensus_params):void 0,validators:Array.isArray(y==null?void 0:y.validators)?y.validators.map(A=>e.ValidatorUpdate.fromJSON(A)):[],app_hash:V(y.app_hash)?he(y.app_hash):new Uint8Array}),toJSON(y){const A={};return y.consensus_params!==void 0&&(A.consensus_params=y.consensus_params?e.ConsensusParams.toJSON(y.consensus_params):void 0),y.validators?A.validators=y.validators.map(R=>R?e.ValidatorUpdate.toJSON(R):void 0):A.validators=[],y.app_hash!==void 0&&(A.app_hash=ce(y.app_hash!==void 0?y.app_hash:new Uint8Array)),A},fromPartial(y){var A,R;const U=q();return U.consensus_params=y.consensus_params!==void 0&&y.consensus_params!==null?e.ConsensusParams.fromPartial(y.consensus_params):void 0,U.validators=((A=y.validators)===null||A===void 0?void 0:A.map(z=>e.ValidatorUpdate.fromPartial(z)))||[],U.app_hash=(R=y.app_hash)!==null&&R!==void 0?R:new Uint8Array,U}},e.ResponseQuery={encode:(y,A=t.Writer.create())=>(y.code!==0&&A.uint32(8).uint32(y.code),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),y.index!=="0"&&A.uint32(40).int64(y.index),y.key.length!==0&&A.uint32(50).bytes(y.key),y.value.length!==0&&A.uint32(58).bytes(y.value),y.proof_ops!==void 0&&s.ProofOps.encode(y.proof_ops,A.uint32(66).fork()).ldelim(),y.height!=="0"&&A.uint32(72).int64(y.height),y.codespace!==""&&A.uint32(82).string(y.codespace),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=te();for(;R.pos>>3){case 1:z.code=R.uint32();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;case 5:z.index=ye(R.int64());break;case 6:z.key=R.bytes();break;case 7:z.value=R.bytes();break;case 8:z.proof_ops=s.ProofOps.decode(R,R.uint32());break;case 9:z.height=ye(R.int64());break;case 10:z.codespace=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):"",index:V(y.index)?String(y.index):"0",key:V(y.key)?he(y.key):new Uint8Array,value:V(y.value)?he(y.value):new Uint8Array,proof_ops:V(y.proof_ops)?s.ProofOps.fromJSON(y.proof_ops):void 0,height:V(y.height)?String(y.height):"0",codespace:V(y.codespace)?String(y.codespace):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),y.index!==void 0&&(A.index=y.index),y.key!==void 0&&(A.key=ce(y.key!==void 0?y.key:new Uint8Array)),y.value!==void 0&&(A.value=ce(y.value!==void 0?y.value:new Uint8Array)),y.proof_ops!==void 0&&(A.proof_ops=y.proof_ops?s.ProofOps.toJSON(y.proof_ops):void 0),y.height!==void 0&&(A.height=y.height),y.codespace!==void 0&&(A.codespace=y.codespace),A},fromPartial(y){var A,R,U,z,L,H,ne,oe;const K=te();return K.code=(A=y.code)!==null&&A!==void 0?A:0,K.log=(R=y.log)!==null&&R!==void 0?R:"",K.info=(U=y.info)!==null&&U!==void 0?U:"",K.index=(z=y.index)!==null&&z!==void 0?z:"0",K.key=(L=y.key)!==null&&L!==void 0?L:new Uint8Array,K.value=(H=y.value)!==null&&H!==void 0?H:new Uint8Array,K.proof_ops=y.proof_ops!==void 0&&y.proof_ops!==null?s.ProofOps.fromPartial(y.proof_ops):void 0,K.height=(ne=y.height)!==null&&ne!==void 0?ne:"0",K.codespace=(oe=y.codespace)!==null&&oe!==void 0?oe:"",K}},e.ResponseBeginBlock={encode(y,A=t.Writer.create()){for(const R of y.events)e.Event.encode(R,A.uint32(10).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={events:[]};for(;R.pos>>3==1?z.events.push(e.Event.decode(R,R.uint32())):R.skipType(7&L)}return z},fromJSON:y=>({events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[]}),toJSON(y){const A={};return y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],A},fromPartial(y){var A;const R={events:[]};return R.events=((A=y.events)===null||A===void 0?void 0:A.map(U=>e.Event.fromPartial(U)))||[],R}},e.ResponseCheckTx={encode(y,A=t.Writer.create()){y.code!==0&&A.uint32(8).uint32(y.code),y.data.length!==0&&A.uint32(18).bytes(y.data),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),y.gas_wanted!=="0"&&A.uint32(40).int64(y.gas_wanted),y.gas_used!=="0"&&A.uint32(48).int64(y.gas_used);for(const R of y.events)e.Event.encode(R,A.uint32(58).fork()).ldelim();return y.codespace!==""&&A.uint32(66).string(y.codespace),y.sender!==""&&A.uint32(74).string(y.sender),y.priority!=="0"&&A.uint32(80).int64(y.priority),y.mempool_error!==""&&A.uint32(90).string(y.mempool_error),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=re();for(;R.pos>>3){case 1:z.code=R.uint32();break;case 2:z.data=R.bytes();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;case 5:z.gas_wanted=ye(R.int64());break;case 6:z.gas_used=ye(R.int64());break;case 7:z.events.push(e.Event.decode(R,R.uint32()));break;case 8:z.codespace=R.string();break;case 9:z.sender=R.string();break;case 10:z.priority=ye(R.int64());break;case 11:z.mempool_error=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,data:V(y.data)?he(y.data):new Uint8Array,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):"",gas_wanted:V(y.gas_wanted)?String(y.gas_wanted):"0",gas_used:V(y.gas_used)?String(y.gas_used):"0",events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[],codespace:V(y.codespace)?String(y.codespace):"",sender:V(y.sender)?String(y.sender):"",priority:V(y.priority)?String(y.priority):"0",mempool_error:V(y.mempool_error)?String(y.mempool_error):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),y.gas_wanted!==void 0&&(A.gas_wanted=y.gas_wanted),y.gas_used!==void 0&&(A.gas_used=y.gas_used),y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],y.codespace!==void 0&&(A.codespace=y.codespace),y.sender!==void 0&&(A.sender=y.sender),y.priority!==void 0&&(A.priority=y.priority),y.mempool_error!==void 0&&(A.mempool_error=y.mempool_error),A},fromPartial(y){var A,R,U,z,L,H,ne,oe,K,X,Q;const Z=re();return Z.code=(A=y.code)!==null&&A!==void 0?A:0,Z.data=(R=y.data)!==null&&R!==void 0?R:new Uint8Array,Z.log=(U=y.log)!==null&&U!==void 0?U:"",Z.info=(z=y.info)!==null&&z!==void 0?z:"",Z.gas_wanted=(L=y.gas_wanted)!==null&&L!==void 0?L:"0",Z.gas_used=(H=y.gas_used)!==null&&H!==void 0?H:"0",Z.events=((ne=y.events)===null||ne===void 0?void 0:ne.map(se=>e.Event.fromPartial(se)))||[],Z.codespace=(oe=y.codespace)!==null&&oe!==void 0?oe:"",Z.sender=(K=y.sender)!==null&&K!==void 0?K:"",Z.priority=(X=y.priority)!==null&&X!==void 0?X:"0",Z.mempool_error=(Q=y.mempool_error)!==null&&Q!==void 0?Q:"",Z}},e.ResponseDeliverTx={encode(y,A=t.Writer.create()){y.code!==0&&A.uint32(8).uint32(y.code),y.data.length!==0&&A.uint32(18).bytes(y.data),y.log!==""&&A.uint32(26).string(y.log),y.info!==""&&A.uint32(34).string(y.info),y.gas_wanted!=="0"&&A.uint32(40).int64(y.gas_wanted),y.gas_used!=="0"&&A.uint32(48).int64(y.gas_used);for(const R of y.events)e.Event.encode(R,A.uint32(58).fork()).ldelim();return y.codespace!==""&&A.uint32(66).string(y.codespace),A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=ie();for(;R.pos>>3){case 1:z.code=R.uint32();break;case 2:z.data=R.bytes();break;case 3:z.log=R.string();break;case 4:z.info=R.string();break;case 5:z.gas_wanted=ye(R.int64());break;case 6:z.gas_used=ye(R.int64());break;case 7:z.events.push(e.Event.decode(R,R.uint32()));break;case 8:z.codespace=R.string();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({code:V(y.code)?Number(y.code):0,data:V(y.data)?he(y.data):new Uint8Array,log:V(y.log)?String(y.log):"",info:V(y.info)?String(y.info):"",gas_wanted:V(y.gas_wanted)?String(y.gas_wanted):"0",gas_used:V(y.gas_used)?String(y.gas_used):"0",events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[],codespace:V(y.codespace)?String(y.codespace):""}),toJSON(y){const A={};return y.code!==void 0&&(A.code=Math.round(y.code)),y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.log!==void 0&&(A.log=y.log),y.info!==void 0&&(A.info=y.info),y.gas_wanted!==void 0&&(A.gas_wanted=y.gas_wanted),y.gas_used!==void 0&&(A.gas_used=y.gas_used),y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],y.codespace!==void 0&&(A.codespace=y.codespace),A},fromPartial(y){var A,R,U,z,L,H,ne,oe;const K=ie();return K.code=(A=y.code)!==null&&A!==void 0?A:0,K.data=(R=y.data)!==null&&R!==void 0?R:new Uint8Array,K.log=(U=y.log)!==null&&U!==void 0?U:"",K.info=(z=y.info)!==null&&z!==void 0?z:"",K.gas_wanted=(L=y.gas_wanted)!==null&&L!==void 0?L:"0",K.gas_used=(H=y.gas_used)!==null&&H!==void 0?H:"0",K.events=((ne=y.events)===null||ne===void 0?void 0:ne.map(X=>e.Event.fromPartial(X)))||[],K.codespace=(oe=y.codespace)!==null&&oe!==void 0?oe:"",K}},e.ResponseEndBlock={encode(y,A=t.Writer.create()){for(const R of y.validator_updates)e.ValidatorUpdate.encode(R,A.uint32(10).fork()).ldelim();y.consensus_param_updates!==void 0&&e.ConsensusParams.encode(y.consensus_param_updates,A.uint32(18).fork()).ldelim();for(const R of y.events)e.Event.encode(R,A.uint32(26).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={validator_updates:[],consensus_param_updates:void 0,events:[]};for(;R.pos>>3){case 1:z.validator_updates.push(e.ValidatorUpdate.decode(R,R.uint32()));break;case 2:z.consensus_param_updates=e.ConsensusParams.decode(R,R.uint32());break;case 3:z.events.push(e.Event.decode(R,R.uint32()));break;default:R.skipType(7&L)}}return z},fromJSON:y=>({validator_updates:Array.isArray(y==null?void 0:y.validator_updates)?y.validator_updates.map(A=>e.ValidatorUpdate.fromJSON(A)):[],consensus_param_updates:V(y.consensus_param_updates)?e.ConsensusParams.fromJSON(y.consensus_param_updates):void 0,events:Array.isArray(y==null?void 0:y.events)?y.events.map(A=>e.Event.fromJSON(A)):[]}),toJSON(y){const A={};return y.validator_updates?A.validator_updates=y.validator_updates.map(R=>R?e.ValidatorUpdate.toJSON(R):void 0):A.validator_updates=[],y.consensus_param_updates!==void 0&&(A.consensus_param_updates=y.consensus_param_updates?e.ConsensusParams.toJSON(y.consensus_param_updates):void 0),y.events?A.events=y.events.map(R=>R?e.Event.toJSON(R):void 0):A.events=[],A},fromPartial(y){var A,R;const U={validator_updates:[],consensus_param_updates:void 0,events:[]};return U.validator_updates=((A=y.validator_updates)===null||A===void 0?void 0:A.map(z=>e.ValidatorUpdate.fromPartial(z)))||[],U.consensus_param_updates=y.consensus_param_updates!==void 0&&y.consensus_param_updates!==null?e.ConsensusParams.fromPartial(y.consensus_param_updates):void 0,U.events=((R=y.events)===null||R===void 0?void 0:R.map(z=>e.Event.fromPartial(z)))||[],U}},e.ResponseCommit={encode:(y,A=t.Writer.create())=>(y.data.length!==0&&A.uint32(18).bytes(y.data),y.retain_height!=="0"&&A.uint32(24).int64(y.retain_height),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=J();for(;R.pos>>3){case 2:z.data=R.bytes();break;case 3:z.retain_height=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({data:V(y.data)?he(y.data):new Uint8Array,retain_height:V(y.retain_height)?String(y.retain_height):"0"}),toJSON(y){const A={};return y.data!==void 0&&(A.data=ce(y.data!==void 0?y.data:new Uint8Array)),y.retain_height!==void 0&&(A.retain_height=y.retain_height),A},fromPartial(y){var A,R;const U=J();return U.data=(A=y.data)!==null&&A!==void 0?A:new Uint8Array,U.retain_height=(R=y.retain_height)!==null&&R!==void 0?R:"0",U}},e.ResponseListSnapshots={encode(y,A=t.Writer.create()){for(const R of y.snapshots)e.Snapshot.encode(R,A.uint32(10).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={snapshots:[]};for(;R.pos>>3==1?z.snapshots.push(e.Snapshot.decode(R,R.uint32())):R.skipType(7&L)}return z},fromJSON:y=>({snapshots:Array.isArray(y==null?void 0:y.snapshots)?y.snapshots.map(A=>e.Snapshot.fromJSON(A)):[]}),toJSON(y){const A={};return y.snapshots?A.snapshots=y.snapshots.map(R=>R?e.Snapshot.toJSON(R):void 0):A.snapshots=[],A},fromPartial(y){var A;const R={snapshots:[]};return R.snapshots=((A=y.snapshots)===null||A===void 0?void 0:A.map(U=>e.Snapshot.fromPartial(U)))||[],R}},e.ResponseOfferSnapshot={encode:(y,A=t.Writer.create())=>(y.result!==0&&A.uint32(8).int32(y.result),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={result:0};for(;R.pos>>3==1?z.result=R.int32():R.skipType(7&L)}return z},fromJSON:y=>({result:V(y.result)?l(y.result):0}),toJSON(y){const A={};return y.result!==void 0&&(A.result=j(y.result)),A},fromPartial(y){var A;const R={result:0};return R.result=(A=y.result)!==null&&A!==void 0?A:0,R}},e.ResponseLoadSnapshotChunk={encode:(y,A=t.Writer.create())=>(y.chunk.length!==0&&A.uint32(10).bytes(y.chunk),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=ee();for(;R.pos>>3==1?z.chunk=R.bytes():R.skipType(7&L)}return z},fromJSON:y=>({chunk:V(y.chunk)?he(y.chunk):new Uint8Array}),toJSON(y){const A={};return y.chunk!==void 0&&(A.chunk=ce(y.chunk!==void 0?y.chunk:new Uint8Array)),A},fromPartial(y){var A;const R=ee();return R.chunk=(A=y.chunk)!==null&&A!==void 0?A:new Uint8Array,R}},e.ResponseApplySnapshotChunk={encode(y,A=t.Writer.create()){y.result!==0&&A.uint32(8).int32(y.result),A.uint32(18).fork();for(const R of y.refetch_chunks)A.uint32(R);A.ldelim();for(const R of y.reject_senders)A.uint32(26).string(R);return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={result:0,refetch_chunks:[],reject_senders:[]};for(;R.pos>>3){case 1:z.result=R.int32();break;case 2:if((7&L)==2){const H=R.uint32()+R.pos;for(;R.pos({result:V(y.result)?M(y.result):0,refetch_chunks:Array.isArray(y==null?void 0:y.refetch_chunks)?y.refetch_chunks.map(A=>Number(A)):[],reject_senders:Array.isArray(y==null?void 0:y.reject_senders)?y.reject_senders.map(A=>String(A)):[]}),toJSON(y){const A={};return y.result!==void 0&&(A.result=N(y.result)),y.refetch_chunks?A.refetch_chunks=y.refetch_chunks.map(R=>Math.round(R)):A.refetch_chunks=[],y.reject_senders?A.reject_senders=y.reject_senders.map(R=>R):A.reject_senders=[],A},fromPartial(y){var A,R,U;const z={result:0,refetch_chunks:[],reject_senders:[]};return z.result=(A=y.result)!==null&&A!==void 0?A:0,z.refetch_chunks=((R=y.refetch_chunks)===null||R===void 0?void 0:R.map(L=>L))||[],z.reject_senders=((U=y.reject_senders)===null||U===void 0?void 0:U.map(L=>L))||[],z}},e.ConsensusParams={encode:(y,A=t.Writer.create())=>(y.block!==void 0&&e.BlockParams.encode(y.block,A.uint32(10).fork()).ldelim(),y.evidence!==void 0&&r.EvidenceParams.encode(y.evidence,A.uint32(18).fork()).ldelim(),y.validator!==void 0&&r.ValidatorParams.encode(y.validator,A.uint32(26).fork()).ldelim(),y.version!==void 0&&r.VersionParams.encode(y.version,A.uint32(34).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={block:void 0,evidence:void 0,validator:void 0,version:void 0};for(;R.pos>>3){case 1:z.block=e.BlockParams.decode(R,R.uint32());break;case 2:z.evidence=r.EvidenceParams.decode(R,R.uint32());break;case 3:z.validator=r.ValidatorParams.decode(R,R.uint32());break;case 4:z.version=r.VersionParams.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({block:V(y.block)?e.BlockParams.fromJSON(y.block):void 0,evidence:V(y.evidence)?r.EvidenceParams.fromJSON(y.evidence):void 0,validator:V(y.validator)?r.ValidatorParams.fromJSON(y.validator):void 0,version:V(y.version)?r.VersionParams.fromJSON(y.version):void 0}),toJSON(y){const A={};return y.block!==void 0&&(A.block=y.block?e.BlockParams.toJSON(y.block):void 0),y.evidence!==void 0&&(A.evidence=y.evidence?r.EvidenceParams.toJSON(y.evidence):void 0),y.validator!==void 0&&(A.validator=y.validator?r.ValidatorParams.toJSON(y.validator):void 0),y.version!==void 0&&(A.version=y.version?r.VersionParams.toJSON(y.version):void 0),A},fromPartial(y){const A={block:void 0,evidence:void 0,validator:void 0,version:void 0};return A.block=y.block!==void 0&&y.block!==null?e.BlockParams.fromPartial(y.block):void 0,A.evidence=y.evidence!==void 0&&y.evidence!==null?r.EvidenceParams.fromPartial(y.evidence):void 0,A.validator=y.validator!==void 0&&y.validator!==null?r.ValidatorParams.fromPartial(y.validator):void 0,A.version=y.version!==void 0&&y.version!==null?r.VersionParams.fromPartial(y.version):void 0,A}},e.BlockParams={encode:(y,A=t.Writer.create())=>(y.max_bytes!=="0"&&A.uint32(8).int64(y.max_bytes),y.max_gas!=="0"&&A.uint32(16).int64(y.max_gas),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={max_bytes:"0",max_gas:"0"};for(;R.pos>>3){case 1:z.max_bytes=ye(R.int64());break;case 2:z.max_gas=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({max_bytes:V(y.max_bytes)?String(y.max_bytes):"0",max_gas:V(y.max_gas)?String(y.max_gas):"0"}),toJSON(y){const A={};return y.max_bytes!==void 0&&(A.max_bytes=y.max_bytes),y.max_gas!==void 0&&(A.max_gas=y.max_gas),A},fromPartial(y){var A,R;const U={max_bytes:"0",max_gas:"0"};return U.max_bytes=(A=y.max_bytes)!==null&&A!==void 0?A:"0",U.max_gas=(R=y.max_gas)!==null&&R!==void 0?R:"0",U}},e.LastCommitInfo={encode(y,A=t.Writer.create()){y.round!==0&&A.uint32(8).int32(y.round);for(const R of y.votes)e.VoteInfo.encode(R,A.uint32(18).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={round:0,votes:[]};for(;R.pos>>3){case 1:z.round=R.int32();break;case 2:z.votes.push(e.VoteInfo.decode(R,R.uint32()));break;default:R.skipType(7&L)}}return z},fromJSON:y=>({round:V(y.round)?Number(y.round):0,votes:Array.isArray(y==null?void 0:y.votes)?y.votes.map(A=>e.VoteInfo.fromJSON(A)):[]}),toJSON(y){const A={};return y.round!==void 0&&(A.round=Math.round(y.round)),y.votes?A.votes=y.votes.map(R=>R?e.VoteInfo.toJSON(R):void 0):A.votes=[],A},fromPartial(y){var A,R;const U={round:0,votes:[]};return U.round=(A=y.round)!==null&&A!==void 0?A:0,U.votes=((R=y.votes)===null||R===void 0?void 0:R.map(z=>e.VoteInfo.fromPartial(z)))||[],U}},e.Event={encode(y,A=t.Writer.create()){y.type!==""&&A.uint32(10).string(y.type);for(const R of y.attributes)e.EventAttribute.encode(R,A.uint32(18).fork()).ldelim();return A},decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={type:"",attributes:[]};for(;R.pos>>3){case 1:z.type=R.string();break;case 2:z.attributes.push(e.EventAttribute.decode(R,R.uint32()));break;default:R.skipType(7&L)}}return z},fromJSON:y=>({type:V(y.type)?String(y.type):"",attributes:Array.isArray(y==null?void 0:y.attributes)?y.attributes.map(A=>e.EventAttribute.fromJSON(A)):[]}),toJSON(y){const A={};return y.type!==void 0&&(A.type=y.type),y.attributes?A.attributes=y.attributes.map(R=>R?e.EventAttribute.toJSON(R):void 0):A.attributes=[],A},fromPartial(y){var A,R;const U={type:"",attributes:[]};return U.type=(A=y.type)!==null&&A!==void 0?A:"",U.attributes=((R=y.attributes)===null||R===void 0?void 0:R.map(z=>e.EventAttribute.fromPartial(z)))||[],U}},e.EventAttribute={encode:(y,A=t.Writer.create())=>(y.key.length!==0&&A.uint32(10).bytes(y.key),y.value.length!==0&&A.uint32(18).bytes(y.value),y.index===!0&&A.uint32(24).bool(y.index),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=G();for(;R.pos>>3){case 1:z.key=R.bytes();break;case 2:z.value=R.bytes();break;case 3:z.index=R.bool();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({key:V(y.key)?he(y.key):new Uint8Array,value:V(y.value)?he(y.value):new Uint8Array,index:!!V(y.index)&&!!y.index}),toJSON(y){const A={};return y.key!==void 0&&(A.key=ce(y.key!==void 0?y.key:new Uint8Array)),y.value!==void 0&&(A.value=ce(y.value!==void 0?y.value:new Uint8Array)),y.index!==void 0&&(A.index=y.index),A},fromPartial(y){var A,R,U;const z=G();return z.key=(A=y.key)!==null&&A!==void 0?A:new Uint8Array,z.value=(R=y.value)!==null&&R!==void 0?R:new Uint8Array,z.index=(U=y.index)!==null&&U!==void 0&&U,z}},e.TxResult={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).int64(y.height),y.index!==0&&A.uint32(16).uint32(y.index),y.tx.length!==0&&A.uint32(26).bytes(y.tx),y.result!==void 0&&e.ResponseDeliverTx.encode(y.result,A.uint32(34).fork()).ldelim(),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=$();for(;R.pos>>3){case 1:z.height=ye(R.int64());break;case 2:z.index=R.uint32();break;case 3:z.tx=R.bytes();break;case 4:z.result=e.ResponseDeliverTx.decode(R,R.uint32());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0",index:V(y.index)?Number(y.index):0,tx:V(y.tx)?he(y.tx):new Uint8Array,result:V(y.result)?e.ResponseDeliverTx.fromJSON(y.result):void 0}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),y.index!==void 0&&(A.index=Math.round(y.index)),y.tx!==void 0&&(A.tx=ce(y.tx!==void 0?y.tx:new Uint8Array)),y.result!==void 0&&(A.result=y.result?e.ResponseDeliverTx.toJSON(y.result):void 0),A},fromPartial(y){var A,R,U;const z=$();return z.height=(A=y.height)!==null&&A!==void 0?A:"0",z.index=(R=y.index)!==null&&R!==void 0?R:0,z.tx=(U=y.tx)!==null&&U!==void 0?U:new Uint8Array,z.result=y.result!==void 0&&y.result!==null?e.ResponseDeliverTx.fromPartial(y.result):void 0,z}},e.Validator={encode:(y,A=t.Writer.create())=>(y.address.length!==0&&A.uint32(10).bytes(y.address),y.power!=="0"&&A.uint32(24).int64(y.power),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=W();for(;R.pos>>3){case 1:z.address=R.bytes();break;case 3:z.power=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({address:V(y.address)?he(y.address):new Uint8Array,power:V(y.power)?String(y.power):"0"}),toJSON(y){const A={};return y.address!==void 0&&(A.address=ce(y.address!==void 0?y.address:new Uint8Array)),y.power!==void 0&&(A.power=y.power),A},fromPartial(y){var A,R;const U=W();return U.address=(A=y.address)!==null&&A!==void 0?A:new Uint8Array,U.power=(R=y.power)!==null&&R!==void 0?R:"0",U}},e.ValidatorUpdate={encode:(y,A=t.Writer.create())=>(y.pub_key!==void 0&&n.PublicKey.encode(y.pub_key,A.uint32(10).fork()).ldelim(),y.power!=="0"&&A.uint32(16).int64(y.power),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={pub_key:void 0,power:"0"};for(;R.pos>>3){case 1:z.pub_key=n.PublicKey.decode(R,R.uint32());break;case 2:z.power=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({pub_key:V(y.pub_key)?n.PublicKey.fromJSON(y.pub_key):void 0,power:V(y.power)?String(y.power):"0"}),toJSON(y){const A={};return y.pub_key!==void 0&&(A.pub_key=y.pub_key?n.PublicKey.toJSON(y.pub_key):void 0),y.power!==void 0&&(A.power=y.power),A},fromPartial(y){var A;const R={pub_key:void 0,power:"0"};return R.pub_key=y.pub_key!==void 0&&y.pub_key!==null?n.PublicKey.fromPartial(y.pub_key):void 0,R.power=(A=y.power)!==null&&A!==void 0?A:"0",R}},e.VoteInfo={encode:(y,A=t.Writer.create())=>(y.validator!==void 0&&e.Validator.encode(y.validator,A.uint32(10).fork()).ldelim(),y.signed_last_block===!0&&A.uint32(16).bool(y.signed_last_block),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={validator:void 0,signed_last_block:!1};for(;R.pos>>3){case 1:z.validator=e.Validator.decode(R,R.uint32());break;case 2:z.signed_last_block=R.bool();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({validator:V(y.validator)?e.Validator.fromJSON(y.validator):void 0,signed_last_block:!!V(y.signed_last_block)&&!!y.signed_last_block}),toJSON(y){const A={};return y.validator!==void 0&&(A.validator=y.validator?e.Validator.toJSON(y.validator):void 0),y.signed_last_block!==void 0&&(A.signed_last_block=y.signed_last_block),A},fromPartial(y){var A;const R={validator:void 0,signed_last_block:!1};return R.validator=y.validator!==void 0&&y.validator!==null?e.Validator.fromPartial(y.validator):void 0,R.signed_last_block=(A=y.signed_last_block)!==null&&A!==void 0&&A,R}},e.Evidence={encode:(y,A=t.Writer.create())=>(y.type!==0&&A.uint32(8).int32(y.type),y.validator!==void 0&&e.Validator.encode(y.validator,A.uint32(18).fork()).ldelim(),y.height!=="0"&&A.uint32(24).int64(y.height),y.time!==void 0&&c.Timestamp.encode(y.time,A.uint32(34).fork()).ldelim(),y.total_voting_power!=="0"&&A.uint32(40).int64(y.total_voting_power),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z={type:0,validator:void 0,height:"0",time:void 0,total_voting_power:"0"};for(;R.pos>>3){case 1:z.type=R.int32();break;case 2:z.validator=e.Validator.decode(R,R.uint32());break;case 3:z.height=ye(R.int64());break;case 4:z.time=c.Timestamp.decode(R,R.uint32());break;case 5:z.total_voting_power=ye(R.int64());break;default:R.skipType(7&L)}}return z},fromJSON:y=>({type:V(y.type)?b(y.type):0,validator:V(y.validator)?e.Validator.fromJSON(y.validator):void 0,height:V(y.height)?String(y.height):"0",time:V(y.time)?pe(y.time):void 0,total_voting_power:V(y.total_voting_power)?String(y.total_voting_power):"0"}),toJSON(y){const A={};return y.type!==void 0&&(A.type=I(y.type)),y.validator!==void 0&&(A.validator=y.validator?e.Validator.toJSON(y.validator):void 0),y.height!==void 0&&(A.height=y.height),y.time!==void 0&&(A.time=de(y.time).toISOString()),y.total_voting_power!==void 0&&(A.total_voting_power=y.total_voting_power),A},fromPartial(y){var A,R,U;const z={type:0,validator:void 0,height:"0",time:void 0,total_voting_power:"0"};return z.type=(A=y.type)!==null&&A!==void 0?A:0,z.validator=y.validator!==void 0&&y.validator!==null?e.Validator.fromPartial(y.validator):void 0,z.height=(R=y.height)!==null&&R!==void 0?R:"0",z.time=y.time!==void 0&&y.time!==null?c.Timestamp.fromPartial(y.time):void 0,z.total_voting_power=(U=y.total_voting_power)!==null&&U!==void 0?U:"0",z}},e.Snapshot={encode:(y,A=t.Writer.create())=>(y.height!=="0"&&A.uint32(8).uint64(y.height),y.format!==0&&A.uint32(16).uint32(y.format),y.chunks!==0&&A.uint32(24).uint32(y.chunks),y.hash.length!==0&&A.uint32(34).bytes(y.hash),y.metadata.length!==0&&A.uint32(42).bytes(y.metadata),A),decode(y,A){const R=y instanceof t.Reader?y:new t.Reader(y);let U=A===void 0?R.len:R.pos+A;const z=Y();for(;R.pos>>3){case 1:z.height=ye(R.uint64());break;case 2:z.format=R.uint32();break;case 3:z.chunks=R.uint32();break;case 4:z.hash=R.bytes();break;case 5:z.metadata=R.bytes();break;default:R.skipType(7&L)}}return z},fromJSON:y=>({height:V(y.height)?String(y.height):"0",format:V(y.format)?Number(y.format):0,chunks:V(y.chunks)?Number(y.chunks):0,hash:V(y.hash)?he(y.hash):new Uint8Array,metadata:V(y.metadata)?he(y.metadata):new Uint8Array}),toJSON(y){const A={};return y.height!==void 0&&(A.height=y.height),y.format!==void 0&&(A.format=Math.round(y.format)),y.chunks!==void 0&&(A.chunks=Math.round(y.chunks)),y.hash!==void 0&&(A.hash=ce(y.hash!==void 0?y.hash:new Uint8Array)),y.metadata!==void 0&&(A.metadata=ce(y.metadata!==void 0?y.metadata:new Uint8Array)),A},fromPartial(y){var A,R,U,z,L;const H=Y();return H.height=(A=y.height)!==null&&A!==void 0?A:"0",H.format=(R=y.format)!==null&&R!==void 0?R:0,H.chunks=(U=y.chunks)!==null&&U!==void 0?U:0,H.hash=(z=y.hash)!==null&&z!==void 0?z:new Uint8Array,H.metadata=(L=y.metadata)!==null&&L!==void 0?L:new Uint8Array,H}},e.ABCIApplicationClientImpl=class{constructor(y){this.rpc=y,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.SetOption=this.SetOption.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this)}Echo(y){const A=e.RequestEcho.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",A).then(R=>e.ResponseEcho.decode(new t.Reader(R)))}Flush(y){const A=e.RequestFlush.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",A).then(R=>e.ResponseFlush.decode(new t.Reader(R)))}Info(y){const A=e.RequestInfo.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",A).then(R=>e.ResponseInfo.decode(new t.Reader(R)))}SetOption(y){const A=e.RequestSetOption.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","SetOption",A).then(R=>e.ResponseSetOption.decode(new t.Reader(R)))}DeliverTx(y){const A=e.RequestDeliverTx.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",A).then(R=>e.ResponseDeliverTx.decode(new t.Reader(R)))}CheckTx(y){const A=e.RequestCheckTx.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",A).then(R=>e.ResponseCheckTx.decode(new t.Reader(R)))}Query(y){const A=e.RequestQuery.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",A).then(R=>e.ResponseQuery.decode(new t.Reader(R)))}Commit(y){const A=e.RequestCommit.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",A).then(R=>e.ResponseCommit.decode(new t.Reader(R)))}InitChain(y){const A=e.RequestInitChain.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",A).then(R=>e.ResponseInitChain.decode(new t.Reader(R)))}BeginBlock(y){const A=e.RequestBeginBlock.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",A).then(R=>e.ResponseBeginBlock.decode(new t.Reader(R)))}EndBlock(y){const A=e.RequestEndBlock.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",A).then(R=>e.ResponseEndBlock.decode(new t.Reader(R)))}ListSnapshots(y){const A=e.RequestListSnapshots.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",A).then(R=>e.ResponseListSnapshots.decode(new t.Reader(R)))}OfferSnapshot(y){const A=e.RequestOfferSnapshot.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",A).then(R=>e.ResponseOfferSnapshot.decode(new t.Reader(R)))}LoadSnapshotChunk(y){const A=e.RequestLoadSnapshotChunk.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",A).then(R=>e.ResponseLoadSnapshotChunk.decode(new t.Reader(R)))}ApplySnapshotChunk(y){const A=e.RequestApplySnapshotChunk.encode(y).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",A).then(R=>e.ResponseApplySnapshotChunk.decode(new t.Reader(R)))}};var F=(()=>{if(F!==void 0)return F;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const ae=F.atob||(y=>F.Buffer.from(y,"base64").toString("binary"));function he(y){const A=ae(y),R=new Uint8Array(A.length);for(let U=0;UF.Buffer.from(y,"binary").toString("base64"));function ce(y){const A=[];for(const R of y)A.push(String.fromCharCode(R));return le(A.join(""))}function ve(y){return{seconds:Math.trunc(y.getTime()/1e3).toString(),nanos:y.getTime()%1e3*1e6}}function de(y){let A=1e3*Number(y.seconds);return A+=y.nanos/1e6,new Date(A)}function pe(y){return y instanceof Date?ve(y):typeof y=="string"?ve(new Date(y)):c.Timestamp.fromJSON(y)}function ye(y){return y.toString()}function V(y){return y!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2740:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(i,f,d,p){p===void 0&&(p=d),Object.defineProperty(i,p,{enumerable:!0,get:function(){return f[d]}})}:function(i,f,d,p){p===void 0&&(p=d),i[p]=f[d]}),O=this&&this.__setModuleDefault||(Object.create?function(i,f){Object.defineProperty(i,"default",{enumerable:!0,value:f})}:function(i,f){i.default=f}),k=this&&this.__importStar||function(i){if(i&&i.__esModule)return i;var f={};if(i!=null)for(var d in i)d!=="default"&&Object.prototype.hasOwnProperty.call(i,d)&&w(f,i,d);return O(f,i),f},S=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));e.protobufPackage="tendermint.crypto",e.PublicKey={encode:(i,f=t.Writer.create())=>(i.ed25519!==void 0&&f.uint32(10).bytes(i.ed25519),i.secp256k1!==void 0&&f.uint32(18).bytes(i.secp256k1),f),decode(i,f){const d=i instanceof t.Reader?i:new t.Reader(i);let p=f===void 0?d.len:d.pos+f;const _={ed25519:void 0,secp256k1:void 0};for(;d.pos>>3){case 1:_.ed25519=d.bytes();break;case 2:_.secp256k1=d.bytes();break;default:d.skipType(7&b)}}return _},fromJSON:i=>({ed25519:o(i.ed25519)?s(i.ed25519):void 0,secp256k1:o(i.secp256k1)?s(i.secp256k1):void 0}),toJSON(i){const f={};return i.ed25519!==void 0&&(f.ed25519=i.ed25519!==void 0?n(i.ed25519):void 0),i.secp256k1!==void 0&&(f.secp256k1=i.secp256k1!==void 0?n(i.secp256k1):void 0),f},fromPartial(i){var f,d;const p={ed25519:void 0,secp256k1:void 0};return p.ed25519=(f=i.ed25519)!==null&&f!==void 0?f:void 0,p.secp256k1=(d=i.secp256k1)!==null&&d!==void 0?d:void 0,p}};var c=(()=>{if(c!==void 0)return c;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const u=c.atob||(i=>c.Buffer.from(i,"base64").toString("binary"));function s(i){const f=u(i),d=new Uint8Array(f.length);for(let p=0;pc.Buffer.from(i,"binary").toString("base64"));function n(i){const f=[];for(const d of i)f.push(String.fromCharCode(d));return r(f.join(""))}function o(i){return i!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},1093:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(_,b,I,l){l===void 0&&(l=I),Object.defineProperty(_,l,{enumerable:!0,get:function(){return b[I]}})}:function(_,b,I,l){l===void 0&&(l=I),_[l]=b[I]}),O=this&&this.__setModuleDefault||(Object.create?function(_,b){Object.defineProperty(_,"default",{enumerable:!0,value:b})}:function(_,b){_.default=b}),k=this&&this.__importStar||function(_){if(_&&_.__esModule)return _;var b={};if(_!=null)for(var I in _)I!=="default"&&Object.prototype.hasOwnProperty.call(_,I)&&w(b,_,I);return O(b,_),b},S=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofOps=e.ProofOp=e.DominoOp=e.ValueOp=e.Proof=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(){return{total:"0",index:"0",leaf_hash:new Uint8Array,aunts:[]}}function u(){return{key:new Uint8Array,proof:void 0}}function s(){return{type:"",key:new Uint8Array,data:new Uint8Array}}e.protobufPackage="tendermint.crypto",e.Proof={encode(_,b=t.Writer.create()){_.total!=="0"&&b.uint32(8).int64(_.total),_.index!=="0"&&b.uint32(16).int64(_.index),_.leaf_hash.length!==0&&b.uint32(26).bytes(_.leaf_hash);for(const I of _.aunts)b.uint32(34).bytes(I);return b},decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j=c();for(;I.pos>>3){case 1:j.total=d(I.int64());break;case 2:j.index=d(I.int64());break;case 3:j.leaf_hash=I.bytes();break;case 4:j.aunts.push(I.bytes());break;default:I.skipType(7&M)}}return j},fromJSON:_=>({total:p(_.total)?String(_.total):"0",index:p(_.index)?String(_.index):"0",leaf_hash:p(_.leaf_hash)?o(_.leaf_hash):new Uint8Array,aunts:Array.isArray(_==null?void 0:_.aunts)?_.aunts.map(b=>o(b)):[]}),toJSON(_){const b={};return _.total!==void 0&&(b.total=_.total),_.index!==void 0&&(b.index=_.index),_.leaf_hash!==void 0&&(b.leaf_hash=f(_.leaf_hash!==void 0?_.leaf_hash:new Uint8Array)),_.aunts?b.aunts=_.aunts.map(I=>f(I!==void 0?I:new Uint8Array)):b.aunts=[],b},fromPartial(_){var b,I,l,j;const M=c();return M.total=(b=_.total)!==null&&b!==void 0?b:"0",M.index=(I=_.index)!==null&&I!==void 0?I:"0",M.leaf_hash=(l=_.leaf_hash)!==null&&l!==void 0?l:new Uint8Array,M.aunts=((j=_.aunts)===null||j===void 0?void 0:j.map(N=>N))||[],M}},e.ValueOp={encode:(_,b=t.Writer.create())=>(_.key.length!==0&&b.uint32(10).bytes(_.key),_.proof!==void 0&&e.Proof.encode(_.proof,b.uint32(18).fork()).ldelim(),b),decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j=u();for(;I.pos>>3){case 1:j.key=I.bytes();break;case 2:j.proof=e.Proof.decode(I,I.uint32());break;default:I.skipType(7&M)}}return j},fromJSON:_=>({key:p(_.key)?o(_.key):new Uint8Array,proof:p(_.proof)?e.Proof.fromJSON(_.proof):void 0}),toJSON(_){const b={};return _.key!==void 0&&(b.key=f(_.key!==void 0?_.key:new Uint8Array)),_.proof!==void 0&&(b.proof=_.proof?e.Proof.toJSON(_.proof):void 0),b},fromPartial(_){var b;const I=u();return I.key=(b=_.key)!==null&&b!==void 0?b:new Uint8Array,I.proof=_.proof!==void 0&&_.proof!==null?e.Proof.fromPartial(_.proof):void 0,I}},e.DominoOp={encode:(_,b=t.Writer.create())=>(_.key!==""&&b.uint32(10).string(_.key),_.input!==""&&b.uint32(18).string(_.input),_.output!==""&&b.uint32(26).string(_.output),b),decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j={key:"",input:"",output:""};for(;I.pos>>3){case 1:j.key=I.string();break;case 2:j.input=I.string();break;case 3:j.output=I.string();break;default:I.skipType(7&M)}}return j},fromJSON:_=>({key:p(_.key)?String(_.key):"",input:p(_.input)?String(_.input):"",output:p(_.output)?String(_.output):""}),toJSON(_){const b={};return _.key!==void 0&&(b.key=_.key),_.input!==void 0&&(b.input=_.input),_.output!==void 0&&(b.output=_.output),b},fromPartial(_){var b,I,l;const j={key:"",input:"",output:""};return j.key=(b=_.key)!==null&&b!==void 0?b:"",j.input=(I=_.input)!==null&&I!==void 0?I:"",j.output=(l=_.output)!==null&&l!==void 0?l:"",j}},e.ProofOp={encode:(_,b=t.Writer.create())=>(_.type!==""&&b.uint32(10).string(_.type),_.key.length!==0&&b.uint32(18).bytes(_.key),_.data.length!==0&&b.uint32(26).bytes(_.data),b),decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j=s();for(;I.pos>>3){case 1:j.type=I.string();break;case 2:j.key=I.bytes();break;case 3:j.data=I.bytes();break;default:I.skipType(7&M)}}return j},fromJSON:_=>({type:p(_.type)?String(_.type):"",key:p(_.key)?o(_.key):new Uint8Array,data:p(_.data)?o(_.data):new Uint8Array}),toJSON(_){const b={};return _.type!==void 0&&(b.type=_.type),_.key!==void 0&&(b.key=f(_.key!==void 0?_.key:new Uint8Array)),_.data!==void 0&&(b.data=f(_.data!==void 0?_.data:new Uint8Array)),b},fromPartial(_){var b,I,l;const j=s();return j.type=(b=_.type)!==null&&b!==void 0?b:"",j.key=(I=_.key)!==null&&I!==void 0?I:new Uint8Array,j.data=(l=_.data)!==null&&l!==void 0?l:new Uint8Array,j}},e.ProofOps={encode(_,b=t.Writer.create()){for(const I of _.ops)e.ProofOp.encode(I,b.uint32(10).fork()).ldelim();return b},decode(_,b){const I=_ instanceof t.Reader?_:new t.Reader(_);let l=b===void 0?I.len:I.pos+b;const j={ops:[]};for(;I.pos>>3==1?j.ops.push(e.ProofOp.decode(I,I.uint32())):I.skipType(7&M)}return j},fromJSON:_=>({ops:Array.isArray(_==null?void 0:_.ops)?_.ops.map(b=>e.ProofOp.fromJSON(b)):[]}),toJSON(_){const b={};return _.ops?b.ops=_.ops.map(I=>I?e.ProofOp.toJSON(I):void 0):b.ops=[],b},fromPartial(_){var b;const I={ops:[]};return I.ops=((b=_.ops)===null||b===void 0?void 0:b.map(l=>e.ProofOp.fromPartial(l)))||[],I}};var r=(()=>{if(r!==void 0)return r;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const n=r.atob||(_=>r.Buffer.from(_,"base64").toString("binary"));function o(_){const b=n(_),I=new Uint8Array(b.length);for(let l=0;lr.Buffer.from(_,"binary").toString("base64"));function f(_){const b=[];for(const I of _)b.push(String.fromCharCode(I));return i(b.join(""))}function d(_){return _.toString()}function p(_){return _!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5672:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(r,n,o,i){i===void 0&&(i=o),Object.defineProperty(r,i,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]}),O=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n}),k=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&w(n,r,o);return O(n,r),n},S=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.HashedParams=e.VersionParams=e.ValidatorParams=e.EvidenceParams=e.BlockParams=e.ConsensusParams=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(6138);function u(r){return r.toString()}function s(r){return r!=null}e.protobufPackage="tendermint.types",e.ConsensusParams={encode:(r,n=t.Writer.create())=>(r.block!==void 0&&e.BlockParams.encode(r.block,n.uint32(10).fork()).ldelim(),r.evidence!==void 0&&e.EvidenceParams.encode(r.evidence,n.uint32(18).fork()).ldelim(),r.validator!==void 0&&e.ValidatorParams.encode(r.validator,n.uint32(26).fork()).ldelim(),r.version!==void 0&&e.VersionParams.encode(r.version,n.uint32(34).fork()).ldelim(),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={block:void 0,evidence:void 0,validator:void 0,version:void 0};for(;o.pos>>3){case 1:f.block=e.BlockParams.decode(o,o.uint32());break;case 2:f.evidence=e.EvidenceParams.decode(o,o.uint32());break;case 3:f.validator=e.ValidatorParams.decode(o,o.uint32());break;case 4:f.version=e.VersionParams.decode(o,o.uint32());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({block:s(r.block)?e.BlockParams.fromJSON(r.block):void 0,evidence:s(r.evidence)?e.EvidenceParams.fromJSON(r.evidence):void 0,validator:s(r.validator)?e.ValidatorParams.fromJSON(r.validator):void 0,version:s(r.version)?e.VersionParams.fromJSON(r.version):void 0}),toJSON(r){const n={};return r.block!==void 0&&(n.block=r.block?e.BlockParams.toJSON(r.block):void 0),r.evidence!==void 0&&(n.evidence=r.evidence?e.EvidenceParams.toJSON(r.evidence):void 0),r.validator!==void 0&&(n.validator=r.validator?e.ValidatorParams.toJSON(r.validator):void 0),r.version!==void 0&&(n.version=r.version?e.VersionParams.toJSON(r.version):void 0),n},fromPartial(r){const n={block:void 0,evidence:void 0,validator:void 0,version:void 0};return n.block=r.block!==void 0&&r.block!==null?e.BlockParams.fromPartial(r.block):void 0,n.evidence=r.evidence!==void 0&&r.evidence!==null?e.EvidenceParams.fromPartial(r.evidence):void 0,n.validator=r.validator!==void 0&&r.validator!==null?e.ValidatorParams.fromPartial(r.validator):void 0,n.version=r.version!==void 0&&r.version!==null?e.VersionParams.fromPartial(r.version):void 0,n}},e.BlockParams={encode:(r,n=t.Writer.create())=>(r.max_bytes!=="0"&&n.uint32(8).int64(r.max_bytes),r.max_gas!=="0"&&n.uint32(16).int64(r.max_gas),r.time_iota_ms!=="0"&&n.uint32(24).int64(r.time_iota_ms),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={max_bytes:"0",max_gas:"0",time_iota_ms:"0"};for(;o.pos>>3){case 1:f.max_bytes=u(o.int64());break;case 2:f.max_gas=u(o.int64());break;case 3:f.time_iota_ms=u(o.int64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({max_bytes:s(r.max_bytes)?String(r.max_bytes):"0",max_gas:s(r.max_gas)?String(r.max_gas):"0",time_iota_ms:s(r.time_iota_ms)?String(r.time_iota_ms):"0"}),toJSON(r){const n={};return r.max_bytes!==void 0&&(n.max_bytes=r.max_bytes),r.max_gas!==void 0&&(n.max_gas=r.max_gas),r.time_iota_ms!==void 0&&(n.time_iota_ms=r.time_iota_ms),n},fromPartial(r){var n,o,i;const f={max_bytes:"0",max_gas:"0",time_iota_ms:"0"};return f.max_bytes=(n=r.max_bytes)!==null&&n!==void 0?n:"0",f.max_gas=(o=r.max_gas)!==null&&o!==void 0?o:"0",f.time_iota_ms=(i=r.time_iota_ms)!==null&&i!==void 0?i:"0",f}},e.EvidenceParams={encode:(r,n=t.Writer.create())=>(r.max_age_num_blocks!=="0"&&n.uint32(8).int64(r.max_age_num_blocks),r.max_age_duration!==void 0&&c.Duration.encode(r.max_age_duration,n.uint32(18).fork()).ldelim(),r.max_bytes!=="0"&&n.uint32(24).int64(r.max_bytes),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={max_age_num_blocks:"0",max_age_duration:void 0,max_bytes:"0"};for(;o.pos>>3){case 1:f.max_age_num_blocks=u(o.int64());break;case 2:f.max_age_duration=c.Duration.decode(o,o.uint32());break;case 3:f.max_bytes=u(o.int64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({max_age_num_blocks:s(r.max_age_num_blocks)?String(r.max_age_num_blocks):"0",max_age_duration:s(r.max_age_duration)?c.Duration.fromJSON(r.max_age_duration):void 0,max_bytes:s(r.max_bytes)?String(r.max_bytes):"0"}),toJSON(r){const n={};return r.max_age_num_blocks!==void 0&&(n.max_age_num_blocks=r.max_age_num_blocks),r.max_age_duration!==void 0&&(n.max_age_duration=r.max_age_duration?c.Duration.toJSON(r.max_age_duration):void 0),r.max_bytes!==void 0&&(n.max_bytes=r.max_bytes),n},fromPartial(r){var n,o;const i={max_age_num_blocks:"0",max_age_duration:void 0,max_bytes:"0"};return i.max_age_num_blocks=(n=r.max_age_num_blocks)!==null&&n!==void 0?n:"0",i.max_age_duration=r.max_age_duration!==void 0&&r.max_age_duration!==null?c.Duration.fromPartial(r.max_age_duration):void 0,i.max_bytes=(o=r.max_bytes)!==null&&o!==void 0?o:"0",i}},e.ValidatorParams={encode(r,n=t.Writer.create()){for(const o of r.pub_key_types)n.uint32(10).string(o);return n},decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={pub_key_types:[]};for(;o.pos>>3==1?f.pub_key_types.push(o.string()):o.skipType(7&d)}return f},fromJSON:r=>({pub_key_types:Array.isArray(r==null?void 0:r.pub_key_types)?r.pub_key_types.map(n=>String(n)):[]}),toJSON(r){const n={};return r.pub_key_types?n.pub_key_types=r.pub_key_types.map(o=>o):n.pub_key_types=[],n},fromPartial(r){var n;const o={pub_key_types:[]};return o.pub_key_types=((n=r.pub_key_types)===null||n===void 0?void 0:n.map(i=>i))||[],o}},e.VersionParams={encode:(r,n=t.Writer.create())=>(r.app_version!=="0"&&n.uint32(8).uint64(r.app_version),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={app_version:"0"};for(;o.pos>>3==1?f.app_version=u(o.uint64()):o.skipType(7&d)}return f},fromJSON:r=>({app_version:s(r.app_version)?String(r.app_version):"0"}),toJSON(r){const n={};return r.app_version!==void 0&&(n.app_version=r.app_version),n},fromPartial(r){var n;const o={app_version:"0"};return o.app_version=(n=r.app_version)!==null&&n!==void 0?n:"0",o}},e.HashedParams={encode:(r,n=t.Writer.create())=>(r.block_max_bytes!=="0"&&n.uint32(8).int64(r.block_max_bytes),r.block_max_gas!=="0"&&n.uint32(16).int64(r.block_max_gas),n),decode(r,n){const o=r instanceof t.Reader?r:new t.Reader(r);let i=n===void 0?o.len:o.pos+n;const f={block_max_bytes:"0",block_max_gas:"0"};for(;o.pos>>3){case 1:f.block_max_bytes=u(o.int64());break;case 2:f.block_max_gas=u(o.int64());break;default:o.skipType(7&d)}}return f},fromJSON:r=>({block_max_bytes:s(r.block_max_bytes)?String(r.block_max_bytes):"0",block_max_gas:s(r.block_max_gas)?String(r.block_max_gas):"0"}),toJSON(r){const n={};return r.block_max_bytes!==void 0&&(n.block_max_bytes=r.block_max_bytes),r.block_max_gas!==void 0&&(n.block_max_gas=r.block_max_gas),n},fromPartial(r){var n,o;const i={block_max_bytes:"0",block_max_gas:"0"};return i.block_max_bytes=(n=r.block_max_bytes)!==null&&n!==void 0?n:"0",i.block_max_gas=(o=r.block_max_gas)!==null&&o!==void 0?o:"0",i}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},9928:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(J,ee,G,$){$===void 0&&($=G),Object.defineProperty(J,$,{enumerable:!0,get:function(){return ee[G]}})}:function(J,ee,G,$){$===void 0&&($=G),J[$]=ee[G]}),O=this&&this.__setModuleDefault||(Object.create?function(J,ee){Object.defineProperty(J,"default",{enumerable:!0,value:ee})}:function(J,ee){J.default=ee}),k=this&&this.__importStar||function(J){if(J&&J.__esModule)return J;var ee={};if(J!=null)for(var G in J)G!=="default"&&Object.prototype.hasOwnProperty.call(J,G)&&w(ee,J,G);return O(ee,J),ee},S=this&&this.__importDefault||function(J){return J&&J.__esModule?J:{default:J}};Object.defineProperty(e,"__esModule",{value:!0}),e.TxProof=e.BlockMeta=e.LightBlock=e.SignedHeader=e.Proposal=e.CommitSig=e.Commit=e.Vote=e.Data=e.EncryptedRandom=e.Header=e.BlockID=e.Part=e.PartSetHeader=e.signedMsgTypeToJSON=e.signedMsgTypeFromJSON=e.SignedMsgType=e.blockIDFlagToJSON=e.blockIDFlagFromJSON=e.BlockIDFlag=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(1093),u=h(5640),s=h(5090),r=h(3563);var n,o;function i(J){switch(J){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return n.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return n.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return n.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return n.BLOCK_ID_FLAG_NIL;default:return n.UNRECOGNIZED}}function f(J){switch(J){case n.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case n.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case n.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case n.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function d(J){switch(J){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return o.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return o.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return o.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return o.SIGNED_MSG_TYPE_PROPOSAL;default:return o.UNRECOGNIZED}}function p(J){switch(J){case o.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case o.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case o.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case o.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}function _(){return{total:0,hash:new Uint8Array}}function b(){return{index:0,bytes:new Uint8Array,proof:void 0}}function I(){return{hash:new Uint8Array,part_set_header:void 0}}function l(){return{version:void 0,chain_id:"",height:"0",time:void 0,last_block_id:void 0,last_commit_hash:new Uint8Array,data_hash:new Uint8Array,validators_hash:new Uint8Array,next_validators_hash:new Uint8Array,consensus_hash:new Uint8Array,app_hash:new Uint8Array,last_results_hash:new Uint8Array,evidence_hash:new Uint8Array,proposer_address:new Uint8Array,encrypted_random:void 0}}function j(){return{random:new Uint8Array,proof:new Uint8Array}}function M(){return{type:0,height:"0",round:0,block_id:void 0,timestamp:void 0,validator_address:new Uint8Array,validator_index:0,signature:new Uint8Array}}function N(){return{block_id_flag:0,validator_address:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}function C(){return{type:0,height:"0",round:0,pol_round:0,block_id:void 0,timestamp:void 0,signature:new Uint8Array}}function x(){return{root_hash:new Uint8Array,data:new Uint8Array,proof:void 0}}e.protobufPackage="tendermint.types",function(J){J[J.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",J[J.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",J[J.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",J[J.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"}(n=e.BlockIDFlag||(e.BlockIDFlag={})),e.blockIDFlagFromJSON=i,e.blockIDFlagToJSON=f,function(J){J[J.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",J[J.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",J[J.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",J[J.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",J[J.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=e.SignedMsgType||(e.SignedMsgType={})),e.signedMsgTypeFromJSON=d,e.signedMsgTypeToJSON=p,e.PartSetHeader={encode:(J,ee=t.Writer.create())=>(J.total!==0&&ee.uint32(8).uint32(J.total),J.hash.length!==0&&ee.uint32(18).bytes(J.hash),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=_();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.total=G.uint32();break;case 2:W.hash=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({total:ie(J.total)?Number(J.total):0,hash:ie(J.hash)?m(J.hash):new Uint8Array}),toJSON(J){const ee={};return J.total!==void 0&&(ee.total=Math.round(J.total)),J.hash!==void 0&&(ee.hash=B(J.hash!==void 0?J.hash:new Uint8Array)),ee},fromPartial(J){var ee,G;const $=_();return $.total=(ee=J.total)!==null&&ee!==void 0?ee:0,$.hash=(G=J.hash)!==null&&G!==void 0?G:new Uint8Array,$}},e.Part={encode:(J,ee=t.Writer.create())=>(J.index!==0&&ee.uint32(8).uint32(J.index),J.bytes.length!==0&&ee.uint32(18).bytes(J.bytes),J.proof!==void 0&&c.Proof.encode(J.proof,ee.uint32(26).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=b();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.index=G.uint32();break;case 2:W.bytes=G.bytes();break;case 3:W.proof=c.Proof.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({index:ie(J.index)?Number(J.index):0,bytes:ie(J.bytes)?m(J.bytes):new Uint8Array,proof:ie(J.proof)?c.Proof.fromJSON(J.proof):void 0}),toJSON(J){const ee={};return J.index!==void 0&&(ee.index=Math.round(J.index)),J.bytes!==void 0&&(ee.bytes=B(J.bytes!==void 0?J.bytes:new Uint8Array)),J.proof!==void 0&&(ee.proof=J.proof?c.Proof.toJSON(J.proof):void 0),ee},fromPartial(J){var ee,G;const $=b();return $.index=(ee=J.index)!==null&&ee!==void 0?ee:0,$.bytes=(G=J.bytes)!==null&&G!==void 0?G:new Uint8Array,$.proof=J.proof!==void 0&&J.proof!==null?c.Proof.fromPartial(J.proof):void 0,$}},e.BlockID={encode:(J,ee=t.Writer.create())=>(J.hash.length!==0&&ee.uint32(10).bytes(J.hash),J.part_set_header!==void 0&&e.PartSetHeader.encode(J.part_set_header,ee.uint32(18).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=I();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.hash=G.bytes();break;case 2:W.part_set_header=e.PartSetHeader.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({hash:ie(J.hash)?m(J.hash):new Uint8Array,part_set_header:ie(J.part_set_header)?e.PartSetHeader.fromJSON(J.part_set_header):void 0}),toJSON(J){const ee={};return J.hash!==void 0&&(ee.hash=B(J.hash!==void 0?J.hash:new Uint8Array)),J.part_set_header!==void 0&&(ee.part_set_header=J.part_set_header?e.PartSetHeader.toJSON(J.part_set_header):void 0),ee},fromPartial(J){var ee;const G=I();return G.hash=(ee=J.hash)!==null&&ee!==void 0?ee:new Uint8Array,G.part_set_header=J.part_set_header!==void 0&&J.part_set_header!==null?e.PartSetHeader.fromPartial(J.part_set_header):void 0,G}},e.Header={encode:(J,ee=t.Writer.create())=>(J.version!==void 0&&u.Consensus.encode(J.version,ee.uint32(10).fork()).ldelim(),J.chain_id!==""&&ee.uint32(18).string(J.chain_id),J.height!=="0"&&ee.uint32(24).int64(J.height),J.time!==void 0&&s.Timestamp.encode(J.time,ee.uint32(34).fork()).ldelim(),J.last_block_id!==void 0&&e.BlockID.encode(J.last_block_id,ee.uint32(42).fork()).ldelim(),J.last_commit_hash.length!==0&&ee.uint32(50).bytes(J.last_commit_hash),J.data_hash.length!==0&&ee.uint32(58).bytes(J.data_hash),J.validators_hash.length!==0&&ee.uint32(66).bytes(J.validators_hash),J.next_validators_hash.length!==0&&ee.uint32(74).bytes(J.next_validators_hash),J.consensus_hash.length!==0&&ee.uint32(82).bytes(J.consensus_hash),J.app_hash.length!==0&&ee.uint32(90).bytes(J.app_hash),J.last_results_hash.length!==0&&ee.uint32(98).bytes(J.last_results_hash),J.evidence_hash.length!==0&&ee.uint32(106).bytes(J.evidence_hash),J.proposer_address.length!==0&&ee.uint32(114).bytes(J.proposer_address),J.encrypted_random!==void 0&&e.EncryptedRandom.encode(J.encrypted_random,ee.uint32(122).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=l();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.version=u.Consensus.decode(G,G.uint32());break;case 2:W.chain_id=G.string();break;case 3:W.height=re(G.int64());break;case 4:W.time=s.Timestamp.decode(G,G.uint32());break;case 5:W.last_block_id=e.BlockID.decode(G,G.uint32());break;case 6:W.last_commit_hash=G.bytes();break;case 7:W.data_hash=G.bytes();break;case 8:W.validators_hash=G.bytes();break;case 9:W.next_validators_hash=G.bytes();break;case 10:W.consensus_hash=G.bytes();break;case 11:W.app_hash=G.bytes();break;case 12:W.last_results_hash=G.bytes();break;case 13:W.evidence_hash=G.bytes();break;case 14:W.proposer_address=G.bytes();break;case 15:W.encrypted_random=e.EncryptedRandom.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({version:ie(J.version)?u.Consensus.fromJSON(J.version):void 0,chain_id:ie(J.chain_id)?String(J.chain_id):"",height:ie(J.height)?String(J.height):"0",time:ie(J.time)?te(J.time):void 0,last_block_id:ie(J.last_block_id)?e.BlockID.fromJSON(J.last_block_id):void 0,last_commit_hash:ie(J.last_commit_hash)?m(J.last_commit_hash):new Uint8Array,data_hash:ie(J.data_hash)?m(J.data_hash):new Uint8Array,validators_hash:ie(J.validators_hash)?m(J.validators_hash):new Uint8Array,next_validators_hash:ie(J.next_validators_hash)?m(J.next_validators_hash):new Uint8Array,consensus_hash:ie(J.consensus_hash)?m(J.consensus_hash):new Uint8Array,app_hash:ie(J.app_hash)?m(J.app_hash):new Uint8Array,last_results_hash:ie(J.last_results_hash)?m(J.last_results_hash):new Uint8Array,evidence_hash:ie(J.evidence_hash)?m(J.evidence_hash):new Uint8Array,proposer_address:ie(J.proposer_address)?m(J.proposer_address):new Uint8Array,encrypted_random:ie(J.encrypted_random)?e.EncryptedRandom.fromJSON(J.encrypted_random):void 0}),toJSON(J){const ee={};return J.version!==void 0&&(ee.version=J.version?u.Consensus.toJSON(J.version):void 0),J.chain_id!==void 0&&(ee.chain_id=J.chain_id),J.height!==void 0&&(ee.height=J.height),J.time!==void 0&&(ee.time=q(J.time).toISOString()),J.last_block_id!==void 0&&(ee.last_block_id=J.last_block_id?e.BlockID.toJSON(J.last_block_id):void 0),J.last_commit_hash!==void 0&&(ee.last_commit_hash=B(J.last_commit_hash!==void 0?J.last_commit_hash:new Uint8Array)),J.data_hash!==void 0&&(ee.data_hash=B(J.data_hash!==void 0?J.data_hash:new Uint8Array)),J.validators_hash!==void 0&&(ee.validators_hash=B(J.validators_hash!==void 0?J.validators_hash:new Uint8Array)),J.next_validators_hash!==void 0&&(ee.next_validators_hash=B(J.next_validators_hash!==void 0?J.next_validators_hash:new Uint8Array)),J.consensus_hash!==void 0&&(ee.consensus_hash=B(J.consensus_hash!==void 0?J.consensus_hash:new Uint8Array)),J.app_hash!==void 0&&(ee.app_hash=B(J.app_hash!==void 0?J.app_hash:new Uint8Array)),J.last_results_hash!==void 0&&(ee.last_results_hash=B(J.last_results_hash!==void 0?J.last_results_hash:new Uint8Array)),J.evidence_hash!==void 0&&(ee.evidence_hash=B(J.evidence_hash!==void 0?J.evidence_hash:new Uint8Array)),J.proposer_address!==void 0&&(ee.proposer_address=B(J.proposer_address!==void 0?J.proposer_address:new Uint8Array)),J.encrypted_random!==void 0&&(ee.encrypted_random=J.encrypted_random?e.EncryptedRandom.toJSON(J.encrypted_random):void 0),ee},fromPartial(J){var ee,G,$,W,Y,F,ae,he,le,ce,ve;const de=l();return de.version=J.version!==void 0&&J.version!==null?u.Consensus.fromPartial(J.version):void 0,de.chain_id=(ee=J.chain_id)!==null&&ee!==void 0?ee:"",de.height=(G=J.height)!==null&&G!==void 0?G:"0",de.time=J.time!==void 0&&J.time!==null?s.Timestamp.fromPartial(J.time):void 0,de.last_block_id=J.last_block_id!==void 0&&J.last_block_id!==null?e.BlockID.fromPartial(J.last_block_id):void 0,de.last_commit_hash=($=J.last_commit_hash)!==null&&$!==void 0?$:new Uint8Array,de.data_hash=(W=J.data_hash)!==null&&W!==void 0?W:new Uint8Array,de.validators_hash=(Y=J.validators_hash)!==null&&Y!==void 0?Y:new Uint8Array,de.next_validators_hash=(F=J.next_validators_hash)!==null&&F!==void 0?F:new Uint8Array,de.consensus_hash=(ae=J.consensus_hash)!==null&&ae!==void 0?ae:new Uint8Array,de.app_hash=(he=J.app_hash)!==null&&he!==void 0?he:new Uint8Array,de.last_results_hash=(le=J.last_results_hash)!==null&&le!==void 0?le:new Uint8Array,de.evidence_hash=(ce=J.evidence_hash)!==null&&ce!==void 0?ce:new Uint8Array,de.proposer_address=(ve=J.proposer_address)!==null&&ve!==void 0?ve:new Uint8Array,de.encrypted_random=J.encrypted_random!==void 0&&J.encrypted_random!==null?e.EncryptedRandom.fromPartial(J.encrypted_random):void 0,de}},e.EncryptedRandom={encode:(J,ee=t.Writer.create())=>(J.random.length!==0&&ee.uint32(10).bytes(J.random),J.proof.length!==0&&ee.uint32(18).bytes(J.proof),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=j();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.random=G.bytes();break;case 2:W.proof=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({random:ie(J.random)?m(J.random):new Uint8Array,proof:ie(J.proof)?m(J.proof):new Uint8Array}),toJSON(J){const ee={};return J.random!==void 0&&(ee.random=B(J.random!==void 0?J.random:new Uint8Array)),J.proof!==void 0&&(ee.proof=B(J.proof!==void 0?J.proof:new Uint8Array)),ee},fromPartial(J){var ee,G;const $=j();return $.random=(ee=J.random)!==null&&ee!==void 0?ee:new Uint8Array,$.proof=(G=J.proof)!==null&&G!==void 0?G:new Uint8Array,$}},e.Data={encode(J,ee=t.Writer.create()){for(const G of J.txs)ee.uint32(10).bytes(G);return ee},decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={txs:[]};for(;G.pos<$;){const Y=G.uint32();Y>>>3==1?W.txs.push(G.bytes()):G.skipType(7&Y)}return W},fromJSON:J=>({txs:Array.isArray(J==null?void 0:J.txs)?J.txs.map(ee=>m(ee)):[]}),toJSON(J){const ee={};return J.txs?ee.txs=J.txs.map(G=>B(G!==void 0?G:new Uint8Array)):ee.txs=[],ee},fromPartial(J){var ee;const G={txs:[]};return G.txs=((ee=J.txs)===null||ee===void 0?void 0:ee.map($=>$))||[],G}},e.Vote={encode:(J,ee=t.Writer.create())=>(J.type!==0&&ee.uint32(8).int32(J.type),J.height!=="0"&&ee.uint32(16).int64(J.height),J.round!==0&&ee.uint32(24).int32(J.round),J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(34).fork()).ldelim(),J.timestamp!==void 0&&s.Timestamp.encode(J.timestamp,ee.uint32(42).fork()).ldelim(),J.validator_address.length!==0&&ee.uint32(50).bytes(J.validator_address),J.validator_index!==0&&ee.uint32(56).int32(J.validator_index),J.signature.length!==0&&ee.uint32(66).bytes(J.signature),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=M();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.type=G.int32();break;case 2:W.height=re(G.int64());break;case 3:W.round=G.int32();break;case 4:W.block_id=e.BlockID.decode(G,G.uint32());break;case 5:W.timestamp=s.Timestamp.decode(G,G.uint32());break;case 6:W.validator_address=G.bytes();break;case 7:W.validator_index=G.int32();break;case 8:W.signature=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({type:ie(J.type)?d(J.type):0,height:ie(J.height)?String(J.height):"0",round:ie(J.round)?Number(J.round):0,block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,timestamp:ie(J.timestamp)?te(J.timestamp):void 0,validator_address:ie(J.validator_address)?m(J.validator_address):new Uint8Array,validator_index:ie(J.validator_index)?Number(J.validator_index):0,signature:ie(J.signature)?m(J.signature):new Uint8Array}),toJSON(J){const ee={};return J.type!==void 0&&(ee.type=p(J.type)),J.height!==void 0&&(ee.height=J.height),J.round!==void 0&&(ee.round=Math.round(J.round)),J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.timestamp!==void 0&&(ee.timestamp=q(J.timestamp).toISOString()),J.validator_address!==void 0&&(ee.validator_address=B(J.validator_address!==void 0?J.validator_address:new Uint8Array)),J.validator_index!==void 0&&(ee.validator_index=Math.round(J.validator_index)),J.signature!==void 0&&(ee.signature=B(J.signature!==void 0?J.signature:new Uint8Array)),ee},fromPartial(J){var ee,G,$,W,Y,F;const ae=M();return ae.type=(ee=J.type)!==null&&ee!==void 0?ee:0,ae.height=(G=J.height)!==null&&G!==void 0?G:"0",ae.round=($=J.round)!==null&&$!==void 0?$:0,ae.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,ae.timestamp=J.timestamp!==void 0&&J.timestamp!==null?s.Timestamp.fromPartial(J.timestamp):void 0,ae.validator_address=(W=J.validator_address)!==null&&W!==void 0?W:new Uint8Array,ae.validator_index=(Y=J.validator_index)!==null&&Y!==void 0?Y:0,ae.signature=(F=J.signature)!==null&&F!==void 0?F:new Uint8Array,ae}},e.Commit={encode(J,ee=t.Writer.create()){J.height!=="0"&&ee.uint32(8).int64(J.height),J.round!==0&&ee.uint32(16).int32(J.round),J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(26).fork()).ldelim();for(const G of J.signatures)e.CommitSig.encode(G,ee.uint32(34).fork()).ldelim();return ee},decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={height:"0",round:0,block_id:void 0,signatures:[]};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.height=re(G.int64());break;case 2:W.round=G.int32();break;case 3:W.block_id=e.BlockID.decode(G,G.uint32());break;case 4:W.signatures.push(e.CommitSig.decode(G,G.uint32()));break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({height:ie(J.height)?String(J.height):"0",round:ie(J.round)?Number(J.round):0,block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,signatures:Array.isArray(J==null?void 0:J.signatures)?J.signatures.map(ee=>e.CommitSig.fromJSON(ee)):[]}),toJSON(J){const ee={};return J.height!==void 0&&(ee.height=J.height),J.round!==void 0&&(ee.round=Math.round(J.round)),J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.signatures?ee.signatures=J.signatures.map(G=>G?e.CommitSig.toJSON(G):void 0):ee.signatures=[],ee},fromPartial(J){var ee,G,$;const W={height:"0",round:0,block_id:void 0,signatures:[]};return W.height=(ee=J.height)!==null&&ee!==void 0?ee:"0",W.round=(G=J.round)!==null&&G!==void 0?G:0,W.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,W.signatures=(($=J.signatures)===null||$===void 0?void 0:$.map(Y=>e.CommitSig.fromPartial(Y)))||[],W}},e.CommitSig={encode:(J,ee=t.Writer.create())=>(J.block_id_flag!==0&&ee.uint32(8).int32(J.block_id_flag),J.validator_address.length!==0&&ee.uint32(18).bytes(J.validator_address),J.timestamp!==void 0&&s.Timestamp.encode(J.timestamp,ee.uint32(26).fork()).ldelim(),J.signature.length!==0&&ee.uint32(34).bytes(J.signature),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=N();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.block_id_flag=G.int32();break;case 2:W.validator_address=G.bytes();break;case 3:W.timestamp=s.Timestamp.decode(G,G.uint32());break;case 4:W.signature=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({block_id_flag:ie(J.block_id_flag)?i(J.block_id_flag):0,validator_address:ie(J.validator_address)?m(J.validator_address):new Uint8Array,timestamp:ie(J.timestamp)?te(J.timestamp):void 0,signature:ie(J.signature)?m(J.signature):new Uint8Array}),toJSON(J){const ee={};return J.block_id_flag!==void 0&&(ee.block_id_flag=f(J.block_id_flag)),J.validator_address!==void 0&&(ee.validator_address=B(J.validator_address!==void 0?J.validator_address:new Uint8Array)),J.timestamp!==void 0&&(ee.timestamp=q(J.timestamp).toISOString()),J.signature!==void 0&&(ee.signature=B(J.signature!==void 0?J.signature:new Uint8Array)),ee},fromPartial(J){var ee,G,$;const W=N();return W.block_id_flag=(ee=J.block_id_flag)!==null&&ee!==void 0?ee:0,W.validator_address=(G=J.validator_address)!==null&&G!==void 0?G:new Uint8Array,W.timestamp=J.timestamp!==void 0&&J.timestamp!==null?s.Timestamp.fromPartial(J.timestamp):void 0,W.signature=($=J.signature)!==null&&$!==void 0?$:new Uint8Array,W}},e.Proposal={encode:(J,ee=t.Writer.create())=>(J.type!==0&&ee.uint32(8).int32(J.type),J.height!=="0"&&ee.uint32(16).int64(J.height),J.round!==0&&ee.uint32(24).int32(J.round),J.pol_round!==0&&ee.uint32(32).int32(J.pol_round),J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(42).fork()).ldelim(),J.timestamp!==void 0&&s.Timestamp.encode(J.timestamp,ee.uint32(50).fork()).ldelim(),J.signature.length!==0&&ee.uint32(58).bytes(J.signature),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=C();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.type=G.int32();break;case 2:W.height=re(G.int64());break;case 3:W.round=G.int32();break;case 4:W.pol_round=G.int32();break;case 5:W.block_id=e.BlockID.decode(G,G.uint32());break;case 6:W.timestamp=s.Timestamp.decode(G,G.uint32());break;case 7:W.signature=G.bytes();break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({type:ie(J.type)?d(J.type):0,height:ie(J.height)?String(J.height):"0",round:ie(J.round)?Number(J.round):0,pol_round:ie(J.pol_round)?Number(J.pol_round):0,block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,timestamp:ie(J.timestamp)?te(J.timestamp):void 0,signature:ie(J.signature)?m(J.signature):new Uint8Array}),toJSON(J){const ee={};return J.type!==void 0&&(ee.type=p(J.type)),J.height!==void 0&&(ee.height=J.height),J.round!==void 0&&(ee.round=Math.round(J.round)),J.pol_round!==void 0&&(ee.pol_round=Math.round(J.pol_round)),J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.timestamp!==void 0&&(ee.timestamp=q(J.timestamp).toISOString()),J.signature!==void 0&&(ee.signature=B(J.signature!==void 0?J.signature:new Uint8Array)),ee},fromPartial(J){var ee,G,$,W,Y;const F=C();return F.type=(ee=J.type)!==null&&ee!==void 0?ee:0,F.height=(G=J.height)!==null&&G!==void 0?G:"0",F.round=($=J.round)!==null&&$!==void 0?$:0,F.pol_round=(W=J.pol_round)!==null&&W!==void 0?W:0,F.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,F.timestamp=J.timestamp!==void 0&&J.timestamp!==null?s.Timestamp.fromPartial(J.timestamp):void 0,F.signature=(Y=J.signature)!==null&&Y!==void 0?Y:new Uint8Array,F}},e.SignedHeader={encode:(J,ee=t.Writer.create())=>(J.header!==void 0&&e.Header.encode(J.header,ee.uint32(10).fork()).ldelim(),J.commit!==void 0&&e.Commit.encode(J.commit,ee.uint32(18).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={header:void 0,commit:void 0};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.header=e.Header.decode(G,G.uint32());break;case 2:W.commit=e.Commit.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({header:ie(J.header)?e.Header.fromJSON(J.header):void 0,commit:ie(J.commit)?e.Commit.fromJSON(J.commit):void 0}),toJSON(J){const ee={};return J.header!==void 0&&(ee.header=J.header?e.Header.toJSON(J.header):void 0),J.commit!==void 0&&(ee.commit=J.commit?e.Commit.toJSON(J.commit):void 0),ee},fromPartial(J){const ee={header:void 0,commit:void 0};return ee.header=J.header!==void 0&&J.header!==null?e.Header.fromPartial(J.header):void 0,ee.commit=J.commit!==void 0&&J.commit!==null?e.Commit.fromPartial(J.commit):void 0,ee}},e.LightBlock={encode:(J,ee=t.Writer.create())=>(J.signed_header!==void 0&&e.SignedHeader.encode(J.signed_header,ee.uint32(10).fork()).ldelim(),J.validator_set!==void 0&&r.ValidatorSet.encode(J.validator_set,ee.uint32(18).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={signed_header:void 0,validator_set:void 0};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.signed_header=e.SignedHeader.decode(G,G.uint32());break;case 2:W.validator_set=r.ValidatorSet.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({signed_header:ie(J.signed_header)?e.SignedHeader.fromJSON(J.signed_header):void 0,validator_set:ie(J.validator_set)?r.ValidatorSet.fromJSON(J.validator_set):void 0}),toJSON(J){const ee={};return J.signed_header!==void 0&&(ee.signed_header=J.signed_header?e.SignedHeader.toJSON(J.signed_header):void 0),J.validator_set!==void 0&&(ee.validator_set=J.validator_set?r.ValidatorSet.toJSON(J.validator_set):void 0),ee},fromPartial(J){const ee={signed_header:void 0,validator_set:void 0};return ee.signed_header=J.signed_header!==void 0&&J.signed_header!==null?e.SignedHeader.fromPartial(J.signed_header):void 0,ee.validator_set=J.validator_set!==void 0&&J.validator_set!==null?r.ValidatorSet.fromPartial(J.validator_set):void 0,ee}},e.BlockMeta={encode:(J,ee=t.Writer.create())=>(J.block_id!==void 0&&e.BlockID.encode(J.block_id,ee.uint32(10).fork()).ldelim(),J.block_size!=="0"&&ee.uint32(16).int64(J.block_size),J.header!==void 0&&e.Header.encode(J.header,ee.uint32(26).fork()).ldelim(),J.num_txs!=="0"&&ee.uint32(32).int64(J.num_txs),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W={block_id:void 0,block_size:"0",header:void 0,num_txs:"0"};for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.block_id=e.BlockID.decode(G,G.uint32());break;case 2:W.block_size=re(G.int64());break;case 3:W.header=e.Header.decode(G,G.uint32());break;case 4:W.num_txs=re(G.int64());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({block_id:ie(J.block_id)?e.BlockID.fromJSON(J.block_id):void 0,block_size:ie(J.block_size)?String(J.block_size):"0",header:ie(J.header)?e.Header.fromJSON(J.header):void 0,num_txs:ie(J.num_txs)?String(J.num_txs):"0"}),toJSON(J){const ee={};return J.block_id!==void 0&&(ee.block_id=J.block_id?e.BlockID.toJSON(J.block_id):void 0),J.block_size!==void 0&&(ee.block_size=J.block_size),J.header!==void 0&&(ee.header=J.header?e.Header.toJSON(J.header):void 0),J.num_txs!==void 0&&(ee.num_txs=J.num_txs),ee},fromPartial(J){var ee,G;const $={block_id:void 0,block_size:"0",header:void 0,num_txs:"0"};return $.block_id=J.block_id!==void 0&&J.block_id!==null?e.BlockID.fromPartial(J.block_id):void 0,$.block_size=(ee=J.block_size)!==null&&ee!==void 0?ee:"0",$.header=J.header!==void 0&&J.header!==null?e.Header.fromPartial(J.header):void 0,$.num_txs=(G=J.num_txs)!==null&&G!==void 0?G:"0",$}},e.TxProof={encode:(J,ee=t.Writer.create())=>(J.root_hash.length!==0&&ee.uint32(10).bytes(J.root_hash),J.data.length!==0&&ee.uint32(18).bytes(J.data),J.proof!==void 0&&c.Proof.encode(J.proof,ee.uint32(26).fork()).ldelim(),ee),decode(J,ee){const G=J instanceof t.Reader?J:new t.Reader(J);let $=ee===void 0?G.len:G.pos+ee;const W=x();for(;G.pos<$;){const Y=G.uint32();switch(Y>>>3){case 1:W.root_hash=G.bytes();break;case 2:W.data=G.bytes();break;case 3:W.proof=c.Proof.decode(G,G.uint32());break;default:G.skipType(7&Y)}}return W},fromJSON:J=>({root_hash:ie(J.root_hash)?m(J.root_hash):new Uint8Array,data:ie(J.data)?m(J.data):new Uint8Array,proof:ie(J.proof)?c.Proof.fromJSON(J.proof):void 0}),toJSON(J){const ee={};return J.root_hash!==void 0&&(ee.root_hash=B(J.root_hash!==void 0?J.root_hash:new Uint8Array)),J.data!==void 0&&(ee.data=B(J.data!==void 0?J.data:new Uint8Array)),J.proof!==void 0&&(ee.proof=J.proof?c.Proof.toJSON(J.proof):void 0),ee},fromPartial(J){var ee,G;const $=x();return $.root_hash=(ee=J.root_hash)!==null&&ee!==void 0?ee:new Uint8Array,$.data=(G=J.data)!==null&&G!==void 0?G:new Uint8Array,$.proof=J.proof!==void 0&&J.proof!==null?c.Proof.fromPartial(J.proof):void 0,$}};var P=(()=>{if(P!==void 0)return P;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const v=P.atob||(J=>P.Buffer.from(J,"base64").toString("binary"));function m(J){const ee=v(J),G=new Uint8Array(ee.length);for(let $=0;$P.Buffer.from(J,"binary").toString("base64"));function B(J){const ee=[];for(const G of J)ee.push(String.fromCharCode(G));return E(ee.join(""))}function T(J){return{seconds:Math.trunc(J.getTime()/1e3).toString(),nanos:J.getTime()%1e3*1e6}}function q(J){let ee=1e3*Number(J.seconds);return ee+=J.nanos/1e6,new Date(ee)}function te(J){return J instanceof Date?T(J):typeof J=="string"?T(new Date(J)):s.Timestamp.fromJSON(J)}function re(J){return J.toString()}function ie(J){return J!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},3563:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(d,p,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return p[_]}})}:function(d,p,_,b){b===void 0&&(b=_),d[b]=p[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(p,d,_);return O(p,d),p},S=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleValidator=e.Validator=e.ValidatorSet=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100)),c=h(2740);function u(){return{address:new Uint8Array,pub_key:void 0,voting_power:"0",proposer_priority:"0"}}e.protobufPackage="tendermint.types",e.ValidatorSet={encode(d,p=t.Writer.create()){for(const _ of d.validators)e.Validator.encode(_,p.uint32(10).fork()).ldelim();return d.proposer!==void 0&&e.Validator.encode(d.proposer,p.uint32(18).fork()).ldelim(),d.total_voting_power!=="0"&&p.uint32(24).int64(d.total_voting_power),p},decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={validators:[],proposer:void 0,total_voting_power:"0"};for(;_.pos>>3){case 1:I.validators.push(e.Validator.decode(_,_.uint32()));break;case 2:I.proposer=e.Validator.decode(_,_.uint32());break;case 3:I.total_voting_power=i(_.int64());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({validators:Array.isArray(d==null?void 0:d.validators)?d.validators.map(p=>e.Validator.fromJSON(p)):[],proposer:f(d.proposer)?e.Validator.fromJSON(d.proposer):void 0,total_voting_power:f(d.total_voting_power)?String(d.total_voting_power):"0"}),toJSON(d){const p={};return d.validators?p.validators=d.validators.map(_=>_?e.Validator.toJSON(_):void 0):p.validators=[],d.proposer!==void 0&&(p.proposer=d.proposer?e.Validator.toJSON(d.proposer):void 0),d.total_voting_power!==void 0&&(p.total_voting_power=d.total_voting_power),p},fromPartial(d){var p,_;const b={validators:[],proposer:void 0,total_voting_power:"0"};return b.validators=((p=d.validators)===null||p===void 0?void 0:p.map(I=>e.Validator.fromPartial(I)))||[],b.proposer=d.proposer!==void 0&&d.proposer!==null?e.Validator.fromPartial(d.proposer):void 0,b.total_voting_power=(_=d.total_voting_power)!==null&&_!==void 0?_:"0",b}},e.Validator={encode:(d,p=t.Writer.create())=>(d.address.length!==0&&p.uint32(10).bytes(d.address),d.pub_key!==void 0&&c.PublicKey.encode(d.pub_key,p.uint32(18).fork()).ldelim(),d.voting_power!=="0"&&p.uint32(24).int64(d.voting_power),d.proposer_priority!=="0"&&p.uint32(32).int64(d.proposer_priority),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I=u();for(;_.pos>>3){case 1:I.address=_.bytes();break;case 2:I.pub_key=c.PublicKey.decode(_,_.uint32());break;case 3:I.voting_power=i(_.int64());break;case 4:I.proposer_priority=i(_.int64());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({address:f(d.address)?n(d.address):new Uint8Array,pub_key:f(d.pub_key)?c.PublicKey.fromJSON(d.pub_key):void 0,voting_power:f(d.voting_power)?String(d.voting_power):"0",proposer_priority:f(d.proposer_priority)?String(d.proposer_priority):"0"}),toJSON(d){const p={};return d.address!==void 0&&(p.address=function(_){const b=[];for(const I of _)b.push(String.fromCharCode(I));return o(b.join(""))}(d.address!==void 0?d.address:new Uint8Array)),d.pub_key!==void 0&&(p.pub_key=d.pub_key?c.PublicKey.toJSON(d.pub_key):void 0),d.voting_power!==void 0&&(p.voting_power=d.voting_power),d.proposer_priority!==void 0&&(p.proposer_priority=d.proposer_priority),p},fromPartial(d){var p,_,b;const I=u();return I.address=(p=d.address)!==null&&p!==void 0?p:new Uint8Array,I.pub_key=d.pub_key!==void 0&&d.pub_key!==null?c.PublicKey.fromPartial(d.pub_key):void 0,I.voting_power=(_=d.voting_power)!==null&&_!==void 0?_:"0",I.proposer_priority=(b=d.proposer_priority)!==null&&b!==void 0?b:"0",I}},e.SimpleValidator={encode:(d,p=t.Writer.create())=>(d.pub_key!==void 0&&c.PublicKey.encode(d.pub_key,p.uint32(10).fork()).ldelim(),d.voting_power!=="0"&&p.uint32(16).int64(d.voting_power),p),decode(d,p){const _=d instanceof t.Reader?d:new t.Reader(d);let b=p===void 0?_.len:_.pos+p;const I={pub_key:void 0,voting_power:"0"};for(;_.pos>>3){case 1:I.pub_key=c.PublicKey.decode(_,_.uint32());break;case 2:I.voting_power=i(_.int64());break;default:_.skipType(7&l)}}return I},fromJSON:d=>({pub_key:f(d.pub_key)?c.PublicKey.fromJSON(d.pub_key):void 0,voting_power:f(d.voting_power)?String(d.voting_power):"0"}),toJSON(d){const p={};return d.pub_key!==void 0&&(p.pub_key=d.pub_key?c.PublicKey.toJSON(d.pub_key):void 0),d.voting_power!==void 0&&(p.voting_power=d.voting_power),p},fromPartial(d){var p;const _={pub_key:void 0,voting_power:"0"};return _.pub_key=d.pub_key!==void 0&&d.pub_key!==null?c.PublicKey.fromPartial(d.pub_key):void 0,_.voting_power=(p=d.voting_power)!==null&&p!==void 0?p:"0",_}};var s=(()=>{if(s!==void 0)return s;if(typeof self<"u")return self;if(typeof window<"u")return window;if(h.g!==void 0)return h.g;throw"Unable to locate global object"})();const r=s.atob||(d=>s.Buffer.from(d,"base64").toString("binary"));function n(d){const p=r(d),_=new Uint8Array(p.length);for(let b=0;bs.Buffer.from(d,"binary").toString("base64"));function i(d){return d.toString()}function f(d){return d!=null}t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},5640:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.Consensus=e.App=e.protobufPackage=void 0;const a=S(h(3720)),t=k(h(2100));function c(s){return s.toString()}function u(s){return s!=null}e.protobufPackage="tendermint.version",e.App={encode:(s,r=t.Writer.create())=>(s.protocol!=="0"&&r.uint32(8).uint64(s.protocol),s.software!==""&&r.uint32(18).string(s.software),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={protocol:"0",software:""};for(;n.pos>>3){case 1:i.protocol=c(n.uint64());break;case 2:i.software=n.string();break;default:n.skipType(7&f)}}return i},fromJSON:s=>({protocol:u(s.protocol)?String(s.protocol):"0",software:u(s.software)?String(s.software):""}),toJSON(s){const r={};return s.protocol!==void 0&&(r.protocol=s.protocol),s.software!==void 0&&(r.software=s.software),r},fromPartial(s){var r,n;const o={protocol:"0",software:""};return o.protocol=(r=s.protocol)!==null&&r!==void 0?r:"0",o.software=(n=s.software)!==null&&n!==void 0?n:"",o}},e.Consensus={encode:(s,r=t.Writer.create())=>(s.block!=="0"&&r.uint32(8).uint64(s.block),s.app!=="0"&&r.uint32(16).uint64(s.app),r),decode(s,r){const n=s instanceof t.Reader?s:new t.Reader(s);let o=r===void 0?n.len:n.pos+r;const i={block:"0",app:"0"};for(;n.pos>>3){case 1:i.block=c(n.uint64());break;case 2:i.app=c(n.uint64());break;default:n.skipType(7&f)}}return i},fromJSON:s=>({block:u(s.block)?String(s.block):"0",app:u(s.app)?String(s.app):"0"}),toJSON(s){const r={};return s.block!==void 0&&(r.block=s.block),s.app!==void 0&&(r.app=s.app),r},fromPartial(s){var r,n;const o={block:"0",app:"0"};return o.block=(r=s.block)!==null&&r!==void 0?r:"0",o.app=(n=s.app)!==null&&n!==void 0?n:"0",o}},t.util.Long!==a.default&&(t.util.Long=a.default,t.configure())},2076:function(D,e,h){var w=this&&this.__awaiter||function(k,S,a,t){return new(a||(a=Promise))(function(c,u){function s(o){try{n(t.next(o))}catch(i){u(i)}}function r(o){try{n(t.throw(o))}catch(i){u(i)}}function n(o){var i;o.done?c(o.value):(i=o.value,i instanceof a?i:new a(function(f){f(i)})).then(s,r)}n((t=t.apply(k,S||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.AuthQuerier=void 0;const O=h(3004);e.AuthQuerier=class{constructor(k){this.url=k}accounts(k,S){return w(this,void 0,void 0,function*(){return O.Query.Accounts(k,{headers:S,pathPrefix:this.url})})}account(k,S){return w(this,void 0,void 0,function*(){return O.Query.Account(k,{headers:S,pathPrefix:this.url})})}params(k,S){return w(this,void 0,void 0,function*(){return O.Query.Params(k,{headers:S,pathPrefix:this.url})})}moduleAccountByName(k,S){return w(this,void 0,void 0,function*(){return O.Query.ModuleAccountByName(k,{headers:S,pathPrefix:this.url})})}}},298:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.AuthzQuerier=void 0;const w=h(3704);e.AuthzQuerier=class{constructor(O){this.url=O}grants(O,k){return w.Query.Grants(O,{headers:k,pathPrefix:this.url})}granterGrants(O,k){return w.Query.GranterGrants(O,{headers:k,pathPrefix:this.url})}granteeGrants(O,k){return w.Query.GranteeGrants(O,{headers:k,pathPrefix:this.url})}}},8622:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BankQuerier=void 0;const w=h(1926);e.BankQuerier=class{constructor(O){this.url=O}balance(O,k){return w.Query.Balance(O,{headers:k,pathPrefix:this.url})}allBalances(O,k){return w.Query.AllBalances(O,{headers:k,pathPrefix:this.url})}spendableBalances(O,k){return w.Query.SpendableBalances(O,{headers:k,pathPrefix:this.url})}totalSupply(O,k){return w.Query.TotalSupply(O,{headers:k,pathPrefix:this.url})}supplyOf(O,k){return w.Query.SupplyOf(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}denomMetadata(O,k){return w.Query.DenomMetadata(O,{headers:k,pathPrefix:this.url})}denomsMetadata(O,k){return w.Query.DenomsMetadata(O,{headers:k,pathPrefix:this.url})}}},8526:function(D,e,h){var w=h(5108),O=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(p){try{d(r.next(p))}catch(_){o(_)}}function f(p){try{d(r.throw(p))}catch(_){o(_)}}function d(p){var _;p.done?n(p.value):(_=p.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ComputeQuerier=void 0;const k=h(8972),S=h(3607),a=h(8136),t=h(5250);e.ComputeQuerier=class{constructor(c,u){this.url=c,this.encryption=u,this.codeHashCache=new Map,this.encryption||(this.encryption=new a.EncryptionUtilsImpl(c))}contractInfo(c,u){return t.Query.ContractInfo(c,{headers:u,pathPrefix:this.url})}contractsByCodeId(c,u){return t.Query.ContractsByCodeId(c,{headers:u,pathPrefix:this.url})}code(c,u){return t.Query.Code(c,{headers:u,pathPrefix:this.url})}codes(c,u){return t.Query.Codes(c,{headers:u,pathPrefix:this.url})}codeHashByContractAddress(c,u){return O(this,void 0,void 0,function*(){let s=this.codeHashCache.get(c.contract_address);return s||({code_hash:s}=yield t.Query.CodeHashByContractAddress(c,{headers:u,pathPrefix:this.url}),this.codeHashCache.set(c.contract_address,s)),{code_hash:s}})}codeHashByCodeId(c,u){return O(this,void 0,void 0,function*(){let s=this.codeHashCache.get(c.code_id);return s||({code_hash:s}=yield t.Query.CodeHashByCodeId({code_id:c.code_id},{headers:u,pathPrefix:this.url}),this.codeHashCache.set(c.code_id,s)),{code_hash:s}})}labelByAddress(c,u){return t.Query.LabelByAddress(c,{headers:u,pathPrefix:this.url})}addressByLabel(c,u){return t.Query.AddressByLabel(c,{headers:u,pathPrefix:this.url})}queryContract({contract_address:c,code_hash:u,query:s},r){return O(this,void 0,void 0,function*(){u||(w.warn((0,S.getMissingCodeHashWarning)("queryContract()")),{code_hash:u}=yield this.codeHashByContractAddress({contract_address:c})),u=u.replace("0x","").toLowerCase();const n=yield this.encryption.encrypt(u,s),o=n.slice(0,32);try{const{data:i}=yield t.Query.QuerySecretContract({contract_address:c,query:n},{headers:r,pathPrefix:this.url}),f=yield this.encryption.decrypt((0,k.fromBase64)(i),o);return f!=null&&f.length?JSON.parse((0,k.fromUtf8)((0,k.fromBase64)((0,k.fromUtf8)(f)))):{}}catch(i){try{const f=/encrypted: (.+?): (?:instantiate|execute|query|reply to|migrate) contract failed/g.exec(i.message);if(f==null||(f==null?void 0:f.length)!=2)throw i;const d=(0,k.fromBase64)(f[1]),p=yield this.encryption.decrypt(d,o);try{return(0,k.fromUtf8)((0,k.fromBase64)((0,k.fromUtf8)(p)))}catch(_){if(_.message==="Invalid base64 string format")return(0,k.fromUtf8)(p);throw i}}catch{throw i}}})}contractHistory(c,u){return O(this,void 0,void 0,function*(){const{entries:s}=yield t.Query.ContractHistory(c,{headers:u,pathPrefix:this.url});let r=[];for(const n of s??[]){let o=n.msg;try{const i=(0,k.fromBase64)(o),f=i.slice(0,32),d=i.slice(64),p=yield this.encryption.decrypt(d,f);o=(0,k.fromUtf8)(p).slice(64)}catch{}r.push({operation:n.operation,code_id:n.code_id,updated:n.updated,msg:o})}return{entries:r}})}}},2012:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DistributionQuerier=void 0;const w=h(406);e.DistributionQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}validatorOutstandingRewards(O,k){return w.Query.ValidatorOutstandingRewards(O,{headers:k,pathPrefix:this.url})}validatorCommission(O,k){return w.Query.ValidatorCommission(O,{headers:k,pathPrefix:this.url})}validatorSlashes(O,k){return w.Query.ValidatorSlashes(O,{headers:k,pathPrefix:this.url})}delegationRewards(O,k){return w.Query.DelegationRewards(O,{headers:k,pathPrefix:this.url})}delegationTotalRewards(O,k){return w.Query.DelegationTotalRewards(O,{headers:k,pathPrefix:this.url})}delegatorValidators(O,k){return w.Query.DelegatorValidators(O,{headers:k,pathPrefix:this.url})}delegatorWithdrawAddress(O,k){return w.Query.DelegatorWithdrawAddress(O,{headers:k,pathPrefix:this.url})}communityPool(O,k){return w.Query.CommunityPool(O,{headers:k,pathPrefix:this.url})}foundationTax(O,k){return w.Query.FoundationTax(O,{headers:k,pathPrefix:this.url})}restakeThreshold(O,k){return w.Query.RestakeThreshold(O,{headers:k,pathPrefix:this.url})}restakingEntries(O,k){return w.Query.RestakingEntries(O,{headers:k,pathPrefix:this.url})}}},5468:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EmergencyButtonQuerier=void 0;const w=h(71);e.EmergencyButtonQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},3394:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EvidenceQuerier=void 0;const w=h(6898);e.EvidenceQuerier=class{constructor(O){this.url=O}evidence(O,k){return w.Query.Evidence(O,{headers:k,pathPrefix:this.url})}allEvidence(O,k){return w.Query.AllEvidence(O,{headers:k,pathPrefix:this.url})}}},380:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FeegrantQuerier=void 0;const w=h(876);e.FeegrantQuerier=class{constructor(O){this.url=O}allowance(O,k){return w.Query.Allowance(O,{headers:k,pathPrefix:this.url})}allowances(O,k){return w.Query.Allowances(O,{headers:k,pathPrefix:this.url})}allowancesByGranter(O,k){return w.Query.AllowancesByGranter(O,{headers:k,pathPrefix:this.url})}}},3095:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GovQuerier=void 0;const w=h(7331);e.GovQuerier=class{constructor(O){this.url=O}proposal(O,k){return w.Query.Proposal(O,{headers:k,pathPrefix:this.url})}proposals(O,k){return w.Query.Proposals(O,{headers:k,pathPrefix:this.url})}vote(O,k){return w.Query.Vote(O,{headers:k,pathPrefix:this.url})}votes(O,k){return w.Query.Votes(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}deposit(O,k){return w.Query.Deposit(O,{headers:k,pathPrefix:this.url})}deposits(O,k){return w.Query.Deposits(O,{headers:k,pathPrefix:this.url})}tallyResult(O,k){return w.Query.TallyResult(O,{headers:k,pathPrefix:this.url})}}},7807:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcChannelQuerier=void 0;const w=h(6409);e.IbcChannelQuerier=class{constructor(O){this.url=O}channel(O,k){return w.Query.Channel(O,{headers:k,pathPrefix:this.url})}channels(O,k){return w.Query.Channels(O,{headers:k,pathPrefix:this.url})}connectionChannels(O,k){return w.Query.ConnectionChannels(O,{headers:k,pathPrefix:this.url})}channelClientState(O,k){return w.Query.ChannelClientState(O,{headers:k,pathPrefix:this.url})}channelConsensusState(O,k){return w.Query.ChannelConsensusState(O,{headers:k,pathPrefix:this.url})}packetCommitment(O,k){return w.Query.PacketCommitment(O,{headers:k,pathPrefix:this.url})}packetCommitments(O,k){return w.Query.PacketCommitments(O,{headers:k,pathPrefix:this.url})}packetReceipt(O,k){return w.Query.PacketReceipt(O,{headers:k,pathPrefix:this.url})}packetAcknowledgement(O,k){return w.Query.PacketAcknowledgement(O,{headers:k,pathPrefix:this.url})}packetAcknowledgements(O,k){return w.Query.PacketAcknowledgements(O,{headers:k,pathPrefix:this.url})}unreceivedPackets(O,k){return w.Query.UnreceivedPackets(O,{headers:k,pathPrefix:this.url})}unreceivedAcks(O,k){return w.Query.UnreceivedAcks(O,{headers:k,pathPrefix:this.url})}nextSequenceReceive(O,k){return w.Query.NextSequenceReceive(O,{headers:k,pathPrefix:this.url})}}},1654:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcClientQuerier=void 0;const w=h(301);e.IbcClientQuerier=class{constructor(O){this.url=O}clientState(O,k){return w.Query.ClientState(O,{headers:k,pathPrefix:this.url})}clientStates(O,k){return w.Query.ClientStates(O,{headers:k,pathPrefix:this.url})}consensusState(O,k){return w.Query.ConsensusState(O,{headers:k,pathPrefix:this.url})}consensusStates(O,k){return w.Query.ConsensusStates(O,{headers:k,pathPrefix:this.url})}clientStatus(O,k){return w.Query.ClientStatus(O,{headers:k,pathPrefix:this.url})}clientParams(O,k){return w.Query.ClientParams(O,{headers:k,pathPrefix:this.url})}upgradedClientState(O,k){return w.Query.UpgradedClientState(O,{headers:k,pathPrefix:this.url})}upgradedConsensusState(O,k){return w.Query.UpgradedConsensusState(O,{headers:k,pathPrefix:this.url})}consensusStateHeights(O,k){return w.Query.ConsensusStateHeights(O,{headers:k,pathPrefix:this.url})}}},2840:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcConnectionQuerier=void 0;const w=h(5258);e.IbcConnectionQuerier=class{constructor(O){this.url=O}connection(O,k){return w.Query.Connection(O,{headers:k,pathPrefix:this.url})}connections(O,k){return w.Query.Connections(O,{headers:k,pathPrefix:this.url})}clientConnections(O,k){return w.Query.ClientConnections(O,{headers:k,pathPrefix:this.url})}connectionClientState(O,k){return w.Query.ConnectionClientState(O,{headers:k,pathPrefix:this.url})}connectionConsensusState(O,k){return w.Query.ConnectionConsensusState(O,{headers:k,pathPrefix:this.url})}}},5570:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcFeeQuerier=void 0;const w=h(187);e.IbcFeeQuerier=class{constructor(O){this.url=O}incentivizedPackets(O,k){return w.Query.IncentivizedPackets(O,{headers:k,pathPrefix:this.url})}incentivizedPacket(O,k){return w.Query.IncentivizedPacket(O,{headers:k,pathPrefix:this.url})}incentivizedPacketsForChannel(O,k){return w.Query.IncentivizedPacketsForChannel(O,{headers:k,pathPrefix:this.url})}totalRecvFees(O,k){return w.Query.TotalRecvFees(O,{headers:k,pathPrefix:this.url})}totalAckFees(O,k){return w.Query.TotalAckFees(O,{headers:k,pathPrefix:this.url})}totalTimeoutFees(O,k){return w.Query.TotalTimeoutFees(O,{headers:k,pathPrefix:this.url})}payee(O,k){return w.Query.Payee(O,{headers:k,pathPrefix:this.url})}counterpartyPayee(O,k){return w.Query.CounterpartyPayee(O,{headers:k,pathPrefix:this.url})}feeEnabledChannels(O,k){return w.Query.FeeEnabledChannels(O,{headers:k,pathPrefix:this.url})}feeEnabledChannel(O,k){return w.Query.FeeEnabledChannel(O,{headers:k,pathPrefix:this.url})}}},5037:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcInterchainAccountsControllerQuerier=void 0;const w=h(2847);e.IbcInterchainAccountsControllerQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}interchainAccount(O,k){return w.Query.InterchainAccount(O,{headers:k,pathPrefix:this.url})}}},3635:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcInterchainAccountsHostQuerier=void 0;const w=h(1154);e.IbcInterchainAccountsHostQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},9637:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcPacketForwardQuerier=void 0;const w=h(1692);e.IbcPacketForwardQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},1387:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IbcTransferQuerier=void 0;const w=h(4921);e.IbcTransferQuerier=class{constructor(O){this.url=O}denomTrace(O,k){return w.Query.DenomTrace(O,{headers:k,pathPrefix:this.url})}denomTraces(O,k){return w.Query.DenomTraces(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}denomHash(O,k){return w.Query.DenomHash(O,{headers:k,pathPrefix:this.url})}escrowAddress(O,k){return w.Query.EscrowAddress(O,{headers:k,pathPrefix:this.url})}}},9150:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(k,S,a,t){t===void 0&&(t=a),Object.defineProperty(k,t,{enumerable:!0,get:function(){return S[a]}})}:function(k,S,a,t){t===void 0&&(t=a),k[t]=S[a]}),O=this&&this.__exportStar||function(k,S){for(var a in k)a==="default"||Object.prototype.hasOwnProperty.call(S,a)||w(S,k,a)};Object.defineProperty(e,"__esModule",{value:!0}),O(h(2076),e),O(h(298),e),O(h(8622),e),O(h(8526),e),O(h(2012),e),O(h(3394),e),O(h(380),e),O(h(3095),e),O(h(7807),e),O(h(1654),e),O(h(2840),e),O(h(1387),e),O(h(5714),e),O(h(5932),e),O(h(8513),e),O(h(4482),e),O(h(7224),e),O(h(5562),e),O(h(7174),e),O(h(1743),e),O(h(6189),e),O(h(5468),e)},5714:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MauthQuerier=void 0;const w=h(9743);e.MauthQuerier=class{constructor(O){this.url=O}interchainAccountFromAddress(O,k){return w.Query.InterchainAccountFromAddress(O,{headers:k,pathPrefix:this.url})}}},5932:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MintQuerier=void 0;const w=h(468);e.MintQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}inflation(O,k){return w.Query.Inflation(O,{headers:k,pathPrefix:this.url})}annualProvisions(O,k){return w.Query.AnnualProvisions(O,{headers:k,pathPrefix:this.url})}}},8513:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeQuerier=void 0;const w=h(4210);e.NodeQuerier=class{constructor(O){this.url=O}config(O,k){return w.Service.Config(O,{headers:k,pathPrefix:this.url})}}},4482:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ParamsQuerier=void 0;const w=h(5440);e.ParamsQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},7224:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RegistrationQuerier=void 0;const w=h(6402);e.RegistrationQuerier=class{constructor(O){this.url=O}txKey(O,k){return w.Query.TxKey(O,{headers:k,pathPrefix:this.url})}registrationKey(O,k){return w.Query.RegistrationKey(O,{headers:k,pathPrefix:this.url})}encryptedSeed(O,k){return w.Query.EncryptedSeed(O,{headers:k,pathPrefix:this.url})}}},5562:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SlashingQuerier=void 0;const w=h(1575);e.SlashingQuerier=class{constructor(O){this.url=O}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}signingInfo(O,k){return w.Query.SigningInfo(O,{headers:k,pathPrefix:this.url})}signingInfos(O,k){return w.Query.SigningInfos(O,{headers:k,pathPrefix:this.url})}}},7174:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StakingQuerier=void 0;const w=h(4066);e.StakingQuerier=class{constructor(O){this.url=O}validators(O,k){return w.Query.Validators(O,{headers:k,pathPrefix:this.url})}validator(O,k){return w.Query.Validator(O,{headers:k,pathPrefix:this.url})}validatorDelegations(O,k){return w.Query.ValidatorDelegations(O,{headers:k,pathPrefix:this.url})}validatorUnbondingDelegations(O,k){return w.Query.ValidatorUnbondingDelegations(O,{headers:k,pathPrefix:this.url})}delegation(O,k){return w.Query.Delegation(O,{headers:k,pathPrefix:this.url})}unbondingDelegation(O,k){return w.Query.UnbondingDelegation(O,{headers:k,pathPrefix:this.url})}delegatorDelegations(O,k){return w.Query.DelegatorDelegations(O,{headers:k,pathPrefix:this.url})}delegatorUnbondingDelegations(O,k){return w.Query.DelegatorUnbondingDelegations(O,{headers:k,pathPrefix:this.url})}redelegations(O,k){return w.Query.Redelegations(O,{headers:k,pathPrefix:this.url})}delegatorValidators(O,k){return w.Query.DelegatorValidators(O,{headers:k,pathPrefix:this.url})}delegatorValidator(O,k){return w.Query.DelegatorValidator(O,{headers:k,pathPrefix:this.url})}historicalInfo(O,k){return w.Query.HistoricalInfo(O,{headers:k,pathPrefix:this.url})}pool(O,k){return w.Query.Pool(O,{headers:k,pathPrefix:this.url})}params(O,k){return w.Query.Params(O,{headers:k,pathPrefix:this.url})}}},1743:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TendermintQuerier=void 0;const w=h(2390);e.TendermintQuerier=class{constructor(O){this.url=O}getNodeInfo(O,k){return w.Service.GetNodeInfo(O,{headers:k,pathPrefix:this.url})}getSyncing(O,k){return w.Service.GetSyncing(O,{headers:k,pathPrefix:this.url})}getLatestBlock(O,k){return w.Service.GetLatestBlock(O,{headers:k,pathPrefix:this.url})}getBlockByHeight(O,k){return w.Service.GetBlockByHeight(O,{headers:k,pathPrefix:this.url})}getLatestValidatorSet(O,k){return w.Service.GetLatestValidatorSet(O,{headers:k,pathPrefix:this.url})}getValidatorSetByHeight(O,k){return w.Service.GetValidatorSetByHeight(O,{headers:k,pathPrefix:this.url})}}},6189:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UpgradeQuerier=void 0;const w=h(2265);e.UpgradeQuerier=class{constructor(O){this.url=O}currentPlan(O,k){return w.Query.CurrentPlan(O,{headers:k,pathPrefix:this.url})}appliedPlan(O,k){return w.Query.AppliedPlan(O,{headers:k,pathPrefix:this.url})}upgradedConsensusState(O,k){return w.Query.UpgradedConsensusState(O,{headers:k,pathPrefix:this.url})}moduleVersions(O,k){return w.Query.ModuleVersions(O,{headers:k,pathPrefix:this.url})}}},1972:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(K,X,Q,Z){Z===void 0&&(Z=Q),Object.defineProperty(K,Z,{enumerable:!0,get:function(){return X[Q]}})}:function(K,X,Q,Z){Z===void 0&&(Z=Q),K[Z]=X[Q]}),O=this&&this.__setModuleDefault||(Object.create?function(K,X){Object.defineProperty(K,"default",{enumerable:!0,value:X})}:function(K,X){K.default=X}),k=this&&this.__importStar||function(K){if(K&&K.__esModule)return K;var X={};if(K!=null)for(var Q in K)Q!=="default"&&Object.prototype.hasOwnProperty.call(K,Q)&&w(X,K,Q);return O(X,K),X},S=this&&this.__awaiter||function(K,X,Q,Z){return new(Q||(Q=Promise))(function(se,ue){function fe(be){try{ge(Z.next(be))}catch(_e){ue(_e)}}function me(be){try{ge(Z.throw(be))}catch(_e){ue(_e)}}function ge(be){var _e;be.done?se(be.value):(_e=be.value,_e instanceof Q?_e:new Q(function(we){we(_e)})).then(fe,me)}ge((Z=Z.apply(K,X||[])).next())})};if(Object.defineProperty(e,"__esModule",{value:!0}),e.TxResultCode=e.gasToFee=e.SecretNetworkClient=e.ReadonlySigner=e.BroadcastMode=void 0,typeof window>"u"||window.fetch===void 0){const K=h(4098);h.g.fetch=K}const a=h(8972),t=h(3061),c=h(3607),u=h(8136),s=h(3117),r=h(1610),n=h(4447),o=h(7350),i=h(8471),f=h(2412),d=h(6519),p=h(9849),_=h(5818),b=h(6010),I=h(6994),l=h(4191),j=h(2896),M=h(2076),N=h(298),C=h(8622),x=h(8526),P=h(2012),v=h(5468),m=h(3394),E=h(380),B=h(3095),T=h(7807),q=h(1654),te=h(2840),re=h(5570),ie=h(5037),J=h(3635),ee=h(9637),G=h(1387),$=h(5932),W=h(4482),Y=h(7224),F=h(5562),ae=h(7174),he=h(1743),le=h(6189),ce=h(3745),ve=h(6049),de=h(8772),pe=h(5498),ye=h(5360);var V,y;(function(K){K.Block="Block",K.Sync="Sync",K.Async="Async"})(V=e.BroadcastMode||(e.BroadcastMode={}));class A{getAccounts(){throw new Error("getAccounts() is not supported in readonly mode.")}signAmino(X,Q){throw new Error("signAmino() is not supported in readonly mode.")}}function R(K){return new Promise(X=>setTimeout(X,K))}function U(K,X){return Math.ceil(K*X)}function z(K,X,Q,Z,se){return S(this,void 0,void 0,function*(){se||(se=(yield Promise.resolve().then(()=>k(h(8502)))).SignMode.SIGN_MODE_DIRECT);const ue={signer_infos:L(K,se),fee:{amount:[...X],gas_limit:String(Q),granter:Z??"",payer:""}},{AuthInfo:fe}=yield Promise.resolve().then(()=>k(h(6994)));return fe.encode(fe.fromPartial(ue)).finish()})}function L(K,X){return K.map(({pubkey:Q,sequence:Z})=>({public_key:Q,mode_info:{single:{mode:X}},sequence:String(Z)}))}function H(K){return S(this,void 0,void 0,function*(){const{Any:X}=yield Promise.resolve().then(()=>k(h(4191)));if(function(Q){return Q.type==="tendermint/PubKeySecp256k1"}(K)){const{PubKey:Q}=yield Promise.resolve().then(()=>k(h(6010))),Z=Q.fromPartial({key:(0,a.fromBase64)(K.value)});return X.fromPartial({type_url:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(Q.encode(Z).finish())})}if(function(Q){return Q.type==="tendermint/PubKeyMultisigThreshold"}(K)){const{LegacyAminoPubKey:Q}=yield Promise.resolve().then(()=>k(h(5818))),Z=Q.fromPartial({threshold:Number(K.value.threshold),public_keys:K.value.pubkeys.map(H)});return X.fromPartial({type_url:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(Q.encode(Z).finish())})}throw new Error(`Pubkey type ${K.type} not recognized`)})}function ne(K){if(typeof K!="object"||K===null)return K;if(Array.isArray(K))return K.map(ne);if(Object.keys(K).length===2&&typeof K.type_url=="string"&&typeof K.value=="object")return Object.assign({"@type":K.type_url},ne(K.value));const X={};return Object.keys(K).forEach(Q=>{X[Q]=ne(K[Q])}),X}function oe(){return{pub_key:{type:"tendermint/PubKeySecp256k1",value:(0,a.toBase64)(new Uint8Array(33).fill(0))},signature:(0,a.toBase64)(new Uint8Array(64).fill(0))}}e.ReadonlySigner=A,e.SecretNetworkClient=class{constructor(K){var X,Q;if(this.url=K.url.replace(/\/*$/g,""),this.query={auth:new M.AuthQuerier(K.url),authz:new N.AuthzQuerier(K.url),bank:new C.BankQuerier(K.url),compute:new x.ComputeQuerier(K.url),snip20:new i.Snip20Querier(K.url),snip721:new f.Snip721Querier(K.url),snip1155:new n.Snip1155Querier(K.url),distribution:new P.DistributionQuerier(K.url),evidence:new m.EvidenceQuerier(K.url),feegrant:new E.FeegrantQuerier(K.url),gov:new B.GovQuerier(K.url),ibc_channel:new T.IbcChannelQuerier(K.url),ibc_client:new q.IbcClientQuerier(K.url),ibc_connection:new te.IbcConnectionQuerier(K.url),ibc_transfer:new G.IbcTransferQuerier(K.url),ibc_iterchain_accounts_host:new J.IbcInterchainAccountsHostQuerier(K.url),ibc_iterchain_accounts_controller:new ie.IbcInterchainAccountsControllerQuerier(K.url),ibc_fee:new re.IbcFeeQuerier(K.url),ibc_packet_forward:new ee.IbcPacketForwardQuerier(K.url),emergency_button:new v.EmergencyButtonQuerier(K.url),mauth:new c.MauthQuerier(K.url),mint:new $.MintQuerier(K.url),node:new c.NodeQuerier(K.url),params:new W.ParamsQuerier(K.url),registration:new Y.RegistrationQuerier(K.url),slashing:new F.SlashingQuerier(K.url),staking:new ae.StakingQuerier(K.url),tendermint:new he.TendermintQuerier(K.url),upgrade:new le.UpgradeQuerier(K.url),getTx:(se,ue)=>this.getTx(se,ue),txsQuery:(se,ue,fe,me)=>this.txsQuery(se,ue,fe,me)},K.wallet&&K.walletAddress===void 0)throw new Error("Must also pass 'walletAddress' when passing 'wallet'");this.wallet=(X=K.wallet)!==null&&X!==void 0?X:new A,this.address=(Q=K.walletAddress)!==null&&Q!==void 0?Q:"",this.chainId=K.chainId,this.utils={accessControl:{permit:new s.PermitSigner(this.wallet)}};const Z=se=>{const ue=(fe,me)=>this.tx.broadcast([new se(fe)],me);return ue.simulate=(fe,me)=>this.tx.simulate([new se(fe)],me),ue};this.tx={signTx:this.signTx.bind(this),broadcastSignedTx:this.broadcastSignedTx.bind(this),broadcast:this.signAndBroadcast.bind(this),simulate:this.simulate.bind(this),snip20:{send:Z(i.MsgSnip20Send),transfer:Z(i.MsgSnip20Transfer),increaseAllowance:Z(i.MsgSnip20IncreaseAllowance),decreaseAllowance:Z(i.MsgSnip20DecreaseAllowance),setViewingKey:Z(r.MsgSetViewingKey),createViewingKey:Z(r.MsgCreateViewingKey)},snip721:{send:Z(f.MsgSnip721Send),mint:Z(c.MsgSnip721Mint),addMinter:Z(c.MsgSnip721AddMinter),setViewingKey:Z(r.MsgSetViewingKey),createViewingKey:Z(r.MsgCreateViewingKey)},snip1155:{changeAdmin:Z(o.MsgSnip1155ChangeAdmin),removeAdmin:Z(o.MsgSnip1155RemoveAdmin),addCurator:Z(o.MsgSnip1155AddCurator),removeCurator:Z(o.MsgSnip1155RemoveCurator),addMinter:Z(o.MsgSnipAddMinter),removeMinter:Z(o.MsgSnip1155RemoveMinter),send:Z(o.MsgSnip1155Send),batchSend:Z(o.MsgSnip1155BatchSend),transfer:Z(o.MsgSnip1155Transfer),batchTransfer:Z(o.MsgSnip1155BatchTransfer),curate:Z(o.MsgSnip1155CurateTokens),mint:Z(o.MsgSnip1155Mint),burn:Z(o.MsgSnip1155Burn),changeMetaData:Z(o.MsgSnip1155ChangeMetadata),setViewingKey:Z(r.MsgSetViewingKey),createViewingKey:Z(r.MsgCreateViewingKey)},authz:{exec:Z(c.MsgExec),grant:Z(c.MsgGrant),revoke:Z(c.MsgRevoke)},bank:{multiSend:Z(c.MsgMultiSend),send:Z(c.MsgSend)},compute:{storeCode:Z(c.MsgStoreCode),instantiateContract:Z(c.MsgInstantiateContract),executeContract:Z(c.MsgExecuteContract),migrateContract:Z(ce.MsgMigrateContract),updateAdmin:Z(ce.MsgUpdateAdmin),clearAdmin:Z(ce.MsgClearAdmin)},emergency_button:{toggleIbcSwitch:Z(ve.MsgToggleIbcSwitch)},crisis:{verifyInvariant:Z(c.MsgVerifyInvariant)},distribution:{fundCommunityPool:Z(c.MsgFundCommunityPool),setWithdrawAddress:Z(c.MsgSetWithdrawAddress),withdrawDelegatorReward:Z(c.MsgWithdrawDelegatorReward),withdrawValidatorCommission:Z(c.MsgWithdrawValidatorCommission),setAutoRestake:Z(ce.MsgSetAutoRestake)},evidence:{submitEvidence:Z(c.MsgSubmitEvidence)},feegrant:{grantAllowance:Z(c.MsgGrantAllowance),revokeAllowance:Z(c.MsgRevokeAllowance)},gov:{deposit:Z(c.MsgDeposit),submitProposal:Z(c.MsgSubmitProposal),vote:Z(c.MsgVote),voteWeighted:Z(c.MsgVoteWeighted)},ibc:{transfer:Z(c.MsgTransfer)},ibc_fee:{payPacketFee:Z(ce.MsgPayPacketFee),payPacketFeeAsync:Z(ce.MsgPayPacketFeeAsync),registerPayee:Z(ce.MsgRegisterPayee),registerCounterpartyPayee:Z(ce.MsgRegisterCounterpartyPayee)},registration:{register:Z(de.RaAuthenticate)},slashing:{unjail:Z(c.MsgUnjail)},staking:{beginRedelegate:Z(c.MsgBeginRedelegate),createValidator:Z(c.MsgCreateValidator),delegate:Z(c.MsgDelegate),editValidator:Z(c.MsgEditValidator),undelegate:Z(c.MsgUndelegate)},vesting:{createVestingAccount:Z(pe.MsgCreateVestingAccount)}},K.encryptionUtils?this.encryptionUtils=K.encryptionUtils:this.encryptionUtils=new u.EncryptionUtilsImpl(this.url,K.encryptionSeed,this.chainId),this.query.compute=new x.ComputeQuerier(this.url,this.encryptionUtils)}getTx(K,X){var Q;return S(this,void 0,void 0,function*(){try{const{tx_response:Z}=yield d.Service.GetTx({hash:K},{pathPrefix:this.url});return Z?this.decodeTxResponse(Z,X):null}catch(Z){if(typeof(Z==null?void 0:Z.message)=="string"&&(!((Q=Z==null?void 0:Z.message)===null||Q===void 0)&&Q.includes(`tx not found: ${K}`)))return null;throw Z}})}txsQuery(K,X={resolveResponses:!1},Q={key:void 0,offset:void 0,limit:void 0,count_total:void 0,reverse:void 0},Z){return S(this,void 0,void 0,function*(){const{tx_responses:se}=yield d.Service.GetTxsEvent({events:K.split(" AND ").map(ue=>ue.trim()),pagination:Q,order_by:Z},{pathPrefix:this.url});return this.decodeTxResponses(se??[],X)})}waitForIbcResponse(K,X,Q,Z,se){return S(this,void 0,void 0,function*(){return new Promise((ue,fe)=>S(this,void 0,void 0,function*(){let me=Z.resolveResponsesTimeoutMs/Z.resolveResponsesCheckIntervalMs,ge=Q;Q==="ack"&&(ge="acknowledge");const be=[`${ge}_packet.packet_src_channel = '${X}'`,`${ge}_packet.packet_sequence = '${K}'`].join(" AND ");for(;me>0&&!se.isDone;){const _e=(yield this.txsQuery(be)).find(we=>we.code===0);_e&&(se.isDone=!0,ue({type:Q,tx:_e})),me--,yield R(Z.resolveResponsesCheckIntervalMs)}fe(`timed-out while trying to resolve IBC ${Q} tx for packet_src_channel='${X}' and packet_sequence='${K}'`)}))})}decodeTxResponses(K,X){return S(this,void 0,void 0,function*(){return yield Promise.all(K.map(Q=>this.decodeTxResponse(Q,X)))})}decodeTxResponse(K,X){var Q,Z,se,ue;return S(this,void 0,void 0,function*(){let fe;fe=X?{resolveResponses:typeof X.resolveResponses!="boolean"||X.resolveResponses,resolveResponsesTimeoutMs:typeof X.resolveResponsesTimeoutMs=="number"?X.resolveResponsesTimeoutMs:12e4,resolveResponsesCheckIntervalMs:typeof X.resolveResponsesCheckIntervalMs=="number"?X.resolveResponsesCheckIntervalMs:15e3}:{resolveResponses:!0,resolveResponsesTimeoutMs:12e4,resolveResponsesCheckIntervalMs:15e3};const me=[],ge=K.tx;for(let ke=0;!isNaN(Number((Z=(Q=ge==null?void 0:ge.body)===null||Q===void 0?void 0:Q.messages)===null||Z===void 0?void 0:Z.length))&&keOe.type==="send_packet"&&Oe.key==="packet_sequence"))||[],Re=(_e==null?void 0:_e.filter(Oe=>Oe.type==="send_packet"&&Oe.key==="packet_src_channel"))||[];if(fe.resolveResponses)for(let Oe=0;Oe<(ke==null?void 0:ke.length);Oe++){const Pe={isDone:!1};Ee.push(Promise.race([this.waitForIbcResponse(ke[Oe].value,Re[Oe].value,"ack",fe,Pe),this.waitForIbcResponse(ke[Oe].value,Re[Oe].value,"timeout",fe,Pe)]))}}return{height:Number(K.height),timestamp:K.timestamp,transactionHash:K.txhash,code:K.code,codespace:K.codespace,info:K.info,tx:ge,rawLog:we,jsonLog:be,arrayLog:_e,events:K.events,data:Se,gasUsed:Number(K.gas_used),gasWanted:Number(K.gas_wanted),ibcResponses:Ee}})}broadcastTx(K,X,Q,Z,se,ue){var fe,me,ge,be,_e,we;return S(this,void 0,void 0,function*(){const Ee=Date.now(),xe=(0,a.toHex)((0,t.sha256)(K)).toUpperCase();let Se;if(se||Z!=V.Block||(Z=V.Sync),Z===V.Block){se=!0;const{BroadcastMode:ke}=yield Promise.resolve().then(()=>k(h(6519)));let Re=!1;try{({tx_response:Se}=yield d.Service.BroadcastTx({txBytes:(0,a.toBase64)(K),mode:ke.BROADCAST_MODE_BLOCK},{pathPrefix:this.url}))}catch(Oe){if(!JSON.stringify(Oe).toLowerCase().includes("timed out waiting for tx to be included in a block"))throw new Error(`Failed to broadcast transaction ID ${xe}: '${JSON.stringify(Oe)}'.`);Re=!0}if(!Re){Se.tx=(yield Promise.resolve().then(()=>k(h(6994)))).Tx.toJSON((yield Promise.resolve().then(()=>k(h(6994)))).Tx.decode(K));const Oe=Se.tx,Pe=Me=>{if(Me.type_url==="/cosmos.crypto.multisig.LegacyAminoPubKey"){const Ae=_.LegacyAminoPubKey.decode((0,a.fromBase64)(Me.value));for(let Ne=0;Ne(Me.public_key=Pe(Me.public_key),Me));for(let Me=0;!isNaN(Number((be=(ge=Oe.body)===null||ge===void 0?void 0:ge.messages)===null||be===void 0?void 0:be.length))&&Mek(h(6519)));if({tx_response:Se}=yield d.Service.BroadcastTx({txBytes:(0,a.toBase64)(K),mode:ke.BROADCAST_MODE_SYNC},{pathPrefix:this.url}),(Se==null?void 0:Se.code)!==0)throw new Error(`Broadcasting transaction failed with code ${Se==null?void 0:Se.code} (codespace: ${Se==null?void 0:Se.codespace}). Log: ${Se==null?void 0:Se.raw_log}`)}else{if(Z!==V.Async)throw new Error(`Unknown broadcast mode "${String(Z)}", must be either "${String(V.Block)}", "${String(V.Sync)}" or "${String(V.Async)}".`);{const{BroadcastMode:ke}=yield Promise.resolve().then(()=>k(h(6519)));d.Service.BroadcastTx({txBytes:(0,a.toBase64)(K),mode:ke.BROADCAST_MODE_ASYNC},{pathPrefix:this.url})}}if(!se)return{transactionHash:xe};for(yield R(Q/2);;){const ke=yield this.getTx(xe,ue);if(ke)return ke;if(Ee+Xbe.address===this.address);if(!me)throw new Error("Failed to retrieve account from signer");let ge;if(Z)ge=Z;else{const{account:be}=yield this.query.auth.account({address:this.address});if(!be)throw new Error(`Cannot find account "${this.address}", make sure it has a balance.`);let _e;if(be["@type"]==="/cosmos.auth.v1beta1.BaseAccount")_e=be;else if(be["@type"]==="/cosmos.vesting.v1beta1.ContinuousVestingAccount")_e=(ue=be.base_vesting_account)===null||ue===void 0?void 0:ue.base_account;else if(be["@type"]==="/cosmos.vesting.v1beta1.DelayedVestingAccount")_e=(fe=be.base_vesting_account)===null||fe===void 0?void 0:fe.base_account;else{if(be["@type"]!=="/cosmos.auth.v1beta1.ModuleAccount")throw new Error(`Cannot sign with account of type "${be["@type"]}".`);_e=be.base_account}if(!_e)throw new Error(`Cannot extract BaseAccount from "${JSON.stringify(be)}".`);ge={accountNumber:Number(_e.account_number),sequence:Number(_e.sequence),chainId:this.chainId}}return(0,ye.isDirectSigner)(this.wallet)?this.signDirect(me,K,X,Q,ge,se):this.signAmino(me,K,X,Q,ge,se)})}signAmino(K,X,Q,Z,{accountNumber:se,sequence:ue,chainId:fe},me=!1){return S(this,void 0,void 0,function*(){if((0,ye.isDirectSigner)(this.wallet))throw new Error("Wrong signer type! Expected AminoSigner or AminoEip191Signer.");let ge=(yield Promise.resolve().then(()=>k(h(8502)))).SignMode.SIGN_MODE_LEGACY_AMINO_JSON;typeof this.wallet.getSignMode=="function"&&(ge=yield this.wallet.getSignMode());const be=function(Pe,Me,Ae,Ne,Te,Ce){return{chain_id:Ae,account_number:String(Te),sequence:String(Ce),fee:Me,msgs:Pe,memo:Ne||""}}(yield Promise.all(X.map(Pe=>S(this,void 0,void 0,function*(){return yield this.populateCodeHash(Pe),Pe.toAmino(this.encryptionUtils)}))),Q,fe,Z,se,ue);let _e,we;me?(_e=be,we=oe()):{signature:we,signed:_e}=yield this.wallet.signAmino(K.address,be);const Ee={type_url:"/cosmos.tx.v1beta1.TxBody",value:{messages:yield Promise.all(X.map((Pe,Me)=>S(this,void 0,void 0,function*(){return yield this.populateCodeHash(Pe),yield Pe.toProto(this.encryptionUtils)}))),memo:Z}},xe=yield this.encodeTx(Ee),Se=Number(_e.fee.gas),ke=Number(_e.sequence),Re=yield H((0,ye.encodeSecp256k1Pubkey)(K.pubkey)),Oe=yield z([{pubkey:Re,sequence:ke}],_e.fee.amount,Se,_e.fee.granter,ge);return I.TxRaw.fromPartial({body_bytes:xe,auth_info_bytes:Oe,signatures:[(0,a.fromBase64)(we.signature)]})})}populateCodeHash(K){return S(this,void 0,void 0,function*(){K instanceof c.MsgExecuteContract?K.codeHash||(K.codeHash=(yield this.query.compute.codeHashByContractAddress({contract_address:K.contractAddress})).code_hash):(K instanceof c.MsgInstantiateContract||K instanceof ce.MsgMigrateContract)&&(K.codeHash||(K.codeHash=(yield this.query.compute.codeHashByCodeId({code_id:K.codeId})).code_hash))})}encodeTx(K){return S(this,void 0,void 0,function*(){const X=yield Promise.all(K.value.messages.map(Z=>S(this,void 0,void 0,function*(){const se=yield Z.encode();return l.Any.fromPartial({type_url:Z.type_url,value:se})}))),Q=I.TxBody.fromPartial(Object.assign(Object.assign({},K.value),{messages:X}));return I.TxBody.encode(Q).finish()})}signDirect(K,X,Q,Z,{accountNumber:se,sequence:ue,chainId:fe},me=!1){return S(this,void 0,void 0,function*(){if(!(0,ye.isDirectSigner)(this.wallet))throw new Error("Wrong signer type! Expected DirectSigner.");const ge={type_url:"/cosmos.tx.v1beta1.TxBody",value:{messages:yield Promise.all(X.map((ke,Re)=>S(this,void 0,void 0,function*(){return yield this.populateCodeHash(ke),yield ke.toProto(this.encryptionUtils)}))),memo:Z}},be=yield this.encodeTx(ge),_e=yield H((0,ye.encodeSecp256k1Pubkey)(K.pubkey)),we=Number(Q.gas),Ee=function(ke,Re,Oe,Pe){return{body_bytes:ke,auth_info_bytes:Re,chain_id:Oe,account_number:String(Pe),bodyBytes:ke,authInfoBytes:Re,chainId:Oe,accountNumber:String(Pe)}}(be,yield z([{pubkey:_e,sequence:ue}],Q.amount,we,Q.granter),fe,se);let xe,Se;if(me?(xe=Ee,Se=oe()):{signature:Se,signed:xe}=yield this.wallet.signDirect(K.address,Ee),(0,ye.isSignDoc)(xe))return I.TxRaw.fromPartial({body_bytes:xe.body_bytes,auth_info_bytes:xe.auth_info_bytes,signatures:[(0,a.fromBase64)(Se.signature)]});if((0,ye.isSignDocCamelCase)(xe))return I.TxRaw.fromPartial({body_bytes:xe.bodyBytes,auth_info_bytes:xe.authInfoBytes,signatures:[(0,a.fromBase64)(Se.signature)]});throw new Error(`unknown SignDoc instance: ${JSON.stringify(xe)}`)})}},e.gasToFee=U,function(K){K[K.Success=0]="Success",K[K.ErrInternal=1]="ErrInternal",K[K.ErrTxDecode=2]="ErrTxDecode",K[K.ErrInvalidSequence=3]="ErrInvalidSequence",K[K.ErrUnauthorized=4]="ErrUnauthorized",K[K.ErrInsufficientFunds=5]="ErrInsufficientFunds",K[K.ErrUnknownRequest=6]="ErrUnknownRequest",K[K.ErrInvalidAddress=7]="ErrInvalidAddress",K[K.ErrInvalidPubKey=8]="ErrInvalidPubKey",K[K.ErrUnknownAddress=9]="ErrUnknownAddress",K[K.ErrInvalidCoins=10]="ErrInvalidCoins",K[K.ErrOutOfGas=11]="ErrOutOfGas",K[K.ErrMemoTooLarge=12]="ErrMemoTooLarge",K[K.ErrInsufficientFee=13]="ErrInsufficientFee",K[K.ErrTooManySignatures=14]="ErrTooManySignatures",K[K.ErrNoSignatures=15]="ErrNoSignatures",K[K.ErrJSONMarshal=16]="ErrJSONMarshal",K[K.ErrJSONUnmarshal=17]="ErrJSONUnmarshal",K[K.ErrInvalidRequest=18]="ErrInvalidRequest",K[K.ErrTxInMempoolCache=19]="ErrTxInMempoolCache",K[K.ErrMempoolIsFull=20]="ErrMempoolIsFull",K[K.ErrTxTooLarge=21]="ErrTxTooLarge",K[K.ErrKeyNotFound=22]="ErrKeyNotFound",K[K.ErrWrongPassword=23]="ErrWrongPassword",K[K.ErrorInvalidSigner=24]="ErrorInvalidSigner",K[K.ErrorInvalidGasAdjustment=25]="ErrorInvalidGasAdjustment",K[K.ErrInvalidHeight=26]="ErrInvalidHeight",K[K.ErrInvalidVersion=27]="ErrInvalidVersion",K[K.ErrInvalidChainID=28]="ErrInvalidChainID",K[K.ErrInvalidType=29]="ErrInvalidType",K[K.ErrTxTimeoutHeight=30]="ErrTxTimeoutHeight",K[K.ErrUnknownExtensionOptions=31]="ErrUnknownExtensionOptions",K[K.ErrWrongSequence=32]="ErrWrongSequence",K[K.ErrPackAny=33]="ErrPackAny",K[K.ErrUnpackAny=34]="ErrUnpackAny",K[K.ErrLogic=35]="ErrLogic",K[K.ErrConflict=36]="ErrConflict",K[K.ErrNotSupported=37]="ErrNotSupported",K[K.ErrNotFound=38]="ErrNotFound",K[K.ErrIO=39]="ErrIO",K[K.ErrAppConfig=40]="ErrAppConfig",K[K.ErrPanic=111222]="ErrPanic"}(y=e.TxResultCode||(e.TxResultCode={}))},2132:function(D,e,h){var w=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(d,p){function _(l){try{I(f.next(l))}catch(j){p(j)}}function b(l){try{I(f.throw(l))}catch(j){p(j)}}function I(l){var j;l.done?d(l.value):(j=l.value,j instanceof i?j:new i(function(M){M(j)})).then(_,b)}I((f=f.apply(n,o||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRevoke=e.MsgExec=e.MsgGrant=e.StakeAuthorizationType=e.MsgGrantAuthorization=void 0;const O=h(9094),k=h(5635),S=h(5939),a=h(837);function t(n){return"msg"in n}function c(n){return"spend_limit"in n}function u(n){return"max_tokens"in n&&"allow_list"in n&&"deny_list"in n&&"authorization_type"in n}var s,r;(r=e.MsgGrantAuthorization||(e.MsgGrantAuthorization={})).MsgAcknowledgement="/ibc.core.channel.v1.MsgAcknowledgement",r.MsgBeginRedelegate="/cosmos.staking.v1beta1.MsgBeginRedelegate",r.MsgChannelCloseConfirm="/ibc.core.channel.v1.MsgChannelCloseConfirm",r.MsgChannelCloseInit="/ibc.core.channel.v1.MsgChannelCloseInit",r.MsgChannelOpenAck="/ibc.core.channel.v1.MsgChannelOpenAck",r.MsgChannelOpenConfirm="/ibc.core.channel.v1.MsgChannelOpenConfirm",r.MsgChannelOpenInit="/ibc.core.channel.v1.MsgChannelOpenInit",r.MsgChannelOpenTry="/ibc.core.channel.v1.MsgChannelOpenTry",r.MsgConnectionOpenAck="/ibc.core.connection.v1.MsgConnectionOpenAck",r.MsgConnectionOpenConfirm="/ibc.core.connection.v1.MsgConnectionOpenConfirm",r.MsgConnectionOpenInit="/ibc.core.connection.v1.MsgConnectionOpenInit",r.MsgConnectionOpenTry="/ibc.core.connection.v1.MsgConnectionOpenTry",r.MsgCreateClient="/ibc.core.client.v1.MsgCreateClient",r.MsgCreateValidator="/cosmos.staking.v1beta1.MsgCreateValidator",r.MsgDelegate="/cosmos.staking.v1beta1.MsgDelegate",r.MsgDeposit="/cosmos.gov.v1beta1.MsgDeposit",r.MsgEditValidator="/cosmos.staking.v1beta1.MsgEditValidator",r.MsgExec="/cosmos.authz.v1beta1.MsgExec",r.MsgExecuteContract="/secret.compute.v1beta1.MsgExecuteContract",r.MsgFundCommunityPool="/cosmos.distribution.v1beta1.MsgFundCommunityPool",r.MsgGrant="/cosmos.authz.v1beta1.MsgGrant",r.MsgGrantAllowance="/cosmos.feegrant.v1beta1.MsgGrantAllowance",r.MsgInstantiateContract="/secret.compute.v1beta1.MsgInstantiateContract",r.MsgMultiSend="/cosmos.bank.v1beta1.MsgMultiSend",r.MsgRecvPacket="/ibc.core.channel.v1.MsgRecvPacket",r.MsgRevoke="/cosmos.authz.v1beta1.MsgRevoke",r.MsgRevokeAllowance="/cosmos.feegrant.v1beta1.MsgRevokeAllowance",r.MsgSend="/cosmos.bank.v1beta1.MsgSend",r.MsgSetWithdrawAddress="/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",r.MsgStoreCode="/secret.compute.v1beta1.MsgStoreCode",r.MsgSubmitEvidence="/cosmos.evidence.v1beta1.MsgSubmitEvidence",r.MsgSubmitMisbehaviour="/ibc.core.client.v1.MsgSubmitMisbehaviour",r.MsgSubmitProposal="/cosmos.gov.v1beta1.MsgSubmitProposal",r.MsgTimeout="/ibc.core.channel.v1.MsgTimeout",r.MsgTimeoutOnClose="/ibc.core.channel.v1.MsgTimeoutOnClose",r.MsgTransfer="/ibc.applications.transfer.v1.MsgTransfer",r.MsgUndelegate="/cosmos.staking.v1beta1.MsgUndelegate",r.MsgUnjail="/cosmos.slashing.v1beta1.MsgUnjail",r.MsgUpdateClient="/ibc.core.client.v1.MsgUpdateClient",r.MsgUpgradeClient="/ibc.core.client.v1.MsgUpgradeClient",r.MsgVerifyInvariant="/cosmos.crisis.v1beta1.MsgVerifyInvariant",r.MsgVote="/cosmos.gov.v1beta1.MsgVote",r.MsgVoteWeighted="/cosmos.gov.v1beta1.MsgVoteWeighted",r.MsgWithdrawDelegatorReward="/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",r.MsgWithdrawValidatorCommission="/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",(s=e.StakeAuthorizationType||(e.StakeAuthorizationType={}))[s.Delegate=1]="Delegate",s[s.Undelegate=2]="Undelegate",s[s.Redelegate=3]="Redelegate",e.MsgGrant=class{constructor(n){this.params=n}toProto(){var n,o;return w(this,void 0,void 0,function*(){let i;const f={seconds:String(Math.floor(this.params.expiration)),nanos:0};if(c(this.params.authorization))i={authorization:{type_url:"/cosmos.bank.v1beta1.SendAuthorization",value:S.SendAuthorization.encode(this.params.authorization).finish()},expiration:f};else if(u(this.params.authorization)){let p,_;((n=this.params.authorization.allow_list)===null||n===void 0?void 0:n.length)>0?p={address:this.params.authorization.allow_list}:((o=this.params.authorization.deny_list)===null||o===void 0?void 0:o.length)>0&&(_={address:this.params.authorization.deny_list}),i={authorization:{type_url:"/cosmos.staking.v1beta1.StakeAuthorization",value:a.StakeAuthorization.encode({max_tokens:this.params.authorization.max_tokens,allow_list:p,deny_list:_,authorization_type:Number(this.params.authorization.authorization_type)}).finish()},expiration:f}}else{if(!t(this.params.authorization))throw new Error("Unknown authorization type.");i={authorization:{type_url:"/cosmos.authz.v1beta1.GenericAuthorization",value:O.GenericAuthorization.encode({msg:String(this.params.authorization.msg)}).finish()},expiration:f}}const d={granter:this.params.granter,grantee:this.params.grantee,grant:i};return{type_url:"/cosmos.authz.v1beta1.MsgGrant",value:d,encode:()=>w(this,void 0,void 0,function*(){return k.MsgGrant.encode(d).finish()})}})}toAmino(){var n,o;return w(this,void 0,void 0,function*(){let i={type:"cosmos-sdk/MsgGrant",value:{granter:this.params.granter,grantee:this.params.grantee,grant:{authorization:{},expiration:new Date(1e3*Math.floor(this.params.expiration)).toISOString().replace(/\.\d+Z/,"Z")}}};if(c(this.params.authorization))i.value.grant.authorization={type:"cosmos-sdk/SendAuthorization",value:{spend_limit:this.params.authorization.spend_limit}};else if(u(this.params.authorization)){let f;if(((n=this.params.authorization.allow_list)===null||n===void 0?void 0:n.length)>0)f={type:"cosmos-sdk/StakeAuthorization/AllowList",value:{allow_list:{address:this.params.authorization.allow_list}}};else{if(!(((o=this.params.authorization.deny_list)===null||o===void 0?void 0:o.length)>0))throw new Error("Must pass in allow_list or deny_list.");f={type:"cosmos-sdk/StakeAuthorization/DenyList",value:{deny_list:{address:this.params.authorization.deny_list}}}}i.value.grant.authorization={type:"cosmos-sdk/StakeAuthorization",value:{max_tokens:this.params.authorization.max_tokens,authorization_type:this.params.authorization.authorization_type,Validators:f}}}else{if(!t(this.params.authorization))throw new Error("Unknown authorization type.");i.value.grant.authorization={type:"cosmos-sdk/GenericAuthorization",value:{msg:this.params.authorization.msg}}}return i})}},e.MsgExec=class{constructor(n){this.params=n}toProto(n){return w(this,void 0,void 0,function*(){const o=[];for(const f of this.params.msgs){const d=yield f.toProto(n);o.push({type_url:d.type_url,value:yield d.encode()})}const i={grantee:this.params.grantee,msgs:o};return{type_url:"/cosmos.authz.v1beta1.MsgExec",value:i,encode:()=>w(this,void 0,void 0,function*(){return k.MsgExec.encode(i).finish()})}})}toAmino(n){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgExec",value:{grantee:this.params.grantee,msgs:yield Promise.all(this.params.msgs.map(o=>o.toAmino(n)))}}})}},e.MsgRevoke=class{constructor(n){this.params=n}toProto(){return w(this,void 0,void 0,function*(){const n={granter:this.params.granter,grantee:this.params.grantee,msg_type_url:String(this.params.msg)};return{type_url:"/cosmos.authz.v1beta1.MsgRevoke",value:n,encode:()=>w(this,void 0,void 0,function*(){return k.MsgRevoke.encode(n).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRevoke",value:{granter:this.params.granter,grantee:this.params.grantee,msg_type_url:String(this.params.msg)}}})}}},587:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgMultiSend=e.MsgSend=void 0,e.MsgSend=class{constructor({from_address:a,to_address:t,amount:c}){this.from_address=a,this.to_address=t,this.amount=c}toProto(){return S(this,void 0,void 0,function*(){const a={from_address:this.from_address,to_address:this.to_address,amount:this.amount};return{type_url:"/cosmos.bank.v1beta1.MsgSend",value:a,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(810)))).MsgSend.encode(a).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgSend",value:{from_address:this.from_address,to_address:this.to_address,amount:this.amount}}})}},e.MsgMultiSend=class{constructor({inputs:a,outputs:t}){this.inputs=a,this.outputs=t}toProto(){return S(this,void 0,void 0,function*(){const a={inputs:this.inputs,outputs:this.outputs};return{type_url:"/cosmos.bank.v1beta1.MsgMultiSend",value:a,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(810)))).MsgMultiSend.encode(a).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgMultiSend",value:{inputs:this.inputs,outputs:this.outputs}}})}}},7278:function(D,e,h){var w=h(5108),O=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),k=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),S=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&O(r,s,n);return k(r,s),r},a=this&&this.__awaiter||function(s,r,n,o){return new(n||(n=Promise))(function(i,f){function d(b){try{_(o.next(b))}catch(I){f(I)}}function p(b){try{_(o.throw(b))}catch(I){f(I)}}function _(b){var I;b.done?i(b.value):(I=b.value,I instanceof n?I:new n(function(l){l(I)})).then(d,p)}_((o=o.apply(s,r||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgClearAdmin=e.MsgUpdateAdmin=e.MsgMigrateContract=e.MsgStoreCode=e.MsgExecuteContract=e.MsgInstantiateContract=e.getMissingCodeHashWarning=void 0;const t=h(8972),c=h(8593);function u(s){return`${new Date().toISOString()} WARNING: ${s} was used without the "code_hash" parameter. This is discouraged and will result in much slower execution times for your app.`}e.getMissingCodeHashWarning=u,e.MsgInstantiateContract=class{constructor({sender:s,code_id:r,label:n,init_msg:o,init_funds:i,code_hash:f,admin:d}){this.warnCodeHash=!1,this.sender=s,this.codeId=String(r),this.label=n,this.initMsg=o,this.initMsgEncrypted=null,this.initFunds=i??[],this.admin=d??"",f?this.codeHash=f.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,w.warn(u("MsgInstantiateContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&w.warn(u("MsgInstantiateContract")),this.initMsgEncrypted||(this.initMsgEncrypted=yield s.encrypt(this.codeHash,this.initMsg));const r={sender:(0,c.addressToBytes)(this.sender),code_id:this.codeId,label:this.label,init_msg:this.initMsgEncrypted,init_funds:this.initFunds,callback_sig:new Uint8Array(0),callback_code_hash:"",admin:this.admin};return{type_url:"/secret.compute.v1beta1.MsgInstantiateContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(h(2896)))).MsgInstantiateContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&w.warn(u("MsgInstantiateContract")),this.initMsgEncrypted||(this.initMsgEncrypted=yield s.encrypt(this.codeHash,this.initMsg)),{type:"wasm/MsgInstantiateContract",value:{sender:this.sender,code_id:this.codeId,label:this.label,init_msg:(0,t.toBase64)(this.initMsgEncrypted),init_funds:this.initFunds,admin:this.admin.length>0?this.admin:void 0}}})}},e.MsgExecuteContract=class{constructor({sender:s,contract_address:r,msg:n,sent_funds:o,code_hash:i}){this.warnCodeHash=!1,this.sender=s,this.contractAddress=r,this.msg=n,this.msgEncrypted=null,this.sentFunds=o??[],i?this.codeHash=i.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,w.warn(u("MsgExecuteContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&w.warn(u("MsgExecuteContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg));const r={sender:(0,c.addressToBytes)(this.sender),contract:(0,c.addressToBytes)(this.contractAddress),msg:this.msgEncrypted,sent_funds:this.sentFunds,callback_sig:new Uint8Array,callback_code_hash:""};return{type_url:"/secret.compute.v1beta1.MsgExecuteContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(h(2896)))).MsgExecuteContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&w.warn(u("MsgExecuteContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg)),{type:"wasm/MsgExecuteContract",value:{sender:this.sender,contract:this.contractAddress,msg:(0,t.toBase64)(this.msgEncrypted),sent_funds:this.sentFunds}}})}},e.MsgStoreCode=class{constructor({sender:s,wasm_byte_code:r,source:n,builder:o}){this.sender=s,this.source=n,this.builder=o,this.wasmByteCode=r}gzipWasm(){return a(this,void 0,void 0,function*(){if(!(0,c.is_gzip)(this.wasmByteCode)){const s=yield Promise.resolve().then(()=>S(h(9591)));this.wasmByteCode=s.gzip(this.wasmByteCode,{level:9})}})}toProto(){return a(this,void 0,void 0,function*(){yield this.gzipWasm();const s={sender:(0,c.addressToBytes)(this.sender),wasm_byte_code:this.wasmByteCode,source:this.source,builder:this.builder};return{type_url:"/secret.compute.v1beta1.MsgStoreCode",value:s,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(h(2896)))).MsgStoreCode.encode(s).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return yield this.gzipWasm(),{type:"wasm/MsgStoreCode",value:{sender:this.sender,wasm_byte_code:(0,t.toBase64)(this.wasmByteCode),source:this.source.length>0?this.source:void 0,builder:this.builder.length>0?this.builder:void 0}}})}},e.MsgMigrateContract=class{constructor({sender:s,contract_address:r,msg:n,code_id:o,code_hash:i}){this.warnCodeHash=!1,this.sender=s,this.contractAddress=r,this.msg=n,this.msgEncrypted=null,this.codeId=String(o),i?this.codeHash=i.replace(/^0x/,"").toLowerCase():(this.codeHash="",this.warnCodeHash=!0,w.warn(u("MsgMigrateContract")))}toProto(s){return a(this,void 0,void 0,function*(){this.warnCodeHash&&w.warn(u("MsgMigrateContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg));const r={sender:this.sender,contract:this.contractAddress,msg:this.msgEncrypted,code_id:this.codeId,callback_sig:new Uint8Array,callback_code_hash:""};return{type_url:"/secret.compute.v1beta1.MsgMigrateContract",value:r,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(h(2896)))).MsgMigrateContract.encode(r).finish()})}})}toAmino(s){return a(this,void 0,void 0,function*(){return this.warnCodeHash&&w.warn(u("MsgMigrateContract")),this.msgEncrypted||(this.msgEncrypted=yield s.encrypt(this.codeHash,this.msg)),{type:"wasm/MsgMigrateContract",value:{sender:this.sender,contract:this.contractAddress,msg:(0,t.toBase64)(this.msgEncrypted),code_id:this.codeId}}})}},e.MsgUpdateAdmin=class{constructor(s){this.params=s}toProto(){return a(this,void 0,void 0,function*(){return{type_url:"/secret.compute.v1beta1.MsgUpdateAdmin",value:this.params,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(h(2896)))).MsgUpdateAdmin.encode({sender:this.params.sender,new_admin:this.params.new_admin,contract:this.params.contract_address,callback_sig:new Uint8Array}).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return{type:"wasm/MsgUpdateAdmin",value:{sender:this.params.sender,new_admin:this.params.new_admin,contract:this.params.contract_address}}})}},e.MsgClearAdmin=class{constructor(s){this.params=s}toProto(){return a(this,void 0,void 0,function*(){return{type_url:"/secret.compute.v1beta1.MsgClearAdmin",value:this.params,encode:()=>a(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>S(h(2896)))).MsgClearAdmin.encode({sender:this.params.sender,contract:this.params.contract_address,callback_sig:new Uint8Array}).finish()})}})}toAmino(){return a(this,void 0,void 0,function*(){return{type:"wasm/MsgClearAdmin",value:{sender:this.params.sender,contract:this.params.contract_address}}})}}},7949:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgVerifyInvariant=void 0,e.MsgVerifyInvariant=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.crisis.v1beta1.MsgVerifyInvariant",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(4489)))).MsgVerifyInvariant.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVerifyInvariant",value:{sender:this.params.sender||void 0,invariant_module_name:this.params.invariant_module_name||void 0,invariant_route:this.params.invariant_route||void 0}}})}}},1890:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(p){try{d(r.next(p))}catch(_){o(_)}}function f(p){try{d(r.throw(p))}catch(_){o(_)}}function d(p){var _;p.done?n(p.value):(_=p.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSetAutoRestake=e.MsgFundCommunityPool=e.MsgWithdrawValidatorCommission=e.MsgWithdrawDelegatorReward=e.MsgWithdrawDelegationReward=e.MsgModifyWithdrawAddress=e.MsgSetWithdrawAddress=void 0;class a{constructor(u){this.params=u}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(4301)))).MsgSetWithdrawAddress.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgModifyWithdrawAddress",value:this.params}})}}e.MsgSetWithdrawAddress=a,e.MsgModifyWithdrawAddress=a;class t{constructor(u){this.params=u}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(4301)))).MsgWithdrawDelegatorReward.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgWithdrawDelegationReward",value:this.params}})}}e.MsgWithdrawDelegatorReward=t,e.MsgWithdrawDelegationReward=t,e.MsgWithdrawValidatorCommission=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(4301)))).MsgWithdrawValidatorCommission.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgWithdrawValidatorCommission",value:this.params}})}},e.MsgFundCommunityPool=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgFundCommunityPool",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(4301)))).MsgFundCommunityPool.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgFundCommunityPool",value:this.params}})}},e.MsgSetAutoRestake=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.distribution.v1beta1.MsgSetAutoRestake",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(4301)))).MsgSetAutoRestake.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgSetAutoRestake",value:Object.assign({},this.params,{enabled:!!this.params.enabled||void 0})}})}}},6049:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgToggleIbcSwitch=void 0,e.MsgToggleIbcSwitch=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(4657)))).MsgToggleIbcSwitch.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"emergencybutton/MsgToggleIbcSwitch",value:this.params}})}}},3651:function(D,e){var h=this&&this.__awaiter||function(w,O,k,S){return new(k||(k=Promise))(function(a,t){function c(r){try{s(S.next(r))}catch(n){t(n)}}function u(r){try{s(S.throw(r))}catch(n){t(n)}}function s(r){var n;r.done?a(r.value):(n=r.value,n instanceof k?n:new k(function(o){o(n)})).then(c,u)}s((S=S.apply(w,O||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgSubmitEvidence=void 0,e.MsgSubmitEvidence=class{constructor(w){this.params=w}toProto(){return h(this,void 0,void 0,function*(){throw new Error("MsgSubmitEvidence not implemented.")})}toAmino(){return h(this,void 0,void 0,function*(){throw new Error("MsgSubmitEvidence not implemented.")})}}},8434:function(D,e,h){var w=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(p){try{d(r.next(p))}catch(_){o(_)}}function f(p){try{d(r.throw(p))}catch(_){o(_)}}function d(p){var _;p.done?n(p.value):(_=p.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRevokeAllowance=e.MsgGrantAllowance=void 0;const O=h(4932),k=h(6513);function S(c){return"spend_limit"in c}function a(c){return"period_spend_limit"in c}function t(c){return"allowed_messages"in c}e.MsgGrantAllowance=class{constructor(c){this.params=c}toProto(){return w(this,void 0,void 0,function*(){let c;if(S(this.params.allowance))c={type_url:"/cosmos.feegrant.v1beta1.BasicAllowance",value:O.BasicAllowance.encode(this.params.allowance).finish()};else if(a(this.params.allowance))c={type_url:"/cosmos.feegrant.v1beta1.PeriodicAllowance",value:O.PeriodicAllowance.encode(this.params.allowance).finish()};else{if(!t(this.params.allowance))throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`);{let u;if(S(this.params.allowance.allowance))u={type_url:"/cosmos.feegrant.v1beta1.BasicAllowance",value:O.BasicAllowance.encode(this.params.allowance.allowance).finish()};else{if(!a(this.params.allowance.allowance))throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`);u={type_url:"/cosmos.feegrant.v1beta1.PeriodicAllowance",value:O.PeriodicAllowance.encode(this.params.allowance.allowance).finish()}}c={type_url:"/cosmos.feegrant.v1beta1.AllowedMsgAllowance",value:O.AllowedMsgAllowance.encode({allowed_messages:this.params.allowance.allowed_messages,allowance:u}).finish()}}}return{type_url:"/cosmos.feegrant.v1beta1.MsgGrantAllowance",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return k.MsgGrantAllowance.encode({grantee:this.params.grantee,granter:this.params.granter,allowance:c}).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){let c;if(S(this.params.allowance))c={type:"cosmos-sdk/BasicAllowance",value:{spend_limit:this.params.allowance.spend_limit,expiration:this.params.allowance.expiration}};else if(a(this.params.allowance))c={type:"cosmos-sdk/PeriodicAllowance",value:{basic:this.params.allowance.basic,period:this.params.allowance.period,period_spend_limit:this.params.allowance.period_spend_limit,period_can_spend:this.params.allowance.period_can_spend,period_reset:this.params.allowance.period_reset}};else{if(!t(this.params.allowance))throw new Error(`Cannot cast allowance into 'BasicAllowance', 'PeriodicAllowance' or 'AllowedMsgAllowance': ${JSON.stringify(this.params.allowance)}`);{let u;if(S(this.params.allowance.allowance))u={type:"cosmos-sdk/BasicAllowance",value:{spend_limit:this.params.allowance.allowance.spend_limit,expiration:this.params.allowance.allowance.expiration}};else{if(!a(this.params.allowance.allowance))throw new Error(`PeriodicAllowance: Cannot cast allowance into 'BasicAllowance' or 'PeriodicAllowance': ${JSON.stringify(this.params.allowance.allowance)}`);u={type:"cosmos-sdk/PeriodicAllowance",value:{basic:this.params.allowance.allowance.basic,period:this.params.allowance.allowance.period,period_spend_limit:this.params.allowance.allowance.period_spend_limit,period_can_spend:this.params.allowance.allowance.period_can_spend,period_reset:this.params.allowance.allowance.period_reset}}}c={type:"cosmos-sdk/AllowedMsgAllowance",value:{allowed_messages:this.params.allowance.allowed_messages,allowance:u}}}}return{type:"cosmos-sdk/MsgGrantAllowance",value:{granter:this.params.granter,grantee:this.params.grantee,allowance:c}}})}},e.MsgRevokeAllowance=class{constructor(c){this.params=c}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/cosmos.feegrant.v1beta1.MsgRevokeAllowance",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return k.MsgRevokeAllowance.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRevokeAllowance",value:this.params}})}}},4509:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(o,i,f,d){d===void 0&&(d=f),Object.defineProperty(o,d,{enumerable:!0,get:function(){return i[f]}})}:function(o,i,f,d){d===void 0&&(d=f),o[d]=i[f]}),O=this&&this.__setModuleDefault||(Object.create?function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}:function(o,i){o.default=i}),k=this&&this.__importStar||function(o){if(o&&o.__esModule)return o;var i={};if(o!=null)for(var f in o)f!=="default"&&Object.prototype.hasOwnProperty.call(o,f)&&w(i,o,f);return O(i,o),i},S=this&&this.__awaiter||function(o,i,f,d){return new(f||(f=Promise))(function(p,_){function b(j){try{l(d.next(j))}catch(M){_(M)}}function I(j){try{l(d.throw(j))}catch(M){_(M)}}function l(j){var M;j.done?p(j.value):(M=j.value,M instanceof f?M:new f(function(N){N(M)})).then(b,I)}l((d=d.apply(o,i||[])).next())})},a=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgDeposit=e.MsgVoteWeighted=e.MsgVote=e.MsgSubmitProposal=e.ProposalType=e.ProposalStatus=e.VoteOption=void 0;const t=a(h(4431)),c=h(4191);var u,s,r;(r=e.VoteOption||(e.VoteOption={}))[r.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",r[r.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",r[r.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",r[r.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",r[r.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",(s=e.ProposalStatus||(e.ProposalStatus={}))[s.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",s[s.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",s[s.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",s[s.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",s[s.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",s[s.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",s[s.UNRECOGNIZED=-1]="UNRECOGNIZED",function(o){o.TextProposal="TextProposal",o.CommunityPoolSpendProposal="CommunityPoolSpendProposal",o.ParameterChangeProposal="ParameterChangeProposal",o.ClientUpdateProposal="ClientUpdateProposal",o.UpgradeProposal="UpgradeProposal",o.SoftwareUpgradeProposal="SoftwareUpgradeProposal",o.CancelSoftwareUpgradeProposal="CancelSoftwareUpgradeProposal"}(u=e.ProposalType||(e.ProposalType={}));const n=new Map([[u.TextProposal,"cosmos-sdk/TextProposal"],[u.CommunityPoolSpendProposal,"cosmos-sdk/CommunityPoolSpendProposal"],[u.ParameterChangeProposal,"cosmos-sdk/ParameterChangeProposal"],[u.SoftwareUpgradeProposal,"cosmos-sdk/SoftwareUpgradeProposal"],[u.CancelSoftwareUpgradeProposal,"cosmos-sdk/CancelSoftwareUpgradeProposal"]]);e.MsgSubmitProposal=class{constructor(o){this.params=o}toProto(){var o;return S(this,void 0,void 0,function*(){let i;switch(this.params.type){case u.TextProposal:const{TextProposal:d}=yield Promise.resolve().then(()=>k(h(9074)));i=c.Any.fromPartial({type_url:"/cosmos.gov.v1beta1.TextProposal",value:d.encode(d.fromPartial(this.params.content)).finish()});break;case u.CommunityPoolSpendProposal:const{CommunityPoolSpendProposal:p}=yield Promise.resolve().then(()=>k(h(8866)));i=c.Any.fromPartial({type_url:"/cosmos.distribution.v1beta1.CommunityPoolSpendProposal",value:p.encode(p.fromPartial(this.params.content)).finish()});break;case u.ParameterChangeProposal:const{ParameterChangeProposal:_}=yield Promise.resolve().then(()=>k(h(9913)));i=c.Any.fromPartial({type_url:"/cosmos.params.v1beta1.ParameterChangeProposal",value:_.encode(_.fromPartial(this.params.content)).finish()});break;case u.ClientUpdateProposal:const{ClientUpdateProposal:b}=yield Promise.resolve().then(()=>k(h(5650)));i=c.Any.fromPartial({type_url:"/ibc.core.client.v1.ClientUpdateProposal",value:b.encode(b.fromPartial(this.params.content)).finish()});break;case u.UpgradeProposal:const{UpgradeProposal:I}=yield Promise.resolve().then(()=>k(h(5650)));i=c.Any.fromPartial({type_url:"/ibc.core.client.v1.UpgradeProposal",value:I.encode(I.fromPartial(this.params.content)).finish()});break;case u.SoftwareUpgradeProposal:const{SoftwareUpgradeProposal:l}=yield Promise.resolve().then(()=>k(h(8310)));i=c.Any.fromPartial({type_url:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",value:l.encode(l.fromPartial(this.params.content)).finish()});break;case u.CancelSoftwareUpgradeProposal:const{CancelSoftwareUpgradeProposal:j}=yield Promise.resolve().then(()=>k(h(8310)));i=c.Any.fromPartial({type_url:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",value:j.encode(j.fromPartial(this.params.content)).finish()});break;default:throw new Error(`Unknown proposal type: "${this.params.type}" - ${JSON.stringify(this.params.content)}`)}const f={content:i,initial_deposit:this.params.initial_deposit,proposer:this.params.proposer,is_expedited:(o=this.params.is_expedited)!==null&&o!==void 0&&o};return{type_url:"/cosmos.gov.v1beta1.MsgSubmitProposal",value:f,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(88)))).MsgSubmitProposal.encode(f).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){const o=n.get(this.params.type);if(!o)throw new Error(`Proposal of type "${String(this.params.type)}" is not supported with an Amino signer.`);let i=this.params.content;return this.params.type===u.SoftwareUpgradeProposal&&i.plan&&(i=Object.assign(Object.assign({},i),{plan:Object.assign(Object.assign({},i.plan),{time:"0001-01-01T00:00:00Z"})})),{type:"cosmos-sdk/MsgSubmitProposal",value:{content:{type:o,value:i},initial_deposit:this.params.initial_deposit,proposer:this.params.proposer,is_expedited:!!this.params.is_expedited||void 0}}})}},e.MsgVote=class{constructor(o){this.params=o}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.gov.v1beta1.MsgVote",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(88)))).MsgVote.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVote",value:this.params}})}},e.MsgVoteWeighted=class{constructor(o){this.params=o}toProto(){return S(this,void 0,void 0,function*(){const o={voter:this.params.voter,proposal_id:this.params.proposal_id,options:this.params.options.map(i=>({option:i.option,weight:new t.default(i.weight).toFixed(18).replace(/0\.0*/,"")}))};return{type_url:"/cosmos.gov.v1beta1.MsgVoteWeighted",value:o,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(88)))).MsgVoteWeighted.encode(o).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgVoteWeighted",value:{voter:this.params.voter,proposal_id:this.params.proposal_id,options:this.params.options.map(o=>({option:o.option,weight:new t.default(o.weight).toFixed(18)}))}}})}},e.MsgDeposit=class{constructor(o){this.params=o}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.gov.v1beta1.MsgDeposit",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(88)))).MsgDeposit.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgDeposit",value:this.params}})}}},6130:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgChannelCloseConfirm=e.MsgChannelCloseInit=e.MsgChannelOpenConfirm=e.MsgChannelOpenAck=e.MsgChannelOpenTry=e.MsgAcknowledgement=e.MsgChannelOpenInit=e.MsgTimeoutOnClose=e.MsgTimeout=e.MsgRecvPacket=void 0,e.MsgRecvPacket=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgRecvPacket",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgRecvPacket.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgRecvPacket doesn't support Amino encoding.")})}},e.MsgTimeout=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgTimeout",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgTimeout.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgTimeout doesn't support Amino encoding.")})}},e.MsgTimeoutOnClose=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgTimeoutOnClose.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgTimeoutOnClose doesn't support Amino encoding.")})}},e.MsgChannelOpenInit=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenInit",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgChannelOpenInit.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenInit doesn't support Amino encoding.")})}},e.MsgAcknowledgement=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgAcknowledgement",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgAcknowledgement.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgAcknowledgement doesn't support Amino encoding.")})}},e.MsgChannelOpenTry=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenTry",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgChannelOpenTry.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenTry doesn't support Amino encoding.")})}},e.MsgChannelOpenAck=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenAck",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgChannelOpenAck.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenAck doesn't support Amino encoding.")})}},e.MsgChannelOpenConfirm=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgChannelOpenConfirm.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelOpenConfirm doesn't support Amino encoding.")})}},e.MsgChannelCloseInit=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelCloseInit",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgChannelCloseInit.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelCloseInit doesn't support Amino encoding.")})}},e.MsgChannelCloseConfirm=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7579)))).MsgChannelCloseConfirm.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgChannelCloseConfirm doesn't support Amino encoding.")})}}},574:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateClient=e.MsgSubmitMisbehaviour=e.MsgUpgradeClient=e.MsgUpdateClient=void 0,e.MsgUpdateClient=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgUpdateClient",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(322)))).MsgUpdateClient.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgUpdateClient doesn't support Amino encoding.")})}},e.MsgUpgradeClient=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgUpgradeClient",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(322)))).MsgUpgradeClient.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgUpgradeClient doesn't support Amino encoding.")})}},e.MsgSubmitMisbehaviour=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgSubmitMisbehaviour",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(322)))).MsgSubmitMisbehaviour.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgSubmitMisbehaviour doesn't support Amino encoding.")})}},e.MsgCreateClient=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.client.v1.MsgCreateClient",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(322)))).MsgCreateClient.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgCreateClient doesn't support Amino encoding.")})}}},6187:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgConnectionOpenConfirm=e.MsgConnectionOpenAck=e.MsgConnectionOpenTry=e.MsgConnectionOpenInit=void 0,e.MsgConnectionOpenInit=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(8344)))).MsgConnectionOpenInit.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenInit doesn't support Amino encoding.")})}},e.MsgConnectionOpenTry=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(8344)))).MsgConnectionOpenTry.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenTry doesn't support Amino encoding.")})}},e.MsgConnectionOpenAck=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(8344)))).MsgConnectionOpenAck.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenAck doesn't support Amino encoding.")})}},e.MsgConnectionOpenConfirm=class{constructor(a){this.msg=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:this.msg,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(8344)))).MsgConnectionOpenConfirm.encode(this.msg).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgConnectionOpenConfirm doesn't support Amino encoding.")})}}},7989:function(D,e,h){var w=this&&this.__awaiter||function(k,S,a,t){return new(a||(a=Promise))(function(c,u){function s(o){try{n(t.next(o))}catch(i){u(i)}}function r(o){try{n(t.throw(o))}catch(i){u(i)}}function n(o){var i;o.done?c(o.value):(i=o.value,i instanceof a?i:new a(function(f){f(i)})).then(s,r)}n((t=t.apply(k,S||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgPayPacketFeeAsync=e.MsgPayPacketFee=e.MsgRegisterCounterpartyPayee=e.MsgRegisterPayee=void 0;const O=h(6065);e.MsgRegisterPayee=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgRegisterPayee",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgRegisterPayee.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRegisterPayee",value:this.params}})}},e.MsgRegisterCounterpartyPayee=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgRegisterCounterpartyPayee.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgRegisterCounterpartyPayee",value:this.params}})}},e.MsgPayPacketFee=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgPayPacketFee",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgPayPacketFee.encode({fee:this.params.fee,source_port_id:this.params.source_port_id,source_channel_id:this.params.source_channel_id,signer:this.params.signer,relayers:this.params.relayers||[]}).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgPayPacketFee",value:this.params}})}},e.MsgPayPacketFeeAsync=class{constructor(k){this.params=k}toProto(){return w(this,void 0,void 0,function*(){return{type_url:"/ibc.applications.fee.v1.MsgPayPacketFeeAsync",value:this.params,encode:()=>w(this,void 0,void 0,function*(){return O.MsgPayPacketFeeAsync.encode(this.params).finish()})}})}toAmino(){return w(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgPayPacketFeeAsync",value:this.params}})}}},6272:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgTransfer=void 0,e.MsgTransfer=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){const a={source_port:this.params.source_port,source_channel:this.params.source_channel,token:this.params.token,sender:this.params.sender,receiver:this.params.receiver,timeout_height:this.params.timeout_height,timeout_timestamp:this.params.timeout_timestamp?`${this.params.timeout_timestamp}000000000`:"0",memo:this.params.memo||""};return{type_url:"/ibc.applications.transfer.v1.MsgTransfer",value:a,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(865)))).MsgTransfer.encode(a).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgTransfer",value:{source_port:this.params.source_port,source_channel:this.params.source_channel,token:this.params.token,sender:this.params.sender,receiver:this.params.receiver,timeout_height:this.params.timeout_height?{revision_number:this.params.timeout_height.revision_number,revision_height:this.params.timeout_height.revision_height}:{},timeout_timestamp:this.params.timeout_timestamp?`${this.params.timeout_timestamp}000000000`:"0",memo:this.params.memo}}})}}},3745:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(j,M,N,C){C===void 0&&(C=N),Object.defineProperty(j,C,{enumerable:!0,get:function(){return M[N]}})}:function(j,M,N,C){C===void 0&&(C=N),j[C]=M[N]}),O=this&&this.__exportStar||function(j,M){for(var N in j)N==="default"||Object.prototype.hasOwnProperty.call(M,N)||w(M,j,N)};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRegistry=void 0;const k=h(5635),S=h(810),a=h(4489),t=h(4301),c=h(3676),u=h(6513),s=h(88),r=h(5925),n=h(7704),o=h(8644),i=h(6065),f=h(865),d=h(7579),p=h(322),_=h(8344),b=h(2896),I=h(4657),l=h(1901);O(h(2132),e),O(h(587),e),O(h(7278),e),O(h(7949),e),O(h(1890),e),O(h(6049),e),O(h(3651),e),O(h(8434),e),O(h(4509),e),O(h(6130),e),O(h(574),e),O(h(6187),e),O(h(7989),e),O(h(6272),e),O(h(5656),e),O(h(2731),e),O(h(8382),e),O(h(5498),e),e.MsgRegistry=new Map([["/cosmos.authz.v1beta1.MsgGrant",k.MsgGrant],["/cosmos.authz.v1beta1.MsgExec",k.MsgExec],["/cosmos.authz.v1beta1.MsgRevoke",k.MsgRevoke],["/cosmos.bank.v1beta1.MsgSend",S.MsgSend],["/cosmos.bank.v1beta1.MsgMultiSend",S.MsgMultiSend],["/cosmos.crisis.v1beta1.MsgVerifyInvariant",a.MsgVerifyInvariant],["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress",t.MsgSetWithdrawAddress],["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",t.MsgWithdrawDelegatorReward],["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission",t.MsgWithdrawValidatorCommission],["/cosmos.distribution.v1beta1.MsgFundCommunityPool",t.MsgFundCommunityPool],["/cosmos.distribution.v1beta1.MsgSetAutoRestake",t.MsgSetAutoRestake],["/cosmos.evidence.v1beta1.MsgSubmitEvidence",c.MsgSubmitEvidence],["/cosmos.feegrant.v1beta1.MsgGrantAllowance",u.MsgGrantAllowance],["/cosmos.feegrant.v1beta1.MsgRevokeAllowance",u.MsgRevokeAllowance],["/cosmos.gov.v1beta1.MsgSubmitProposal",s.MsgSubmitProposal],["/cosmos.gov.v1beta1.MsgVote",s.MsgVote],["/cosmos.gov.v1beta1.MsgVoteWeighted",s.MsgVoteWeighted],["/cosmos.gov.v1beta1.MsgDeposit",s.MsgDeposit],["/cosmos.slashing.v1beta1.MsgUnjail",r.MsgUnjail],["/cosmos.staking.v1beta1.MsgCreateValidator",n.MsgCreateValidator],["/cosmos.staking.v1beta1.MsgEditValidator",n.MsgEditValidator],["/cosmos.staking.v1beta1.MsgDelegate",n.MsgDelegate],["/cosmos.staking.v1beta1.MsgBeginRedelegate",n.MsgBeginRedelegate],["/cosmos.staking.v1beta1.MsgUndelegate",n.MsgUndelegate],["/ibc.applications.transfer.v1.MsgTransfer",f.MsgTransfer],["/ibc.applications.fee.v1.MsgPayPacketFee",i.MsgPayPacketFee],["/ibc.applications.fee.v1.MsgPayPacketFeeAsync",i.MsgPayPacketFeeAsync],["/ibc.applications.fee.v1.MsgRegisterPayee",i.MsgRegisterPayee],["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee",i.MsgRegisterCounterpartyPayee],["/ibc.core.channel.v1.MsgChannelOpenInit",d.MsgChannelOpenInit],["/ibc.core.channel.v1.MsgChannelOpenTry",d.MsgChannelOpenTry],["/ibc.core.channel.v1.MsgChannelOpenAck",d.MsgChannelOpenAck],["/ibc.core.channel.v1.MsgChannelOpenConfirm",d.MsgChannelOpenConfirm],["/ibc.core.channel.v1.MsgChannelCloseInit",d.MsgChannelCloseInit],["/ibc.core.channel.v1.MsgChannelCloseConfirm",d.MsgChannelCloseConfirm],["/ibc.core.channel.v1.MsgRecvPacket",d.MsgRecvPacket],["/ibc.core.channel.v1.MsgTimeout",d.MsgTimeout],["/ibc.core.channel.v1.MsgTimeoutOnClose",d.MsgTimeoutOnClose],["/ibc.core.channel.v1.MsgAcknowledgement",d.MsgAcknowledgement],["/ibc.core.client.v1.MsgCreateClient",p.MsgCreateClient],["/ibc.core.client.v1.MsgUpdateClient",p.MsgUpdateClient],["/ibc.core.client.v1.MsgUpgradeClient",p.MsgUpgradeClient],["/ibc.core.client.v1.MsgSubmitMisbehaviour",p.MsgSubmitMisbehaviour],["/ibc.core.connection.v1.MsgConnectionOpenInit",_.MsgConnectionOpenInit],["/ibc.core.connection.v1.MsgConnectionOpenTry",_.MsgConnectionOpenTry],["/ibc.core.connection.v1.MsgConnectionOpenAck",_.MsgConnectionOpenAck],["/ibc.core.connection.v1.MsgConnectionOpenConfirm",_.MsgConnectionOpenConfirm],["/secret.compute.v1beta1.MsgStoreCode",b.MsgStoreCode],["/secret.compute.v1beta1.MsgInstantiateContract",b.MsgInstantiateContract],["/secret.compute.v1beta1.MsgExecuteContract",b.MsgExecuteContract],["/secret.compute.v1beta1.MsgMigrateContract",b.MsgMigrateContract],["/secret.compute.v1beta1.MsgUpdateAdmin",b.MsgUpdateAdmin],["/secret.compute.v1beta1.MsgClearAdmin",b.MsgClearAdmin],["/secret.registration.v1beta1.RaAuthenticate",l.RaAuthenticate],["/cosmos.vesting.v1beta1.MsgCreateVestingAccount",o.MsgCreateVestingAccount],["/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch",I.MsgToggleIbcSwitch]])},8772:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(c,u,s,r){r===void 0&&(r=s),Object.defineProperty(c,r,{enumerable:!0,get:function(){return u[s]}})}:function(c,u,s,r){r===void 0&&(r=s),c[r]=u[s]}),O=this&&this.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),k=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var s in c)s!=="default"&&Object.prototype.hasOwnProperty.call(c,s)&&w(u,c,s);return O(u,c),u},S=this&&this.__awaiter||function(c,u,s,r){return new(s||(s=Promise))(function(n,o){function i(p){try{d(r.next(p))}catch(_){o(_)}}function f(p){try{d(r.throw(p))}catch(_){o(_)}}function d(p){var _;p.done?n(p.value):(_=p.value,_ instanceof s?_:new s(function(b){b(_)})).then(i,f)}d((r=r.apply(c,u||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.RaAuthenticate=void 0;const a=h(8972),t=h(3607);e.RaAuthenticate=class{constructor(c){this.params=c}toProto(){return S(this,void 0,void 0,function*(){const c={sender:(0,t.addressToBytes)(this.params.sender),certificate:this.params.certificate};return{type_url:"/secret.registration.v1beta1.RaAuthenticate",value:c,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(1901)))).RaAuthenticate.encode(c).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"reg/authenticate",value:{sender:this.params.sender,ra_cert:(0,a.toBase64)(this.params.certificate)}}})}}},5656:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgUnjail=void 0,e.MsgUnjail=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.slashing.v1beta1.MsgUnjail",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(5925)))).MsgUnjail.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgUnjail",value:{address:this.params.validator_addr}}})}}},2731:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(d,p){function _(l){try{I(f.next(l))}catch(j){p(j)}}function b(l){try{I(f.throw(l))}catch(j){p(j)}}function I(l){var j;l.done?d(l.value):(j=l.value,j instanceof i?j:new i(function(M){M(j)})).then(_,b)}I((f=f.apply(n,o||[])).next())})},a=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgUndelegate=e.MsgBeginRedelegate=e.MsgDelegate=e.MsgEditValidator=e.MsgCreateValidator=void 0;const t=h(8972),c=h(7715),u=a(h(4431)),s=h(7776),r=h(4191);e.MsgCreateValidator=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){const n={description:this.params.description,commission:{rate:new u.default(this.params.commission.rate).toFixed(18).replace(/0\.0*/,""),max_rate:new u.default(this.params.commission.max_rate).toFixed(18).replace(/0\.0*/,""),max_change_rate:new u.default(this.params.commission.max_change_rate).toFixed(18).replace(/0\.0*/,"")},min_self_delegation:this.params.min_self_delegation,delegator_address:this.params.delegator_address,validator_address:c.bech32.encode("secretvaloper",c.bech32.decode(this.params.delegator_address).words),pubkey:r.Any.fromPartial({type_url:"/cosmos.crypto.ed25519.PubKey",value:s.PubKey.encode(s.PubKey.fromPartial({key:(0,t.fromBase64)(this.params.pubkey)})).finish()}),value:this.params.initial_delegation};return{type_url:"/cosmos.staking.v1beta1.MsgCreateValidator",value:n,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7704)))).MsgCreateValidator.encode(n).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgCreateValidator",value:{description:{moniker:this.params.description.moniker,identity:this.params.description.identity,website:this.params.description.website,security_contact:this.params.description.security_contact,details:this.params.description.details},commission:{rate:new u.default(this.params.commission.rate).toFixed(18),max_rate:new u.default(this.params.commission.max_rate).toFixed(18),max_change_rate:new u.default(this.params.commission.max_change_rate).toFixed(18)},min_self_delegation:this.params.min_self_delegation,delegator_address:this.params.delegator_address,validator_address:c.bech32.encode("secretvaloper",c.bech32.decode(this.params.delegator_address).words),pubkey:{type:"tendermint/PubKeyEd25519",value:this.params.pubkey},value:this.params.initial_delegation}}})}},e.MsgEditValidator=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){const{Description:n}=yield Promise.resolve().then(()=>k(h(2572))),o={validator_address:this.params.validator_address,description:n.fromPartial(this.params.description||{}),commission_rate:this.params.commission_rate?new u.default(this.params.commission_rate).toFixed(18).replace(/0\.0*/,""):"",min_self_delegation:this.params.min_self_delegation||""};return{type_url:"/cosmos.staking.v1beta1.MsgEditValidator",value:o,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7704)))).MsgEditValidator.encode(o).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){let n,o;return this.params.description&&(n={moniker:this.params.description.moniker,identity:this.params.description.identity,website:this.params.description.website,security_contact:this.params.description.security_contact,details:this.params.description.details}),this.params.commission_rate&&(o=new u.default(this.params.commission_rate).toFixed(18)),{type:"cosmos-sdk/MsgEditValidator",value:{validator_address:this.params.validator_address,description:n,commission_rate:o,min_self_delegation:this.params.min_self_delegation}}})}},e.MsgDelegate=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgDelegate",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7704)))).MsgDelegate.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgDelegate",value:this.params}})}},e.MsgBeginRedelegate=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7704)))).MsgBeginRedelegate.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgBeginRedelegate",value:this.params}})}},e.MsgUndelegate=class{constructor(n){this.params=n}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.staking.v1beta1.MsgUndelegate",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(7704)))).MsgUndelegate.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){return{type:"cosmos-sdk/MsgUndelegate",value:this.params}})}}},8382:(D,e)=>{Object.defineProperty(e,"__esModule",{value:!0})},5498:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(a,t,c,u){u===void 0&&(u=c),Object.defineProperty(a,u,{enumerable:!0,get:function(){return t[c]}})}:function(a,t,c,u){u===void 0&&(u=c),a[u]=t[c]}),O=this&&this.__setModuleDefault||(Object.create?function(a,t){Object.defineProperty(a,"default",{enumerable:!0,value:t})}:function(a,t){a.default=t}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var c in a)c!=="default"&&Object.prototype.hasOwnProperty.call(a,c)&&w(t,a,c);return O(t,a),t},S=this&&this.__awaiter||function(a,t,c,u){return new(c||(c=Promise))(function(s,r){function n(f){try{i(u.next(f))}catch(d){r(d)}}function o(f){try{i(u.throw(f))}catch(d){r(d)}}function i(f){var d;f.done?s(f.value):(d=f.value,d instanceof c?d:new c(function(p){p(d)})).then(n,o)}i((u=u.apply(a,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgCreateVestingAccount=void 0,e.MsgCreateVestingAccount=class{constructor(a){this.params=a}toProto(){return S(this,void 0,void 0,function*(){return{type_url:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",value:this.params,encode:()=>S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(8644)))).MsgCreateVestingAccount.encode(this.params).finish()})}})}toAmino(){return S(this,void 0,void 0,function*(){throw new Error("MsgCreateVestingAccount not implemented.")})}}},8593:(D,e,h)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.bytesToAddress=e.addressToBytes=e.validateAddress=e.coinsFromString=e.stringToCoins=e.coinFromString=e.stringToCoin=e.ibcDenom=e.base64TendermintPubkeyToValconsAddress=e.tendermintPubkeyToValconsAddress=e.validatorAddressToSelfDelegatorAddress=e.selfDelegatorAddressToValidatorAddress=e.base64PubkeyToAddress=e.pubkeyToAddress=e.is_gzip=void 0;const w=h(8972),O=h(830),k=h(3061),S=h(7715);function a(c,u="secret"){return S.bech32.encode(u,S.bech32.toWords((0,O.ripemd160)((0,k.sha256)(c))))}function t(c,u="secret"){return S.bech32.encode(`${u}valcons`,S.bech32.toWords((0,k.sha256)(c).slice(0,20)))}e.is_gzip=c=>!(!c||c.length<3)&&c[0]===31&&c[1]===139&&c[2]===8,e.pubkeyToAddress=a,e.base64PubkeyToAddress=function(c,u="secret"){return a((0,w.fromBase64)(c),u)},e.selfDelegatorAddressToValidatorAddress=function(c,u="secret"){return S.bech32.encode(`${u}valoper`,S.bech32.decode(c).words)},e.validatorAddressToSelfDelegatorAddress=function(c,u="secret"){return S.bech32.encode(u,S.bech32.decode(c).words)},e.tendermintPubkeyToValconsAddress=t,e.base64TendermintPubkeyToValconsAddress=function(c,u="secret"){return t((0,w.fromBase64)(c),u)},e.ibcDenom=(c,u)=>{const s=[];for(const n of c)s.push(`${n.incomingPortId}/${n.incomingChannelId}`);const r=`${s.join("/")}/${u}`;return"ibc/"+(0,w.toHex)((0,k.sha256)((0,w.toUtf8)(r))).toUpperCase()},e.stringToCoin=c=>{const u=c.match(/^(\d+)([a-z]+)$/);if(u===null)throw new Error(`cannot extract denom & amount from '${c}'`);return{amount:u[1],denom:u[2]}},e.coinFromString=e.stringToCoin,e.stringToCoins=c=>c.split(",").map(e.stringToCoin),e.coinsFromString=e.stringToCoins,e.validateAddress=(c,u="secret")=>{let s;try{s=S.bech32.decode(c)}catch(n){let o="failed to decode address as a bech32";return n instanceof Error&&(o+=`: ${n.message}`),{isValid:!1,reason:o}}if(s.prefix!==u)return{isValid:!1,reason:`wrong bech32 prefix, expected '${u}', got '${s.prefix}'`};const r=S.bech32.fromWords(s.words);return r.length!==20&&r.length!==32?{isValid:!1,reason:`wrong address length, expected 20 or 32 bytes, got ${r.length}`}:{isValid:!0}},e.addressToBytes=function(c){return c===""?new Uint8Array(0):Uint8Array.from(S.bech32.fromWords(S.bech32.decode(c).words))},e.bytesToAddress=function(c,u="secret"){return c.length===0?"":S.bech32.encode(u,S.bech32.toWords(c))}},5360:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(d,p,_,b){b===void 0&&(b=_),Object.defineProperty(d,b,{enumerable:!0,get:function(){return p[_]}})}:function(d,p,_,b){b===void 0&&(b=_),d[b]=p[_]}),O=this&&this.__setModuleDefault||(Object.create?function(d,p){Object.defineProperty(d,"default",{enumerable:!0,value:p})}:function(d,p){d.default=p}),k=this&&this.__importStar||function(d){if(d&&d.__esModule)return d;var p={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&w(p,d,_);return O(p,d),p},S=this&&this.__awaiter||function(d,p,_,b){return new(_||(_=Promise))(function(I,l){function j(C){try{N(b.next(C))}catch(x){l(x)}}function M(C){try{N(b.throw(C))}catch(x){l(x)}}function N(C){var x;C.done?I(C.value):(x=C.value,x instanceof _?x:new _(function(P){P(x)})).then(j,M)}N((b=b.apply(d,p||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.isDirectSigner=e.isSignDocCamelCase=e.isSignDoc=e.serializeStdSignDoc=e.sortObject=e.encodeSecp256k1Pubkey=e.encodeSecp256k1Signature=e.AminoWallet=e.SECRET_BECH32_PREFIX=e.SECRET_COIN_TYPE=void 0;const a=h(8972),t=h(3061),c=k(h(9656)),u=k(h(7786)),s=k(h(2153)),r=h(3607);function n(d,p){if(p.length!==64)throw new 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:o(d),signature:(0,a.toBase64)(p)}}function o(d){if(d.length!==33||d[0]!==2&&d[0]!==3)throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:"tendermint/PubKeySecp256k1",value:(0,a.toBase64)(d)}}function i(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return d.map(i);const p=Object.keys(d).sort(),_={};return p.forEach(b=>{_[b]=i(d[b])}),_}function f(d){return(0,a.toUtf8)((p=d,JSON.stringify(i(p))));var p}e.SECRET_COIN_TYPE=529,e.SECRET_BECH32_PREFIX="secret",e.AminoWallet=class{constructor(d="",p={}){var _,b,I;d===""&&(d=s.generateMnemonic(256)),this.mnemonic=d,this.hdAccountIndex=(_=p.hdAccountIndex)!==null&&_!==void 0?_:0,this.coinType=(b=p.coinType)!==null&&b!==void 0?b:e.SECRET_COIN_TYPE,this.bech32Prefix=(I=p.bech32Prefix)!==null&&I!==void 0?I:e.SECRET_BECH32_PREFIX;const l=s.mnemonicToSeedSync(this.mnemonic),j=u.fromSeed(l).derivePath(`m/44'/${this.coinType}'/0'/0/${this.hdAccountIndex}`).privateKey;if(!j)throw new Error("Failed to derive key pair");this.privateKey=new Uint8Array(j),this.publicKey=c.getPublicKey(this.privateKey,!0),this.address=(0,r.pubkeyToAddress)(this.publicKey,this.bech32Prefix)}getAccounts(){return S(this,void 0,void 0,function*(){return[{address:this.address,algo:"secp256k1",pubkey:this.publicKey}]})}signAmino(d,p){return S(this,void 0,void 0,function*(){if(d!==this.address)throw new Error(`Address ${d} not found in wallet`);const _=(0,t.sha256)(f(p)),b=yield c.sign(_,this.privateKey,{extraEntropy:!0,der:!1});return{signed:p,signature:n(this.publicKey,b)}})}},e.encodeSecp256k1Signature=n,e.encodeSecp256k1Pubkey=o,e.sortObject=i,e.serializeStdSignDoc=f,e.isSignDoc=function(d){return"body_bytes"in d&&"auth_info_bytes"in d&&"chain_id"in d&&"account_number"in d},e.isSignDocCamelCase=function(d){return"bodyBytes"in d&&"authInfoBytes"in d&&"chainId"in d&&"accountNumber"in d},e.isDirectSigner=function(d){return d.signDirect!==void 0}},1444:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(n,o,i,f){f===void 0&&(f=i),Object.defineProperty(n,f,{enumerable:!0,get:function(){return o[i]}})}:function(n,o,i,f){f===void 0&&(f=i),n[f]=o[i]}),O=this&&this.__setModuleDefault||(Object.create?function(n,o){Object.defineProperty(n,"default",{enumerable:!0,value:o})}:function(n,o){n.default=o}),k=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var o={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&w(o,n,i);return O(o,n),o},S=this&&this.__awaiter||function(n,o,i,f){return new(i||(i=Promise))(function(d,p){function _(l){try{I(f.next(l))}catch(j){p(j)}}function b(l){try{I(f.throw(l))}catch(j){p(j)}}function I(l){var j;l.done?d(l.value):(j=l.value,j instanceof i?j:new i(function(M){M(j)})).then(_,b)}I((f=f.apply(n,o||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.MetaMaskWallet=void 0;const a=h(5426),t=k(h(9656)),c=h(3061),u=h(3607),s=h(5360);class r{constructor(o,i,f){this.ethProvider=o,this.ethAddress=i,this.publicKey=f,this.address=(0,u.pubkeyToAddress)(this.publicKey)}static create(o,i){return S(this,void 0,void 0,function*(){const f=`secretjs_${i}_pubkey`,d=localStorage.getItem(f);if(d){const C=i.slice(2).toLocaleLowerCase();if((0,u.toHex)((0,a.keccak_256)(function(P){return t.Point.fromHex(P).toRawBytes(!1)}(d).slice(1)).slice(-20)).toLocaleLowerCase()===C)return new r(o,i,(0,u.fromHex)(d));localStorage.removeItem(f)}const p=(0,u.toUtf8)("Get secret address"),_=`0x${(0,u.toHex)(p)}`,b=(yield o.request({method:"personal_sign",params:[_,i]})).toString(),I=(0,u.fromHex)(b.slice(2,-2));let l=parseInt(b.slice(-2),16)-27;l<0&&(l+=27);const j=(0,u.toUtf8)(`Ethereum Signed Message: +`),M=(0,u.toUtf8)(String(p.length)),N=t.recoverPublicKey((0,a.keccak_256)(new Uint8Array([...j,...M,...p])),I,l,!0);return localStorage.setItem(f,(0,u.toHex)(N)),new r(o,i,N)})}getAccounts(){return S(this,void 0,void 0,function*(){return[{address:this.address,algo:"secp256k1",pubkey:this.publicKey}]})}getSignMode(){return S(this,void 0,void 0,function*(){return(yield Promise.resolve().then(()=>k(h(8502)))).SignMode.SIGN_MODE_EIP_191})}signAmino(o,i){return S(this,void 0,void 0,function*(){if(o!==(0,u.pubkeyToAddress)(this.publicKey))throw new Error(`Address ${o} not found in wallet`);const f=`0x${(0,u.toHex)(function(_){return(0,u.toUtf8)((b=_,JSON.stringify((0,s.sortObject)(b),null,4)));var b}(i))}`,d=yield this.ethProvider.request({method:"personal_sign",params:[f,this.ethAddress]}),p=(0,u.fromHex)(d.slice(2,-2));return{signed:i,signature:(0,s.encodeSecp256k1Signature)(this.publicKey,p)}})}signPermit(o,i){return S(this,void 0,void 0,function*(){if(o!==(0,u.pubkeyToAddress)(this.publicKey))throw new Error(`Address ${o} not found in wallet`);const f=(0,c.sha256)((0,s.serializeStdSignDoc)(i)),d=yield this.ethProvider.request({method:"eth_sign",params:[this.ethAddress,"0x"+(0,u.toHex)(f)]}),p=(0,u.fromHex)(d.slice(2,-2));return{signed:i,signature:(0,s.encodeSecp256k1Signature)(this.publicKey,p)}})}}e.MetaMaskWallet=r},1049:function(D,e,h){var w=this&&this.__createBinding||(Object.create?function(s,r,n,o){o===void 0&&(o=n),Object.defineProperty(s,o,{enumerable:!0,get:function(){return r[n]}})}:function(s,r,n,o){o===void 0&&(o=n),s[o]=r[n]}),O=this&&this.__setModuleDefault||(Object.create?function(s,r){Object.defineProperty(s,"default",{enumerable:!0,value:r})}:function(s,r){s.default=r}),k=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var r={};if(s!=null)for(var n in s)n!=="default"&&Object.prototype.hasOwnProperty.call(s,n)&&w(r,s,n);return O(r,s),r},S=this&&this.__awaiter||function(s,r,n,o){return new(n||(n=Promise))(function(i,f){function d(b){try{_(o.next(b))}catch(I){f(I)}}function p(b){try{_(o.throw(b))}catch(I){f(I)}}function _(b){var I;b.done?i(b.value):(I=b.value,I instanceof n?I:new n(function(l){l(I)})).then(d,p)}_((o=o.apply(s,r||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Wallet=void 0;const a=h(3061),t=k(h(9656)),c=h(5360);class u extends c.AminoWallet{signDirect(r,n){return S(this,void 0,void 0,function*(){if(r!==this.address)throw new Error(`Address ${r} not found in wallet`);const o=(0,a.sha256)(yield function({account_number:f,auth_info_bytes:d,body_bytes:p,chain_id:_}){return S(this,void 0,void 0,function*(){const{SignDoc:b}=yield Promise.resolve().then(()=>k(h(6994)));return b.encode(b.fromPartial({account_number:f,auth_info_bytes:d,body_bytes:p,chain_id:_})).finish()})}(n)),i=yield t.sign(o,this.privateKey,{extraEntropy:!0,der:!1});return{signed:n,signature:(0,c.encodeSecp256k1Signature)(this.publicKey,i)}})}}e.Wallet=u},6647:(D,e,h)=>{var w=h(247);function O(s){return s.name||s.toString().match(/function (.*?)\s*\(/)[1]}function k(s){return w.Nil(s)?"":O(s.constructor)}function S(s,r){Error.captureStackTrace&&Error.captureStackTrace(s,r)}function a(s){return w.Function(s)?s.toJSON?s.toJSON():O(s):w.Array(s)?"Array":s&&w.Object(s)?"Object":s!==void 0?s:""}function t(s,r,n){var o=function(i){return w.Function(i)?"":w.String(i)?JSON.stringify(i):i&&w.Object(i)?"":i}(r);return"Expected "+a(s)+", got"+(n!==""?" "+n:"")+(o!==""?" "+o:"")}function c(s,r,n){n=n||k(r),this.message=t(s,r,n),S(this,c),this.__type=s,this.__value=r,this.__valueTypeName=n}function u(s,r,n,o,i){s?(i=i||k(o),this.message=function(f,d,p,_,b){var I='" of type ';return d==="key"&&(I='" with key type '),t('property "'+a(p)+I+a(f),_,b)}(s,n,r,o,i)):this.message='Unexpected property "'+r+'"',S(this,c),this.__label=n,this.__property=r,this.__type=s,this.__value=o,this.__valueTypeName=i}c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,u.prototype=Object.create(Error.prototype),u.prototype.constructor=c,D.exports={TfTypeError:c,TfPropertyTypeError:u,tfCustomError:function(s,r){return new c(s,{},r)},tfSubError:function(s,r,n){return s instanceof u?(r=r+"."+s.__property,s=new u(s.__type,r,s.__label,s.__value,s.__valueTypeName)):s instanceof c&&(s=new u(s.__type,r,n,s.__value,s.__valueTypeName)),S(s),s},tfJSON:a,getValueTypeName:k}},4307:(D,e,h)=>{var w=h(8764).Buffer,O=h(247),k=h(6647);function S(f){return w.isBuffer(f)}function a(f){return typeof f=="string"&&/^([0-9a-f]{2})+$/i.test(f)}function t(f,d){var p=f.toJSON();function _(b){if(!f(b))return!1;if(b.length===d)return!0;throw k.tfCustomError(p+"(Length: "+d+")",p+"(Length: "+b.length+")")}return _.toJSON=function(){return p},_}var c=t.bind(null,O.Array),u=t.bind(null,S),s=t.bind(null,a),r=t.bind(null,O.String),n=Math.pow(2,53)-1,o={ArrayN:c,Buffer:S,BufferN:u,Finite:function(f){return typeof f=="number"&&isFinite(f)},Hex:a,HexN:s,Int8:function(f){return f<<24>>24===f},Int16:function(f){return f<<16>>16===f},Int32:function(f){return(0|f)===f},Int53:function(f){return typeof f=="number"&&f>=-n&&f<=n&&Math.floor(f)===f},Range:function(f,d,p){function _(b,I){return p(b,I)&&b>f&&b>>0===f},UInt53:function(f){return typeof f=="number"&&f>=0&&f<=n&&Math.floor(f)===f}};for(var i in o)o[i].toJSON=(function(f){return f}).bind(null,i);D.exports=o},2401:(D,e,h)=>{var w=h(6647),O=h(247),k=w.tfJSON,S=w.TfTypeError,a=w.TfPropertyTypeError,t=w.tfSubError,c=w.getValueTypeName,u={arrayOf:function(i,f){function d(p,_){return!!O.Array(p)&&!O.Nil(p)&&!(f.minLength!==void 0&&p.lengthf.maxLength)&&(f.length===void 0||p.length===f.length)&&p.every(function(b,I){try{return r(i,b,_)}catch(l){throw t(l,I)}})}return i=s(i),f=f||{},d.toJSON=function(){var p="["+k(i)+"]";return f.length!==void 0?p+="{"+f.length+"}":f.minLength===void 0&&f.maxLength===void 0||(p+="{"+(f.minLength===void 0?0:f.minLength)+","+(f.maxLength===void 0?1/0:f.maxLength)+"}"),p},d},maybe:function i(f){function d(p,_){return O.Nil(p)||f(p,_,i)}return f=s(f),d.toJSON=function(){return"?"+k(f)},d},map:function(i,f){function d(p,_){if(!O.Object(p)||O.Nil(p))return!1;for(var b in p){try{f&&r(f,b,_)}catch(l){throw t(l,b,"key")}try{var I=p[b];r(i,I,_)}catch(l){throw t(l,b)}}return!0}return i=s(i),f&&(f=s(f)),d.toJSON=f?function(){return"{"+k(f)+": "+k(i)+"}"}:function(){return"{"+k(i)+"}"},d},object:function(i){var f={};for(var d in i)f[d]=s(i[d]);function p(_,b){if(!O.Object(_)||O.Nil(_))return!1;var I;try{for(I in f)r(f[I],_[I],b)}catch(l){throw t(l,I)}if(b){for(I in _)if(!f[I])throw new a(void 0,I)}return!0}return p.toJSON=function(){return k(f)},p},anyOf:function(){var i=[].slice.call(arguments).map(s);function f(d,p){return i.some(function(_){try{return r(_,d,p)}catch{return!1}})}return f.toJSON=function(){return i.map(k).join("|")},f},allOf:function(){var i=[].slice.call(arguments).map(s);function f(d,p){return i.every(function(_){try{return r(_,d,p)}catch{return!1}})}return f.toJSON=function(){return i.map(k).join(" & ")},f},quacksLike:function(i){function f(d){return i===c(d)}return f.toJSON=function(){return i},f},tuple:function(){var i=[].slice.call(arguments).map(s);function f(d,p){return!O.Nil(d)&&!O.Nil(d.length)&&(!p||d.length===i.length)&&i.every(function(_,b){try{return r(_,d[b],p)}catch(I){throw t(I,b)}})}return f.toJSON=function(){return"("+i.map(k).join(", ")+")"},f},value:function(i){function f(d){return d===i}return f.toJSON=function(){return i},f}};function s(i){if(O.String(i))return i[0]==="?"?u.maybe(i.slice(1)):O[i]||u.quacksLike(i);if(i&&O.Object(i)){if(O.Array(i)){if(i.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return u.arrayOf(i[0])}return u.object(i)}return O.Function(i)?i:u.value(i)}function r(i,f,d,p){if(O.Function(i)){if(i(f,d))return!0;throw new S(p||i,f)}return r(s(i),f,d)}for(var n in u.oneOf=u.anyOf,O)r[n]=O[n];for(n in u)r[n]=u[n];var o=h(4307);for(n in o)r[n]=o[n];r.compile=s,r.TfTypeError=S,r.TfPropertyTypeError=a,D.exports=r},247:D=>{var e={Array:function(w){return w!=null&&w.constructor===Array},Boolean:function(w){return typeof w=="boolean"},Function:function(w){return typeof w=="function"},Nil:function(w){return w==null},Number:function(w){return typeof w=="number"},Object:function(w){return typeof w=="object"},String:function(w){return typeof w=="string"},"":function(){return!0}};for(var h in e.Null=e.Nil,e)e[h].toJSON=(function(w){return w}).bind(null,h);D.exports=e},4927:(D,e,h)=>{var w=h(5108);function O(k){try{if(!h.g.localStorage)return!1}catch{return!1}var S=h.g.localStorage[k];return S!=null&&String(S).toLowerCase()==="true"}D.exports=function(k,S){if(O("noDeprecation"))return k;var a=!1;return function(){if(!a){if(O("throwDeprecation"))throw new Error(S);O("traceDeprecation")?w.trace(S):w.warn(S),a=!0}return k.apply(this,arguments)}}},384:D=>{D.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}},5955:(D,e,h)=>{var w=h(2584),O=h(8662),k=h(6430),S=h(5692);function a(T){return T.call.bind(T)}var t=typeof BigInt<"u",c=typeof Symbol<"u",u=a(Object.prototype.toString),s=a(Number.prototype.valueOf),r=a(String.prototype.valueOf),n=a(Boolean.prototype.valueOf);if(t)var o=a(BigInt.prototype.valueOf);if(c)var i=a(Symbol.prototype.valueOf);function f(T,q){if(typeof T!="object")return!1;try{return q(T),!0}catch{return!1}}function d(T){return u(T)==="[object Map]"}function p(T){return u(T)==="[object Set]"}function _(T){return u(T)==="[object WeakMap]"}function b(T){return u(T)==="[object WeakSet]"}function I(T){return u(T)==="[object ArrayBuffer]"}function l(T){return typeof ArrayBuffer<"u"&&(I.working?I(T):T instanceof ArrayBuffer)}function j(T){return u(T)==="[object DataView]"}function M(T){return typeof DataView<"u"&&(j.working?j(T):T instanceof DataView)}e.isArgumentsObject=w,e.isGeneratorFunction=O,e.isTypedArray=S,e.isPromise=function(T){return typeof Promise<"u"&&T instanceof Promise||T!==null&&typeof T=="object"&&typeof T.then=="function"&&typeof T.catch=="function"},e.isArrayBufferView=function(T){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(T):S(T)||M(T)},e.isUint8Array=function(T){return k(T)==="Uint8Array"},e.isUint8ClampedArray=function(T){return k(T)==="Uint8ClampedArray"},e.isUint16Array=function(T){return k(T)==="Uint16Array"},e.isUint32Array=function(T){return k(T)==="Uint32Array"},e.isInt8Array=function(T){return k(T)==="Int8Array"},e.isInt16Array=function(T){return k(T)==="Int16Array"},e.isInt32Array=function(T){return k(T)==="Int32Array"},e.isFloat32Array=function(T){return k(T)==="Float32Array"},e.isFloat64Array=function(T){return k(T)==="Float64Array"},e.isBigInt64Array=function(T){return k(T)==="BigInt64Array"},e.isBigUint64Array=function(T){return k(T)==="BigUint64Array"},d.working=typeof Map<"u"&&d(new Map),e.isMap=function(T){return typeof Map<"u"&&(d.working?d(T):T instanceof Map)},p.working=typeof Set<"u"&&p(new Set),e.isSet=function(T){return typeof Set<"u"&&(p.working?p(T):T instanceof Set)},_.working=typeof WeakMap<"u"&&_(new WeakMap),e.isWeakMap=function(T){return typeof WeakMap<"u"&&(_.working?_(T):T instanceof WeakMap)},b.working=typeof WeakSet<"u"&&b(new WeakSet),e.isWeakSet=function(T){return b(T)},I.working=typeof ArrayBuffer<"u"&&I(new ArrayBuffer),e.isArrayBuffer=l,j.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&j(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=M;var N=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function C(T){return u(T)==="[object SharedArrayBuffer]"}function x(T){return N!==void 0&&(C.working===void 0&&(C.working=C(new N)),C.working?C(T):T instanceof N)}function P(T){return f(T,s)}function v(T){return f(T,r)}function m(T){return f(T,n)}function E(T){return t&&f(T,o)}function B(T){return c&&f(T,i)}e.isSharedArrayBuffer=x,e.isAsyncFunction=function(T){return u(T)==="[object AsyncFunction]"},e.isMapIterator=function(T){return u(T)==="[object Map Iterator]"},e.isSetIterator=function(T){return u(T)==="[object Set Iterator]"},e.isGeneratorObject=function(T){return u(T)==="[object Generator]"},e.isWebAssemblyCompiledModule=function(T){return u(T)==="[object WebAssembly.Module]"},e.isNumberObject=P,e.isStringObject=v,e.isBooleanObject=m,e.isBigIntObject=E,e.isSymbolObject=B,e.isBoxedPrimitive=function(T){return P(T)||v(T)||m(T)||E(T)||B(T)},e.isAnyArrayBuffer=function(T){return typeof Uint8Array<"u"&&(l(T)||x(T))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(T){Object.defineProperty(e,T,{enumerable:!1,value:function(){throw new Error(T+" is not supported in userland")}})})},9539:(D,e,h)=>{var w=h(4155),O=h(5108),k=Object.getOwnPropertyDescriptors||function(T){for(var q=Object.keys(T),te={},re=0;re=ie)return G;switch(G){case"%s":return String(re[te++]);case"%d":return Number(re[te++]);case"%j":try{return JSON.stringify(re[te++])}catch{return"[Circular]"}default:return G}}),ee=re[te];te=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),d(q)?te.showHidden=q:q&&e._extend(te,q),I(te.showHidden)&&(te.showHidden=!1),I(te.depth)&&(te.depth=2),I(te.colors)&&(te.colors=!1),I(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=s),n(te,T,te.depth)}function s(T,q){var te=u.styles[q];return te?"\x1B["+u.colors[te][0]+"m"+T+"\x1B["+u.colors[te][1]+"m":T}function r(T,q){return T}function n(T,q,te){if(T.customInspect&&q&&C(q.inspect)&&q.inspect!==e.inspect&&(!q.constructor||q.constructor.prototype!==q)){var re=q.inspect(te,T);return b(re)||(re=n(T,re,te)),re}var ie=function(ae,he){if(I(he))return ae.stylize("undefined","undefined");if(b(he)){var le="'"+JSON.stringify(he).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ae.stylize(le,"string")}return _(he)?ae.stylize(""+he,"number"):d(he)?ae.stylize(""+he,"boolean"):p(he)?ae.stylize("null","null"):void 0}(T,q);if(ie)return ie;var J=Object.keys(q),ee=function(ae){var he={};return ae.forEach(function(le,ce){he[le]=!0}),he}(J);if(T.showHidden&&(J=Object.getOwnPropertyNames(q)),N(q)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return o(q);if(J.length===0){if(C(q)){var G=q.name?": "+q.name:"";return T.stylize("[Function"+G+"]","special")}if(l(q))return T.stylize(RegExp.prototype.toString.call(q),"regexp");if(M(q))return T.stylize(Date.prototype.toString.call(q),"date");if(N(q))return o(q)}var $,W="",Y=!1,F=["{","}"];return f(q)&&(Y=!0,F=["[","]"]),C(q)&&(W=" [Function"+(q.name?": "+q.name:"")+"]"),l(q)&&(W=" "+RegExp.prototype.toString.call(q)),M(q)&&(W=" "+Date.prototype.toUTCString.call(q)),N(q)&&(W=" "+o(q)),J.length!==0||Y&&q.length!=0?te<0?l(q)?T.stylize(RegExp.prototype.toString.call(q),"regexp"):T.stylize("[Object]","special"):(T.seen.push(q),$=Y?function(ae,he,le,ce,ve){for(var de=[],pe=0,ye=he.length;pe60?le[0]+(he===""?"":he+` `)+" "+ae.join(`, - `)+" "+le[1]:le[0]+he+" "+ae.join(", ")+" "+le[1]}($,W,F)):F[0]+W+F[1]}function o(T){return"["+Error.prototype.toString.call(T)+"]"}function i(T,q,te,re,ie,J){var ee,G,$;if(($=Object.getOwnPropertyDescriptor(q,ie)||{value:q[ie]}).get?G=$.set?T.stylize("[Getter/Setter]","special"):T.stylize("[Getter]","special"):$.set&&(G=T.stylize("[Setter]","special")),m(re,ie)||(ee="["+ie+"]"),G||(T.seen.indexOf($.value)<0?(G=h(te)?n(T,$.value,null):n(T,$.value,te-1)).indexOf(` + `)+" "+le[1]:le[0]+he+" "+ae.join(", ")+" "+le[1]}($,W,F)):F[0]+W+F[1]}function o(T){return"["+Error.prototype.toString.call(T)+"]"}function i(T,q,te,re,ie,J){var ee,G,$;if(($=Object.getOwnPropertyDescriptor(q,ie)||{value:q[ie]}).get?G=$.set?T.stylize("[Getter/Setter]","special"):T.stylize("[Getter]","special"):$.set&&(G=T.stylize("[Setter]","special")),m(re,ie)||(ee="["+ie+"]"),G||(T.seen.indexOf($.value)<0?(G=p(te)?n(T,$.value,null):n(T,$.value,te-1)).indexOf(` `)>-1&&(G=J?G.split(` `).map(function(W){return" "+W}).join(` `).slice(2):` `+G.split(` `).map(function(W){return" "+W}).join(` -`)):G=T.stylize("[Circular]","special")),I(ee)){if(J&&ie.match(/^\d+$/))return G;(ee=JSON.stringify(""+ie)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.slice(1,-1),ee=T.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=T.stylize(ee,"string"))}return ee+": "+G}function f(T){return Array.isArray(T)}function d(T){return typeof T=="boolean"}function h(T){return T===null}function _(T){return typeof T=="number"}function b(T){return typeof T=="string"}function I(T){return T===void 0}function l(T){return j(T)&&x(T)==="[object RegExp]"}function j(T){return typeof T=="object"&&T!==null}function M(T){return j(T)&&x(T)==="[object Date]"}function N(T){return j(T)&&(x(T)==="[object Error]"||T instanceof Error)}function C(T){return typeof T=="function"}function x(T){return Object.prototype.toString.call(T)}function P(T){return T<10?"0"+T.toString(10):T.toString(10)}e.debuglog=function(T){if(T=T.toUpperCase(),!a[T])if(t.test(T)){var q=w.pid;a[T]=function(){var te=e.format.apply(e,arguments);O.error("%s %d: %s",T,q,te)}}else a[T]=function(){};return a[T]},e.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=p(5955),e.isArray=f,e.isBoolean=d,e.isNull=h,e.isNullOrUndefined=function(T){return T==null},e.isNumber=_,e.isString=b,e.isSymbol=function(T){return typeof T=="symbol"},e.isUndefined=I,e.isRegExp=l,e.types.isRegExp=l,e.isObject=j,e.isDate=M,e.types.isDate=M,e.isError=N,e.types.isNativeError=N,e.isFunction=C,e.isPrimitive=function(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||T===void 0},e.isBuffer=p(384);var v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function m(T,q){return Object.prototype.hasOwnProperty.call(T,q)}e.log=function(){var T,q;O.log("%s - %s",(q=[P((T=new Date).getHours()),P(T.getMinutes()),P(T.getSeconds())].join(":"),[T.getDate(),v[T.getMonth()],q].join(" ")),e.format.apply(e,arguments))},e.inherits=p(5717),e._extend=function(T,q){if(!q||!j(q))return T;for(var te=Object.keys(q),re=te.length;re--;)T[te[re]]=q[te[re]];return T};var E=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function B(T,q){if(!T){var te=new Error("Promise was rejected with a falsy value");te.reason=T,T=te}return q(T)}e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(E&&T[E]){var q;if(typeof(q=T[E])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(q,E,{value:q,enumerable:!1,writable:!1,configurable:!0}),q}function q(){for(var te,re,ie=new Promise(function(G,$){te=G,re=$}),J=[],ee=0;ee{var w=p(4029),O=p(3083),k=p(5559),S=p(1924),a=p(7296),t=S("Object.prototype.toString"),c=p(6410)(),u=typeof globalThis>"u"?p.g:globalThis,s=O(),r=S("String.prototype.slice"),n=Object.getPrototypeOf,o=S("Array.prototype.indexOf",!0)||function(f,d){for(var h=0;h-1?d:d==="Object"&&function(h){var _=!1;return w(i,function(b,I){if(!_)try{b(h),_=r(I,1)}catch{}}),_}(f)}return a?function(h){var _=!1;return w(i,function(b,I){if(!_)try{"$"+b(h)===I&&(_=r(I,1))}catch{}}),_}(f):null}},9898:(D,e,p)=>{var w=p(8764).Buffer,O=p(8334);function k(a,t){if(t!==void 0&&a[0]!==t)throw new Error("Invalid network version");if(a.length===33)return{version:a[0],privateKey:a.slice(1,33),compressed:!1};if(a.length!==34)throw new Error("Invalid WIF length");if(a[33]!==1)throw new Error("Invalid compression flag");return{version:a[0],privateKey:a.slice(1,33),compressed:!0}}function S(a,t,c){var u=new w(c?34:33);return u.writeUInt8(a,0),t.copy(u,1),c&&(u[33]=1),u}D.exports={decode:function(a,t){return k(O.decode(a),t)},decodeRaw:k,encode:function(a,t,c){return typeof a=="number"?O.encode(S(a,t,c)):O.encode(S(a.version,a.privateKey,a.compressed))},encodeRaw:S}},9159:()=>{},6601:()=>{},9214:()=>{},2361:()=>{},4616:()=>{},3954:()=>{},3083:(D,e,p)=>{var w=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],O=typeof globalThis>"u"?p.g:globalThis;D.exports=function(){for(var k=[],S=0;S{D.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},4262:D=>{D.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},32:D=>{D.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},4573:D=>{D.exports=JSON.parse('["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","coach","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","initial","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","rich","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"]')},1848:D=>{D.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},2841:D=>{D.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},4472:D=>{D.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},8013:D=>{D.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},1945:D=>{D.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},659:D=>{D.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},8597:D=>{D.exports={i8:"6.5.4"}}},__webpack_module_cache__={};function __webpack_require__(D){var e=__webpack_module_cache__[D];if(e!==void 0)return e.exports;var p=__webpack_module_cache__[D]={id:D,loaded:!1,exports:{}};return __webpack_modules__[D].call(p.exports,p,p.exports,__webpack_require__),p.loaded=!0,p.exports}__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.nmd=D=>(D.paths=[],D.children||(D.children=[]),D);var __webpack_exports__=__webpack_require__(3607);return __webpack_exports__})())})(browser);var browserExports=browser.exports;const DEFAULT_SECRET_LCD_ENDPOINT="https://lcd.secret.express/",SECRET_MAINNET_CHAIN_ID="secret-4",getSecretNetworkClient$=({lcdEndpoint:D,chainId:e,walletAccount:p})=>createFetchClient(defer(()=>of(p?{client:new browserExports.SecretNetworkClient({url:D,wallet:p.signer,walletAddress:p.walletAddress,chainId:e,encryptionUtils:p.encryptionUtils,encryptionSeed:p.encryptionSeed}),endpoint:D,chainId:e}:{client:new browserExports.SecretNetworkClient({url:D,chainId:e}),endpoint:D,chainId:e})));let activeClient;function getActiveQueryClient$(D,e){return activeClient&&D&&D===activeClient.endpoint&&e&&e===activeClient.chainId?of(activeClient):getSecretNetworkClient$({lcdEndpoint:D??DEFAULT_SECRET_LCD_ENDPOINT,chainId:e??SECRET_MAINNET_CHAIN_ID}).pipe(tap(({client:p})=>{activeClient={client:p,endpoint:D??DEFAULT_SECRET_LCD_ENDPOINT,chainId:e??SECRET_MAINNET_CHAIN_ID}}),first())}function parseBatchQuery(D){const{responses:e}=D.batch;return e.map(p=>({id:decodeB64ToJson(p.id),response:decodeB64ToJson(p.response.response)}))}const batchQuery$=({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w,queries:O})=>getActiveQueryClient$(p,w).pipe(switchMap(({client:k})=>sendSecretClientContractQuery$({queryMsg:msgBatchQuery(O),client:k,contractAddress:D,codeHash:e})),map(k=>parseBatchQuery(k)),first());async function batchQuery({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w,queries:O}){return lastValueFrom(batchQuery$({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w,queries:O}))}const parsePriceFromContract=D=>({oracleKey:D.key,rate:D.data.rate,lastUpdatedBase:D.data.last_updated_base,lastUpdatedQuote:D.data.last_updated_quote});function parsePricesFromContract(D){return D.reduce((e,p)=>({...e,[p.key]:{oracleKey:p.key,rate:p.data.rate,lastUpdatedBase:p.data.last_updated_base,lastUpdatedQuote:p.data.last_updated_quote}}),{})}const queryPrice$=({contractAddress:D,codeHash:e,oracleKey:p,lcdEndpoint:w,chainId:O})=>getActiveQueryClient$(w,O).pipe(switchMap(({client:k})=>sendSecretClientContractQuery$({queryMsg:msgQueryOraclePrice(p),client:k,contractAddress:D,codeHash:e})),map(k=>parsePriceFromContract(k)),first());async function queryPrice({contractAddress:D,codeHash:e,oracleKey:p,lcdEndpoint:w,chainId:O}){return lastValueFrom(queryPrice$({contractAddress:D,codeHash:e,oracleKey:p,lcdEndpoint:w,chainId:O}))}const queryPrices$=({contractAddress:D,codeHash:e,oracleKeys:p,lcdEndpoint:w,chainId:O})=>getActiveQueryClient$(w,O).pipe(switchMap(({client:k})=>sendSecretClientContractQuery$({queryMsg:msgQueryOraclePrices(p),client:k,contractAddress:D,codeHash:e})),map(k=>parsePricesFromContract(k)),first());async function queryPrices({contractAddress:D,codeHash:e,oracleKeys:p,lcdEndpoint:w,chainId:O}){return lastValueFrom(queryPrices$({contractAddress:D,codeHash:e,oracleKeys:p,lcdEndpoint:w,chainId:O}))}const parseTokenInfo=D=>({name:D.token_info.name,symbol:D.token_info.symbol,decimals:D.token_info.decimals,totalSupply:D.token_info.total_supply}),parseBalance=D=>D.balance.amount,querySnip20TokenInfo$=({snip20ContractAddress:D,snip20CodeHash:e,lcdEndpoint:p,chainId:w})=>getActiveQueryClient$(p,w).pipe(switchMap(({client:O})=>sendSecretClientContractQuery$({queryMsg:snip20.queries.tokenInfo(),client:O,contractAddress:D,codeHash:e})),map(O=>parseTokenInfo(O)),first());async function querySnip20TokenInfo({snip20ContractAddress:D,snip20CodeHash:e,lcdEndpoint:p,chainId:w}){return lastValueFrom(querySnip20TokenInfo$({snip20ContractAddress:D,snip20CodeHash:e,lcdEndpoint:p,chainId:w}))}const querySnip20Balance$=({snip20ContractAddress:D,snip20CodeHash:e,userAddress:p,viewingKey:w,lcdEndpoint:O,chainId:k})=>getActiveQueryClient$(O,k).pipe(switchMap(({client:S})=>sendSecretClientContractQuery$({queryMsg:snip20.queries.getBalance(p,w),client:S,contractAddress:D,codeHash:e})),map(S=>parseBalance(S)),first());async function querySnip20Balance({snip20ContractAddress:D,snip20CodeHash:e,userAddress:p,viewingKey:w,lcdEndpoint:O,chainId:k}){return lastValueFrom(querySnip20Balance$({snip20ContractAddress:D,snip20CodeHash:e,userAddress:p,viewingKey:w,lcdEndpoint:O,chainId:k}))}function parseFactoryConfig(D){const{get_config:e}=D,{amm_settings:p}=e;return{pairContractInstatiationInfo:{codeHash:e.pair_contract.code_hash,id:e.pair_contract.id},lpTokenContractInstatiationInfo:{codeHash:e.lp_token_contract.code_hash,id:e.lp_token_contract.id},adminAuthContract:{address:e.admin_auth.address,codeHash:e.admin_auth.code_hash},authenticatorContract:e.authenticator?{address:e.authenticator.address,codeHash:e.authenticator.code_hash}:null,defaultPairSettings:{lpFee:p.lp_fee.nom/p.lp_fee.denom,daoFee:p.shade_dao_fee.nom/p.shade_dao_fee.denom,stableLpFee:p.stable_lp_fee.nom/p.stable_lp_fee.denom,stableDaoFee:p.stable_shade_dao_fee.nom/p.stable_shade_dao_fee.denom,daoContract:{address:p.shade_dao_address.address,codeHash:p.shade_dao_address.code_hash}}}}function parseFactoryPairs({response:D,startingIndex:e,limit:p}){const{amm_pairs:w}=D.list_a_m_m_pairs;return{pairs:w.map(k=>({pairContract:{address:k.address,codeHash:k.code_hash},token0Contract:{address:k.pair[0].custom_token.contract_addr,codeHash:k.pair[0].custom_token.token_code_hash},token1Contract:{address:k.pair[1].custom_token.contract_addr,codeHash:k.pair[1].custom_token.token_code_hash},isStable:k.pair[2],isEnabled:k.enabled})),startIndex:e,endIndex:e+p-1}}function parsePairConfig(D){const{get_config:{factory_contract:e,lp_token:p,staking_contract:w,pair:O,custom_fee:k}}=D;return{factoryContract:e?{address:e.address,codeHash:e.code_hash}:null,lpTokenContract:p?{address:p.address,codeHash:p.code_hash}:null,stakingContract:w?{address:w.address,codeHash:w.code_hash}:null,token0Contract:{address:O[0].custom_token.contract_addr,codeHash:O[0].custom_token.token_code_hash},token1Contract:{address:O[1].custom_token.contract_addr,codeHash:O[1].custom_token.token_code_hash},isStable:O[2],fee:k?{lpFee:k.lp_fee.nom/k.lp_fee.denom,daoFee:k.lp_fee.nom/k.lp_fee.denom}:null}}function parsePairInfo(D){const{get_pair_info:e}=D,{fee_info:p,stable_info:w}=e;return{token0Contract:{address:e.pair[0].custom_token.contract_addr,codeHash:e.pair[0].custom_token.token_code_hash},token1Contract:{address:e.pair[1].custom_token.contract_addr,codeHash:e.pair[1].custom_token.token_code_hash},lpTokenContract:{address:e.liquidity_token.address,codeHash:e.liquidity_token.code_hash},factoryContract:e.factory?{address:e.factory.address,codeHash:e.factory.code_hash}:null,daoContractAddress:p.shade_dao_address,isStable:e.pair[2],token0Amount:e.amount_0,token1Amount:e.amount_1,lpTokenAmount:e.total_liquidity,lpFee:e.pair[2]?p.stable_lp_fee.nom/p.stable_lp_fee.denom:p.lp_fee.nom/p.lp_fee.denom,daoFee:e.pair[2]?p.stable_shade_dao_fee.nom/p.stable_shade_dao_fee.denom:p.shade_dao_fee.nom/p.shade_dao_fee.denom,stableParams:w?{priceRatio:w.p,alpha:w.stable_params.a,gamma1:w.stable_params.gamma1,gamma2:w.stable_params.gamma2,oracle:{address:w.stable_params.oracle.address,codeHash:w.stable_params.oracle.code_hash},token0Data:{oracleKey:w.stable_token0_data.oracle_key,decimals:w.stable_token0_data.decimals},token1Data:{oracleKey:w.stable_token1_data.oracle_key,decimals:w.stable_token1_data.decimals},minTradeSizeXForY:w.stable_params.min_trade_size_x_for_y,minTradeSizeYForX:w.stable_params.min_trade_size_y_for_x,maxPriceImpactAllowed:w.stable_params.max_price_impact_allowed,customIterationControls:w.stable_params.custom_iteration_controls?{epsilon:w.stable_params.custom_iteration_controls.epsilon,maxIteratorNewton:w.stable_params.custom_iteration_controls.max_iter_newton,maxIteratorBisect:w.stable_params.custom_iteration_controls.max_iter_bisect}:null}:null,contractVersion:e.contract_version}}const parseBatchQueryPairInfoResponse=D=>D.map(e=>({pairContractAddress:e.id,pairInfo:parsePairInfo(e.response)}));function parseStakingInfo(D){const{lp_token:e,amm_pair:p,admin_auth:w,query_auth:O,total_amount_staked:k,reward_tokens:S}=D;return{lpTokenContract:{address:e.address,codeHash:e.code_hash},pairContractAddress:p,adminAuthContract:{address:w.address,codeHash:w.code_hash},queryAuthContract:O?{address:O.address,codeHash:O.code_hash}:null,totalStakedAmount:k,rewardTokens:S.map(a=>({token:{address:a.token.address,codeHash:a.token.code_hash},rewardPerSecond:a.reward_per_second,rewardPerStakedToken:a.reward_per_staked_token,validTo:a.valid_to,lastUpdated:a.last_updated}))}}const parseBatchQueryStakingInfoResponse=D=>D.map(e=>({stakingContractAddress:e.id,stakingInfo:parseStakingInfo(e.response)})),parseSwapResponse=D=>{let e,p,w,O;const k=D.transactionHash,{jsonLog:S}=D;if(S!==void 0&&S.length>0){const a=S[0].events.find(t=>t.type==="wasm");if(a===void 0)return{txHash:k,inputTokenAddress:e,outputTokenAddress:p,inputTokenAmount:w,outputTokenAmount:O};a.attributes.forEach(t=>{t.key.trim()==="amount_out"?O=t.value.trim():t.key.trim()==="amount_in"&&w===void 0?w=t.value.trim():t.key.trim()==="token_out_key"?p=t.value.trim():t.key.trim()==="token_in_key"&&e===void 0&&(e=t.value.trim())})}return{txHash:k,inputTokenAddress:e,outputTokenAddress:p,inputTokenAmount:w,outputTokenAmount:O}},queryFactoryConfig$=({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w})=>getActiveQueryClient$(p,w).pipe(switchMap(({client:O})=>sendSecretClientContractQuery$({queryMsg:msgQueryFactoryConfig(),client:O,contractAddress:D,codeHash:e})),map(O=>parseFactoryConfig(O)),first());async function queryFactoryConfig({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w}){return lastValueFrom(queryFactoryConfig$({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w}))}const queryFactoryPairs$=({contractAddress:D,codeHash:e,startingIndex:p,limit:w,lcdEndpoint:O,chainId:k})=>getActiveQueryClient$(O,k).pipe(switchMap(({client:S})=>sendSecretClientContractQuery$({queryMsg:msgQueryFactoryPairs(p,w),client:S,contractAddress:D,codeHash:e})),map(S=>parseFactoryPairs({response:S,startingIndex:p,limit:w})),first());async function queryFactoryPairs({contractAddress:D,codeHash:e,startingIndex:p,limit:w,lcdEndpoint:O,chainId:k}){return lastValueFrom(queryFactoryPairs$({contractAddress:D,codeHash:e,startingIndex:p,limit:w,lcdEndpoint:O,chainId:k}))}const queryPairConfig$=({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w})=>getActiveQueryClient$(p,w).pipe(switchMap(({client:O})=>sendSecretClientContractQuery$({queryMsg:msgQueryPairConfig(),client:O,contractAddress:D,codeHash:e})),map(O=>parsePairConfig(O)),first());async function queryPairConfig({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w}){return lastValueFrom(queryPairConfig$({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w}))}function batchQueryPairsInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:p,chainId:w,pairsContracts:O}){const k=O.map(S=>({id:S.address,contract:{address:S.address,codeHash:S.codeHash},queryMsg:msgQueryPairInfo()}));return batchQuery$({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w,queries:k}).pipe(map(parseBatchQueryPairInfoResponse),first())}async function batchQueryPairsInfo({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:p,chainId:w,pairsContracts:O}){return lastValueFrom(batchQueryPairsInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:p,chainId:w,pairsContracts:O}))}function batchQueryStakingInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:p,chainId:w,stakingContracts:O}){const k=O.map(S=>({id:S.address,contract:{address:S.address,codeHash:S.codeHash},queryMsg:msgQueryStakingConfig()}));return batchQuery$({contractAddress:D,codeHash:e,lcdEndpoint:p,chainId:w,queries:k}).pipe(map(parseBatchQueryStakingInfoResponse),first())}async function batchQueryStakingInfo({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:p,chainId:w,stakingContracts:O}){return lastValueFrom(batchQueryStakingInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:p,chainId:w,stakingContracts:O}))}class NewtonMethodError extends Error{constructor(e){super(e),this.name="NewtonMethodError"}}function newton({f:D,df:e,initialGuess:p,epsilon:w,maxIterations:O}){let k=p;for(let S=0;Sthis.invariantFnFromPoolSizes(p,S),O=S=>this.derivRespectToPool1OfInvFn(p,S);return this.findZeroWithPool1Params(w,O).multipliedBy(this.invariant).dividedBy(this.priceOfToken1)}solveInvFnForPool0Size(e){const p=e.dividedBy(this.invariant),w=S=>this.invariantFnFromPoolSizes(S,p),O=S=>this.derivRespectToPool0OfInvFnFromPool0(S,p);return this.findZeroWithPool0Params(w,O).multipliedBy(this.invariant)}swapToken0WithToken1(e){const p=this.simulateToken0WithToken1Trade(e);return this.executeTrade(p)}swapToken1WithToken0(e){const p=this.simulateToken1WithToken0Trade(e);return this.executeTrade(p)}executeTrade(e){return this.pool0Size=e.newPool0,this.pool1Size=e.newPool1,this.calculateInvariant(),e.tradeReturn}simulateReverseToken0WithToken1Trade(e){const p=this.lpFee.multipliedBy(e),w=this.shadeDaoFee.multipliedBy(e),O=p.plus(w),k=e.minus(O),S=this.pool1Size.minus(e),a=S.multipliedBy(this.priceOfToken1),t=this.solveInvFnForPool0Size(a);this.verifySwapPriceImpactInBounds({pool0Size:t,pool1Size:S,tradeDirIs0For1:!0});const c=t.minus(this.pool0Size);verifySwapAmountInBounds(c,this.minTradeSize0For1);const u=S.plus(p);return{newPool0:t,newPool1:u,tradeInput:c,tradeReturn:k,lpFeeAmount:p,shadeDaoFeeAmount:w}}simulateReverseToken1WithToken0Trade(e){const p=this.lpFee.multipliedBy(e),w=this.shadeDaoFee.multipliedBy(e),O=p.plus(w),k=e.minus(O),S=this.pool0Size.minus(e),a=this.solveInvFnForPool1Size(S);this.verifySwapPriceImpactInBounds({pool0Size:S,pool1Size:a,tradeDirIs0For1:!1});const t=a.minus(this.pool1Size);return verifySwapAmountInBounds(t,this.minTradeSize1For0),{newPool0:S.plus(p),newPool1:a,tradeInput:t,tradeReturn:k,lpFeeAmount:p,shadeDaoFeeAmount:w}}simulateToken0WithToken1Trade(e){verifySwapAmountInBounds(e,this.minTradeSize0For1);const p=this.pool0Size.plus(e),w=this.solveInvFnForPool1Size(p);this.verifySwapPriceImpactInBounds({pool0Size:p,pool1Size:w,tradeDirIs0For1:!0});const O=this.pool1Size.minus(w),k=this.lpFee.multipliedBy(O),S=this.shadeDaoFee.multipliedBy(O),a=w.plus(k);return{newPool0:p,newPool1:a,tradeReturn:O.minus(k).minus(S),lpFeeAmount:k,shadeDaoFeeAmount:S}}simulateToken1WithToken0Trade(e){verifySwapAmountInBounds(e,this.minTradeSize1For0);const p=this.pool1Size.plus(e),w=this.priceOfToken1.multipliedBy(p),O=this.solveInvFnForPool0Size(w);this.verifySwapPriceImpactInBounds({pool0Size:O,pool1Size:p,tradeDirIs0For1:!1});const k=this.pool0Size.minus(O),S=this.lpFee.multipliedBy(k),a=this.shadeDaoFee.multipliedBy(k);return{newPool0:O.plus(S),newPool1:p,tradeReturn:k.minus(S).minus(a),lpFeeAmount:S,shadeDaoFeeAmount:a}}verifySwapPriceImpactInBounds({pool0Size:e,pool1Size:p,tradeDirIs0For1:w}){const O=this.priceImpactAt({newPool0:e,newPool1:p,tradeDirIs0For1:w});if(O.isGreaterThan(this.priceImpactLimit)||O.isLessThan(BigNumber(0)))throw Error(`The slippage of this trade is outside of the acceptable range of 0% - ${this.priceImpactLimit}%.`)}priceImpactAt({newPool0:e,newPool1:p,tradeDirIs0For1:w}){const O=w?this.priceToken1():this.priceToken0();return(w?this.priceToken1At(e,p):this.priceToken0At(e,p)).dividedBy(O).minus(BigNumber(1)).multipliedBy(100)}priceImpactToken0ForToken1(e){const p=this.pool0Size.plus(e),w=this.solveInvFnForPool1Size(p);return this.priceImpactAt({newPool0:p,newPool1:w,tradeDirIs0For1:!0})}priceImpactToken1ForToken0(e){const p=this.pool1Size.plus(e),w=this.solveInvFnForPool0Size(this.priceOfToken1.multipliedBy(p));return this.priceImpactAt({newPool0:w,newPool1:p,tradeDirIs0For1:!1})}negativeTangent(e,p){return this.derivRespectToPool0OfInvFnFromPool0(e,p).dividedBy(this.derivRespectToPool1OfInvFn(e,p)).dividedBy(this.priceOfToken1)}priceToken1At(e,p){return BigNumber(1).dividedBy(this.negativeTangent(e.dividedBy(this.invariant),this.priceOfToken1.multipliedBy(p).dividedBy(this.invariant)))}priceToken1(){return this.priceToken1At(this.pool0Size,this.pool1Size)}priceToken0At(e,p){return this.negativeTangent(e.dividedBy(this.invariant),this.priceOfToken1.multipliedBy(p).dividedBy(this.invariant))}priceToken0(){return this.priceToken0At(this.pool0Size,this.pool1Size)}updatePriceOfToken1(e){this.priceOfToken1=e,this.calculateInvariant()}token1TvlInUnitsToken0(){return this.priceOfToken1.multipliedBy(this.pool1Size)}totalTvl(){return this.pool0Size.plus(this.token1TvlInUnitsToken0())}geometricMeanDoubled(){const e=this.token1TvlInUnitsToken0();return this.pool0Size.isLessThanOrEqualTo(BigNumber(1))||e.isLessThanOrEqualTo(BigNumber(1))?BigNumber(0):this.pool0Size.sqrt().multipliedBy(e.sqrt()).multipliedBy(BigNumber(2))}calculateInvariant(){const e=this.token1TvlInUnitsToken0(),p=this.pool0Size.isLessThanOrEqualTo(e)?this.gamma1:this.gamma2,w=S=>this.invariantFnFromInv(S,p),O=S=>this.derivRespectToInvOfInvFn(S,p),k=this.findZeroWithInvariantParams(w,O);return this.invariant=k,k}invariantFnFromInv(e,p){const w=this.token1TvlInUnitsToken0(),k=this.getCoeffScaledByInv({invariant:e,gamma:p,pool1SizeInUnitsPool0:w}).multipliedBy(e.multipliedBy(this.pool0Size.plus(w.minus(e)))),S=this.pool0Size.multipliedBy(w),a=e.multipliedBy(e).dividedBy(4);return k.plus(S).minus(a)}derivRespectToInvOfInvFn(e,p){const w=this.token1TvlInUnitsToken0(),O=this.getCoeffScaledByInv({invariant:e,gamma:p,pool1SizeInUnitsPool0:w}),k=BigNumber(-2).multipliedBy(p).plus(1).multipliedBy(this.pool0Size.minus(e).plus(w)).minus(e);return O.multipliedBy(k).minus(e.dividedBy(2))}getCoeffScaledByInv({invariant:e,gamma:p,pool1SizeInUnitsPool0:w}){return this.alpha.multipliedBy(BigNumber(4).multipliedBy(this.pool0Size.dividedBy(e)).multipliedBy(w.dividedBy(e)).pow(p))}getCoeff({pool0Size:e,pool1SizeInUnitsPool0:p,gamma:w}){const O=e.multipliedBy(p);return this.alpha.multipliedBy(BigNumber(4).multipliedBy(O).pow(w))}invariantFnFromPoolSizes(e,p){const w=e.isLessThanOrEqualTo(p)?this.gamma1:this.gamma2,O=e.multipliedBy(p);return this.getCoeff({pool0Size:e,pool1SizeInUnitsPool0:p,gamma:w}).multipliedBy(e.plus(p).minus(1)).plus(O).minus(.25)}derivRespectToPool0OfInvFnFromPool0(e,p){const w=e.isLessThanOrEqualTo(p)?this.gamma1:this.gamma2,O=this.getCoeff({pool0Size:e,pool1SizeInUnitsPool0:p,gamma:w}),k=w.multipliedBy(e.plus(p).minus(1)).dividedBy(e).plus(1);return O.multipliedBy(k).plus(p)}derivRespectToPool1OfInvFn(e,p){const w=e.isLessThanOrEqualTo(p)?this.gamma1:this.gamma2,O=this.getCoeff({pool0Size:e,pool1SizeInUnitsPool0:p,gamma:w}),k=w.multipliedBy(e.plus(p).minus(1).dividedBy(p)).plus(1);return O.multipliedBy(k).plus(e)}findZeroWithInvariantParams(e,p){const w=this.totalTvl();return calcZero({f:e,df:p,initialGuessNewton:w,upperBoundBisect:w,ignoreNegativeResult:!0,lazyLowerBoundBisect:this.geometricMeanDoubled,lowerBoundBisect:void 0})}findZeroWithPool0Params(e,p){const w=this.pool0Size.dividedBy(this.invariant);return calcZero({f:e,df:p,initialGuessNewton:w,upperBoundBisect:w,ignoreNegativeResult:!1,lazyLowerBoundBisect:void 0,lowerBoundBisect:BigNumber(0)})}findZeroWithPool1Params(e,p){const w=this.token1TvlInUnitsToken0().dividedBy(this.invariant);return calcZero({f:e,df:p,initialGuessNewton:w,upperBoundBisect:w,ignoreNegativeResult:!1,lazyLowerBoundBisect:void 0,lowerBoundBisect:BigNumber(0)})}}function constantProductSwapToken0for1({token0LiquidityAmount:D,token1LiquidityAmount:e,token0InputAmount:p,fee:w}){const O=e.minus(D.multipliedBy(e).dividedBy(D.plus(p))),k=O.minus(O.multipliedBy(w));return BigNumber(k.toFixed(0))}function constantProductReverseSwapToken0for1({token0LiquidityAmount:D,token1LiquidityAmount:e,token1OutputAmount:p,fee:w}){if(p.isGreaterThanOrEqualTo(e))throw Error("Not enough liquidity for swap");const O=D.multipliedBy(e).dividedBy(p.dividedBy(BigNumber(1).minus(w)).minus(e)).plus(D).multipliedBy(-1);return BigNumber(O.toFixed(0))}function constantProductPriceImpactToken0for1({token0LiquidityAmount:D,token1LiquidityAmount:e,token0InputAmount:p}){const w=D.dividedBy(e),O=D.multipliedBy(e),k=D.plus(p),S=O.dividedBy(k),a=e.minus(S);return p.dividedBy(a).dividedBy(w).minus(1)}function constantProductSwapToken1for0({token0LiquidityAmount:D,token1LiquidityAmount:e,token1InputAmount:p,fee:w}){const O=D.minus(D.multipliedBy(e).dividedBy(e.plus(p))),k=O.minus(O.multipliedBy(w));return BigNumber(k.toFixed(0))}function constantProductReverseSwapToken1for0({token0LiquidityAmount:D,token1LiquidityAmount:e,token0OutputAmount:p,fee:w}){if(p.isGreaterThanOrEqualTo(D))throw Error("Not enough liquidity for swap");const O=e.multipliedBy(D).dividedBy(p.dividedBy(BigNumber(1).minus(w)).minus(D)).plus(e).multipliedBy(-1);return BigNumber(O.toFixed(0))}function constantProductPriceImpactToken1for0({token0LiquidityAmount:D,token1LiquidityAmount:e,token1InputAmount:p}){const w=e.dividedBy(D),O=e.multipliedBy(D),k=e.plus(p),S=O.dividedBy(k),a=D.minus(S);return p.dividedBy(a).dividedBy(w).minus(1)}function stableSwapToken0for1({inputToken0Amount:D,poolToken0Amount:e,poolToken1Amount:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}return r().swapToken0WithToken1(D)}function stableReverseSwapToken0for1({outputToken1Amount:D,poolToken0Amount:e,poolToken1Amount:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=a.plus(t),o=D.dividedBy(BigNumber(1).minus(n));return r().simulateReverseToken0WithToken1Trade(o).tradeInput}function stableSwapToken1for0({inputToken1Amount:D,poolToken0Amount:e,poolToken1Amount:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}return r().swapToken1WithToken0(D)}function stableReverseSwapToken1for0({outputToken0Amount:D,poolToken0Amount:e,poolToken1Amount:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=a.plus(t),o=D.dividedBy(BigNumber(1).minus(n));return r().simulateReverseToken1WithToken0Trade(o).tradeInput}function stableSwapPriceImpactToken0For1({inputToken0Amount:D,poolToken0Amount:e,poolToken1Amount:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=r(),o=n.priceToken1(),f=n.swapToken0WithToken1(D).dividedBy(BigNumber(1).minus(a.plus(t)));return D.dividedBy(f).dividedBy(o).minus(1)}function stableSwapPriceImpactToken1For0({inputToken1Amount:D,poolToken0Amount:e,poolToken1Amount:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:p,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=r(),o=n.priceToken0(),f=n.swapToken1WithToken0(D).dividedBy(BigNumber(1).minus(a.plus(t)));return D.dividedBy(f).dividedBy(o).minus(1)}var GasMultiplier=(D=>(D[D.STABLE=2.7]="STABLE",D[D.CONSTANT_PRODUCT=1]="CONSTANT_PRODUCT",D))(GasMultiplier||{});function getPossiblePaths({inputTokenContractAddress:D,outputTokenContractAddress:e,maxHops:p,pairs:w}){const O=[],k=[],S=new Set;function a(t,c){if(!(c>p)){if(t===e){k.push([...O]);return}Object.values(w).forEach(u=>{const{pairContractAddress:s,pairInfo:r}=u;S.has(s)||(r.token0Contract.address===t||r.token1Contract.address===t)&&(O.push(s),S.add(s),r.token0Contract.address===t?a(r.token1Contract.address,c+1):a(r.token0Contract.address,c+1),S.delete(s),O.pop())})}}return a(D,0),k}function calculateRoute({inputTokenAmount:D,inputTokenContractAddress:e,path:p,pairs:w,tokens:O}){const k=p.reduce((r,n)=>{const{outputTokenContractAddress:o,quoteOutputAmount:i,quoteShadeDaoFee:f,quotePriceImpact:d,quoteLPFee:h,gasMultiplier:_}=r;let b,I,l;const j=w.filter($=>$.pairContractAddress===n);if(j.length===0)throw new Error(`Pair ${n} not available`);if(j.length>1)throw new Error(`Duplicate ${n} pairs found`);const M=j[0],{pairInfo:{token0Contract:N,token1Contract:C,token0Amount:x,token1Amount:P,lpFee:v,daoFee:m,isStable:E,stableParams:B}}=M,T=getTokenDecimalsByTokenConfig(N.address,O),q=getTokenDecimalsByTokenConfig(C.address,O),te=convertCoinFromUDenom(x,T),re=convertCoinFromUDenom(P,q),ie=getTokenDecimalsByTokenConfig(o,O),J=convertCoinFromUDenom(i,ie);let ee;o===N.address?ee=C.address:ee=N.address;const G=getTokenDecimalsByTokenConfig(ee,O);if(E&&B)if(l=GasMultiplier.STABLE,o===N.address){const $={inputToken0Amount:J,poolToken0Amount:te,poolToken1Amount:re,priceRatio:BigNumber(B.priceRatio),alpha:BigNumber(B.alpha),gamma1:BigNumber(B.gamma1),gamma2:BigNumber(B.gamma2),liquidityProviderFee:BigNumber(v),daoFee:BigNumber(m),minTradeSizeToken0For1:BigNumber(B.minTradeSizeXForY),minTradeSizeToken1For0:BigNumber(B.minTradeSizeYForX),priceImpactLimit:BigNumber(B.maxPriceImpactAllowed)},W=stableSwapToken0for1($);b=BigNumber(convertCoinToUDenom(W,G)),I=stableSwapPriceImpactToken0For1($)}else if(o===C.address){const $={inputToken1Amount:J,poolToken0Amount:te,poolToken1Amount:re,priceRatio:BigNumber(B.priceRatio),alpha:BigNumber(B.alpha),gamma1:BigNumber(B.gamma1),gamma2:BigNumber(B.gamma2),liquidityProviderFee:BigNumber(v),daoFee:BigNumber(m),minTradeSizeToken0For1:BigNumber(B.minTradeSizeXForY),minTradeSizeToken1For0:BigNumber(B.minTradeSizeYForX),priceImpactLimit:BigNumber(B.maxPriceImpactAllowed)},W=stableSwapToken1for0($);b=BigNumber(convertCoinToUDenom(W,G)),I=stableSwapPriceImpactToken1For0($)}else throw Error("stableswap parameter error");else if(l=GasMultiplier.CONSTANT_PRODUCT,o===N.address)b=constantProductSwapToken0for1({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token0InputAmount:i,fee:BigNumber(v).plus(m)}),I=constantProductPriceImpactToken0for1({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token0InputAmount:i});else if(o===C.address)b=constantProductSwapToken1for0({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token1InputAmount:i,fee:BigNumber(v).plus(m)}),I=constantProductPriceImpactToken1for0({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token1InputAmount:i});else throw Error("constant product rule swap parameter error");return{outputTokenContractAddress:ee,quoteOutputAmount:b,quoteShadeDaoFee:f.plus(m),quoteLPFee:h.plus(v),quotePriceImpact:d.plus(I),gasMultiplier:_+l}},{outputTokenContractAddress:e,quoteOutputAmount:D,quoteShadeDaoFee:BigNumber(0),quoteLPFee:BigNumber(0),quotePriceImpact:BigNumber(0),gasMultiplier:0}),{outputTokenContractAddress:S,quoteOutputAmount:a,quoteShadeDaoFee:t,quoteLPFee:c,quotePriceImpact:u,gasMultiplier:s}=k;return{inputAmount:D,quoteOutputAmount:a,quoteShadeDaoFee:t,quoteLPFee:c,priceImpact:u,inputTokenContractAddress:e,outputTokenContractAddress:S,path:p,gasMultiplier:s}}function getRoutes({inputTokenAmount:D,inputTokenContractAddress:e,outputTokenContractAddress:p,maxHops:w,pairs:O,tokens:k}){const S=getPossiblePaths({inputTokenContractAddress:e,outputTokenContractAddress:p,maxHops:w,pairs:O});return S.length===0?[]:S.reduce((t,c)=>{try{const u=calculateRoute({inputTokenAmount:D,inputTokenContractAddress:e,path:c,pairs:O,tokens:k});return t.push(u),t}catch{return t}},[]).sort((t,c)=>t.quoteOutputAmount.isGreaterThan(c.quoteOutputAmount)?-1:t.quoteOutputAmount.isLessThan(c.quoteOutputAmount)?1:0)}exports.batchQuery=batchQuery;exports.batchQuery$=batchQuery$;exports.batchQueryPairsInfo=batchQueryPairsInfo;exports.batchQueryPairsInfo$=batchQueryPairsInfo$;exports.batchQueryStakingInfo=batchQueryStakingInfo;exports.batchQueryStakingInfo$=batchQueryStakingInfo$;exports.calculateRoute=calculateRoute;exports.constantProductPriceImpactToken0for1=constantProductPriceImpactToken0for1;exports.constantProductPriceImpactToken1for0=constantProductPriceImpactToken1for0;exports.constantProductReverseSwapToken0for1=constantProductReverseSwapToken0for1;exports.constantProductReverseSwapToken1for0=constantProductReverseSwapToken1for0;exports.constantProductSwapToken0for1=constantProductSwapToken0for1;exports.constantProductSwapToken1for0=constantProductSwapToken1for0;exports.convertCoinFromUDenom=convertCoinFromUDenom;exports.convertCoinToUDenom=convertCoinToUDenom;exports.decodeB64ToJson=decodeB64ToJson;exports.encodeJsonToB64=encodeJsonToB64;exports.generatePadding=generatePadding;exports.getActiveQueryClient$=getActiveQueryClient$;exports.getPossiblePaths=getPossiblePaths;exports.getRoutes=getRoutes;exports.getSecretNetworkClient$=getSecretNetworkClient$;exports.msgBatchQuery=msgBatchQuery;exports.msgQueryFactoryConfig=msgQueryFactoryConfig;exports.msgQueryFactoryPairs=msgQueryFactoryPairs;exports.msgQueryOraclePrice=msgQueryOraclePrice;exports.msgQueryOraclePrices=msgQueryOraclePrices;exports.msgQueryPairConfig=msgQueryPairConfig;exports.msgQueryPairInfo=msgQueryPairInfo;exports.msgQueryStakingConfig=msgQueryStakingConfig;exports.msgSwap=msgSwap;exports.parseBalance=parseBalance;exports.parseBatchQuery=parseBatchQuery;exports.parseBatchQueryPairInfoResponse=parseBatchQueryPairInfoResponse;exports.parseBatchQueryStakingInfoResponse=parseBatchQueryStakingInfoResponse;exports.parseFactoryConfig=parseFactoryConfig;exports.parseFactoryPairs=parseFactoryPairs;exports.parsePairConfig=parsePairConfig;exports.parsePairInfo=parsePairInfo;exports.parsePriceFromContract=parsePriceFromContract;exports.parsePricesFromContract=parsePricesFromContract;exports.parseStakingInfo=parseStakingInfo;exports.parseSwapResponse=parseSwapResponse;exports.parseTokenInfo=parseTokenInfo;exports.queryFactoryConfig=queryFactoryConfig;exports.queryFactoryConfig$=queryFactoryConfig$;exports.queryFactoryPairs=queryFactoryPairs;exports.queryFactoryPairs$=queryFactoryPairs$;exports.queryPairConfig=queryPairConfig;exports.queryPairConfig$=queryPairConfig$;exports.queryPrice=queryPrice;exports.queryPrice$=queryPrice$;exports.queryPrices=queryPrices;exports.queryPrices$=queryPrices$;exports.querySnip20Balance=querySnip20Balance;exports.querySnip20Balance$=querySnip20Balance$;exports.querySnip20TokenInfo=querySnip20TokenInfo;exports.querySnip20TokenInfo$=querySnip20TokenInfo$;exports.snip20=snip20;exports.stableReverseSwapToken0for1=stableReverseSwapToken0for1;exports.stableReverseSwapToken1for0=stableReverseSwapToken1for0;exports.stableSwapPriceImpactToken0For1=stableSwapPriceImpactToken0For1;exports.stableSwapPriceImpactToken1For0=stableSwapPriceImpactToken1For0;exports.stableSwapToken0for1=stableSwapToken0for1;exports.stableSwapToken1for0=stableSwapToken1for0; +`)):G=T.stylize("[Circular]","special")),I(ee)){if(J&&ie.match(/^\d+$/))return G;(ee=JSON.stringify(""+ie)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ee=ee.slice(1,-1),ee=T.stylize(ee,"name")):(ee=ee.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ee=T.stylize(ee,"string"))}return ee+": "+G}function f(T){return Array.isArray(T)}function d(T){return typeof T=="boolean"}function p(T){return T===null}function _(T){return typeof T=="number"}function b(T){return typeof T=="string"}function I(T){return T===void 0}function l(T){return j(T)&&x(T)==="[object RegExp]"}function j(T){return typeof T=="object"&&T!==null}function M(T){return j(T)&&x(T)==="[object Date]"}function N(T){return j(T)&&(x(T)==="[object Error]"||T instanceof Error)}function C(T){return typeof T=="function"}function x(T){return Object.prototype.toString.call(T)}function P(T){return T<10?"0"+T.toString(10):T.toString(10)}e.debuglog=function(T){if(T=T.toUpperCase(),!a[T])if(t.test(T)){var q=w.pid;a[T]=function(){var te=e.format.apply(e,arguments);O.error("%s %d: %s",T,q,te)}}else a[T]=function(){};return a[T]},e.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=h(5955),e.isArray=f,e.isBoolean=d,e.isNull=p,e.isNullOrUndefined=function(T){return T==null},e.isNumber=_,e.isString=b,e.isSymbol=function(T){return typeof T=="symbol"},e.isUndefined=I,e.isRegExp=l,e.types.isRegExp=l,e.isObject=j,e.isDate=M,e.types.isDate=M,e.isError=N,e.types.isNativeError=N,e.isFunction=C,e.isPrimitive=function(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||T===void 0},e.isBuffer=h(384);var v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function m(T,q){return Object.prototype.hasOwnProperty.call(T,q)}e.log=function(){var T,q;O.log("%s - %s",(q=[P((T=new Date).getHours()),P(T.getMinutes()),P(T.getSeconds())].join(":"),[T.getDate(),v[T.getMonth()],q].join(" ")),e.format.apply(e,arguments))},e.inherits=h(5717),e._extend=function(T,q){if(!q||!j(q))return T;for(var te=Object.keys(q),re=te.length;re--;)T[te[re]]=q[te[re]];return T};var E=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function B(T,q){if(!T){var te=new Error("Promise was rejected with a falsy value");te.reason=T,T=te}return q(T)}e.promisify=function(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');if(E&&T[E]){var q;if(typeof(q=T[E])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(q,E,{value:q,enumerable:!1,writable:!1,configurable:!0}),q}function q(){for(var te,re,ie=new Promise(function(G,$){te=G,re=$}),J=[],ee=0;ee{var w=h(4029),O=h(3083),k=h(5559),S=h(1924),a=h(7296),t=S("Object.prototype.toString"),c=h(6410)(),u=typeof globalThis>"u"?h.g:globalThis,s=O(),r=S("String.prototype.slice"),n=Object.getPrototypeOf,o=S("Array.prototype.indexOf",!0)||function(f,d){for(var p=0;p-1?d:d==="Object"&&function(p){var _=!1;return w(i,function(b,I){if(!_)try{b(p),_=r(I,1)}catch{}}),_}(f)}return a?function(p){var _=!1;return w(i,function(b,I){if(!_)try{"$"+b(p)===I&&(_=r(I,1))}catch{}}),_}(f):null}},9898:(D,e,h)=>{var w=h(8764).Buffer,O=h(8334);function k(a,t){if(t!==void 0&&a[0]!==t)throw new Error("Invalid network version");if(a.length===33)return{version:a[0],privateKey:a.slice(1,33),compressed:!1};if(a.length!==34)throw new Error("Invalid WIF length");if(a[33]!==1)throw new Error("Invalid compression flag");return{version:a[0],privateKey:a.slice(1,33),compressed:!0}}function S(a,t,c){var u=new w(c?34:33);return u.writeUInt8(a,0),t.copy(u,1),c&&(u[33]=1),u}D.exports={decode:function(a,t){return k(O.decode(a),t)},decodeRaw:k,encode:function(a,t,c){return typeof a=="number"?O.encode(S(a,t,c)):O.encode(S(a.version,a.privateKey,a.compressed))},encodeRaw:S}},9159:()=>{},6601:()=>{},9214:()=>{},2361:()=>{},4616:()=>{},3954:()=>{},3083:(D,e,h)=>{var w=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],O=typeof globalThis>"u"?h.g:globalThis;D.exports=function(){for(var k=[],S=0;S{D.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},4262:D=>{D.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},32:D=>{D.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},4573:D=>{D.exports=JSON.parse('["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","coach","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","initial","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","rich","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"]')},1848:D=>{D.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},2841:D=>{D.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},4472:D=>{D.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},8013:D=>{D.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},1945:D=>{D.exports=JSON.parse('["abacate","abaixo","abalar","abater","abduzir","abelha","aberto","abismo","abotoar","abranger","abreviar","abrigar","abrupto","absinto","absoluto","absurdo","abutre","acabado","acalmar","acampar","acanhar","acaso","aceitar","acelerar","acenar","acervo","acessar","acetona","achatar","acidez","acima","acionado","acirrar","aclamar","aclive","acolhida","acomodar","acoplar","acordar","acumular","acusador","adaptar","adega","adentro","adepto","adequar","aderente","adesivo","adeus","adiante","aditivo","adjetivo","adjunto","admirar","adorar","adquirir","adubo","adverso","advogado","aeronave","afastar","aferir","afetivo","afinador","afivelar","aflito","afluente","afrontar","agachar","agarrar","agasalho","agenciar","agilizar","agiota","agitado","agora","agradar","agreste","agrupar","aguardar","agulha","ajoelhar","ajudar","ajustar","alameda","alarme","alastrar","alavanca","albergue","albino","alcatra","aldeia","alecrim","alegria","alertar","alface","alfinete","algum","alheio","aliar","alicate","alienar","alinhar","aliviar","almofada","alocar","alpiste","alterar","altitude","alucinar","alugar","aluno","alusivo","alvo","amaciar","amador","amarelo","amassar","ambas","ambiente","ameixa","amenizar","amido","amistoso","amizade","amolador","amontoar","amoroso","amostra","amparar","ampliar","ampola","anagrama","analisar","anarquia","anatomia","andaime","anel","anexo","angular","animar","anjo","anomalia","anotado","ansioso","anterior","anuidade","anunciar","anzol","apagador","apalpar","apanhado","apego","apelido","apertada","apesar","apetite","apito","aplauso","aplicada","apoio","apontar","aposta","aprendiz","aprovar","aquecer","arame","aranha","arara","arcada","ardente","areia","arejar","arenito","aresta","argiloso","argola","arma","arquivo","arraial","arrebate","arriscar","arroba","arrumar","arsenal","arterial","artigo","arvoredo","asfaltar","asilado","aspirar","assador","assinar","assoalho","assunto","astral","atacado","atadura","atalho","atarefar","atear","atender","aterro","ateu","atingir","atirador","ativo","atoleiro","atracar","atrevido","atriz","atual","atum","auditor","aumentar","aura","aurora","autismo","autoria","autuar","avaliar","avante","avaria","avental","avesso","aviador","avisar","avulso","axila","azarar","azedo","azeite","azulejo","babar","babosa","bacalhau","bacharel","bacia","bagagem","baiano","bailar","baioneta","bairro","baixista","bajular","baleia","baliza","balsa","banal","bandeira","banho","banir","banquete","barato","barbado","baronesa","barraca","barulho","baseado","bastante","batata","batedor","batida","batom","batucar","baunilha","beber","beijo","beirada","beisebol","beldade","beleza","belga","beliscar","bendito","bengala","benzer","berimbau","berlinda","berro","besouro","bexiga","bezerro","bico","bicudo","bienal","bifocal","bifurcar","bigorna","bilhete","bimestre","bimotor","biologia","biombo","biosfera","bipolar","birrento","biscoito","bisneto","bispo","bissexto","bitola","bizarro","blindado","bloco","bloquear","boato","bobagem","bocado","bocejo","bochecha","boicotar","bolada","boletim","bolha","bolo","bombeiro","bonde","boneco","bonita","borbulha","borda","boreal","borracha","bovino","boxeador","branco","brasa","braveza","breu","briga","brilho","brincar","broa","brochura","bronzear","broto","bruxo","bucha","budismo","bufar","bule","buraco","busca","busto","buzina","cabana","cabelo","cabide","cabo","cabrito","cacau","cacetada","cachorro","cacique","cadastro","cadeado","cafezal","caiaque","caipira","caixote","cajado","caju","calafrio","calcular","caldeira","calibrar","calmante","calota","camada","cambista","camisa","camomila","campanha","camuflar","canavial","cancelar","caneta","canguru","canhoto","canivete","canoa","cansado","cantar","canudo","capacho","capela","capinar","capotar","capricho","captador","capuz","caracol","carbono","cardeal","careca","carimbar","carneiro","carpete","carreira","cartaz","carvalho","casaco","casca","casebre","castelo","casulo","catarata","cativar","caule","causador","cautelar","cavalo","caverna","cebola","cedilha","cegonha","celebrar","celular","cenoura","censo","centeio","cercar","cerrado","certeiro","cerveja","cetim","cevada","chacota","chaleira","chamado","chapada","charme","chatice","chave","chefe","chegada","cheiro","cheque","chicote","chifre","chinelo","chocalho","chover","chumbo","chutar","chuva","cicatriz","ciclone","cidade","cidreira","ciente","cigana","cimento","cinto","cinza","ciranda","circuito","cirurgia","citar","clareza","clero","clicar","clone","clube","coado","coagir","cobaia","cobertor","cobrar","cocada","coelho","coentro","coeso","cogumelo","coibir","coifa","coiote","colar","coleira","colher","colidir","colmeia","colono","coluna","comando","combinar","comentar","comitiva","comover","complexo","comum","concha","condor","conectar","confuso","congelar","conhecer","conjugar","consumir","contrato","convite","cooperar","copeiro","copiador","copo","coquetel","coragem","cordial","corneta","coronha","corporal","correio","cortejo","coruja","corvo","cosseno","costela","cotonete","couro","couve","covil","cozinha","cratera","cravo","creche","credor","creme","crer","crespo","criada","criminal","crioulo","crise","criticar","crosta","crua","cruzeiro","cubano","cueca","cuidado","cujo","culatra","culminar","culpar","cultura","cumprir","cunhado","cupido","curativo","curral","cursar","curto","cuspir","custear","cutelo","damasco","datar","debater","debitar","deboche","debulhar","decalque","decimal","declive","decote","decretar","dedal","dedicado","deduzir","defesa","defumar","degelo","degrau","degustar","deitado","deixar","delator","delegado","delinear","delonga","demanda","demitir","demolido","dentista","depenado","depilar","depois","depressa","depurar","deriva","derramar","desafio","desbotar","descanso","desenho","desfiado","desgaste","desigual","deslize","desmamar","desova","despesa","destaque","desviar","detalhar","detentor","detonar","detrito","deusa","dever","devido","devotado","dezena","diagrama","dialeto","didata","difuso","digitar","dilatado","diluente","diminuir","dinastia","dinheiro","diocese","direto","discreta","disfarce","disparo","disquete","dissipar","distante","ditador","diurno","diverso","divisor","divulgar","dizer","dobrador","dolorido","domador","dominado","donativo","donzela","dormente","dorsal","dosagem","dourado","doutor","drenagem","drible","drogaria","duelar","duende","dueto","duplo","duquesa","durante","duvidoso","eclodir","ecoar","ecologia","edificar","edital","educado","efeito","efetivar","ejetar","elaborar","eleger","eleitor","elenco","elevador","eliminar","elogiar","embargo","embolado","embrulho","embutido","emenda","emergir","emissor","empatia","empenho","empinado","empolgar","emprego","empurrar","emulador","encaixe","encenado","enchente","encontro","endeusar","endossar","enfaixar","enfeite","enfim","engajado","engenho","englobar","engomado","engraxar","enguia","enjoar","enlatar","enquanto","enraizar","enrolado","enrugar","ensaio","enseada","ensino","ensopado","entanto","enteado","entidade","entortar","entrada","entulho","envergar","enviado","envolver","enxame","enxerto","enxofre","enxuto","epiderme","equipar","ereto","erguido","errata","erva","ervilha","esbanjar","esbelto","escama","escola","escrita","escuta","esfinge","esfolar","esfregar","esfumado","esgrima","esmalte","espanto","espelho","espiga","esponja","espreita","espumar","esquerda","estaca","esteira","esticar","estofado","estrela","estudo","esvaziar","etanol","etiqueta","euforia","europeu","evacuar","evaporar","evasivo","eventual","evidente","evoluir","exagero","exalar","examinar","exato","exausto","excesso","excitar","exclamar","executar","exemplo","exibir","exigente","exonerar","expandir","expelir","expirar","explanar","exposto","expresso","expulsar","externo","extinto","extrato","fabricar","fabuloso","faceta","facial","fada","fadiga","faixa","falar","falta","familiar","fandango","fanfarra","fantoche","fardado","farelo","farinha","farofa","farpa","fartura","fatia","fator","favorita","faxina","fazenda","fechado","feijoada","feirante","felino","feminino","fenda","feno","fera","feriado","ferrugem","ferver","festejar","fetal","feudal","fiapo","fibrose","ficar","ficheiro","figurado","fileira","filho","filme","filtrar","firmeza","fisgada","fissura","fita","fivela","fixador","fixo","flacidez","flamingo","flanela","flechada","flora","flutuar","fluxo","focal","focinho","fofocar","fogo","foguete","foice","folgado","folheto","forjar","formiga","forno","forte","fosco","fossa","fragata","fralda","frango","frasco","fraterno","freira","frente","fretar","frieza","friso","fritura","fronha","frustrar","fruteira","fugir","fulano","fuligem","fundar","fungo","funil","furador","furioso","futebol","gabarito","gabinete","gado","gaiato","gaiola","gaivota","galega","galho","galinha","galocha","ganhar","garagem","garfo","gargalo","garimpo","garoupa","garrafa","gasoduto","gasto","gata","gatilho","gaveta","gazela","gelado","geleia","gelo","gemada","gemer","gemido","generoso","gengiva","genial","genoma","genro","geologia","gerador","germinar","gesso","gestor","ginasta","gincana","gingado","girafa","girino","glacial","glicose","global","glorioso","goela","goiaba","golfe","golpear","gordura","gorjeta","gorro","gostoso","goteira","governar","gracejo","gradual","grafite","gralha","grampo","granada","gratuito","graveto","graxa","grego","grelhar","greve","grilo","grisalho","gritaria","grosso","grotesco","grudado","grunhido","gruta","guache","guarani","guaxinim","guerrear","guiar","guincho","guisado","gula","guloso","guru","habitar","harmonia","haste","haver","hectare","herdar","heresia","hesitar","hiato","hibernar","hidratar","hiena","hino","hipismo","hipnose","hipoteca","hoje","holofote","homem","honesto","honrado","hormonal","hospedar","humorado","iate","ideia","idoso","ignorado","igreja","iguana","ileso","ilha","iludido","iluminar","ilustrar","imagem","imediato","imenso","imersivo","iminente","imitador","imortal","impacto","impedir","implante","impor","imprensa","impune","imunizar","inalador","inapto","inativo","incenso","inchar","incidir","incluir","incolor","indeciso","indireto","indutor","ineficaz","inerente","infantil","infestar","infinito","inflamar","informal","infrator","ingerir","inibido","inicial","inimigo","injetar","inocente","inodoro","inovador","inox","inquieto","inscrito","inseto","insistir","inspetor","instalar","insulto","intacto","integral","intimar","intocado","intriga","invasor","inverno","invicto","invocar","iogurte","iraniano","ironizar","irreal","irritado","isca","isento","isolado","isqueiro","italiano","janeiro","jangada","janta","jararaca","jardim","jarro","jasmim","jato","javali","jazida","jejum","joaninha","joelhada","jogador","joia","jornal","jorrar","jovem","juba","judeu","judoca","juiz","julgador","julho","jurado","jurista","juro","justa","labareda","laboral","lacre","lactante","ladrilho","lagarta","lagoa","laje","lamber","lamentar","laminar","lampejo","lanche","lapidar","lapso","laranja","lareira","largura","lasanha","lastro","lateral","latido","lavanda","lavoura","lavrador","laxante","lazer","lealdade","lebre","legado","legendar","legista","leigo","leiloar","leitura","lembrete","leme","lenhador","lentilha","leoa","lesma","leste","letivo","letreiro","levar","leveza","levitar","liberal","libido","liderar","ligar","ligeiro","limitar","limoeiro","limpador","linda","linear","linhagem","liquidez","listagem","lisura","litoral","livro","lixa","lixeira","locador","locutor","lojista","lombo","lona","longe","lontra","lorde","lotado","loteria","loucura","lousa","louvar","luar","lucidez","lucro","luneta","lustre","lutador","luva","macaco","macete","machado","macio","madeira","madrinha","magnata","magreza","maior","mais","malandro","malha","malote","maluco","mamilo","mamoeiro","mamute","manada","mancha","mandato","manequim","manhoso","manivela","manobrar","mansa","manter","manusear","mapeado","maquinar","marcador","maresia","marfim","margem","marinho","marmita","maroto","marquise","marreco","martelo","marujo","mascote","masmorra","massagem","mastigar","matagal","materno","matinal","matutar","maxilar","medalha","medida","medusa","megafone","meiga","melancia","melhor","membro","memorial","menino","menos","mensagem","mental","merecer","mergulho","mesada","mesclar","mesmo","mesquita","mestre","metade","meteoro","metragem","mexer","mexicano","micro","migalha","migrar","milagre","milenar","milhar","mimado","minerar","minhoca","ministro","minoria","miolo","mirante","mirtilo","misturar","mocidade","moderno","modular","moeda","moer","moinho","moita","moldura","moleza","molho","molinete","molusco","montanha","moqueca","morango","morcego","mordomo","morena","mosaico","mosquete","mostarda","motel","motim","moto","motriz","muda","muito","mulata","mulher","multar","mundial","munido","muralha","murcho","muscular","museu","musical","nacional","nadador","naja","namoro","narina","narrado","nascer","nativa","natureza","navalha","navegar","navio","neblina","nebuloso","negativa","negociar","negrito","nervoso","neta","neural","nevasca","nevoeiro","ninar","ninho","nitidez","nivelar","nobreza","noite","noiva","nomear","nominal","nordeste","nortear","notar","noticiar","noturno","novelo","novilho","novo","nublado","nudez","numeral","nupcial","nutrir","nuvem","obcecado","obedecer","objetivo","obrigado","obscuro","obstetra","obter","obturar","ocidente","ocioso","ocorrer","oculista","ocupado","ofegante","ofensiva","oferenda","oficina","ofuscado","ogiva","olaria","oleoso","olhar","oliveira","ombro","omelete","omisso","omitir","ondulado","oneroso","ontem","opcional","operador","oponente","oportuno","oposto","orar","orbitar","ordem","ordinal","orfanato","orgasmo","orgulho","oriental","origem","oriundo","orla","ortodoxo","orvalho","oscilar","ossada","osso","ostentar","otimismo","ousadia","outono","outubro","ouvido","ovelha","ovular","oxidar","oxigenar","pacato","paciente","pacote","pactuar","padaria","padrinho","pagar","pagode","painel","pairar","paisagem","palavra","palestra","palheta","palito","palmada","palpitar","pancada","panela","panfleto","panqueca","pantanal","papagaio","papelada","papiro","parafina","parcial","pardal","parede","partida","pasmo","passado","pastel","patamar","patente","patinar","patrono","paulada","pausar","peculiar","pedalar","pedestre","pediatra","pedra","pegada","peitoral","peixe","pele","pelicano","penca","pendurar","peneira","penhasco","pensador","pente","perceber","perfeito","pergunta","perito","permitir","perna","perplexo","persiana","pertence","peruca","pescado","pesquisa","pessoa","petiscar","piada","picado","piedade","pigmento","pilastra","pilhado","pilotar","pimenta","pincel","pinguim","pinha","pinote","pintar","pioneiro","pipoca","piquete","piranha","pires","pirueta","piscar","pistola","pitanga","pivete","planta","plaqueta","platina","plebeu","plumagem","pluvial","pneu","poda","poeira","poetisa","polegada","policiar","poluente","polvilho","pomar","pomba","ponderar","pontaria","populoso","porta","possuir","postal","pote","poupar","pouso","povoar","praia","prancha","prato","praxe","prece","predador","prefeito","premiar","prensar","preparar","presilha","pretexto","prevenir","prezar","primata","princesa","prisma","privado","processo","produto","profeta","proibido","projeto","prometer","propagar","prosa","protetor","provador","publicar","pudim","pular","pulmonar","pulseira","punhal","punir","pupilo","pureza","puxador","quadra","quantia","quarto","quase","quebrar","queda","queijo","quente","querido","quimono","quina","quiosque","rabanada","rabisco","rachar","racionar","radial","raiar","rainha","raio","raiva","rajada","ralado","ramal","ranger","ranhura","rapadura","rapel","rapidez","raposa","raquete","raridade","rasante","rascunho","rasgar","raspador","rasteira","rasurar","ratazana","ratoeira","realeza","reanimar","reaver","rebaixar","rebelde","rebolar","recado","recente","recheio","recibo","recordar","recrutar","recuar","rede","redimir","redonda","reduzida","reenvio","refinar","refletir","refogar","refresco","refugiar","regalia","regime","regra","reinado","reitor","rejeitar","relativo","remador","remendo","remorso","renovado","reparo","repelir","repleto","repolho","represa","repudiar","requerer","resenha","resfriar","resgatar","residir","resolver","respeito","ressaca","restante","resumir","retalho","reter","retirar","retomada","retratar","revelar","revisor","revolta","riacho","rica","rigidez","rigoroso","rimar","ringue","risada","risco","risonho","robalo","rochedo","rodada","rodeio","rodovia","roedor","roleta","romano","roncar","rosado","roseira","rosto","rota","roteiro","rotina","rotular","rouco","roupa","roxo","rubro","rugido","rugoso","ruivo","rumo","rupestre","russo","sabor","saciar","sacola","sacudir","sadio","safira","saga","sagrada","saibro","salada","saleiro","salgado","saliva","salpicar","salsicha","saltar","salvador","sambar","samurai","sanar","sanfona","sangue","sanidade","sapato","sarda","sargento","sarjeta","saturar","saudade","saxofone","sazonal","secar","secular","seda","sedento","sediado","sedoso","sedutor","segmento","segredo","segundo","seiva","seleto","selvagem","semanal","semente","senador","senhor","sensual","sentado","separado","sereia","seringa","serra","servo","setembro","setor","sigilo","silhueta","silicone","simetria","simpatia","simular","sinal","sincero","singular","sinopse","sintonia","sirene","siri","situado","soberano","sobra","socorro","sogro","soja","solda","soletrar","solteiro","sombrio","sonata","sondar","sonegar","sonhador","sono","soprano","soquete","sorrir","sorteio","sossego","sotaque","soterrar","sovado","sozinho","suavizar","subida","submerso","subsolo","subtrair","sucata","sucesso","suco","sudeste","sufixo","sugador","sugerir","sujeito","sulfato","sumir","suor","superior","suplicar","suposto","suprimir","surdina","surfista","surpresa","surreal","surtir","suspiro","sustento","tabela","tablete","tabuada","tacho","tagarela","talher","talo","talvez","tamanho","tamborim","tampa","tangente","tanto","tapar","tapioca","tardio","tarefa","tarja","tarraxa","tatuagem","taurino","taxativo","taxista","teatral","tecer","tecido","teclado","tedioso","teia","teimar","telefone","telhado","tempero","tenente","tensor","tentar","termal","terno","terreno","tese","tesoura","testado","teto","textura","texugo","tiara","tigela","tijolo","timbrar","timidez","tingido","tinteiro","tiragem","titular","toalha","tocha","tolerar","tolice","tomada","tomilho","tonel","tontura","topete","tora","torcido","torneio","torque","torrada","torto","tostar","touca","toupeira","toxina","trabalho","tracejar","tradutor","trafegar","trajeto","trama","trancar","trapo","traseiro","tratador","travar","treino","tremer","trepidar","trevo","triagem","tribo","triciclo","tridente","trilogia","trindade","triplo","triturar","triunfal","trocar","trombeta","trova","trunfo","truque","tubular","tucano","tudo","tulipa","tupi","turbo","turma","turquesa","tutelar","tutorial","uivar","umbigo","unha","unidade","uniforme","urologia","urso","urtiga","urubu","usado","usina","usufruir","vacina","vadiar","vagaroso","vaidoso","vala","valente","validade","valores","vantagem","vaqueiro","varanda","vareta","varrer","vascular","vasilha","vassoura","vazar","vazio","veado","vedar","vegetar","veicular","veleiro","velhice","veludo","vencedor","vendaval","venerar","ventre","verbal","verdade","vereador","vergonha","vermelho","verniz","versar","vertente","vespa","vestido","vetorial","viaduto","viagem","viajar","viatura","vibrador","videira","vidraria","viela","viga","vigente","vigiar","vigorar","vilarejo","vinco","vinheta","vinil","violeta","virada","virtude","visitar","visto","vitral","viveiro","vizinho","voador","voar","vogal","volante","voleibol","voltagem","volumoso","vontade","vulto","vuvuzela","xadrez","xarope","xeque","xeretar","xerife","xingar","zangado","zarpar","zebu","zelador","zombar","zoologia","zumbido"]')},659:D=>{D.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},8597:D=>{D.exports={i8:"6.5.4"}}},__webpack_module_cache__={};function __webpack_require__(D){var e=__webpack_module_cache__[D];if(e!==void 0)return e.exports;var h=__webpack_module_cache__[D]={id:D,loaded:!1,exports:{}};return __webpack_modules__[D].call(h.exports,h,h.exports,__webpack_require__),h.loaded=!0,h.exports}__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),__webpack_require__.nmd=D=>(D.paths=[],D.children||(D.children=[]),D);var __webpack_exports__=__webpack_require__(3607);return __webpack_exports__})())})(browser);var browserExports=browser.exports;const DEFAULT_SECRET_LCD_ENDPOINT="https://lcd.secret.express/",SECRET_MAINNET_CHAIN_ID="secret-4",getSecretNetworkClient$=({lcdEndpoint:D,chainId:e,walletAccount:h})=>createFetchClient(defer(()=>of(h?{client:new browserExports.SecretNetworkClient({url:D,wallet:h.signer,walletAddress:h.walletAddress,chainId:e,encryptionUtils:h.encryptionUtils,encryptionSeed:h.encryptionSeed}),endpoint:D,chainId:e}:{client:new browserExports.SecretNetworkClient({url:D,chainId:e}),endpoint:D,chainId:e})));let activeClient;function getActiveQueryClient$(D,e){return activeClient&&D&&D===activeClient.endpoint&&e&&e===activeClient.chainId?of(activeClient):getSecretNetworkClient$({lcdEndpoint:D??DEFAULT_SECRET_LCD_ENDPOINT,chainId:e??SECRET_MAINNET_CHAIN_ID}).pipe(tap(({client:h})=>{activeClient={client:h,endpoint:D??DEFAULT_SECRET_LCD_ENDPOINT,chainId:e??SECRET_MAINNET_CHAIN_ID}}),first())}function parseBatchQuery(D){const{responses:e}=D.batch;return e.map(h=>({id:decodeB64ToJson(h.id),response:decodeB64ToJson(h.response.response)}))}const batchQuery$=({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w,queries:O})=>getActiveQueryClient$(h,w).pipe(switchMap(({client:k})=>sendSecretClientContractQuery$({queryMsg:msgBatchQuery(O),client:k,contractAddress:D,codeHash:e})),map(k=>parseBatchQuery(k)),first());async function batchQuery({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w,queries:O}){return lastValueFrom(batchQuery$({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w,queries:O}))}const parsePriceFromContract=D=>({oracleKey:D.key,rate:D.data.rate,lastUpdatedBase:D.data.last_updated_base,lastUpdatedQuote:D.data.last_updated_quote});function parsePricesFromContract(D){return D.reduce((e,h)=>({...e,[h.key]:{oracleKey:h.key,rate:h.data.rate,lastUpdatedBase:h.data.last_updated_base,lastUpdatedQuote:h.data.last_updated_quote}}),{})}const queryPrice$=({contractAddress:D,codeHash:e,oracleKey:h,lcdEndpoint:w,chainId:O})=>getActiveQueryClient$(w,O).pipe(switchMap(({client:k})=>sendSecretClientContractQuery$({queryMsg:msgQueryOraclePrice(h),client:k,contractAddress:D,codeHash:e})),map(k=>parsePriceFromContract(k)),first());async function queryPrice({contractAddress:D,codeHash:e,oracleKey:h,lcdEndpoint:w,chainId:O}){return lastValueFrom(queryPrice$({contractAddress:D,codeHash:e,oracleKey:h,lcdEndpoint:w,chainId:O}))}const queryPrices$=({contractAddress:D,codeHash:e,oracleKeys:h,lcdEndpoint:w,chainId:O})=>getActiveQueryClient$(w,O).pipe(switchMap(({client:k})=>sendSecretClientContractQuery$({queryMsg:msgQueryOraclePrices(h),client:k,contractAddress:D,codeHash:e})),map(k=>parsePricesFromContract(k)),first());async function queryPrices({contractAddress:D,codeHash:e,oracleKeys:h,lcdEndpoint:w,chainId:O}){return lastValueFrom(queryPrices$({contractAddress:D,codeHash:e,oracleKeys:h,lcdEndpoint:w,chainId:O}))}const parseTokenInfo=D=>({name:D.token_info.name,symbol:D.token_info.symbol,decimals:D.token_info.decimals,totalSupply:D.token_info.total_supply}),parseBalance=D=>D.balance.amount,querySnip20TokenInfo$=({snip20ContractAddress:D,snip20CodeHash:e,lcdEndpoint:h,chainId:w})=>getActiveQueryClient$(h,w).pipe(switchMap(({client:O})=>sendSecretClientContractQuery$({queryMsg:snip20.queries.tokenInfo(),client:O,contractAddress:D,codeHash:e})),map(O=>parseTokenInfo(O)),first());async function querySnip20TokenInfo({snip20ContractAddress:D,snip20CodeHash:e,lcdEndpoint:h,chainId:w}){return lastValueFrom(querySnip20TokenInfo$({snip20ContractAddress:D,snip20CodeHash:e,lcdEndpoint:h,chainId:w}))}const querySnip20Balance$=({snip20ContractAddress:D,snip20CodeHash:e,userAddress:h,viewingKey:w,lcdEndpoint:O,chainId:k})=>getActiveQueryClient$(O,k).pipe(switchMap(({client:S})=>sendSecretClientContractQuery$({queryMsg:snip20.queries.getBalance(h,w),client:S,contractAddress:D,codeHash:e})),map(S=>parseBalance(S)),first());async function querySnip20Balance({snip20ContractAddress:D,snip20CodeHash:e,userAddress:h,viewingKey:w,lcdEndpoint:O,chainId:k}){return lastValueFrom(querySnip20Balance$({snip20ContractAddress:D,snip20CodeHash:e,userAddress:h,viewingKey:w,lcdEndpoint:O,chainId:k}))}function parseFactoryConfig(D){const{get_config:e}=D,{amm_settings:h}=e;return{pairContractInstatiationInfo:{codeHash:e.pair_contract.code_hash,id:e.pair_contract.id},lpTokenContractInstatiationInfo:{codeHash:e.lp_token_contract.code_hash,id:e.lp_token_contract.id},adminAuthContract:{address:e.admin_auth.address,codeHash:e.admin_auth.code_hash},authenticatorContract:e.authenticator?{address:e.authenticator.address,codeHash:e.authenticator.code_hash}:null,defaultPairSettings:{lpFee:h.lp_fee.nom/h.lp_fee.denom,daoFee:h.shade_dao_fee.nom/h.shade_dao_fee.denom,stableLpFee:h.stable_lp_fee.nom/h.stable_lp_fee.denom,stableDaoFee:h.stable_shade_dao_fee.nom/h.stable_shade_dao_fee.denom,daoContract:{address:h.shade_dao_address.address,codeHash:h.shade_dao_address.code_hash}}}}function parseFactoryPairs({response:D,startingIndex:e,limit:h}){const{amm_pairs:w}=D.list_a_m_m_pairs;return{pairs:w.map(k=>({pairContract:{address:k.address,codeHash:k.code_hash},token0Contract:{address:k.pair[0].custom_token.contract_addr,codeHash:k.pair[0].custom_token.token_code_hash},token1Contract:{address:k.pair[1].custom_token.contract_addr,codeHash:k.pair[1].custom_token.token_code_hash},isStable:k.pair[2],isEnabled:k.enabled})),startIndex:e,endIndex:e+h-1}}function parsePairConfig(D){const{get_config:{factory_contract:e,lp_token:h,staking_contract:w,pair:O,custom_fee:k}}=D;return{factoryContract:e?{address:e.address,codeHash:e.code_hash}:null,lpTokenContract:h?{address:h.address,codeHash:h.code_hash}:null,stakingContract:w?{address:w.address,codeHash:w.code_hash}:null,token0Contract:{address:O[0].custom_token.contract_addr,codeHash:O[0].custom_token.token_code_hash},token1Contract:{address:O[1].custom_token.contract_addr,codeHash:O[1].custom_token.token_code_hash},isStable:O[2],fee:k?{lpFee:k.lp_fee.nom/k.lp_fee.denom,daoFee:k.shade_dao_fee.nom/k.shade_dao_fee.denom}:null}}function parsePairInfo(D){const{get_pair_info:e}=D,{fee_info:h,stable_info:w}=e;return{token0Contract:{address:e.pair[0].custom_token.contract_addr,codeHash:e.pair[0].custom_token.token_code_hash},token1Contract:{address:e.pair[1].custom_token.contract_addr,codeHash:e.pair[1].custom_token.token_code_hash},lpTokenContract:{address:e.liquidity_token.address,codeHash:e.liquidity_token.code_hash},factoryContract:e.factory?{address:e.factory.address,codeHash:e.factory.code_hash}:null,daoContractAddress:h.shade_dao_address,isStable:e.pair[2],token0Amount:e.amount_0,token1Amount:e.amount_1,lpTokenAmount:e.total_liquidity,lpFee:e.pair[2]?h.stable_lp_fee.nom/h.stable_lp_fee.denom:h.lp_fee.nom/h.lp_fee.denom,daoFee:e.pair[2]?h.stable_shade_dao_fee.nom/h.stable_shade_dao_fee.denom:h.shade_dao_fee.nom/h.shade_dao_fee.denom,stableParams:w?{priceRatio:w.p,alpha:w.stable_params.a,gamma1:w.stable_params.gamma1,gamma2:w.stable_params.gamma2,oracle:{address:w.stable_params.oracle.address,codeHash:w.stable_params.oracle.code_hash},token0Data:{oracleKey:w.stable_token0_data.oracle_key,decimals:w.stable_token0_data.decimals},token1Data:{oracleKey:w.stable_token1_data.oracle_key,decimals:w.stable_token1_data.decimals},minTradeSizeXForY:w.stable_params.min_trade_size_x_for_y,minTradeSizeYForX:w.stable_params.min_trade_size_y_for_x,maxPriceImpactAllowed:w.stable_params.max_price_impact_allowed,customIterationControls:w.stable_params.custom_iteration_controls?{epsilon:w.stable_params.custom_iteration_controls.epsilon,maxIteratorNewton:w.stable_params.custom_iteration_controls.max_iter_newton,maxIteratorBisect:w.stable_params.custom_iteration_controls.max_iter_bisect}:null}:null,contractVersion:e.contract_version}}const parseBatchQueryPairInfoResponse=D=>D.map(e=>({pairContractAddress:e.id,pairInfo:parsePairInfo(e.response)})),parseBatchQueryPairConfigResponse=D=>D.map(e=>({pairContractAddress:e.id,pairConfig:parsePairConfig(e.response)}));function parseStakingInfo(D){const{lp_token:e,amm_pair:h,admin_auth:w,query_auth:O,total_amount_staked:k,reward_tokens:S}=D;return{lpTokenContract:{address:e.address,codeHash:e.code_hash},pairContractAddress:h,adminAuthContract:{address:w.address,codeHash:w.code_hash},queryAuthContract:O?{address:O.address,codeHash:O.code_hash}:null,totalStakedAmount:k,rewardTokens:S.map(a=>({token:{address:a.token.address,codeHash:a.token.code_hash},rewardPerSecond:a.reward_per_second,rewardPerStakedToken:a.reward_per_staked_token,validTo:a.valid_to,lastUpdated:a.last_updated}))}}const parseBatchQueryStakingInfoResponse=D=>D.map(e=>({stakingContractAddress:e.id,stakingInfo:parseStakingInfo(e.response)})),parseSwapResponse=D=>{let e,h,w,O;const k=D.transactionHash,{jsonLog:S}=D;if(S!==void 0&&S.length>0){const a=S[0].events.find(t=>t.type==="wasm");if(a===void 0)return{txHash:k,inputTokenAddress:e,outputTokenAddress:h,inputTokenAmount:w,outputTokenAmount:O};a.attributes.forEach(t=>{t.key.trim()==="amount_out"?O=t.value.trim():t.key.trim()==="amount_in"&&w===void 0?w=t.value.trim():t.key.trim()==="token_out_key"?h=t.value.trim():t.key.trim()==="token_in_key"&&e===void 0&&(e=t.value.trim())})}return{txHash:k,inputTokenAddress:e,outputTokenAddress:h,inputTokenAmount:w,outputTokenAmount:O}},queryFactoryConfig$=({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w})=>getActiveQueryClient$(h,w).pipe(switchMap(({client:O})=>sendSecretClientContractQuery$({queryMsg:msgQueryFactoryConfig(),client:O,contractAddress:D,codeHash:e})),map(O=>parseFactoryConfig(O)),first());async function queryFactoryConfig({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w}){return lastValueFrom(queryFactoryConfig$({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w}))}const queryFactoryPairs$=({contractAddress:D,codeHash:e,startingIndex:h,limit:w,lcdEndpoint:O,chainId:k})=>getActiveQueryClient$(O,k).pipe(switchMap(({client:S})=>sendSecretClientContractQuery$({queryMsg:msgQueryFactoryPairs(h,w),client:S,contractAddress:D,codeHash:e})),map(S=>parseFactoryPairs({response:S,startingIndex:h,limit:w})),first());async function queryFactoryPairs({contractAddress:D,codeHash:e,startingIndex:h,limit:w,lcdEndpoint:O,chainId:k}){return lastValueFrom(queryFactoryPairs$({contractAddress:D,codeHash:e,startingIndex:h,limit:w,lcdEndpoint:O,chainId:k}))}const queryPairConfig$=({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w})=>getActiveQueryClient$(h,w).pipe(switchMap(({client:O})=>sendSecretClientContractQuery$({queryMsg:msgQueryPairConfig(),client:O,contractAddress:D,codeHash:e})),map(O=>parsePairConfig(O)),first());async function queryPairConfig({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w}){return lastValueFrom(queryPairConfig$({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w}))}function batchQueryPairsInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,pairsContracts:O}){const k=O.map(S=>({id:S.address,contract:{address:S.address,codeHash:S.codeHash},queryMsg:msgQueryPairInfo()}));return batchQuery$({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w,queries:k}).pipe(map(parseBatchQueryPairInfoResponse),first())}async function batchQueryPairsInfo({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,pairsContracts:O}){return lastValueFrom(batchQueryPairsInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,pairsContracts:O}))}function batchQueryPairsConfig$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,pairsContracts:O}){const k=O.map(S=>({id:S.address,contract:{address:S.address,codeHash:S.codeHash},queryMsg:msgQueryPairConfig()}));return batchQuery$({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w,queries:k}).pipe(map(parseBatchQueryPairConfigResponse),first())}async function batchQueryPairsConfig({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,pairsContracts:O}){return lastValueFrom(batchQueryPairsConfig$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,pairsContracts:O}))}function batchQueryStakingInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,stakingContracts:O}){const k=O.map(S=>({id:S.address,contract:{address:S.address,codeHash:S.codeHash},queryMsg:msgQueryStakingConfig()}));return batchQuery$({contractAddress:D,codeHash:e,lcdEndpoint:h,chainId:w,queries:k}).pipe(map(parseBatchQueryStakingInfoResponse),first())}async function batchQueryStakingInfo({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,stakingContracts:O}){return lastValueFrom(batchQueryStakingInfo$({queryRouterContractAddress:D,queryRouterCodeHash:e,lcdEndpoint:h,chainId:w,stakingContracts:O}))}class NewtonMethodError extends Error{constructor(e){super(e),this.name="NewtonMethodError"}}function newton({f:D,df:e,initialGuess:h,epsilon:w,maxIterations:O}){let k=h;for(let S=0;Sthis.invariantFnFromPoolSizes(h,S),O=S=>this.derivRespectToPool1OfInvFn(h,S);return this.findZeroWithPool1Params(w,O).multipliedBy(this.invariant).dividedBy(this.priceOfToken1)}solveInvFnForPool0Size(e){const h=e.dividedBy(this.invariant),w=S=>this.invariantFnFromPoolSizes(S,h),O=S=>this.derivRespectToPool0OfInvFnFromPool0(S,h);return this.findZeroWithPool0Params(w,O).multipliedBy(this.invariant)}swapToken0WithToken1(e){const h=this.simulateToken0WithToken1Trade(e);return this.executeTrade(h)}swapToken1WithToken0(e){const h=this.simulateToken1WithToken0Trade(e);return this.executeTrade(h)}executeTrade(e){return this.pool0Size=e.newPool0,this.pool1Size=e.newPool1,this.calculateInvariant(),e.tradeReturn}simulateReverseToken0WithToken1Trade(e){const h=this.lpFee.multipliedBy(e),w=this.shadeDaoFee.multipliedBy(e),O=h.plus(w),k=e.minus(O),S=this.pool1Size.minus(e),a=S.multipliedBy(this.priceOfToken1),t=this.solveInvFnForPool0Size(a);this.verifySwapPriceImpactInBounds({pool0Size:t,pool1Size:S,tradeDirIs0For1:!0});const c=t.minus(this.pool0Size);verifySwapAmountInBounds(c,this.minTradeSize0For1);const u=S.plus(h);return{newPool0:t,newPool1:u,tradeInput:c,tradeReturn:k,lpFeeAmount:h,shadeDaoFeeAmount:w}}simulateReverseToken1WithToken0Trade(e){const h=this.lpFee.multipliedBy(e),w=this.shadeDaoFee.multipliedBy(e),O=h.plus(w),k=e.minus(O),S=this.pool0Size.minus(e),a=this.solveInvFnForPool1Size(S);this.verifySwapPriceImpactInBounds({pool0Size:S,pool1Size:a,tradeDirIs0For1:!1});const t=a.minus(this.pool1Size);return verifySwapAmountInBounds(t,this.minTradeSize1For0),{newPool0:S.plus(h),newPool1:a,tradeInput:t,tradeReturn:k,lpFeeAmount:h,shadeDaoFeeAmount:w}}simulateToken0WithToken1Trade(e){verifySwapAmountInBounds(e,this.minTradeSize0For1);const h=this.pool0Size.plus(e),w=this.solveInvFnForPool1Size(h);this.verifySwapPriceImpactInBounds({pool0Size:h,pool1Size:w,tradeDirIs0For1:!0});const O=this.pool1Size.minus(w),k=this.lpFee.multipliedBy(O),S=this.shadeDaoFee.multipliedBy(O),a=w.plus(k);return{newPool0:h,newPool1:a,tradeReturn:O.minus(k).minus(S),lpFeeAmount:k,shadeDaoFeeAmount:S}}simulateToken1WithToken0Trade(e){verifySwapAmountInBounds(e,this.minTradeSize1For0);const h=this.pool1Size.plus(e),w=this.priceOfToken1.multipliedBy(h),O=this.solveInvFnForPool0Size(w);this.verifySwapPriceImpactInBounds({pool0Size:O,pool1Size:h,tradeDirIs0For1:!1});const k=this.pool0Size.minus(O),S=this.lpFee.multipliedBy(k),a=this.shadeDaoFee.multipliedBy(k);return{newPool0:O.plus(S),newPool1:h,tradeReturn:k.minus(S).minus(a),lpFeeAmount:S,shadeDaoFeeAmount:a}}verifySwapPriceImpactInBounds({pool0Size:e,pool1Size:h,tradeDirIs0For1:w}){const O=this.priceImpactAt({newPool0:e,newPool1:h,tradeDirIs0For1:w});if(O.isGreaterThan(this.priceImpactLimit)||O.isLessThan(BigNumber(0)))throw Error(`The slippage of this trade is outside of the acceptable range of 0% - ${this.priceImpactLimit}%.`)}priceImpactAt({newPool0:e,newPool1:h,tradeDirIs0For1:w}){const O=w?this.priceToken1():this.priceToken0();return(w?this.priceToken1At(e,h):this.priceToken0At(e,h)).dividedBy(O).minus(BigNumber(1)).multipliedBy(100)}priceImpactToken0ForToken1(e){const h=this.pool0Size.plus(e),w=this.solveInvFnForPool1Size(h);return this.priceImpactAt({newPool0:h,newPool1:w,tradeDirIs0For1:!0})}priceImpactToken1ForToken0(e){const h=this.pool1Size.plus(e),w=this.solveInvFnForPool0Size(this.priceOfToken1.multipliedBy(h));return this.priceImpactAt({newPool0:w,newPool1:h,tradeDirIs0For1:!1})}negativeTangent(e,h){return this.derivRespectToPool0OfInvFnFromPool0(e,h).dividedBy(this.derivRespectToPool1OfInvFn(e,h)).dividedBy(this.priceOfToken1)}priceToken1At(e,h){return BigNumber(1).dividedBy(this.negativeTangent(e.dividedBy(this.invariant),this.priceOfToken1.multipliedBy(h).dividedBy(this.invariant)))}priceToken1(){return this.priceToken1At(this.pool0Size,this.pool1Size)}priceToken0At(e,h){return this.negativeTangent(e.dividedBy(this.invariant),this.priceOfToken1.multipliedBy(h).dividedBy(this.invariant))}priceToken0(){return this.priceToken0At(this.pool0Size,this.pool1Size)}updatePriceOfToken1(e){this.priceOfToken1=e,this.calculateInvariant()}token1TvlInUnitsToken0(){return this.priceOfToken1.multipliedBy(this.pool1Size)}totalTvl(){return this.pool0Size.plus(this.token1TvlInUnitsToken0())}geometricMeanDoubled(){const e=this.token1TvlInUnitsToken0();return this.pool0Size.isLessThanOrEqualTo(BigNumber(1))||e.isLessThanOrEqualTo(BigNumber(1))?BigNumber(0):this.pool0Size.sqrt().multipliedBy(e.sqrt()).multipliedBy(BigNumber(2))}calculateInvariant(){const e=this.token1TvlInUnitsToken0(),h=this.pool0Size.isLessThanOrEqualTo(e)?this.gamma1:this.gamma2,w=S=>this.invariantFnFromInv(S,h),O=S=>this.derivRespectToInvOfInvFn(S,h),k=this.findZeroWithInvariantParams(w,O);return this.invariant=k,k}invariantFnFromInv(e,h){const w=this.token1TvlInUnitsToken0(),k=this.getCoeffScaledByInv({invariant:e,gamma:h,pool1SizeInUnitsPool0:w}).multipliedBy(e.multipliedBy(this.pool0Size.plus(w.minus(e)))),S=this.pool0Size.multipliedBy(w),a=e.multipliedBy(e).dividedBy(4);return k.plus(S).minus(a)}derivRespectToInvOfInvFn(e,h){const w=this.token1TvlInUnitsToken0(),O=this.getCoeffScaledByInv({invariant:e,gamma:h,pool1SizeInUnitsPool0:w}),k=BigNumber(-2).multipliedBy(h).plus(1).multipliedBy(this.pool0Size.minus(e).plus(w)).minus(e);return O.multipliedBy(k).minus(e.dividedBy(2))}getCoeffScaledByInv({invariant:e,gamma:h,pool1SizeInUnitsPool0:w}){return this.alpha.multipliedBy(BigNumber(4).multipliedBy(this.pool0Size.dividedBy(e)).multipliedBy(w.dividedBy(e)).pow(h))}getCoeff({pool0Size:e,pool1SizeInUnitsPool0:h,gamma:w}){const O=e.multipliedBy(h);return this.alpha.multipliedBy(BigNumber(4).multipliedBy(O).pow(w))}invariantFnFromPoolSizes(e,h){const w=e.isLessThanOrEqualTo(h)?this.gamma1:this.gamma2,O=e.multipliedBy(h);return this.getCoeff({pool0Size:e,pool1SizeInUnitsPool0:h,gamma:w}).multipliedBy(e.plus(h).minus(1)).plus(O).minus(.25)}derivRespectToPool0OfInvFnFromPool0(e,h){const w=e.isLessThanOrEqualTo(h)?this.gamma1:this.gamma2,O=this.getCoeff({pool0Size:e,pool1SizeInUnitsPool0:h,gamma:w}),k=w.multipliedBy(e.plus(h).minus(1)).dividedBy(e).plus(1);return O.multipliedBy(k).plus(h)}derivRespectToPool1OfInvFn(e,h){const w=e.isLessThanOrEqualTo(h)?this.gamma1:this.gamma2,O=this.getCoeff({pool0Size:e,pool1SizeInUnitsPool0:h,gamma:w}),k=w.multipliedBy(e.plus(h).minus(1).dividedBy(h)).plus(1);return O.multipliedBy(k).plus(e)}findZeroWithInvariantParams(e,h){const w=this.totalTvl();return calcZero({f:e,df:h,initialGuessNewton:w,upperBoundBisect:w,ignoreNegativeResult:!0,lazyLowerBoundBisect:this.geometricMeanDoubled,lowerBoundBisect:void 0})}findZeroWithPool0Params(e,h){const w=this.pool0Size.dividedBy(this.invariant);return calcZero({f:e,df:h,initialGuessNewton:w,upperBoundBisect:w,ignoreNegativeResult:!1,lazyLowerBoundBisect:void 0,lowerBoundBisect:BigNumber(0)})}findZeroWithPool1Params(e,h){const w=this.token1TvlInUnitsToken0().dividedBy(this.invariant);return calcZero({f:e,df:h,initialGuessNewton:w,upperBoundBisect:w,ignoreNegativeResult:!1,lazyLowerBoundBisect:void 0,lowerBoundBisect:BigNumber(0)})}}function constantProductSwapToken0for1({token0LiquidityAmount:D,token1LiquidityAmount:e,token0InputAmount:h,fee:w}){const O=e.minus(D.multipliedBy(e).dividedBy(D.plus(h))),k=O.minus(O.multipliedBy(w));return BigNumber(k.toFixed(0))}function constantProductReverseSwapToken0for1({token0LiquidityAmount:D,token1LiquidityAmount:e,token1OutputAmount:h,fee:w}){if(h.isGreaterThanOrEqualTo(e))throw Error("Not enough liquidity for swap");const O=D.multipliedBy(e).dividedBy(h.dividedBy(BigNumber(1).minus(w)).minus(e)).plus(D).multipliedBy(-1);return BigNumber(O.toFixed(0))}function constantProductPriceImpactToken0for1({token0LiquidityAmount:D,token1LiquidityAmount:e,token0InputAmount:h}){const w=D.dividedBy(e),O=D.multipliedBy(e),k=D.plus(h),S=O.dividedBy(k),a=e.minus(S);return h.dividedBy(a).dividedBy(w).minus(1)}function constantProductSwapToken1for0({token0LiquidityAmount:D,token1LiquidityAmount:e,token1InputAmount:h,fee:w}){const O=D.minus(D.multipliedBy(e).dividedBy(e.plus(h))),k=O.minus(O.multipliedBy(w));return BigNumber(k.toFixed(0))}function constantProductReverseSwapToken1for0({token0LiquidityAmount:D,token1LiquidityAmount:e,token0OutputAmount:h,fee:w}){if(h.isGreaterThanOrEqualTo(D))throw Error("Not enough liquidity for swap");const O=e.multipliedBy(D).dividedBy(h.dividedBy(BigNumber(1).minus(w)).minus(D)).plus(e).multipliedBy(-1);return BigNumber(O.toFixed(0))}function constantProductPriceImpactToken1for0({token0LiquidityAmount:D,token1LiquidityAmount:e,token1InputAmount:h}){const w=e.dividedBy(D),O=e.multipliedBy(D),k=e.plus(h),S=O.dividedBy(k),a=D.minus(S);return h.dividedBy(a).dividedBy(w).minus(1)}function stableSwapToken0for1({inputToken0Amount:D,poolToken0Amount:e,poolToken1Amount:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}return r().swapToken0WithToken1(D)}function stableReverseSwapToken0for1({outputToken1Amount:D,poolToken0Amount:e,poolToken1Amount:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=a.plus(t),o=D.dividedBy(BigNumber(1).minus(n));return r().simulateReverseToken0WithToken1Trade(o).tradeInput}function stableSwapToken1for0({inputToken1Amount:D,poolToken0Amount:e,poolToken1Amount:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}return r().swapToken1WithToken0(D)}function stableReverseSwapToken1for0({outputToken0Amount:D,poolToken0Amount:e,poolToken1Amount:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=a.plus(t),o=D.dividedBy(BigNumber(1).minus(n));return r().simulateReverseToken1WithToken0Trade(o).tradeInput}function stableSwapPriceImpactToken0For1({inputToken0Amount:D,poolToken0Amount:e,poolToken1Amount:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=r(),o=n.priceToken1(),f=n.swapToken0WithToken1(D).dividedBy(BigNumber(1).minus(a.plus(t)));return D.dividedBy(f).dividedBy(o).minus(1)}function stableSwapPriceImpactToken1For0({inputToken1Amount:D,poolToken0Amount:e,poolToken1Amount:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,liquidityProviderFee:a,daoFee:t,minTradeSizeToken0For1:c,minTradeSizeToken1For0:u,priceImpactLimit:s}){function r(){return BigNumber.set({DECIMAL_PLACES:30}),new StableConfig({pool0Size:e,pool1Size:h,priceRatio:w,alpha:O,gamma1:k,gamma2:S,lpFee:a,shadeDaoFee:t,minTradeSize0For1:c,minTradeSize1For0:u,priceImpactLimit:s})}const n=r(),o=n.priceToken0(),f=n.swapToken1WithToken0(D).dividedBy(BigNumber(1).minus(a.plus(t)));return D.dividedBy(f).dividedBy(o).minus(1)}var GasMultiplier=(D=>(D[D.STABLE=2.7]="STABLE",D[D.CONSTANT_PRODUCT=1]="CONSTANT_PRODUCT",D))(GasMultiplier||{});function getPossiblePaths({inputTokenContractAddress:D,outputTokenContractAddress:e,maxHops:h,pairs:w}){const O=[],k=[],S=new Set;function a(t,c){if(!(c>h)){if(t===e){k.push([...O]);return}Object.values(w).forEach(u=>{const{pairContractAddress:s,pairInfo:r}=u;S.has(s)||(r.token0Contract.address===t||r.token1Contract.address===t)&&(O.push(s),S.add(s),r.token0Contract.address===t?a(r.token1Contract.address,c+1):a(r.token0Contract.address,c+1),S.delete(s),O.pop())})}}return a(D,0),k}function calculateRoute({inputTokenAmount:D,inputTokenContractAddress:e,path:h,pairs:w,tokens:O}){const k=h.reduce((r,n)=>{const{outputTokenContractAddress:o,quoteOutputAmount:i,quoteShadeDaoFee:f,quotePriceImpact:d,quoteLPFee:p,gasMultiplier:_}=r;let b,I,l;const j=w.filter($=>$.pairContractAddress===n);if(j.length===0)throw new Error(`Pair ${n} not available`);if(j.length>1)throw new Error(`Duplicate ${n} pairs found`);const M=j[0],{pairInfo:{token0Contract:N,token1Contract:C,token0Amount:x,token1Amount:P,lpFee:v,daoFee:m,isStable:E,stableParams:B}}=M,T=getTokenDecimalsByTokenConfig(N.address,O),q=getTokenDecimalsByTokenConfig(C.address,O),te=convertCoinFromUDenom(x,T),re=convertCoinFromUDenom(P,q),ie=getTokenDecimalsByTokenConfig(o,O),J=convertCoinFromUDenom(i,ie);let ee;o===N.address?ee=C.address:ee=N.address;const G=getTokenDecimalsByTokenConfig(ee,O);if(E&&B)if(l=GasMultiplier.STABLE,o===N.address){const $={inputToken0Amount:J,poolToken0Amount:te,poolToken1Amount:re,priceRatio:BigNumber(B.priceRatio),alpha:BigNumber(B.alpha),gamma1:BigNumber(B.gamma1),gamma2:BigNumber(B.gamma2),liquidityProviderFee:BigNumber(v),daoFee:BigNumber(m),minTradeSizeToken0For1:BigNumber(B.minTradeSizeXForY),minTradeSizeToken1For0:BigNumber(B.minTradeSizeYForX),priceImpactLimit:BigNumber(B.maxPriceImpactAllowed)},W=stableSwapToken0for1($);b=BigNumber(convertCoinToUDenom(W,G)),I=stableSwapPriceImpactToken0For1($)}else if(o===C.address){const $={inputToken1Amount:J,poolToken0Amount:te,poolToken1Amount:re,priceRatio:BigNumber(B.priceRatio),alpha:BigNumber(B.alpha),gamma1:BigNumber(B.gamma1),gamma2:BigNumber(B.gamma2),liquidityProviderFee:BigNumber(v),daoFee:BigNumber(m),minTradeSizeToken0For1:BigNumber(B.minTradeSizeXForY),minTradeSizeToken1For0:BigNumber(B.minTradeSizeYForX),priceImpactLimit:BigNumber(B.maxPriceImpactAllowed)},W=stableSwapToken1for0($);b=BigNumber(convertCoinToUDenom(W,G)),I=stableSwapPriceImpactToken1For0($)}else throw Error("stableswap parameter error");else if(l=GasMultiplier.CONSTANT_PRODUCT,o===N.address)b=constantProductSwapToken0for1({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token0InputAmount:i,fee:BigNumber(v).plus(m)}),I=constantProductPriceImpactToken0for1({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token0InputAmount:i});else if(o===C.address)b=constantProductSwapToken1for0({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token1InputAmount:i,fee:BigNumber(v).plus(m)}),I=constantProductPriceImpactToken1for0({token0LiquidityAmount:BigNumber(x),token1LiquidityAmount:BigNumber(P),token1InputAmount:i});else throw Error("constant product rule swap parameter error");return{outputTokenContractAddress:ee,quoteOutputAmount:b,quoteShadeDaoFee:f.plus(m),quoteLPFee:p.plus(v),quotePriceImpact:d.plus(I),gasMultiplier:_+l}},{outputTokenContractAddress:e,quoteOutputAmount:D,quoteShadeDaoFee:BigNumber(0),quoteLPFee:BigNumber(0),quotePriceImpact:BigNumber(0),gasMultiplier:0}),{outputTokenContractAddress:S,quoteOutputAmount:a,quoteShadeDaoFee:t,quoteLPFee:c,quotePriceImpact:u,gasMultiplier:s}=k;return{inputAmount:D,quoteOutputAmount:a,quoteShadeDaoFee:t,quoteLPFee:c,priceImpact:u,inputTokenContractAddress:e,outputTokenContractAddress:S,path:h,gasMultiplier:s}}function getRoutes({inputTokenAmount:D,inputTokenContractAddress:e,outputTokenContractAddress:h,maxHops:w,pairs:O,tokens:k}){const S=getPossiblePaths({inputTokenContractAddress:e,outputTokenContractAddress:h,maxHops:w,pairs:O});return S.length===0?[]:S.reduce((t,c)=>{try{const u=calculateRoute({inputTokenAmount:D,inputTokenContractAddress:e,path:c,pairs:O,tokens:k});return t.push(u),t}catch{return t}},[]).sort((t,c)=>t.quoteOutputAmount.isGreaterThan(c.quoteOutputAmount)?-1:t.quoteOutputAmount.isLessThan(c.quoteOutputAmount)?1:0)}exports.GasMultiplier=GasMultiplier;exports.batchQuery=batchQuery;exports.batchQuery$=batchQuery$;exports.batchQueryPairsConfig=batchQueryPairsConfig;exports.batchQueryPairsConfig$=batchQueryPairsConfig$;exports.batchQueryPairsInfo=batchQueryPairsInfo;exports.batchQueryPairsInfo$=batchQueryPairsInfo$;exports.batchQueryStakingInfo=batchQueryStakingInfo;exports.batchQueryStakingInfo$=batchQueryStakingInfo$;exports.calculateRoute=calculateRoute;exports.constantProductPriceImpactToken0for1=constantProductPriceImpactToken0for1;exports.constantProductPriceImpactToken1for0=constantProductPriceImpactToken1for0;exports.constantProductReverseSwapToken0for1=constantProductReverseSwapToken0for1;exports.constantProductReverseSwapToken1for0=constantProductReverseSwapToken1for0;exports.constantProductSwapToken0for1=constantProductSwapToken0for1;exports.constantProductSwapToken1for0=constantProductSwapToken1for0;exports.convertCoinFromUDenom=convertCoinFromUDenom;exports.convertCoinToUDenom=convertCoinToUDenom;exports.decodeB64ToJson=decodeB64ToJson;exports.encodeJsonToB64=encodeJsonToB64;exports.generatePadding=generatePadding;exports.getActiveQueryClient$=getActiveQueryClient$;exports.getPossiblePaths=getPossiblePaths;exports.getRoutes=getRoutes;exports.getSecretNetworkClient$=getSecretNetworkClient$;exports.msgBatchQuery=msgBatchQuery;exports.msgQueryFactoryConfig=msgQueryFactoryConfig;exports.msgQueryFactoryPairs=msgQueryFactoryPairs;exports.msgQueryOraclePrice=msgQueryOraclePrice;exports.msgQueryOraclePrices=msgQueryOraclePrices;exports.msgQueryPairConfig=msgQueryPairConfig;exports.msgQueryPairInfo=msgQueryPairInfo;exports.msgQueryStakingConfig=msgQueryStakingConfig;exports.msgSwap=msgSwap;exports.parseBalance=parseBalance;exports.parseBatchQuery=parseBatchQuery;exports.parseBatchQueryPairConfigResponse=parseBatchQueryPairConfigResponse;exports.parseBatchQueryPairInfoResponse=parseBatchQueryPairInfoResponse;exports.parseBatchQueryStakingInfoResponse=parseBatchQueryStakingInfoResponse;exports.parseFactoryConfig=parseFactoryConfig;exports.parseFactoryPairs=parseFactoryPairs;exports.parsePairConfig=parsePairConfig;exports.parsePairInfo=parsePairInfo;exports.parsePriceFromContract=parsePriceFromContract;exports.parsePricesFromContract=parsePricesFromContract;exports.parseStakingInfo=parseStakingInfo;exports.parseSwapResponse=parseSwapResponse;exports.parseTokenInfo=parseTokenInfo;exports.queryFactoryConfig=queryFactoryConfig;exports.queryFactoryConfig$=queryFactoryConfig$;exports.queryFactoryPairs=queryFactoryPairs;exports.queryFactoryPairs$=queryFactoryPairs$;exports.queryPairConfig=queryPairConfig;exports.queryPairConfig$=queryPairConfig$;exports.queryPrice=queryPrice;exports.queryPrice$=queryPrice$;exports.queryPrices=queryPrices;exports.queryPrices$=queryPrices$;exports.querySnip20Balance=querySnip20Balance;exports.querySnip20Balance$=querySnip20Balance$;exports.querySnip20TokenInfo=querySnip20TokenInfo;exports.querySnip20TokenInfo$=querySnip20TokenInfo$;exports.snip20=snip20;exports.stableReverseSwapToken0for1=stableReverseSwapToken0for1;exports.stableReverseSwapToken1for0=stableReverseSwapToken1for0;exports.stableSwapPriceImpactToken0For1=stableSwapPriceImpactToken0For1;exports.stableSwapPriceImpactToken1For0=stableSwapPriceImpactToken1For0;exports.stableSwapToken0for1=stableSwapToken0for1;exports.stableSwapToken1for0=stableSwapToken1for0; diff --git a/dist/shadejs.js b/dist/shadejs.js index 142c782..a4d084d 100644 --- a/dist/shadejs.js +++ b/dist/shadejs.js @@ -1,6 +1,6 @@ var ut = Object.defineProperty; -var lt = (D, e, p) => e in D ? ut(D, e, { enumerable: !0, configurable: !0, writable: !0, value: p }) : D[e] = p; -var Fe = (D, e, p) => (lt(D, typeof e != "symbol" ? e + "" : e, p), p); +var lt = (D, e, h) => e in D ? ut(D, e, { enumerable: !0, configurable: !0, writable: !0, value: h }) : D[e] = h; +var Fe = (D, e, h) => (lt(D, typeof e != "symbol" ? e + "" : e, h), h); var g = typeof globalThis < "u" && globalThis || typeof self < "u" && self || // eslint-disable-next-line no-undef typeof global < "u" && global || {}, support = { searchParams: "URLSearchParams" in g, @@ -43,8 +43,8 @@ function normalizeValue(D) { function iteratorFor(D) { var e = { next: function() { - var p = D.shift(); - return { done: p === void 0, value: p }; + var h = D.shift(); + return { done: h === void 0, value: h }; } }; return support.iterable && (e[Symbol.iterator] = function() { @@ -52,8 +52,8 @@ function iteratorFor(D) { }), e; } function Headers(D) { - this.map = {}, D instanceof Headers ? D.forEach(function(e, p) { - this.append(p, e); + this.map = {}, D instanceof Headers ? D.forEach(function(e, h) { + this.append(h, e); }, this) : Array.isArray(D) ? D.forEach(function(e) { if (e.length != 2) throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + e.length); @@ -64,8 +64,8 @@ function Headers(D) { } Headers.prototype.append = function(D, e) { D = normalizeName(D), e = normalizeValue(e); - var p = this.map[D]; - this.map[D] = p ? p + ", " + e : e; + var h = this.map[D]; + this.map[D] = h ? h + ", " + e : e; }; Headers.prototype.delete = function(D) { delete this.map[normalizeName(D)]; @@ -80,13 +80,13 @@ Headers.prototype.set = function(D, e) { this.map[normalizeName(D)] = normalizeValue(e); }; Headers.prototype.forEach = function(D, e) { - for (var p in this.map) - this.map.hasOwnProperty(p) && D.call(e, this.map[p], p, this); + for (var h in this.map) + this.map.hasOwnProperty(h) && D.call(e, this.map[h], h, this); }; Headers.prototype.keys = function() { var D = []; - return this.forEach(function(e, p) { - D.push(p); + return this.forEach(function(e, h) { + D.push(h); }), iteratorFor(D); }; Headers.prototype.values = function() { @@ -97,8 +97,8 @@ Headers.prototype.values = function() { }; Headers.prototype.entries = function() { var D = []; - return this.forEach(function(e, p) { - D.push([p, e]); + return this.forEach(function(e, h) { + D.push([h, e]); }), iteratorFor(D); }; support.iterable && (Headers.prototype[Symbol.iterator] = Headers.prototype.entries); @@ -110,26 +110,26 @@ function consumed(D) { } } function fileReaderReady(D) { - return new Promise(function(e, p) { + return new Promise(function(e, h) { D.onload = function() { e(D.result); }, D.onerror = function() { - p(D.error); + h(D.error); }; }); } function readBlobAsArrayBuffer(D) { - var e = new FileReader(), p = fileReaderReady(e); - return e.readAsArrayBuffer(D), p; + var e = new FileReader(), h = fileReaderReady(e); + return e.readAsArrayBuffer(D), h; } function readBlobAsText(D) { - var e = new FileReader(), p = fileReaderReady(e), w = /charset=([A-Za-z0-9_-]+)/.exec(D.type), O = w ? w[1] : "utf-8"; - return e.readAsText(D, O), p; + var e = new FileReader(), h = fileReaderReady(e), w = /charset=([A-Za-z0-9_-]+)/.exec(D.type), O = w ? w[1] : "utf-8"; + return e.readAsText(D, O), h; } function readArrayBufferAsText(D) { - for (var e = new Uint8Array(D), p = new Array(e.length), w = 0; w < e.length; w++) - p[w] = String.fromCharCode(e[w]); - return p.join(""); + for (var e = new Uint8Array(D), h = new Array(e.length), w = 0; w < e.length; w++) + h[w] = String.fromCharCode(e[w]); + return h.join(""); } function bufferClone(D) { if (D.slice) @@ -191,11 +191,11 @@ function Request(D, e) { if (!(this instanceof Request)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); e = e || {}; - var p = e.body; + var h = e.body; if (D instanceof Request) { if (D.bodyUsed) throw new TypeError("Already read"); - this.url = D.url, this.credentials = D.credentials, e.headers || (this.headers = new Headers(D.headers)), this.method = D.method, this.mode = D.mode, this.signal = D.signal, !p && D._bodyInit != null && (p = D._bodyInit, D.bodyUsed = !0); + this.url = D.url, this.credentials = D.credentials, e.headers || (this.headers = new Headers(D.headers)), this.method = D.method, this.mode = D.mode, this.signal = D.signal, !h && D._bodyInit != null && (h = D._bodyInit, D.bodyUsed = !0); } else this.url = String(D); if (this.credentials = e.credentials || this.credentials || "same-origin", (e.headers || !this.headers) && (this.headers = new Headers(e.headers)), this.method = normalizeMethod(e.method || this.method || "GET"), this.mode = e.mode || this.mode || null, this.signal = e.signal || this.signal || function() { @@ -203,9 +203,9 @@ function Request(D, e) { var k = new AbortController(); return k.signal; } - }(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && p) + }(), this.referrer = null, (this.method === "GET" || this.method === "HEAD") && h) throw new TypeError("Body not allowed for GET or HEAD requests"); - if (this._initBody(p), (this.method === "GET" || this.method === "HEAD") && (e.cache === "no-store" || e.cache === "no-cache")) { + if (this._initBody(h), (this.method === "GET" || this.method === "HEAD") && (e.cache === "no-store" || e.cache === "no-cache")) { var w = /([?&])_=[^&]*/; if (w.test(this.url)) this.url = this.url.replace(w, "$1_=" + (/* @__PURE__ */ new Date()).getTime()); @@ -220,16 +220,16 @@ Request.prototype.clone = function() { }; function decode(D) { var e = new FormData(); - return D.trim().split("&").forEach(function(p) { - if (p) { - var w = p.split("="), O = w.shift().replace(/\+/g, " "), k = w.join("=").replace(/\+/g, " "); + return D.trim().split("&").forEach(function(h) { + if (h) { + var w = h.split("="), O = w.shift().replace(/\+/g, " "), k = w.join("=").replace(/\+/g, " "); e.append(decodeURIComponent(O), decodeURIComponent(k)); } }), e; } function parseHeaders(D) { - var e = new Headers(), p = D.replace(/\r?\n[\t ]+/g, " "); - return p.split("\r").map(function(w) { + var e = new Headers(), h = D.replace(/\r?\n[\t ]+/g, " "); + return h.split("\r").map(function(w) { return w.indexOf(` `) === 0 ? w.substr(1, w.length) : w; }).forEach(function(w) { @@ -275,14 +275,14 @@ var DOMException = g.DOMException; try { new DOMException(); } catch { - DOMException = function(e, p) { - this.message = e, this.name = p; + DOMException = function(e, h) { + this.message = e, this.name = h; var w = Error(e); this.stack = w.stack; }, DOMException.prototype = Object.create(Error.prototype), DOMException.prototype.constructor = DOMException; } function fetch$1(D, e) { - return new Promise(function(p, w) { + return new Promise(function(h, w) { var O = new Request(D, e); if (O.signal && O.signal.aborted) return w(new DOMException("Aborted", "AbortError")); @@ -298,7 +298,7 @@ function fetch$1(D, e) { O.url.startsWith("file://") && (k.status < 200 || k.status > 599) ? c.status = 200 : c.status = k.status, c.url = "responseURL" in k ? k.responseURL : c.headers.get("X-Request-URL"); var u = "response" in k ? k.response : k.responseText; setTimeout(function() { - p(new Response(u, c)); + h(new Response(u, c)); }, 0); }, k.onerror = function() { setTimeout(function() { @@ -341,7 +341,7 @@ g.fetch || (g.fetch = fetch$1, g.Headers = Headers, g.Request = Request, g.Respo typeof window > "u" && (global.window = globalThis); var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, mathceil = Math.ceil, mathfloor = Math.floor, bignumberError = "[BigNumber Error] ", tooManyDigits = bignumberError + "Number primitive has more than 15 significant digits: ", BASE = 1e14, LOG_BASE = 14, MAX_SAFE_INTEGER = 9007199254740991, POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], SQRT_BASE = 1e7, MAX = 1e9; function clone(D) { - var e, p, w, O = h.prototype = { constructor: h, toString: null, valueOf: null }, k = new h(1), S = 20, a = 4, t = -7, c = 21, u = -1e7, s = 1e7, r = !1, n = 1, o = 0, i = { + var e, h, w, O = p.prototype = { constructor: p, toString: null, valueOf: null }, k = new p(1), S = 20, a = 4, t = -7, c = 21, u = -1e7, s = 1e7, r = !1, n = 1, o = 0, i = { prefix: "", groupSize: 3, secondaryGroupSize: 0, @@ -352,10 +352,10 @@ function clone(D) { // non-breaking space suffix: "" }, f = "0123456789abcdefghijklmnopqrstuvwxyz", d = !0; - function h(M, N) { + function p(M, N) { var C, x, P, v, m, E, B, T, q = this; - if (!(q instanceof h)) - return new h(M, N); + if (!(q instanceof p)) + return new p(M, N); if (N == null) { if (M && M._isBigNumber === !0) { q.s = M.s, !M.c || M.e > s ? q.c = q.e = null : M.e < u ? q.c = [q.e = 0] : (q.e = M.e, q.c = M.c.slice()); @@ -377,11 +377,11 @@ function clone(D) { (v = T.indexOf(".")) > -1 && (T = T.replace(".", "")), (m = T.search(/e/i)) > 0 ? (v < 0 && (v = m), v += +T.slice(m + 1), T = T.substring(0, m)) : v < 0 && (v = T.length); } else { if (intCheck(N, 2, f.length, "Base"), N == 10 && d) - return q = new h(M), l(q, S + q.e + 1, a); + return q = new p(M), l(q, S + q.e + 1, a); if (T = String(M), E = typeof M == "number") { if (M * 0 != 0) return w(q, T, E, N); - if (q.s = 1 / M < 0 ? (T = T.slice(1), -1) : 1, h.DEBUG && T.replace(/^0\.0*|\./, "").length > 15) + if (q.s = 1 / M < 0 ? (T = T.slice(1), -1) : 1, p.DEBUG && T.replace(/^0\.0*|\./, "").length > 15) throw Error(tooManyDigits + M); } else q.s = T.charCodeAt(0) === 45 ? (T = T.slice(1), -1) : 1; @@ -398,14 +398,14 @@ function clone(D) { } return w(q, String(M), E, N); } - E = !1, T = p(T, N, 10, q.s), (v = T.indexOf(".")) > -1 ? T = T.replace(".", "") : v = T.length; + E = !1, T = h(T, N, 10, q.s), (v = T.indexOf(".")) > -1 ? T = T.replace(".", "") : v = T.length; } for (m = 0; T.charCodeAt(m) === 48; m++) ; for (B = T.length; T.charCodeAt(--B) === 48; ) ; if (T = T.slice(m, ++B)) { - if (B -= m, E && h.DEBUG && B > 15 && (M > MAX_SAFE_INTEGER || M !== mathfloor(M))) + if (B -= m, E && p.DEBUG && B > 15 && (M > MAX_SAFE_INTEGER || M !== mathfloor(M))) throw Error(tooManyDigits + q.s * M); if ((v = v - m - 1) > s) q.c = q.e = null; @@ -425,7 +425,7 @@ function clone(D) { } else q.c = [q.e = 0]; } - h.clone = clone, h.ROUND_UP = 0, h.ROUND_DOWN = 1, h.ROUND_CEIL = 2, h.ROUND_FLOOR = 3, h.ROUND_HALF_UP = 4, h.ROUND_HALF_DOWN = 5, h.ROUND_HALF_EVEN = 6, h.ROUND_HALF_CEIL = 7, h.ROUND_HALF_FLOOR = 8, h.EUCLID = 9, h.config = h.set = function(M) { + p.clone = clone, p.ROUND_UP = 0, p.ROUND_DOWN = 1, p.ROUND_CEIL = 2, p.ROUND_FLOOR = 3, p.ROUND_HALF_UP = 4, p.ROUND_HALF_DOWN = 5, p.ROUND_HALF_EVEN = 6, p.ROUND_HALF_CEIL = 7, p.ROUND_HALF_FLOOR = 8, p.EUCLID = 9, p.config = p.set = function(M) { var N, C; if (M != null) if (typeof M == "object") { @@ -470,10 +470,10 @@ function clone(D) { FORMAT: i, ALPHABET: f }; - }, h.isBigNumber = function(M) { + }, p.isBigNumber = function(M) { if (!M || M._isBigNumber !== !0) return !1; - if (!h.DEBUG) + if (!p.DEBUG) return !0; var N, C, x = M.c, P = M.e, v = M.s; e: @@ -495,18 +495,18 @@ function clone(D) { } else if (x === null && P === null && (v === null || v === 1 || v === -1)) return !0; throw Error(bignumberError + "Invalid BigNumber: " + M); - }, h.maximum = h.max = function() { + }, p.maximum = p.max = function() { return b(arguments, -1); - }, h.minimum = h.min = function() { + }, p.minimum = p.min = function() { return b(arguments, 1); - }, h.random = function() { + }, p.random = function() { var M = 9007199254740992, N = Math.random() * M & 2097151 ? function() { return mathfloor(Math.random() * M); } : function() { return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0); }; return function(C) { - var x, P, v, m, E, B = 0, T = [], q = new h(k); + var x, P, v, m, E, B = 0, T = [], q = new p(k); if (C == null ? C = S : intCheck(C, 0, MAX), m = mathceil(C / LOG_BASE), r) if (crypto.getRandomValues) { for (x = crypto.getRandomValues(new Uint32Array(m *= 2)); B < m; ) @@ -534,11 +534,11 @@ function clone(D) { } return q.e = v, q.c = T, q; }; - }(), h.sum = function() { - for (var M = 1, N = arguments, C = new h(N[0]); M < N.length; ) + }(), p.sum = function() { + for (var M = 1, N = arguments, C = new p(N[0]); M < N.length; ) C = C.plus(N[M++]); return C; - }, p = function() { + }, h = function() { var M = "0123456789"; function N(C, x, P, v) { for (var m, E = [0], B, T = 0, q = C.length; T < q; ) { @@ -551,7 +551,7 @@ function clone(D) { } return function(C, x, P, v, m) { var E, B, T, q, te, re, ie, J, ee = C.indexOf("."), G = S, $ = a; - for (ee >= 0 && (q = o, o = 0, C = C.replace(".", ""), J = new h(x), re = J.pow(C.length - ee), o = q, J.c = N( + for (ee >= 0 && (q = o, o = 0, C = C.replace(".", ""), J = new p(x), re = J.pow(C.length - ee), o = q, J.c = N( toFixedPoint(coeffToString(re.c), re.e, "0"), 10, P, @@ -602,14 +602,14 @@ function clone(D) { return function(x, P, v, m, E) { var B, T, q, te, re, ie, J, ee, G, $, W, Y, F, ae, he, le, ce, ve = x.s == P.s ? 1 : -1, de = x.c, pe = P.c; if (!de || !de[0] || !pe || !pe[0]) - return new h( + return new p( // Return NaN if either NaN, or both Infinity or 0. !x.s || !P.s || (de ? pe && de[0] == pe[0] : !pe) ? NaN : ( // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. de && de[0] == 0 || !pe ? ve * 0 : ve / 0 ) ); - for (ee = new h(ve), G = ee.c = [], T = x.e - P.e, ve = v + T + 1, E || (E = BASE, T = bitFloor(x.e / LOG_BASE) - bitFloor(P.e / LOG_BASE), ve = ve / LOG_BASE | 0), q = 0; pe[q] == (de[q] || 0); q++) + for (ee = new p(ve), G = ee.c = [], T = x.e - P.e, ve = v + T + 1, E || (E = BASE, T = bitFloor(x.e / LOG_BASE) - bitFloor(P.e / LOG_BASE), ve = ve / LOG_BASE | 0), q = 0; pe[q] == (de[q] || 0); q++) ; if (pe[q] > (de[q] || 0) && T--, ve < 0) G.push(1), te = !0; @@ -648,7 +648,7 @@ function clone(D) { return M.toString(); if (P = M.c[0], m = M.e, N == null) B = coeffToString(M.c), B = x == 1 || x == 2 && (m <= t || m >= c) ? toExponential(B, m) : toFixedPoint(B, m, "0"); - else if (M = l(new h(M), N, C), v = M.e, B = coeffToString(M.c), E = B.length, x == 1 || x == 2 && (N <= v || v <= t)) { + else if (M = l(new p(M), N, C), v = M.e, B = coeffToString(M.c), E = B.length, x == 1 || x == 2 && (N <= v || v <= t)) { for (; E < N; B += "0", E++) ; B = toExponential(B, v); @@ -662,8 +662,8 @@ function clone(D) { return M.s < 0 && P ? "-" + B : B; } function b(M, N) { - for (var C, x, P = 1, v = new h(M[0]); P < M.length; P++) - x = new h(M[P]), (!x.s || (C = compare(v, x)) === N || C === 0 && v.s === N) && (v = x); + for (var C, x, P = 1, v = new p(M[0]); P < M.length; P++) + x = new p(M[P]), (!x.s || (C = compare(v, x)) === N || C === 0 && v.s === N) && (v = x); return v; } function I(M, N, C) { @@ -683,8 +683,8 @@ function clone(D) { if (!E && (q = q.replace(M, function(te, re, ie) { return T = (ie = ie.toLowerCase()) == "x" ? 16 : ie == "b" ? 2 : 8, !B || B == T ? re : te; }), B && (T = B, q = q.replace(N, "$1").replace(C, "0.$1")), m != q)) - return new h(q, T); - if (h.DEBUG) + return new p(q, T); + if (p.DEBUG) throw Error(bignumberError + "Not a" + (B ? " base " + B : "") + " number: " + m); v.s = null; } @@ -743,14 +743,14 @@ function clone(D) { return C === null ? M.toString() : (N = coeffToString(M.c), N = C <= t || C >= c ? toExponential(N, C) : toFixedPoint(N, C, "0"), M.s < 0 ? "-" + N : N); } return O.absoluteValue = O.abs = function() { - var M = new h(this); + var M = new p(this); return M.s < 0 && (M.s = 1), M; }, O.comparedTo = function(M, N) { - return compare(this, new h(M, N)); + return compare(this, new p(M, N)); }, O.decimalPlaces = O.dp = function(M, N) { var C, x, P, v = this; if (M != null) - return intCheck(M, 0, MAX), N == null ? N = a : intCheck(N, 0, 8), l(new h(v), M + v.e + 1, N); + return intCheck(M, 0, MAX), N == null ? N = a : intCheck(N, 0, 8), l(new p(v), M + v.e + 1, N); if (!(C = v.c)) return null; if (x = ((P = C.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE, P = C[P]) @@ -758,25 +758,25 @@ function clone(D) { ; return x < 0 && (x = 0), x; }, O.dividedBy = O.div = function(M, N) { - return e(this, new h(M, N), S, a); + return e(this, new p(M, N), S, a); }, O.dividedToIntegerBy = O.idiv = function(M, N) { - return e(this, new h(M, N), 0, 1); + return e(this, new p(M, N), 0, 1); }, O.exponentiatedBy = O.pow = function(M, N) { var C, x, P, v, m, E, B, T, q, te = this; - if (M = new h(M), M.c && !M.isInteger()) + if (M = new p(M), M.c && !M.isInteger()) throw Error(bignumberError + "Exponent not an integer: " + j(M)); - if (N != null && (N = new h(N)), E = M.e > 14, !te.c || !te.c[0] || te.c[0] == 1 && !te.e && te.c.length == 1 || !M.c || !M.c[0]) - return q = new h(Math.pow(+j(te), E ? M.s * (2 - isOdd(M)) : +j(M))), N ? q.mod(N) : q; + if (N != null && (N = new p(N)), E = M.e > 14, !te.c || !te.c[0] || te.c[0] == 1 && !te.e && te.c.length == 1 || !M.c || !M.c[0]) + return q = new p(Math.pow(+j(te), E ? M.s * (2 - isOdd(M)) : +j(M))), N ? q.mod(N) : q; if (B = M.s < 0, N) { if (N.c ? !N.c[0] : !N.s) - return new h(NaN); + return new p(NaN); x = !B && te.isInteger() && N.isInteger(), x && (te = te.mod(N)); } else { if (M.e > 9 && (te.e > 0 || te.e < -1 || (te.e == 0 ? te.c[0] > 1 || E && te.c[1] >= 24e7 : te.c[0] < 8e13 || E && te.c[0] <= 9999975e7))) - return v = te.s < 0 && isOdd(M) ? -0 : 0, te.e > -1 && (v = 1 / v), new h(B ? 1 / v : v); + return v = te.s < 0 && isOdd(M) ? -0 : 0, te.e > -1 && (v = 1 / v), new p(B ? 1 / v : v); o && (v = mathceil(o / LOG_BASE + 2)); } - for (E ? (C = new h(0.5), B && (M.s = 1), T = isOdd(M)) : (P = Math.abs(+j(M)), T = P % 2), q = new h(k); ; ) { + for (E ? (C = new p(0.5), B && (M.s = 1), T = isOdd(M)) : (P = Math.abs(+j(M)), T = P % 2), q = new p(k); ; ) { if (T) { if (q = q.times(te), !q.c) break; @@ -797,22 +797,22 @@ function clone(D) { } return x ? q : (B && (q = k.div(q)), N ? q.mod(N) : v ? l(q, o, a, m) : q); }, O.integerValue = function(M) { - var N = new h(this); + var N = new p(this); return M == null ? M = a : intCheck(M, 0, 8), l(N, N.e + 1, M); }, O.isEqualTo = O.eq = function(M, N) { - return compare(this, new h(M, N)) === 0; + return compare(this, new p(M, N)) === 0; }, O.isFinite = function() { return !!this.c; }, O.isGreaterThan = O.gt = function(M, N) { - return compare(this, new h(M, N)) > 0; + return compare(this, new p(M, N)) > 0; }, O.isGreaterThanOrEqualTo = O.gte = function(M, N) { - return (N = compare(this, new h(M, N))) === 1 || N === 0; + return (N = compare(this, new p(M, N))) === 1 || N === 0; }, O.isInteger = function() { return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; }, O.isLessThan = O.lt = function(M, N) { - return compare(this, new h(M, N)) < 0; + return compare(this, new p(M, N)) < 0; }, O.isLessThanOrEqualTo = O.lte = function(M, N) { - return (N = compare(this, new h(M, N))) === -1 || N === 0; + return (N = compare(this, new p(M, N))) === -1 || N === 0; }, O.isNaN = function() { return !this.s; }, O.isNegative = function() { @@ -823,16 +823,16 @@ function clone(D) { return !!this.c && this.c[0] == 0; }, O.minus = function(M, N) { var C, x, P, v, m = this, E = m.s; - if (M = new h(M, N), N = M.s, !E || !N) - return new h(NaN); + if (M = new p(M, N), N = M.s, !E || !N) + return new p(NaN); if (E != N) return M.s = -N, m.plus(M); var B = m.e / LOG_BASE, T = M.e / LOG_BASE, q = m.c, te = M.c; if (!B || !T) { if (!q || !te) - return q ? (M.s = -N, M) : new h(te ? m : NaN); + return q ? (M.s = -N, M) : new p(te ? m : NaN); if (!q[0] || !te[0]) - return te[0] ? (M.s = -N, M) : new h(q[0] ? m : ( + return te[0] ? (M.s = -N, M) : new p(q[0] ? m : ( // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity a == 3 ? -0 : 0 )); @@ -863,9 +863,9 @@ function clone(D) { return q[0] ? I(M, q, T) : (M.s = a == 3 ? -1 : 1, M.c = [M.e = 0], M); }, O.modulo = O.mod = function(M, N) { var C, x, P = this; - return M = new h(M, N), !P.c || !M.s || M.c && !M.c[0] ? new h(NaN) : !M.c || P.c && !P.c[0] ? new h(P) : (n == 9 ? (x = M.s, M.s = 1, C = e(P, M, 0, 3), M.s = x, C.s *= x) : C = e(P, M, 0, n), M = P.minus(C.times(M)), !M.c[0] && n == 1 && (M.s = P.s), M); + return M = new p(M, N), !P.c || !M.s || M.c && !M.c[0] ? new p(NaN) : !M.c || P.c && !P.c[0] ? new p(P) : (n == 9 ? (x = M.s, M.s = 1, C = e(P, M, 0, 3), M.s = x, C.s *= x) : C = e(P, M, 0, n), M = P.minus(C.times(M)), !M.c[0] && n == 1 && (M.s = P.s), M); }, O.multipliedBy = O.times = function(M, N) { - var C, x, P, v, m, E, B, T, q, te, re, ie, J, ee, G, $ = this, W = $.c, Y = (M = new h(M, N)).c; + var C, x, P, v, m, E, B, T, q, te, re, ie, J, ee, G, $ = this, W = $.c, Y = (M = new p(M, N)).c; if (!W || !Y || !W[0] || !Y[0]) return !$.s || !M.s || W && !W[0] && !Y || Y && !Y[0] && !W ? M.c = M.e = M.s = null : (M.s *= $.s, !W || !Y ? M.c = M.e = null : (M.c = [0], M.e = 0)), M; for (x = bitFloor($.e / LOG_BASE) + bitFloor(M.e / LOG_BASE), M.s *= $.s, B = W.length, te = Y.length, B < te && (J = W, W = Y, Y = J, P = B, B = te, te = P), P = B + te, J = []; P--; J.push(0)) @@ -877,20 +877,20 @@ function clone(D) { } return C ? ++x : J.splice(0, 1), I(M, J, x); }, O.negated = function() { - var M = new h(this); + var M = new p(this); return M.s = -M.s || null, M; }, O.plus = function(M, N) { var C, x = this, P = x.s; - if (M = new h(M, N), N = M.s, !P || !N) - return new h(NaN); + if (M = new p(M, N), N = M.s, !P || !N) + return new p(NaN); if (P != N) return M.s = -N, x.minus(M); var v = x.e / LOG_BASE, m = M.e / LOG_BASE, E = x.c, B = M.c; if (!v || !m) { if (!E || !B) - return new h(P / 0); + return new p(P / 0); if (!E[0] || !B[0]) - return B[0] ? M : new h(E[0] ? x : P * 0); + return B[0] ? M : new p(E[0] ? x : P * 0); } if (v = bitFloor(v), m = bitFloor(m), E = E.slice(), P = v - m) { for (P > 0 ? (m = v, C = B) : (P = -P, C = E), C.reverse(); P--; C.push(0)) @@ -903,7 +903,7 @@ function clone(D) { }, O.precision = O.sd = function(M, N) { var C, x, P, v = this; if (M != null && M !== !!M) - return intCheck(M, 1, MAX), N == null ? N = a : intCheck(N, 0, 8), l(new h(v), M, N); + return intCheck(M, 1, MAX), N == null ? N = a : intCheck(N, 0, 8), l(new p(v), M, N); if (!(C = v.c)) return null; if (P = C.length - 1, x = P * LOG_BASE + 1, P = C[P]) { @@ -916,10 +916,10 @@ function clone(D) { }, O.shiftedBy = function(M) { return intCheck(M, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER), this.times("1e" + M); }, O.squareRoot = O.sqrt = function() { - var M, N, C, x, P, v = this, m = v.c, E = v.s, B = v.e, T = S + 4, q = new h("0.5"); + var M, N, C, x, P, v = this, m = v.c, E = v.s, B = v.e, T = S + 4, q = new p("0.5"); if (E !== 1 || !m || !m[0]) - return new h(!E || E < 0 && (!m || m[0]) ? NaN : m ? v : 1 / 0); - if (E = Math.sqrt(+j(v)), E == 0 || E == 1 / 0 ? (N = coeffToString(m), (N.length + B) % 2 == 0 && (N += "0"), E = Math.sqrt(+N), B = bitFloor((B + 1) / 2) - (B < 0 || B % 2), E == 1 / 0 ? N = "5e" + B : (N = E.toExponential(), N = N.slice(0, N.indexOf("e") + 1) + B), C = new h(N)) : C = new h(E + ""), C.c[0]) { + return new p(!E || E < 0 && (!m || m[0]) ? NaN : m ? v : 1 / 0); + if (E = Math.sqrt(+j(v)), E == 0 || E == 1 / 0 ? (N = coeffToString(m), (N.length + B) % 2 == 0 && (N += "0"), E = Math.sqrt(+N), B = bitFloor((B + 1) / 2) - (B < 0 || B % 2), E == 1 / 0 ? N = "5e" + B : (N = E.toExponential(), N = N.slice(0, N.indexOf("e") + 1) + B), C = new p(N)) : C = new p(E + ""), C.c[0]) { for (B = C.e, E = B + T, E < 3 && (E = 0); ; ) if (P = C, C = q.times(P.plus(e(v, P, T, 1))), coeffToString(P.c).slice(0, E) === (N = coeffToString(C.c)).slice(0, E)) if (C.e < B && --E, N = N.slice(E - 3, E + 1), N == "9999" || !x && N == "4999") { @@ -959,11 +959,11 @@ function clone(D) { return (C.prefix || "") + x + (C.suffix || ""); }, O.toFraction = function(M) { var N, C, x, P, v, m, E, B, T, q, te, re, ie = this, J = ie.c; - if (M != null && (E = new h(M), !E.isInteger() && (E.c || E.s !== 1) || E.lt(k))) + if (M != null && (E = new p(M), !E.isInteger() && (E.c || E.s !== 1) || E.lt(k))) throw Error(bignumberError + "Argument " + (E.isInteger() ? "out of range: " : "not an integer: ") + j(E)); if (!J) - return new h(ie); - for (N = new h(k), T = C = new h(k), x = B = new h(k), re = coeffToString(J), v = N.e = re.length - ie.e - 1, N.c[0] = POWS_TEN[(m = v % LOG_BASE) < 0 ? LOG_BASE + m : m], M = !M || E.comparedTo(N) > 0 ? v > 0 ? N : T : E, m = s, s = 1 / 0, E = new h(re), B.c[0] = 0; q = e(E, N, 0, 1), P = C.plus(q.times(x)), P.comparedTo(M) != 1; ) + return new p(ie); + for (N = new p(k), T = C = new p(k), x = B = new p(k), re = coeffToString(J), v = N.e = re.length - ie.e - 1, N.c[0] = POWS_TEN[(m = v % LOG_BASE) < 0 ? LOG_BASE + m : m], M = !M || E.comparedTo(N) > 0 ? v > 0 ? N : T : E, m = s, s = 1 / 0, E = new p(re), B.c[0] = 0; q = e(E, N, 0, 1), P = C.plus(q.times(x)), P.comparedTo(M) != 1; ) C = x, x = P, T = B.plus(q.times(P = T)), B = P, N = E.minus(q.times(P = N)), E = P; return P = e(M.minus(C), x, 0, 1), B = B.plus(P.times(T)), C = C.plus(P.times(x)), B.s = T.s = ie.s, v = v * 2, te = e(T, x, v, a).minus(ie).abs().comparedTo( e(B, C, v, a).minus(ie).abs() @@ -974,18 +974,18 @@ function clone(D) { return M != null && intCheck(M, 1, MAX), _(this, M, N, 2); }, O.toString = function(M) { var N, C = this, x = C.s, P = C.e; - return P === null ? x ? (N = "Infinity", x < 0 && (N = "-" + N)) : N = "NaN" : (M == null ? N = P <= t || P >= c ? toExponential(coeffToString(C.c), P) : toFixedPoint(coeffToString(C.c), P, "0") : M === 10 && d ? (C = l(new h(C), S + P + 1, a), N = toFixedPoint(coeffToString(C.c), C.e, "0")) : (intCheck(M, 2, f.length, "Base"), N = p(toFixedPoint(coeffToString(C.c), P, "0"), 10, M, x, !0)), x < 0 && C.c[0] && (N = "-" + N)), N; + return P === null ? x ? (N = "Infinity", x < 0 && (N = "-" + N)) : N = "NaN" : (M == null ? N = P <= t || P >= c ? toExponential(coeffToString(C.c), P) : toFixedPoint(coeffToString(C.c), P, "0") : M === 10 && d ? (C = l(new p(C), S + P + 1, a), N = toFixedPoint(coeffToString(C.c), C.e, "0")) : (intCheck(M, 2, f.length, "Base"), N = h(toFixedPoint(coeffToString(C.c), P, "0"), 10, M, x, !0)), x < 0 && C.c[0] && (N = "-" + N)), N; }, O.valueOf = O.toJSON = function() { return j(this); - }, O._isBigNumber = !0, O[Symbol.toStringTag] = "BigNumber", O[Symbol.for("nodejs.util.inspect.custom")] = O.valueOf, D != null && h.set(D), h; + }, O._isBigNumber = !0, O[Symbol.toStringTag] = "BigNumber", O[Symbol.for("nodejs.util.inspect.custom")] = O.valueOf, D != null && p.set(D), p; } function bitFloor(D) { var e = D | 0; return D > 0 || D === e ? e : e - 1; } function coeffToString(D) { - for (var e, p, w = 1, O = D.length, k = D[0] + ""; w < O; ) { - for (e = D[w++] + "", p = LOG_BASE - e.length; p--; e = "0" + e) + for (var e, h, w = 1, O = D.length, k = D[0] + ""; w < O; ) { + for (e = D[w++] + "", h = LOG_BASE - e.length; h--; e = "0" + e) ; k += e; } @@ -994,25 +994,25 @@ function coeffToString(D) { return k.slice(0, O + 1 || 1); } function compare(D, e) { - var p, w, O = D.c, k = e.c, S = D.s, a = e.s, t = D.e, c = e.e; + var h, w, O = D.c, k = e.c, S = D.s, a = e.s, t = D.e, c = e.e; if (!S || !a) return null; - if (p = O && !O[0], w = k && !k[0], p || w) - return p ? w ? 0 : -a : S; + if (h = O && !O[0], w = k && !k[0], h || w) + return h ? w ? 0 : -a : S; if (S != a) return S; - if (p = S < 0, w = t == c, !O || !k) - return w ? 0 : !O ^ p ? 1 : -1; + if (h = S < 0, w = t == c, !O || !k) + return w ? 0 : !O ^ h ? 1 : -1; if (!w) - return t > c ^ p ? 1 : -1; + return t > c ^ h ? 1 : -1; for (a = (t = O.length) < (c = k.length) ? t : c, S = 0; S < a; S++) if (O[S] != k[S]) - return O[S] > k[S] ^ p ? 1 : -1; - return t == c ? 0 : t > c ^ p ? 1 : -1; + return O[S] > k[S] ^ h ? 1 : -1; + return t == c ? 0 : t > c ^ h ? 1 : -1; } -function intCheck(D, e, p, w) { - if (D < e || D > p || D !== mathfloor(D)) - throw Error(bignumberError + (w || "Argument") + (typeof D == "number" ? D < e || D > p ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(D)); +function intCheck(D, e, h, w) { + if (D < e || D > h || D !== mathfloor(D)) + throw Error(bignumberError + (w || "Argument") + (typeof D == "number" ? D < e || D > h ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(D)); } function isOdd(D) { var e = D.c.length - 1; @@ -1021,14 +1021,14 @@ function isOdd(D) { function toExponential(D, e) { return (D.length > 1 ? D.charAt(0) + "." + D.slice(1) : D) + (e < 0 ? "e" : "e+") + e; } -function toFixedPoint(D, e, p) { +function toFixedPoint(D, e, h) { var w, O; if (e < 0) { - for (O = p + "."; ++e; O += p) + for (O = h + "."; ++e; O += h) ; D = O + D; } else if (w = D.length, ++e > w) { - for (O = p, e -= w; --e; O += p) + for (O = h, e -= w; --e; O += h) ; D += O; } else @@ -1042,23 +1042,23 @@ const encodeJsonToB64 = (D) => Buffer.from(JSON.stringify(D), "utf8").toString(" O[O.MAX = 15] = "MAX", O[O.MIN = 8] = "MIN"; })(D || (D = {})); const e = Math.floor(Math.random() * (15 - 8 + 1)) + 8; - let p = ""; + let h = ""; const w = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; for (let O = 0; O < e; O += 1) - p += w.charAt(Math.floor(Math.random() * w.length)); - return p; + h += w.charAt(Math.floor(Math.random() * w.length)); + return h; }, convertCoinFromUDenom = (D, e) => (BigNumber.config({ DECIMAL_PLACES: 18 }), BigNumber( D ).dividedBy(BigNumber(10).pow(e))), convertCoinToUDenom = (D, e) => typeof D == "string" || typeof D == "number" ? BigNumber(D).multipliedBy(BigNumber(10).pow(e)).toFixed(0) : D.multipliedBy(BigNumber(10).pow(e)).toFixed(0); function getTokenDecimalsByTokenConfig(D, e) { - const p = e.filter( + const h = e.filter( (w) => w.tokenContractAddress === D ); - if (p.length === 0) + if (h.length === 0) throw new Error(`token ${D} not available`); - if (p.length > 1) + if (h.length > 1) throw new Error(`Duplicate ${D} tokens found`); - return p[0].decimals; + return h[0].decimals; } const msgBatchQuery = (D) => ({ batch: { @@ -1099,7 +1099,7 @@ const msgBatchQuery = (D) => ({ send({ recipient: D, recipientCodeHash: e, - amount: p, + amount: h, handleMsg: w, padding: O }) { @@ -1108,7 +1108,7 @@ const msgBatchQuery = (D) => ({ send: { recipient: D, recipient_code_hash: e, - amount: p, + amount: h, msg: w !== null ? encodeJsonToB64(w) : null, padding: O } @@ -1118,14 +1118,14 @@ const msgBatchQuery = (D) => ({ transfer({ recipient: D, amount: e, - padding: p + padding: h }) { return { msg: { transfer: { recipient: D, amount: e, - padding: p + padding: h } } }; @@ -1139,14 +1139,14 @@ const msgBatchQuery = (D) => ({ redeem({ amount: D, denom: e, - padding: p + padding: h }) { return { msg: { redeem: { amount: D, denom: e, - padding: p + padding: h } } }; @@ -1154,7 +1154,7 @@ const msgBatchQuery = (D) => ({ increaseAllowance({ spender: D, amount: e, - expiration: p, + expiration: h, padding: w }) { return { @@ -1162,7 +1162,7 @@ const msgBatchQuery = (D) => ({ increase_allowance: { spender: D, amount: e, - expiration: p, + expiration: h, padding: w } } @@ -1190,7 +1190,7 @@ const msgBatchQuery = (D) => ({ function msgSwap({ routerContractAddress: D, routerCodeHash: e, - sendAmount: p, + sendAmount: h, minExpectedReturnAmount: w, path: O }) { @@ -1206,35 +1206,35 @@ function msgSwap({ return snip20.messages.send({ recipient: D, recipientCodeHash: e, - amount: p, + amount: h, handleMsg: S, padding: generatePadding() }).msg; } var extendStatics = function(D, e) { - return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, w) { - p.__proto__ = w; - } || function(p, w) { + return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(h, w) { + h.__proto__ = w; + } || function(h, w) { for (var O in w) - Object.prototype.hasOwnProperty.call(w, O) && (p[O] = w[O]); + Object.prototype.hasOwnProperty.call(w, O) && (h[O] = w[O]); }, extendStatics(D, e); }; function __extends(D, e) { if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null"); extendStatics(D, e); - function p() { + function h() { this.constructor = D; } - D.prototype = e === null ? Object.create(e) : (p.prototype = e.prototype, new p()); + D.prototype = e === null ? Object.create(e) : (h.prototype = e.prototype, new h()); } -function __awaiter(D, e, p, w) { +function __awaiter(D, e, h, w) { function O(k) { - return k instanceof p ? k : new p(function(S) { + return k instanceof h ? k : new h(function(S) { S(k); }); } - return new (p || (p = Promise))(function(k, S) { + return new (h || (h = Promise))(function(k, S) { function a(u) { try { c(w.next(u)); @@ -1256,7 +1256,7 @@ function __awaiter(D, e, p, w) { }); } function __generator(D, e) { - var p = { label: 0, sent: function() { + var h = { label: 0, sent: function() { if (k[0] & 1) throw k[1]; return k[1]; @@ -1272,7 +1272,7 @@ function __generator(D, e) { function t(c) { if (w) throw new TypeError("Generator is already executing."); - for (; S && (S = 0, c[0] && (p = 0)), p; ) + for (; S && (S = 0, c[0] && (h = 0)), h; ) try { if (w = 1, O && (k = c[0] & 2 ? O.return : c[0] ? O.throw || ((k = O.return) && k.call(O), 0) : O.next) && !(k = k.call(O, c[1])).done) return k; @@ -1282,34 +1282,34 @@ function __generator(D, e) { k = c; break; case 4: - return p.label++, { value: c[1], done: !1 }; + return h.label++, { value: c[1], done: !1 }; case 5: - p.label++, O = c[1], c = [0]; + h.label++, O = c[1], c = [0]; continue; case 7: - c = p.ops.pop(), p.trys.pop(); + c = h.ops.pop(), h.trys.pop(); continue; default: - if (k = p.trys, !(k = k.length > 0 && k[k.length - 1]) && (c[0] === 6 || c[0] === 2)) { - p = 0; + if (k = h.trys, !(k = k.length > 0 && k[k.length - 1]) && (c[0] === 6 || c[0] === 2)) { + h = 0; continue; } if (c[0] === 3 && (!k || c[1] > k[0] && c[1] < k[3])) { - p.label = c[1]; + h.label = c[1]; break; } - if (c[0] === 6 && p.label < k[1]) { - p.label = k[1], k = c; + if (c[0] === 6 && h.label < k[1]) { + h.label = k[1], k = c; break; } - if (k && p.label < k[2]) { - p.label = k[2], p.ops.push(c); + if (k && h.label < k[2]) { + h.label = k[2], h.ops.push(c); break; } - k[2] && p.ops.pop(), p.trys.pop(); + k[2] && h.ops.pop(), h.trys.pop(); continue; } - c = e.call(D, p); + c = e.call(D, h); } catch (u) { c = [6, u], O = 0; } finally { @@ -1321,9 +1321,9 @@ function __generator(D, e) { } } function __values(D) { - var e = typeof Symbol == "function" && Symbol.iterator, p = e && D[e], w = 0; - if (p) - return p.call(D); + var e = typeof Symbol == "function" && Symbol.iterator, h = e && D[e], w = 0; + if (h) + return h.call(D); if (D && typeof D.length == "number") return { next: function() { @@ -1333,10 +1333,10 @@ function __values(D) { throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined."); } function __read(D, e) { - var p = typeof Symbol == "function" && D[Symbol.iterator]; - if (!p) + var h = typeof Symbol == "function" && D[Symbol.iterator]; + if (!h) return D; - var w = p.call(D), O, k = [], S; + var w = h.call(D), O, k = [], S; try { for (; (e === void 0 || e-- > 0) && !(O = w.next()).done; ) k.push(O.value); @@ -1344,7 +1344,7 @@ function __read(D, e) { S = { error: a }; } finally { try { - O && !O.done && (p = w.return) && p.call(w); + O && !O.done && (h = w.return) && h.call(w); } finally { if (S) throw S.error; @@ -1352,8 +1352,8 @@ function __read(D, e) { } return k; } -function __spreadArray(D, e, p) { - if (p || arguments.length === 2) +function __spreadArray(D, e, h) { + if (h || arguments.length === 2) for (var w = 0, O = e.length, k; w < O; w++) (k || !(w in e)) && (k || (k = Array.prototype.slice.call(e, 0, w)), k[w] = e[w]); return D.concat(k || Array.prototype.slice.call(e)); @@ -1361,10 +1361,10 @@ function __spreadArray(D, e, p) { function __await(D) { return this instanceof __await ? (this.v = D, this) : new __await(D); } -function __asyncGenerator(D, e, p) { +function __asyncGenerator(D, e, h) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var w = p.apply(D, e || []), O, k = []; + var w = h.apply(D, e || []), O, k = []; return O = {}, S("next"), S("throw"), S("return"), O[Symbol.asyncIterator] = function() { return this; }, O; @@ -1398,12 +1398,12 @@ function __asyncGenerator(D, e, p) { function __asyncValues(D) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var e = D[Symbol.asyncIterator], p; - return e ? e.call(D) : (D = typeof __values == "function" ? __values(D) : D[Symbol.iterator](), p = {}, w("next"), w("throw"), w("return"), p[Symbol.asyncIterator] = function() { + var e = D[Symbol.asyncIterator], h; + return e ? e.call(D) : (D = typeof __values == "function" ? __values(D) : D[Symbol.iterator](), h = {}, w("next"), w("throw"), w("return"), h[Symbol.asyncIterator] = function() { return this; - }, p); + }, h); function w(k) { - p[k] = D[k] && function(S) { + h[k] = D[k] && function(S) { return new Promise(function(a, t) { S = D[k](S), O(a, t, S.done, S.value); }); @@ -1422,22 +1422,22 @@ function isFunction(D) { function createErrorClass(D) { var e = function(w) { Error.call(w), w.stack = new Error().stack; - }, p = D(e); - return p.prototype = Object.create(Error.prototype), p.prototype.constructor = p, p; + }, h = D(e); + return h.prototype = Object.create(Error.prototype), h.prototype.constructor = h, h; } var UnsubscriptionError = createErrorClass(function(D) { - return function(p) { - D(this), this.message = p ? p.length + ` errors occurred during unsubscription: -` + p.map(function(w, O) { + return function(h) { + D(this), this.message = h ? h.length + ` errors occurred during unsubscription: +` + h.map(function(w, O) { return O + 1 + ") " + w.toString(); }).join(` - `) : "", this.name = "UnsubscriptionError", this.errors = p; + `) : "", this.name = "UnsubscriptionError", this.errors = h; }; }); function arrRemove(D, e) { if (D) { - var p = D.indexOf(e); - 0 <= p && D.splice(p, 1); + var h = D.indexOf(e); + 0 <= h && D.splice(h, 1); } } var Subscription = function() { @@ -1445,7 +1445,7 @@ var Subscription = function() { this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null; } return D.prototype.unsubscribe = function() { - var e, p, w, O, k; + var e, h, w, O, k; if (!this.closed) { this.closed = !0; var S = this._parentage; @@ -1460,7 +1460,7 @@ var Subscription = function() { e = { error: i }; } finally { try { - t && !t.done && (p = a.return) && p.call(a); + t && !t.done && (h = a.return) && h.call(a); } finally { if (e) throw e.error; @@ -1502,7 +1502,7 @@ var Subscription = function() { throw new UnsubscriptionError(k); } }, D.prototype.add = function(e) { - var p; + var h; if (e && e !== this) if (this.closed) execFinalizer(e); @@ -1512,20 +1512,20 @@ var Subscription = function() { return; e._addParent(this); } - (this._finalizers = (p = this._finalizers) !== null && p !== void 0 ? p : []).push(e); + (this._finalizers = (h = this._finalizers) !== null && h !== void 0 ? h : []).push(e); } }, D.prototype._hasParent = function(e) { - var p = this._parentage; - return p === e || Array.isArray(p) && p.includes(e); + var h = this._parentage; + return h === e || Array.isArray(h) && h.includes(e); }, D.prototype._addParent = function(e) { - var p = this._parentage; - this._parentage = Array.isArray(p) ? (p.push(e), p) : p ? [p, e] : e; + var h = this._parentage; + this._parentage = Array.isArray(h) ? (h.push(e), h) : h ? [h, e] : e; }, D.prototype._removeParent = function(e) { - var p = this._parentage; - p === e ? this._parentage = null : Array.isArray(p) && arrRemove(p, e); + var h = this._parentage; + h === e ? this._parentage = null : Array.isArray(h) && arrRemove(h, e); }, D.prototype.remove = function(e) { - var p = this._finalizers; - p && arrRemove(p, e), e instanceof D && e._removeParent(this); + var h = this._finalizers; + h && arrRemove(h, e), e instanceof D && e._removeParent(this); }, D.EMPTY = function() { var e = new D(); return e.closed = !0, e; @@ -1546,10 +1546,10 @@ var config = { useDeprecatedNextContext: !1 }, timeoutProvider = { setTimeout: function(D, e) { - for (var p = [], w = 2; w < arguments.length; w++) - p[w - 2] = arguments[w]; + for (var h = [], w = 2; w < arguments.length; w++) + h[w - 2] = arguments[w]; var O = timeoutProvider.delegate; - return O != null && O.setTimeout ? O.setTimeout.apply(O, __spreadArray([D, e], __read(p))) : setTimeout.apply(void 0, __spreadArray([D, e], __read(p))); + return O != null && O.setTimeout ? O.setTimeout.apply(O, __spreadArray([D, e], __read(h))) : setTimeout.apply(void 0, __spreadArray([D, e], __read(h))); }, clearTimeout: function(D) { var e = timeoutProvider.delegate; @@ -1569,25 +1569,25 @@ function errorContext(D) { } var Subscriber = function(D) { __extends(e, D); - function e(p) { + function e(h) { var w = D.call(this) || this; - return w.isStopped = !1, p ? (w.destination = p, isSubscription(p) && p.add(w)) : w.destination = EMPTY_OBSERVER, w; + return w.isStopped = !1, h ? (w.destination = h, isSubscription(h) && h.add(w)) : w.destination = EMPTY_OBSERVER, w; } - return e.create = function(p, w, O) { - return new SafeSubscriber(p, w, O); - }, e.prototype.next = function(p) { - this.isStopped || this._next(p); - }, e.prototype.error = function(p) { - this.isStopped || (this.isStopped = !0, this._error(p)); + return e.create = function(h, w, O) { + return new SafeSubscriber(h, w, O); + }, e.prototype.next = function(h) { + this.isStopped || this._next(h); + }, e.prototype.error = function(h) { + this.isStopped || (this.isStopped = !0, this._error(h)); }, e.prototype.complete = function() { this.isStopped || (this.isStopped = !0, this._complete()); }, e.prototype.unsubscribe = function() { this.closed || (this.isStopped = !0, D.prototype.unsubscribe.call(this), this.destination = null); - }, e.prototype._next = function(p) { - this.destination.next(p); - }, e.prototype._error = function(p) { + }, e.prototype._next = function(h) { + this.destination.next(h); + }, e.prototype._error = function(h) { try { - this.destination.error(p); + this.destination.error(h); } finally { this.unsubscribe(); } @@ -1607,18 +1607,18 @@ var ConsumerObserver = function() { this.partialObserver = e; } return D.prototype.next = function(e) { - var p = this.partialObserver; - if (p.next) + var h = this.partialObserver; + if (h.next) try { - p.next(e); + h.next(e); } catch (w) { handleUnhandledError(w); } }, D.prototype.error = function(e) { - var p = this.partialObserver; - if (p.error) + var h = this.partialObserver; + if (h.error) try { - p.error(e); + h.error(e); } catch (w) { handleUnhandledError(w); } @@ -1629,29 +1629,29 @@ var ConsumerObserver = function() { if (e.complete) try { e.complete(); - } catch (p) { - handleUnhandledError(p); + } catch (h) { + handleUnhandledError(h); } }, D; }(), SafeSubscriber = function(D) { __extends(e, D); - function e(p, w, O) { + function e(h, w, O) { var k = D.call(this) || this, S; - if (isFunction(p) || !p) + if (isFunction(h) || !h) S = { - next: p ?? void 0, + next: h ?? void 0, error: w ?? void 0, complete: O ?? void 0 }; else { var a; - k && config.useDeprecatedNextContext ? (a = Object.create(p), a.unsubscribe = function() { + k && config.useDeprecatedNextContext ? (a = Object.create(h), a.unsubscribe = function() { return k.unsubscribe(); }, S = { - next: p.next && bind(p.next, a), - error: p.error && bind(p.error, a), - complete: p.complete && bind(p.complete, a) - }) : S = p; + next: h.next && bind(h.next, a), + error: h.error && bind(h.error, a), + complete: h.complete && bind(h.complete, a) + }) : S = h; } return k.destination = new ConsumerObserver(S), k; } @@ -1675,10 +1675,10 @@ function identity(D) { return D; } function pipeFromArray(D) { - return D.length === 0 ? identity : D.length === 1 ? D[0] : function(p) { + return D.length === 0 ? identity : D.length === 1 ? D[0] : function(h) { return D.reduce(function(w, O) { return O(w); - }, p); + }, h); }; } var Observable = function() { @@ -1686,10 +1686,10 @@ var Observable = function() { e && (this._subscribe = e); } return D.prototype.lift = function(e) { - var p = new D(); - return p.source = this, p.operator = e, p; - }, D.prototype.subscribe = function(e, p, w) { - var O = this, k = isSubscriber(e) ? e : new SafeSubscriber(e, p, w); + var h = new D(); + return h.source = this, h.operator = e, h; + }, D.prototype.subscribe = function(e, h, w) { + var O = this, k = isSubscriber(e) ? e : new SafeSubscriber(e, h, w); return errorContext(function() { var S = O, a = S.operator, t = S.source; k.add(a ? a.call(k, t) : t ? O._subscribe(k) : O._trySubscribe(k)); @@ -1697,12 +1697,12 @@ var Observable = function() { }, D.prototype._trySubscribe = function(e) { try { return this._subscribe(e); - } catch (p) { - e.error(p); + } catch (h) { + e.error(h); } - }, D.prototype.forEach = function(e, p) { + }, D.prototype.forEach = function(e, h) { var w = this; - return p = getPromiseCtor(p), new p(function(O, k) { + return h = getPromiseCtor(h), new h(function(O, k) { var S = new SafeSubscriber({ next: function(a) { try { @@ -1717,19 +1717,19 @@ var Observable = function() { w.subscribe(S); }); }, D.prototype._subscribe = function(e) { - var p; - return (p = this.source) === null || p === void 0 ? void 0 : p.subscribe(e); + var h; + return (h = this.source) === null || h === void 0 ? void 0 : h.subscribe(e); }, D.prototype[observable] = function() { return this; }, D.prototype.pipe = function() { - for (var e = [], p = 0; p < arguments.length; p++) - e[p] = arguments[p]; + for (var e = [], h = 0; h < arguments.length; h++) + e[h] = arguments[h]; return pipeFromArray(e)(this); }, D.prototype.toPromise = function(e) { - var p = this; + var h = this; return e = getPromiseCtor(e), new e(function(w, O) { var k; - p.subscribe(function(S) { + h.subscribe(function(S) { return k = S; }, function(S) { return O(S); @@ -1757,9 +1757,9 @@ function hasLift(D) { function operate(D) { return function(e) { if (hasLift(e)) - return e.lift(function(p) { + return e.lift(function(h) { try { - return D(p, this); + return D(h, this); } catch (w) { this.error(w); } @@ -1767,24 +1767,24 @@ function operate(D) { throw new TypeError("Unable to lift unknown Observable type"); }; } -function createOperatorSubscriber(D, e, p, w, O) { - return new OperatorSubscriber(D, e, p, w, O); +function createOperatorSubscriber(D, e, h, w, O) { + return new OperatorSubscriber(D, e, h, w, O); } var OperatorSubscriber = function(D) { __extends(e, D); - function e(p, w, O, k, S, a) { - var t = D.call(this, p) || this; + function e(h, w, O, k, S, a) { + var t = D.call(this, h) || this; return t.onFinalize = S, t.shouldUnsubscribe = a, t._next = w ? function(c) { try { w(c); } catch (u) { - p.error(u); + h.error(u); } } : D.prototype._next, t._error = k ? function(c) { try { k(c); } catch (u) { - p.error(u); + h.error(u); } finally { this.unsubscribe(); } @@ -1792,17 +1792,17 @@ var OperatorSubscriber = function(D) { try { O(); } catch (c) { - p.error(c); + h.error(c); } finally { this.unsubscribe(); } } : D.prototype._complete, t; } return e.prototype.unsubscribe = function() { - var p; + var h; if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { var w = this.closed; - D.prototype.unsubscribe.call(this), !w && ((p = this.onFinalize) === null || p === void 0 || p.call(this)); + D.prototype.unsubscribe.call(this), !w && ((h = this.onFinalize) === null || h === void 0 || h.call(this)); } }, e; }(Subscriber), EMPTY = new Observable(function(D) { @@ -1841,15 +1841,15 @@ function isIterable(D) { } function readableStreamLikeToAsyncGenerator(D) { return __asyncGenerator(this, arguments, function() { - var p, w, O, k; + var h, w, O, k; return __generator(this, function(S) { switch (S.label) { case 0: - p = D.getReader(), S.label = 1; + h = D.getReader(), S.label = 1; case 1: S.trys.push([1, , 9, 10]), S.label = 2; case 2: - return [4, __await(p.read())]; + return [4, __await(h.read())]; case 3: return w = S.sent(), O = w.value, k = w.done, k ? [4, __await(void 0)] : [3, 5]; case 4: @@ -1863,7 +1863,7 @@ function readableStreamLikeToAsyncGenerator(D) { case 8: return [3, 10]; case 9: - return p.releaseLock(), [7]; + return h.releaseLock(), [7]; case 10: return [2]; } @@ -1894,31 +1894,31 @@ function innerFrom(D) { } function fromInteropObservable(D) { return new Observable(function(e) { - var p = D[observable](); - if (isFunction(p.subscribe)) - return p.subscribe(e); + var h = D[observable](); + if (isFunction(h.subscribe)) + return h.subscribe(e); throw new TypeError("Provided object does not correctly implement Symbol.observable"); }); } function fromArrayLike(D) { return new Observable(function(e) { - for (var p = 0; p < D.length && !e.closed; p++) - e.next(D[p]); + for (var h = 0; h < D.length && !e.closed; h++) + e.next(D[h]); e.complete(); }); } function fromPromise(D) { return new Observable(function(e) { - D.then(function(p) { - e.closed || (e.next(p), e.complete()); - }, function(p) { - return e.error(p); + D.then(function(h) { + e.closed || (e.next(h), e.complete()); + }, function(h) { + return e.error(h); }).then(null, reportUnhandledError); }); } function fromIterable(D) { return new Observable(function(e) { - var p, w; + var h, w; try { for (var O = __values(D), k = O.next(); !k.done; k = O.next()) { var S = k.value; @@ -1926,13 +1926,13 @@ function fromIterable(D) { return; } } catch (a) { - p = { error: a }; + h = { error: a }; } finally { try { k && !k.done && (w = O.return) && w.call(O); } finally { - if (p) - throw p.error; + if (h) + throw h.error; } } e.complete(); @@ -1940,8 +1940,8 @@ function fromIterable(D) { } function fromAsyncIterable(D) { return new Observable(function(e) { - process(D, e).catch(function(p) { - return e.error(p); + process(D, e).catch(function(h) { + return e.error(h); }); }); } @@ -1949,15 +1949,15 @@ function fromReadableStreamLike(D) { return fromAsyncIterable(readableStreamLikeToAsyncGenerator(D)); } function process(D, e) { - var p, w, O, k; + var h, w, O, k; return __awaiter(this, void 0, void 0, function() { var S, a; return __generator(this, function(t) { switch (t.label) { case 0: - t.trys.push([0, 5, 6, 11]), p = __asyncValues(D), t.label = 1; + t.trys.push([0, 5, 6, 11]), h = __asyncValues(D), t.label = 1; case 1: - return [4, p.next()]; + return [4, h.next()]; case 2: if (w = t.sent(), !!w.done) return [3, 4]; @@ -1971,7 +1971,7 @@ function process(D, e) { case 5: return a = t.sent(), O = { error: a }, [3, 11]; case 6: - return t.trys.push([6, , 9, 10]), w && !w.done && (k = p.return) ? [4, k.call(p)] : [3, 8]; + return t.trys.push([6, , 9, 10]), w && !w.done && (k = h.return) ? [4, k.call(h)] : [3, 8]; case 7: t.sent(), t.label = 8; case 8: @@ -1988,17 +1988,17 @@ function process(D, e) { }); }); } -function executeSchedule(D, e, p, w, O) { +function executeSchedule(D, e, h, w, O) { w === void 0 && (w = 0), O === void 0 && (O = !1); var k = e.schedule(function() { - p(), O ? D.add(this.schedule(null, w)) : this.unsubscribe(); + h(), O ? D.add(this.schedule(null, w)) : this.unsubscribe(); }, w); if (D.add(k), !O) return k; } function observeOn(D, e) { - return e === void 0 && (e = 0), operate(function(p, w) { - p.subscribe(createOperatorSubscriber(w, function(O) { + return e === void 0 && (e = 0), operate(function(h, w) { + h.subscribe(createOperatorSubscriber(w, function(O) { return executeSchedule(w, D, function() { return w.next(O); }, e); @@ -2014,9 +2014,9 @@ function observeOn(D, e) { }); } function subscribeOn(D, e) { - return e === void 0 && (e = 0), operate(function(p, w) { + return e === void 0 && (e = 0), operate(function(h, w) { w.add(D.schedule(function() { - return p.subscribe(w); + return h.subscribe(w); }, e)); }); } @@ -2027,26 +2027,26 @@ function schedulePromise(D, e) { return innerFrom(D).pipe(subscribeOn(e), observeOn(e)); } function scheduleArray(D, e) { - return new Observable(function(p) { + return new Observable(function(h) { var w = 0; return e.schedule(function() { - w === D.length ? p.complete() : (p.next(D[w++]), p.closed || this.schedule()); + w === D.length ? h.complete() : (h.next(D[w++]), h.closed || this.schedule()); }); }); } function scheduleIterable(D, e) { - return new Observable(function(p) { + return new Observable(function(h) { var w; - return executeSchedule(p, e, function() { - w = D[iterator](), executeSchedule(p, e, function() { + return executeSchedule(h, e, function() { + w = D[iterator](), executeSchedule(h, e, function() { var O, k, S; try { O = w.next(), k = O.value, S = O.done; } catch (a) { - p.error(a); + h.error(a); return; } - S ? p.complete() : p.next(k); + S ? h.complete() : h.next(k); }, 0, !0); }), function() { return isFunction(w == null ? void 0 : w.return) && w.return(); @@ -2056,12 +2056,12 @@ function scheduleIterable(D, e) { function scheduleAsyncIterable(D, e) { if (!D) throw new Error("Iterable cannot be null"); - return new Observable(function(p) { - executeSchedule(p, e, function() { + return new Observable(function(h) { + executeSchedule(h, e, function() { var w = D[Symbol.asyncIterator](); - executeSchedule(p, e, function() { + executeSchedule(h, e, function() { w.next().then(function(O) { - O.done ? p.complete() : p.next(O.value); + O.done ? h.complete() : h.next(O.value); }); }, 0, !0); }); @@ -2093,8 +2093,8 @@ function from(D, e) { function of() { for (var D = [], e = 0; e < arguments.length; e++) D[e] = arguments[e]; - var p = popScheduler(D); - return from(D, p); + var h = popScheduler(D); + return from(D, h); } var EmptyError = createErrorClass(function(D) { return function() { @@ -2102,7 +2102,7 @@ var EmptyError = createErrorClass(function(D) { }; }); function lastValueFrom(D, e) { - var p = typeof e == "object"; + var h = typeof e == "object"; return new Promise(function(w, O) { var k = !1, S; D.subscribe({ @@ -2111,15 +2111,15 @@ function lastValueFrom(D, e) { }, error: O, complete: function() { - k ? w(S) : p ? w(e.defaultValue) : O(new EmptyError()); + k ? w(S) : h ? w(e.defaultValue) : O(new EmptyError()); } }); }); } function map(D, e) { - return operate(function(p, w) { + return operate(function(h, w) { var O = 0; - p.subscribe(createOperatorSubscriber(w, function(k) { + h.subscribe(createOperatorSubscriber(w, function(k) { w.next(D.call(e, k, O++)); })); }); @@ -2130,48 +2130,48 @@ function defer(D) { }); } function filter(D, e) { - return operate(function(p, w) { + return operate(function(h, w) { var O = 0; - p.subscribe(createOperatorSubscriber(w, function(k) { + h.subscribe(createOperatorSubscriber(w, function(k) { return D.call(e, k, O++) && w.next(k); })); }); } function catchError(D) { - return operate(function(e, p) { + return operate(function(e, h) { var w = null, O = !1, k; - w = e.subscribe(createOperatorSubscriber(p, void 0, void 0, function(S) { - k = innerFrom(D(S, catchError(D)(e))), w ? (w.unsubscribe(), w = null, k.subscribe(p)) : O = !0; - })), O && (w.unsubscribe(), w = null, k.subscribe(p)); + w = e.subscribe(createOperatorSubscriber(h, void 0, void 0, function(S) { + k = innerFrom(D(S, catchError(D)(e))), w ? (w.unsubscribe(), w = null, k.subscribe(h)) : O = !0; + })), O && (w.unsubscribe(), w = null, k.subscribe(h)); }); } function defaultIfEmpty(D) { - return operate(function(e, p) { + return operate(function(e, h) { var w = !1; - e.subscribe(createOperatorSubscriber(p, function(O) { - w = !0, p.next(O); + e.subscribe(createOperatorSubscriber(h, function(O) { + w = !0, h.next(O); }, function() { - w || p.next(D), p.complete(); + w || h.next(D), h.complete(); })); }); } function take(D) { return D <= 0 ? function() { return EMPTY; - } : operate(function(e, p) { + } : operate(function(e, h) { var w = 0; - e.subscribe(createOperatorSubscriber(p, function(O) { - ++w <= D && (p.next(O), D <= w && p.complete()); + e.subscribe(createOperatorSubscriber(h, function(O) { + ++w <= D && (h.next(O), D <= w && h.complete()); })); }); } function throwIfEmpty(D) { - return D === void 0 && (D = defaultErrorFactory), operate(function(e, p) { + return D === void 0 && (D = defaultErrorFactory), operate(function(e, h) { var w = !1; - e.subscribe(createOperatorSubscriber(p, function(O) { - w = !0, p.next(O); + e.subscribe(createOperatorSubscriber(h, function(O) { + w = !0, h.next(O); }, function() { - return w ? p.complete() : p.error(D()); + return w ? h.complete() : h.error(D()); })); }); } @@ -2179,21 +2179,21 @@ function defaultErrorFactory() { return new EmptyError(); } function first(D, e) { - var p = arguments.length >= 2; + var h = arguments.length >= 2; return function(w) { return w.pipe(D ? filter(function(O, k) { return D(O, k, w); - }) : identity, take(1), p ? defaultIfEmpty(e) : throwIfEmpty(function() { + }) : identity, take(1), h ? defaultIfEmpty(e) : throwIfEmpty(function() { return new EmptyError(); })); }; } function switchMap(D, e) { - return operate(function(p, w) { + return operate(function(h, w) { var O = null, k = 0, S = !1, a = function() { return S && !O && w.complete(); }; - p.subscribe(createOperatorSubscriber(w, function(t) { + h.subscribe(createOperatorSubscriber(w, function(t) { O == null || O.unsubscribe(); var c = 0, u = k++; innerFrom(D(t, u)).subscribe(O = createOperatorSubscriber(w, function(s) { @@ -2206,8 +2206,8 @@ function switchMap(D, e) { })); }); } -function tap(D, e, p) { - var w = isFunction(D) || e || p ? { next: D, error: e, complete: p } : D; +function tap(D, e, h) { + var w = isFunction(D) || e || h ? { next: D, error: e, complete: h } : D; return w ? operate(function(O, k) { var S; (S = w.subscribe) === null || S === void 0 || S.call(w); @@ -2245,23 +2245,23 @@ function identifyQueryResponseErrors(D) { const secretClientContractQuery$ = ({ queryMsg: D, client: e, - contractAddress: p, + contractAddress: h, codeHash: w }) => createFetchClient(defer( () => from(e.query.compute.queryContract({ - contract_address: p, + contract_address: h, code_hash: w, query: D })) )), sendSecretClientContractQuery$ = ({ queryMsg: D, client: e, - contractAddress: p, + contractAddress: h, codeHash: w }) => secretClientContractQuery$({ queryMsg: D, client: e, - contractAddress: p, + contractAddress: h, codeHash: w }).pipe( tap((O) => identifyQueryResponseErrors(O)), @@ -2274,22 +2274,22 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" module.exports = e(); })(commonjsGlobal, () => (() => { var __webpack_modules__ = { 7768: (D, e) => { - Object.defineProperty(e, "__esModule", { value: !0 }), e.fromAscii = e.toAscii = void 0, e.toAscii = function(p) { - return Uint8Array.from(p.split("").map((w) => { + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromAscii = e.toAscii = void 0, e.toAscii = function(h) { + return Uint8Array.from(h.split("").map((w) => { const O = w.charCodeAt(0); if (O < 32 || O > 126) throw new Error("Cannot encode character that is out of printable ASCII range: " + O); return O; })); - }, e.fromAscii = function(p) { - return (w = Array.from(p), w.map((O) => { + }, e.fromAscii = function(h) { + return (w = Array.from(h), w.map((O) => { if (O < 32 || O > 126) throw new Error("Cannot decode character that is out of printable ASCII range: " + O); return String.fromCharCode(O); })).join(""); var w; }; - }, 3431: function(D, e, p) { + }, 3431: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -2310,7 +2310,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.fromBase64 = e.toBase64 = void 0; - const S = k(p(9742)); + const S = k(h(9742)); e.toBase64 = function(a) { return S.fromByteArray(a); }, e.fromBase64 = function(a) { @@ -2318,7 +2318,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" throw new Error("Invalid base64 string format"); return S.toByteArray(a); }; - }, 5438: function(D, e, p) { + }, 5438: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -2339,7 +2339,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Bech32 = void 0; - const S = k(p(3235)); + const S = k(h(3235)); e.Bech32 = class { static encode(a, t, c) { return S.encode(a, S.toWords(t), c); @@ -2350,54 +2350,54 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } }; }, 6135: (D, e) => { - Object.defineProperty(e, "__esModule", { value: !0 }), e.fromHex = e.toHex = void 0, e.toHex = function(p) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromHex = e.toHex = void 0, e.toHex = function(h) { let w = ""; - for (const O of p) + for (const O of h) w += ("0" + O.toString(16)).slice(-2); return w; - }, e.fromHex = function(p) { - if (p.length % 2 != 0) + }, e.fromHex = function(h) { + if (h.length % 2 != 0) throw new Error("hex string length must be a multiple of 2"); const w = []; - for (let O = 0; O < p.length; O += 2) { - const k = p.substr(O, 2); + for (let O = 0; O < h.length; O += 2) { + const k = h.substr(O, 2); if (!k.match(/[0-9a-f]{2}/i)) throw new Error("hex string contains invalid characters"); w.push(parseInt(k, 16)); } return new Uint8Array(w); }; - }, 8972: (D, e, p) => { + }, 8972: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.toUtf8 = e.fromUtf8 = e.toRfc3339 = e.fromRfc3339 = e.toHex = e.fromHex = e.Bech32 = e.toBase64 = e.fromBase64 = e.toAscii = e.fromAscii = void 0; - var w = p(7768); + var w = h(7768); Object.defineProperty(e, "fromAscii", { enumerable: !0, get: function() { return w.fromAscii; } }), Object.defineProperty(e, "toAscii", { enumerable: !0, get: function() { return w.toAscii; } }); - var O = p(3431); + var O = h(3431); Object.defineProperty(e, "fromBase64", { enumerable: !0, get: function() { return O.fromBase64; } }), Object.defineProperty(e, "toBase64", { enumerable: !0, get: function() { return O.toBase64; } }); - var k = p(5438); + var k = h(5438); Object.defineProperty(e, "Bech32", { enumerable: !0, get: function() { return k.Bech32; } }); - var S = p(6135); + var S = h(6135); Object.defineProperty(e, "fromHex", { enumerable: !0, get: function() { return S.fromHex; } }), Object.defineProperty(e, "toHex", { enumerable: !0, get: function() { return S.toHex; } }); - var a = p(7310); + var a = h(7310); Object.defineProperty(e, "fromRfc3339", { enumerable: !0, get: function() { return a.fromRfc3339; } }), Object.defineProperty(e, "toRfc3339", { enumerable: !0, get: function() { return a.toRfc3339; } }); - var t = p(6081); + var t = h(6081); Object.defineProperty(e, "fromUtf8", { enumerable: !0, get: function() { return t.fromUtf8; } }), Object.defineProperty(e, "toUtf8", { enumerable: !0, get: function() { @@ -2405,13 +2405,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } }); }, 7310: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.toRfc3339 = e.fromRfc3339 = void 0; - const p = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/; + const h = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/; function w(O, k = 2) { const S = "00000" + O.toString(); return S.substring(S.length - k); } e.fromRfc3339 = function(O) { - const k = p.exec(O); + const k = h.exec(O); if (!k) throw new Error("Date string is not in RFC3339 format"); const S = +k[1], a = +k[2], t = +k[3], c = +k[4], u = +k[5], s = +k[6], r = k[7] ? Math.floor(1e3 * +k[7]) : 0; @@ -2423,17 +2423,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return `${O.getUTCFullYear()}-${w(O.getUTCMonth() + 1)}-${w(O.getUTCDate())}T${w(O.getUTCHours())}:${w(O.getUTCMinutes())}:${w(O.getUTCSeconds())}.${w(O.getUTCMilliseconds(), 3)}Z`; }; }, 6081: (D, e) => { - Object.defineProperty(e, "__esModule", { value: !0 }), e.fromUtf8 = e.toUtf8 = void 0, e.toUtf8 = function(p) { - return new TextEncoder().encode(p); - }, e.fromUtf8 = function(p) { - return new TextDecoder("utf-8", { fatal: !0 }).decode(p); + Object.defineProperty(e, "__esModule", { value: !0 }), e.fromUtf8 = e.toUtf8 = void 0, e.toUtf8 = function(h) { + return new TextEncoder().encode(h); + }, e.fromUtf8 = function(h) { + return new TextDecoder("utf-8", { fatal: !0 }).decode(h); }; }, 3235: (D) => { - for (var e = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", p = {}, w = 0; w < 32; w++) { + for (var e = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", h = {}, w = 0; w < 32; w++) { var O = e.charAt(w); - if (p[O] !== void 0) + if (h[O] !== void 0) throw new TypeError(O + " is ambiguous"); - p[O] = w; + h[O] = w; } function k(c) { var u = c >> 25; @@ -2471,11 +2471,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" var f = S(o); if (typeof f == "string") return f; - for (var d = [], h = 0; h < i.length; ++h) { - var _ = i.charAt(h), b = p[_]; + for (var d = [], p = 0; p < i.length; ++p) { + var _ = i.charAt(p), b = h[_]; if (b === void 0) return "Unknown character " + _; - f = k(f) ^ b, h + 6 >= i.length || d.push(b); + f = k(f) ^ b, p + 6 >= i.length || d.push(b); } return f !== 1 ? "Invalid checksum for " + c : { prefix: o, words: d }; } @@ -2538,9 +2538,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return u; throw new Error(u); } }; - }, 7505: (D, e, p) => { + }, 7505: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.SHA2 = void 0; - const w = p(8089); + const w = h(8089); class O extends w.Hash { constructor(S, a, t, c) { super(), this.blockLen = S, this.outputLen = a, this.padOffset = t, this.isLE = c, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(S), this.view = (0, w.createView)(this.buffer); @@ -2580,7 +2580,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" (function(n, o, i, f) { if (typeof n.setBigUint64 == "function") return n.setBigUint64(o, i, f); - const d = BigInt(32), h = BigInt(4294967295), _ = Number(i >> d & h), b = Number(i & h), I = f ? 4 : 0, l = f ? 0 : 4; + const d = BigInt(32), p = BigInt(4294967295), _ = Number(i >> d & p), b = Number(i & p), I = f ? 4 : 0, l = f ? 0 : 4; n.setUint32(o + I, _, f), n.setUint32(o + l, b, f); })(t, c - 8, BigInt(8 * this.length), u), this.process(t, 0); const r = (0, w.createView)(S); @@ -2601,9 +2601,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" e.SHA2 = O; }, 6873: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.add5H = e.add5L = e.add4H = e.add4L = e.add3H = e.add3L = e.add = e.rotlBL = e.rotlBH = e.rotlSL = e.rotlSH = e.rotr32L = e.rotr32H = e.rotrBL = e.rotrBH = e.rotrSL = e.rotrSH = e.shrSL = e.shrSH = e.toBig = e.split = e.fromBig = void 0; - const p = BigInt(2 ** 32 - 1), w = BigInt(32); + const h = BigInt(2 ** 32 - 1), w = BigInt(32); function O(k, S = !1) { - return S ? { h: Number(k & p), l: Number(k >> w & p) } : { h: 0 | Number(k >> w & p), l: 0 | Number(k & p) }; + return S ? { h: Number(k & h), l: Number(k >> w & h) } : { h: 0 | Number(k >> w & h), l: 0 | Number(k & h) }; } e.fromBig = O, e.split = function(k, S = !1) { let a = new Uint32Array(k.length), t = new Uint32Array(k.length); @@ -2618,9 +2618,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" }, e.add3L = (k, S, a) => (k >>> 0) + (S >>> 0) + (a >>> 0), e.add3H = (k, S, a, t) => S + a + t + (k / 4294967296 | 0) | 0, e.add4L = (k, S, a, t) => (k >>> 0) + (S >>> 0) + (a >>> 0) + (t >>> 0), e.add4H = (k, S, a, t, c) => S + a + t + c + (k / 4294967296 | 0) | 0, e.add5L = (k, S, a, t, c) => (k >>> 0) + (S >>> 0) + (a >>> 0) + (t >>> 0) + (c >>> 0), e.add5H = (k, S, a, t, c, u) => S + a + t + c + u + (k / 4294967296 | 0) | 0; }, 4421: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.crypto = void 0, e.crypto = { node: void 0, web: typeof self == "object" && "crypto" in self ? self.crypto : void 0 }; - }, 4330: (D, e, p) => { + }, 4330: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.hkdf = e.expand = e.extract = void 0; - const w = p(8089), O = p(9569); + const w = h(8089), O = h(9569); function k(c, u, s) { return (0, w.assertHash)(c), s === void 0 && (s = new Uint8Array(c.outputLen)), (0, O.hmac)(c, (0, w.toBytes)(s), (0, w.toBytes)(u)); } @@ -2632,14 +2632,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" const n = Math.ceil(r / c.outputLen); s === void 0 && (s = a); const o = new Uint8Array(n * c.outputLen), i = O.hmac.create(c, u), f = i._cloneInto(), d = new Uint8Array(i.outputLen); - for (let h = 0; h < n; h++) - S[0] = h + 1, f.update(h === 0 ? a : d).update(s).update(S).digestInto(d), o.set(d, c.outputLen * h), i._cloneInto(f); + for (let p = 0; p < n; p++) + S[0] = p + 1, f.update(p === 0 ? a : d).update(s).update(S).digestInto(d), o.set(d, c.outputLen * p), i._cloneInto(f); return i.destroy(), f.destroy(), d.fill(0), S.fill(0), o.slice(0, r); } e.expand = t, e.hkdf = (c, u, s, r, n) => t(c, k(c, u, s), r, n); - }, 9569: (D, e, p) => { + }, 9569: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.hmac = void 0; - const w = p(8089); + const w = h(8089); class O extends w.Hash { constructor(S, a) { super(), this.finished = !1, this.destroyed = !1, (0, w.assertHash)(S); @@ -2685,9 +2685,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } } e.hmac = (k, S, a) => new O(k, S).update(a).digest(), e.hmac.create = (k, S) => new O(k, S); - }, 830: (D, e, p) => { + }, 830: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.ripemd160 = e.RIPEMD160 = void 0; - const w = p(7505), O = p(8089), k = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]), S = Uint8Array.from({ length: 16 }, (_, b) => b), a = S.map((_) => (9 * _ + 5) % 16); + const w = h(7505), O = h(8089), k = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]), S = Uint8Array.from({ length: 16 }, (_, b) => b), a = S.map((_) => (9 * _ + 5) % 16); let t = [S], c = [a]; for (let _ = 0; _ < 4; _++) for (let b of [t, c]) @@ -2697,7 +2697,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return _ === 0 ? b ^ I ^ l : _ === 1 ? b & I | ~b & l : _ === 2 ? (b | ~I) ^ l : _ === 3 ? b & l | I & ~l : b ^ (I | ~l); } const d = new Uint32Array(16); - class h extends w.SHA2 { + class p extends w.SHA2 { constructor() { super(64, 20, 8, !0), this.h0 = 1732584193, this.h1 = -271733879, this.h2 = -1732584194, this.h3 = 271733878, this.h4 = -1009589776; } @@ -2732,20 +2732,20 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" this.destroyed = !0, this.buffer.fill(0), this.set(0, 0, 0, 0, 0); } } - e.RIPEMD160 = h, e.ripemd160 = (0, O.wrapConstructor)(() => new h()); - }, 3061: (D, e, p) => { + e.RIPEMD160 = p, e.ripemd160 = (0, O.wrapConstructor)(() => new p()); + }, 3061: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.sha256 = void 0; - const w = p(7505), O = p(8089), k = (u, s, r) => u & s ^ u & r ^ s & r, S = 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]), a = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]), t = new Uint32Array(64); + const w = h(7505), O = h(8089), k = (u, s, r) => u & s ^ u & r ^ s & r, S = 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]), a = new Uint32Array([1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225]), t = new Uint32Array(64); class c extends w.SHA2 { constructor() { super(64, 32, 8, !1), this.A = 0 | a[0], this.B = 0 | a[1], this.C = 0 | a[2], this.D = 0 | a[3], this.E = 0 | a[4], this.F = 0 | a[5], this.G = 0 | a[6], this.H = 0 | a[7]; } get() { - const { A: s, B: r, C: n, D: o, E: i, F: f, G: d, H: h } = this; - return [s, r, n, o, i, f, d, h]; + const { A: s, B: r, C: n, D: o, E: i, F: f, G: d, H: p } = this; + return [s, r, n, o, i, f, d, p]; } - set(s, r, n, o, i, f, d, h) { - this.A = 0 | s, this.B = 0 | r, this.C = 0 | n, this.D = 0 | o, this.E = 0 | i, this.F = 0 | f, this.G = 0 | d, this.H = 0 | h; + set(s, r, n, o, i, f, d, p) { + this.A = 0 | s, this.B = 0 | r, this.C = 0 | n, this.D = 0 | o, this.E = 0 | i, this.F = 0 | f, this.G = 0 | d, this.H = 0 | p; } process(s, r) { for (let l = 0; l < 16; l++, r += 4) @@ -2754,13 +2754,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" const j = t[l - 15], M = t[l - 2], N = (0, O.rotr)(j, 7) ^ (0, O.rotr)(j, 18) ^ j >>> 3, C = (0, O.rotr)(M, 17) ^ (0, O.rotr)(M, 19) ^ M >>> 10; t[l] = C + t[l - 7] + N + t[l - 16] | 0; } - let { A: n, B: o, C: i, D: f, E: d, F: h, G: _, H: b } = this; + let { A: n, B: o, C: i, D: f, E: d, F: p, G: _, H: b } = this; for (let l = 0; l < 64; l++) { - const j = b + ((0, O.rotr)(d, 6) ^ (0, O.rotr)(d, 11) ^ (0, O.rotr)(d, 25)) + ((I = d) & h ^ ~I & _) + S[l] + t[l] | 0, M = ((0, O.rotr)(n, 2) ^ (0, O.rotr)(n, 13) ^ (0, O.rotr)(n, 22)) + k(n, o, i) | 0; - b = _, _ = h, h = d, d = f + j | 0, f = i, i = o, o = n, n = j + M | 0; + const j = b + ((0, O.rotr)(d, 6) ^ (0, O.rotr)(d, 11) ^ (0, O.rotr)(d, 25)) + ((I = d) & p ^ ~I & _) + S[l] + t[l] | 0, M = ((0, O.rotr)(n, 2) ^ (0, O.rotr)(n, 13) ^ (0, O.rotr)(n, 22)) + k(n, o, i) | 0; + b = _, _ = p, p = d, d = f + j | 0, f = i, i = o, o = n, n = j + M | 0; } var I; - n = n + this.A | 0, o = o + this.B | 0, i = i + this.C | 0, f = f + this.D | 0, d = d + this.E | 0, h = h + this.F | 0, _ = _ + this.G | 0, b = b + this.H | 0, this.set(n, o, i, f, d, h, _, b); + n = n + this.A | 0, o = o + this.B | 0, i = i + this.C | 0, f = f + this.D | 0, d = d + this.E | 0, p = p + this.F | 0, _ = _ + this.G | 0, b = b + this.H | 0, this.set(n, o, i, f, d, p, _, b); } roundClean() { t.fill(0); @@ -2770,7 +2770,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } } e.sha256 = (0, O.wrapConstructor)(() => new c()); - }, 5426: function(D, e, p) { + }, 5426: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(N, C, x, P) { P === void 0 && (P = x), Object.defineProperty(N, P, { enumerable: !0, get: function() { return C[x]; @@ -2791,7 +2791,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return O(C, N), C; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.shake256 = e.shake128 = e.keccak_512 = e.keccak_384 = e.keccak_256 = e.keccak_224 = e.sha3_512 = e.sha3_384 = e.sha3_256 = e.sha3_224 = e.Keccak = e.keccakP = void 0; - const S = k(p(6873)), a = p(8089), [t, c, u] = [[], [], []], s = BigInt(0), r = BigInt(1), n = BigInt(2), o = BigInt(7), i = BigInt(256), f = BigInt(113); + const S = k(h(6873)), a = h(8089), [t, c, u] = [[], [], []], s = BigInt(0), r = BigInt(1), n = BigInt(2), o = BigInt(7), i = BigInt(256), f = BigInt(113); for (let N = 0, C = r, x = 1, P = 0; N < 24; N++) { [x, P] = [P, (2 * x + 3 * P) % 5], t.push(2 * (5 * P + x)), c.push((N + 1) * (N + 2) / 2 % 64); let v = s; @@ -2799,7 +2799,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" C = (C << r ^ (C >> o) * f) % i, C & n && (v ^= r << (r << BigInt(m)) - r); u.push(v); } - const [d, h] = S.split(u, !0), _ = (N, C, x) => x > 32 ? S.rotlBH(N, C, x) : S.rotlSH(N, C, x), b = (N, C, x) => x > 32 ? S.rotlBL(N, C, x) : S.rotlSL(N, C, x); + const [d, p] = S.split(u, !0), _ = (N, C, x) => x > 32 ? S.rotlBH(N, C, x) : S.rotlSH(N, C, x), b = (N, C, x) => x > 32 ? S.rotlBL(N, C, x) : S.rotlSL(N, C, x); function I(N, C = 24) { const x = new Uint32Array(10); for (let P = 24 - C; P < 24; P++) { @@ -2821,7 +2821,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" for (let B = 0; B < 10; B++) N[E + B] ^= ~x[(B + 2) % 10] & x[(B + 4) % 10]; } - N[0] ^= d[P], N[1] ^= h[P]; + N[0] ^= d[P], N[1] ^= p[P]; } x.fill(0); } @@ -2900,9 +2900,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" e.sha3_224 = j(6, 144, 28), e.sha3_256 = j(6, 136, 32), e.sha3_384 = j(6, 104, 48), e.sha3_512 = j(6, 72, 64), e.keccak_224 = j(1, 144, 28), e.keccak_256 = j(1, 136, 32), e.keccak_384 = j(1, 104, 48), e.keccak_512 = j(1, 72, 64); const M = (N, C, x) => (0, a.wrapConstructorWithOpts)((P = {}) => new l(C, N, P.dkLen !== void 0 ? P.dkLen : x, !0)); e.shake128 = M(31, 168, 16), e.shake256 = M(31, 136, 32); - }, 8089: (D, e, p) => { - D = p.nmd(D), Object.defineProperty(e, "__esModule", { value: !0 }), e.randomBytes = e.wrapConstructorWithOpts = e.wrapConstructor = e.checkOpts = e.Hash = e.assertHash = e.assertBytes = e.assertBool = e.assertNumber = e.concatBytes = e.toBytes = e.utf8ToBytes = e.asyncLoop = e.nextTick = e.hexToBytes = e.bytesToHex = e.isLE = e.rotr = e.createView = e.u32 = e.u8 = void 0; - const w = p(4421); + }, 8089: (D, e, h) => { + D = h.nmd(D), Object.defineProperty(e, "__esModule", { value: !0 }), e.randomBytes = e.wrapConstructorWithOpts = e.wrapConstructor = e.checkOpts = e.Hash = e.assertHash = e.assertBytes = e.assertBool = e.assertNumber = e.concatBytes = e.toBytes = e.utf8ToBytes = e.asyncLoop = e.nextTick = e.hexToBytes = e.bytesToHex = e.isLE = e.rotr = e.createView = e.u32 = e.u8 = void 0; + const w = h(4421); if (e.u8 = (t) => new Uint8Array(t.buffer, t.byteOffset, t.byteLength), e.u32 = (t) => new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4)), e.createView = (t) => new DataView(t.buffer, t.byteOffset, t.byteLength), e.rotr = (t, c) => t << 32 - c | t >>> c, e.isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68, !e.isLE) throw new Error("Non little-endian hardware is not supported"); const O = Array.from({ length: 256 }, (t, c) => c.toString(16).padStart(2, "0")); @@ -2998,9 +2998,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return new Uint8Array(w.crypto.node.randomBytes(t).buffer); throw new Error("The environment doesn't have randomBytes function"); }; - }, 9656: (D, e, p) => { + }, 9656: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.utils = e.schnorr = e.verify = e.signSync = e.sign = e.getSharedSecret = e.recoverPublicKey = e.getPublicKey = e.Signature = e.Point = e.CURVE = void 0; - const w = p(9159), O = BigInt(0), k = BigInt(1), S = BigInt(2), a = BigInt(3), t = BigInt(8), c = Object.freeze({ a: O, b: BigInt(7), P: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), h: k, Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"), Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"), beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee") }); + const w = h(9159), O = BigInt(0), k = BigInt(1), S = BigInt(2), a = BigInt(3), t = BigInt(8), c = Object.freeze({ a: O, b: BigInt(7), P: BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"), n: BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"), h: k, Gx: BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"), Gy: BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"), beta: BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee") }); function u(X) { const { a: Q, b: Z } = c, se = E(X * X), ue = E(se * X); return E(ue + Q * X + Z); @@ -3238,7 +3238,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return { data: P(Z), left: X.subarray(Q + 2) }; } e.Point = i, i.BASE = new i(c.Gx, c.Gy), i.ZERO = new i(O, O); - class h { + class p { constructor(Q, Z) { this.r = Q, this.s = Z, this.assertValidity(); } @@ -3249,7 +3249,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" const ue = Z ? I(Q) : Q; if (ue.length !== 128) throw new Error(`${se}: Expected 64-byte hex`); - return new h(C(ue.slice(0, 64)), C(ue.slice(64, 128))); + return new p(C(ue.slice(0, 64)), C(ue.slice(64, 128))); } static fromDER(Q) { const Z = Q instanceof Uint8Array; @@ -3265,7 +3265,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" throw new Error(`Invalid signature: left bytes after parsing: ${I(_e)}`); return { r: me, s: be }; }(Z ? Q : x(Q)); - return new h(se, ue); + return new p(se, ue); } static fromHex(Q) { return this.fromDER(Q); @@ -3282,7 +3282,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return this.s > Q; } normalizeS() { - return this.hasHighS() ? new h(this.r, c.n - this.s) : this; + return this.hasHighS() ? new p(this.r, c.n - this.s) : this; } toDERRawBytes(Q = !1) { return x(this.toDERHex(Q)); @@ -3319,7 +3319,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } return Z; } - e.Signature = h; + e.Signature = p; const b = Array.from({ length: 256 }, (X, Q) => Q.toString(16).padStart(2, "0")); function I(X) { if (!(X instanceof Uint8Array)) @@ -3465,7 +3465,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" const ge = E(T(se, ue) * E(Q + Z * me, ue), ue); if (ge === O) return; - const be = new h(me, ge); + const be = new p(me, ge); return { sig: be, recovery: (fe.x === be.r ? 0 : 2) | Number(fe.y & k) }; } function F(X) { @@ -3493,12 +3493,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return X instanceof i ? (X.assertValidity(), X) : i.fromHex(X); } function he(X) { - if (X instanceof h) + if (X instanceof p) return X.assertValidity(), X; try { - return h.fromDER(X); + return p.fromDER(X); } catch { - return h.fromCompact(X); + return p.fromCompact(X); } } function le(X) { @@ -3743,7 +3743,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ee || (ee = X); } } }); }, 4537: (D) => { - D.exports = function(e, p) { + D.exports = function(e, h) { for (var w = new Array(arguments.length - 1), O = 0, k = 2, S = !0; k < arguments.length; ) w[O++] = arguments[k++]; return new Promise(function(a, t) { @@ -3758,15 +3758,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } }; try { - e.apply(p || null, w); + e.apply(h || null, w); } catch (c) { S && (S = !1, t(c)); } }); }; }, 7419: (D, e) => { - var p = e; - p.length = function(a) { + var h = e; + h.length = function(a) { var t = a.length; if (!t) return 0; @@ -3776,7 +3776,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" }; for (var w = new Array(64), O = new Array(123), k = 0; k < 64; ) O[w[k] = k < 26 ? k + 65 : k < 52 ? k + 71 : k < 62 ? k - 4 : k - 59 | 43] = k++; - p.encode = function(a, t, c) { + h.encode = function(a, t, c) { for (var u, s = null, r = [], n = 0, o = 0; t < c; ) { var i = a[t++]; switch (o) { @@ -3794,7 +3794,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return o && (r[n++] = w[u], r[n++] = 61, o === 1 && (r[n++] = 61)), s ? (n && s.push(String.fromCharCode.apply(String, r.slice(0, n))), s.join("")) : String.fromCharCode.apply(String, r.slice(0, n)); }; var S = "invalid encoding"; - p.decode = function(a, t, c) { + h.decode = function(a, t, c) { for (var u, s = c, r = 0, n = 0; n < a.length; ) { var o = a.charCodeAt(n++); if (o === 61 && r > 1) @@ -3818,26 +3818,26 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" if (r === 1) throw Error(S); return c - s; - }, p.test = function(a) { + }, h.test = function(a) { return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a); }; }, 9211: (D) => { function e() { this._listeners = {}; } - D.exports = e, e.prototype.on = function(p, w, O) { - return (this._listeners[p] || (this._listeners[p] = [])).push({ fn: w, ctx: O || this }), this; - }, e.prototype.off = function(p, w) { - if (p === void 0) + D.exports = e, e.prototype.on = function(h, w, O) { + return (this._listeners[h] || (this._listeners[h] = [])).push({ fn: w, ctx: O || this }), this; + }, e.prototype.off = function(h, w) { + if (h === void 0) this._listeners = {}; else if (w === void 0) - this._listeners[p] = []; + this._listeners[h] = []; else - for (var O = this._listeners[p], k = 0; k < O.length; ) + for (var O = this._listeners[h], k = 0; k < O.length; ) O[k].fn === w ? O.splice(k, 1) : ++k; return this; - }, e.prototype.emit = function(p) { - var w = this._listeners[p]; + }, e.prototype.emit = function(h) { + var w = this._listeners[h]; if (w) { for (var O = [], k = 1; k < arguments.length; ) O.push(arguments[k++]); @@ -3883,7 +3883,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" var r = c(u, s), n = 2 * (r >> 31) + 1, o = r >>> 23 & 255, i = 8388607 & r; return o === 255 ? i ? NaN : n * (1 / 0) : o === 0 ? 1401298464324817e-60 * n * i : n * Math.pow(2, o - 150) * (i + 8388608); } - S.writeFloatLE = a.bind(null, p), S.writeFloatBE = a.bind(null, w), S.readFloatLE = t.bind(null, O), S.readFloatBE = t.bind(null, k); + S.writeFloatLE = a.bind(null, h), S.writeFloatBE = a.bind(null, w), S.readFloatLE = t.bind(null, O), S.readFloatBE = t.bind(null, k); }(), typeof Float64Array < "u" ? function() { var a = new Float64Array([-0]), t = new Uint8Array(a.buffer), c = t[7] === 128; function u(o, i, f) { @@ -3919,13 +3919,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } } function t(c, u, s, r, n) { - var o = c(r, n + u), i = c(r, n + s), f = 2 * (i >> 31) + 1, d = i >>> 20 & 2047, h = 4294967296 * (1048575 & i) + o; - return d === 2047 ? h ? NaN : f * (1 / 0) : d === 0 ? 5e-324 * f * h : f * Math.pow(2, d - 1075) * (h + 4503599627370496); + var o = c(r, n + u), i = c(r, n + s), f = 2 * (i >> 31) + 1, d = i >>> 20 & 2047, p = 4294967296 * (1048575 & i) + o; + return d === 2047 ? p ? NaN : f * (1 / 0) : d === 0 ? 5e-324 * f * p : f * Math.pow(2, d - 1075) * (p + 4503599627370496); } - S.writeDoubleLE = a.bind(null, p, 0, 4), S.writeDoubleBE = a.bind(null, w, 4, 0), S.readDoubleLE = t.bind(null, O, 0, 4), S.readDoubleBE = t.bind(null, k, 4, 0); + S.writeDoubleLE = a.bind(null, h, 0, 4), S.writeDoubleBE = a.bind(null, w, 4, 0), S.readDoubleLE = t.bind(null, O, 0, 4), S.readDoubleBE = t.bind(null, k, 4, 0); }(), S; } - function p(S, a, t) { + function h(S, a, t) { a[t] = 255 & S, a[t + 1] = S >>> 8 & 255, a[t + 2] = S >>> 16 & 255, a[t + 3] = S >>> 24; } function w(S, a, t) { @@ -3950,35 +3950,35 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" } module.exports = inquire; }, 6662: (D) => { - D.exports = function(e, p, w) { + D.exports = function(e, h, w) { var O = w || 8192, k = O >>> 1, S = null, a = O; return function(t) { if (t < 1 || t > k) return e(t); a + t > O && (S = e(O), a = 0); - var c = p.call(S, a, a += t); + var c = h.call(S, a, a += t); return 7 & a && (a = 1 + (7 | a)), c; }; }; }, 4997: (D, e) => { - var p = e; - p.length = function(w) { + var h = e; + h.length = function(w) { for (var O = 0, k = 0, S = 0; S < w.length; ++S) (k = w.charCodeAt(S)) < 128 ? O += 1 : k < 2048 ? O += 2 : (64512 & k) == 55296 && (64512 & w.charCodeAt(S + 1)) == 56320 ? (++S, O += 4) : O += 3; return O; - }, p.read = function(w, O, k) { + }, h.read = function(w, O, k) { if (k - O < 1) return ""; for (var S, a = null, t = [], c = 0; O < k; ) (S = w[O++]) < 128 ? t[c++] = S : S > 191 && S < 224 ? t[c++] = (31 & S) << 6 | 63 & w[O++] : S > 239 && S < 365 ? (S = ((7 & S) << 18 | (63 & w[O++]) << 12 | (63 & w[O++]) << 6 | 63 & w[O++]) - 65536, t[c++] = 55296 + (S >> 10), t[c++] = 56320 + (1023 & S)) : t[c++] = (15 & S) << 12 | (63 & w[O++]) << 6 | 63 & w[O++], c > 8191 && ((a || (a = [])).push(String.fromCharCode.apply(String, t)), c = 0); return a ? (c && a.push(String.fromCharCode.apply(String, t.slice(0, c))), a.join("")) : String.fromCharCode.apply(String, t.slice(0, c)); - }, p.write = function(w, O, k) { + }, h.write = function(w, O, k) { for (var S, a, t = k, c = 0; c < w.length; ++c) (S = w.charCodeAt(c)) < 128 ? O[k++] = S : S < 2048 ? (O[k++] = S >> 6 | 192, O[k++] = 63 & S | 128) : (64512 & S) == 55296 && (64512 & (a = w.charCodeAt(c + 1))) == 56320 ? (S = 65536 + ((1023 & S) << 10) + (1023 & a), ++c, O[k++] = S >> 18 | 240, O[k++] = S >> 12 & 63 | 128, O[k++] = S >> 6 & 63 | 128, O[k++] = 63 & S | 128) : (O[k++] = S >> 12 | 224, O[k++] = S >> 6 & 63 | 128, O[k++] = 63 & S | 128); return k - t; }; - }, 9282: (D, e, p) => { - var w = p(4155), O = p(5108); + }, 9282: (D, e, h) => { + var w = h(4155), O = h(5108); function k(G) { return k = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function($) { return typeof $; @@ -4007,9 +4007,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" function a(G, $, W) { return $ && S(G.prototype, $), W && S(G, W), Object.defineProperty(G, "prototype", { writable: !1 }), G; } - var t, c, u = p(2136).codes, s = u.ERR_AMBIGUOUS_ARGUMENT, r = u.ERR_INVALID_ARG_TYPE, n = u.ERR_INVALID_ARG_VALUE, o = u.ERR_INVALID_RETURN_VALUE, i = u.ERR_MISSING_ARGS, f = p(5961), d = p(9539).inspect, h = p(9539).types, _ = h.isPromise, b = h.isRegExp, I = p(8162)(), l = p(5624)(), j = p(1924)("RegExp.prototype.test"); + var t, c, u = h(2136).codes, s = u.ERR_AMBIGUOUS_ARGUMENT, r = u.ERR_INVALID_ARG_TYPE, n = u.ERR_INVALID_ARG_VALUE, o = u.ERR_INVALID_RETURN_VALUE, i = u.ERR_MISSING_ARGS, f = h(5961), d = h(9539).inspect, p = h(9539).types, _ = p.isPromise, b = p.isRegExp, I = h(8162)(), l = h(5624)(), j = h(1924)("RegExp.prototype.test"); function M() { - var G = p(9158); + var G = h(9158); t = G.isDeepEqual, c = G.isDeepStrictEqual; } var N = !1, C = D.exports = m, x = {}; @@ -4245,8 +4245,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" }, C.doesNotMatch = function G($, W, Y) { J($, W, Y, G, "doesNotMatch"); }, C.strict = I(ee, C, { equal: C.strictEqual, deepEqual: C.deepStrictEqual, notEqual: C.notStrictEqual, notDeepEqual: C.notDeepStrictEqual }), C.strict.strict = C.strict; - }, 5961: (D, e, p) => { - var w = p(4155); + }, 5961: (D, e, h) => { + var w = h(4155); function O(x, P) { var v = Object.keys(x); if (Object.getOwnPropertySymbols) { @@ -4358,8 +4358,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" return P && typeof Symbol == "function" && P.constructor === Symbol && P !== Symbol.prototype ? "symbol" : typeof P; }, i(x); } - var f = p(9539).inspect, d = p(2136).codes.ERR_INVALID_ARG_TYPE; - function h(x, P, v) { + var f = h(9539).inspect, d = h(2136).codes.ERR_INVALID_ARG_TYPE; + function p(x, P, v) { return (v === void 0 || v > x.length) && (v = x.length), x.substring(v - P.length, v) === P; } var _ = "", b = "", I = "", l = "", j = { deepStrictEqual: "Expected values to be strictly deep-equal:", strictEqual: "Expected values to be strictly equal:", strictEqualObject: 'Expected "actual" to be reference-equal to "expected":', deepEqual: "Expected values to be loosely deep-equal:", equal: "Expected values to be loosely equal:", notDeepStrictEqual: 'Expected "actual" not to be strictly deep-equal to:', notStrictEqual: 'Expected "actual" to be strictly unequal to:', notStrictEqualObject: 'Expected "actual" not to be reference-equal to "expected":', notDeepEqual: 'Expected "actual" not to be loosely deep-equal to:', notEqual: 'Expected "actual" to be loosely unequal to:', notIdentical: "Values identical but not reference-equal:" }; @@ -4460,8 +4460,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" `.concat(U[L - 1]), Z++), V = L, ye += ` `.concat(b, "+").concat(l, " ").concat(U[L]), Z++; else { - var me = z[L], ge = U[L], be = ge !== me && (!h(ge, ",") || ge.slice(0, -1) !== me); - be && h(me, ",") && me.slice(0, -1) === ge && (be = !1, ge += ","), be ? (fe > 1 && L > 2 && (fe > 4 ? (ye += ` + var me = z[L], ge = U[L], be = ge !== me && (!p(ge, ",") || ge.slice(0, -1) !== me); + be && p(me, ",") && me.slice(0, -1) === ge && (be = !1, ge += ","), be ? (fe > 1 && L > 2 && (fe > 4 ? (ye += ` `.concat(_, "...").concat(l), A = !0) : fe > 3 && (ye += ` `.concat(U[L - 2]), Z++), ye += ` `.concat(U[L - 1]), Z++), V = L, ye += ` @@ -4510,7 +4510,7 @@ should equal } }]) && S(E.prototype, B), Object.defineProperty(E, "prototype", { writable: !1 }), q; }(u(Error), f.custom); D.exports = C; - }, 2136: (D, e, p) => { + }, 2136: (D, e, h) => { function w(s) { return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) { return typeof r; @@ -4537,7 +4537,7 @@ should equal throw new TypeError("Super expression must either be null or a function"); I.prototype = Object.create(l && l.prototype, { constructor: { value: I, writable: !0, configurable: !0 } }), Object.defineProperty(I, "prototype", { writable: !1 }), l && O(I, l); })(b, i); - var f, d, h, _ = (d = b, h = function() { + var f, d, p, _ = (d = b, p = function() { if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1; if (typeof Proxy == "function") @@ -4550,7 +4550,7 @@ should equal } }(), function() { var I, l = k(d); - if (h) { + if (p) { var j = k(this).constructor; I = Reflect.construct(l, arguments, j); } else @@ -4590,19 +4590,19 @@ should equal return "of ".concat(r, " ").concat(String(s)); } c("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError), c("ERR_INVALID_ARG_TYPE", function(s, r, n) { - var o, i, f, d, h; - if (S === void 0 && (S = p(9282)), S(typeof s == "string", "'name' must be a string"), typeof r == "string" && (i = "not ", r.substr(0, 4) === i) ? (o = "must not be", r = r.replace(/^not /, "")) : o = "must be", function(b, I, l) { + var o, i, f, d, p; + if (S === void 0 && (S = h(9282)), S(typeof s == "string", "'name' must be a string"), typeof r == "string" && (i = "not ", r.substr(0, 4) === i) ? (o = "must not be", r = r.replace(/^not /, "")) : o = "must be", function(b, I, l) { return (l === void 0 || l > b.length) && (l = b.length), b.substring(l - 9, l) === I; }(s, " argument")) f = "The ".concat(s, " ").concat(o, " ").concat(u(r, "type")); else { - var _ = (typeof h != "number" && (h = 0), h + 1 > (d = s).length || d.indexOf(".", h) === -1 ? "argument" : "property"); + var _ = (typeof p != "number" && (p = 0), p + 1 > (d = s).length || d.indexOf(".", p) === -1 ? "argument" : "property"); f = 'The "'.concat(s, '" ').concat(_, " ").concat(o, " ").concat(u(r, "type")); } return f + ". Received type ".concat(w(n)); }, TypeError), c("ERR_INVALID_ARG_VALUE", function(s, r) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "is invalid"; - a === void 0 && (a = p(9539)); + a === void 0 && (a = h(9539)); var o = a.inspect(r); return o.length > 128 && (o = "".concat(o.slice(0, 128), "...")), "The argument '".concat(s, "' ").concat(n, ". Received ").concat(o); }, TypeError), c("ERR_INVALID_RETURN_VALUE", function(s, r, n) { @@ -4611,7 +4611,7 @@ should equal }, TypeError), c("ERR_MISSING_ARGS", function() { for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++) r[n] = arguments[n]; - S === void 0 && (S = p(9282)), S(r.length > 0, "At least one arg needs to be specified"); + S === void 0 && (S = h(9282)), S(r.length > 0, "At least one arg needs to be specified"); var o = "The ", i = r.length; switch (r = r.map(function(f) { return '"'.concat(f, '"'); @@ -4627,7 +4627,7 @@ should equal } return "".concat(o, " must be specified"); }, TypeError), D.exports.codes = t; - }, 9158: (D, e, p) => { + }, 9158: (D, e, h) => { function w(le, ce) { return function(ve) { if (Array.isArray(ve)) @@ -4692,13 +4692,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return le.forEach(function(ve, de) { return ce.push([de, ve]); }), ce; - }, c = Object.is ? Object.is : p(609), u = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() { + }, c = Object.is ? Object.is : h(609), u = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() { return []; - }, s = Number.isNaN ? Number.isNaN : p(360); + }, s = Number.isNaN ? Number.isNaN : h(360); function r(le) { return le.call.bind(le); } - var n = r(Object.prototype.hasOwnProperty), o = r(Object.prototype.propertyIsEnumerable), i = r(Object.prototype.toString), f = p(9539).types, d = f.isAnyArrayBuffer, h = f.isArrayBufferView, _ = f.isDate, b = f.isMap, I = f.isRegExp, l = f.isSet, j = f.isNativeError, M = f.isBoxedPrimitive, N = f.isNumberObject, C = f.isStringObject, x = f.isBooleanObject, P = f.isBigIntObject, v = f.isSymbolObject, m = f.isFloat32Array, E = f.isFloat64Array; + var n = r(Object.prototype.hasOwnProperty), o = r(Object.prototype.propertyIsEnumerable), i = r(Object.prototype.toString), f = h(9539).types, d = f.isAnyArrayBuffer, p = f.isArrayBufferView, _ = f.isDate, b = f.isMap, I = f.isRegExp, l = f.isSet, j = f.isNativeError, M = f.isBoxedPrimitive, N = f.isNumberObject, C = f.isStringObject, x = f.isBooleanObject, P = f.isBigIntObject, v = f.isSymbolObject, m = f.isFloat32Array, E = f.isFloat64Array; function B(le) { if (le.length === 0 || le.length > 10) return !0; @@ -4758,7 +4758,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (le.message !== ce.message || le.name !== ce.name) return !1; } else { - if (h(le)) { + if (p(le)) { if (ve || !m(le) && !E(le)) { if (!function(H, ne) { return H.byteLength === ne.byteLength && q(new Uint8Array(H.buffer, H.byteOffset, H.byteLength), new Uint8Array(ne.buffer, ne.byteOffset, ne.byteLength)) === 0; @@ -4970,8 +4970,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, isDeepStrictEqual: function(le, ce) { return ee(le, ce, !0); } }; - }, 2338: (D, e, p) => { - var w = p(9509).Buffer; + }, 2338: (D, e, h) => { + var w = h(9509).Buffer; D.exports = function(O) { if (O.length >= 255) throw new TypeError("Alphabet too long"); @@ -4989,19 +4989,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new TypeError("Expected String"); if (i.length === 0) return w.alloc(0); - for (var f = 0, d = 0, h = 0; i[f] === s; ) + for (var f = 0, d = 0, p = 0; i[f] === s; ) d++, f++; for (var _ = (i.length - f) * r + 1 >>> 0, b = new Uint8Array(_); i[f]; ) { var I = k[i.charCodeAt(f)]; if (I === 255) return; - for (var l = 0, j = _ - 1; (I !== 0 || l < h) && j !== -1; j--, l++) + for (var l = 0, j = _ - 1; (I !== 0 || l < p) && j !== -1; j--, l++) I += u * b[j] >>> 0, b[j] = I % 256 >>> 0, I = I / 256 >>> 0; if (I !== 0) throw new Error("Non-zero carry"); - h = l, f++; + p = l, f++; } - for (var M = _ - h; M !== _ && b[M] === 0; ) + for (var M = _ - p; M !== _ && b[M] === 0; ) M++; var N = w.allocUnsafe(d + (_ - M)); N.fill(0, 0, d); @@ -5014,14 +5014,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw new TypeError("Expected Buffer"); if (i.length === 0) return ""; - for (var f = 0, d = 0, h = 0, _ = i.length; h !== _ && i[h] === 0; ) - h++, f++; - for (var b = (_ - h) * n + 1 >>> 0, I = new Uint8Array(b); h !== _; ) { - for (var l = i[h], j = 0, M = b - 1; (l !== 0 || j < d) && M !== -1; M--, j++) + for (var f = 0, d = 0, p = 0, _ = i.length; p !== _ && i[p] === 0; ) + p++, f++; + for (var b = (_ - p) * n + 1 >>> 0, I = new Uint8Array(b); p !== _; ) { + for (var l = i[p], j = 0, M = b - 1; (l !== 0 || j < d) && M !== -1; M--, j++) l += 256 * I[M] >>> 0, I[M] = l % u >>> 0, l = l / u >>> 0; if (l !== 0) throw new Error("Non-zero carry"); - d = j, h++; + d = j, p++; } for (var N = b - d; N !== b && I[N] === 0; ) N++; @@ -5040,7 +5040,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var u = a(c), s = u[0], r = u[1]; return 3 * (s + r) / 4 - r; }, e.toByteArray = function(c) { - var u, s, r = a(c), n = r[0], o = r[1], i = new O(function(h, _, b) { + var u, s, r = a(c), n = r[0], o = r[1], i = new O(function(p, _, b) { return 3 * (_ + b) / 4 - b; }(0, n, o)), f = 0, d = o > 0 ? n - 4 : n; for (s = 0; s < d; s += 4) @@ -5049,10 +5049,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, e.fromByteArray = function(c) { for (var u, s = c.length, r = s % 3, n = [], o = 16383, i = 0, f = s - r; i < f; i += o) n.push(t(c, i, i + o > f ? f : i + o)); - return r === 1 ? (u = c[s - 1], n.push(p[u >> 2] + p[u << 4 & 63] + "==")) : r === 2 && (u = (c[s - 2] << 8) + c[s - 1], n.push(p[u >> 10] + p[u >> 4 & 63] + p[u << 2 & 63] + "=")), n.join(""); + return r === 1 ? (u = c[s - 1], n.push(h[u >> 2] + h[u << 4 & 63] + "==")) : r === 2 && (u = (c[s - 2] << 8) + c[s - 1], n.push(h[u >> 10] + h[u >> 4 & 63] + h[u << 2 & 63] + "=")), n.join(""); }; - for (var p = [], w = [], O = typeof Uint8Array < "u" ? Uint8Array : Array, k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", S = 0; S < 64; ++S) - p[S] = k[S], w[k.charCodeAt(S)] = S; + for (var h = [], w = [], O = typeof Uint8Array < "u" ? Uint8Array : Array, k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", S = 0; S < 64; ++S) + h[S] = k[S], w[k.charCodeAt(S)] = S; function a(c) { var u = c.length; if (u % 4 > 0) @@ -5062,15 +5062,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function t(c, u, s) { for (var r, n, o = [], i = u; i < s; i += 3) - r = (c[i] << 16 & 16711680) + (c[i + 1] << 8 & 65280) + (255 & c[i + 2]), o.push(p[(n = r) >> 18 & 63] + p[n >> 12 & 63] + p[n >> 6 & 63] + p[63 & n]); + r = (c[i] << 16 & 16711680) + (c[i + 1] << 8 & 65280) + (255 & c[i + 2]), o.push(h[(n = r) >> 18 & 63] + h[n >> 12 & 63] + h[n >> 6 & 63] + h[63 & n]); return o.join(""); } w["-".charCodeAt(0)] = 62, w["_".charCodeAt(0)] = 63; }, 7715: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.bech32m = e.bech32 = void 0; - const p = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", w = {}; + const h = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", w = {}; for (let s = 0; s < 32; s++) { - const r = p.charAt(s); + const r = h.charAt(s); w[r] = s; } function O(s) { @@ -5094,19 +5094,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function S(s, r, n, o) { let i = 0, f = 0; - const d = (1 << n) - 1, h = []; + const d = (1 << n) - 1, p = []; for (let _ = 0; _ < s.length; ++_) for (i = i << r | s[_], f += r; f >= n; ) - f -= n, h.push(i >> f & d); + f -= n, p.push(i >> f & d); if (o) - f > 0 && h.push(i << n - f & d); + f > 0 && p.push(i << n - f & d); else { if (f >= r) return "Excess padding"; if (i << n - f & d) return "Non-zero padding"; } - return h; + return p; } function a(s) { return S(s, 8, 5, !0); @@ -5132,12 +5132,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const f = o.toLowerCase(), d = o.toUpperCase(); if (o !== f && o !== d) return "Mixed-case string " + o; - const h = (o = f).lastIndexOf("1"); - if (h === -1) + const p = (o = f).lastIndexOf("1"); + if (p === -1) return "No separator character for " + o; - if (h === 0) + if (p === 0) return "Missing prefix for " + o; - const _ = o.slice(0, h), b = o.slice(h + 1); + const _ = o.slice(0, p), b = o.slice(p + 1); if (b.length < 6) return "Data too short"; let I = k(_); @@ -5167,25 +5167,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho let d = k(o = o.toLowerCase()); if (typeof d == "string") throw new Error(d); - let h = o + "1"; + let p = o + "1"; for (let _ = 0; _ < i.length; ++_) { const b = i[_]; if (b >> 5) throw new Error("Non 5-bit word"); - d = O(d) ^ b, h += p.charAt(b); + d = O(d) ^ b, p += h.charAt(b); } for (let _ = 0; _ < 6; ++_) d = O(d); d ^= r; for (let _ = 0; _ < 6; ++_) - h += p.charAt(d >> 5 * (5 - _) & 31); - return h; + p += h.charAt(d >> 5 * (5 - _) & 31); + return p; }, toWords: a, fromWordsUnsafe: t, fromWords: c }; } e.bech32 = u("bech32"), e.bech32m = u("bech32m"); - }, 4736: (D, e, p) => { + }, 4736: (D, e, h) => { var w; - D = p.nmd(D); + D = h.nmd(D); var O = function(k) { var S = 1e7, a = 7, t = 9007199254740992, c = d(t), u = "0123456789abcdefghijklmnopqrstuvwxyz", s = typeof BigInt == "function"; function r(U, z, L, H) { @@ -5206,7 +5206,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho function d(U) { return U < 1e7 ? [U] : U < 1e14 ? [U % 1e7, Math.floor(U / 1e7)] : [U % 1e7, Math.floor(U / 1e7) % 1e7, Math.floor(U / 1e14)]; } - function h(U) { + function p(U) { _(U); var z = U.length; if (z < 4 && te(U, c) < 0) @@ -5273,7 +5273,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var H, ne, oe = U.length, K = new Array(oe), X = -z, Q = S; for (H = 0; H < oe; H++) ne = U[H] + X, X = Math.floor(ne / Q), ne %= Q, K[H] = ne < 0 ? ne + Q : ne; - return typeof (K = h(K)) == "number" ? (L && (K = -K), new o(K)) : new n(K, L); + return typeof (K = p(K)) == "number" ? (L && (K = -K), new o(K)) : new n(K, L); } function x(U, z) { var L, H, ne, oe, K = U.length, X = z.length, Q = b(K + X), Z = S; @@ -5340,7 +5340,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return [U.negate(), r[0]]; var X = Math.abs(K); if (X < S) { - ne = h((L = T(oe, X))[0]); + ne = p((L = T(oe, X))[0]); var Q = L[1]; return U.sign && (Q = -Q), typeof ne == "number" ? (U.sign !== H.sign && (ne = -ne), [new o(ne), new o(Q)]) : [new n(ne, U.sign !== H.sign), new o(Q)]; } @@ -5363,7 +5363,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } Me[_e] = be; } - return Te = T(Te, Ne)[0], [h(Me), h(Te)]; + return Te = T(Te, Ne)[0], [p(Me), p(Te)]; }(oe, K) : function(me, ge) { for (var be, _e, we, Ee, xe, Se = me.length, ke = ge.length, Re = [], Oe = [], Pe = S; Se; ) if (Oe.unshift(me[--Se]), _(Oe), te(Oe, ge) < 0) @@ -5377,7 +5377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } while (be); Re.push(be), Oe = N(Oe, xe); } - return Re.reverse(), [h(Re), h(Oe)]; + return Re.reverse(), [p(Re), p(Oe)]; }(oe, K), ne = L[0]; var se = U.sign !== H.sign, ue = L[1], fe = U.sign; return typeof ne == "number" ? (se && (ne = -ne), ne = new o(ne)) : ne = new n(ne, se), typeof ue == "number" ? (fe && (ue = -ue), ue = new o(ue)) : ue = new n(ue, fe), [ne, ue]; @@ -5436,7 +5436,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var L = this.value, H = z.value; return z.isSmall ? C(L, Math.abs(H), this.sign) : function(ne, oe, K) { var X; - return te(ne, oe) >= 0 ? X = N(ne, oe) : (X = N(oe, ne), K = !K), typeof (X = h(X)) == "number" ? (K && (X = -X), new o(X)) : new n(X, K); + return te(ne, oe) >= 0 ? X = N(ne, oe) : (X = N(oe, ne), K = !K), typeof (X = p(X)) == "number" ? (K && (X = -X), new o(X)) : new n(X, K); }(L, H, this.sign); }, n.prototype.minus = n.prototype.subtract, o.prototype.subtract = function(U) { var z = A(U), L = this.value; @@ -5906,8 +5906,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }(); D.hasOwnProperty("exports") && (D.exports = O), (w = (function() { return O; - }).call(e, p, e, D)) === void 0 || (D.exports = w); - }, 4431: function(D, e, p) { + }).call(e, h, e, D)) === void 0 || (D.exports = w); + }, 4431: function(D, e, h) { var w; (function(O) { var k, S = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, a = Math.ceil, t = Math.floor, c = "[BigNumber Error] ", u = c + "Number primitive has more than 15 significant digits: ", s = 1e14, r = 14, n = 9007199254740991, o = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], i = 1e7, f = 1e9; @@ -5915,7 +5915,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var N = 0 | M; return M > 0 || M === N ? N : N - 1; } - function h(M) { + function p(M) { for (var N, C, x = 1, P = M.length, v = M[0] + ""; x < P; ) { for (N = M[x++] + "", C = r - N.length; C--; N = "0" + N) ; @@ -6044,8 +6044,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (z == null ? z = ee : b(z, 0, 8), !R.c) return R.toString(); if (H = R.c[0], oe = R.e, U == null) - X = h(R.c), X = L == 1 || L == 2 && (oe <= G || oe >= $) ? l(X, oe) : j(X, oe, "0"); - else if (ne = (R = y(new de(R), U, z)).e, K = (X = h(R.c)).length, L == 1 || L == 2 && (U <= ne || ne <= G)) { + X = p(R.c), X = L == 1 || L == 2 && (oe <= G || oe >= $) ? l(X, oe) : j(X, oe, "0"); + else if (ne = (R = y(new de(R), U, z)).e, K = (X = p(R.c)).length, L == 1 || L == 2 && (U <= ne || ne <= G)) { for (; K < U; X += "0", K++) ; X = l(X, ne); @@ -6119,7 +6119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } function A(R) { var U, z = R.e; - return z === null ? R.toString() : (U = h(R.c), U = z <= G || z >= $ ? l(U, z) : j(U, z, "0"), R.s < 0 ? "-" + U : U); + return z === null ? R.toString() : (U = p(R.c), U = z <= G || z >= $ ? l(U, z) : j(U, z, "0"), R.s < 0 ? "-" + U : U); } return de.clone = M, de.ROUND_UP = 0, de.ROUND_DOWN = 1, de.ROUND_CEIL = 2, de.ROUND_FLOOR = 3, de.ROUND_HALF_UP = 4, de.ROUND_HALF_DOWN = 5, de.ROUND_HALF_EVEN = 6, de.ROUND_HALF_CEIL = 7, de.ROUND_HALF_FLOOR = 8, de.EUCLID = 9, de.config = de.set = function(R) { var U, z; @@ -6235,7 +6235,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } return function(z, L, H, ne, oe) { var K, X, Q, Z, se, ue, fe, me, ge = z.indexOf("."), be = J, _e = ee; - for (ge >= 0 && (Z = he, he = 0, z = z.replace(".", ""), ue = (me = new de(L)).pow(z.length - ge), he = Z, me.c = U(j(h(ue.c), ue.e, "0"), 10, H, R), me.e = me.c.length), Q = Z = (fe = U(z, L, H, oe ? (K = ce, R) : (K = R, ce))).length; fe[--Z] == 0; fe.pop()) + for (ge >= 0 && (Z = he, he = 0, z = z.replace(".", ""), ue = (me = new de(L)).pow(z.length - ge), he = Z, me.c = U(j(p(ue.c), ue.e, "0"), 10, H, R), me.e = me.c.length), Q = Z = (fe = U(z, L, H, oe ? (K = ce, R) : (K = R, ce))).length; fe[--Z] == 0; fe.pop()) ; if (!fe[0]) return K.charAt(0); @@ -6502,9 +6502,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho var R, U, z, L, H, ne = this, oe = ne.c, K = ne.s, X = ne.e, Q = J + 4, Z = new de("0.5"); if (K !== 1 || !oe || !oe[0]) return new de(!K || K < 0 && (!oe || oe[0]) ? NaN : oe ? ne : 1 / 0); - if ((K = Math.sqrt(+A(ne))) == 0 || K == 1 / 0 ? (((U = h(oe)).length + X) % 2 == 0 && (U += "0"), K = Math.sqrt(+U), X = d((X + 1) / 2) - (X < 0 || X % 2), z = new de(U = K == 1 / 0 ? "5e" + X : (U = K.toExponential()).slice(0, U.indexOf("e") + 1) + X)) : z = new de(K + ""), z.c[0]) { + if ((K = Math.sqrt(+A(ne))) == 0 || K == 1 / 0 ? (((U = p(oe)).length + X) % 2 == 0 && (U += "0"), K = Math.sqrt(+U), X = d((X + 1) / 2) - (X < 0 || X % 2), z = new de(U = K == 1 / 0 ? "5e" + X : (U = K.toExponential()).slice(0, U.indexOf("e") + 1) + X)) : z = new de(K + ""), z.c[0]) { for ((K = (X = z.e) + Q) < 3 && (K = 0); ; ) - if (H = z, z = Z.times(H.plus(C(ne, H, Q, 1))), h(H.c).slice(0, K) === (U = h(z.c)).slice(0, K)) { + if (H = z, z = Z.times(H.plus(C(ne, H, Q, 1))), p(H.c).slice(0, K) === (U = p(z.c)).slice(0, K)) { if (z.e < X && --K, (U = U.slice(K - 3, K + 1)) != "9999" && (L || U != "4999")) { +U && (+U.slice(1) || U.charAt(0) != "5") || (y(z, z.e + J + 2, 1), R = !z.times(z).eq(ne)); break; @@ -6543,7 +6543,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho throw Error(c + "Argument " + (K.isInteger() ? "out of range: " : "not an integer: ") + A(K)); if (!me) return new de(fe); - for (U = new de(ie), Q = z = new de(ie), L = X = new de(ie), ue = h(me), ne = U.e = ue.length - fe.e - 1, U.c[0] = o[(oe = ne % r) < 0 ? r + oe : oe], R = !R || K.comparedTo(U) > 0 ? ne > 0 ? U : Q : K, oe = Y, Y = 1 / 0, K = new de(ue), X.c[0] = 0; Z = C(K, U, 0, 1), (H = z.plus(Z.times(L))).comparedTo(R) != 1; ) + for (U = new de(ie), Q = z = new de(ie), L = X = new de(ie), ue = p(me), ne = U.e = ue.length - fe.e - 1, U.c[0] = o[(oe = ne % r) < 0 ? r + oe : oe], R = !R || K.comparedTo(U) > 0 ? ne > 0 ? U : Q : K, oe = Y, Y = 1 / 0, K = new de(ue), X.c[0] = 0; Z = C(K, U, 0, 1), (H = z.plus(Z.times(L))).comparedTo(R) != 1; ) z = L, L = H, Q = X.plus(Z.times(H = Q)), X = H, U = K.minus(Z.times(H = U)), K = H; return H = C(R.minus(z), L, 0, 1), X = X.plus(H.times(Q)), z = z.plus(H.times(L)), X.s = Q.s = fe.s, se = C(Q, L, ne *= 2, ee).minus(fe).abs().comparedTo(C(X, z, ne, ee).minus(fe).abs()) < 1 ? [Q, L] : [X, z], Y = oe, se; }, re.toNumber = function() { @@ -6552,18 +6552,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return R != null && b(R, 1, f), pe(this, R, U, 2); }, re.toString = function(R) { var U, z = this, L = z.s, H = z.e; - return H === null ? L ? (U = "Infinity", L < 0 && (U = "-" + U)) : U = "NaN" : (R == null ? U = H <= G || H >= $ ? l(h(z.c), H) : j(h(z.c), H, "0") : R === 10 && ve ? U = j(h((z = y(new de(z), J + H + 1, ee)).c), z.e, "0") : (b(R, 2, ce.length, "Base"), U = x(j(h(z.c), H, "0"), 10, R, L, !0)), L < 0 && z.c[0] && (U = "-" + U)), U; + return H === null ? L ? (U = "Infinity", L < 0 && (U = "-" + U)) : U = "NaN" : (R == null ? U = H <= G || H >= $ ? l(p(z.c), H) : j(p(z.c), H, "0") : R === 10 && ve ? U = j(p((z = y(new de(z), J + H + 1, ee)).c), z.e, "0") : (b(R, 2, ce.length, "Base"), U = x(j(p(z.c), H, "0"), 10, R, L, !0)), L < 0 && z.c[0] && (U = "-" + U)), U; }, re.valueOf = re.toJSON = function() { return A(this); }, re._isBigNumber = !0, N != null && de.set(N), de; }(), k.default = k.BigNumber = k, (w = (function() { return k; - }).call(e, p, e, D)) === void 0 || (D.exports = w); + }).call(e, h, e, D)) === void 0 || (D.exports = w); })(); - }, 4090: (D, e, p) => { - var w = p(8764).Buffer; + }, 4090: (D, e, h) => { + var w = h(8764).Buffer; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(6903), k = p(8334), S = p(5892), a = p(2401), t = p(9898), c = a.BufferN(32), u = a.compile({ wif: a.UInt8, bip32: { public: a.UInt32, private: a.UInt32 } }), s = { messagePrefix: `Bitcoin Signed Message: + const O = h(6903), k = h(8334), S = h(5892), a = h(2401), t = h(9898), c = a.BufferN(32), u = a.compile({ wif: a.UInt8, bip32: { public: a.UInt32, private: a.UInt32 } }), s = { messagePrefix: `Bitcoin Signed Message: `, bech32: "bc", bip32: { public: 76067358, private: 76066276 }, pubKeyHash: 0, scriptHash: 5, wif: 128 }, r = 2147483648, n = Math.pow(2, 31) - 1; function o(b) { return a.String(b) && b.match(/^(m\/)?(\d+'?\/)*\d+'?$/) !== null; @@ -6636,7 +6636,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const P = S.privateAdd(this.privateKey, N); if (P == null) return this.derive(I + 1); - x = h(P, C, this.network, this.depth + 1, I, this.fingerprint.readUInt32BE(0)); + x = p(P, C, this.network, this.depth + 1, I, this.fingerprint.readUInt32BE(0)); } return x; } @@ -6675,9 +6675,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } function d(b, I, l) { - return h(b, I, l); + return p(b, I, l); } - function h(b, I, l, j, M, N) { + function p(b, I, l, j, M, N) { if (a({ privateKey: c, chainCode: c }, { privateKey: b, chainCode: I }), l = l || s, !S.isPrivate(b)) throw new TypeError("Private key not in range [1, n)"); return new f(b, void 0, I, l, j, M, N); @@ -6706,7 +6706,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho if (j === I.bip32.private) { if (l.readUInt8(45) !== 0) throw new TypeError("Invalid private key"); - P = h(l.slice(46, 78), x, I, M, C, N); + P = p(l.slice(46, 78), x, I, M, C, N); } else P = _(l.slice(45, 78), x, I, M, C, N); return P; @@ -6721,9 +6721,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho const l = O.hmacSHA512(w.from("Bitcoin seed", "utf8"), b); return d(l.slice(0, 32), l.slice(32), I); }; - }, 6903: (D, e, p) => { + }, 6903: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }); - const w = p(3482), O = p(8355); + const w = h(3482), O = h(8355); e.hash160 = function(k) { const S = w("sha256").update(k).digest(); try { @@ -6734,59 +6734,59 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho }, e.hmacSHA512 = function(k, S) { return O("sha512", k).update(S).digest(); }; - }, 7786: (D, e, p) => { + }, 7786: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }); - var w = p(4090); + var w = h(4090); e.fromSeed = w.fromSeed, e.fromBase58 = w.fromBase58, e.fromPublicKey = w.fromPublicKey, e.fromPrivateKey = w.fromPrivateKey; - }, 2314: (D, e, p) => { + }, 2314: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }); const w = {}; let O; e.wordlists = w, e._default = O; try { - e._default = O = p(32), w.czech = O; + e._default = O = h(32), w.czech = O; } catch { } try { - e._default = O = p(6996), w.chinese_simplified = O; + e._default = O = h(6996), w.chinese_simplified = O; } catch { } try { - e._default = O = p(4262), w.chinese_traditional = O; + e._default = O = h(4262), w.chinese_traditional = O; } catch { } try { - e._default = O = p(8013), w.korean = O; + e._default = O = h(8013), w.korean = O; } catch { } try { - e._default = O = p(1848), w.french = O; + e._default = O = h(1848), w.french = O; } catch { } try { - e._default = O = p(2841), w.italian = O; + e._default = O = h(2841), w.italian = O; } catch { } try { - e._default = O = p(659), w.spanish = O; + e._default = O = h(659), w.spanish = O; } catch { } try { - e._default = O = p(4472), w.japanese = O, w.JA = O; + e._default = O = h(4472), w.japanese = O, w.JA = O; } catch { } try { - e._default = O = p(1945), w.portuguese = O; + e._default = O = h(1945), w.portuguese = O; } catch { } try { - e._default = O = p(4573), w.english = O, w.EN = O; + e._default = O = h(4573), w.english = O, w.EN = O; } catch { } - }, 2153: (D, e, p) => { - var w = p(8764).Buffer; + }, 2153: (D, e, h) => { + var w = h(8764).Buffer; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(3482), k = p(5632), S = p(1798), a = p(2314); + const O = h(3482), k = h(5632), S = h(1798), a = h(2314); let t = a._default; const c = "Invalid mnemonic", u = "Invalid entropy", s = `A wordlist is required but a default could not be found. Please pass a 2048 word array explicitly.`; @@ -6811,7 +6811,7 @@ Please pass a 2048 word array explicitly.`; function d(I) { return "mnemonic" + (I || ""); } - function h(I, l) { + function p(I, l) { if (!(l = l || t)) throw new Error(s); const j = r(I).split(" "); @@ -6858,13 +6858,13 @@ Please pass a 2048 word array explicitly.`; k.pbkdf2(j, M, 2048, 64, "sha512", (m, E) => m ? v(m) : P(E)); })); }(w.from(r(I), "utf8"), w.from(d(r(l)), "utf8"))); - }, e.mnemonicToEntropy = h, e.entropyToMnemonic = _, e.generateMnemonic = function(I, l, j) { + }, e.mnemonicToEntropy = p, e.entropyToMnemonic = _, e.generateMnemonic = function(I, l, j) { if ((I = I || 128) % 32 != 0) throw new TypeError(u); return _((l = l || S)(I / 8), j); }, e.validateMnemonic = function(I, l) { try { - h(I, l); + p(I, l); } catch { return !1; } @@ -6879,9 +6879,9 @@ Please pass a 2048 word array explicitly.`; throw new Error("No Default Wordlist set"); return Object.keys(a.wordlists).filter((I) => I !== "JA" && I !== "EN" && a.wordlists[I].every((l, j) => l === t[j]))[0]; }; - var b = p(2314); + var b = h(2314); e.wordlists = b.wordlists; - }, 3550: function(D, e, p) { + }, 3550: function(D, e, h) { (function(w, O) { function k(x, P) { if (!x) @@ -6901,7 +6901,7 @@ Please pass a 2048 word array explicitly.`; var t; typeof w == "object" ? w.exports = a : O.BN = a, a.BN = a, a.wordSize = 26; try { - t = typeof window < "u" && window.Buffer !== void 0 ? window.Buffer : p(6601).Buffer; + t = typeof window < "u" && window.Buffer !== void 0 ? window.Buffer : h(6601).Buffer; } catch { } function c(x, P) { @@ -7234,9 +7234,9 @@ Please pass a 2048 word array explicitly.`; return re = ((B = Math.imul(Z, Le)) + (E >>> 13) | 0) + (ct >>> 26) | 0, ct &= 67108863, te[0] = We, te[1] = Ge, te[2] = He, te[3] = Ve, te[4] = $e, te[5] = Qe, te[6] = Ke, te[7] = Ze, te[8] = Ye, te[9] = Xe, te[10] = et, te[11] = tt, te[12] = rt, te[13] = nt, te[14] = ot, te[15] = it, te[16] = at, te[17] = st, te[18] = ct, re !== 0 && (te[19] = re, v.length++), v; }; function d(x, P, v) { - return new h().mulp(x, P, v); + return new p().mulp(x, P, v); } - function h(x, P) { + function p(x, P) { this.x = x, this.y = P; } Math.imul || (f = i), a.prototype.mulTo = function(x, P) { @@ -7254,20 +7254,20 @@ Please pass a 2048 word array explicitly.`; } return q !== 0 ? T.words[re] = q : T.length--, T.strip(); }(this, x, P) : d(this, x, P), v; - }, h.prototype.makeRBT = function(x) { + }, p.prototype.makeRBT = function(x) { for (var P = new Array(x), v = a.prototype._countBits(x) - 1, m = 0; m < x; m++) P[m] = this.revBin(m, v, x); return P; - }, h.prototype.revBin = function(x, P, v) { + }, p.prototype.revBin = function(x, P, v) { if (x === 0 || x === v - 1) return x; for (var m = 0, E = 0; E < P; E++) m |= (1 & x) << P - E - 1, x >>= 1; return m; - }, h.prototype.permute = function(x, P, v, m, E, B) { + }, p.prototype.permute = function(x, P, v, m, E, B) { for (var T = 0; T < B; T++) m[T] = P[x[T]], E[T] = v[x[T]]; - }, h.prototype.transform = function(x, P, v, m, E, B) { + }, p.prototype.transform = function(x, P, v, m, E, B) { this.permute(B, x, P, v, m, E); for (var T = 1; T < E; T <<= 1) for (var q = T << 1, te = Math.cos(2 * Math.PI / q), re = Math.sin(2 * Math.PI / q), ie = 0; ie < E; ie += q) @@ -7275,34 +7275,34 @@ Please pass a 2048 word array explicitly.`; var $ = v[ie + G], W = m[ie + G], Y = v[ie + G + T], F = m[ie + G + T], ae = J * Y - ee * F; F = J * F + ee * Y, Y = ae, v[ie + G] = $ + Y, m[ie + G] = W + F, v[ie + G + T] = $ - Y, m[ie + G + T] = W - F, G !== q && (ae = te * J - re * ee, ee = te * ee + re * J, J = ae); } - }, h.prototype.guessLen13b = function(x, P) { + }, p.prototype.guessLen13b = function(x, P) { var v = 1 | Math.max(P, x), m = 1 & v, E = 0; for (v = v / 2 | 0; v; v >>>= 1) E++; return 1 << E + 1 + m; - }, h.prototype.conjugate = function(x, P, v) { + }, p.prototype.conjugate = function(x, P, v) { if (!(v <= 1)) for (var m = 0; m < v / 2; m++) { var E = x[m]; x[m] = x[v - m - 1], x[v - m - 1] = E, E = P[m], P[m] = -P[v - m - 1], P[v - m - 1] = -E; } - }, h.prototype.normalize13b = function(x, P) { + }, p.prototype.normalize13b = function(x, P) { for (var v = 0, m = 0; m < P / 2; m++) { var E = 8192 * Math.round(x[2 * m + 1] / P) + Math.round(x[2 * m] / P) + v; x[m] = 67108863 & E, v = E < 67108864 ? 0 : E / 67108864 | 0; } return x; - }, h.prototype.convert13b = function(x, P, v, m) { + }, p.prototype.convert13b = function(x, P, v, m) { for (var E = 0, B = 0; B < P; B++) E += 0 | x[B], v[2 * B] = 8191 & E, E >>>= 13, v[2 * B + 1] = 8191 & E, E >>>= 13; for (B = 2 * P; B < m; ++B) v[B] = 0; k(E === 0), k((-8192 & E) == 0); - }, h.prototype.stub = function(x) { + }, p.prototype.stub = function(x) { for (var P = new Array(x), v = 0; v < x; v++) P[v] = 0; return P; - }, h.prototype.mulp = function(x, P, v) { + }, p.prototype.mulp = function(x, P, v) { var m = 2 * this.guessLen13b(x.length, P.length), E = this.makeRBT(m), B = this.stub(m), T = new Array(m), q = new Array(m), te = new Array(m), re = new Array(m), ie = new Array(m), J = new Array(m), ee = v.words; ee.length = m, this.convert13b(x.words, x.length, T, m), this.convert13b(P.words, P.length, re, m), this.transform(T, B, q, te, m, E), this.transform(re, B, ie, J, m, E); for (var G = 0; G < m; G++) { @@ -7859,8 +7859,8 @@ Please pass a 2048 word array explicitly.`; }, C.prototype.invm = function(x) { return this.imod(x._invmp(this.m).mul(this.r2))._forceRed(this); }; - })(D = p.nmd(D), this); - }, 9931: (D, e, p) => { + })(D = h.nmd(D), this); + }, 9931: (D, e, h) => { var w; function O(S) { this.rand = S; @@ -7887,7 +7887,7 @@ Please pass a 2048 word array explicitly.`; }); else try { - var k = p(9214); + var k = h(9214); if (typeof k.randomBytes != "function") throw new Error("Not supported"); O.prototype._rand = function(S) { @@ -7895,11 +7895,11 @@ Please pass a 2048 word array explicitly.`; }; } catch { } - }, 7191: (D, e, p) => { - var w = p(2338); + }, 7191: (D, e, h) => { + var w = h(2338); D.exports = w("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"); - }, 3310: (D, e, p) => { - var w = p(7191), O = p(9509).Buffer; + }, 3310: (D, e, h) => { + var w = h(7191), O = h(9509).Buffer; D.exports = function(k) { function S(a) { var t = a.slice(0, -4), c = a.slice(-4), u = k(t); @@ -7920,15 +7920,15 @@ Please pass a 2048 word array explicitly.`; return S(t); } }; }; - }, 8334: (D, e, p) => { - var w = p(3482), O = p(3310); + }, 8334: (D, e, h) => { + var w = h(3482), O = h(3310); D.exports = O(function(k) { var S = w("sha256").update(k).digest(); return w("sha256").update(S).digest(); }); - }, 8764: (D, e, p) => { - var w = p(5108); - const O = p(9742), k = p(645), S = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; + }, 8764: (D, e, h) => { + var w = h(5108); + const O = h(9742), k = h(645), S = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null; e.Buffer = c, e.SlowBuffer = function(A) { return +A != A && (A = 0), c.alloc(+A); }, e.INSPECT_MAX_BYTES = 50; @@ -8079,7 +8079,7 @@ Please pass a 2048 word array explicitly.`; A = (A + "").toLowerCase(), z = !0; } } - function h(A, R, U) { + function p(A, R, U) { const z = A[R]; A[R] = A[U], A[U] = z; } @@ -8291,21 +8291,21 @@ Please pass a 2048 word array explicitly.`; if (A % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits"); for (let R = 0; R < A; R += 2) - h(this, R, R + 1); + p(this, R, R + 1); return this; }, c.prototype.swap32 = function() { const A = this.length; if (A % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits"); for (let R = 0; R < A; R += 4) - h(this, R, R + 3), h(this, R + 1, R + 2); + p(this, R, R + 3), p(this, R + 1, R + 2); return this; }, c.prototype.swap64 = function() { const A = this.length; if (A % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits"); for (let R = 0; R < A; R += 8) - h(this, R, R + 7), h(this, R + 1, R + 6), h(this, R + 2, R + 5), h(this, R + 3, R + 4); + p(this, R, R + 7), p(this, R + 1, R + 6), p(this, R + 2, R + 5), p(this, R + 3, R + 4); return this; }, c.prototype.toString = function() { const A = this.length; @@ -8785,14 +8785,14 @@ Please pass a 2048 word array explicitly.`; function y() { throw new Error("BigInt not supported"); } - }, 1924: (D, e, p) => { - var w = p(210), O = p(5559), k = O(w("String.prototype.indexOf")); + }, 1924: (D, e, h) => { + var w = h(210), O = h(5559), k = O(w("String.prototype.indexOf")); D.exports = function(S, a) { var t = w(S, !!a); return typeof t == "function" && k(S, ".prototype.") > -1 ? O(t) : t; }; - }, 5559: (D, e, p) => { - var w = p(8612), O = p(210), k = O("%Function.prototype.apply%"), S = O("%Function.prototype.call%"), a = O("%Reflect.apply%", !0) || w.call(S, k), t = O("%Object.getOwnPropertyDescriptor%", !0), c = O("%Object.defineProperty%", !0), u = O("%Math.max%"); + }, 5559: (D, e, h) => { + var w = h(8612), O = h(210), k = O("%Function.prototype.apply%"), S = O("%Function.prototype.call%"), a = O("%Reflect.apply%", !0) || w.call(S, k), t = O("%Object.getOwnPropertyDescriptor%", !0), c = O("%Object.defineProperty%", !0), u = O("%Math.max%"); if (c) try { c({}, "a", { value: 1 }); @@ -8807,12 +8807,12 @@ Please pass a 2048 word array explicitly.`; return a(w, k, arguments); }; c ? c(D.exports, "apply", { value: s }) : D.exports.apply = s; - }, 1027: (D, e, p) => { - var w = p(9509).Buffer, O = p(2830).Transform, k = p(2553).s; + }, 1027: (D, e, h) => { + var w = h(9509).Buffer, O = h(2830).Transform, k = h(2553).s; function S(a) { O.call(this), this.hashMode = typeof a == "string", this.hashMode ? this[a] = this._finalOrDigest : this.final = this._finalOrDigest, this._final && (this.__final = this._final, this._final = null), this._decoder = null, this._encoding = null; } - p(5717)(S, O), S.prototype.update = function(a, t, c) { + h(5717)(S, O), S.prototype.update = function(a, t, c) { typeof a == "string" && (a = w.from(a, t)); var u = this._update(a); return this.hashMode ? this : (c && (u = this._toString(u, c)), u); @@ -8849,13 +8849,13 @@ Please pass a 2048 word array explicitly.`; var u = this._decoder.write(a); return c && (u += this._decoder.end()), u; }, D.exports = S; - }, 5108: (D, e, p) => { - var w = p(9539), O = p(9282); + }, 5108: (D, e, h) => { + var w = h(9539), O = h(9282); function k() { return (/* @__PURE__ */ new Date()).getTime(); } var S, a = Array.prototype.slice, t = {}; - S = p.g !== void 0 && p.g.console ? p.g.console : typeof window < "u" && window.console ? window.console : {}; + S = h.g !== void 0 && h.g.console ? h.g.console : typeof window < "u" && window.console ? window.console : {}; for (var c = [[function() { }, "log"], [function() { S.log.apply(S, arguments); @@ -8888,8 +8888,8 @@ Please pass a 2048 word array explicitly.`; S[n] || (S[n] = r); } D.exports = S; - }, 3482: (D, e, p) => { - var w = p(5717), O = p(2318), k = p(9785), S = p(9072), a = p(1027); + }, 3482: (D, e, h) => { + var w = h(5717), O = h(2318), k = h(9785), S = h(9072), a = h(1027); function t(c) { a.call(this, "digest"), this._hash = c; } @@ -8900,13 +8900,13 @@ Please pass a 2048 word array explicitly.`; }, D.exports = function(c) { return (c = c.toLowerCase()) === "md5" ? new O() : c === "rmd160" || c === "ripemd160" ? new k() : new t(S(c)); }; - }, 8028: (D, e, p) => { - var w = p(2318); + }, 8028: (D, e, h) => { + var w = h(2318); D.exports = function(O) { return new w().update(O).digest(); }; - }, 8355: (D, e, p) => { - var w = p(5717), O = p(1031), k = p(1027), S = p(9509).Buffer, a = p(8028), t = p(9785), c = p(9072), u = S.alloc(128); + }, 8355: (D, e, h) => { + var w = h(5717), O = h(1031), k = h(1027), S = h(9509).Buffer, a = h(8028), t = h(9785), c = h(9072), u = S.alloc(128); function s(r, n) { k.call(this, "digest"), typeof n == "string" && (n = S.from(n)); var o = r === "sha512" || r === "sha384" ? 128 : 64; @@ -8923,8 +8923,8 @@ Please pass a 2048 word array explicitly.`; }, D.exports = function(r, n) { return (r = r.toLowerCase()) === "rmd160" || r === "ripemd160" ? new s("rmd160", n) : r === "md5" ? new O(a, n) : new s(r, n); }; - }, 1031: (D, e, p) => { - var w = p(5717), O = p(9509).Buffer, k = p(1027), S = O.alloc(128), a = 64; + }, 1031: (D, e, h) => { + var w = h(5717), O = h(9509).Buffer, k = h(1027), S = O.alloc(128), a = 64; function t(c, u) { k.call(this, "digest"), typeof u == "string" && (u = O.from(u)), this._alg = c, this._key = u, u.length > a ? u = c(u) : u.length < a && (u = O.concat([u, S], a)); for (var s = this._ipad = O.allocUnsafe(a), r = this._opad = O.allocUnsafe(a), n = 0; n < a; n++) @@ -8938,11 +8938,11 @@ Please pass a 2048 word array explicitly.`; return this._alg(O.concat([this._opad, c])); }, D.exports = t; }, 4098: function(D, e) { - var p = typeof self < "u" ? self : this, w = function() { + var h = typeof self < "u" ? self : this, w = function() { function k() { - this.fetch = !1, this.DOMException = p.DOMException; + this.fetch = !1, this.DOMException = h.DOMException; } - return k.prototype = p, new k(); + return k.prototype = h, new k(); }(); (function(k) { (function(S) { @@ -8983,7 +8983,7 @@ Please pass a 2048 word array explicitly.`; this.append(m, v[m]); }, this); } - function h(v) { + function p(v) { if (v.bodyUsed) return Promise.reject(new TypeError("Already read")); v.bodyUsed = !0; @@ -9012,7 +9012,7 @@ Please pass a 2048 word array explicitly.`; var m; this._bodyInit = v, v ? typeof v == "string" ? this._bodyText = v : c && Blob.prototype.isPrototypeOf(v) ? this._bodyBlob = v : u && FormData.prototype.isPrototypeOf(v) ? this._bodyFormData = v : a && URLSearchParams.prototype.isPrototypeOf(v) ? this._bodyText = v.toString() : s && c && (m = v) && DataView.prototype.isPrototypeOf(m) ? (this._bodyArrayBuffer = I(v.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : s && (ArrayBuffer.prototype.isPrototypeOf(v) || n(v)) ? this._bodyArrayBuffer = I(v) : this._bodyText = v = Object.prototype.toString.call(v) : this._bodyText = "", this.headers.get("content-type") || (typeof v == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : a && URLSearchParams.prototype.isPrototypeOf(v) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")); }, c && (this.blob = function() { - var v = h(this); + var v = p(this); if (v) return v; if (this._bodyBlob) @@ -9023,9 +9023,9 @@ Please pass a 2048 word array explicitly.`; throw new Error("could not read FormData body as blob"); return Promise.resolve(new Blob([this._bodyText])); }, this.arrayBuffer = function() { - return this._bodyArrayBuffer ? h(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(b); + return this._bodyArrayBuffer ? p(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(b); }), this.text = function() { - var v, m, E, B = h(this); + var v, m, E, B = p(this); if (B) return B; if (this._bodyBlob) @@ -9164,7 +9164,7 @@ Please pass a 2048 word array explicitly.`; (e = O.fetch).default = O.fetch, e.fetch = O.fetch, e.Headers = O.Headers, e.Request = O.Request, e.Response = O.Response, D.exports = e; }, 4063: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }); - let p = new Uint8Array(32); + let h = new Uint8Array(32); function w($) { var W, Y = new Float64Array(16); if ($) @@ -9172,7 +9172,7 @@ Please pass a 2048 word array explicitly.`; Y[W] = $[W]; return Y; } - p[0] = 9; + h[0] = 9; const O = w(), k = w([1]), S = w([56129, 1]), a = w([30883, 4953, 19914, 30187, 55467, 16705, 2637, 112, 59544, 30585, 16505, 36039, 65139, 11119, 27886, 20995]), t = w([61785, 9906, 39828, 60374, 45398, 33411, 5274, 224, 53552, 61171, 33010, 6542, 64743, 22239, 55772, 9222]), c = w([54554, 36645, 11616, 51542, 42930, 38181, 51040, 26924, 56412, 64982, 57905, 49316, 21502, 52590, 14035, 8553]), u = w([26200, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214, 26214]), s = w([41136, 18958, 6951, 50414, 58488, 44335, 6150, 12099, 55207, 15867, 153, 11085, 57099, 20417, 9344, 11139]); function r($, W, Y, F) { $[W] = Y >> 24 & 255, $[W + 1] = Y >> 16 & 255, $[W + 2] = Y >> 8 & 255, $[W + 3] = 255 & Y, $[W + 4] = F >> 24 & 255, $[W + 5] = F >> 16 & 255, $[W + 6] = F >> 8 & 255, $[W + 7] = 255 & F; @@ -9212,7 +9212,7 @@ Please pass a 2048 word array explicitly.`; for (Y = 0; Y < 16; Y++) $[2 * Y] = 255 & le[Y], $[2 * Y + 1] = le[Y] >> 8; } - function h($, W) { + function p($, W) { var Y = new Uint8Array(32), F = new Uint8Array(32); return d(Y, $), d(F, W), n(Y, 0, F, 0); } @@ -9391,7 +9391,7 @@ Please pass a 2048 word array explicitly.`; M(se, se), Z !== 1 && j(se, se, Q); for (Z = 0; Z < 16; Z++) X[Z] = se[Z]; - }(U, U), j(U, U, L), j(U, U, H), j(U, U, H), j(A[0], U, H), M(z, A[0]), j(z, z, H), h(z, L) && j(A[0], A[0], s), M(z, A[0]), j(z, z, H), h(z, L) ? -1 : (_(A[0]) === R[31] >> 7 && l(A[0], O, A[0]), j(A[3], A[0], A[1]), 0); + }(U, U), j(U, U, L), j(U, U, H), j(U, U, H), j(A[0], U, H), M(z, A[0]), j(z, z, H), p(z, L) && j(A[0], A[0], s), M(z, A[0]), j(z, z, H), p(z, L) ? -1 : (_(A[0]) === R[31] >> 7 && l(A[0], O, A[0]), j(A[3], A[0], A[1]), 0); }(y, ve)) return -1; for (de = 0; de < ce; de++) @@ -9467,17 +9467,17 @@ Please pass a 2048 word array explicitly.`; throw new Error("wrong seed length"); for (var W = new Uint8Array(32), Y = new Uint8Array(32), F = 0; F < 32; F++) W[F] = $[F]; - return C(Y, W, p), W[0] &= 248, W[31] &= 127, W[31] |= 64, Y[31] &= 127, { public: Y, private: W }; + return C(Y, W, h), W[0] &= 248, W[31] &= 127, W[31] |= 64, Y[31] &= 127, { public: Y, private: W }; }, e.default = {}; - }, 2296: (D, e, p) => { - var w = p(1044)(), O = p(210), k = w && O("%Object.defineProperty%", !0); + }, 2296: (D, e, h) => { + var w = h(1044)(), O = h(210), k = w && O("%Object.defineProperty%", !0); if (k) try { k({}, "a", { value: 1 }); } catch { k = !1; } - var S = O("%SyntaxError%"), a = O("%TypeError%"), t = p(7296); + var S = O("%SyntaxError%"), a = O("%TypeError%"), t = h(7296); D.exports = function(c, u, s) { if (!c || typeof c != "object" && typeof c != "function") throw new a("`obj` must be an object or a function`"); @@ -9500,8 +9500,8 @@ Please pass a 2048 word array explicitly.`; c[u] = s; } }; - }, 4289: (D, e, p) => { - var w = p(2215), O = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", k = Object.prototype.toString, S = Array.prototype.concat, a = p(2296), t = p(1044)(), c = function(s, r, n, o) { + }, 4289: (D, e, h) => { + var w = h(2215), O = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", k = Object.prototype.toString, S = Array.prototype.concat, a = h(2296), t = h(1044)(), c = function(s, r, n, o) { if (r in s) { if (o === !0) { if (s[r] === n) @@ -9518,11 +9518,11 @@ Please pass a 2048 word array explicitly.`; c(s, o[i], r[o[i]], n[o[i]]); }; u.supportsDescriptors = !!t, D.exports = u; - }, 6266: (D, e, p) => { + }, 6266: (D, e, h) => { var w = e; - w.version = p(8597).i8, w.utils = p(953), w.rand = p(9931), w.curve = p(8254), w.curves = p(5427), w.ec = p(7954), w.eddsa = p(5980); - }, 4918: (D, e, p) => { - var w = p(3550), O = p(953), k = O.getNAF, S = O.getJSF, a = O.assert; + w.version = h(8597).i8, w.utils = h(953), w.rand = h(9931), w.curve = h(8254), w.curves = h(5427), w.ec = h(7954), w.eddsa = h(5980); + }, 4918: (D, e, h) => { + var w = h(3550), O = h(953), k = O.getNAF, S = O.getJSF, a = O.assert; function t(u, s) { this.type = u, this.p = new w(s.p, 16), this.red = s.prime ? w.red(s.prime) : w.mont(this.p), this.zero = new w(0).toRed(this.red), this.one = new w(1).toRed(this.red), this.two = new w(2).toRed(this.red), this.n = s.n && new w(s.n, 16), this.g = s.g && this.pointFromJSON(s.g, s.gRed), this._wnafT1 = new Array(4), this._wnafT2 = new Array(4), this._wnafT3 = new Array(4), this._wnafT4 = new Array(4), this._bitLength = this.n ? this.n.bitLength() : 0; var r = this.n && this.p.div(this.n); @@ -9542,8 +9542,8 @@ Please pass a 2048 word array explicitly.`; var i, f, d = []; for (i = 0; i < n.length; i += r.step) { f = 0; - for (var h = i + r.step - 1; h >= i; h--) - f = (f << 1) + n[h]; + for (var p = i + r.step - 1; p >= i; p--) + f = (f << 1) + n[p]; d.push(f); } for (var _ = this.jpoint(null, null, null), b = this.jpoint(null, null, null), I = o; I > 0; I--) { @@ -9556,23 +9556,23 @@ Please pass a 2048 word array explicitly.`; var r = 4, n = u._getNAFPoints(r); r = n.wnd; for (var o = n.points, i = k(s, r, this._bitLength), f = this.jpoint(null, null, null), d = i.length - 1; d >= 0; d--) { - for (var h = 0; d >= 0 && i[d] === 0; d--) - h++; - if (d >= 0 && h++, f = f.dblp(h), d < 0) + for (var p = 0; d >= 0 && i[d] === 0; d--) + p++; + if (d >= 0 && p++, f = f.dblp(p), d < 0) break; var _ = i[d]; a(_ !== 0), f = u.type === "affine" ? _ > 0 ? f.mixedAdd(o[_ - 1 >> 1]) : f.mixedAdd(o[-_ - 1 >> 1].neg()) : _ > 0 ? f.add(o[_ - 1 >> 1]) : f.add(o[-_ - 1 >> 1].neg()); } return u.type === "affine" ? f.toP() : f; }, t.prototype._wnafMulAdd = function(u, s, r, n, o) { - var i, f, d, h = this._wnafT1, _ = this._wnafT2, b = this._wnafT3, I = 0; + var i, f, d, p = this._wnafT1, _ = this._wnafT2, b = this._wnafT3, I = 0; for (i = 0; i < n; i++) { var l = (d = s[i])._getNAFPoints(u); - h[i] = l.wnd, _[i] = l.points; + p[i] = l.wnd, _[i] = l.points; } for (i = n - 1; i >= 1; i -= 2) { var j = i - 1, M = i; - if (h[j] === 1 && h[M] === 1) { + if (p[j] === 1 && p[M] === 1) { var N = [s[j], null, null, s[M]]; s[j].y.cmp(s[M].y) === 0 ? (N[1] = s[j].add(s[M]), N[2] = s[j].toJ().mixedAdd(s[M].neg())) : s[j].y.cmp(s[M].y.redNeg()) === 0 ? (N[1] = s[j].toJ().mixedAdd(s[M]), N[2] = s[j].add(s[M].neg())) : (N[1] = s[j].toJ().mixedAdd(s[M]), N[2] = s[j].toJ().mixedAdd(s[M].neg())); var C = [-3, -1, -5, -7, 0, 7, 5, 1, 3], x = S(r[j], r[M]); @@ -9581,7 +9581,7 @@ Please pass a 2048 word array explicitly.`; b[j][f] = C[3 * (P + 1) + (v + 1)], b[M][f] = 0, _[j] = N; } } else - b[j] = k(r[j], h[j], this._bitLength), b[M] = k(r[M], h[M], this._bitLength), I = Math.max(b[j].length, I), I = Math.max(b[M].length, I); + b[j] = k(r[j], p[j], this._bitLength), b[M] = k(r[M], p[M], this._bitLength), I = Math.max(b[j].length, I), I = Math.max(b[M].length, I); } var m = this.jpoint(null, null, null), E = this._wnafT4; for (i = I; i >= 0; i--) { @@ -9654,8 +9654,8 @@ Please pass a 2048 word array explicitly.`; s = s.dbl(); return s; }; - }, 1138: (D, e, p) => { - var w = p(953), O = p(3550), k = p(5717), S = p(4918), a = w.assert; + }, 1138: (D, e, h) => { + var w = h(953), O = h(3550), k = h(5717), S = h(4918), a = w.assert; function t(u) { this.twisted = (0 | u.a) != 1, this.mOneA = this.twisted && (0 | u.a) == -1, this.extended = this.mOneA, S.call(this, "edwards", u), this.a = new O(u.a, 16).umod(this.red.m), this.a = this.a.toRed(this.red), this.c = new O(u.c, 16).toRed(this.red), this.c2 = this.c.redSqr(), this.d = new O(u.d, 16).toRed(this.red), this.dd = this.d.redAdd(this.d), a(!this.twisted || this.c.fromRed().cmpn(1) === 0), this.oneC = (0 | u.c) == 1; } @@ -9706,24 +9706,24 @@ Please pass a 2048 word array explicitly.`; }, c.prototype._extDbl = function() { var u = this.x.redSqr(), s = this.y.redSqr(), r = this.z.redSqr(); r = r.redIAdd(r); - var n = this.curve._mulA(u), o = this.x.redAdd(this.y).redSqr().redISub(u).redISub(s), i = n.redAdd(s), f = i.redSub(r), d = n.redSub(s), h = o.redMul(f), _ = i.redMul(d), b = o.redMul(d), I = f.redMul(i); - return this.curve.point(h, _, I, b); + var n = this.curve._mulA(u), o = this.x.redAdd(this.y).redSqr().redISub(u).redISub(s), i = n.redAdd(s), f = i.redSub(r), d = n.redSub(s), p = o.redMul(f), _ = i.redMul(d), b = o.redMul(d), I = f.redMul(i); + return this.curve.point(p, _, I, b); }, c.prototype._projDbl = function() { - var u, s, r, n, o, i, f = this.x.redAdd(this.y).redSqr(), d = this.x.redSqr(), h = this.y.redSqr(); + var u, s, r, n, o, i, f = this.x.redAdd(this.y).redSqr(), d = this.x.redSqr(), p = this.y.redSqr(); if (this.curve.twisted) { - var _ = (n = this.curve._mulA(d)).redAdd(h); - this.zOne ? (u = f.redSub(d).redSub(h).redMul(_.redSub(this.curve.two)), s = _.redMul(n.redSub(h)), r = _.redSqr().redSub(_).redSub(_)) : (o = this.z.redSqr(), i = _.redSub(o).redISub(o), u = f.redSub(d).redISub(h).redMul(i), s = _.redMul(n.redSub(h)), r = _.redMul(i)); + var _ = (n = this.curve._mulA(d)).redAdd(p); + this.zOne ? (u = f.redSub(d).redSub(p).redMul(_.redSub(this.curve.two)), s = _.redMul(n.redSub(p)), r = _.redSqr().redSub(_).redSub(_)) : (o = this.z.redSqr(), i = _.redSub(o).redISub(o), u = f.redSub(d).redISub(p).redMul(i), s = _.redMul(n.redSub(p)), r = _.redMul(i)); } else - n = d.redAdd(h), o = this.curve._mulC(this.z).redSqr(), i = n.redSub(o).redSub(o), u = this.curve._mulC(f.redISub(n)).redMul(i), s = this.curve._mulC(n).redMul(d.redISub(h)), r = n.redMul(i); + n = d.redAdd(p), o = this.curve._mulC(this.z).redSqr(), i = n.redSub(o).redSub(o), u = this.curve._mulC(f.redISub(n)).redMul(i), s = this.curve._mulC(n).redMul(d.redISub(p)), r = n.redMul(i); return this.curve.point(u, s, r); }, c.prototype.dbl = function() { return this.isInfinity() ? this : this.curve.extended ? this._extDbl() : this._projDbl(); }, c.prototype._extAdd = function(u) { - var s = this.y.redSub(this.x).redMul(u.y.redSub(u.x)), r = this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)), n = this.t.redMul(this.curve.dd).redMul(u.t), o = this.z.redMul(u.z.redAdd(u.z)), i = r.redSub(s), f = o.redSub(n), d = o.redAdd(n), h = r.redAdd(s), _ = i.redMul(f), b = d.redMul(h), I = i.redMul(h), l = f.redMul(d); + var s = this.y.redSub(this.x).redMul(u.y.redSub(u.x)), r = this.y.redAdd(this.x).redMul(u.y.redAdd(u.x)), n = this.t.redMul(this.curve.dd).redMul(u.t), o = this.z.redMul(u.z.redAdd(u.z)), i = r.redSub(s), f = o.redSub(n), d = o.redAdd(n), p = r.redAdd(s), _ = i.redMul(f), b = d.redMul(p), I = i.redMul(p), l = f.redMul(d); return this.curve.point(_, b, l, I); }, c.prototype._projAdd = function(u) { - var s, r, n = this.z.redMul(u.z), o = n.redSqr(), i = this.x.redMul(u.x), f = this.y.redMul(u.y), d = this.curve.d.redMul(i).redMul(f), h = o.redSub(d), _ = o.redAdd(d), b = this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(i).redISub(f), I = n.redMul(h).redMul(b); - return this.curve.twisted ? (s = n.redMul(_).redMul(f.redSub(this.curve._mulA(i))), r = h.redMul(_)) : (s = n.redMul(_).redMul(f.redSub(i)), r = this.curve._mulC(h).redMul(_)), this.curve.point(I, s, r); + var s, r, n = this.z.redMul(u.z), o = n.redSqr(), i = this.x.redMul(u.x), f = this.y.redMul(u.y), d = this.curve.d.redMul(i).redMul(f), p = o.redSub(d), _ = o.redAdd(d), b = this.x.redAdd(this.y).redMul(u.x.redAdd(u.y)).redISub(i).redISub(f), I = n.redMul(p).redMul(b); + return this.curve.twisted ? (s = n.redMul(_).redMul(f.redSub(this.curve._mulA(i))), r = p.redMul(_)) : (s = n.redMul(_).redMul(f.redSub(i)), r = this.curve._mulC(p).redMul(_)), this.curve.point(I, s, r); }, c.prototype.add = function(u) { return this.isInfinity() ? u : u.isInfinity() ? this : this.curve.extended ? this._extAdd(u) : this._projAdd(u); }, c.prototype.mul = function(u) { @@ -9756,11 +9756,11 @@ Please pass a 2048 word array explicitly.`; return !0; } }, c.prototype.toP = c.prototype.normalize, c.prototype.mixedAdd = c.prototype.add; - }, 8254: (D, e, p) => { + }, 8254: (D, e, h) => { var w = e; - w.base = p(4918), w.short = p(6673), w.mont = p(2881), w.edwards = p(1138); - }, 2881: (D, e, p) => { - var w = p(3550), O = p(5717), k = p(4918), S = p(953); + w.base = h(4918), w.short = h(6673), w.mont = h(2881), w.edwards = h(1138); + }, 2881: (D, e, h) => { + var w = h(3550), O = h(5717), k = h(4918), S = h(953); function a(c) { k.call(this, "mont", c), this.a = new w(c.a, 16).toRed(this.red), this.b = new w(c.b, 16).toRed(this.red), this.i4 = new w(4).toRed(this.red).redInvm(), this.two = new w(2).toRed(this.red), this.a24 = this.i4.redMul(this.a.redAdd(this.two)); } @@ -9810,8 +9810,8 @@ Please pass a 2048 word array explicitly.`; }, t.prototype.getX = function() { return this.normalize(), this.x.fromRed(); }; - }, 6673: (D, e, p) => { - var w = p(953), O = p(3550), k = p(5717), S = p(4918), a = w.assert; + }, 6673: (D, e, h) => { + var w = h(953), O = h(3550), k = h(5717), S = h(4918), a = w.assert; function t(s) { S.call(this, "short", s), this.a = new O(s.a, 16).toRed(this.red), this.b = new O(s.b, 16).toRed(this.red), this.tinv = this.two.redInvm(), this.zeroA = this.a.fromRed().cmpn(0) === 0, this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0, this.endo = this._getEndomorphism(s), this._endoWnafT1 = new Array(4), this._endoWnafT2 = new Array(4); } @@ -9844,22 +9844,22 @@ Please pass a 2048 word array explicitly.`; var r = s === this.p ? this.red : O.mont(s), n = new O(2).toRed(r).redInvm(), o = n.redNeg(), i = new O(3).toRed(r).redNeg().redSqrt().redMul(n); return [o.redAdd(i).fromRed(), o.redSub(i).fromRed()]; }, t.prototype._getEndoBasis = function(s) { - for (var r, n, o, i, f, d, h, _, b, I = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), l = s, j = this.n.clone(), M = new O(1), N = new O(0), C = new O(0), x = new O(1), P = 0; l.cmpn(0) !== 0; ) { + for (var r, n, o, i, f, d, p, _, b, I = this.n.ushrn(Math.floor(this.n.bitLength() / 2)), l = s, j = this.n.clone(), M = new O(1), N = new O(0), C = new O(0), x = new O(1), P = 0; l.cmpn(0) !== 0; ) { var v = j.div(l); _ = j.sub(v.mul(l)), b = C.sub(v.mul(M)); var m = x.sub(v.mul(N)); if (!o && _.cmp(I) < 0) - r = h.neg(), n = M, o = _.neg(), i = b; + r = p.neg(), n = M, o = _.neg(), i = b; else if (o && ++P == 2) break; - h = _, j = l, l = _, C = M, M = b, x = N, N = m; + p = _, j = l, l = _, C = M, M = b, x = N, N = m; } f = _.neg(), d = b; var E = o.sqr().add(i.sqr()); return f.sqr().add(d.sqr()).cmp(E) >= 0 && (f = r, d = n), o.negative && (o = o.neg(), i = i.neg()), f.negative && (f = f.neg(), d = d.neg()), [{ a: o, b: i }, { a: f, b: d }]; }, t.prototype._endoSplit = function(s) { - var r = this.endo.basis, n = r[0], o = r[1], i = o.b.mul(s).divRound(this.n), f = n.b.neg().mul(s).divRound(this.n), d = i.mul(n.a), h = f.mul(o.a), _ = i.mul(n.b), b = f.mul(o.b); - return { k1: s.sub(d).sub(h), k2: _.add(b).neg() }; + var r = this.endo.basis, n = r[0], o = r[1], i = o.b.mul(s).divRound(this.n), f = n.b.neg().mul(s).divRound(this.n), d = i.mul(n.a), p = f.mul(o.a), _ = i.mul(n.b), b = f.mul(o.b); + return { k1: s.sub(d).sub(p), k2: _.add(b).neg() }; }, t.prototype.pointFromX = function(s, r) { (s = new O(s, 16)).red || (s = s.toRed(this.red)); var n = s.redSqr().redMul(s).redIAdd(s.redMul(this.a)).redIAdd(this.b), o = n.redSqrt(); @@ -9874,8 +9874,8 @@ Please pass a 2048 word array explicitly.`; return n.redSqr().redISub(i).cmpn(0) === 0; }, t.prototype._endoWnafMulAdd = function(s, r, n) { for (var o = this._endoWnafT1, i = this._endoWnafT2, f = 0; f < s.length; f++) { - var d = this._endoSplit(r[f]), h = s[f], _ = h._getBeta(); - d.k1.negative && (d.k1.ineg(), h = h.neg(!0)), d.k2.negative && (d.k2.ineg(), _ = _.neg(!0)), o[2 * f] = h, o[2 * f + 1] = _, i[2 * f] = d.k1, i[2 * f + 1] = d.k2; + var d = this._endoSplit(r[f]), p = s[f], _ = p._getBeta(); + d.k1.negative && (d.k1.ineg(), p = p.neg(!0)), d.k2.negative && (d.k2.ineg(), _ = _.neg(!0)), o[2 * f] = p, o[2 * f + 1] = _, i[2 * f] = d.k1, i[2 * f + 1] = d.k2; } for (var b = this._wnafMulAdd(1, o, i, 2 * f, n), I = 0; I < 2 * f; I++) o[I] = null, i[I] = null; @@ -9978,20 +9978,20 @@ Please pass a 2048 word array explicitly.`; return s; if (s.isInfinity()) return this; - var r = s.z.redSqr(), n = this.z.redSqr(), o = this.x.redMul(r), i = s.x.redMul(n), f = this.y.redMul(r.redMul(s.z)), d = s.y.redMul(n.redMul(this.z)), h = o.redSub(i), _ = f.redSub(d); - if (h.cmpn(0) === 0) + var r = s.z.redSqr(), n = this.z.redSqr(), o = this.x.redMul(r), i = s.x.redMul(n), f = this.y.redMul(r.redMul(s.z)), d = s.y.redMul(n.redMul(this.z)), p = o.redSub(i), _ = f.redSub(d); + if (p.cmpn(0) === 0) return _.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl(); - var b = h.redSqr(), I = b.redMul(h), l = o.redMul(b), j = _.redSqr().redIAdd(I).redISub(l).redISub(l), M = _.redMul(l.redISub(j)).redISub(f.redMul(I)), N = this.z.redMul(s.z).redMul(h); + var b = p.redSqr(), I = b.redMul(p), l = o.redMul(b), j = _.redSqr().redIAdd(I).redISub(l).redISub(l), M = _.redMul(l.redISub(j)).redISub(f.redMul(I)), N = this.z.redMul(s.z).redMul(p); return this.curve.jpoint(j, M, N); }, u.prototype.mixedAdd = function(s) { if (this.isInfinity()) return s.toJ(); if (s.isInfinity()) return this; - var r = this.z.redSqr(), n = this.x, o = s.x.redMul(r), i = this.y, f = s.y.redMul(r).redMul(this.z), d = n.redSub(o), h = i.redSub(f); + var r = this.z.redSqr(), n = this.x, o = s.x.redMul(r), i = this.y, f = s.y.redMul(r).redMul(this.z), d = n.redSub(o), p = i.redSub(f); if (d.cmpn(0) === 0) - return h.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl(); - var _ = d.redSqr(), b = _.redMul(d), I = n.redMul(_), l = h.redSqr().redIAdd(b).redISub(I).redISub(I), j = h.redMul(I.redISub(l)).redISub(i.redMul(b)), M = this.z.redMul(d); + return p.cmpn(0) !== 0 ? this.curve.jpoint(null, null, null) : this.dbl(); + var _ = d.redSqr(), b = _.redMul(d), I = n.redMul(_), l = p.redSqr().redIAdd(b).redISub(I).redISub(I), j = p.redMul(I.redISub(l)).redISub(i.redMul(b)), M = this.z.redMul(d); return this.curve.jpoint(l, j, M); }, u.prototype.dblp = function(s) { if (s === 0) @@ -10007,14 +10007,14 @@ Please pass a 2048 word array explicitly.`; n = n.dbl(); return n; } - var o = this.curve.a, i = this.curve.tinv, f = this.x, d = this.y, h = this.z, _ = h.redSqr().redSqr(), b = d.redAdd(d); + var o = this.curve.a, i = this.curve.tinv, f = this.x, d = this.y, p = this.z, _ = p.redSqr().redSqr(), b = d.redAdd(d); for (r = 0; r < s; r++) { var I = f.redSqr(), l = b.redSqr(), j = l.redSqr(), M = I.redAdd(I).redIAdd(I).redIAdd(o.redMul(_)), N = f.redMul(l), C = M.redSqr().redISub(N.redAdd(N)), x = N.redISub(C), P = M.redMul(x); P = P.redIAdd(P).redISub(j); - var v = b.redMul(h); - r + 1 < s && (_ = _.redMul(j)), f = C, h = v, b = P; + var v = b.redMul(p); + r + 1 < s && (_ = _.redMul(j)), f = C, p = v, b = P; } - return this.curve.jpoint(f, b.redMul(i), h); + return this.curve.jpoint(f, b.redMul(i), p); }, u.prototype.dbl = function() { return this.isInfinity() ? this : this.curve.zeroA ? this._zeroDbl() : this.curve.threeA ? this._threeDbl() : this._dbl(); }, u.prototype._zeroDbl = function() { @@ -10022,8 +10022,8 @@ Please pass a 2048 word array explicitly.`; if (this.zOne) { var o = this.x.redSqr(), i = this.y.redSqr(), f = i.redSqr(), d = this.x.redAdd(i).redSqr().redISub(o).redISub(f); d = d.redIAdd(d); - var h = o.redAdd(o).redIAdd(o), _ = h.redSqr().redISub(d).redISub(d), b = f.redIAdd(f); - b = (b = b.redIAdd(b)).redIAdd(b), s = _, r = h.redMul(d.redISub(_)).redISub(b), n = this.y.redAdd(this.y); + var p = o.redAdd(o).redIAdd(o), _ = p.redSqr().redISub(d).redISub(d), b = f.redIAdd(f); + b = (b = b.redIAdd(b)).redIAdd(b), s = _, r = p.redMul(d.redISub(_)).redISub(b), n = this.y.redAdd(this.y); } else { var I = this.x.redSqr(), l = this.y.redSqr(), j = l.redSqr(), M = this.x.redAdd(l).redSqr().redISub(I).redISub(j); M = M.redIAdd(M); @@ -10036,10 +10036,10 @@ Please pass a 2048 word array explicitly.`; if (this.zOne) { var o = this.x.redSqr(), i = this.y.redSqr(), f = i.redSqr(), d = this.x.redAdd(i).redSqr().redISub(o).redISub(f); d = d.redIAdd(d); - var h = o.redAdd(o).redIAdd(o).redIAdd(this.curve.a), _ = h.redSqr().redISub(d).redISub(d); + var p = o.redAdd(o).redIAdd(o).redIAdd(this.curve.a), _ = p.redSqr().redISub(d).redISub(d); s = _; var b = f.redIAdd(f); - b = (b = b.redIAdd(b)).redIAdd(b), r = h.redMul(d.redISub(_)).redISub(b), n = this.y.redAdd(this.y); + b = (b = b.redIAdd(b)).redIAdd(b), r = p.redMul(d.redISub(_)).redISub(b), n = this.y.redAdd(this.y); } else { var I = this.z.redSqr(), l = this.y.redSqr(), j = this.x.redMul(l), M = this.x.redSub(I).redMul(this.x.redAdd(I)); M = M.redAdd(M).redIAdd(M); @@ -10050,22 +10050,22 @@ Please pass a 2048 word array explicitly.`; } return this.curve.jpoint(s, r, n); }, u.prototype._dbl = function() { - var s = this.curve.a, r = this.x, n = this.y, o = this.z, i = o.redSqr().redSqr(), f = r.redSqr(), d = n.redSqr(), h = f.redAdd(f).redIAdd(f).redIAdd(s.redMul(i)), _ = r.redAdd(r), b = (_ = _.redIAdd(_)).redMul(d), I = h.redSqr().redISub(b.redAdd(b)), l = b.redISub(I), j = d.redSqr(); + var s = this.curve.a, r = this.x, n = this.y, o = this.z, i = o.redSqr().redSqr(), f = r.redSqr(), d = n.redSqr(), p = f.redAdd(f).redIAdd(f).redIAdd(s.redMul(i)), _ = r.redAdd(r), b = (_ = _.redIAdd(_)).redMul(d), I = p.redSqr().redISub(b.redAdd(b)), l = b.redISub(I), j = d.redSqr(); j = (j = (j = j.redIAdd(j)).redIAdd(j)).redIAdd(j); - var M = h.redMul(l).redISub(j), N = n.redAdd(n).redMul(o); + var M = p.redMul(l).redISub(j), N = n.redAdd(n).redMul(o); return this.curve.jpoint(I, M, N); }, u.prototype.trpl = function() { if (!this.curve.zeroA) return this.dbl().add(this); - var s = this.x.redSqr(), r = this.y.redSqr(), n = this.z.redSqr(), o = r.redSqr(), i = s.redAdd(s).redIAdd(s), f = i.redSqr(), d = this.x.redAdd(r).redSqr().redISub(s).redISub(o), h = (d = (d = (d = d.redIAdd(d)).redAdd(d).redIAdd(d)).redISub(f)).redSqr(), _ = o.redIAdd(o); + var s = this.x.redSqr(), r = this.y.redSqr(), n = this.z.redSqr(), o = r.redSqr(), i = s.redAdd(s).redIAdd(s), f = i.redSqr(), d = this.x.redAdd(r).redSqr().redISub(s).redISub(o), p = (d = (d = (d = d.redIAdd(d)).redAdd(d).redIAdd(d)).redISub(f)).redSqr(), _ = o.redIAdd(o); _ = (_ = (_ = _.redIAdd(_)).redIAdd(_)).redIAdd(_); - var b = i.redIAdd(d).redSqr().redISub(f).redISub(h).redISub(_), I = r.redMul(b); + var b = i.redIAdd(d).redSqr().redISub(f).redISub(p).redISub(_), I = r.redMul(b); I = (I = I.redIAdd(I)).redIAdd(I); - var l = this.x.redMul(h).redISub(I); + var l = this.x.redMul(p).redISub(I); l = (l = l.redIAdd(l)).redIAdd(l); - var j = this.y.redMul(b.redMul(_.redISub(b)).redISub(d.redMul(h))); + var j = this.y.redMul(b.redMul(_.redISub(b)).redISub(d.redMul(p))); j = (j = (j = j.redIAdd(j)).redIAdd(j)).redIAdd(j); - var M = this.z.redAdd(d).redSqr().redISub(n).redISub(h); + var M = this.z.redAdd(d).redSqr().redISub(n).redISub(p); return this.curve.jpoint(l, j, M); }, u.prototype.mul = function(s, r) { return s = new O(s, r), this.curve._wnafMul(this, s); @@ -10094,8 +10094,8 @@ Please pass a 2048 word array explicitly.`; }, u.prototype.isInfinity = function() { return this.z.cmpn(0) === 0; }; - }, 5427: (D, e, p) => { - var w, O = e, k = p(3715), S = p(8254), a = p(953).assert; + }, 5427: (D, e, h) => { + var w, O = e, k = h(3715), S = h(8254), a = h(953).assert; function t(u) { u.type === "short" ? this.curve = new S.short(u) : u.type === "edwards" ? this.curve = new S.edwards(u) : this.curve = new S.mont(u), this.g = this.curve.g, this.n = this.curve.n, this.hash = u.hash, a(this.g.validate(), "Invalid curve"), a(this.g.mul(this.n).isInfinity(), "Invalid curve, G*N != O"); } @@ -10107,13 +10107,13 @@ Please pass a 2048 word array explicitly.`; } O.PresetCurve = t, c("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: k.sha256, gRed: !1, g: ["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012", "07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"] }), c("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: k.sha256, gRed: !1, g: ["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21", "bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"] }), c("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: k.sha256, gRed: !1, g: ["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296", "4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"] }), c("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: k.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"] }), c("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: k.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"] }), c("curve25519", { type: "mont", prime: "p25519", p: "7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed", a: "76d06", b: "1", n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash: k.sha256, gRed: !1, g: ["9"] }), c("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: k.sha256, gRed: !1, g: ["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a", "6666666666666666666666666666666666666666666666666666666666666658"] }); try { - w = p(1037); + w = h(1037); } catch { w = void 0; } c("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: k.sha256, beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee", lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72", basis: [{ a: "3086d221a7d46bcde86c90e49284eb15", b: "-e4437ed6010e88286f547fa90abfe4c3" }, { a: "114ca50f7a8e2f3f657c1108d9d44cfd8", b: "3086d221a7d46bcde86c90e49284eb15" }], gRed: !1, g: ["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", "483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8", w] }); - }, 7954: (D, e, p) => { - var w = p(3550), O = p(2156), k = p(953), S = p(5427), a = p(9931), t = k.assert, c = p(1251), u = p(611); + }, 7954: (D, e, h) => { + var w = h(3550), O = h(2156), k = h(953), S = h(5427), a = h(9931), t = k.assert, c = h(1251), u = h(611); function s(r) { if (!(this instanceof s)) return new s(r); @@ -10137,7 +10137,7 @@ Please pass a 2048 word array explicitly.`; return o > 0 && (r = r.ushrn(o)), !n && r.cmp(this.n) >= 0 ? r.sub(this.n) : r; }, s.prototype.sign = function(r, n, o, i) { typeof o == "object" && (i = o, o = null), i || (i = {}), n = this.keyFromPrivate(n, o), r = this._truncateToN(new w(r, 16)); - for (var f = this.n.byteLength(), d = n.getPrivate().toArray("be", f), h = r.toArray("be", f), _ = new O({ hash: this.hash, entropy: d, nonce: h, pers: i.pers, persEnc: i.persEnc || "utf8" }), b = this.n.sub(new w(1)), I = 0; ; I++) { + for (var f = this.n.byteLength(), d = n.getPrivate().toArray("be", f), p = r.toArray("be", f), _ = new O({ hash: this.hash, entropy: d, nonce: p, pers: i.pers, persEnc: i.persEnc || "utf8" }), b = this.n.sub(new w(1)), I = 0; ; I++) { var l = i.k ? i.k(I) : new w(_.generate(this.n.byteLength())); if (!((l = this._truncateToN(l, !0)).cmpn(1) <= 0 || l.cmp(b) >= 0)) { var j = this.g.mul(l); @@ -10158,16 +10158,16 @@ Please pass a 2048 word array explicitly.`; var f = (n = new u(n, "hex")).r, d = n.s; if (f.cmpn(1) < 0 || f.cmp(this.n) >= 0 || d.cmpn(1) < 0 || d.cmp(this.n) >= 0) return !1; - var h, _ = d.invm(this.n), b = _.mul(r).umod(this.n), I = _.mul(f).umod(this.n); - return this.curve._maxwellTrick ? !(h = this.g.jmulAdd(b, o.getPublic(), I)).isInfinity() && h.eqXToP(f) : !(h = this.g.mulAdd(b, o.getPublic(), I)).isInfinity() && h.getX().umod(this.n).cmp(f) === 0; + var p, _ = d.invm(this.n), b = _.mul(r).umod(this.n), I = _.mul(f).umod(this.n); + return this.curve._maxwellTrick ? !(p = this.g.jmulAdd(b, o.getPublic(), I)).isInfinity() && p.eqXToP(f) : !(p = this.g.mulAdd(b, o.getPublic(), I)).isInfinity() && p.getX().umod(this.n).cmp(f) === 0; }, s.prototype.recoverPubKey = function(r, n, o, i) { t((3 & o) === o, "The recovery param is more than two bits"), n = new u(n, i); - var f = this.n, d = new w(r), h = n.r, _ = n.s, b = 1 & o, I = o >> 1; - if (h.cmp(this.curve.p.umod(this.curve.n)) >= 0 && I) + var f = this.n, d = new w(r), p = n.r, _ = n.s, b = 1 & o, I = o >> 1; + if (p.cmp(this.curve.p.umod(this.curve.n)) >= 0 && I) throw new Error("Unable to find sencond key candinate"); - h = I ? this.curve.pointFromX(h.add(this.curve.n), b) : this.curve.pointFromX(h, b); + p = I ? this.curve.pointFromX(p.add(this.curve.n), b) : this.curve.pointFromX(p, b); var l = n.r.invm(f), j = f.sub(d).mul(l).umod(f), M = _.mul(l).umod(f); - return this.g.mulAdd(j, h, M); + return this.g.mulAdd(j, p, M); }, s.prototype.getKeyRecoveryParam = function(r, n, o, i) { if ((n = new u(n, i)).recoveryParam !== null) return n.recoveryParam; @@ -10183,8 +10183,8 @@ Please pass a 2048 word array explicitly.`; } throw new Error("Unable to find valid recovery factor"); }; - }, 1251: (D, e, p) => { - var w = p(3550), O = p(953).assert; + }, 1251: (D, e, h) => { + var w = h(3550), O = h(953).assert; function k(S, a) { this.ec = S, this.priv = null, this.pub = null, a.priv && this._importPrivate(a.priv, a.privEnc), a.pub && this._importPublic(a.pub, a.pubEnc); } @@ -10214,8 +10214,8 @@ Please pass a 2048 word array explicitly.`; }, k.prototype.inspect = function() { return ""; }; - }, 611: (D, e, p) => { - var w = p(3550), O = p(953), k = O.assert; + }, 611: (D, e, h) => { + var w = h(3550), O = h(953), k = O.assert; function S(s, r) { if (s instanceof S) return s; @@ -10267,18 +10267,18 @@ Please pass a 2048 word array explicitly.`; var d = t(s, n); if (d === !1 || s.length !== d + n.place) return !1; - var h = s.slice(n.place, d + n.place); + var p = s.slice(n.place, d + n.place); if (f[0] === 0) { if (!(128 & f[1])) return !1; f = f.slice(1); } - if (h[0] === 0) { - if (!(128 & h[1])) + if (p[0] === 0) { + if (!(128 & p[1])) return !1; - h = h.slice(1); + p = p.slice(1); } - return this.r = new w(f), this.s = new w(h), this.recoveryParam = null, !0; + return this.r = new w(f), this.s = new w(p), this.recoveryParam = null, !0; }, S.prototype.toDER = function(s) { var r = this.r.toArray(), n = this.s.toArray(); for (128 & r[0] && (r = [0].concat(r)), 128 & n[0] && (n = [0].concat(n)), r = c(r), n = c(n); !(n[0] || 128 & n[1]); ) @@ -10288,8 +10288,8 @@ Please pass a 2048 word array explicitly.`; var i = o.concat(n), f = [48]; return u(f, i.length), f = f.concat(i), O.encode(f, s); }; - }, 5980: (D, e, p) => { - var w = p(3715), O = p(5427), k = p(953), S = k.assert, a = k.parseBytes, t = p(9087), c = p(3622); + }, 5980: (D, e, h) => { + var w = h(3715), O = h(5427), k = h(953), S = k.assert, a = k.parseBytes, t = h(9087), c = h(3622); function u(s) { if (S(s === "ed25519", "only tested with ed25519 so far"), !(this instanceof u)) return new u(s); @@ -10297,8 +10297,8 @@ Please pass a 2048 word array explicitly.`; } D.exports = u, u.prototype.sign = function(s, r) { s = a(s); - var n = this.keyFromSecret(r), o = this.hashInt(n.messagePrefix(), s), i = this.g.mul(o), f = this.encodePoint(i), d = this.hashInt(f, n.pubBytes(), s).mul(n.priv()), h = o.add(d).umod(this.curve.n); - return this.makeSignature({ R: i, S: h, Rencoded: f }); + var n = this.keyFromSecret(r), o = this.hashInt(n.messagePrefix(), s), i = this.g.mul(o), f = this.encodePoint(i), d = this.hashInt(f, n.pubBytes(), s).mul(n.priv()), p = o.add(d).umod(this.curve.n); + return this.makeSignature({ R: i, S: p, Rencoded: f }); }, u.prototype.verify = function(s, r, n) { s = a(s), r = this.makeSignature(r); var o = this.keyFromPublic(n), i = this.hashInt(r.Rencoded(), o.pubBytes(), s), f = this.g.mul(r.S()); @@ -10326,8 +10326,8 @@ Please pass a 2048 word array explicitly.`; }, u.prototype.isPoint = function(s) { return s instanceof this.pointClass; }; - }, 9087: (D, e, p) => { - var w = p(953), O = w.assert, k = w.parseBytes, S = w.cachedProperty; + }, 9087: (D, e, h) => { + var w = h(953), O = w.assert, k = w.parseBytes, S = w.cachedProperty; function a(t, c) { this.eddsa = t, this._secret = k(c.secret), t.isPoint(c.pub) ? this._pub = c.pub : this._pubBytes = k(c.pub); } @@ -10359,8 +10359,8 @@ Please pass a 2048 word array explicitly.`; }, a.prototype.getPublic = function(t) { return w.encode(this.pubBytes(), t); }, D.exports = a; - }, 3622: (D, e, p) => { - var w = p(3550), O = p(953), k = O.assert, S = O.cachedProperty, a = O.parseBytes; + }, 3622: (D, e, h) => { + var w = h(3550), O = h(953), k = O.assert, S = O.cachedProperty, a = O.parseBytes; function t(c, u) { this.eddsa = c, typeof u != "object" && (u = a(u)), Array.isArray(u) && (u = { R: u.slice(0, c.encodingLength), S: u.slice(c.encodingLength) }), k(u.R && u.S, "Signature without R or S"), c.isPoint(u.R) && (this._R = u.R), u.S instanceof w && (this._S = u.S), this._Rencoded = Array.isArray(u.R) ? u.R : u.Rencoded, this._Sencoded = Array.isArray(u.S) ? u.S : u.Sencoded; } @@ -10379,8 +10379,8 @@ Please pass a 2048 word array explicitly.`; }, D.exports = t; }, 1037: (D) => { D.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"]] } }; - }, 953: (D, e, p) => { - var w = e, O = p(3550), k = p(9746), S = p(4504); + }, 953: (D, e, h) => { + var w = e, O = h(3550), k = h(9746), S = h(4504); w.assert = k, w.toArray = S.toArray, w.zero2 = S.zero2, w.toHex = S.toHex, w.encode = S.encode, w.getNAF = function(a, t, c) { var u = new Array(Math.max(a.bitLength(), c) + 1); u.fill(0); @@ -10407,8 +10407,8 @@ Please pass a 2048 word array explicitly.`; }, w.intFromLE = function(a) { return new O(a, "hex", "le"); }; - }, 7187: (D, e, p) => { - var w, O = p(5108), k = typeof Reflect == "object" ? Reflect : null, S = k && typeof k.apply == "function" ? k.apply : function(_, b, I) { + }, 7187: (D, e, h) => { + var w, O = h(5108), k = typeof Reflect == "object" ? Reflect : null, S = k && typeof k.apply == "function" ? k.apply : function(_, b, I) { return Function.prototype.apply.call(_, b, I); }; w = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(_) { @@ -10430,8 +10430,8 @@ Please pass a 2048 word array explicitly.`; function M() { typeof _.removeListener == "function" && _.removeListener("error", j), I([].slice.call(arguments)); } - h(_, b, M, { once: !0 }), b !== "error" && function(N, C, x) { - typeof N.on == "function" && h(N, "error", C, { once: !0 }); + p(_, b, M, { once: !0 }), b !== "error" && function(N, C, x) { + typeof N.on == "function" && p(N, "error", C, { once: !0 }); }(_, j); }); }, t.EventEmitter = t, t.prototype._events = void 0, t.prototype._eventsCount = 0, t.prototype._maxListeners = void 0; @@ -10489,7 +10489,7 @@ Please pass a 2048 word array explicitly.`; I[l] = _[l]; return I; } - function h(_, b, I, l) { + function p(_, b, I, l) { if (typeof _.on == "function") l.once ? _.once(b, I) : _.on(b, I); else { @@ -10598,8 +10598,8 @@ Please pass a 2048 word array explicitly.`; }, t.prototype.listenerCount = f, t.prototype.eventNames = function() { return this._eventsCount > 0 ? w(this._events) : []; }; - }, 4029: (D, e, p) => { - var w = p(5320), O = Object.prototype.toString, k = Object.prototype.hasOwnProperty; + }, 4029: (D, e, h) => { + var w = h(5320), O = Object.prototype.toString, k = Object.prototype.hasOwnProperty; D.exports = function(S, a, t) { if (!w(a)) throw new TypeError("iterator must be a function"); @@ -10616,7 +10616,7 @@ Please pass a 2048 word array explicitly.`; }(S, a, c); }; }, 7648: (D) => { - var e = Object.prototype.toString, p = Math.max, w = function(O, k) { + var e = Object.prototype.toString, h = Math.max, w = function(O, k) { for (var S = [], a = 0; a < O.length; a += 1) S[a] = O[a]; for (var t = 0; t < k.length; t += 1) @@ -10631,7 +10631,7 @@ Please pass a 2048 word array explicitly.`; for (var o = [], i = 1, f = 0; i < r.length; i += 1, f += 1) o[f] = r[i]; return o; - }(arguments), t = p(0, k.length - a.length), c = [], u = 0; u < t; u++) + }(arguments), t = h(0, k.length - a.length), c = [], u = 0; u < t; u++) c[u] = "$" + u; if (S = Function("binder", "return function (" + function(r, n) { for (var o = "", i = 0; i < r.length; i += 1) @@ -10650,10 +10650,10 @@ Please pass a 2048 word array explicitly.`; } return S; }; - }, 8612: (D, e, p) => { - var w = p(7648); + }, 8612: (D, e, h) => { + var w = h(7648); D.exports = Function.prototype.bind || w; - }, 210: (D, e, p) => { + }, 210: (D, e, h) => { var w, O = SyntaxError, k = Function, S = TypeError, a = function(m) { try { return k('"use strict"; return (' + m + ").constructor;")(); @@ -10678,7 +10678,7 @@ Please pass a 2048 word array explicitly.`; return c; } } - }() : c, s = p(1405)(), r = p(8185)(), n = Object.getPrototypeOf || (r ? function(m) { + }() : c, s = h(1405)(), r = h(8185)(), n = Object.getPrototypeOf || (r ? function(m) { return m.__proto__; } : null), o = {}, i = typeof Uint8Array < "u" && n ? n(Uint8Array) : w, f = { "%AggregateError%": typeof AggregateError > "u" ? w : AggregateError, "%Array%": Array, "%ArrayBuffer%": typeof ArrayBuffer > "u" ? w : ArrayBuffer, "%ArrayIteratorPrototype%": s && n ? n([][Symbol.iterator]()) : w, "%AsyncFromSyncIteratorPrototype%": w, "%AsyncFunction%": o, "%AsyncGenerator%": o, "%AsyncGeneratorFunction%": o, "%AsyncIteratorPrototype%": o, "%Atomics%": typeof Atomics > "u" ? w : Atomics, "%BigInt%": typeof BigInt > "u" ? w : BigInt, "%BigInt64Array%": typeof BigInt64Array > "u" ? w : BigInt64Array, "%BigUint64Array%": typeof BigUint64Array > "u" ? w : BigUint64Array, "%Boolean%": Boolean, "%DataView%": typeof DataView > "u" ? w : DataView, "%Date%": Date, "%decodeURI%": decodeURI, "%decodeURIComponent%": decodeURIComponent, "%encodeURI%": encodeURI, "%encodeURIComponent%": encodeURIComponent, "%Error%": Error, "%eval%": eval, "%EvalError%": EvalError, "%Float32Array%": typeof Float32Array > "u" ? w : Float32Array, "%Float64Array%": typeof Float64Array > "u" ? w : Float64Array, "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? w : FinalizationRegistry, "%Function%": k, "%GeneratorFunction%": o, "%Int8Array%": typeof Int8Array > "u" ? w : Int8Array, "%Int16Array%": typeof Int16Array > "u" ? w : Int16Array, "%Int32Array%": typeof Int32Array > "u" ? w : Int32Array, "%isFinite%": isFinite, "%isNaN%": isNaN, "%IteratorPrototype%": s && n ? n(n([][Symbol.iterator]())) : w, "%JSON%": typeof JSON == "object" ? JSON : w, "%Map%": typeof Map > "u" ? w : Map, "%MapIteratorPrototype%": typeof Map < "u" && s && n ? n((/* @__PURE__ */ new Map())[Symbol.iterator]()) : w, "%Math%": Math, "%Number%": Number, "%Object%": Object, "%parseFloat%": parseFloat, "%parseInt%": parseInt, "%Promise%": typeof Promise > "u" ? w : Promise, "%Proxy%": typeof Proxy > "u" ? w : Proxy, "%RangeError%": RangeError, "%ReferenceError%": ReferenceError, "%Reflect%": typeof Reflect > "u" ? w : Reflect, "%RegExp%": RegExp, "%Set%": typeof Set > "u" ? w : Set, "%SetIteratorPrototype%": typeof Set < "u" && s && n ? n((/* @__PURE__ */ new Set())[Symbol.iterator]()) : w, "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? w : SharedArrayBuffer, "%String%": String, "%StringIteratorPrototype%": s && n ? n(""[Symbol.iterator]()) : w, "%Symbol%": s ? Symbol : w, "%SyntaxError%": O, "%ThrowTypeError%": u, "%TypedArray%": i, "%TypeError%": S, "%Uint8Array%": typeof Uint8Array > "u" ? w : Uint8Array, "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? w : Uint8ClampedArray, "%Uint16Array%": typeof Uint16Array > "u" ? w : Uint16Array, "%Uint32Array%": typeof Uint32Array > "u" ? w : Uint32Array, "%URIError%": URIError, "%WeakMap%": typeof WeakMap > "u" ? w : WeakMap, "%WeakRef%": typeof WeakRef > "u" ? w : WeakRef, "%WeakSet%": typeof WeakSet > "u" ? w : WeakSet }; if (n) @@ -10688,7 +10688,7 @@ Please pass a 2048 word array explicitly.`; var d = n(n(m)); f["%Error.prototype%"] = d; } - var h = function m(E) { + var p = function m(E) { var B; if (E === "%AsyncFunction%") B = a("async function () {}"); @@ -10704,11 +10704,11 @@ Please pass a 2048 word array explicitly.`; q && n && (B = n(q.prototype)); } return f[E] = B, B; - }, _ = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, b = p(8612), I = p(7642), l = b.call(Function.call, Array.prototype.concat), j = b.call(Function.apply, Array.prototype.splice), M = b.call(Function.call, String.prototype.replace), N = b.call(Function.call, String.prototype.slice), C = b.call(Function.call, RegExp.prototype.exec), x = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, v = function(m, E) { + }, _ = { "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, b = h(8612), I = h(7642), l = b.call(Function.call, Array.prototype.concat), j = b.call(Function.apply, Array.prototype.splice), M = b.call(Function.call, String.prototype.replace), N = b.call(Function.call, String.prototype.slice), C = b.call(Function.call, RegExp.prototype.exec), x = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, P = /\\(\\)?/g, v = function(m, E) { var B, T = m; if (I(_, T) && (T = "%" + (B = _[T])[0] + "%"), I(f, T)) { var q = f[T]; - if (q === o && (q = h(T)), q === void 0 && !E) + if (q === o && (q = p(T)), q === void 0 && !E) throw new S("intrinsic " + m + " exists, but is not available. Please file an issue!"); return { alias: B, name: T, value: q }; } @@ -10755,8 +10755,8 @@ Please pass a 2048 word array explicitly.`; } return re; }; - }, 7296: (D, e, p) => { - var w = p(210)("%Object.getOwnPropertyDescriptor%", !0); + }, 7296: (D, e, h) => { + var w = h(210)("%Object.getOwnPropertyDescriptor%", !0); if (w) try { w([], "length"); @@ -10764,8 +10764,8 @@ Please pass a 2048 word array explicitly.`; w = null; } D.exports = w; - }, 1044: (D, e, p) => { - var w = p(210)("%Object.defineProperty%", !0), O = function() { + }, 1044: (D, e, h) => { + var w = h(210)("%Object.defineProperty%", !0), O = function() { if (w) try { return w({}, "a", { value: 1 }), !0; @@ -10784,12 +10784,12 @@ Please pass a 2048 word array explicitly.`; } }, D.exports = O; }, 8185: (D) => { - var e = { foo: {} }, p = Object; + var e = { foo: {} }, h = Object; D.exports = function() { - return { __proto__: e }.foo === e.foo && !({ __proto__: null } instanceof p); + return { __proto__: e }.foo === e.foo && !({ __proto__: null } instanceof h); }; - }, 1405: (D, e, p) => { - var w = typeof Symbol < "u" && Symbol, O = p(5419); + }, 1405: (D, e, h) => { + var w = typeof Symbol < "u" && Symbol, O = h(5419); D.exports = function() { return typeof w == "function" && typeof Symbol == "function" && typeof w("foo") == "symbol" && typeof Symbol("bar") == "symbol" && O(); }; @@ -10799,39 +10799,39 @@ Please pass a 2048 word array explicitly.`; return !1; if (typeof Symbol.iterator == "symbol") return !0; - var e = {}, p = Symbol("test"), w = Object(p); - if (typeof p == "string" || Object.prototype.toString.call(p) !== "[object Symbol]" || Object.prototype.toString.call(w) !== "[object Symbol]") + var e = {}, h = Symbol("test"), w = Object(h); + if (typeof h == "string" || Object.prototype.toString.call(h) !== "[object Symbol]" || Object.prototype.toString.call(w) !== "[object Symbol]") return !1; - for (p in e[p] = 42, e) + for (h in e[h] = 42, e) return !1; if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) return !1; var O = Object.getOwnPropertySymbols(e); - if (O.length !== 1 || O[0] !== p || !Object.prototype.propertyIsEnumerable.call(e, p)) + if (O.length !== 1 || O[0] !== h || !Object.prototype.propertyIsEnumerable.call(e, h)) return !1; if (typeof Object.getOwnPropertyDescriptor == "function") { - var k = Object.getOwnPropertyDescriptor(e, p); + var k = Object.getOwnPropertyDescriptor(e, h); if (k.value !== 42 || k.enumerable !== !0) return !1; } return !0; }; - }, 6410: (D, e, p) => { - var w = p(5419); + }, 6410: (D, e, h) => { + var w = h(5419); D.exports = function() { return w() && !!Symbol.toStringTag; }; }, 7642: (D) => { - var e = {}.hasOwnProperty, p = Function.prototype.call; - D.exports = p.bind ? p.bind(e) : function(w, O) { - return p.call(e, w, O); + var e = {}.hasOwnProperty, h = Function.prototype.call; + D.exports = h.bind ? h.bind(e) : function(w, O) { + return h.call(e, w, O); }; - }, 3349: (D, e, p) => { - var w = p(9509).Buffer, O = p(8473).Transform; + }, 3349: (D, e, h) => { + var w = h(9509).Buffer, O = h(8473).Transform; function k(S) { O.call(this), this._block = w.allocUnsafe(S), this._blockSize = S, this._blockOffset = 0, this._length = [0, 0, 0, 0], this._finalized = !1; } - p(5717)(k, O), k.prototype._transform = function(S, a, t) { + h(5717)(k, O), k.prototype._transform = function(S, a, t) { var c = null; try { this.update(S, a); @@ -10878,11 +10878,11 @@ Please pass a 2048 word array explicitly.`; }, k.prototype._digest = function() { throw new Error("_digest is not implemented"); }, D.exports = k; - }, 3715: (D, e, p) => { + }, 3715: (D, e, h) => { var w = e; - w.utils = p(6436), w.common = p(5772), w.sha = p(9041), w.ripemd = p(2949), w.hmac = p(2344), w.sha1 = w.sha.sha1, w.sha256 = w.sha.sha256, w.sha224 = w.sha.sha224, w.sha384 = w.sha.sha384, w.sha512 = w.sha.sha512, w.ripemd160 = w.ripemd.ripemd160; - }, 5772: (D, e, p) => { - var w = p(6436), O = p(9746); + w.utils = h(6436), w.common = h(5772), w.sha = h(9041), w.ripemd = h(2949), w.hmac = h(2344), w.sha1 = w.sha.sha1, w.sha256 = w.sha.sha256, w.sha224 = w.sha.sha224, w.sha384 = w.sha.sha384, w.sha512 = w.sha.sha512, w.ripemd160 = w.ripemd.ripemd160; + }, 5772: (D, e, h) => { + var w = h(6436), O = h(9746); function k() { 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; } @@ -10910,8 +10910,8 @@ Please pass a 2048 word array explicitly.`; c[u++] = 0; return c; }; - }, 2344: (D, e, p) => { - var w = p(6436), O = p(9746); + }, 2344: (D, e, h) => { + var w = h(6436), O = h(9746); function k(S, a, t) { if (!(this instanceof k)) return new k(S, a, t); @@ -10931,36 +10931,36 @@ Please pass a 2048 word array explicitly.`; }, k.prototype.digest = function(S) { return this.outer.update(this.inner.digest()), this.outer.digest(S); }; - }, 2949: (D, e, p) => { - var w = p(6436), O = p(5772), k = w.rotl32, S = w.sum32, a = w.sum32_3, t = w.sum32_4, c = O.BlockHash; + }, 2949: (D, e, h) => { + var w = h(6436), O = h(5772), k = w.rotl32, S = w.sum32, a = w.sum32_3, t = w.sum32_4, c = O.BlockHash; function u() { if (!(this instanceof u)) return new u(); c.call(this), this.h = [1732584193, 4023233417, 2562383102, 271733878, 3285377520], this.endian = "little"; } - function s(h, _, b, I) { - return h <= 15 ? _ ^ b ^ I : h <= 31 ? _ & b | ~_ & I : h <= 47 ? (_ | ~b) ^ I : h <= 63 ? _ & I | b & ~I : _ ^ (b | ~I); + function s(p, _, b, I) { + return p <= 15 ? _ ^ b ^ I : p <= 31 ? _ & b | ~_ & I : p <= 47 ? (_ | ~b) ^ I : p <= 63 ? _ & I | b & ~I : _ ^ (b | ~I); } - function r(h) { - return h <= 15 ? 0 : h <= 31 ? 1518500249 : h <= 47 ? 1859775393 : h <= 63 ? 2400959708 : 2840853838; + function r(p) { + return p <= 15 ? 0 : p <= 31 ? 1518500249 : p <= 47 ? 1859775393 : p <= 63 ? 2400959708 : 2840853838; } - function n(h) { - return h <= 15 ? 1352829926 : h <= 31 ? 1548603684 : h <= 47 ? 1836072691 : h <= 63 ? 2053994217 : 0; + function n(p) { + return p <= 15 ? 1352829926 : p <= 31 ? 1548603684 : p <= 47 ? 1836072691 : p <= 63 ? 2053994217 : 0; } - w.inherits(u, c), e.ripemd160 = u, u.blockSize = 512, u.outSize = 160, u.hmacStrength = 192, u.padLength = 64, u.prototype._update = function(h, _) { + w.inherits(u, c), e.ripemd160 = u, u.blockSize = 512, u.outSize = 160, u.hmacStrength = 192, u.padLength = 64, u.prototype._update = function(p, _) { for (var b = this.h[0], I = this.h[1], l = this.h[2], j = this.h[3], M = this.h[4], N = b, C = I, x = l, P = j, v = M, m = 0; m < 80; m++) { - var E = S(k(t(b, s(m, I, l, j), h[o[m] + _], r(m)), f[m]), M); - b = M, M = j, j = k(l, 10), l = I, I = E, E = S(k(t(N, s(79 - m, C, x, P), h[i[m] + _], n(m)), d[m]), v), N = v, v = P, P = k(x, 10), x = C, C = E; + var E = S(k(t(b, s(m, I, l, j), p[o[m] + _], r(m)), f[m]), M); + b = M, M = j, j = k(l, 10), l = I, I = E, E = S(k(t(N, s(79 - m, C, x, P), p[i[m] + _], n(m)), d[m]), v), N = v, v = P, P = k(x, 10), x = C, C = E; } E = a(this.h[1], l, P), this.h[1] = a(this.h[2], j, v), this.h[2] = a(this.h[3], M, N), this.h[3] = a(this.h[4], b, C), this.h[4] = a(this.h[0], I, x), this.h[0] = E; - }, u.prototype._digest = function(h) { - return h === "hex" ? w.toHex32(this.h, "little") : w.split32(this.h, "little"); + }, u.prototype._digest = function(p) { + return p === "hex" ? w.toHex32(this.h, "little") : w.split32(this.h, "little"); }; var o = [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], i = [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], f = [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], d = [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]; - }, 9041: (D, e, p) => { - e.sha1 = p(4761), e.sha224 = p(799), e.sha256 = p(9344), e.sha384 = p(772), e.sha512 = p(5900); - }, 4761: (D, e, p) => { - var w = p(6436), O = p(5772), k = p(7038), S = w.rotl32, a = w.sum32, t = w.sum32_5, c = k.ft_1, u = O.BlockHash, s = [1518500249, 1859775393, 2400959708, 3395469782]; + }, 9041: (D, e, h) => { + e.sha1 = h(4761), e.sha224 = h(799), e.sha256 = h(9344), e.sha384 = h(772), e.sha512 = h(5900); + }, 4761: (D, e, h) => { + var w = h(6436), O = h(5772), k = h(7038), S = w.rotl32, a = w.sum32, t = w.sum32_5, c = k.ft_1, u = O.BlockHash, s = [1518500249, 1859775393, 2400959708, 3395469782]; function r() { if (!(this instanceof r)) return new r(); @@ -10971,17 +10971,17 @@ Please pass a 2048 word array explicitly.`; i[f] = n[o + f]; for (; f < i.length; f++) i[f] = S(i[f - 3] ^ i[f - 8] ^ i[f - 14] ^ i[f - 16], 1); - var d = this.h[0], h = this.h[1], _ = this.h[2], b = this.h[3], I = this.h[4]; + var d = this.h[0], p = this.h[1], _ = this.h[2], b = this.h[3], I = this.h[4]; for (f = 0; f < i.length; f++) { - var l = ~~(f / 20), j = t(S(d, 5), c(l, h, _, b), I, i[f], s[l]); - I = b, b = _, _ = S(h, 30), h = d, d = j; + var l = ~~(f / 20), j = t(S(d, 5), c(l, p, _, b), I, i[f], s[l]); + I = b, b = _, _ = S(p, 30), p = d, d = j; } - this.h[0] = a(this.h[0], d), this.h[1] = a(this.h[1], h), this.h[2] = a(this.h[2], _), this.h[3] = a(this.h[3], b), this.h[4] = a(this.h[4], I); + this.h[0] = a(this.h[0], d), this.h[1] = a(this.h[1], p), this.h[2] = a(this.h[2], _), this.h[3] = a(this.h[3], b), this.h[4] = a(this.h[4], I); }, r.prototype._digest = function(n) { return n === "hex" ? w.toHex32(this.h, "big") : w.split32(this.h, "big"); }; - }, 799: (D, e, p) => { - var w = p(6436), O = p(9344); + }, 799: (D, e, h) => { + var w = h(6436), O = h(9344); function k() { if (!(this instanceof k)) return new k(); @@ -10990,14 +10990,14 @@ Please pass a 2048 word array explicitly.`; w.inherits(k, O), D.exports = k, k.blockSize = 512, k.outSize = 224, k.hmacStrength = 192, k.padLength = 64, k.prototype._digest = function(S) { return S === "hex" ? w.toHex32(this.h.slice(0, 7), "big") : w.split32(this.h.slice(0, 7), "big"); }; - }, 9344: (D, e, p) => { - var w = p(6436), O = p(5772), k = p(7038), S = p(9746), a = w.sum32, t = w.sum32_4, c = w.sum32_5, u = k.ch32, s = k.maj32, r = k.s0_256, n = k.s1_256, o = k.g0_256, i = k.g1_256, f = O.BlockHash, d = [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 h() { - if (!(this instanceof h)) - return new h(); + }, 9344: (D, e, h) => { + var w = h(6436), O = h(5772), k = h(7038), S = h(9746), a = w.sum32, t = w.sum32_4, c = w.sum32_5, u = k.ch32, s = k.maj32, r = k.s0_256, n = k.s1_256, o = k.g0_256, i = k.g1_256, f = O.BlockHash, d = [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 p() { + if (!(this instanceof p)) + return new p(); f.call(this), this.h = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225], this.k = d, this.W = new Array(64); } - w.inherits(h, f), D.exports = h, h.blockSize = 512, h.outSize = 256, h.hmacStrength = 192, h.padLength = 64, h.prototype._update = function(_, b) { + w.inherits(p, f), D.exports = p, p.blockSize = 512, p.outSize = 256, p.hmacStrength = 192, p.padLength = 64, p.prototype._update = function(_, b) { for (var I = this.W, l = 0; l < 16; l++) I[l] = _[b + l]; for (; l < I.length; l++) @@ -11008,11 +11008,11 @@ Please pass a 2048 word array explicitly.`; m = v, v = P, P = x, x = a(C, E), C = N, N = M, M = j, j = a(E, B); } this.h[0] = a(this.h[0], j), this.h[1] = a(this.h[1], M), this.h[2] = a(this.h[2], N), this.h[3] = a(this.h[3], C), this.h[4] = a(this.h[4], x), this.h[5] = a(this.h[5], P), this.h[6] = a(this.h[6], v), this.h[7] = a(this.h[7], m); - }, h.prototype._digest = function(_) { + }, p.prototype._digest = function(_) { return _ === "hex" ? w.toHex32(this.h, "big") : w.split32(this.h, "big"); }; - }, 772: (D, e, p) => { - var w = p(6436), O = p(5900); + }, 772: (D, e, h) => { + var w = h(6436), O = h(5900); function k() { if (!(this instanceof k)) return new k(); @@ -11021,12 +11021,12 @@ Please pass a 2048 word array explicitly.`; w.inherits(k, O), D.exports = k, k.blockSize = 1024, k.outSize = 384, k.hmacStrength = 192, k.padLength = 128, k.prototype._digest = function(S) { return S === "hex" ? w.toHex32(this.h.slice(0, 12), "big") : w.split32(this.h.slice(0, 12), "big"); }; - }, 5900: (D, e, p) => { - var w = p(6436), O = p(5772), k = p(9746), S = w.rotr64_hi, a = w.rotr64_lo, t = w.shr64_hi, c = w.shr64_lo, u = w.sum64, s = w.sum64_hi, r = w.sum64_lo, n = w.sum64_4_hi, o = w.sum64_4_lo, i = w.sum64_5_hi, f = w.sum64_5_lo, d = O.BlockHash, h = [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, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591]; + }, 5900: (D, e, h) => { + var w = h(6436), O = h(5772), k = h(9746), S = w.rotr64_hi, a = w.rotr64_lo, t = w.shr64_hi, c = w.shr64_lo, u = w.sum64, s = w.sum64_hi, r = w.sum64_lo, n = w.sum64_4_hi, o = w.sum64_4_lo, i = w.sum64_5_hi, f = w.sum64_5_lo, d = O.BlockHash, p = [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, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591]; function _() { if (!(this instanceof _)) return new _(); - d.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = h, this.W = new Array(160); + d.call(this), this.h = [1779033703, 4089235720, 3144134277, 2227873595, 1013904242, 4271175723, 2773480762, 1595750129, 1359893119, 2917565137, 2600822924, 725511199, 528734635, 4215389547, 1541459225, 327033209], this.k = p, this.W = new Array(160); } function b(m, E, B, T, q) { var te = m & B ^ ~m & q; @@ -11090,8 +11090,8 @@ Please pass a 2048 word array explicitly.`; }, _.prototype._digest = function(m) { return m === "hex" ? w.toHex32(this.h, "big") : w.split32(this.h, "big"); }; - }, 7038: (D, e, p) => { - var w = p(6436).rotr32; + }, 7038: (D, e, h) => { + var w = h(6436).rotr32; function O(a, t, c) { return a & t ^ ~a & c; } @@ -11112,8 +11112,8 @@ Please pass a 2048 word array explicitly.`; }, e.g1_256 = function(a) { return w(a, 17) ^ w(a, 19) ^ a >>> 10; }; - }, 6436: (D, e, p) => { - var w = p(9746), O = p(5717); + }, 6436: (D, e, h) => { + var w = h(9746), O = h(5717); function k(c, u) { return (64512 & c.charCodeAt(u)) == 55296 && !(u < 0 || u + 1 >= c.length) && (64512 & c.charCodeAt(u + 1)) == 56320; } @@ -11190,15 +11190,15 @@ Please pass a 2048 word array explicitly.`; }, e.sum64_lo = function(c, u, s, r) { return u + r >>> 0; }, e.sum64_4_hi = function(c, u, s, r, n, o, i, f) { - var d = 0, h = u; - return d += (h = h + r >>> 0) < u ? 1 : 0, d += (h = h + o >>> 0) < o ? 1 : 0, c + s + n + i + (d += (h = h + f >>> 0) < f ? 1 : 0) >>> 0; + var d = 0, p = u; + return d += (p = p + r >>> 0) < u ? 1 : 0, d += (p = p + o >>> 0) < o ? 1 : 0, c + s + n + i + (d += (p = p + f >>> 0) < f ? 1 : 0) >>> 0; }, e.sum64_4_lo = function(c, u, s, r, n, o, i, f) { return u + r + o + f >>> 0; - }, e.sum64_5_hi = function(c, u, s, r, n, o, i, f, d, h) { + }, e.sum64_5_hi = function(c, u, s, r, n, o, i, f, d, p) { var _ = 0, b = u; - return _ += (b = b + r >>> 0) < u ? 1 : 0, _ += (b = b + o >>> 0) < o ? 1 : 0, _ += (b = b + f >>> 0) < f ? 1 : 0, c + s + n + i + d + (_ += (b = b + h >>> 0) < h ? 1 : 0) >>> 0; - }, e.sum64_5_lo = function(c, u, s, r, n, o, i, f, d, h) { - return u + r + o + f + h >>> 0; + return _ += (b = b + r >>> 0) < u ? 1 : 0, _ += (b = b + o >>> 0) < o ? 1 : 0, _ += (b = b + f >>> 0) < f ? 1 : 0, c + s + n + i + d + (_ += (b = b + p >>> 0) < p ? 1 : 0) >>> 0; + }, e.sum64_5_lo = function(c, u, s, r, n, o, i, f, d, p) { + return u + r + o + f + p >>> 0; }, e.rotr64_hi = function(c, u, s) { return (u << 32 - s | c >>> s) >>> 0; }, e.rotr64_lo = function(c, u, s) { @@ -11208,8 +11208,8 @@ Please pass a 2048 word array explicitly.`; }, e.shr64_lo = function(c, u, s) { return (c << 32 - s | u >>> s) >>> 0; }; - }, 2156: (D, e, p) => { - var w = p(3715), O = p(4504), k = p(9746); + }, 2156: (D, e, h) => { + var w = h(3715), O = h(4504), k = h(9746); function S(a) { if (!(this instanceof S)) return new S(a); @@ -11240,11 +11240,11 @@ Please pass a 2048 word array explicitly.`; return this._update(c), this._reseed++, O.encode(r, t); }; }, 645: (D, e) => { - e.read = function(p, w, O, k, S) { - var a, t, c = 8 * S - k - 1, u = (1 << c) - 1, s = u >> 1, r = -7, n = O ? S - 1 : 0, o = O ? -1 : 1, i = p[w + n]; - for (n += o, a = i & (1 << -r) - 1, i >>= -r, r += c; r > 0; a = 256 * a + p[w + n], n += o, r -= 8) + e.read = function(h, w, O, k, S) { + var a, t, c = 8 * S - k - 1, u = (1 << c) - 1, s = u >> 1, r = -7, n = O ? S - 1 : 0, o = O ? -1 : 1, i = h[w + n]; + for (n += o, a = i & (1 << -r) - 1, i >>= -r, r += c; r > 0; a = 256 * a + h[w + n], n += o, r -= 8) ; - for (t = a & (1 << -r) - 1, a >>= -r, r += k; r > 0; t = 256 * t + p[w + n], n += o, r -= 8) + for (t = a & (1 << -r) - 1, a >>= -r, r += k; r > 0; t = 256 * t + h[w + n], n += o, r -= 8) ; if (a === 0) a = 1 - s; @@ -11254,27 +11254,27 @@ Please pass a 2048 word array explicitly.`; t += Math.pow(2, k), a -= s; } return (i ? -1 : 1) * t * Math.pow(2, a - k); - }, e.write = function(p, w, O, k, S, a) { + }, e.write = function(h, w, O, k, S, a) { var t, c, u, s = 8 * a - S - 1, r = (1 << s) - 1, n = r >> 1, o = S === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, i = k ? 0 : a - 1, f = k ? 1 : -1, d = w < 0 || w === 0 && 1 / w < 0 ? 1 : 0; - for (w = Math.abs(w), isNaN(w) || w === 1 / 0 ? (c = isNaN(w) ? 1 : 0, t = r) : (t = Math.floor(Math.log(w) / Math.LN2), w * (u = Math.pow(2, -t)) < 1 && (t--, u *= 2), (w += t + n >= 1 ? o / u : o * Math.pow(2, 1 - n)) * u >= 2 && (t++, u /= 2), t + n >= r ? (c = 0, t = r) : t + n >= 1 ? (c = (w * u - 1) * Math.pow(2, S), t += n) : (c = w * Math.pow(2, n - 1) * Math.pow(2, S), t = 0)); S >= 8; p[O + i] = 255 & c, i += f, c /= 256, S -= 8) + for (w = Math.abs(w), isNaN(w) || w === 1 / 0 ? (c = isNaN(w) ? 1 : 0, t = r) : (t = Math.floor(Math.log(w) / Math.LN2), w * (u = Math.pow(2, -t)) < 1 && (t--, u *= 2), (w += t + n >= 1 ? o / u : o * Math.pow(2, 1 - n)) * u >= 2 && (t++, u /= 2), t + n >= r ? (c = 0, t = r) : t + n >= 1 ? (c = (w * u - 1) * Math.pow(2, S), t += n) : (c = w * Math.pow(2, n - 1) * Math.pow(2, S), t = 0)); S >= 8; h[O + i] = 255 & c, i += f, c /= 256, S -= 8) ; - for (t = t << S | c, s += S; s > 0; p[O + i] = 255 & t, i += f, t /= 256, s -= 8) + for (t = t << S | c, s += S; s > 0; h[O + i] = 255 & t, i += f, t /= 256, s -= 8) ; - p[O + i - f] |= 128 * d; + h[O + i - f] |= 128 * d; }; }, 5717: (D) => { - typeof Object.create == "function" ? D.exports = function(e, p) { - p && (e.super_ = p, e.prototype = Object.create(p.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } })); - } : D.exports = function(e, p) { - if (p) { - e.super_ = p; + typeof Object.create == "function" ? D.exports = function(e, h) { + h && (e.super_ = h, e.prototype = Object.create(h.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } })); + } : D.exports = function(e, h) { + if (h) { + e.super_ = h; var w = function() { }; - w.prototype = p.prototype, e.prototype = new w(), e.prototype.constructor = e; + w.prototype = h.prototype, e.prototype = new w(), e.prototype.constructor = e; } }; - }, 2584: (D, e, p) => { - var w = p(6410)(), O = p(1924)("Object.prototype.toString"), k = function(t) { + }, 2584: (D, e, h) => { + var w = h(6410)(), O = h(1924)("Object.prototype.toString"), k = function(t) { return !(w && t && typeof t == "object" && Symbol.toStringTag in t) && O(t) === "[object Arguments]"; }, S = function(t) { return !!k(t) || t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && O(t) !== "[object Array]" && O(t.callee) === "[object Function]"; @@ -11283,16 +11283,16 @@ Please pass a 2048 word array explicitly.`; }(); k.isLegacyArguments = S, D.exports = a ? k : S; }, 5320: (D) => { - var e, p, w = Function.prototype.toString, O = typeof Reflect == "object" && Reflect !== null && Reflect.apply; + var e, h, w = Function.prototype.toString, O = typeof Reflect == "object" && Reflect !== null && Reflect.apply; if (typeof O == "function" && typeof Object.defineProperty == "function") try { e = Object.defineProperty({}, "length", { get: function() { - throw p; - } }), p = {}, O(function() { + throw h; + } }), h = {}, O(function() { throw 42; }, null, e); } catch (n) { - n !== p && (O = null); + n !== h && (O = null); } else O = null; @@ -11332,7 +11332,7 @@ Please pass a 2048 word array explicitly.`; try { O(n, null, e); } catch (o) { - if (o !== p) + if (o !== h) return !1; } return !S(n) && a(n); @@ -11348,8 +11348,8 @@ Please pass a 2048 word array explicitly.`; var o = t.call(n); return !(o !== "[object Function]" && o !== "[object GeneratorFunction]" && !/^\[object HTML/.test(o)) && a(n); }; - }, 8662: (D, e, p) => { - var w, O = Object.prototype.toString, k = Function.prototype.toString, S = /^\s*(?:function)?\*/, a = p(6410)(), t = Object.getPrototypeOf; + }, 8662: (D, e, h) => { + var w, O = Object.prototype.toString, k = Function.prototype.toString, S = /^\s*(?:function)?\*/, a = h(6410)(), t = Object.getPrototypeOf; D.exports = function(c) { if (typeof c != "function") return !1; @@ -11376,41 +11376,41 @@ Please pass a 2048 word array explicitly.`; D.exports = function(e) { return e != e; }; - }, 360: (D, e, p) => { - var w = p(5559), O = p(4289), k = p(8611), S = p(9415), a = p(3194), t = w(S(), Number); + }, 360: (D, e, h) => { + var w = h(5559), O = h(4289), k = h(8611), S = h(9415), a = h(3194), t = w(S(), Number); O(t, { getPolyfill: S, implementation: k, shim: a }), D.exports = t; - }, 9415: (D, e, p) => { - var w = p(8611); + }, 9415: (D, e, h) => { + var w = h(8611); D.exports = function() { return Number.isNaN && Number.isNaN(NaN) && !Number.isNaN("a") ? Number.isNaN : w; }; - }, 3194: (D, e, p) => { - var w = p(4289), O = p(9415); + }, 3194: (D, e, h) => { + var w = h(4289), O = h(9415); D.exports = function() { var k = O(); return w(Number, { isNaN: k }, { isNaN: function() { return Number.isNaN !== k; } }), k; }; - }, 5692: (D, e, p) => { - var w = p(6430); + }, 5692: (D, e, h) => { + var w = h(6430); D.exports = function(O) { return !!w(O); }; }, 3720: (D) => { - D.exports = p; + D.exports = h; var e = null; try { e = 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 { } - function p(N, C, x) { + function h(N, C, x) { this.low = 0 | N, this.high = 0 | C, this.unsigned = !!x; } function w(N) { return (N && N.__isLong__) === !0; } - p.prototype.__isLong__, Object.defineProperty(p.prototype, "__isLong__", { value: !0 }), p.isLong = w; + h.prototype.__isLong__, Object.defineProperty(h.prototype, "__isLong__", { value: !0 }), h.isLong = w; var O = {}, k = {}; function S(N, C) { var x, P, v; @@ -11433,9 +11433,9 @@ Please pass a 2048 word array explicitly.`; return N < 0 ? a(-N, C).neg() : t(N % r | 0, N / r | 0, C); } function t(N, C, x) { - return new p(N, C, x); + return new h(N, C, x); } - p.fromInt = S, p.fromNumber = a, p.fromBits = t; + h.fromInt = S, h.fromNumber = a, h.fromBits = t; var c = Math.pow; function u(N, C, x) { if (N.length === 0) @@ -11462,24 +11462,24 @@ Please pass a 2048 word array explicitly.`; function s(N, C) { return typeof N == "number" ? a(N, C) : typeof N == "string" ? u(N, C) : t(N.low, N.high, typeof C == "boolean" ? C : N.unsigned); } - p.fromString = u, p.fromValue = s; + h.fromString = u, h.fromValue = s; var r = 4294967296, n = r * r, o = n / 2, i = S(1 << 24), f = S(0); - p.ZERO = f; + h.ZERO = f; var d = S(0, !0); - p.UZERO = d; - var h = S(1); - p.ONE = h; + h.UZERO = d; + var p = S(1); + h.ONE = p; var _ = S(1, !0); - p.UONE = _; + h.UONE = _; var b = S(-1); - p.NEG_ONE = b; + h.NEG_ONE = b; var I = t(-1, 2147483647, !1); - p.MAX_VALUE = I; + h.MAX_VALUE = I; var l = t(-1, -1, !0); - p.MAX_UNSIGNED_VALUE = l; + h.MAX_UNSIGNED_VALUE = l; var j = t(0, -2147483648, !1); - p.MIN_VALUE = j; - var M = p.prototype; + h.MIN_VALUE = j; + var M = h.prototype; M.toInt = function() { return this.unsigned ? this.low >>> 0 : this.low; }, M.toNumber = function() { @@ -11546,7 +11546,7 @@ Please pass a 2048 word array explicitly.`; var C = this.isNegative(), x = N.isNegative(); return C && !x ? -1 : !C && x ? 1 : this.unsigned ? N.high >>> 0 > this.high >>> 0 || N.high === this.high && N.low >>> 0 > this.low >>> 0 ? -1 : 1 : this.sub(N).isNegative() ? -1 : 1; }, M.comp = M.compare, M.negate = function() { - return !this.unsigned && this.eq(j) ? j : this.not().add(h); + return !this.unsigned && this.eq(j) ? j : this.not().add(p); }, M.neg = M.negate, M.add = function(N) { w(N) || (N = s(N)); var C = this.high >>> 16, x = 65535 & this.high, P = this.low >>> 16, v = 65535 & this.low, m = N.high >>> 16, E = 65535 & N.high, B = N.low >>> 16, T = 0, q = 0, te = 0, re = 0; @@ -11588,7 +11588,7 @@ Please pass a 2048 word array explicitly.`; P = d; } else { if (this.eq(j)) - return N.eq(h) || N.eq(b) ? j : N.eq(j) ? h : (C = this.shr(1).div(N).shl(1)).eq(f) ? N.isNegative() ? h : b : (x = this.sub(N.mul(C)), P = C.add(x.div(N))); + return N.eq(p) || N.eq(b) ? j : N.eq(j) ? p : (C = this.shr(1).div(N).shl(1)).eq(f) ? N.isNegative() ? p : b : (x = this.sub(N.mul(C)), P = C.add(x.div(N))); if (N.eq(j)) return this.unsigned ? d : f; if (this.isNegative()) @@ -11601,7 +11601,7 @@ Please pass a 2048 word array explicitly.`; C = Math.max(1, Math.floor(x.toNumber() / N.toNumber())); for (var v = Math.ceil(Math.log(C) / Math.LN2), m = v <= 48 ? 1 : c(2, v - 48), E = a(C), B = E.mul(N); B.isNegative() || B.gt(x); ) B = (E = a(C -= m, this.unsigned)).mul(N); - E.isZero() && (E = h), P = P.add(E), x = x.sub(B); + E.isZero() && (E = p), P = P.add(E), x = x.sub(B); } return P; }, M.div = M.divide, M.modulo = function(N) { @@ -11635,54 +11635,54 @@ Please pass a 2048 word array explicitly.`; }, M.toBytesBE = function() { var N = this.high, C = this.low; return [N >>> 24, N >>> 16 & 255, N >>> 8 & 255, 255 & N, C >>> 24, C >>> 16 & 255, C >>> 8 & 255, 255 & C]; - }, p.fromBytes = function(N, C, x) { - return x ? p.fromBytesLE(N, C) : p.fromBytesBE(N, C); - }, p.fromBytesLE = function(N, C) { - return new p(N[0] | N[1] << 8 | N[2] << 16 | N[3] << 24, N[4] | N[5] << 8 | N[6] << 16 | N[7] << 24, C); - }, p.fromBytesBE = function(N, C) { - return new p(N[4] << 24 | N[5] << 16 | N[6] << 8 | N[7], N[0] << 24 | N[1] << 16 | N[2] << 8 | N[3], C); - }; - }, 2318: (D, e, p) => { - var w = p(5717), O = p(3349), k = p(9509).Buffer, S = new Array(16); + }, h.fromBytes = function(N, C, x) { + return x ? h.fromBytesLE(N, C) : h.fromBytesBE(N, C); + }, h.fromBytesLE = function(N, C) { + return new h(N[0] | N[1] << 8 | N[2] << 16 | N[3] << 24, N[4] | N[5] << 8 | N[6] << 16 | N[7] << 24, C); + }, h.fromBytesBE = function(N, C) { + return new h(N[4] << 24 | N[5] << 16 | N[6] << 8 | N[7], N[0] << 24 | N[1] << 16 | N[2] << 8 | N[3], C); + }; + }, 2318: (D, e, h) => { + var w = h(5717), O = h(3349), k = h(9509).Buffer, S = new Array(16); function a() { O.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878; } function t(n, o) { return n << o | n >>> 32 - o; } - function c(n, o, i, f, d, h, _) { - return t(n + (o & i | ~o & f) + d + h | 0, _) + o | 0; + function c(n, o, i, f, d, p, _) { + return t(n + (o & i | ~o & f) + d + p | 0, _) + o | 0; } - function u(n, o, i, f, d, h, _) { - return t(n + (o & f | i & ~f) + d + h | 0, _) + o | 0; + function u(n, o, i, f, d, p, _) { + return t(n + (o & f | i & ~f) + d + p | 0, _) + o | 0; } - function s(n, o, i, f, d, h, _) { - return t(n + (o ^ i ^ f) + d + h | 0, _) + o | 0; + function s(n, o, i, f, d, p, _) { + return t(n + (o ^ i ^ f) + d + p | 0, _) + o | 0; } - function r(n, o, i, f, d, h, _) { - return t(n + (i ^ (o | ~f)) + d + h | 0, _) + o | 0; + function r(n, o, i, f, d, p, _) { + return t(n + (i ^ (o | ~f)) + d + p | 0, _) + o | 0; } w(a, O), a.prototype._update = function() { for (var n = S, o = 0; o < 16; ++o) n[o] = this._block.readInt32LE(4 * o); - var i = this._a, f = this._b, d = this._c, h = this._d; - i = c(i, f, d, h, n[0], 3614090360, 7), h = c(h, i, f, d, n[1], 3905402710, 12), d = c(d, h, i, f, n[2], 606105819, 17), f = c(f, d, h, i, n[3], 3250441966, 22), i = c(i, f, d, h, n[4], 4118548399, 7), h = c(h, i, f, d, n[5], 1200080426, 12), d = c(d, h, i, f, n[6], 2821735955, 17), f = c(f, d, h, i, n[7], 4249261313, 22), i = c(i, f, d, h, n[8], 1770035416, 7), h = c(h, i, f, d, n[9], 2336552879, 12), d = c(d, h, i, f, n[10], 4294925233, 17), f = c(f, d, h, i, n[11], 2304563134, 22), i = c(i, f, d, h, n[12], 1804603682, 7), h = c(h, i, f, d, n[13], 4254626195, 12), d = c(d, h, i, f, n[14], 2792965006, 17), i = u(i, f = c(f, d, h, i, n[15], 1236535329, 22), d, h, n[1], 4129170786, 5), h = u(h, i, f, d, n[6], 3225465664, 9), d = u(d, h, i, f, n[11], 643717713, 14), f = u(f, d, h, i, n[0], 3921069994, 20), i = u(i, f, d, h, n[5], 3593408605, 5), h = u(h, i, f, d, n[10], 38016083, 9), d = u(d, h, i, f, n[15], 3634488961, 14), f = u(f, d, h, i, n[4], 3889429448, 20), i = u(i, f, d, h, n[9], 568446438, 5), h = u(h, i, f, d, n[14], 3275163606, 9), d = u(d, h, i, f, n[3], 4107603335, 14), f = u(f, d, h, i, n[8], 1163531501, 20), i = u(i, f, d, h, n[13], 2850285829, 5), h = u(h, i, f, d, n[2], 4243563512, 9), d = u(d, h, i, f, n[7], 1735328473, 14), i = s(i, f = u(f, d, h, i, n[12], 2368359562, 20), d, h, n[5], 4294588738, 4), h = s(h, i, f, d, n[8], 2272392833, 11), d = s(d, h, i, f, n[11], 1839030562, 16), f = s(f, d, h, i, n[14], 4259657740, 23), i = s(i, f, d, h, n[1], 2763975236, 4), h = s(h, i, f, d, n[4], 1272893353, 11), d = s(d, h, i, f, n[7], 4139469664, 16), f = s(f, d, h, i, n[10], 3200236656, 23), i = s(i, f, d, h, n[13], 681279174, 4), h = s(h, i, f, d, n[0], 3936430074, 11), d = s(d, h, i, f, n[3], 3572445317, 16), f = s(f, d, h, i, n[6], 76029189, 23), i = s(i, f, d, h, n[9], 3654602809, 4), h = s(h, i, f, d, n[12], 3873151461, 11), d = s(d, h, i, f, n[15], 530742520, 16), i = r(i, f = s(f, d, h, i, n[2], 3299628645, 23), d, h, n[0], 4096336452, 6), h = r(h, i, f, d, n[7], 1126891415, 10), d = r(d, h, i, f, n[14], 2878612391, 15), f = r(f, d, h, i, n[5], 4237533241, 21), i = r(i, f, d, h, n[12], 1700485571, 6), h = r(h, i, f, d, n[3], 2399980690, 10), d = r(d, h, i, f, n[10], 4293915773, 15), f = r(f, d, h, i, n[1], 2240044497, 21), i = r(i, f, d, h, n[8], 1873313359, 6), h = r(h, i, f, d, n[15], 4264355552, 10), d = r(d, h, i, f, n[6], 2734768916, 15), f = r(f, d, h, i, n[13], 1309151649, 21), i = r(i, f, d, h, n[4], 4149444226, 6), h = r(h, i, f, d, n[11], 3174756917, 10), d = r(d, h, i, f, n[2], 718787259, 15), f = r(f, d, h, i, n[9], 3951481745, 21), this._a = this._a + i | 0, this._b = this._b + f | 0, this._c = this._c + d | 0, this._d = this._d + h | 0; + var i = this._a, f = this._b, d = this._c, p = this._d; + i = c(i, f, d, p, n[0], 3614090360, 7), p = c(p, i, f, d, n[1], 3905402710, 12), d = c(d, p, i, f, n[2], 606105819, 17), f = c(f, d, p, i, n[3], 3250441966, 22), i = c(i, f, d, p, n[4], 4118548399, 7), p = c(p, i, f, d, n[5], 1200080426, 12), d = c(d, p, i, f, n[6], 2821735955, 17), f = c(f, d, p, i, n[7], 4249261313, 22), i = c(i, f, d, p, n[8], 1770035416, 7), p = c(p, i, f, d, n[9], 2336552879, 12), d = c(d, p, i, f, n[10], 4294925233, 17), f = c(f, d, p, i, n[11], 2304563134, 22), i = c(i, f, d, p, n[12], 1804603682, 7), p = c(p, i, f, d, n[13], 4254626195, 12), d = c(d, p, i, f, n[14], 2792965006, 17), i = u(i, f = c(f, d, p, i, n[15], 1236535329, 22), d, p, n[1], 4129170786, 5), p = u(p, i, f, d, n[6], 3225465664, 9), d = u(d, p, i, f, n[11], 643717713, 14), f = u(f, d, p, i, n[0], 3921069994, 20), i = u(i, f, d, p, n[5], 3593408605, 5), p = u(p, i, f, d, n[10], 38016083, 9), d = u(d, p, i, f, n[15], 3634488961, 14), f = u(f, d, p, i, n[4], 3889429448, 20), i = u(i, f, d, p, n[9], 568446438, 5), p = u(p, i, f, d, n[14], 3275163606, 9), d = u(d, p, i, f, n[3], 4107603335, 14), f = u(f, d, p, i, n[8], 1163531501, 20), i = u(i, f, d, p, n[13], 2850285829, 5), p = u(p, i, f, d, n[2], 4243563512, 9), d = u(d, p, i, f, n[7], 1735328473, 14), i = s(i, f = u(f, d, p, i, n[12], 2368359562, 20), d, p, n[5], 4294588738, 4), p = s(p, i, f, d, n[8], 2272392833, 11), d = s(d, p, i, f, n[11], 1839030562, 16), f = s(f, d, p, i, n[14], 4259657740, 23), i = s(i, f, d, p, n[1], 2763975236, 4), p = s(p, i, f, d, n[4], 1272893353, 11), d = s(d, p, i, f, n[7], 4139469664, 16), f = s(f, d, p, i, n[10], 3200236656, 23), i = s(i, f, d, p, n[13], 681279174, 4), p = s(p, i, f, d, n[0], 3936430074, 11), d = s(d, p, i, f, n[3], 3572445317, 16), f = s(f, d, p, i, n[6], 76029189, 23), i = s(i, f, d, p, n[9], 3654602809, 4), p = s(p, i, f, d, n[12], 3873151461, 11), d = s(d, p, i, f, n[15], 530742520, 16), i = r(i, f = s(f, d, p, i, n[2], 3299628645, 23), d, p, n[0], 4096336452, 6), p = r(p, i, f, d, n[7], 1126891415, 10), d = r(d, p, i, f, n[14], 2878612391, 15), f = r(f, d, p, i, n[5], 4237533241, 21), i = r(i, f, d, p, n[12], 1700485571, 6), p = r(p, i, f, d, n[3], 2399980690, 10), d = r(d, p, i, f, n[10], 4293915773, 15), f = r(f, d, p, i, n[1], 2240044497, 21), i = r(i, f, d, p, n[8], 1873313359, 6), p = r(p, i, f, d, n[15], 4264355552, 10), d = r(d, p, i, f, n[6], 2734768916, 15), f = r(f, d, p, i, n[13], 1309151649, 21), i = r(i, f, d, p, n[4], 4149444226, 6), p = r(p, i, f, d, n[11], 3174756917, 10), d = r(d, p, i, f, n[2], 718787259, 15), f = r(f, d, p, i, n[9], 3951481745, 21), this._a = this._a + i | 0, this._b = this._b + f | 0, this._c = this._c + d | 0, this._d = this._d + p | 0; }, a.prototype._digest = function() { this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update(); var n = k.allocUnsafe(16); return n.writeInt32LE(this._a, 0), n.writeInt32LE(this._b, 4), n.writeInt32LE(this._c, 8), n.writeInt32LE(this._d, 12), n; }, D.exports = a; }, 9746: (D) => { - function e(p, w) { - if (!p) + function e(h, w) { + if (!h) throw new Error(w || "Assertion failed"); } - D.exports = e, e.equal = function(p, w, O) { - if (p != w) - throw new Error(O || "Assertion failed: " + p + " != " + w); + D.exports = e, e.equal = function(h, w, O) { + if (h != w) + throw new Error(O || "Assertion failed: " + h + " != " + w); }; }, 4504: (D, e) => { - var p = e; + var h = e; function w(k) { return k.length === 1 ? "0" + k : k; } @@ -11691,7 +11691,7 @@ Please pass a 2048 word array explicitly.`; S += w(k[a].toString(16)); return S; } - p.toArray = function(k, S) { + h.toArray = function(k, S) { if (Array.isArray(k)) return k.slice(); if (!k) @@ -11711,10 +11711,10 @@ Please pass a 2048 word array explicitly.`; u ? a.push(u, s) : a.push(s); } return a; - }, p.zero2 = w, p.toHex = O, p.encode = function(k, S) { + }, h.zero2 = w, h.toHex = O, h.encode = function(k, S) { return S === "hex" ? O(k) : k; }; - }, 45: function(D, e, p) { + }, 45: function(D, e, h) { var w = this && this.__awaiter || function(a, t, c, u) { return new (c || (c = Promise))(function(s, r) { function n(f) { @@ -11740,7 +11740,7 @@ Please pass a 2048 word array explicitly.`; }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(3555), k = p(8982); + const O = h(3555), k = h(8982); class S { static importKey(t, c, u = new O.WebCryptoProvider()) { return w(this, void 0, void 0, function* () { @@ -11767,40 +11767,40 @@ Please pass a 2048 word array explicitly.`; e.AEAD = S; }, 4870: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }); - class p extends Error { + class h extends Error { constructor(k) { - super(k), Object.setPrototypeOf(this, p.prototype); + super(k), Object.setPrototypeOf(this, h.prototype); } } - e.IntegrityError = p; + e.IntegrityError = h; class w extends Error { constructor(k) { super(k), Object.setPrototypeOf(this, w.prototype); } } e.NotImplementedError = w; - }, 9463: (D, e, p) => { + }, 9463: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), function(u) { for (var s in u) e.hasOwnProperty(s) || (e[s] = u[s]); - }(p(4870)); - var w = p(45); + }(h(4870)); + var w = h(45); e.AEAD = w.AEAD; - var O = p(8982); + var O = h(8982); e.SIV = O.SIV; - var k = p(8711); + var k = h(8711); e.StreamEncryptor = k.StreamEncryptor, e.StreamDecryptor = k.StreamDecryptor; - var S = p(8572); + var S = h(8572); e.CMAC = S.CMAC; - var a = p(8462); + var a = h(8462); e.PMAC = a.PMAC; - var t = p(3511); + var t = h(3511); e.PolyfillCryptoProvider = t.PolyfillCryptoProvider; - var c = p(3555); + var c = h(3555); e.WebCryptoProvider = c.WebCryptoProvider; - }, 3618: (D, e, p) => { + }, 3618: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }); - const w = p(8877), O = p(3082); + const w = h(8877), O = h(3082); class k { constructor() { this.data = new Uint8Array(k.SIZE); @@ -11826,7 +11826,7 @@ Please pass a 2048 word array explicitly.`; } k.SIZE = 16, k.R = 135, e.default = k; }, 8877: (D, e) => { - function p(w, O) { + function h(w, O) { if (w.length !== O.length) return 0; let k = 0; @@ -11836,27 +11836,27 @@ Please pass a 2048 word array explicitly.`; } Object.defineProperty(e, "__esModule", { value: !0 }), e.select = function(w, O, k) { return ~(w - 1) & O | w - 1 & k; - }, e.compare = p, e.equal = function(w, O) { - return w.length !== 0 && O.length !== 0 && p(w, O) !== 0; + }, e.compare = h, e.equal = function(w, O) { + return w.length !== 0 && O.length !== 0 && h(w, O) !== 0; }; }, 2104: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }); - const p = new Uint8Array([8, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0]); + const h = new Uint8Array([8, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0]); e.ctz = function(w) { - return p[w]; + return h[w]; }; }, 3082: (D, e) => { - Object.defineProperty(e, "__esModule", { value: !0 }), e.wipe = function(p) { - for (let w = 0; w < p.length; w++) - p[w] = 0; - return p; + Object.defineProperty(e, "__esModule", { value: !0 }), e.wipe = function(h) { + for (let w = 0; w < h.length; w++) + h[w] = 0; + return h; }; }, 4080: (D, e) => { - Object.defineProperty(e, "__esModule", { value: !0 }), e.xor = function(p, w) { + Object.defineProperty(e, "__esModule", { value: !0 }), e.xor = function(h, w) { for (let O = 0; O < w.length; O++) - p[O] ^= w[O]; + h[O] ^= w[O]; }; - }, 8572: function(D, e, p) { + }, 8572: function(D, e, h) { var w = this && this.__awaiter || function(a, t, c, u) { return new (c || (c = Promise))(function(s, r) { function n(f) { @@ -11882,7 +11882,7 @@ Please pass a 2048 word array explicitly.`; }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(3618), k = p(4080); + const O = h(3618), k = h(4080); class S { constructor(t, c, u) { this._cipher = t, this._subkey1 = c, this._subkey2 = u, this._bufferPos = 0, this._finished = !1, this._buffer = new O.default(); @@ -11931,33 +11931,33 @@ Please pass a 2048 word array explicitly.`; } } e.CMAC = S; - }, 8462: function(D, e, p) { + }, 8462: function(D, e, h) { var w = this && this.__awaiter || function(c, u, s, r) { return new (s || (s = Promise))(function(n, o) { - function i(h) { + function i(p) { try { - d(r.next(h)); + d(r.next(p)); } catch (_) { o(_); } } - function f(h) { + function f(p) { try { - d(r.throw(h)); + d(r.throw(p)); } catch (_) { o(_); } } - function d(h) { - h.done ? n(h.value) : new s(function(_) { - _(h.value); + function d(p) { + p.done ? n(p.value) : new s(function(_) { + _(p.value); }).then(i, f); } d((r = r.apply(c, u || [])).next()); }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(3618), k = p(8877), S = p(2104), a = p(4080); + const O = h(3618), k = h(8877), S = h(2104), a = h(4080); class t { constructor(u, s, r) { this._finished = !1, this._cipher = u, this._L = s, this._LInv = r, this._buffer = new O.default(), this._bufferPos = 0, this._counter = 0, this._offset = new O.default(), this._tag = new O.default(); @@ -11971,8 +11971,8 @@ Please pass a 2048 word array explicitly.`; o[d] = n.clone(), n.dbl(); const i = o[0].clone(), f = 1 & i.data[O.default.SIZE - 1]; for (let d = O.default.SIZE - 1; d > 0; d--) { - const h = k.select(1 & i.data[d - 1], 128, 0); - i.data[d] = i.data[d] >>> 1 | h; + const p = k.select(1 & i.data[d - 1], 128, 0); + i.data[d] = i.data[d] >>> 1 | p; } return i.data[0] >>>= 1, i.data[0] ^= k.select(f, 128, 0), i.data[O.default.SIZE - 1] ^= k.select(f, O.default.R >>> 1, 0), new t(r, o, i); }); @@ -12008,7 +12008,7 @@ Please pass a 2048 word array explicitly.`; } } e.PMAC = t; - }, 3511: function(D, e, p) { + }, 3511: function(D, e, h) { var w = this && this.__awaiter || function(S, a, t, c) { return new (t || (t = Promise))(function(u, s) { function r(i) { @@ -12034,7 +12034,7 @@ Please pass a 2048 word array explicitly.`; }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(4274), k = p(3056); + const O = h(4274), k = h(3056); e.PolyfillCryptoProvider = class { constructor() { } @@ -12049,9 +12049,9 @@ Please pass a 2048 word array explicitly.`; }); } }; - }, 4274: (D, e, p) => { + }, 4274: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }); - const w = p(3082), O = new Uint8Array([1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47]), k = new Uint8Array([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]), S = new Uint8Array([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]); + const w = h(3082), O = new Uint8Array([1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154, 47]), k = new Uint8Array([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]), S = new Uint8Array([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]); let a, t, c, u, s, r, n, o, i = !1; function f(_, b = 0) { return (_[b] << 24 | _[b + 1] << 16 | _[b + 2] << 8 | _[b + 3]) >>> 0; @@ -12059,7 +12059,7 @@ Please pass a 2048 word array explicitly.`; function d(_, b = new Uint8Array(4), I = 0) { return b[I + 0] = _ >>> 24, b[I + 1] = _ >>> 16, b[I + 2] = _ >>> 8, b[I + 3] = _ >>> 0, b; } - function h(_) { + function p(_) { return k[_ >>> 24 & 255] << 24 | k[_ >>> 16 & 255] << 16 | k[_ >>> 8 & 255] << 8 | k[255 & _]; } e.default = class { @@ -12093,7 +12093,7 @@ Please pass a 2048 word array explicitly.`; I[N] = f(b, 4 * N); for (let N = l; N < j; N++) { let C = I[N - 1]; - N % l == 0 ? C = h((M = C) << 8 | M >>> 24) ^ O[N / l - 1] << 24 : l > 6 && N % l == 4 && (C = h(C)), I[N] = I[N - l] ^ C; + N % l == 0 ? C = p((M = C) << 8 | M >>> 24) ^ O[N / l - 1] << 24 : l > 6 && N % l == 4 && (C = p(C)), I[N] = I[N - l] ^ C; } var M; return I; @@ -12114,7 +12114,7 @@ Please pass a 2048 word array explicitly.`; return l = k[C >>> 24] << 24 | k[x >>> 16 & 255] << 16 | k[P >>> 8 & 255] << 8 | k[255 & v], j = k[x >>> 24] << 24 | k[P >>> 16 & 255] << 16 | k[v >>> 8 & 255] << 8 | k[255 & C], M = k[P >>> 24] << 24 | k[v >>> 16 & 255] << 16 | k[C >>> 8 & 255] << 8 | k[255 & x], N = k[v >>> 24] << 24 | k[C >>> 16 & 255] << 16 | k[x >>> 8 & 255] << 8 | k[255 & P], l ^= this._encKey[E + 0], j ^= this._encKey[E + 1], M ^= this._encKey[E + 2], N ^= this._encKey[E + 3], d(l, I, 0), d(j, I, 4), d(M, I, 8), d(N, I, 12), this._emptyPromise; } }; - }, 3056: function(D, e, p) { + }, 3056: function(D, e, h) { var w = this && this.__awaiter || function(S, a, t, c) { return new (t || (t = Promise))(function(u, s) { function r(i) { @@ -12140,7 +12140,7 @@ Please pass a 2048 word array explicitly.`; }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(3618); + const O = h(3618); function k(S) { let a = 1; for (let t = O.default.SIZE - 1; t >= 0; t--) @@ -12166,7 +12166,7 @@ Please pass a 2048 word array explicitly.`; }); } }; - }, 3555: function(D, e, p) { + }, 3555: function(D, e, h) { var w = this && this.__awaiter || function(a, t, c, u) { return new (c || (c = Promise))(function(s, r) { function n(f) { @@ -12192,7 +12192,7 @@ Please pass a 2048 word array explicitly.`; }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(4870), k = p(2695), S = p(1530); + const O = h(4870), k = h(2695), S = h(1530); e.WebCryptoProvider = class { constructor(a = window.crypto) { this.crypto = a; @@ -12212,7 +12212,7 @@ Please pass a 2048 word array explicitly.`; }); } }; - }, 2695: function(D, e, p) { + }, 2695: function(D, e, h) { var w = this && this.__awaiter || function(S, a, t, c) { return new (t || (t = Promise))(function(u, s) { function r(i) { @@ -12238,7 +12238,7 @@ Please pass a 2048 word array explicitly.`; }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(3618); + const O = h(3618); class k { constructor(a, t) { this._crypto = a, this._key = t, this._iv = new O.default(), this._emptyPromise = Promise.resolve(this); @@ -12263,7 +12263,7 @@ Please pass a 2048 word array explicitly.`; } e.default = k; }, 1530: function(D, e) { - var p = this && this.__awaiter || function(O, k, S, a) { + var h = this && this.__awaiter || function(O, k, S, a) { return new (S || (S = Promise))(function(t, c) { function u(n) { try { @@ -12293,7 +12293,7 @@ Please pass a 2048 word array explicitly.`; this.key = k, this.crypto = S; } static importKey(k, S) { - return p(this, void 0, void 0, function* () { + return h(this, void 0, void 0, function* () { if (S.length !== 16 && S.length !== 32) throw new Error(`Miscreant: invalid key length: ${S.length} (expected 16 or 32 bytes)`); const a = yield k.subtle.importKey("raw", S, "AES-CTR", !1, ["encrypt"]); @@ -12301,7 +12301,7 @@ Please pass a 2048 word array explicitly.`; }); } encryptCtr(k, S) { - return p(this, void 0, void 0, function* () { + return h(this, void 0, void 0, function* () { const a = yield this.crypto.subtle.encrypt({ name: "AES-CTR", counter: k, length: 16 }, this.key, S); return new Uint8Array(a); }); @@ -12311,9 +12311,9 @@ Please pass a 2048 word array explicitly.`; } } e.default = w; - }, 8982: function(D, e, p) { + }, 8982: function(D, e, h) { var w = this && this.__awaiter || function(o, i, f, d) { - return new (f || (f = Promise))(function(h, _) { + return new (f || (f = Promise))(function(p, _) { function b(j) { try { l(d.next(j)); @@ -12329,7 +12329,7 @@ Please pass a 2048 word array explicitly.`; } } function l(j) { - j.done ? h(j.value) : new f(function(M) { + j.done ? p(j.value) : new f(function(M) { M(j.value); }).then(b, I); } @@ -12337,22 +12337,22 @@ Please pass a 2048 word array explicitly.`; }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(8877), k = p(3082), S = p(4080), a = p(4870), t = p(3618), c = p(8572), u = p(8462), s = p(3555); + const O = h(8877), k = h(3082), S = h(4080), a = h(4870), t = h(3618), c = h(8572), u = h(8462), s = h(3555); e.MAX_ASSOCIATED_DATA = 126; class r { static importKey(i, f, d = new s.WebCryptoProvider()) { return w(this, void 0, void 0, function* () { if (i.length !== 32 && i.length !== 64) throw new Error(`AES-SIV: key must be 32 or 64-bytes (got ${i.length}`); - const h = i.subarray(0, i.length / 2 | 0), _ = i.subarray(i.length / 2 | 0); + const p = i.subarray(0, i.length / 2 | 0), _ = i.subarray(i.length / 2 | 0); let b; switch (f) { case "AES-SIV": case "AES-CMAC-SIV": - b = yield c.CMAC.importKey(d, h); + b = yield c.CMAC.importKey(d, p); break; case "AES-PMAC-SIV": - b = yield u.PMAC.importKey(d, h); + b = yield u.PMAC.importKey(d, p); break; default: throw new a.NotImplementedError(`Miscreant: algorithm not supported: ${f}`); @@ -12368,8 +12368,8 @@ Please pass a 2048 word array explicitly.`; return w(this, void 0, void 0, function* () { if (f.length > e.MAX_ASSOCIATED_DATA) throw new Error("AES-SIV: too many associated data items"); - const d = t.default.SIZE + i.length, h = new Uint8Array(d), _ = yield this._s2v(f, i); - return h.set(_), n(_), h.set(yield this._ctr.encryptCtr(_, i), _.length), h; + const d = t.default.SIZE + i.length, p = new Uint8Array(d), _ = yield this._s2v(f, i); + return p.set(_), n(_), p.set(yield this._ctr.encryptCtr(_, i), _.length), p; }); } open(i, f) { @@ -12378,9 +12378,9 @@ Please pass a 2048 word array explicitly.`; throw new Error("AES-SIV: too many associated data items"); if (i.length < t.default.SIZE) throw new a.IntegrityError("AES-SIV: ciphertext is truncated"); - const d = i.subarray(0, t.default.SIZE), h = this._tmp1.data; - h.set(d), n(h); - const _ = yield this._ctr.encryptCtr(h, i.subarray(t.default.SIZE)), b = yield this._s2v(f, _); + const d = i.subarray(0, t.default.SIZE), p = this._tmp1.data; + p.set(d), n(p); + const _ = yield this._ctr.encryptCtr(p, i.subarray(t.default.SIZE)), b = yield this._s2v(f, _); if (!O.equal(b, d)) throw k.wipe(_), new a.IntegrityError("AES-SIV: ciphertext verification failure!"); return _; @@ -12407,33 +12407,33 @@ Please pass a 2048 word array explicitly.`; o[o.length - 8] &= 127, o[o.length - 4] &= 127; } e.SIV = r; - }, 8711: function(D, e, p) { + }, 8711: function(D, e, h) { var w = this && this.__awaiter || function(c, u, s, r) { return new (s || (s = Promise))(function(n, o) { - function i(h) { + function i(p) { try { - d(r.next(h)); + d(r.next(p)); } catch (_) { o(_); } } - function f(h) { + function f(p) { try { - d(r.throw(h)); + d(r.throw(p)); } catch (_) { o(_); } } - function d(h) { - h.done ? n(h.value) : new s(function(_) { - _(h.value); + function d(p) { + p.done ? n(p.value) : new s(function(_) { + _(p.value); }).then(i, f); } d((r = r.apply(c, u || [])).next()); }); }; Object.defineProperty(e, "__esModule", { value: !0 }); - const O = p(45), k = p(3555); + const O = h(45), k = h(3555); e.NONCE_SIZE = 8, e.LAST_BLOCK_FLAG = 1, e.COUNTER_MAX = 4294967295; class S { static importKey(u, s, r, n = new k.WebCryptoProvider()) { @@ -12490,32 +12490,32 @@ Please pass a 2048 word array explicitly.`; } } }, 4244: (D) => { - var e = function(p) { - return p != p; + var e = function(h) { + return h != h; }; - D.exports = function(p, w) { - return p === 0 && w === 0 ? 1 / p == 1 / w : p === w || !(!e(p) || !e(w)); + D.exports = function(h, w) { + return h === 0 && w === 0 ? 1 / h == 1 / w : h === w || !(!e(h) || !e(w)); }; - }, 609: (D, e, p) => { - var w = p(4289), O = p(5559), k = p(4244), S = p(5624), a = p(2281), t = O(S(), Object); + }, 609: (D, e, h) => { + var w = h(4289), O = h(5559), k = h(4244), S = h(5624), a = h(2281), t = O(S(), Object); w(t, { getPolyfill: S, implementation: k, shim: a }), D.exports = t; - }, 5624: (D, e, p) => { - var w = p(4244); + }, 5624: (D, e, h) => { + var w = h(4244); D.exports = function() { return typeof Object.is == "function" ? Object.is : w; }; - }, 2281: (D, e, p) => { - var w = p(5624), O = p(4289); + }, 2281: (D, e, h) => { + var w = h(5624), O = h(4289); D.exports = function() { var k = w(); return O(Object, { is: k }, { is: function() { return Object.is !== k; } }), k; }; - }, 8987: (D, e, p) => { + }, 8987: (D, e, h) => { var w; if (!Object.keys) { - var O = Object.prototype.hasOwnProperty, k = Object.prototype.toString, S = p(1414), a = Object.prototype.propertyIsEnumerable, t = !a.call({ toString: null }, "toString"), c = a.call(function() { + var O = Object.prototype.hasOwnProperty, k = Object.prototype.toString, S = h(1414), a = Object.prototype.propertyIsEnumerable, t = !a.call({ toString: null }, "toString"), c = a.call(function() { }, "prototype"), u = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"], s = function(o) { var i = o.constructor; return i && i.prototype === o; @@ -12536,11 +12536,11 @@ Please pass a 2048 word array explicitly.`; return !1; }(); w = function(o) { - var i = o !== null && typeof o == "object", f = k.call(o) === "[object Function]", d = S(o), h = i && k.call(o) === "[object String]", _ = []; + var i = o !== null && typeof o == "object", f = k.call(o) === "[object Function]", d = S(o), p = i && k.call(o) === "[object String]", _ = []; if (!i && !f && !d) throw new TypeError("Object.keys called on a non-object"); var b = c && f; - if (h && o.length > 0 && !O.call(o, 0)) + if (p && o.length > 0 && !O.call(o, 0)) for (var I = 0; I < o.length; ++I) _.push(String(I)); if (d && o.length > 0) @@ -12564,10 +12564,10 @@ Please pass a 2048 word array explicitly.`; }; } D.exports = w; - }, 2215: (D, e, p) => { - var w = Array.prototype.slice, O = p(1414), k = Object.keys, S = k ? function(t) { + }, 2215: (D, e, h) => { + var w = Array.prototype.slice, O = h(1414), k = Object.keys, S = k ? function(t) { return k(t); - } : p(8987), a = Object.keys; + } : h(8987), a = Object.keys; S.shim = function() { if (Object.keys) { var t = function() { @@ -12583,12 +12583,12 @@ Please pass a 2048 word array explicitly.`; }, D.exports = S; }, 1414: (D) => { var e = Object.prototype.toString; - D.exports = function(p) { - var w = e.call(p), O = w === "[object Arguments]"; - return O || (O = w !== "[object Array]" && p !== null && typeof p == "object" && typeof p.length == "number" && p.length >= 0 && e.call(p.callee) === "[object Function]"), O; + D.exports = function(h) { + var w = e.call(h), O = w === "[object Arguments]"; + return O || (O = w !== "[object Array]" && h !== null && typeof h == "object" && typeof h.length == "number" && h.length >= 0 && e.call(h.callee) === "[object Function]"), O; }; - }, 2837: (D, e, p) => { - var w = p(2215), O = p(5419)(), k = p(1924), S = Object, a = k("Array.prototype.push"), t = k("Object.prototype.propertyIsEnumerable"), c = O ? Object.getOwnPropertySymbols : null; + }, 2837: (D, e, h) => { + var w = h(2215), O = h(5419)(), k = h(1924), S = Object, a = k("Array.prototype.push"), t = k("Object.prototype.propertyIsEnumerable"), c = O ? Object.getOwnPropertySymbols : null; D.exports = function(u, s) { if (u == null) throw new TypeError("target must be an object"); @@ -12598,8 +12598,8 @@ Please pass a 2048 word array explicitly.`; for (var n = 1; n < arguments.length; ++n) { var o = S(arguments[n]), i = w(o), f = O && (Object.getOwnPropertySymbols || c); if (f) - for (var d = f(o), h = 0; h < d.length; ++h) { - var _ = d[h]; + for (var d = f(o), p = 0; p < d.length; ++p) { + var _ = d[p]; t(o, _) && a(i, _); } for (var b = 0; b < i.length; ++b) { @@ -12612,8 +12612,8 @@ Please pass a 2048 word array explicitly.`; } return r; }; - }, 8162: (D, e, p) => { - var w = p(2837); + }, 8162: (D, e, h) => { + var w = h(2837); D.exports = function() { return Object.assign ? function() { if (!Object.assign) @@ -12636,12 +12636,12 @@ Please pass a 2048 word array explicitly.`; return !1; }() ? w : Object.assign : w; }; - }, 9591: (D, e, p) => { - const { Deflate: w, deflate: O, deflateRaw: k, gzip: S } = p(4555), { Inflate: a, inflate: t, inflateRaw: c, ungzip: u } = p(8843), s = p(1619); + }, 9591: (D, e, h) => { + const { Deflate: w, deflate: O, deflateRaw: k, gzip: S } = h(4555), { Inflate: a, inflate: t, inflateRaw: c, ungzip: u } = h(8843), s = h(1619); D.exports.Deflate = w, D.exports.deflate = O, D.exports.deflateRaw = k, D.exports.gzip = S, D.exports.Inflate = a, D.exports.inflate = t, D.exports.inflateRaw = c, D.exports.ungzip = u, D.exports.constants = s; - }, 4555: (D, e, p) => { - const w = p(405), O = p(4236), k = p(9373), S = p(8898), a = p(2292), t = Object.prototype.toString, { Z_NO_FLUSH: c, Z_SYNC_FLUSH: u, Z_FULL_FLUSH: s, Z_FINISH: r, Z_OK: n, Z_STREAM_END: o, Z_DEFAULT_COMPRESSION: i, Z_DEFAULT_STRATEGY: f, Z_DEFLATED: d } = p(1619); - function h(b) { + }, 4555: (D, e, h) => { + const w = h(405), O = h(4236), k = h(9373), S = h(8898), a = h(2292), t = Object.prototype.toString, { Z_NO_FLUSH: c, Z_SYNC_FLUSH: u, Z_FULL_FLUSH: s, Z_FINISH: r, Z_OK: n, Z_STREAM_END: o, Z_DEFAULT_COMPRESSION: i, Z_DEFAULT_STRATEGY: f, Z_DEFLATED: d } = h(1619); + function p(b) { this.options = O.assign({ level: i, method: d, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: f }, b || {}); let I = this.options; I.raw && I.windowBits > 0 ? I.windowBits = -I.windowBits : I.gzip && I.windowBits > 0 && I.windowBits < 16 && (I.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new a(), this.strm.avail_out = 0; @@ -12656,12 +12656,12 @@ Please pass a 2048 word array explicitly.`; } } function _(b, I) { - const l = new h(I); + const l = new p(I); if (l.push(b, !0), l.err) throw l.msg || S[l.err]; return l.result; } - h.prototype.push = function(b, I) { + p.prototype.push = function(b, I) { const l = this.strm, j = this.options.chunkSize; let M, N; if (this.ended) @@ -12681,18 +12681,18 @@ Please pass a 2048 word array explicitly.`; this.onData(l.output); } return !0; - }, h.prototype.onData = function(b) { + }, p.prototype.onData = function(b) { this.chunks.push(b); - }, h.prototype.onEnd = function(b) { + }, p.prototype.onEnd = function(b) { b === n && (this.result = O.flattenChunks(this.chunks)), this.chunks = [], this.err = b, this.msg = this.strm.msg; - }, D.exports.Deflate = h, D.exports.deflate = _, D.exports.deflateRaw = function(b, I) { + }, D.exports.Deflate = p, D.exports.deflate = _, D.exports.deflateRaw = function(b, I) { return (I = I || {}).raw = !0, _(b, I); }, D.exports.gzip = function(b, I) { return (I = I || {}).gzip = !0, _(b, I); - }, D.exports.constants = p(1619); - }, 8843: (D, e, p) => { - const w = p(6351), O = p(4236), k = p(9373), S = p(8898), a = p(2292), t = p(188), c = Object.prototype.toString, { Z_NO_FLUSH: u, Z_FINISH: s, Z_OK: r, Z_STREAM_END: n, Z_NEED_DICT: o, Z_STREAM_ERROR: i, Z_DATA_ERROR: f, Z_MEM_ERROR: d } = p(1619); - function h(b) { + }, D.exports.constants = h(1619); + }, 8843: (D, e, h) => { + const w = h(6351), O = h(4236), k = h(9373), S = h(8898), a = h(2292), t = h(188), c = Object.prototype.toString, { Z_NO_FLUSH: u, Z_FINISH: s, Z_OK: r, Z_STREAM_END: n, Z_NEED_DICT: o, Z_STREAM_ERROR: i, Z_DATA_ERROR: f, Z_MEM_ERROR: d } = h(1619); + function p(b) { this.options = O.assign({ chunkSize: 65536, windowBits: 15, to: "" }, b || {}); const I = this.options; I.raw && I.windowBits >= 0 && I.windowBits < 16 && (I.windowBits = -I.windowBits, I.windowBits === 0 && (I.windowBits = -15)), !(I.windowBits >= 0 && I.windowBits < 16) || b && b.windowBits || (I.windowBits += 32), I.windowBits > 15 && I.windowBits < 48 && !(15 & I.windowBits) && (I.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new a(), this.strm.avail_out = 0; @@ -12703,12 +12703,12 @@ Please pass a 2048 word array explicitly.`; throw new Error(S[l]); } function _(b, I) { - const l = new h(I); + const l = new p(I); if (l.push(b), l.err) throw l.msg || S[l.err]; return l.result; } - h.prototype.push = function(b, I) { + p.prototype.push = function(b, I) { const l = this.strm, j = this.options.chunkSize, M = this.options.dictionary; let N, C, x; if (this.ended) @@ -12737,16 +12737,16 @@ Please pass a 2048 word array explicitly.`; } } return !0; - }, h.prototype.onData = function(b) { + }, p.prototype.onData = function(b) { this.chunks.push(b); - }, h.prototype.onEnd = function(b) { + }, p.prototype.onEnd = function(b) { b === r && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = O.flattenChunks(this.chunks)), this.chunks = [], this.err = b, this.msg = this.strm.msg; - }, D.exports.Inflate = h, D.exports.inflate = _, D.exports.inflateRaw = function(b, I) { + }, D.exports.Inflate = p, D.exports.inflate = _, D.exports.inflateRaw = function(b, I) { return (I = I || {}).raw = !0, _(b, I); - }, D.exports.ungzip = _, D.exports.constants = p(1619); + }, D.exports.ungzip = _, D.exports.constants = h(1619); }, 4236: (D) => { - const e = (p, w) => Object.prototype.hasOwnProperty.call(p, w); - D.exports.assign = function(p) { + const e = (h, w) => Object.prototype.hasOwnProperty.call(h, w); + D.exports.assign = function(h) { const w = Array.prototype.slice.call(arguments, 1); for (; w.length; ) { const O = w.shift(); @@ -12754,17 +12754,17 @@ Please pass a 2048 word array explicitly.`; if (typeof O != "object") throw new TypeError(O + "must be non-object"); for (const k in O) - e(O, k) && (p[k] = O[k]); + e(O, k) && (h[k] = O[k]); } } - return p; - }, D.exports.flattenChunks = (p) => { + return h; + }, D.exports.flattenChunks = (h) => { let w = 0; - for (let k = 0, S = p.length; k < S; k++) - w += p[k].length; + for (let k = 0, S = h.length; k < S; k++) + w += h[k].length; const O = new Uint8Array(w); - for (let k = 0, S = 0, a = p.length; k < a; k++) { - let t = p[k]; + for (let k = 0, S = 0, a = h.length; k < a; k++) { + let t = h[k]; O.set(t, S), S += t.length; } return O; @@ -12776,10 +12776,10 @@ Please pass a 2048 word array explicitly.`; } catch { e = !1; } - const p = new Uint8Array(256); + const h = new Uint8Array(256); for (let w = 0; w < 256; w++) - p[w] = w >= 252 ? 6 : w >= 248 ? 5 : w >= 240 ? 4 : w >= 224 ? 3 : w >= 192 ? 2 : 1; - p[254] = p[254] = 1, D.exports.string2buf = (w) => { + h[w] = w >= 252 ? 6 : w >= 248 ? 5 : w >= 240 ? 4 : w >= 224 ? 3 : w >= 192 ? 2 : 1; + h[254] = h[254] = 1, D.exports.string2buf = (w) => { if (typeof TextEncoder == "function" && TextEncoder.prototype.encode) return new TextEncoder().encode(w); let O, k, S, a, t, c = w.length, u = 0; @@ -12800,7 +12800,7 @@ Please pass a 2048 word array explicitly.`; t[a++] = c; continue; } - let u = p[c]; + let u = h[c]; if (u > 4) t[a++] = 65533, S += u - 1; else { @@ -12822,15 +12822,15 @@ Please pass a 2048 word array explicitly.`; let k = O - 1; for (; k >= 0 && (192 & w[k]) == 128; ) k--; - return k < 0 || k === 0 ? O : k + p[w[k]] > O ? k : O; + return k < 0 || k === 0 ? O : k + h[w[k]] > O ? k : O; }; }, 6069: (D) => { - D.exports = (e, p, w, O) => { + D.exports = (e, h, w, O) => { let k = 65535 & e | 0, S = e >>> 16 & 65535 | 0, a = 0; for (; w !== 0; ) { a = w > 2e3 ? 2e3 : w, w -= a; do - k = k + p[O++] | 0, S = S + k | 0; + k = k + h[O++] | 0, S = S + k | 0; while (--a); k %= 65521, S %= 65521; } @@ -12840,24 +12840,24 @@ Please pass a 2048 word array explicitly.`; D.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 }; }, 2869: (D) => { const e = new Uint32Array((() => { - let p, w = []; + let h, w = []; for (var O = 0; O < 256; O++) { - p = O; + h = O; for (var k = 0; k < 8; k++) - p = 1 & p ? 3988292384 ^ p >>> 1 : p >>> 1; - w[O] = p; + h = 1 & h ? 3988292384 ^ h >>> 1 : h >>> 1; + w[O] = h; } return w; })()); - D.exports = (p, w, O, k) => { + D.exports = (h, w, O, k) => { const S = e, a = k + O; - p ^= -1; + h ^= -1; for (let t = k; t < a; t++) - p = p >>> 8 ^ S[255 & (p ^ w[t])]; - return -1 ^ p; + h = h >>> 8 ^ S[255 & (h ^ w[t])]; + return -1 ^ h; }; - }, 405: (D, e, p) => { - const { _tr_init: w, _tr_stored_block: O, _tr_flush_block: k, _tr_tally: S, _tr_align: a } = p(342), t = p(6069), c = p(2869), u = p(8898), { Z_NO_FLUSH: s, Z_PARTIAL_FLUSH: r, Z_FULL_FLUSH: n, Z_FINISH: o, Z_BLOCK: i, Z_OK: f, Z_STREAM_END: d, Z_STREAM_ERROR: h, Z_DATA_ERROR: _, Z_BUF_ERROR: b, Z_DEFAULT_COMPRESSION: I, Z_FILTERED: l, Z_HUFFMAN_ONLY: j, Z_RLE: M, Z_FIXED: N, Z_DEFAULT_STRATEGY: C, Z_UNKNOWN: x, Z_DEFLATED: P } = p(1619), v = 258, m = 262, E = 103, B = 113, T = 666, q = (V, y) => (V.msg = u[y], y), te = (V) => (V << 1) - (V > 4 ? 9 : 0), re = (V) => { + }, 405: (D, e, h) => { + const { _tr_init: w, _tr_stored_block: O, _tr_flush_block: k, _tr_tally: S, _tr_align: a } = h(342), t = h(6069), c = h(2869), u = h(8898), { Z_NO_FLUSH: s, Z_PARTIAL_FLUSH: r, Z_FULL_FLUSH: n, Z_FINISH: o, Z_BLOCK: i, Z_OK: f, Z_STREAM_END: d, Z_STREAM_ERROR: p, Z_DATA_ERROR: _, Z_BUF_ERROR: b, Z_DEFAULT_COMPRESSION: I, Z_FILTERED: l, Z_HUFFMAN_ONLY: j, Z_RLE: M, Z_FIXED: N, Z_DEFAULT_STRATEGY: C, Z_UNKNOWN: x, Z_DEFLATED: P } = h(1619), v = 258, m = 262, E = 103, B = 113, T = 666, q = (V, y) => (V.msg = u[y], y), te = (V) => (V << 1) - (V > 4 ? 9 : 0), re = (V) => { let y = V.length; for (; --y >= 0; ) V[y] = 0; @@ -12988,7 +12988,7 @@ Please pass a 2048 word array explicitly.`; } const de = (V) => { if (!V || !V.state) - return q(V, h); + return q(V, p); V.total_in = V.total_out = 0, V.data_type = x; const y = V.state; return y.pending = 0, y.pending_out = 0, y.wrap < 0 && (y.wrap = -y.wrap), y.status = y.wrap ? 42 : B, V.adler = y.wrap === 2 ? 0 : 1, y.last_flush = s, w(y), f; @@ -12998,21 +12998,21 @@ Please pass a 2048 word array explicitly.`; return y === f && ((A = V.state).window_size = 2 * A.w_size, re(A.head), A.max_lazy_match = ce[A.level].max_lazy, A.good_match = ce[A.level].good_length, A.nice_match = ce[A.level].nice_length, A.max_chain_length = ce[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = 2, A.match_available = 0, A.ins_h = 0), y; }, ye = (V, y, A, R, U, z) => { if (!V) - return h; + return p; let L = 1; if (y === I && (y = 6), R < 0 ? (L = 0, R = -R) : R > 15 && (L = 2, R -= 16), U < 1 || U > 9 || A !== P || R < 8 || R > 15 || y < 0 || y > 9 || z < 0 || z > N) - return q(V, h); + return q(V, p); R === 8 && (R = 9); const H = new ve(); return V.state = H, H.strm = V, H.wrap = L, H.gzhead = null, H.w_bits = R, H.w_size = 1 << H.w_bits, H.w_mask = H.w_size - 1, H.hash_bits = U + 7, H.hash_size = 1 << H.hash_bits, H.hash_mask = H.hash_size - 1, H.hash_shift = ~~((H.hash_bits + 3 - 1) / 3), H.window = new Uint8Array(2 * H.w_size), H.head = new Uint16Array(H.hash_size), H.prev = new Uint16Array(H.w_size), H.lit_bufsize = 1 << U + 6, H.pending_buf_size = 4 * H.lit_bufsize, H.pending_buf = new Uint8Array(H.pending_buf_size), H.d_buf = 1 * H.lit_bufsize, H.l_buf = 3 * H.lit_bufsize, H.level = y, H.strategy = z, H.method = A, pe(V); }; - D.exports.deflateInit = (V, y) => ye(V, y, P, 15, 8, C), D.exports.deflateInit2 = ye, D.exports.deflateReset = pe, D.exports.deflateResetKeep = de, D.exports.deflateSetHeader = (V, y) => V && V.state ? V.state.wrap !== 2 ? h : (V.state.gzhead = y, f) : h, D.exports.deflate = (V, y) => { + D.exports.deflateInit = (V, y) => ye(V, y, P, 15, 8, C), D.exports.deflateInit2 = ye, D.exports.deflateReset = pe, D.exports.deflateResetKeep = de, D.exports.deflateSetHeader = (V, y) => V && V.state ? V.state.wrap !== 2 ? p : (V.state.gzhead = y, f) : p, D.exports.deflate = (V, y) => { let A, R; if (!V || !V.state || y > i || y < 0) - return V ? q(V, h) : h; + return V ? q(V, p) : p; const U = V.state; if (!V.output || !V.input && V.avail_in !== 0 || U.status === T && y !== o) - return q(V, V.avail_out === 0 ? b : h); + return q(V, V.avail_out === 0 ? b : p); U.strm = V; const z = U.last_flush; if (U.last_flush = y, U.status === 42) @@ -13105,16 +13105,16 @@ Please pass a 2048 word array explicitly.`; return y !== o ? f : U.wrap <= 0 ? d : (U.wrap === 2 ? (G(U, 255 & V.adler), G(U, V.adler >> 8 & 255), G(U, V.adler >> 16 & 255), G(U, V.adler >> 24 & 255), G(U, 255 & V.total_in), G(U, V.total_in >> 8 & 255), G(U, V.total_in >> 16 & 255), G(U, V.total_in >> 24 & 255)) : ($(U, V.adler >>> 16), $(U, 65535 & V.adler)), J(V), U.wrap > 0 && (U.wrap = -U.wrap), U.pending !== 0 ? f : d); }, D.exports.deflateEnd = (V) => { if (!V || !V.state) - return h; + return p; const y = V.state.status; - return y !== 42 && y !== 69 && y !== 73 && y !== 91 && y !== E && y !== B && y !== T ? q(V, h) : (V.state = null, y === B ? q(V, _) : f); + return y !== 42 && y !== 69 && y !== 73 && y !== 91 && y !== E && y !== B && y !== T ? q(V, p) : (V.state = null, y === B ? q(V, _) : f); }, D.exports.deflateSetDictionary = (V, y) => { let A = y.length; if (!V || !V.state) - return h; + return p; const R = V.state, U = R.wrap; if (U === 2 || U === 1 && R.status !== 42 || R.lookahead) - return h; + return p; if (U === 1 && (V.adler = t(V.adler, y, A, 0)), R.wrap = 0, A >= R.w_size) { U === 0 && (re(R.head), R.strstart = 0, R.block_start = 0, R.insert = 0); let ne = new Uint8Array(R.w_size); @@ -13135,10 +13135,10 @@ Please pass a 2048 word array explicitly.`; this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1; }; }, 4264: (D) => { - D.exports = function(e, p) { - let w, O, k, S, a, t, c, u, s, r, n, o, i, f, d, h, _, b, I, l, j, M, N, C; + D.exports = function(e, h) { + let w, O, k, S, a, t, c, u, s, r, n, o, i, f, d, p, _, b, I, l, j, M, N, C; const x = e.state; - w = e.next_in, N = e.input, O = w + (e.avail_in - 5), k = e.next_out, C = e.output, S = k - (p - e.avail_out), a = k + (e.avail_out - 257), t = x.dmax, c = x.wsize, u = x.whave, s = x.wnext, r = x.window, n = x.hold, o = x.bits, i = x.lencode, f = x.distcode, d = (1 << x.lenbits) - 1, h = (1 << x.distbits) - 1; + w = e.next_in, N = e.input, O = w + (e.avail_in - 5), k = e.next_out, C = e.output, S = k - (h - e.avail_out), a = k + (e.avail_out - 257), t = x.dmax, c = x.wsize, u = x.whave, s = x.wnext, r = x.window, n = x.hold, o = x.bits, i = x.lencode, f = x.distcode, d = (1 << x.lenbits) - 1, p = (1 << x.distbits) - 1; e: do { o < 15 && (n += N[w++] << o, o += 8, n += N[w++] << o, o += 8), _ = i[n & d]; @@ -13159,7 +13159,7 @@ Please pass a 2048 word array explicitly.`; e.msg = "invalid literal/length code", x.mode = 30; break e; } - I = 65535 & _, b &= 15, b && (o < b && (n += N[w++] << o, o += 8), I += n & (1 << b) - 1, n >>>= b, o -= b), o < 15 && (n += N[w++] << o, o += 8, n += N[w++] << o, o += 8), _ = f[n & h]; + I = 65535 & _, b &= 15, b && (o < b && (n += N[w++] << o, o += 8), I += n & (1 << b) - 1, n >>>= b, o -= b), o < 15 && (n += N[w++] << o, o += 8, n += N[w++] << o, o += 8), _ = f[n & p]; r: for (; ; ) { if (b = _ >>> 24, n >>>= b, o -= b, b = _ >>> 16 & 255, !(16 & b)) { @@ -13226,8 +13226,8 @@ Please pass a 2048 word array explicitly.`; } while (w < O && k < a); I = o >> 3, w -= I, o -= I << 3, n &= (1 << o) - 1, e.next_in = w, e.next_out = k, e.avail_in = w < O ? O - w + 5 : 5 - (w - O), e.avail_out = k < a ? a - k + 257 : 257 - (k - a), x.hold = n, x.bits = o; }; - }, 6351: (D, e, p) => { - const w = p(6069), O = p(2869), k = p(4264), S = p(9241), { Z_FINISH: a, Z_BLOCK: t, Z_TREES: c, Z_OK: u, Z_STREAM_END: s, Z_NEED_DICT: r, Z_STREAM_ERROR: n, Z_DATA_ERROR: o, Z_MEM_ERROR: i, Z_BUF_ERROR: f, Z_DEFLATED: d } = p(1619), h = 12, _ = 30, b = (E) => (E >>> 24 & 255) + (E >>> 8 & 65280) + ((65280 & E) << 8) + ((255 & E) << 24); + }, 6351: (D, e, h) => { + const w = h(6069), O = h(2869), k = h(4264), S = h(9241), { Z_FINISH: a, Z_BLOCK: t, Z_TREES: c, Z_OK: u, Z_STREAM_END: s, Z_NEED_DICT: r, Z_STREAM_ERROR: n, Z_DATA_ERROR: o, Z_MEM_ERROR: i, Z_BUF_ERROR: f, Z_DEFLATED: d } = h(1619), p = 12, _ = 30, b = (E) => (E >>> 24 & 255) + (E >>> 8 & 65280) + ((65280 & E) << 8) + ((255 & E) << 24); function I() { this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0; } @@ -13285,7 +13285,7 @@ Please pass a 2048 word array explicitly.`; const L = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]); if (!E || !E.state || !E.output || !E.input && E.avail_in !== 0) return n; - T = E.state, T.mode === h && (T.mode = 13), ie = E.next_out, te = E.output, ee = E.avail_out, re = E.next_in, q = E.input, J = E.avail_in, G = T.hold, $ = T.bits, W = J, Y = ee, y = u; + T = E.state, T.mode === p && (T.mode = 13), ie = E.next_out, te = E.output, ee = E.avail_out, re = E.next_in, q = E.input, J = E.avail_in, G = T.hold, $ = T.bits, W = J, Y = ee, y = u; e: for (; ; ) switch (T.mode) { @@ -13317,7 +13317,7 @@ Please pass a 2048 word array explicitly.`; E.msg = "invalid window size", T.mode = _; break; } - T.dmax = 1 << T.wbits, E.adler = T.check = 1, T.mode = 512 & G ? 10 : h, G = 0, $ = 0; + T.dmax = 1 << T.wbits, E.adler = T.check = 1, T.mode = 512 & G ? 10 : p, G = 0, $ = 0; break; case 2: for (; $ < 16; ) { @@ -13402,7 +13402,7 @@ Please pass a 2048 word array explicitly.`; } G = 0, $ = 0; } - T.head && (T.head.hcrc = T.flags >> 9 & 1, T.head.done = !0), E.adler = T.check = 0, T.mode = h; + T.head && (T.head.hcrc = T.flags >> 9 & 1, T.head.done = !0), E.adler = T.check = 0, T.mode = p; break; case 10: for (; $ < 32; ) { @@ -13414,8 +13414,8 @@ Please pass a 2048 word array explicitly.`; case 11: if (T.havedict === 0) return E.next_out = ie, E.avail_out = ee, E.next_in = re, E.avail_in = J, T.hold = G, T.bits = $, r; - E.adler = T.check = 1, T.mode = h; - case h: + E.adler = T.check = 1, T.mode = p; + case p: if (B === t || B === c) break e; case 13: @@ -13467,7 +13467,7 @@ Please pass a 2048 word array explicitly.`; te.set(q.subarray(re, re + F), ie), J -= F, re += F, ee -= F, ie += F, T.length -= F; break; } - T.mode = h; + T.mode = p; break; case 17: for (; $ < 14; ) { @@ -13560,7 +13560,7 @@ Please pass a 2048 word array explicitly.`; T.mode = 21; case 21: if (J >= 6 && ee >= 258) { - E.next_out = ie, E.avail_out = ee, E.next_in = re, E.avail_in = J, T.hold = G, T.bits = $, k(E, Y), ie = E.next_out, te = E.output, ee = E.avail_out, re = E.next_in, q = E.input, J = E.avail_in, G = T.hold, $ = T.bits, T.mode === h && (T.back = -1); + E.next_out = ie, E.avail_out = ee, E.next_in = re, E.avail_in = J, T.hold = G, T.bits = $, k(E, Y), ie = E.next_out, te = E.output, ee = E.avail_out, re = E.next_in, q = E.input, J = E.avail_in, G = T.hold, $ = T.bits, T.mode === p && (T.back = -1); break; } for (T.back = 0; A = T.lencode[G & (1 << T.lenbits) - 1], le = A >>> 24, ce = A >>> 16 & 255, ve = 65535 & A, !(le <= $); ) { @@ -13581,7 +13581,7 @@ Please pass a 2048 word array explicitly.`; break; } if (32 & ce) { - T.back = -1, T.mode = h; + T.back = -1, T.mode = p; break; } if (64 & ce) { @@ -13693,7 +13693,7 @@ Please pass a 2048 word array explicitly.`; default: return n; } - return E.next_out = ie, E.avail_out = ee, E.next_in = re, E.avail_in = J, T.hold = G, T.bits = $, (T.wsize || Y !== E.avail_out && T.mode < _ && (T.mode < 27 || B !== a)) && m(E, E.output, E.next_out, Y - E.avail_out) ? (T.mode = 31, i) : (W -= E.avail_in, Y -= E.avail_out, E.total_in += W, E.total_out += Y, T.total += Y, T.wrap && Y && (E.adler = T.check = T.flags ? O(T.check, te, Y, E.next_out - Y) : w(T.check, te, Y, E.next_out - Y)), E.data_type = T.bits + (T.last ? 64 : 0) + (T.mode === h ? 128 : 0) + (T.mode === 20 || T.mode === 15 ? 256 : 0), (W === 0 && Y === 0 || B === a) && y === u && (y = f), y); + return E.next_out = ie, E.avail_out = ee, E.next_in = re, E.avail_in = J, T.hold = G, T.bits = $, (T.wsize || Y !== E.avail_out && T.mode < _ && (T.mode < 27 || B !== a)) && m(E, E.output, E.next_out, Y - E.avail_out) ? (T.mode = 31, i) : (W -= E.avail_in, Y -= E.avail_out, E.total_in += W, E.total_out += Y, T.total += Y, T.wrap && Y && (E.adler = T.check = T.flags ? O(T.check, te, Y, E.next_out - Y) : w(T.check, te, Y, E.next_out - Y)), E.data_type = T.bits + (T.last ? 64 : 0) + (T.mode === p ? 128 : 0) + (T.mode === 20 || T.mode === 15 ? 256 : 0), (W === 0 && Y === 0 || B === a) && y === u && (y = f), y); }, D.exports.inflateEnd = (E) => { if (!E || !E.state) return n; @@ -13710,10 +13710,10 @@ Please pass a 2048 word array explicitly.`; return E && E.state ? (q = E.state, q.wrap !== 0 && q.mode !== 11 ? n : q.mode === 11 && (te = 1, te = w(te, B, T, 0), te !== q.check) ? o : (re = m(E, B, T, T), re ? (q.mode = 31, i) : (q.havedict = 1, u))) : n; }, D.exports.inflateInfo = "pako inflate (from Nodeca project)"; }, 9241: (D) => { - const e = new Uint16Array([3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]), p = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]), w = new Uint16Array([1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]), O = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]); + const e = new Uint16Array([3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]), h = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]), w = new Uint16Array([1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]), O = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]); D.exports = (k, S, a, t, c, u, s, r) => { const n = r.bits; - let o, i, f, d, h, _, b = 0, I = 0, l = 0, j = 0, M = 0, N = 0, C = 0, x = 0, P = 0, v = 0, m = null, E = 0; + let o, i, f, d, p, _, b = 0, I = 0, l = 0, j = 0, M = 0, N = 0, C = 0, x = 0, P = 0, v = 0, m = null, E = 0; const B = new Uint16Array(16), T = new Uint16Array(16); let q, te, re, ie = null, J = 0; for (b = 0; b <= 15; b++) @@ -13735,12 +13735,12 @@ Please pass a 2048 word array explicitly.`; T[b + 1] = T[b] + B[b]; for (I = 0; I < t; I++) S[a + I] !== 0 && (s[T[S[a + I]]++] = I); - if (k === 0 ? (m = ie = s, _ = 19) : k === 1 ? (m = e, E -= 257, ie = p, J -= 257, _ = 256) : (m = w, ie = O, _ = -1), v = 0, I = 0, b = l, h = u, N = M, C = 0, f = -1, P = 1 << M, d = P - 1, k === 1 && P > 852 || k === 2 && P > 592) + if (k === 0 ? (m = ie = s, _ = 19) : k === 1 ? (m = e, E -= 257, ie = h, J -= 257, _ = 256) : (m = w, ie = O, _ = -1), v = 0, I = 0, b = l, p = u, N = M, C = 0, f = -1, P = 1 << M, d = P - 1, k === 1 && P > 852 || k === 2 && P > 592) return 1; for (; ; ) { q = b - C, s[I] < _ ? (te = 0, re = s[I]) : s[I] > _ ? (te = ie[J + s[I]], re = m[E + s[I]]) : (te = 96, re = 0), o = 1 << b - C, i = 1 << N, l = i; do - i -= o, c[h + (v >> C) + i] = q << 24 | te << 16 | re | 0; + i -= o, c[p + (v >> C) + i] = q << 24 | te << 16 | re | 0; while (i !== 0); for (o = 1 << b - 1; v & o; ) o >>= 1; @@ -13750,14 +13750,14 @@ Please pass a 2048 word array explicitly.`; b = S[a + s[I]]; } if (b > M && (v & d) !== f) { - for (C === 0 && (C = M), h += l, N = b - C, x = 1 << N; N + C < j && (x -= B[N + C], !(x <= 0)); ) + for (C === 0 && (C = M), p += l, N = b - C, x = 1 << N; N + C < j && (x -= B[N + C], !(x <= 0)); ) N++, x <<= 1; if (P += 1 << N, k === 1 && P > 852 || k === 2 && P > 592) return 1; - f = v & d, c[f] = M << 24 | N << 16 | h - u | 0; + f = v & d, c[f] = M << 24 | N << 16 | p - u | 0; } } - return v !== 0 && (c[h + v] = b - C << 24 | 4194304 | 0), r.bits = M, 0; + return v !== 0 && (c[p + v] = b - C << 24 | 4194304 | 0), r.bits = M, 0; }; }, 8898: (D) => { D.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" }; @@ -13767,7 +13767,7 @@ Please pass a 2048 word array explicitly.`; for (; --q >= 0; ) T[q] = 0; } - const p = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), w = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), O = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), k = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), S = new Array(576); + const h = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]), w = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]), O = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]), k = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), S = new Array(576); e(S); const a = new Array(60); e(a); @@ -13786,10 +13786,10 @@ Please pass a 2048 word array explicitly.`; this.dyn_tree = T, this.max_code = 0, this.stat_desc = q; } e(s); - const d = (T) => T < 256 ? t[T] : t[256 + (T >>> 7)], h = (T, q) => { + const d = (T) => T < 256 ? t[T] : t[256 + (T >>> 7)], p = (T, q) => { T.pending_buf[T.pending++] = 255 & q, T.pending_buf[T.pending++] = q >>> 8 & 255; }, _ = (T, q, te) => { - T.bi_valid > 16 - te ? (T.bi_buf |= q << T.bi_valid & 65535, h(T, T.bi_buf), T.bi_buf = q >> 16 - T.bi_valid, T.bi_valid += te - 16) : (T.bi_buf |= q << T.bi_valid & 65535, T.bi_valid += te); + T.bi_valid > 16 - te ? (T.bi_buf |= q << T.bi_valid & 65535, p(T, T.bi_buf), T.bi_buf = q >> 16 - T.bi_valid, T.bi_valid += te - 16) : (T.bi_buf |= q << T.bi_valid & 65535, T.bi_valid += te); }, b = (T, q, te) => { _(T, te[2 * q], te[2 * q + 1]); }, I = (T, q) => { @@ -13817,7 +13817,7 @@ Please pass a 2048 word array explicitly.`; T.bl_tree[2 * q] = 0; T.dyn_ltree[512] = 1, T.opt_len = T.static_len = 0, T.last_lit = T.matches = 0; }, M = (T) => { - T.bi_valid > 8 ? h(T, T.bi_buf) : T.bi_valid > 0 && (T.pending_buf[T.pending++] = T.bi_buf), T.bi_buf = 0, T.bi_valid = 0; + T.bi_valid > 8 ? p(T, T.bi_buf) : T.bi_valid > 0 && (T.pending_buf[T.pending++] = T.bi_buf), T.bi_buf = 0, T.bi_valid = 0; }, N = (T, q, te, re) => { const ie = 2 * q, J = 2 * te; return T[ie] < T[J] || T[ie] === T[J] && re[q] <= re[te]; @@ -13831,7 +13831,7 @@ Please pass a 2048 word array explicitly.`; let re, ie, J, ee, G = 0; if (T.last_lit !== 0) do - re = T.pending_buf[T.d_buf + 2 * G] << 8 | T.pending_buf[T.d_buf + 2 * G + 1], ie = T.pending_buf[T.l_buf + G], G++, re === 0 ? b(T, ie, q) : (J = c[ie], b(T, J + 256 + 1, q), ee = p[J], ee !== 0 && (ie -= u[J], _(T, ie, ee)), re--, J = d(re), b(T, J, te), ee = w[J], ee !== 0 && (re -= s[J], _(T, re, ee))); + re = T.pending_buf[T.d_buf + 2 * G] << 8 | T.pending_buf[T.d_buf + 2 * G + 1], ie = T.pending_buf[T.l_buf + G], G++, re === 0 ? b(T, ie, q) : (J = c[ie], b(T, J + 256 + 1, q), ee = h[J], ee !== 0 && (ie -= u[J], _(T, ie, ee)), re--, J = d(re), b(T, J, te), ee = w[J], ee !== 0 && (re -= s[J], _(T, re, ee))); while (G < T.last_lit); b(T, 256, q); }, P = (T, q) => { @@ -13885,7 +13885,7 @@ Please pass a 2048 word array explicitly.`; let E = !1; const B = (T, q, te, re) => { _(T, 0 + (re ? 1 : 0), 3), ((ie, J, ee, G) => { - M(ie), h(ie, ee), h(ie, ~ee), ie.pending_buf.set(ie.window.subarray(J, J + ee), ie.pending), ie.pending += ee; + M(ie), p(ie, ee), p(ie, ~ee), ie.pending_buf.set(ie.window.subarray(J, J + ee), ie.pending), ie.pending += ee; })(T, q, te); }; D.exports._tr_init = (T) => { @@ -13893,7 +13893,7 @@ Please pass a 2048 word array explicitly.`; let q, te, re, ie, J; const ee = new Array(16); for (re = 0, ie = 0; ie < 28; ie++) - for (u[ie] = re, q = 0; q < 1 << p[ie]; q++) + for (u[ie] = re, q = 0; q < 1 << h[ie]; q++) c[re++] = ie; for (c[re - 1] = ie, J = 0, ie = 0; ie < 16; ie++) for (s[ie] = J, q = 0; q < 1 << w[ie]; q++) @@ -13913,7 +13913,7 @@ Please pass a 2048 word array explicitly.`; S[2 * q + 1] = 8, q++, ee[8]++; for (l(S, 287, ee), q = 0; q < 30; q++) a[2 * q + 1] = 5, a[2 * q] = I(q, 5); - n = new r(S, p, 257, 286, 15), o = new r(a, w, 0, 30, 15), i = new r(new Array(0), O, 0, 19, 7); + n = new r(S, h, 257, 286, 15), o = new r(a, w, 0, 30, 15), i = new r(new Array(0), O, 0, 19, 7); })(), E = !0), T.l_desc = new f(T.dyn_ltree, n), T.d_desc = new f(T.dyn_dtree, o), T.bl_desc = new f(T.bl_tree, i), T.bi_buf = 0, T.bi_valid = 0, j(T); }, D.exports._tr_stored_block = B, D.exports._tr_flush_block = (T, q, te, re) => { let ie, J, ee = 0; @@ -13941,32 +13941,32 @@ Please pass a 2048 word array explicitly.`; })(T, T.l_desc.max_code + 1, T.d_desc.max_code + 1, ee + 1), x(T, T.dyn_ltree, T.dyn_dtree)), j(T), re && M(T); }, D.exports._tr_tally = (T, q, te) => (T.pending_buf[T.d_buf + 2 * T.last_lit] = q >>> 8 & 255, T.pending_buf[T.d_buf + 2 * T.last_lit + 1] = 255 & q, T.pending_buf[T.l_buf + T.last_lit] = 255 & te, T.last_lit++, q === 0 ? T.dyn_ltree[2 * te]++ : (T.matches++, q--, T.dyn_ltree[2 * (c[te] + 256 + 1)]++, T.dyn_dtree[2 * d(q)]++), T.last_lit === T.lit_bufsize - 1), D.exports._tr_align = (T) => { _(T, 2, 3), b(T, 256, S), ((q) => { - q.bi_valid === 16 ? (h(q, q.bi_buf), q.bi_buf = 0, q.bi_valid = 0) : q.bi_valid >= 8 && (q.pending_buf[q.pending++] = 255 & q.bi_buf, q.bi_buf >>= 8, q.bi_valid -= 8); + q.bi_valid === 16 ? (p(q, q.bi_buf), q.bi_buf = 0, q.bi_valid = 0) : q.bi_valid >= 8 && (q.pending_buf[q.pending++] = 255 & q.bi_buf, q.bi_buf >>= 8, q.bi_valid -= 8); })(T); }; }, 2292: (D) => { D.exports = function() { this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0; }; - }, 5632: (D, e, p) => { - e.pbkdf2 = p(8638), e.pbkdf2Sync = p(1257); - }, 8638: (D, e, p) => { - var w, O, k = p(9509).Buffer, S = p(7357), a = p(2368), t = p(1257), c = p(7777), u = p.g.crypto && p.g.crypto.subtle, s = { sha: "SHA-1", "sha-1": "SHA-1", sha1: "SHA-1", sha256: "SHA-256", "sha-256": "SHA-256", sha384: "SHA-384", "sha-384": "SHA-384", "sha-512": "SHA-512", sha512: "SHA-512" }, r = []; + }, 5632: (D, e, h) => { + e.pbkdf2 = h(8638), e.pbkdf2Sync = h(1257); + }, 8638: (D, e, h) => { + var w, O, k = h(9509).Buffer, S = h(7357), a = h(2368), t = h(1257), c = h(7777), u = h.g.crypto && h.g.crypto.subtle, s = { sha: "SHA-1", "sha-1": "SHA-1", sha1: "SHA-1", sha256: "SHA-256", "sha-256": "SHA-256", sha384: "SHA-384", "sha-384": "SHA-384", "sha-512": "SHA-512", sha512: "SHA-512" }, r = []; function n() { - return O || (O = p.g.process && p.g.process.nextTick ? p.g.process.nextTick : p.g.queueMicrotask ? p.g.queueMicrotask : p.g.setImmediate ? p.g.setImmediate : p.g.setTimeout); + return O || (O = h.g.process && h.g.process.nextTick ? h.g.process.nextTick : h.g.queueMicrotask ? h.g.queueMicrotask : h.g.setImmediate ? h.g.setImmediate : h.g.setTimeout); } - function o(i, f, d, h, _) { + function o(i, f, d, p, _) { return u.importKey("raw", i, { name: "PBKDF2" }, !1, ["deriveBits"]).then(function(b) { - return u.deriveBits({ name: "PBKDF2", salt: f, iterations: d, hash: { name: _ } }, b, h << 3); + return u.deriveBits({ name: "PBKDF2", salt: f, iterations: d, hash: { name: _ } }, b, p << 3); }).then(function(b) { return k.from(b); }); } - D.exports = function(i, f, d, h, _, b) { + D.exports = function(i, f, d, p, _, b) { typeof _ == "function" && (b = _, _ = void 0); var I = s[(_ = _ || "sha1").toLowerCase()]; - if (I && typeof p.g.Promise == "function") { - if (S(d, h), i = c(i, a, "Password"), f = c(f, a, "Salt"), typeof b != "function") + if (I && typeof h.g.Promise == "function") { + if (S(d, p), i = c(i, a, "Password"), f = c(f, a, "Salt"), typeof b != "function") throw new Error("No callback provided to pbkdf2"); (function(l, j) { l.then(function(M) { @@ -13979,7 +13979,7 @@ Please pass a 2048 word array explicitly.`; }); }); })(function(l) { - if (p.g.process && !p.g.process.browser || !u || !u.importKey || !u.deriveBits) + if (h.g.process && !h.g.process.browser || !u || !u.importKey || !u.deriveBits) return Promise.resolve(!1); if (r[l] !== void 0) return r[l]; @@ -13990,36 +13990,36 @@ Please pass a 2048 word array explicitly.`; }); return r[l] = j, j; }(I).then(function(l) { - return l ? o(i, f, d, h, I) : t(i, f, d, h, _); + return l ? o(i, f, d, p, I) : t(i, f, d, p, _); }), b); } else n()(function() { var l; try { - l = t(i, f, d, h, _); + l = t(i, f, d, p, _); } catch (j) { return b(j); } b(null, l); }); }; - }, 2368: (D, e, p) => { - var w, O = p(4155); - w = p.g.process && p.g.process.browser ? "utf-8" : p.g.process && p.g.process.version ? parseInt(O.version.split(".")[0].slice(1), 10) >= 6 ? "utf-8" : "binary" : "utf-8", D.exports = w; + }, 2368: (D, e, h) => { + var w, O = h(4155); + w = h.g.process && h.g.process.browser ? "utf-8" : h.g.process && h.g.process.version ? parseInt(O.version.split(".")[0].slice(1), 10) >= 6 ? "utf-8" : "binary" : "utf-8", D.exports = w; }, 7357: (D) => { var e = Math.pow(2, 30) - 1; - D.exports = function(p, w) { - if (typeof p != "number") + D.exports = function(h, w) { + if (typeof h != "number") throw new TypeError("Iterations not a number"); - if (p < 0) + if (h < 0) throw new TypeError("Bad iterations"); if (typeof w != "number") throw new TypeError("Key length not a number"); if (w < 0 || w > e || w != w) throw new TypeError("Bad key length"); }; - }, 1257: (D, e, p) => { - var w = p(8028), O = p(9785), k = p(9072), S = p(9509).Buffer, a = p(7357), t = p(2368), c = p(7777), u = S.alloc(128), s = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 }; + }, 1257: (D, e, h) => { + var w = h(8028), O = h(9785), k = h(9072), S = h(9509).Buffer, a = h(7357), t = h(2368), c = h(7777), u = S.alloc(128), s = { md5: 16, sha1: 20, sha224: 28, sha256: 32, sha384: 48, sha512: 64, rmd160: 20, ripemd160: 20 }; function r(n, o, i) { var f = function(l) { return l === "rmd160" || l === "ripemd160" ? function(j) { @@ -14029,21 +14029,21 @@ Please pass a 2048 word array explicitly.`; }; }(n), d = n === "sha512" || n === "sha384" ? 128 : 64; o.length > d ? o = f(o) : o.length < d && (o = S.concat([o, u], d)); - for (var h = S.allocUnsafe(d + s[n]), _ = S.allocUnsafe(d + s[n]), b = 0; b < d; b++) - h[b] = 54 ^ o[b], _[b] = 92 ^ o[b]; + for (var p = S.allocUnsafe(d + s[n]), _ = S.allocUnsafe(d + s[n]), b = 0; b < d; b++) + p[b] = 54 ^ o[b], _[b] = 92 ^ o[b]; var I = S.allocUnsafe(d + i + 4); - h.copy(I, 0, 0, d), this.ipad1 = I, this.ipad2 = h, this.opad = _, this.alg = n, this.blocksize = d, this.hash = f, this.size = s[n]; + p.copy(I, 0, 0, d), this.ipad1 = I, this.ipad2 = p, this.opad = _, this.alg = n, this.blocksize = d, this.hash = f, this.size = s[n]; } r.prototype.run = function(n, o) { return n.copy(o, this.blocksize), this.hash(o).copy(this.opad, this.blocksize), this.hash(this.opad); }, D.exports = function(n, o, i, f, d) { a(i, f); - var h = new r(d = d || "sha1", n = c(n, t, "Password"), (o = c(o, t, "Salt")).length), _ = S.allocUnsafe(f), b = S.allocUnsafe(o.length + 4); + var p = new r(d = d || "sha1", n = c(n, t, "Password"), (o = c(o, t, "Salt")).length), _ = S.allocUnsafe(f), b = S.allocUnsafe(o.length + 4); o.copy(b, 0, 0, o.length); for (var I = 0, l = s[d], j = Math.ceil(f / l), M = 1; M <= j; M++) { b.writeUInt32BE(M, o.length); - for (var N = h.run(b, h.ipad1), C = N, x = 1; x < i; x++) { - C = h.run(C, h.ipad2); + for (var N = p.run(b, p.ipad1), C = N, x = 1; x < i; x++) { + C = p.run(C, p.ipad2); for (var P = 0; P < l; P++) N[P] ^= C[P]; } @@ -14051,8 +14051,8 @@ Please pass a 2048 word array explicitly.`; } return _; }; - }, 7777: (D, e, p) => { - var w = p(9509).Buffer; + }, 7777: (D, e, h) => { + var w = h(9509).Buffer; D.exports = function(O, k, S) { if (w.isBuffer(O)) return O; @@ -14063,7 +14063,7 @@ Please pass a 2048 word array explicitly.`; throw new TypeError(S + " must be a string, a Buffer, a typed array or a DataView"); }; }, 4155: (D) => { - var e, p, w = D.exports = {}; + var e, h, w = D.exports = {}; function O() { throw new Error("setTimeout has not been defined"); } @@ -14092,9 +14092,9 @@ Please pass a 2048 word array explicitly.`; e = O; } try { - p = typeof clearTimeout == "function" ? clearTimeout : k; + h = typeof clearTimeout == "function" ? clearTimeout : k; } catch { - p = k; + h = k; } })(); var a, t = [], c = !1, u = -1; @@ -14111,17 +14111,17 @@ Please pass a 2048 word array explicitly.`; u = -1, f = t.length; } a = null, c = !1, function(d) { - if (p === clearTimeout) + if (h === clearTimeout) return clearTimeout(d); - if ((p === k || !p) && clearTimeout) - return p = clearTimeout, clearTimeout(d); + if ((h === k || !h) && clearTimeout) + return h = clearTimeout, clearTimeout(d); try { - return p(d); + return h(d); } catch { try { - return p.call(null, d); + return h.call(null, d); } catch { - return p.call(this, d); + return h.call(this, d); } } }(i); @@ -14151,17 +14151,17 @@ Please pass a 2048 word array explicitly.`; }, w.umask = function() { return 0; }; - }, 2100: (D, e, p) => { - D.exports = p(9482); - }, 9482: (D, e, p) => { + }, 2100: (D, e, h) => { + D.exports = h(9482); + }, 9482: (D, e, h) => { var w = e; function O() { w.util._configure(), w.Writer._configure(w.BufferWriter), w.Reader._configure(w.BufferReader); } - w.build = "minimal", w.Writer = p(1173), w.BufferWriter = p(3155), w.Reader = p(1408), w.BufferReader = p(593), w.util = p(9693), w.rpc = p(5994), w.roots = p(5054), w.configure = O, O(); - }, 1408: (D, e, p) => { + w.build = "minimal", w.Writer = h(1173), w.BufferWriter = h(3155), w.Reader = h(1408), w.BufferReader = h(593), w.util = h(9693), w.rpc = h(5994), w.roots = h(5054), w.configure = O, O(); + }, 1408: (D, e, h) => { D.exports = t; - var w, O = p(9693), k = O.LongBits, S = O.utf8; + var w, O = h(9693), k = O.LongBits, S = O.utf8; function a(i, f) { return RangeError("index out of range: " + i.pos + " + " + (f || 1) + " > " + i.len); } @@ -14258,8 +14258,8 @@ Please pass a 2048 word array explicitly.`; if (this.pos += i, Array.isArray(this.buf)) return this.buf.slice(f, d); if (f === d) { - var h = O.Buffer; - return h ? h.alloc(0) : new this.buf.constructor(0); + var p = O.Buffer; + return p ? p.alloc(0) : new this.buf.constructor(0); } return this._slice.call(this.buf, f, d); }, t.prototype.string = function() { @@ -14313,11 +14313,11 @@ Please pass a 2048 word array explicitly.`; return o.call(this)[f](!1); } }); }; - }, 593: (D, e, p) => { + }, 593: (D, e, h) => { D.exports = k; - var w = p(1408); + var w = h(1408); (k.prototype = Object.create(w.prototype)).constructor = k; - var O = p(9693); + var O = h(9693); function k(S) { w.call(this, S); } @@ -14329,11 +14329,11 @@ Please pass a 2048 word array explicitly.`; }, k._configure(); }, 5054: (D) => { D.exports = {}; - }, 5994: (D, e, p) => { - e.Service = p(7948); - }, 7948: (D, e, p) => { + }, 5994: (D, e, h) => { + e.Service = h(7948); + }, 7948: (D, e, h) => { D.exports = O; - var w = p(9693); + var w = h(9693); function O(k, S, a) { if (typeof k != "function") throw TypeError("rpcImpl must be a function"); @@ -14373,9 +14373,9 @@ Please pass a 2048 word array explicitly.`; }, O.prototype.end = function(k) { return this.rpcImpl && (k || this.rpcImpl(null, null, null), this.rpcImpl = null, this.emit("end").off()), this; }; - }, 2630: (D, e, p) => { + }, 2630: (D, e, h) => { D.exports = O; - var w = p(9693); + var w = h(9693); function O(t, c) { this.lo = t >>> 0, this.hi = c >>> 0; } @@ -14428,7 +14428,7 @@ Please pass a 2048 word array explicitly.`; var t = this.lo, c = (this.lo >>> 28 | this.hi << 4) >>> 0, u = this.hi >>> 24; return u === 0 ? c === 0 ? t < 16384 ? t < 128 ? 1 : 2 : t < 2097152 ? 3 : 4 : c < 16384 ? c < 128 ? 5 : 6 : c < 2097152 ? 7 : 8 : u < 128 ? 9 : 10; }; - }, 9693: function(D, e, p) { + }, 9693: function(D, e, h) { var w = e; function O(S, a, t) { for (var c = Object.keys(a), u = 0; u < c.length; ++u) @@ -14449,7 +14449,7 @@ Please pass a 2048 word array explicitly.`; return this.name + ": " + this.message; }, writable: !0, enumerable: !1, configurable: !0 } }), a; } - w.asPromise = p(4537), w.base64 = p(7419), w.EventEmitter = p(9211), w.float = p(945), w.inquire = p(7199), w.utf8 = p(4997), w.pool = p(6662), w.LongBits = p(2630), w.isNode = !!(p.g !== void 0 && p.g && p.g.process && p.g.process.versions && p.g.process.versions.node), w.global = w.isNode && p.g || typeof window < "u" && window || typeof self < "u" && self || this, w.emptyArray = Object.freeze ? Object.freeze([]) : [], w.emptyObject = Object.freeze ? Object.freeze({}) : {}, w.isInteger = Number.isInteger || function(S) { + w.asPromise = h(4537), w.base64 = h(7419), w.EventEmitter = h(9211), w.float = h(945), w.inquire = h(7199), w.utf8 = h(4997), w.pool = h(6662), w.LongBits = h(2630), w.isNode = !!(h.g !== void 0 && h.g && h.g.process && h.g.process.versions && h.g.process.versions.node), w.global = w.isNode && h.g || typeof window < "u" && window || typeof self < "u" && self || this, w.emptyArray = Object.freeze ? Object.freeze([]) : [], w.emptyObject = Object.freeze ? Object.freeze({}) : {}, w.isInteger = Number.isInteger || function(S) { return typeof S == "number" && isFinite(S) && Math.floor(S) === S; }, w.isString = function(S) { return typeof S == "string" || S instanceof String; @@ -14495,16 +14495,16 @@ Please pass a 2048 word array explicitly.`; return new S(a); }) : w._Buffer_from = w._Buffer_allocUnsafe = null; }; - }, 1173: (D, e, p) => { + }, 1173: (D, e, h) => { D.exports = s; - var w, O = p(9693), k = O.LongBits, S = O.base64, a = O.utf8; - function t(h, _, b) { - this.fn = h, this.len = _, this.next = void 0, this.val = b; + var w, O = h(9693), k = O.LongBits, S = O.base64, a = O.utf8; + function t(p, _, b) { + this.fn = p, this.len = _, this.next = void 0, this.val = b; } function c() { } - function u(h) { - this.head = h.head, this.tail = h.tail, this.len = h.len, this.next = h.states; + function u(p) { + this.head = p.head, this.tail = p.tail, this.len = p.len, this.next = p.states; } function s() { this.len = 0, this.head = new t(c, 0, 0), this.tail = this.head, this.states = null; @@ -14518,91 +14518,91 @@ Please pass a 2048 word array explicitly.`; return new s(); }; }; - function n(h, _, b) { - _[b] = 255 & h; - } - function o(h, _) { - this.len = h, this.next = void 0, this.val = _; - } - function i(h, _, b) { - for (; h.hi; ) - _[b++] = 127 & h.lo | 128, h.lo = (h.lo >>> 7 | h.hi << 25) >>> 0, h.hi >>>= 7; - for (; h.lo > 127; ) - _[b++] = 127 & h.lo | 128, h.lo = h.lo >>> 7; - _[b++] = h.lo; - } - function f(h, _, b) { - _[b] = 255 & h, _[b + 1] = h >>> 8 & 255, _[b + 2] = h >>> 16 & 255, _[b + 3] = h >>> 24; - } - s.create = r(), s.alloc = function(h) { - return new O.Array(h); - }, O.Array !== Array && (s.alloc = O.pool(s.alloc, O.Array.prototype.subarray)), s.prototype._push = function(h, _, b) { - return this.tail = this.tail.next = new t(h, _, b), this.len += _, this; - }, o.prototype = Object.create(t.prototype), o.prototype.fn = function(h, _, b) { - for (; h > 127; ) - _[b++] = 127 & h | 128, h >>>= 7; - _[b] = h; - }, s.prototype.uint32 = function(h) { - return this.len += (this.tail = this.tail.next = new o((h >>>= 0) < 128 ? 1 : h < 16384 ? 2 : h < 2097152 ? 3 : h < 268435456 ? 4 : 5, h)).len, this; - }, s.prototype.int32 = function(h) { - return h < 0 ? this._push(i, 10, k.fromNumber(h)) : this.uint32(h); - }, s.prototype.sint32 = function(h) { - return this.uint32((h << 1 ^ h >> 31) >>> 0); - }, s.prototype.uint64 = function(h) { - var _ = k.from(h); + function n(p, _, b) { + _[b] = 255 & p; + } + function o(p, _) { + this.len = p, this.next = void 0, this.val = _; + } + function i(p, _, b) { + for (; p.hi; ) + _[b++] = 127 & p.lo | 128, p.lo = (p.lo >>> 7 | p.hi << 25) >>> 0, p.hi >>>= 7; + for (; p.lo > 127; ) + _[b++] = 127 & p.lo | 128, p.lo = p.lo >>> 7; + _[b++] = p.lo; + } + function f(p, _, b) { + _[b] = 255 & p, _[b + 1] = p >>> 8 & 255, _[b + 2] = p >>> 16 & 255, _[b + 3] = p >>> 24; + } + s.create = r(), s.alloc = function(p) { + return new O.Array(p); + }, O.Array !== Array && (s.alloc = O.pool(s.alloc, O.Array.prototype.subarray)), s.prototype._push = function(p, _, b) { + return this.tail = this.tail.next = new t(p, _, b), this.len += _, this; + }, o.prototype = Object.create(t.prototype), o.prototype.fn = function(p, _, b) { + for (; p > 127; ) + _[b++] = 127 & p | 128, p >>>= 7; + _[b] = p; + }, s.prototype.uint32 = function(p) { + return this.len += (this.tail = this.tail.next = new o((p >>>= 0) < 128 ? 1 : p < 16384 ? 2 : p < 2097152 ? 3 : p < 268435456 ? 4 : 5, p)).len, this; + }, s.prototype.int32 = function(p) { + return p < 0 ? this._push(i, 10, k.fromNumber(p)) : this.uint32(p); + }, s.prototype.sint32 = function(p) { + return this.uint32((p << 1 ^ p >> 31) >>> 0); + }, s.prototype.uint64 = function(p) { + var _ = k.from(p); return this._push(i, _.length(), _); - }, s.prototype.int64 = s.prototype.uint64, s.prototype.sint64 = function(h) { - var _ = k.from(h).zzEncode(); + }, s.prototype.int64 = s.prototype.uint64, s.prototype.sint64 = function(p) { + var _ = k.from(p).zzEncode(); return this._push(i, _.length(), _); - }, s.prototype.bool = function(h) { - return this._push(n, 1, h ? 1 : 0); - }, s.prototype.fixed32 = function(h) { - return this._push(f, 4, h >>> 0); - }, s.prototype.sfixed32 = s.prototype.fixed32, s.prototype.fixed64 = function(h) { - var _ = k.from(h); + }, s.prototype.bool = function(p) { + return this._push(n, 1, p ? 1 : 0); + }, s.prototype.fixed32 = function(p) { + return this._push(f, 4, p >>> 0); + }, s.prototype.sfixed32 = s.prototype.fixed32, s.prototype.fixed64 = function(p) { + var _ = k.from(p); return this._push(f, 4, _.lo)._push(f, 4, _.hi); - }, s.prototype.sfixed64 = s.prototype.fixed64, s.prototype.float = function(h) { - return this._push(O.float.writeFloatLE, 4, h); - }, s.prototype.double = function(h) { - return this._push(O.float.writeDoubleLE, 8, h); - }; - var d = O.Array.prototype.set ? function(h, _, b) { - _.set(h, b); - } : function(h, _, b) { - for (var I = 0; I < h.length; ++I) - _[b + I] = h[I]; - }; - s.prototype.bytes = function(h) { - var _ = h.length >>> 0; + }, s.prototype.sfixed64 = s.prototype.fixed64, s.prototype.float = function(p) { + return this._push(O.float.writeFloatLE, 4, p); + }, s.prototype.double = function(p) { + return this._push(O.float.writeDoubleLE, 8, p); + }; + var d = O.Array.prototype.set ? function(p, _, b) { + _.set(p, b); + } : function(p, _, b) { + for (var I = 0; I < p.length; ++I) + _[b + I] = p[I]; + }; + s.prototype.bytes = function(p) { + var _ = p.length >>> 0; if (!_) return this._push(n, 1, 0); - if (O.isString(h)) { - var b = s.alloc(_ = S.length(h)); - S.decode(h, b, 0), h = b; - } - return this.uint32(_)._push(d, _, h); - }, s.prototype.string = function(h) { - var _ = a.length(h); - return _ ? this.uint32(_)._push(a.write, _, h) : this._push(n, 1, 0); + if (O.isString(p)) { + var b = s.alloc(_ = S.length(p)); + S.decode(p, b, 0), p = b; + } + return this.uint32(_)._push(d, _, p); + }, s.prototype.string = function(p) { + var _ = a.length(p); + return _ ? this.uint32(_)._push(a.write, _, p) : this._push(n, 1, 0); }, s.prototype.fork = function() { return this.states = new u(this), this.head = this.tail = new t(c, 0, 0), this.len = 0, this; }, s.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 t(c, 0, 0), this.len = 0), this; }, s.prototype.ldelim = function() { - var h = this.head, _ = this.tail, b = this.len; - return this.reset().uint32(b), b && (this.tail.next = h.next, this.tail = _, this.len += b), this; + var p = this.head, _ = this.tail, b = this.len; + return this.reset().uint32(b), b && (this.tail.next = p.next, this.tail = _, this.len += b), this; }, s.prototype.finish = function() { - for (var h = this.head.next, _ = this.constructor.alloc(this.len), b = 0; h; ) - h.fn(h.val, _, b), b += h.len, h = h.next; + for (var p = this.head.next, _ = this.constructor.alloc(this.len), b = 0; p; ) + p.fn(p.val, _, b), b += p.len, p = p.next; return _; - }, s._configure = function(h) { - w = h, s.create = r(), w._configure(); + }, s._configure = function(p) { + w = p, s.create = r(), w._configure(); }; - }, 3155: (D, e, p) => { + }, 3155: (D, e, h) => { D.exports = k; - var w = p(1173); + var w = h(1173); (k.prototype = Object.create(w.prototype)).constructor = k; - var O = p(9693); + var O = h(9693); function k() { w.call(this); } @@ -14627,8 +14627,8 @@ Please pass a 2048 word array explicitly.`; var t = O.Buffer.byteLength(a); return this.uint32(t), t && this._push(S, t, a), this; }, k._configure(); - }, 1798: (D, e, p) => { - var w = p(4155), O = 65536, k = p(9509).Buffer, S = p.g.crypto || p.g.msCrypto; + }, 1798: (D, e, h) => { + var w = h(4155), O = 65536, k = h(9509).Buffer, S = h.g.crypto || h.g.msCrypto; S && S.getRandomValues ? D.exports = function(a, t) { if (a > 4294967295) throw new RangeError("requested too many random bytes"); @@ -14648,7 +14648,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }; }, 4281: (D) => { var e = {}; - function p(O, k, S) { + function h(O, k, S) { S || (S = Error); var a = function(t) { var c, u; @@ -14670,9 +14670,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } return "of ".concat(k, " ").concat(String(O)); } - p("ERR_INVALID_OPT_VALUE", function(O, k) { + h("ERR_INVALID_OPT_VALUE", function(O, k) { return 'The value "' + k + '" is invalid for option "' + O + '"'; - }, TypeError), p("ERR_INVALID_ARG_TYPE", function(O, k, S) { + }, TypeError), h("ERR_INVALID_ARG_TYPE", function(O, k, S) { var a, t, c, u, s; if (typeof k == "string" && (t = "not ", k.substr(0, 4) === t) ? (a = "must not be", k = k.replace(/^not /, "")) : a = "must be", function(n, o, i) { return (i === void 0 || i > n.length) && (i = n.length), n.substring(i - 9, i) === o; @@ -14683,23 +14683,23 @@ Use Chrome, Firefox or Internet Explorer 11`); c = 'The "'.concat(O, '" ').concat(r, " ").concat(a, " ").concat(w(k, "type")); } return c + ". Received type ".concat(typeof S); - }, TypeError), p("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), p("ERR_METHOD_NOT_IMPLEMENTED", function(O) { + }, TypeError), h("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), h("ERR_METHOD_NOT_IMPLEMENTED", function(O) { return "The " + O + " method is not implemented"; - }), p("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), p("ERR_STREAM_DESTROYED", function(O) { + }), h("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), h("ERR_STREAM_DESTROYED", function(O) { return "Cannot call " + O + " after a stream was destroyed"; - }), p("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), p("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), p("ERR_STREAM_WRITE_AFTER_END", "write after end"), p("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), p("ERR_UNKNOWN_ENCODING", function(O) { + }), h("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), h("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), h("ERR_STREAM_WRITE_AFTER_END", "write after end"), h("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), h("ERR_UNKNOWN_ENCODING", function(O) { return "Unknown encoding: " + O; - }, TypeError), p("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), D.exports.q = e; - }, 6753: (D, e, p) => { - var w = p(4155), O = Object.keys || function(n) { + }, TypeError), h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), D.exports.q = e; + }, 6753: (D, e, h) => { + var w = h(4155), O = Object.keys || function(n) { var o = []; for (var i in n) o.push(i); return o; }; D.exports = u; - var k = p(9481), S = p(4229); - p(5717)(u, k); + var k = h(9481), S = h(4229); + h(5717)(u, k); for (var a = O(S.prototype), t = 0; t < a.length; t++) { var c = a[t]; u.prototype[c] || (u.prototype[c] = S.prototype[c]); @@ -14726,34 +14726,34 @@ Use Chrome, Firefox or Internet Explorer 11`); }, set: function(n) { this._readableState !== void 0 && this._writableState !== void 0 && (this._readableState.destroyed = n, this._writableState.destroyed = n); } }); - }, 2725: (D, e, p) => { + }, 2725: (D, e, h) => { D.exports = O; - var w = p(4605); + var w = h(4605); function O(k) { if (!(this instanceof O)) return new O(k); w.call(this, k); } - p(5717)(O, w), O.prototype._transform = function(k, S, a) { + h(5717)(O, w), O.prototype._transform = function(k, S, a) { a(null, k); }; - }, 9481: (D, e, p) => { - var w, O = p(4155); - D.exports = N, N.ReadableState = M, p(7187).EventEmitter; + }, 9481: (D, e, h) => { + var w, O = h(4155); + D.exports = N, N.ReadableState = M, h(7187).EventEmitter; var k, S = function(W, Y) { return W.listeners(Y).length; - }, a = p(2503), t = p(8764).Buffer, c = (p.g !== void 0 ? p.g : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { - }, u = p(4616); + }, a = h(2503), t = h(8764).Buffer, c = (h.g !== void 0 ? h.g : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { + }, u = h(4616); k = u && u.debuglog ? u.debuglog("stream") : function() { }; - var s, r, n, o = p(7327), i = p(1195), f = p(2457).getHighWaterMark, d = p(4281).q, h = d.ERR_INVALID_ARG_TYPE, _ = d.ERR_STREAM_PUSH_AFTER_EOF, b = d.ERR_METHOD_NOT_IMPLEMENTED, I = d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; - p(5717)(N, a); + var s, r, n, o = h(7327), i = h(1195), f = h(2457).getHighWaterMark, d = h(4281).q, p = d.ERR_INVALID_ARG_TYPE, _ = d.ERR_STREAM_PUSH_AFTER_EOF, b = d.ERR_METHOD_NOT_IMPLEMENTED, I = d.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; + h(5717)(N, a); var l = i.errorOrDestroy, j = ["error", "close", "destroy", "pause", "resume"]; function M(W, Y, F) { - w = w || p(6753), W = W || {}, typeof F != "boolean" && (F = Y instanceof w), this.objectMode = !!W.objectMode, F && (this.objectMode = this.objectMode || !!W.readableObjectMode), this.highWaterMark = f(this, W, "readableHighWaterMark", F), this.buffer = new o(), 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 = W.emitClose !== !1, this.autoDestroy = !!W.autoDestroy, this.destroyed = !1, this.defaultEncoding = W.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, W.encoding && (s || (s = p(2553).s), this.decoder = new s(W.encoding), this.encoding = W.encoding); + w = w || h(6753), W = W || {}, typeof F != "boolean" && (F = Y instanceof w), this.objectMode = !!W.objectMode, F && (this.objectMode = this.objectMode || !!W.readableObjectMode), this.highWaterMark = f(this, W, "readableHighWaterMark", F), this.buffer = new o(), 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 = W.emitClose !== !1, this.autoDestroy = !!W.autoDestroy, this.destroyed = !1, this.defaultEncoding = W.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, W.encoding && (s || (s = h(2553).s), this.decoder = new s(W.encoding), this.encoding = W.encoding); } function N(W) { - if (w = w || p(6753), !(this instanceof N)) + if (w = w || h(6753), !(this instanceof N)) return new N(W); var Y = this instanceof w; this._readableState = new M(W, this, Y), this.readable = !0, W && (typeof W.read == "function" && (this._read = W.read), typeof W.destroy == "function" && (this._destroy = W.destroy)), a.call(this); @@ -14773,7 +14773,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }(W, ce); else if (he || (le = function(ve, de) { var pe, ye; - return ye = de, t.isBuffer(ye) || ye instanceof c || typeof de == "string" || de === void 0 || ve.objectMode || (pe = new h("chunk", ["string", "Buffer", "Uint8Array"], de)), pe; + return ye = de, t.isBuffer(ye) || ye instanceof c || typeof de == "string" || de === void 0 || ve.objectMode || (pe = new p("chunk", ["string", "Buffer", "Uint8Array"], de)), pe; }(ce, Y)), le) l(W, le); else if (ce.objectMode || Y && Y.length > 0) @@ -14809,7 +14809,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, N.prototype.isPaused = function() { return this._readableState.flowing === !1; }, N.prototype.setEncoding = function(W) { - s || (s = p(2553).s); + s || (s = h(2553).s); var Y = new s(W); this._readableState.decoder = Y, this._readableState.encoding = this._readableState.decoder.encoding; for (var F = this._readableState.buffer.head, ae = ""; F !== null; ) @@ -14990,7 +14990,7 @@ Use Chrome, Firefox or Internet Explorer 11`); k("wrapped _read", ce), ae && (ae = !1, W.resume()); }, this; }, typeof Symbol == "function" && (N.prototype[Symbol.asyncIterator] = function() { - return r === void 0 && (r = p(5850)), r(this); + return r === void 0 && (r = h(5850)), r(this); }), Object.defineProperty(N.prototype, "readableHighWaterMark", { enumerable: !1, get: function() { return this._readableState.highWaterMark; } }), Object.defineProperty(N.prototype, "readableBuffer", { enumerable: !1, get: function() { @@ -15002,11 +15002,11 @@ Use Chrome, Firefox or Internet Explorer 11`); } }), N._fromList = J, Object.defineProperty(N.prototype, "readableLength", { enumerable: !1, get: function() { return this._readableState.length; } }), typeof Symbol == "function" && (N.from = function(W, Y) { - return n === void 0 && (n = p(5167)), n(N, W, Y); + return n === void 0 && (n = h(5167)), n(N, W, Y); }); - }, 4605: (D, e, p) => { + }, 4605: (D, e, h) => { D.exports = u; - var w = p(4281).q, O = w.ERR_METHOD_NOT_IMPLEMENTED, k = w.ERR_MULTIPLE_CALLBACK, S = w.ERR_TRANSFORM_ALREADY_TRANSFORMING, a = w.ERR_TRANSFORM_WITH_LENGTH_0, t = p(6753); + var w = h(4281).q, O = w.ERR_METHOD_NOT_IMPLEMENTED, k = w.ERR_MULTIPLE_CALLBACK, S = w.ERR_TRANSFORM_ALREADY_TRANSFORMING, a = w.ERR_TRANSFORM_WITH_LENGTH_0, t = h(6753); function c(n, o) { var i = this._transformState; i.transforming = !1; @@ -15037,7 +15037,7 @@ Use Chrome, Firefox or Internet Explorer 11`); throw new S(); return n.push(null); } - p(5717)(u, t), u.prototype.push = function(n, o) { + h(5717)(u, t), u.prototype.push = function(n, o) { return this._transformState.needTransform = !1, t.prototype.push.call(this, n, o); }, u.prototype._transform = function(n, o, i) { i(new O("_transform()")); @@ -15055,8 +15055,8 @@ Use Chrome, Firefox or Internet Explorer 11`); o(i); }); }; - }, 4229: (D, e, p) => { - var w, O = p(4155); + }, 4229: (D, e, h) => { + var w, O = h(4155); function k(B) { var T = this; this.next = null, this.entry = null, this.finish = function() { @@ -15071,12 +15071,12 @@ Use Chrome, Firefox or Internet Explorer 11`); }; } D.exports = N, N.WritableState = M; - var S, a = { deprecate: p(4927) }, t = p(2503), c = p(8764).Buffer, u = (p.g !== void 0 ? p.g : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { - }, s = p(1195), r = p(2457).getHighWaterMark, n = p(4281).q, o = n.ERR_INVALID_ARG_TYPE, i = n.ERR_METHOD_NOT_IMPLEMENTED, f = n.ERR_MULTIPLE_CALLBACK, d = n.ERR_STREAM_CANNOT_PIPE, h = n.ERR_STREAM_DESTROYED, _ = n.ERR_STREAM_NULL_VALUES, b = n.ERR_STREAM_WRITE_AFTER_END, I = n.ERR_UNKNOWN_ENCODING, l = s.errorOrDestroy; + var S, a = { deprecate: h(4927) }, t = h(2503), c = h(8764).Buffer, u = (h.g !== void 0 ? h.g : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() { + }, s = h(1195), r = h(2457).getHighWaterMark, n = h(4281).q, o = n.ERR_INVALID_ARG_TYPE, i = n.ERR_METHOD_NOT_IMPLEMENTED, f = n.ERR_MULTIPLE_CALLBACK, d = n.ERR_STREAM_CANNOT_PIPE, p = n.ERR_STREAM_DESTROYED, _ = n.ERR_STREAM_NULL_VALUES, b = n.ERR_STREAM_WRITE_AFTER_END, I = n.ERR_UNKNOWN_ENCODING, l = s.errorOrDestroy; function j() { } function M(B, T, q) { - w = w || p(6753), B = B || {}, typeof q != "boolean" && (q = T instanceof w), this.objectMode = !!B.objectMode, q && (this.objectMode = this.objectMode || !!B.writableObjectMode), this.highWaterMark = r(this, B, "writableHighWaterMark", q), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; + w = w || h(6753), B = B || {}, typeof q != "boolean" && (q = T instanceof w), this.objectMode = !!B.objectMode, q && (this.objectMode = this.objectMode || !!B.writableObjectMode), this.highWaterMark = r(this, B, "writableHighWaterMark", q), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1; var te = B.decodeStrings === !1; this.decodeStrings = !te, this.defaultEncoding = B.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(re) { (function(ie, J) { @@ -15097,13 +15097,13 @@ Use Chrome, Firefox or Internet Explorer 11`); }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = B.emitClose !== !1, this.autoDestroy = !!B.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new k(this); } function N(B) { - var T = this instanceof (w = w || p(6753)); + var T = this instanceof (w = w || h(6753)); if (!T && !S.call(N, this)) return new N(B); this._writableState = new M(B, this, T), this.writable = !0, B && (typeof B.write == "function" && (this._write = B.write), typeof B.writev == "function" && (this._writev = B.writev), typeof B.destroy == "function" && (this._destroy = B.destroy), typeof B.final == "function" && (this._final = B.final)), t.call(this); } function C(B, T, q, te, re, ie, J) { - T.writelen = te, T.writecb = J, T.writing = !0, T.sync = !0, T.destroyed ? T.onwrite(new h("write")) : q ? B._writev(re, T.onwrite) : B._write(re, ie, T.onwrite), T.sync = !1; + T.writelen = te, T.writecb = J, T.writing = !0, T.sync = !0, T.destroyed ? T.onwrite(new p("write")) : q ? B._writev(re, T.onwrite) : B._write(re, ie, T.onwrite), T.sync = !1; } function x(B, T, q, te) { q || function(re, ie) { @@ -15147,7 +15147,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } return q; } - p(5717)(N, t), M.prototype.getBuffer = function() { + h(5717)(N, t), M.prototype.getBuffer = function() { for (var B = this.bufferedRequest, T = []; B; ) T.push(B), B = B.next; return T; @@ -15220,8 +15220,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } }), N.prototype.destroy = s.destroy, N.prototype._undestroy = s.undestroy, N.prototype._destroy = function(B, T) { T(B); }; - }, 5850: (D, e, p) => { - var w, O = p(4155); + }, 5850: (D, e, h) => { + var w, O = h(4155); function k(_, b, I) { return (b = function(l) { var j = function(M, N) { @@ -15239,7 +15239,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return typeof j == "symbol" ? j : String(j); }(b)) in _ ? Object.defineProperty(_, b, { value: I, enumerable: !0, configurable: !0, writable: !0 }) : _[b] = I, _; } - var S = p(8610), a = Symbol("lastResolve"), t = Symbol("lastReject"), c = Symbol("error"), u = Symbol("ended"), s = Symbol("lastPromise"), r = Symbol("handlePromise"), n = Symbol("stream"); + var S = h(8610), a = Symbol("lastResolve"), t = Symbol("lastReject"), c = Symbol("error"), u = Symbol("ended"), s = Symbol("lastPromise"), r = Symbol("handlePromise"), n = Symbol("stream"); function o(_, b) { return { value: _, done: b }; } @@ -15254,7 +15254,7 @@ Use Chrome, Firefox or Internet Explorer 11`); O.nextTick(i, _); } var d = Object.getPrototypeOf(function() { - }), h = Object.setPrototypeOf((k(w = { get stream() { + }), p = Object.setPrototypeOf((k(w = { get stream() { return this[n]; }, next: function() { var _ = this, b = this[c]; @@ -15295,7 +15295,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }), w), d); D.exports = function(_) { - var b, I = Object.create(h, (k(b = {}, n, { value: _, writable: !0 }), k(b, a, { value: null, writable: !0 }), k(b, t, { value: null, writable: !0 }), k(b, c, { value: null, writable: !0 }), k(b, u, { value: _._readableState.endEmitted, writable: !0 }), k(b, r, { value: function(l, j) { + var b, I = Object.create(p, (k(b = {}, n, { value: _, writable: !0 }), k(b, a, { value: null, writable: !0 }), k(b, t, { value: null, writable: !0 }), k(b, c, { value: null, writable: !0 }), k(b, u, { value: _._readableState.endEmitted, writable: !0 }), k(b, r, { value: function(l, j) { var M = I[n].read(); M ? (I[s] = null, I[a] = null, I[t] = null, l(o(M, !1))) : (I[a] = l, I[t] = j); }, writable: !0 }), b)); @@ -15308,7 +15308,7 @@ Use Chrome, Firefox or Internet Explorer 11`); M !== null && (I[s] = null, I[a] = null, I[t] = null, M(o(void 0, !0))), I[u] = !0; }), _.on("readable", f.bind(null, I)), I; }; - }, 7327: (D, e, p) => { + }, 7327: (D, e, h) => { function w(s, r) { var n = Object.keys(s); if (Object.getOwnPropertySymbols) { @@ -15354,7 +15354,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }(s); return typeof r == "symbol" ? r : String(r); } - var t = p(8764).Buffer, c = p(2361).inspect, u = c && c.custom || "inspect"; + var t = h(8764).Buffer, c = h(2361).inspect, u = c && c.custom || "inspect"; D.exports = function() { function s() { (function(o, i) { @@ -15385,9 +15385,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } }, { key: "concat", value: function(o) { if (this.length === 0) return t.alloc(0); - for (var i, f, d, h = t.allocUnsafe(o >>> 0), _ = this.head, b = 0; _; ) - i = _.data, f = h, d = b, t.prototype.copy.call(i, f, d), b += _.data.length, _ = _.next; - return h; + for (var i, f, d, p = t.allocUnsafe(o >>> 0), _ = this.head, b = 0; _; ) + i = _.data, f = p, d = b, t.prototype.copy.call(i, f, d), b += _.data.length, _ = _.next; + return p; } }, { key: "consume", value: function(o, i) { var f; return o < this.head.data.length ? (f = this.head.data.slice(0, o), this.head.data = this.head.data.slice(o)) : f = o === this.head.data.length ? this.shift() : i ? this._getString(o) : this._getBuffer(o), f; @@ -15396,9 +15396,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } }, { key: "_getString", value: function(o) { var i = this.head, f = 1, d = i.data; for (o -= d.length; i = i.next; ) { - var h = i.data, _ = o > h.length ? h.length : o; - if (_ === h.length ? d += h : d += h.slice(0, o), (o -= _) == 0) { - _ === h.length ? (++f, i.next ? this.head = i.next : this.head = this.tail = null) : (this.head = i, i.data = h.slice(_)); + var p = i.data, _ = o > p.length ? p.length : o; + if (_ === p.length ? d += p : d += p.slice(0, o), (o -= _) == 0) { + _ === p.length ? (++f, i.next ? this.head = i.next : this.head = this.tail = null) : (this.head = i, i.data = p.slice(_)); break; } ++f; @@ -15407,9 +15407,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } }, { key: "_getBuffer", value: function(o) { var i = t.allocUnsafe(o), f = this.head, d = 1; for (f.data.copy(i), o -= f.data.length; f = f.next; ) { - var h = f.data, _ = o > h.length ? h.length : o; - if (h.copy(i, i.length - o, 0, _), (o -= _) == 0) { - _ === h.length ? (++d, f.next ? this.head = f.next : this.head = this.tail = null) : (this.head = f, f.data = h.slice(_)); + var p = f.data, _ = o > p.length ? p.length : o; + if (p.copy(i, i.length - o, 0, _), (o -= _) == 0) { + _ === p.length ? (++d, f.next ? this.head = f.next : this.head = this.tail = null) : (this.head = f, f.data = p.slice(_)); break; } ++d; @@ -15419,8 +15419,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return c(this, O(O({}, i), {}, { depth: 0, customInspect: !1 })); } }]) && S(r.prototype, n), Object.defineProperty(r, "prototype", { writable: !1 }), s; }(); - }, 1195: (D, e, p) => { - var w = p(4155); + }, 1195: (D, e, h) => { + var w = h(4155); function O(a, t) { S(a, t), k(a); } @@ -15441,8 +15441,8 @@ Use Chrome, Firefox or Internet Explorer 11`); var c = a._readableState, u = a._writableState; c && c.autoDestroy || u && u.autoDestroy ? a.destroy(t) : a.emit("error", t); } }; - }, 8610: (D, e, p) => { - var w = p(4281).q.ERR_STREAM_PREMATURE_CLOSE; + }, 8610: (D, e, h) => { + var w = h(4281).q.ERR_STREAM_PREMATURE_CLOSE; function O() { } D.exports = function k(S, a, t) { @@ -15470,21 +15470,21 @@ Use Chrome, Firefox or Internet Explorer 11`); }, d = function() { var _; return c && !o ? (S._readableState && S._readableState.ended || (_ = new w()), t.call(S, _)) : u && !r ? (S._writableState && S._writableState.ended || (_ = new w()), t.call(S, _)) : void 0; - }, h = function() { + }, p = function() { S.req.on("finish", n); }; return function(_) { return _.setHeader && typeof _.abort == "function"; - }(S) ? (S.on("complete", n), S.on("abort", d), S.req ? h() : S.on("request", h)) : u && !S._writableState && (S.on("end", s), S.on("close", s)), S.on("end", i), S.on("finish", n), a.error !== !1 && S.on("error", f), S.on("close", d), function() { - S.removeListener("complete", n), S.removeListener("abort", d), S.removeListener("request", h), S.req && S.req.removeListener("finish", n), S.removeListener("end", s), S.removeListener("close", s), S.removeListener("finish", n), S.removeListener("end", i), S.removeListener("error", f), S.removeListener("close", d); + }(S) ? (S.on("complete", n), S.on("abort", d), S.req ? p() : S.on("request", p)) : u && !S._writableState && (S.on("end", s), S.on("close", s)), S.on("end", i), S.on("finish", n), a.error !== !1 && S.on("error", f), S.on("close", d), function() { + S.removeListener("complete", n), S.removeListener("abort", d), S.removeListener("request", p), S.req && S.req.removeListener("finish", n), S.removeListener("end", s), S.removeListener("close", s), S.removeListener("finish", n), S.removeListener("end", i), S.removeListener("error", f), S.removeListener("close", d); }; }; }, 5167: (D) => { D.exports = function() { throw new Error("Readable.from is not available in the browser"); }; - }, 9946: (D, e, p) => { - var w, O = p(4281).q, k = O.ERR_MISSING_ARGS, S = O.ERR_STREAM_DESTROYED; + }, 9946: (D, e, h) => { + var w, O = h(4281).q, k = O.ERR_MISSING_ARGS, S = O.ERR_STREAM_DESTROYED; function a(u) { if (u) throw u; @@ -15504,7 +15504,7 @@ Use Chrome, Firefox or Internet Explorer 11`); if (Array.isArray(s[0]) && (s = s[0]), s.length < 2) throw new k("streams"); var i = s.map(function(f, d) { - var h = d < s.length - 1; + var p = d < s.length - 1; return function(_, b, I, l) { l = function(N) { var C = !1; @@ -15515,7 +15515,7 @@ Use Chrome, Firefox or Internet Explorer 11`); var j = !1; _.on("close", function() { j = !0; - }), w === void 0 && (w = p(8610)), w(_, { readable: b, writable: I }, function(N) { + }), w === void 0 && (w = h(8610)), w(_, { readable: b, writable: I }, function(N) { if (N) return l(N); j = !0, l(); @@ -15527,14 +15527,14 @@ Use Chrome, Firefox or Internet Explorer 11`); return C.setHeader && typeof C.abort == "function"; }(_) ? _.abort() : typeof _.destroy == "function" ? _.destroy() : void l(N || new S("pipe")); }; - }(f, h, d > 0, function(_) { - n || (n = _), _ && i.forEach(t), h || (i.forEach(t), o(n)); + }(f, p, d > 0, function(_) { + n || (n = _), _ && i.forEach(t), p || (i.forEach(t), o(n)); }); }); return s.reduce(c); }; - }, 2457: (D, e, p) => { - var w = p(4281).q.ERR_INVALID_OPT_VALUE; + }, 2457: (D, e, h) => { + var w = h(4281).q.ERR_INVALID_OPT_VALUE; D.exports = { getHighWaterMark: function(O, k, S, a) { var t = function(c, u, s) { return c.highWaterMark != null ? c.highWaterMark : u ? c[s] : null; @@ -15546,12 +15546,12 @@ Use Chrome, Firefox or Internet Explorer 11`); } return O.objectMode ? 16 : 16384; } }; - }, 2503: (D, e, p) => { - D.exports = p(7187).EventEmitter; - }, 8473: (D, e, p) => { - (e = D.exports = p(9481)).Stream = e, e.Readable = e, e.Writable = p(4229), e.Duplex = p(6753), e.Transform = p(4605), e.PassThrough = p(2725), e.finished = p(8610), e.pipeline = p(9946); - }, 9785: (D, e, p) => { - var w = p(8764).Buffer, O = p(5717), k = p(3349), S = new Array(16), a = [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], t = [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], c = [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], u = [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], s = [0, 1518500249, 1859775393, 2400959708, 2840853838], r = [1352829926, 1548603684, 1836072691, 2053994217, 0]; + }, 2503: (D, e, h) => { + D.exports = h(7187).EventEmitter; + }, 8473: (D, e, h) => { + (e = D.exports = h(9481)).Stream = e, e.Readable = e, e.Writable = h(4229), e.Duplex = h(6753), e.Transform = h(4605), e.PassThrough = h(2725), e.finished = h(8610), e.pipeline = h(9946); + }, 9785: (D, e, h) => { + var w = h(8764).Buffer, O = h(5717), k = h(3349), S = new Array(16), a = [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], t = [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], c = [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], u = [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], s = [0, 1518500249, 1859775393, 2400959708, 2840853838], r = [1352829926, 1548603684, 1836072691, 2053994217, 0]; function n() { k.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520; } @@ -15567,7 +15567,7 @@ Use Chrome, Firefox or Internet Explorer 11`); function d(b, I, l, j, M, N, C, x) { return o(b + ((I | ~l) ^ j) + N + C | 0, x) + M | 0; } - function h(b, I, l, j, M, N, C, x) { + function p(b, I, l, j, M, N, C, x) { return o(b + (I & j | l & ~j) + N + C | 0, x) + M | 0; } function _(b, I, l, j, M, N, C, x) { @@ -15578,7 +15578,7 @@ Use Chrome, Firefox or Internet Explorer 11`); b[I] = this._block.readInt32LE(4 * I); for (var l = 0 | this._a, j = 0 | this._b, M = 0 | this._c, N = 0 | this._d, C = 0 | this._e, x = 0 | this._a, P = 0 | this._b, v = 0 | this._c, m = 0 | this._d, E = 0 | this._e, B = 0; B < 80; B += 1) { var T, q; - B < 16 ? (T = i(l, j, M, N, C, b[a[B]], s[0], c[B]), q = _(x, P, v, m, E, b[t[B]], r[0], u[B])) : B < 32 ? (T = f(l, j, M, N, C, b[a[B]], s[1], c[B]), q = h(x, P, v, m, E, b[t[B]], r[1], u[B])) : B < 48 ? (T = d(l, j, M, N, C, b[a[B]], s[2], c[B]), q = d(x, P, v, m, E, b[t[B]], r[2], u[B])) : B < 64 ? (T = h(l, j, M, N, C, b[a[B]], s[3], c[B]), q = f(x, P, v, m, E, b[t[B]], r[3], u[B])) : (T = _(l, j, M, N, C, b[a[B]], s[4], c[B]), q = i(x, P, v, m, E, b[t[B]], r[4], u[B])), l = C, C = N, N = o(M, 10), M = j, j = T, x = E, E = m, m = o(v, 10), v = P, P = q; + B < 16 ? (T = i(l, j, M, N, C, b[a[B]], s[0], c[B]), q = _(x, P, v, m, E, b[t[B]], r[0], u[B])) : B < 32 ? (T = f(l, j, M, N, C, b[a[B]], s[1], c[B]), q = p(x, P, v, m, E, b[t[B]], r[1], u[B])) : B < 48 ? (T = d(l, j, M, N, C, b[a[B]], s[2], c[B]), q = d(x, P, v, m, E, b[t[B]], r[2], u[B])) : B < 64 ? (T = p(l, j, M, N, C, b[a[B]], s[3], c[B]), q = f(x, P, v, m, E, b[t[B]], r[3], u[B])) : (T = _(l, j, M, N, C, b[a[B]], s[4], c[B]), q = i(x, P, v, m, E, b[t[B]], r[4], u[B])), l = C, C = N, N = o(M, 10), M = j, j = T, x = E, E = m, m = o(v, 10), v = P, P = q; } var te = this._b + M + m | 0; this._b = this._c + N + E | 0, this._c = this._d + C + x | 0, this._d = this._e + l + P | 0, this._e = this._a + j + v | 0, this._a = te; @@ -15587,8 +15587,8 @@ Use Chrome, Firefox or Internet Explorer 11`); var b = w.alloc ? w.alloc(20) : new w(20); return b.writeInt32LE(this._a, 0), b.writeInt32LE(this._b, 4), b.writeInt32LE(this._c, 8), b.writeInt32LE(this._d, 12), b.writeInt32LE(this._e, 16), b; }, D.exports = n; - }, 9509: (D, e, p) => { - var w = p(8764), O = w.Buffer; + }, 9509: (D, e, h) => { + var w = h(8764), O = w.Buffer; function k(a, t) { for (var c in a) t[c] = a[c]; @@ -15614,13 +15614,13 @@ Use Chrome, Firefox or Internet Explorer 11`); throw new TypeError("Argument must be a number"); return w.SlowBuffer(a); }; - }, 64: function(D, e, p) { - var w, O = p(4155), k = p(8764).Buffer; + }, 64: function(D, e, h) { + var w, O = h(4155), k = h(8764).Buffer; (function(S) { function a(t, c) { if (c = c || { type: "Array" }, O !== void 0 && typeof O.pid == "number" && O.versions && O.versions.node) return function(u, s) { - var r = p(3954).randomBytes(u); + var r = h(3954).randomBytes(u); switch (s.type) { case "Array": return [].slice.call(r); @@ -15665,8 +15665,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return a(t, { type: "Buffer" }); }; })(); - }, 4189: (D, e, p) => { - var w = p(9509).Buffer; + }, 4189: (D, e, h) => { + var w = h(9509).Buffer; function O(k, S) { this._block = w.alloc(k), this._finalSize = S, this._blockSize = k, this._len = 0; } @@ -15694,7 +15694,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, O.prototype._update = function() { throw new Error("_update must be implemented by subclass"); }, D.exports = O; - }, 9072: (D, e, p) => { + }, 9072: (D, e, h) => { var w = D.exports = function(O) { O = O.toLowerCase(); var k = w[O]; @@ -15702,9 +15702,9 @@ Use Chrome, Firefox or Internet Explorer 11`); throw new Error(O + " is not supported (we accept pull requests)"); return new k(); }; - w.sha = p(4448), w.sha1 = p(8336), w.sha224 = p(8432), w.sha256 = p(7499), w.sha384 = p(1686), w.sha512 = p(7816); - }, 4448: (D, e, p) => { - var w = p(5717), O = p(4189), k = p(9509).Buffer, S = [1518500249, 1859775393, -1894007588, -899497514], a = new Array(80); + w.sha = h(4448), w.sha1 = h(8336), w.sha224 = h(8432), w.sha256 = h(7499), w.sha384 = h(1686), w.sha512 = h(7816); + }, 4448: (D, e, h) => { + var w = h(5717), O = h(4189), k = h(9509).Buffer, S = [1518500249, 1859775393, -1894007588, -899497514], a = new Array(80); function t() { this.init(), this._w = a, O.call(this, 64, 56); } @@ -15717,21 +15717,21 @@ Use Chrome, Firefox or Internet Explorer 11`); w(t, O), t.prototype.init = function() { return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this; }, t.prototype._update = function(s) { - for (var r, n = this._w, o = 0 | this._a, i = 0 | this._b, f = 0 | this._c, d = 0 | this._d, h = 0 | this._e, _ = 0; _ < 16; ++_) + for (var r, n = this._w, o = 0 | this._a, i = 0 | this._b, f = 0 | this._c, d = 0 | this._d, p = 0 | this._e, _ = 0; _ < 16; ++_) n[_] = s.readInt32BE(4 * _); for (; _ < 80; ++_) n[_] = n[_ - 3] ^ n[_ - 8] ^ n[_ - 14] ^ n[_ - 16]; for (var b = 0; b < 80; ++b) { - var I = ~~(b / 20), l = 0 | ((r = o) << 5 | r >>> 27) + u(I, i, f, d) + h + n[b] + S[I]; - h = d, d = f, f = c(i), i = o, o = l; + var I = ~~(b / 20), l = 0 | ((r = o) << 5 | r >>> 27) + u(I, i, f, d) + p + n[b] + S[I]; + p = d, d = f, f = c(i), i = o, o = l; } - this._a = o + this._a | 0, this._b = i + this._b | 0, this._c = f + this._c | 0, this._d = d + this._d | 0, this._e = h + this._e | 0; + this._a = o + this._a | 0, this._b = i + this._b | 0, this._c = f + this._c | 0, this._d = d + this._d | 0, this._e = p + this._e | 0; }, t.prototype._hash = function() { var s = k.allocUnsafe(20); return s.writeInt32BE(0 | this._a, 0), s.writeInt32BE(0 | this._b, 4), s.writeInt32BE(0 | this._c, 8), s.writeInt32BE(0 | this._d, 12), s.writeInt32BE(0 | this._e, 16), s; }, D.exports = t; - }, 8336: (D, e, p) => { - var w = p(5717), O = p(4189), k = p(9509).Buffer, S = [1518500249, 1859775393, -1894007588, -899497514], a = new Array(80); + }, 8336: (D, e, h) => { + var w = h(5717), O = h(4189), k = h(9509).Buffer, S = [1518500249, 1859775393, -1894007588, -899497514], a = new Array(80); function t() { this.init(), this._w = a, O.call(this, 64, 56); } @@ -15747,21 +15747,21 @@ Use Chrome, Firefox or Internet Explorer 11`); w(t, O), t.prototype.init = function() { return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this; }, t.prototype._update = function(r) { - for (var n, o = this._w, i = 0 | this._a, f = 0 | this._b, d = 0 | this._c, h = 0 | this._d, _ = 0 | this._e, b = 0; b < 16; ++b) + for (var n, o = this._w, i = 0 | this._a, f = 0 | this._b, d = 0 | this._c, p = 0 | this._d, _ = 0 | this._e, b = 0; b < 16; ++b) o[b] = r.readInt32BE(4 * b); for (; b < 80; ++b) o[b] = (n = o[b - 3] ^ o[b - 8] ^ o[b - 14] ^ o[b - 16]) << 1 | n >>> 31; for (var I = 0; I < 80; ++I) { - var l = ~~(I / 20), j = c(i) + s(l, f, d, h) + _ + o[I] + S[l] | 0; - _ = h, h = d, d = u(f), f = i, i = j; + var l = ~~(I / 20), j = c(i) + s(l, f, d, p) + _ + o[I] + S[l] | 0; + _ = p, p = d, d = u(f), f = i, i = j; } - this._a = i + this._a | 0, this._b = f + this._b | 0, this._c = d + this._c | 0, this._d = h + this._d | 0, this._e = _ + this._e | 0; + this._a = i + this._a | 0, this._b = f + this._b | 0, this._c = d + this._c | 0, this._d = p + this._d | 0, this._e = _ + this._e | 0; }, t.prototype._hash = function() { var r = k.allocUnsafe(20); return r.writeInt32BE(0 | this._a, 0), r.writeInt32BE(0 | this._b, 4), r.writeInt32BE(0 | this._c, 8), r.writeInt32BE(0 | this._d, 12), r.writeInt32BE(0 | this._e, 16), r; }, D.exports = t; - }, 8432: (D, e, p) => { - var w = p(5717), O = p(7499), k = p(4189), S = p(9509).Buffer, a = new Array(64); + }, 8432: (D, e, h) => { + var w = h(5717), O = h(7499), k = h(4189), S = h(9509).Buffer, a = new Array(64); function t() { this.init(), this._w = a, k.call(this, 64, 56); } @@ -15771,8 +15771,8 @@ Use Chrome, Firefox or Internet Explorer 11`); var c = S.allocUnsafe(28); return c.writeInt32BE(this._a, 0), c.writeInt32BE(this._b, 4), c.writeInt32BE(this._c, 8), c.writeInt32BE(this._d, 12), c.writeInt32BE(this._e, 16), c.writeInt32BE(this._f, 20), c.writeInt32BE(this._g, 24), c; }, D.exports = t; - }, 7499: (D, e, p) => { - var w = p(5717), O = p(4189), k = p(9509).Buffer, S = [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], a = new Array(64); + }, 7499: (D, e, h) => { + var w = h(5717), O = h(4189), k = h(9509).Buffer, S = [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], a = new Array(64); function t() { this.init(), this._w = a, O.call(this, 64, 56); } @@ -15794,21 +15794,21 @@ Use Chrome, Firefox or Internet Explorer 11`); w(t, O), t.prototype.init = function() { return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this; }, t.prototype._update = function(o) { - for (var i, f = this._w, d = 0 | this._a, h = 0 | this._b, _ = 0 | this._c, b = 0 | this._d, I = 0 | this._e, l = 0 | this._f, j = 0 | this._g, M = 0 | this._h, N = 0; N < 16; ++N) + for (var i, f = this._w, d = 0 | this._a, p = 0 | this._b, _ = 0 | this._c, b = 0 | this._d, I = 0 | this._e, l = 0 | this._f, j = 0 | this._g, M = 0 | this._h, N = 0; N < 16; ++N) f[N] = o.readInt32BE(4 * N); for (; N < 64; ++N) f[N] = 0 | (((i = f[N - 2]) >>> 17 | i << 15) ^ (i >>> 19 | i << 13) ^ i >>> 10) + f[N - 7] + n(f[N - 15]) + f[N - 16]; for (var C = 0; C < 64; ++C) { - var x = M + r(I) + c(I, l, j) + S[C] + f[C] | 0, P = s(d) + u(d, h, _) | 0; - M = j, j = l, l = I, I = b + x | 0, b = _, _ = h, h = d, d = x + P | 0; + var x = M + r(I) + c(I, l, j) + S[C] + f[C] | 0, P = s(d) + u(d, p, _) | 0; + M = j, j = l, l = I, I = b + x | 0, b = _, _ = p, p = d, d = x + P | 0; } - this._a = d + this._a | 0, this._b = h + this._b | 0, this._c = _ + this._c | 0, this._d = b + this._d | 0, this._e = I + this._e | 0, this._f = l + this._f | 0, this._g = j + this._g | 0, this._h = M + this._h | 0; + this._a = d + this._a | 0, this._b = p + this._b | 0, this._c = _ + this._c | 0, this._d = b + this._d | 0, this._e = I + this._e | 0, this._f = l + this._f | 0, this._g = j + this._g | 0, this._h = M + this._h | 0; }, t.prototype._hash = function() { var o = k.allocUnsafe(32); return o.writeInt32BE(this._a, 0), o.writeInt32BE(this._b, 4), o.writeInt32BE(this._c, 8), o.writeInt32BE(this._d, 12), o.writeInt32BE(this._e, 16), o.writeInt32BE(this._f, 20), o.writeInt32BE(this._g, 24), o.writeInt32BE(this._h, 28), o; }, D.exports = t; - }, 1686: (D, e, p) => { - var w = p(5717), O = p(7816), k = p(4189), S = p(9509).Buffer, a = new Array(160); + }, 1686: (D, e, h) => { + var w = h(5717), O = h(7816), k = h(4189), S = h(9509).Buffer, a = new Array(160); function t() { this.init(), this._w = a, k.call(this, 128, 112); } @@ -15821,43 +15821,43 @@ Use Chrome, Firefox or Internet Explorer 11`); } return u(this._ah, this._al, 0), u(this._bh, this._bl, 8), u(this._ch, this._cl, 16), u(this._dh, this._dl, 24), u(this._eh, this._el, 32), u(this._fh, this._fl, 40), c; }, D.exports = t; - }, 7816: (D, e, p) => { - var w = p(5717), O = p(4189), k = p(9509).Buffer, S = [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, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591], a = new Array(160); + }, 7816: (D, e, h) => { + var w = h(5717), O = h(4189), k = h(9509).Buffer, S = [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, 1126000580, 2618297676, 1288033470, 3409855158, 1501505948, 4234509866, 1607167915, 987167468, 1816402316, 1246189591], a = new Array(160); function t() { this.init(), this._w = a, O.call(this, 128, 112); } - function c(h, _, b) { - return b ^ h & (_ ^ b); + function c(p, _, b) { + return b ^ p & (_ ^ b); } - function u(h, _, b) { - return h & _ | b & (h | _); + function u(p, _, b) { + return p & _ | b & (p | _); } - function s(h, _) { - return (h >>> 28 | _ << 4) ^ (_ >>> 2 | h << 30) ^ (_ >>> 7 | h << 25); + function s(p, _) { + return (p >>> 28 | _ << 4) ^ (_ >>> 2 | p << 30) ^ (_ >>> 7 | p << 25); } - function r(h, _) { - return (h >>> 14 | _ << 18) ^ (h >>> 18 | _ << 14) ^ (_ >>> 9 | h << 23); + function r(p, _) { + return (p >>> 14 | _ << 18) ^ (p >>> 18 | _ << 14) ^ (_ >>> 9 | p << 23); } - function n(h, _) { - return (h >>> 1 | _ << 31) ^ (h >>> 8 | _ << 24) ^ h >>> 7; + function n(p, _) { + return (p >>> 1 | _ << 31) ^ (p >>> 8 | _ << 24) ^ p >>> 7; } - function o(h, _) { - return (h >>> 1 | _ << 31) ^ (h >>> 8 | _ << 24) ^ (h >>> 7 | _ << 25); + function o(p, _) { + return (p >>> 1 | _ << 31) ^ (p >>> 8 | _ << 24) ^ (p >>> 7 | _ << 25); } - function i(h, _) { - return (h >>> 19 | _ << 13) ^ (_ >>> 29 | h << 3) ^ h >>> 6; + function i(p, _) { + return (p >>> 19 | _ << 13) ^ (_ >>> 29 | p << 3) ^ p >>> 6; } - function f(h, _) { - return (h >>> 19 | _ << 13) ^ (_ >>> 29 | h << 3) ^ (h >>> 6 | _ << 26); + function f(p, _) { + return (p >>> 19 | _ << 13) ^ (_ >>> 29 | p << 3) ^ (p >>> 6 | _ << 26); } - function d(h, _) { - return h >>> 0 < _ >>> 0 ? 1 : 0; + function d(p, _) { + return p >>> 0 < _ >>> 0 ? 1 : 0; } w(t, O), t.prototype.init = function() { return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this; - }, t.prototype._update = function(h) { + }, t.prototype._update = function(p) { for (var _ = this._w, b = 0 | this._ah, I = 0 | this._bh, l = 0 | this._ch, j = 0 | this._dh, M = 0 | this._eh, N = 0 | this._fh, C = 0 | this._gh, x = 0 | this._hh, P = 0 | this._al, v = 0 | this._bl, m = 0 | this._cl, E = 0 | this._dl, B = 0 | this._el, T = 0 | this._fl, q = 0 | this._gl, te = 0 | this._hl, re = 0; re < 32; re += 2) - _[re] = h.readInt32BE(4 * re), _[re + 1] = h.readInt32BE(4 * re + 4); + _[re] = p.readInt32BE(4 * re), _[re + 1] = p.readInt32BE(4 * re + 4); for (; re < 160; re += 2) { var ie = _[re - 30], J = _[re - 30 + 1], ee = n(ie, J), G = o(J, ie), $ = i(ie = _[re - 4], J = _[re - 4 + 1]), W = f(J, ie), Y = _[re - 14], F = _[re - 14 + 1], ae = _[re - 32], he = _[re - 32 + 1], le = G + F | 0, ce = ee + Y + d(le, G) | 0; ce = (ce = ce + $ + d(le = le + W | 0, W) | 0) + ae + d(le = le + he | 0, he) | 0, _[re] = ce, _[re + 1] = le; @@ -15871,19 +15871,19 @@ Use Chrome, Firefox or Internet Explorer 11`); } this._al = this._al + P | 0, this._bl = this._bl + v | 0, this._cl = this._cl + m | 0, this._dl = this._dl + E | 0, this._el = this._el + B | 0, this._fl = this._fl + T | 0, this._gl = this._gl + q | 0, this._hl = this._hl + te | 0, this._ah = this._ah + b + d(this._al, P) | 0, this._bh = this._bh + I + d(this._bl, v) | 0, this._ch = this._ch + l + d(this._cl, m) | 0, this._dh = this._dh + j + d(this._dl, E) | 0, this._eh = this._eh + M + d(this._el, B) | 0, this._fh = this._fh + N + d(this._fl, T) | 0, this._gh = this._gh + C + d(this._gl, q) | 0, this._hh = this._hh + x + d(this._hl, te) | 0; }, t.prototype._hash = function() { - var h = k.allocUnsafe(64); + var p = k.allocUnsafe(64); function _(b, I, l) { - h.writeInt32BE(b, l), h.writeInt32BE(I, l + 4); + p.writeInt32BE(b, l), p.writeInt32BE(I, l + 4); } - return _(this._ah, this._al, 0), _(this._bh, this._bl, 8), _(this._ch, this._cl, 16), _(this._dh, this._dl, 24), _(this._eh, this._el, 32), _(this._fh, this._fl, 40), _(this._gh, this._gl, 48), _(this._hh, this._hl, 56), h; + return _(this._ah, this._al, 0), _(this._bh, this._bl, 8), _(this._ch, this._cl, 16), _(this._dh, this._dl, 24), _(this._eh, this._el, 32), _(this._fh, this._fl, 40), _(this._gh, this._gl, 48), _(this._hh, this._hl, 56), p; }, D.exports = t; - }, 2830: (D, e, p) => { + }, 2830: (D, e, h) => { D.exports = O; - var w = p(7187).EventEmitter; + var w = h(7187).EventEmitter; function O() { w.call(this); } - p(5717)(O, w), O.Readable = p(9481), O.Writable = p(4229), O.Duplex = p(6753), O.Transform = p(4605), O.PassThrough = p(2725), O.finished = p(8610), O.pipeline = p(9946), O.Stream = O, O.prototype.pipe = function(k, S) { + h(5717)(O, w), O.Readable = h(9481), O.Writable = h(4229), O.Duplex = h(6753), O.Transform = h(4605), O.PassThrough = h(2725), O.finished = h(8610), O.pipeline = h(9946), O.Stream = O, O.prototype.pipe = function(k, S) { var a = this; function t(i) { k.writable && k.write(i) === !1 && a.pause && a.pause(); @@ -15908,8 +15908,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } return a.on("error", n), k.on("error", n), a.on("end", o), a.on("close", o), k.on("close", o), k.emit("pipe", a), k; }; - }, 2553: (D, e, p) => { - var w = p(9509).Buffer, O = w.isEncoding || function(o) { + }, 2553: (D, e, h) => { + var w = h(9509).Buffer, O = w.isEncoding || function(o) { switch ((o = "" + o) && o.toLowerCase()) { case "hex": case "utf8": @@ -15930,11 +15930,11 @@ Use Chrome, Firefox or Internet Explorer 11`); function k(o) { var i; switch (this.encoding = function(f) { - var d = function(h) { - if (!h) + var d = function(p) { + if (!p) return "utf8"; for (var _; ; ) - switch (h) { + switch (p) { case "utf8": case "utf-8": return "utf8"; @@ -15949,11 +15949,11 @@ Use Chrome, Firefox or Internet Explorer 11`); case "base64": case "ascii": case "hex": - return h; + return p; default: if (_) return; - h = ("" + h).toLowerCase(), _ = !0; + p = ("" + p).toLowerCase(), _ = !0; } }(f); if (typeof d != "string" && (w.isEncoding === O || !O(f))) @@ -15978,13 +15978,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return o <= 127 ? 0 : o >> 5 == 6 ? 2 : o >> 4 == 14 ? 3 : o >> 3 == 30 ? 4 : o >> 6 == 2 ? -1 : -2; } function a(o) { - var i = this.lastTotal - this.lastNeed, f = function(d, h, _) { - if ((192 & h[0]) != 128) + var i = this.lastTotal - this.lastNeed, f = function(d, p, _) { + if ((192 & p[0]) != 128) return d.lastNeed = 0, "�"; - if (d.lastNeed > 1 && h.length > 1) { - if ((192 & h[1]) != 128) + if (d.lastNeed > 1 && p.length > 1) { + if ((192 & p[1]) != 128) return d.lastNeed = 1, "�"; - if (d.lastNeed > 2 && h.length > 2 && (192 & h[2]) != 128) + if (d.lastNeed > 2 && p.length > 2 && (192 & p[2]) != 128) return d.lastNeed = 2, "�"; } }(this, o); @@ -16039,12 +16039,12 @@ Use Chrome, Firefox or Internet Explorer 11`); var i = o && o.length ? this.write(o) : ""; return this.lastNeed ? i + "�" : i; }, k.prototype.text = function(o, i) { - var f = function(h, _, b) { + var f = function(p, _, b) { var I = _.length - 1; if (I < b) return 0; var l = S(_[I]); - return l >= 0 ? (l > 0 && (h.lastNeed = l - 1), l) : --I < b || l === -2 ? 0 : (l = S(_[I])) >= 0 ? (l > 0 && (h.lastNeed = l - 2), l) : --I < b || l === -2 ? 0 : (l = S(_[I])) >= 0 ? (l > 0 && (l === 2 ? l = 0 : h.lastNeed = l - 3), l) : 0; + return l >= 0 ? (l > 0 && (p.lastNeed = l - 1), l) : --I < b || l === -2 ? 0 : (l = S(_[I])) >= 0 ? (l > 0 && (p.lastNeed = l - 2), l) : --I < b || l === -2 ? 0 : (l = S(_[I])) >= 0 ? (l > 0 && (l === 2 ? l = 0 : p.lastNeed = l - 3), l) : 0; }(this, o, i); if (!this.lastNeed) return o.toString("utf8", i); @@ -16056,13 +16056,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return o.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal); o.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, o.length), this.lastNeed -= o.length; }; - }, 5892: (D, e, p) => { - var w = p(8764).Buffer; - const O = p(3550), k = new (p(6266)).ec("secp256k1"), S = p(4142), a = w.alloc(32, 0), t = w.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", "hex"), c = w.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f", "hex"), u = k.curve.n, s = u.shrn(1), r = k.curve.g, n = "Expected Private", o = "Expected Point", i = "Expected Tweak", f = "Expected Hash"; + }, 5892: (D, e, h) => { + var w = h(8764).Buffer; + const O = h(3550), k = new (h(6266)).ec("secp256k1"), S = h(4142), a = w.alloc(32, 0), t = w.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", "hex"), c = w.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f", "hex"), u = k.curve.n, s = u.shrn(1), r = k.curve.g, n = "Expected Private", o = "Expected Point", i = "Expected Tweak", f = "Expected Hash"; function d(P) { return w.isBuffer(P) && P.length === 32; } - function h(P) { + function p(P) { return !!d(P) && P.compare(t) < 0; } function _(P) { @@ -16131,7 +16131,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, pointAddScalar: function(P, v, m) { if (!_(P)) throw new TypeError(o); - if (!h(v)) + if (!p(v)) throw new TypeError(i); const E = l(m, P), B = N(P); if (v.compare(a) === 0) @@ -16153,21 +16153,21 @@ Use Chrome, Firefox or Internet Explorer 11`); }, pointMultiply: function(P, v, m) { if (!_(P)) throw new TypeError(o); - if (!h(v)) + if (!p(v)) throw new TypeError(i); const E = l(m, P), B = N(P), T = j(v), q = B.mul(T); return q.isInfinity() ? null : C(q, E); }, privateAdd: function(P, v) { if (!I(P)) throw new TypeError(n); - if (!h(v)) + if (!p(v)) throw new TypeError(i); const m = j(P), E = j(v), B = M(m.add(E).umod(u)); return I(B) ? B : null; }, privateSub: function(P, v) { if (!I(P)) throw new TypeError(n); - if (!h(v)) + if (!p(v)) throw new TypeError(i); const m = j(P), E = j(v), B = M(m.sub(E).umod(u)); return I(B) ? B : null; @@ -16191,9 +16191,9 @@ Use Chrome, Firefox or Internet Explorer 11`); const te = j(P), re = q.invm(u), ie = te.mul(re).umod(u), J = T.mul(re).umod(u), ee = r.mulAdd(ie, B, J); return !ee.isInfinity() && ee.x.umod(u).eq(T); } }; - }, 4142: (D, e, p) => { - var w = p(8764).Buffer; - const O = p(8355), k = w.alloc(1, 1), S = w.alloc(1, 0); + }, 4142: (D, e, h) => { + var w = h(8764).Buffer; + const O = h(8355), k = w.alloc(1, 1), S = w.alloc(1, 0); D.exports = function(a, t, c, u, s) { let r = w.alloc(32, 0), n = w.alloc(32, 1); r = O("sha256", r).update(n).update(S).update(t).update(a).update(s || "").digest(), n = O("sha256", r).update(n).digest(), r = O("sha256", r).update(n).update(k).update(t).update(a).update(s || "").digest(), n = O("sha256", r).update(n).digest(), n = O("sha256", r).update(n).digest(); @@ -16202,7 +16202,7 @@ Use Chrome, Firefox or Internet Explorer 11`); r = O("sha256", r).update(n).update(S).digest(), n = O("sha256", r).update(n).digest(), n = O("sha256", r).update(n).digest(), o = n; return o; }; - }, 8136: function(D, e, p) { + }, 8136: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(b, I, l, j) { j === void 0 && (j = l), Object.defineProperty(b, j, { enumerable: !0, get: function() { return I[l]; @@ -16249,7 +16249,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return b && b.__esModule ? b : { default: b }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.EncryptionUtilsImpl = void 0; - const t = p(8972), c = p(4330), u = p(3061), s = p(4063), r = k(p(9463)), n = a(p(64)), o = p(6402), i = new r.PolyfillCryptoProvider(), f = (0, t.fromHex)("000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"), d = (0, t.fromBase64)("79++5YOHfm0SwhlpUDClv7cuCjq9xBZlWqSjDJWkRG8="), h = /* @__PURE__ */ new Set(["secret-2", "secret-3", "secret-4"]); + const t = h(8972), c = h(4330), u = h(3061), s = h(4063), r = k(h(9463)), n = a(h(64)), o = h(6402), i = new r.PolyfillCryptoProvider(), f = (0, t.fromHex)("000000000000000000024bead8df69990852c202db0e0097c1a12ea637d7e96d"), d = (0, t.fromBase64)("79++5YOHfm0SwhlpUDClv7cuCjq9xBZlWqSjDJWkRG8="), p = /* @__PURE__ */ new Set(["secret-2", "secret-3", "secret-4"]); class _ { constructor(I, l, j) { if (this.url = I, this.consensusIoPubKey = new Uint8Array(), l) { @@ -16259,7 +16259,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } else this.seed = _.GenerateNewSeed(); const { privkey: M, pubkey: N } = _.GenerateNewKeyPairFromSeed(this.seed); - this.privkey = M, this.pubkey = N, j && h.has(j) && (this.consensusIoPubKey = d); + this.privkey = M, this.pubkey = N, j && p.has(j) && (this.consensusIoPubKey = d); } static GenerateNewKeyPair() { return _.GenerateNewKeyPairFromSeed(_.GenerateNewSeed()); @@ -16304,7 +16304,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } } e.EncryptionUtilsImpl = _; - }, 7061: function(D, e, p) { + }, 7061: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(k, S, a, t) { t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { return S[a]; @@ -16315,8 +16315,8 @@ Use Chrome, Firefox or Internet Explorer 11`); for (var a in k) a === "default" || Object.prototype.hasOwnProperty.call(S, a) || w(S, k, a); }; - Object.defineProperty(e, "__esModule", { value: !0 }), O(p(7131), e), O(p(8680), e); - }, 7131: function(D, e, p) { + Object.defineProperty(e, "__esModule", { value: !0 }), O(h(7131), e), O(h(8680), e); + }, 7131: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(_, b, I, l) { l === void 0 && (l = I), Object.defineProperty(_, l, { enumerable: !0, get: function() { return b[I]; @@ -16361,7 +16361,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.validatePermit = e.newPermit = e.newSignDoc = e.PermissionNotInPermit = e.SignerIsNotAddress = e.SignatureInvalid = e.ContractNotInPermit = e.PermitError = void 0; - const a = p(8972), t = p(3061), c = k(p(9656)), u = p(7715), s = p(3607), r = p(5360); + const a = h(8972), t = h(3061), c = k(h(9656)), u = h(7715), s = h(3607), r = h(5360); class n extends Error { constructor(b) { super(b), this.type = "PermitError", this.name = "PermitError"; @@ -16430,7 +16430,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } let C = !1; try { - C = h(_); + C = p(_); } catch { if (!j) return !1; @@ -16443,15 +16443,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } return !0; }; - const h = (_) => { + const p = (_) => { let b = (0, e.newSignDoc)(_.params.chain_id, _.params.permit_name, _.params.allowed_tokens, _.params.permissions); const I = (0, t.sha256)((0, r.serializeStdSignDoc)(b)); let l = c.Signature.fromCompact((0, a.fromBase64)(_.signature.signature)); return c.verify(l, I, (0, a.fromBase64)(_.signature.pub_key.value)); }; - }, 3117: (D, e, p) => { + }, 3117: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.PermitSigner = e.DirectSignerUnsupported = void 0; - const w = p(7131); + const w = h(7131); class O extends w.PermitError { constructor() { super("Only amino signer is supported for permits"); @@ -16477,16 +16477,16 @@ Use Chrome, Firefox or Internet Explorer 11`); }; }, 8680: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }); - }, 1610: (D, e, p) => { + }, 1610: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgCreateViewingKey = e.MsgSetViewingKey = void 0; - const w = p(3745); + const w = h(3745); class O extends w.MsgExecuteContract { } e.MsgSetViewingKey = O; class k extends w.MsgExecuteContract { } e.MsgCreateViewingKey = k; - }, 4447: function(D, e, p) { + }, 4447: function(D, e, h) { var w = this && this.__awaiter || function(S, a, t, c) { return new (t || (t = Promise))(function(u, s) { function r(i) { @@ -16513,7 +16513,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Snip1155Querier = void 0; - const O = p(9150); + const O = h(9150); class k extends O.ComputeQuerier { constructor() { super(...arguments), this.getBalance = ({ contract: a, token_id: t, owner: c, auth: u }) => w(this, void 0, void 0, function* () { @@ -16549,9 +16549,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } } e.Snip1155Querier = k; - }, 7350: (D, e, p) => { + }, 7350: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSnip1155ChangeMetadata = e.MsgSnip1155RemoveMinter = e.MsgSnipAddMinter = e.MsgSnip1155BatchTransfer = e.MsgSnip1155Transfer = e.MsgSnip1155Burn = e.MsgSnip1155Mint = e.MsgSnip1155BatchSend = e.MsgSnip1155Send = e.MsgSnip1155RemoveCurator = e.MsgSnip1155AddCurator = e.MsgSnip1155CurateTokens = e.MsgSnip1155RemoveAdmin = e.MsgSnip1155ChangeAdmin = void 0; - const w = p(3745); + const w = h(3745); class O extends w.MsgExecuteContract { } e.MsgSnip1155ChangeAdmin = O; @@ -16594,7 +16594,7 @@ Use Chrome, Firefox or Internet Explorer 11`); class d extends w.MsgExecuteContract { } e.MsgSnip1155ChangeMetadata = d; - }, 8471: function(D, e, p) { + }, 8471: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(k, S, a, t) { t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { return S[a]; @@ -16605,8 +16605,8 @@ Use Chrome, Firefox or Internet Explorer 11`); for (var a in k) a === "default" || Object.prototype.hasOwnProperty.call(S, a) || w(S, k, a); }; - Object.defineProperty(e, "__esModule", { value: !0 }), O(p(3655), e), O(p(1047), e); - }, 3655: function(D, e, p) { + Object.defineProperty(e, "__esModule", { value: !0 }), O(h(3655), e), O(h(1047), e); + }, 3655: function(D, e, h) { var w = this && this.__awaiter || function(S, a, t, c) { return new (t || (t = Promise))(function(u, s) { function r(i) { @@ -16633,7 +16633,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Snip20Querier = void 0; - const O = p(3607); + const O = h(3607); class k extends O.ComputeQuerier { constructor() { super(...arguments), this.getSnip20Params = ({ contract: a }) => w(this, void 0, void 0, function* () { @@ -16666,9 +16666,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } } e.Snip20Querier = k; - }, 1047: (D, e, p) => { + }, 1047: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSnip20SetViewingKey = e.MsgSnip20DecreaseAllowance = e.MsgSnip20IncreaseAllowance = e.MsgSnip20Transfer = e.MsgSnip20Send = void 0; - const w = p(3745); + const w = h(3745); class O extends w.MsgExecuteContract { } e.MsgSnip20Send = O; @@ -16684,7 +16684,7 @@ Use Chrome, Firefox or Internet Explorer 11`); class t extends w.MsgExecuteContract { } e.MsgSnip20SetViewingKey = t; - }, 2412: function(D, e, p) { + }, 2412: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(k, S, a, t) { t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { return S[a]; @@ -16695,8 +16695,8 @@ Use Chrome, Firefox or Internet Explorer 11`); for (var a in k) a === "default" || Object.prototype.hasOwnProperty.call(S, a) || w(S, k, a); }; - Object.defineProperty(e, "__esModule", { value: !0 }), O(p(3449), e), O(p(4539), e); - }, 3449: function(D, e, p) { + Object.defineProperty(e, "__esModule", { value: !0 }), O(h(3449), e), O(h(4539), e); + }, 3449: function(D, e, h) { var w = this && this.__awaiter || function(S, a, t, c) { return new (t || (t = Promise))(function(u, s) { function r(i) { @@ -16723,7 +16723,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Snip721Querier = void 0; - const O = p(9150); + const O = h(9150); class k extends O.ComputeQuerier { constructor() { super(...arguments), this.GetTokenInfo = ({ contract: a, auth: t, token_id: c }) => w(this, void 0, void 0, function* () { @@ -16742,9 +16742,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } } e.Snip721Querier = k; - }, 4539: (D, e, p) => { + }, 4539: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgSnip721Mint = e.MsgSnip721AddMinter = e.MsgSnip721Send = void 0; - const w = p(3745); + const w = h(3745); class O extends w.MsgExecuteContract { } e.MsgSnip721Send = O; @@ -16754,7 +16754,7 @@ Use Chrome, Firefox or Internet Explorer 11`); class S extends w.MsgExecuteContract { } e.MsgSnip721Mint = S; - }, 3004: function(D, e, p) { + }, 3004: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -16775,7 +16775,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Accounts(a, t) { return S.fetchReq(`/cosmos/auth/v1beta1/accounts?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -16790,7 +16790,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/auth/v1beta1/module_accounts/${a.name}?${S.renderURLSearchParams(a, ["name"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 3704: function(D, e, p) { + }, 3704: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -16811,7 +16811,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Grants(a, t) { return S.fetchReq(`/cosmos/authz/v1beta1/grants?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -16823,7 +16823,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/authz/v1beta1/grants/grantee/${a.grantee}?${S.renderURLSearchParams(a, ["grantee"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 1926: function(D, e, p) { + }, 1926: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -16844,7 +16844,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Balance(a, t) { return S.fetchReq(`/cosmos/bank/v1beta1/balances/${a.address}/by_denom?${S.renderURLSearchParams(a, ["address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -16871,7 +16871,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/bank/v1beta1/denoms_metadata?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 4210: function(D, e, p) { + }, 4210: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -16892,13 +16892,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Service = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Service = class { static Config(a, t) { return S.fetchReq(`/cosmos/base/node/v1beta1/config?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 2390: function(D, e, p) { + }, 2390: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -16919,7 +16919,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Service = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Service = class { static GetNodeInfo(a, t) { return S.fetchReq(`/cosmos/base/tendermint/v1beta1/node_info?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -16940,7 +16940,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/base/tendermint/v1beta1/validatorsets/${a.height}?${S.renderURLSearchParams(a, ["height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 406: function(D, e, p) { + }, 406: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -16961,7 +16961,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Params(a, t) { return S.fetchReq(`/cosmos/distribution/v1beta1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17000,7 +17000,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/distribution/v1beta1/restake_entries?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 6898: function(D, e, p) { + }, 6898: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17021,7 +17021,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Evidence(a, t) { return S.fetchReq(`/cosmos/evidence/v1beta1/evidence/${a.evidence_hash}?${S.renderURLSearchParams(a, ["evidence_hash"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17030,7 +17030,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/evidence/v1beta1/evidence?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 876: function(D, e, p) { + }, 876: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17051,7 +17051,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Allowance(a, t) { return S.fetchReq(`/cosmos/feegrant/v1beta1/allowance/${a.granter}/${a.grantee}?${S.renderURLSearchParams(a, ["granter", "grantee"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17063,7 +17063,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/feegrant/v1beta1/issued/${a.granter}?${S.renderURLSearchParams(a, ["granter"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 7331: function(D, e, p) { + }, 7331: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17084,7 +17084,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Proposal(a, t) { return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}?${S.renderURLSearchParams(a, ["proposal_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17111,7 +17111,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/gov/v1beta1/proposals/${a.proposal_id}/tally?${S.renderURLSearchParams(a, ["proposal_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 468: function(D, e, p) { + }, 468: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17132,7 +17132,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Params(a, t) { return S.fetchReq(`/cosmos/mint/v1beta1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17144,7 +17144,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/mint/v1beta1/annual_provisions?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 5440: function(D, e, p) { + }, 5440: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17165,13 +17165,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Params(a, t) { return S.fetchReq(`/cosmos/params/v1beta1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 1575: function(D, e, p) { + }, 1575: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17192,7 +17192,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Params(a, t) { return S.fetchReq(`/cosmos/slashing/v1beta1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17204,7 +17204,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/slashing/v1beta1/signing_infos?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 4066: function(D, e, p) { + }, 4066: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17225,7 +17225,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Validators(a, t) { return S.fetchReq(`/cosmos/staking/v1beta1/validators?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17270,7 +17270,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/staking/v1beta1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 6519: function(D, e, p) { + }, 6519: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(c, u, s, r) { r === void 0 && (r = s), Object.defineProperty(c, r, { enumerable: !0, get: function() { return u[s]; @@ -17291,7 +17291,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(u, c), u; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Service = e.BroadcastMode = e.OrderBy = void 0; - const S = k(p(1704)); + const S = k(h(1704)); var a, t; (t = e.OrderBy || (e.OrderBy = {})).ORDER_BY_UNSPECIFIED = "ORDER_BY_UNSPECIFIED", t.ORDER_BY_ASC = "ORDER_BY_ASC", t.ORDER_BY_DESC = "ORDER_BY_DESC", (a = e.BroadcastMode || (e.BroadcastMode = {})).BROADCAST_MODE_UNSPECIFIED = "BROADCAST_MODE_UNSPECIFIED", a.BROADCAST_MODE_BLOCK = "BROADCAST_MODE_BLOCK", a.BROADCAST_MODE_SYNC = "BROADCAST_MODE_SYNC", a.BROADCAST_MODE_ASYNC = "BROADCAST_MODE_ASYNC", e.Service = class { static Simulate(c, u) { @@ -17310,7 +17310,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/cosmos/tx/v1beta1/txs/block/${c.height}?${S.renderURLSearchParams(c, ["height"])}`, Object.assign(Object.assign({}, u), { method: "GET" })); } }; - }, 2265: function(D, e, p) { + }, 2265: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17331,7 +17331,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static CurrentPlan(a, t) { return S.fetchReq(`/cosmos/upgrade/v1beta1/current_plan?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17347,29 +17347,29 @@ Use Chrome, Firefox or Internet Explorer 11`); } }; }, 1704: function(D, e) { - var p = this && this.__awaiter || function(u, s, r, n) { + var h = this && this.__awaiter || function(u, s, r, n) { return new (r || (r = Promise))(function(o, i) { function f(_) { try { - h(n.next(_)); + p(n.next(_)); } catch (b) { i(b); } } function d(_) { try { - h(n.throw(_)); + p(n.throw(_)); } catch (b) { i(b); } } - function h(_) { + function p(_) { var b; _.done ? o(_.value) : (b = _.value, b instanceof r ? b : new r(function(I) { I(b); })).then(f, d); } - h((n = n.apply(u, s || [])).next()); + p((n = n.apply(u, s || [])).next()); }); }, w = this && this.__rest || function(u, s) { var r = {}; @@ -17391,16 +17391,16 @@ Use Chrome, Firefox or Internet Explorer 11`); const o = []; let i, f = 0, d = 0; for (; s < r; ) { - const h = u[s++]; + const p = u[s++]; switch (d) { case 0: - o[f++] = O[h >> 2], i = (3 & h) << 4, d = 1; + o[f++] = O[p >> 2], i = (3 & p) << 4, d = 1; break; case 1: - o[f++] = O[i | h >> 4], i = (15 & h) << 2, d = 2; + o[f++] = O[i | p >> 4], i = (15 & p) << 2, d = 2; break; case 2: - o[f++] = O[i | h >> 6], o[f++] = O[63 & h], d = 0; + o[f++] = O[i | p >> 6], o[f++] = O[63 & p], d = 0; } f > 8191 && ((n || (n = [])).push(String.fromCharCode.apply(String, o)), f = 0); } @@ -17416,14 +17416,14 @@ Use Chrome, Firefox or Internet Explorer 11`); const o = u[n], i = s ? [s, n].join(".") : n, f = Array.isArray(o) && o.every((_) => t(_)) && o.length > 0, d = t(o) && !function(_) { return _ === !1 || _ === 0 || _ === ""; }(o); - let h = {}; + let p = {}; return function(_) { const b = Object.prototype.toString.call(_).slice(8, -1) === "Object"; if (_ === null || !b || !b) return !1; const I = Object.getPrototypeOf(_); return typeof I == "object" && I.constructor === Object.prototype.constructor; - }(o) ? h = c(o, i) : o && o.constructor === Uint8Array ? h = { [i]: S(o, 0, o.length) } : (d || f) && (h = { [i]: o }), Object.assign(Object.assign({}, r), h); + }(o) ? p = c(o, i) : o && o.constructor === Uint8Array ? p = { [i]: S(o, 0, o.length) } : (d || f) && (p = { [i]: o }), Object.assign(Object.assign({}, r), p); }, {}); } e.b64Decode = function(u) { @@ -17462,7 +17462,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return f; })); }, e.fetchStreamingRequest = function(u, s, r) { - return p(this, void 0, void 0, function* () { + return h(this, void 0, void 0, function* () { const n = r || {}, { pathPrefix: o } = n, i = w(n, ["pathPrefix"]), f = o ? `${o}${u}` : u, d = yield fetch(f, i); if (!d.ok) { const _ = yield d.json(), b = _.error && _.error.message ? _.error.message : ""; @@ -17470,7 +17470,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } if (!d.body) throw new Error("response doesnt have a body"); - var h; + var p; yield d.body.pipeThrough(new TextDecoderStream()).pipeThrough(new TransformStream({ start(_) { _.buf = "", _.pos = 0; }, transform(_, b) { @@ -17481,10 +17481,10 @@ Use Chrome, Firefox or Internet Explorer 11`); b.enqueue(l.result), b.buf = b.buf.substring(b.pos + 1), b.pos = 0; } else ++b.pos; - } })).pipeTo((h = (_) => { + } })).pipeTo((p = (_) => { s && s(_); }, new WritableStream({ write(_) { - h(_); + p(_); } }))); }); }, e.renderURLSearchParams = function(u, s = []) { @@ -17494,7 +17494,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return s.find((f) => f === o) ? n : Array.isArray(i) ? [...n, ...i.map((f) => [o, f.toString()])] : n = [...n, [o, i.toString()]]; }, []).map((n) => new URLSearchParams({ [n[0]]: n[1] }).toString()).join("&"); }; - }, 187: function(D, e, p) { + }, 187: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17515,7 +17515,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static IncentivizedPackets(a, t) { return S.fetchReq(`/ibc/apps/fee/v1/incentivized_packets?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17548,7 +17548,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/ibc/apps/fee/v1/channels/${a.channel_id}/ports/${a.port_id}/fee_enabled?${S.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 2847: function(D, e, p) { + }, 2847: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17569,7 +17569,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static InterchainAccount(a, t) { return S.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/owners/${a.owner}/connections/${a.connection_id}?${S.renderURLSearchParams(a, ["owner", "connection_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17578,7 +17578,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/ibc/apps/interchain_accounts/controller/v1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 1154: function(D, e, p) { + }, 1154: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17599,13 +17599,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Params(a, t) { return S.fetchReq(`/ibc/apps/interchain_accounts/host/v1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 1692: function(D, e, p) { + }, 1692: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17626,13 +17626,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Params(a, t) { return S.fetchReq(`/ibc/apps/router/v1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 4921: function(D, e, p) { + }, 4921: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17653,7 +17653,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static DenomTrace(a, t) { return S.fetchReq(`/ibc/apps/transfer/v1/denom_traces/${a.hash}?${S.renderURLSearchParams(a, ["hash"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17671,7 +17671,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/ibc/apps/transfer/v1/channels/${a.channel_id}/ports/${a.port_id}/escrow_address?${S.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 6409: function(D, e, p) { + }, 6409: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17692,7 +17692,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Channel(a, t) { return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}?${S.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17734,7 +17734,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/ibc/core/channel/v1/channels/${a.channel_id}/ports/${a.port_id}/next_sequence?${S.renderURLSearchParams(a, ["channel_id", "port_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 301: function(D, e, p) { + }, 301: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17755,7 +17755,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static ClientState(a, t) { return S.fetchReq(`/ibc/core/client/v1/client_states/${a.client_id}?${S.renderURLSearchParams(a, ["client_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17785,7 +17785,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/ibc/core/client/v1/upgraded_consensus_states?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 5258: function(D, e, p) { + }, 5258: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17806,7 +17806,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Connection(a, t) { return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}?${S.renderURLSearchParams(a, ["connection_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17824,7 +17824,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/ibc/core/connection/v1/connections/${a.connection_id}/consensus_state/revision/${a.revision_number}/height/${a.revision_height}?${S.renderURLSearchParams(a, ["connection_id", "revision_number", "revision_height"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 5250: function(D, e, p) { + }, 5250: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17845,7 +17845,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static ContractInfo(a, t) { return S.fetchReq(`/compute/v1beta1/info/${a.contract_address}?${S.renderURLSearchParams(a, ["contract_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17878,7 +17878,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/compute/v1beta1/contract_history/${a.contract_address}?${S.renderURLSearchParams(a, ["contract_address"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 71: function(D, e, p) { + }, 71: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17899,13 +17899,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static Params(a, t) { return S.fetchReq(`/emergencybutton/v1beta1/params?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 9743: function(D, e, p) { + }, 9743: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17926,13 +17926,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static InterchainAccountFromAddress(a, t) { return S.fetchReq(`/mauth/interchain_account/owner/${a.owner}/connection/${a.connection_id}?${S.renderURLSearchParams(a, ["owner", "connection_id"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 6402: function(D, e, p) { + }, 6402: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -17953,7 +17953,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(t, a), t; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Query = void 0; - const S = k(p(1704)); + const S = k(h(1704)); e.Query = class { static TxKey(a, t) { return S.fetchReq(`/registration/v1beta1/tx-key?${S.renderURLSearchParams(a, [])}`, Object.assign(Object.assign({}, t), { method: "GET" })); @@ -17965,7 +17965,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S.fetchReq(`/registration/v1beta1/encrypted-seed/${a.pub_key}?${S.renderURLSearchParams(a, ["pub_key"])}`, Object.assign(Object.assign({}, t), { method: "GET" })); } }; - }, 3607: function(D, e, p) { + }, 3607: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(t, c, u, s) { s === void 0 && (s = u), Object.defineProperty(t, s, { enumerable: !0, get: function() { return c[u]; @@ -17976,16 +17976,16 @@ Use Chrome, Firefox or Internet Explorer 11`); for (var u in t) u === "default" || Object.prototype.hasOwnProperty.call(c, u) || w(c, t, u); }; - Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgExecuteContractResponse = e.MsgInstantiateContractResponse = e.MsgStoreCodeResponse = e.MetaMaskWallet = e.Wallet = void 0, typeof BigInt > "u" && (p.g.BigInt = p(4736)), O(p(8972), e), O(p(8136), e), O(p(9150), e), O(p(1972), e), O(p(3745), e), O(p(8593), e); - var k = p(1049); + Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgExecuteContractResponse = e.MsgInstantiateContractResponse = e.MsgStoreCodeResponse = e.MetaMaskWallet = e.Wallet = void 0, typeof BigInt > "u" && (h.g.BigInt = h(4736)), O(h(8972), e), O(h(8136), e), O(h(9150), e), O(h(1972), e), O(h(3745), e), O(h(8593), e); + var k = h(1049); Object.defineProperty(e, "Wallet", { enumerable: !0, get: function() { return k.Wallet; } }); - var S = p(1444); + var S = h(1444); Object.defineProperty(e, "MetaMaskWallet", { enumerable: !0, get: function() { return S.MetaMaskWallet; - } }), O(p(8471), e), O(p(2412), e), O(p(7061), e); - var a = p(2896); + } }), O(h(8471), e), O(h(2412), e), O(h(7061), e); + var a = h(2896); Object.defineProperty(e, "MsgStoreCodeResponse", { enumerable: !0, get: function() { return a.MsgStoreCodeResponse; } }), Object.defineProperty(e, "MsgInstantiateContractResponse", { enumerable: !0, get: function() { @@ -17993,7 +17993,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } }), Object.defineProperty(e, "MsgExecuteContractResponse", { enumerable: !0, get: function() { return a.MsgExecuteContractResponse; } }); - }, 6578: function(D, e, p) { + }, 6578: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(P, v, m, E) { E === void 0 && (E = m), Object.defineProperty(P, E, { enumerable: !0, get: function() { return v[m]; @@ -18016,7 +18016,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return P && P.__esModule ? P : { default: P }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.CompressedNonExistenceProof = e.CompressedExistenceProof = e.CompressedBatchEntry = e.CompressedBatchProof = e.BatchEntry = e.BatchProof = e.InnerSpec = e.ProofSpec = e.InnerOp = e.LeafOp = e.CommitmentProof = e.NonExistenceProof = e.ExistenceProof = e.lengthOpToJSON = e.lengthOpFromJSON = e.LengthOp = e.hashOpToJSON = e.hashOpFromJSON = e.HashOp = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); var c, u; function s(P) { switch (P) { @@ -18126,7 +18126,7 @@ Use Chrome, Firefox or Internet Explorer 11`); function d() { return { hash: 0, prehash_key: 0, prehash_value: 0, length: 0, prefix: new Uint8Array() }; } - function h() { + function p() { return { hash: 0, prefix: new Uint8Array(), suffix: new Uint8Array() }; } function _() { @@ -18273,7 +18273,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } }, e.InnerOp = { encode: (P, v = t.Writer.create()) => (P.hash !== 0 && v.uint32(8).int32(P.hash), P.prefix.length !== 0 && v.uint32(18).bytes(P.prefix), P.suffix.length !== 0 && v.uint32(26).bytes(P.suffix), v), decode(P, v) { const m = P instanceof t.Reader ? P : new t.Reader(P); let E = v === void 0 ? m.len : m.pos + v; - const B = h(); + const B = p(); for (; m.pos < E; ) { const T = m.uint32(); switch (T >>> 3) { @@ -18296,7 +18296,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return P.hash !== void 0 && (v.hash = r(P.hash)), P.prefix !== void 0 && (v.prefix = C(P.prefix !== void 0 ? P.prefix : new Uint8Array())), P.suffix !== void 0 && (v.suffix = C(P.suffix !== void 0 ? P.suffix : new Uint8Array())), v; }, fromPartial(P) { var v, m, E; - const B = h(); + const B = p(); return B.hash = (v = P.hash) !== null && v !== void 0 ? v : 0, B.prefix = (m = P.prefix) !== null && m !== void 0 ? m : new Uint8Array(), B.suffix = (E = P.suffix) !== null && E !== void 0 ? E : new Uint8Array(), B; } }, e.ProofSpec = { encode: (P, v = t.Writer.create()) => (P.leaf_spec !== void 0 && e.LeafOp.encode(P.leaf_spec, v.uint32(10).fork()).ldelim(), P.inner_spec !== void 0 && e.InnerSpec.encode(P.inner_spec, v.uint32(18).fork()).ldelim(), P.max_depth !== 0 && v.uint32(24).int32(P.max_depth), P.min_depth !== 0 && v.uint32(32).int32(P.min_depth), v), decode(P, v) { const m = P instanceof t.Reader ? P : new t.Reader(P); @@ -18552,8 +18552,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const j = l.atob || ((P) => l.Buffer.from(P, "base64").toString("binary")); @@ -18574,13 +18574,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return P != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 9094: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(i, f, d, h) { - h === void 0 && (h = d), Object.defineProperty(i, h, { enumerable: !0, get: function() { + }, 9094: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(i, f, d, p) { + p === void 0 && (p = d), Object.defineProperty(i, p, { enumerable: !0, get: function() { return f[d]; } }); - } : function(i, f, d, h) { - h === void 0 && (h = d), i[h] = f[d]; + } : function(i, f, d, p) { + p === void 0 && (p = d), i[p] = f[d]; }), O = this && this.__setModuleDefault || (Object.create ? function(i, f) { Object.defineProperty(i, "default", { enumerable: !0, value: f }); } : function(i, f) { @@ -18597,7 +18597,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return i && i.__esModule ? i : { default: i }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.GrantAuthorization = e.Grant = e.GenericAuthorization = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191), u = p(5090); + const a = S(h(3720)), t = k(h(2100)), c = h(4191), u = h(5090); function s(i) { return { seconds: Math.trunc(i.getTime() / 1e3).toString(), nanos: i.getTime() % 1e3 * 1e6 }; } @@ -18613,9 +18613,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } e.protobufPackage = "cosmos.authz.v1beta1", e.GenericAuthorization = { encode: (i, f = t.Writer.create()) => (i.msg !== "" && f.uint32(10).string(i.msg), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { msg: "" }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); b >>> 3 == 1 ? _.msg = d.string() : d.skipType(7 & b); } @@ -18629,9 +18629,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return d.msg = (f = i.msg) !== null && f !== void 0 ? f : "", d; } }, e.Grant = { encode: (i, f = t.Writer.create()) => (i.authorization !== void 0 && c.Any.encode(i.authorization, f.uint32(10).fork()).ldelim(), i.expiration !== void 0 && u.Timestamp.encode(i.expiration, f.uint32(18).fork()).ldelim(), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { authorization: void 0, expiration: void 0 }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -18653,9 +18653,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return f.authorization = i.authorization !== void 0 && i.authorization !== null ? c.Any.fromPartial(i.authorization) : void 0, f.expiration = i.expiration !== void 0 && i.expiration !== null ? u.Timestamp.fromPartial(i.expiration) : void 0, f; } }, e.GrantAuthorization = { encode: (i, f = t.Writer.create()) => (i.granter !== "" && f.uint32(10).string(i.granter), i.grantee !== "" && f.uint32(18).string(i.grantee), i.authorization !== void 0 && c.Any.encode(i.authorization, f.uint32(26).fork()).ldelim(), i.expiration !== void 0 && u.Timestamp.encode(i.expiration, f.uint32(34).fork()).ldelim(), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { granter: "", grantee: "", authorization: void 0, expiration: void 0 }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -18680,16 +18680,16 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.granter !== void 0 && (f.granter = i.granter), i.grantee !== void 0 && (f.grantee = i.grantee), i.authorization !== void 0 && (f.authorization = i.authorization ? c.Any.toJSON(i.authorization) : void 0), i.expiration !== void 0 && (f.expiration = r(i.expiration).toISOString()), f; }, fromPartial(i) { var f, d; - const h = { granter: "", grantee: "", authorization: void 0, expiration: void 0 }; - return h.granter = (f = i.granter) !== null && f !== void 0 ? f : "", h.grantee = (d = i.grantee) !== null && d !== void 0 ? d : "", h.authorization = i.authorization !== void 0 && i.authorization !== null ? c.Any.fromPartial(i.authorization) : void 0, h.expiration = i.expiration !== void 0 && i.expiration !== null ? u.Timestamp.fromPartial(i.expiration) : void 0, h; + const p = { granter: "", grantee: "", authorization: void 0, expiration: void 0 }; + return p.granter = (f = i.granter) !== null && f !== void 0 ? f : "", p.grantee = (d = i.grantee) !== null && d !== void 0 ? d : "", p.authorization = i.authorization !== void 0 && i.authorization !== null ? c.Any.fromPartial(i.authorization) : void 0, p.expiration = i.expiration !== void 0 && i.expiration !== null ? u.Timestamp.fromPartial(i.expiration) : void 0, p; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5635: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(i, f, d, h) { - h === void 0 && (h = d), Object.defineProperty(i, h, { enumerable: !0, get: function() { + }, 5635: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(i, f, d, p) { + p === void 0 && (p = d), Object.defineProperty(i, p, { enumerable: !0, get: function() { return f[d]; } }); - } : function(i, f, d, h) { - h === void 0 && (h = d), i[h] = f[d]; + } : function(i, f, d, p) { + p === void 0 && (p = d), i[p] = f[d]; }), O = this && this.__setModuleDefault || (Object.create ? function(i, f) { Object.defineProperty(i, "default", { enumerable: !0, value: f }); } : function(i, f) { @@ -18706,12 +18706,12 @@ Use Chrome, Firefox or Internet Explorer 11`); return i && i.__esModule ? i : { default: i }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgRevokeResponse = e.MsgRevoke = e.MsgGrantResponse = e.MsgExec = e.MsgExecResponse = e.MsgGrant = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(9094), u = p(4191); + const a = S(h(3720)), t = k(h(2100)), c = h(9094), u = h(4191); e.protobufPackage = "cosmos.authz.v1beta1", e.MsgGrant = { encode: (i, f = t.Writer.create()) => (i.granter !== "" && f.uint32(10).string(i.granter), i.grantee !== "" && f.uint32(18).string(i.grantee), i.grant !== void 0 && c.Grant.encode(i.grant, f.uint32(26).fork()).ldelim(), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { granter: "", grantee: "", grant: void 0 }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -18733,38 +18733,38 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.granter !== void 0 && (f.granter = i.granter), i.grantee !== void 0 && (f.grantee = i.grantee), i.grant !== void 0 && (f.grant = i.grant ? c.Grant.toJSON(i.grant) : void 0), f; }, fromPartial(i) { var f, d; - const h = { granter: "", grantee: "", grant: void 0 }; - return h.granter = (f = i.granter) !== null && f !== void 0 ? f : "", h.grantee = (d = i.grantee) !== null && d !== void 0 ? d : "", h.grant = i.grant !== void 0 && i.grant !== null ? c.Grant.fromPartial(i.grant) : void 0, h; + const p = { granter: "", grantee: "", grant: void 0 }; + return p.granter = (f = i.granter) !== null && f !== void 0 ? f : "", p.grantee = (d = i.grantee) !== null && d !== void 0 ? d : "", p.grant = i.grant !== void 0 && i.grant !== null ? c.Grant.fromPartial(i.grant) : void 0, p; } }, e.MsgExecResponse = { encode(i, f = t.Writer.create()) { for (const d of i.results) f.uint32(10).bytes(d); return f; }, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { results: [] }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); b >>> 3 == 1 ? _.results.push(d.bytes()) : d.skipType(7 & b); } return _; }, fromJSON: (i) => ({ results: Array.isArray(i == null ? void 0 : i.results) ? i.results.map((f) => function(d) { - const h = r(d), _ = new Uint8Array(h.length); - for (let b = 0; b < h.length; ++b) - _[b] = h.charCodeAt(b); + const p = r(d), _ = new Uint8Array(p.length); + for (let b = 0; b < p.length; ++b) + _[b] = p.charCodeAt(b); return _; }(f)) : [] }), toJSON(i) { const f = {}; - return i.results ? f.results = i.results.map((d) => function(h) { + return i.results ? f.results = i.results.map((d) => function(p) { const _ = []; - for (const b of h) + for (const b of p) _.push(String.fromCharCode(b)); return n(_.join("")); }(d !== void 0 ? d : new Uint8Array())) : f.results = [], f; }, fromPartial(i) { var f; const d = { results: [] }; - return d.results = ((f = i.results) === null || f === void 0 ? void 0 : f.map((h) => h)) || [], d; + return d.results = ((f = i.results) === null || f === void 0 ? void 0 : f.map((p) => p)) || [], d; } }, e.MsgExec = { encode(i, f = t.Writer.create()) { i.grantee !== "" && f.uint32(10).string(i.grantee); for (const d of i.msgs) @@ -18772,9 +18772,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return f; }, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { grantee: "", msgs: [] }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -18793,21 +18793,21 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.grantee !== void 0 && (f.grantee = i.grantee), i.msgs ? f.msgs = i.msgs.map((d) => d ? u.Any.toJSON(d) : void 0) : f.msgs = [], f; }, fromPartial(i) { var f, d; - const h = { grantee: "", msgs: [] }; - return h.grantee = (f = i.grantee) !== null && f !== void 0 ? f : "", h.msgs = ((d = i.msgs) === null || d === void 0 ? void 0 : d.map((_) => u.Any.fromPartial(_))) || [], h; + const p = { grantee: "", msgs: [] }; + return p.grantee = (f = i.grantee) !== null && f !== void 0 ? f : "", p.msgs = ((d = i.msgs) === null || d === void 0 ? void 0 : d.map((_) => u.Any.fromPartial(_))) || [], p; } }, e.MsgGrantResponse = { encode: (i, f = t.Writer.create()) => f, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; - for (; d.pos < h; ) { + let p = f === void 0 ? d.len : d.pos + f; + for (; d.pos < p; ) { const _ = d.uint32(); d.skipType(7 & _); } return {}; }, fromJSON: (i) => ({}), toJSON: (i) => ({}), fromPartial: (i) => ({}) }, e.MsgRevoke = { encode: (i, f = t.Writer.create()) => (i.granter !== "" && f.uint32(10).string(i.granter), i.grantee !== "" && f.uint32(18).string(i.grantee), i.msg_type_url !== "" && f.uint32(26).string(i.msg_type_url), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { granter: "", grantee: "", msg_type_url: "" }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -18828,13 +18828,13 @@ Use Chrome, Firefox or Internet Explorer 11`); const f = {}; return i.granter !== void 0 && (f.granter = i.granter), i.grantee !== void 0 && (f.grantee = i.grantee), i.msg_type_url !== void 0 && (f.msg_type_url = i.msg_type_url), f; }, fromPartial(i) { - var f, d, h; + var f, d, p; const _ = { granter: "", grantee: "", msg_type_url: "" }; - return _.granter = (f = i.granter) !== null && f !== void 0 ? f : "", _.grantee = (d = i.grantee) !== null && d !== void 0 ? d : "", _.msg_type_url = (h = i.msg_type_url) !== null && h !== void 0 ? h : "", _; + return _.granter = (f = i.granter) !== null && f !== void 0 ? f : "", _.grantee = (d = i.grantee) !== null && d !== void 0 ? d : "", _.msg_type_url = (p = i.msg_type_url) !== null && p !== void 0 ? p : "", _; } }, e.MsgRevokeResponse = { encode: (i, f = t.Writer.create()) => f, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; - for (; d.pos < h; ) { + let p = f === void 0 ? d.len : d.pos + f; + for (; d.pos < p; ) { const _ = d.uint32(); d.skipType(7 & _); } @@ -18863,8 +18863,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const r = s.atob || ((i) => s.Buffer.from(i, "base64").toString("binary")), n = s.btoa || ((i) => s.Buffer.from(i, "binary").toString("base64")); @@ -18872,7 +18872,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return i != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5939: function(D, e, p) { + }, 5939: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(u, s, r, n) { n === void 0 && (n = r), Object.defineProperty(u, n, { enumerable: !0, get: function() { return s[r]; @@ -18895,7 +18895,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return u && u.__esModule ? u : { default: u }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.SendAuthorization = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(2976); e.protobufPackage = "cosmos.bank.v1beta1", e.SendAuthorization = { encode(u, s = t.Writer.create()) { for (const r of u.spend_limit) c.Coin.encode(r, s.uint32(10).fork()).ldelim(); @@ -18917,7 +18917,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const r = { spend_limit: [] }; return r.spend_limit = ((s = u.spend_limit) === null || s === void 0 ? void 0 : s.map((n) => c.Coin.fromPartial(n))) || [], r; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 7725: function(D, e, p) { + }, 7725: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(s, r, n, o) { o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { return r[n]; @@ -18940,7 +18940,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return s && s.__esModule ? s : { default: s }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Metadata = e.DenomUnit = e.Supply = e.Output = e.Input = e.SendEnabled = e.Params = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(2976); function u(s) { return s != null; } @@ -19151,10 +19151,10 @@ Use Chrome, Firefox or Internet Explorer 11`); return s.description !== void 0 && (r.description = s.description), s.denom_units ? r.denom_units = s.denom_units.map((n) => n ? e.DenomUnit.toJSON(n) : void 0) : r.denom_units = [], s.base !== void 0 && (r.base = s.base), s.display !== void 0 && (r.display = s.display), s.name !== void 0 && (r.name = s.name), s.symbol !== void 0 && (r.symbol = s.symbol), r; }, fromPartial(s) { var r, n, o, i, f, d; - const h = { description: "", denom_units: [], base: "", display: "", name: "", symbol: "" }; - return h.description = (r = s.description) !== null && r !== void 0 ? r : "", h.denom_units = ((n = s.denom_units) === null || n === void 0 ? void 0 : n.map((_) => e.DenomUnit.fromPartial(_))) || [], h.base = (o = s.base) !== null && o !== void 0 ? o : "", h.display = (i = s.display) !== null && i !== void 0 ? i : "", h.name = (f = s.name) !== null && f !== void 0 ? f : "", h.symbol = (d = s.symbol) !== null && d !== void 0 ? d : "", h; + const p = { description: "", denom_units: [], base: "", display: "", name: "", symbol: "" }; + return p.description = (r = s.description) !== null && r !== void 0 ? r : "", p.denom_units = ((n = s.denom_units) === null || n === void 0 ? void 0 : n.map((_) => e.DenomUnit.fromPartial(_))) || [], p.base = (o = s.base) !== null && o !== void 0 ? o : "", p.display = (i = s.display) !== null && i !== void 0 ? i : "", p.name = (f = s.name) !== null && f !== void 0 ? f : "", p.symbol = (d = s.symbol) !== null && d !== void 0 ? d : "", p; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 810: function(D, e, p) { + }, 810: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(r, n, o, i) { i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { return n[o]; @@ -19177,7 +19177,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return r && r.__esModule ? r : { default: r }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgMultiSendResponse = e.MsgMultiSend = e.MsgSendResponse = e.MsgSend = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976), u = p(7725); + const a = S(h(3720)), t = k(h(2100)), c = h(2976), u = h(7725); function s(r) { return r != null; } @@ -19274,7 +19274,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("cosmos.bank.v1beta1.Msg", "MultiSend", n).then((o) => e.MsgMultiSendResponse.decode(new t.Reader(o))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 9849: function(D, e, p) { + }, 9849: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(b, I, l, j) { j === void 0 && (j = l), Object.defineProperty(b, j, { enumerable: !0, get: function() { return I[l]; @@ -19297,7 +19297,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return b && b.__esModule ? b : { default: b }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.SearchTxsResult = e.TxMsgData = e.MsgData = e.SimulationResponse = e.Result = e.GasInfo = e.Attribute = e.StringEvent = e.ABCIMessageLog = e.TxResponse = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191), u = p(2093); + const a = S(h(3720)), t = k(h(2100)), c = h(4191), u = h(2093); function s() { return { data: new Uint8Array(), log: "", events: [] }; } @@ -19320,7 +19320,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const N = l.uint32(); switch (N >>> 3) { case 1: - M.height = h(l.int64()); + M.height = p(l.int64()); break; case 2: M.txhash = l.string(); @@ -19344,10 +19344,10 @@ Use Chrome, Firefox or Internet Explorer 11`); M.info = l.string(); break; case 9: - M.gas_wanted = h(l.int64()); + M.gas_wanted = p(l.int64()); break; case 10: - M.gas_used = h(l.int64()); + M.gas_used = p(l.int64()); break; case 11: M.tx = c.Any.decode(l, l.uint32()); @@ -19466,10 +19466,10 @@ Use Chrome, Firefox or Internet Explorer 11`); const N = l.uint32(); switch (N >>> 3) { case 1: - M.gas_wanted = h(l.uint64()); + M.gas_wanted = p(l.uint64()); break; case 2: - M.gas_used = h(l.uint64()); + M.gas_used = p(l.uint64()); break; default: l.skipType(7 & N); @@ -19598,19 +19598,19 @@ Use Chrome, Firefox or Internet Explorer 11`); const N = l.uint32(); switch (N >>> 3) { case 1: - M.total_count = h(l.uint64()); + M.total_count = p(l.uint64()); break; case 2: - M.count = h(l.uint64()); + M.count = p(l.uint64()); break; case 3: - M.page_number = h(l.uint64()); + M.page_number = p(l.uint64()); break; case 4: - M.page_total = h(l.uint64()); + M.page_total = p(l.uint64()); break; case 5: - M.limit = h(l.uint64()); + M.limit = p(l.uint64()); break; case 6: M.txs.push(e.TxResponse.decode(l, l.uint32())); @@ -19635,8 +19635,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const o = n.atob || ((b) => n.Buffer.from(b, "base64").toString("binary")); @@ -19653,14 +19653,14 @@ Use Chrome, Firefox or Internet Explorer 11`); I.push(String.fromCharCode(l)); return f(I.join("")); } - function h(b) { + function p(b) { return b.toString(); } function _(b) { return b != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 2976: function(D, e, p) { + }, 2976: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(u, s, r, n) { n === void 0 && (n = r), Object.defineProperty(u, n, { enumerable: !0, get: function() { return s[r]; @@ -19683,7 +19683,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return u && u.__esModule ? u : { default: u }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.DecProto = e.IntProto = e.DecCoin = e.Coin = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c(u) { return u != null; } @@ -19770,7 +19770,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const r = { dec: "" }; return r.dec = (s = u.dec) !== null && s !== void 0 ? s : "", r; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 4489: function(D, e, p) { + }, 4489: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(u, s, r, n) { n === void 0 && (n = r), Object.defineProperty(u, n, { enumerable: !0, get: function() { return s[r]; @@ -19793,7 +19793,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return u && u.__esModule ? u : { default: u }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgVerifyInvariantResponse = e.MsgVerifyInvariant = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c(u) { return u != null; } @@ -19842,39 +19842,39 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("cosmos.crisis.v1beta1.Msg", "VerifyInvariant", s).then((r) => e.MsgVerifyInvariantResponse.decode(new t.Reader(r))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 7776: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(d, h, _, b) { + }, 7776: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(d, p, _, b) { b === void 0 && (b = _), Object.defineProperty(d, b, { enumerable: !0, get: function() { - return h[_]; + return p[_]; } }); - } : function(d, h, _, b) { - b === void 0 && (b = _), d[b] = h[_]; - }), O = this && this.__setModuleDefault || (Object.create ? function(d, h) { - Object.defineProperty(d, "default", { enumerable: !0, value: h }); - } : function(d, h) { - d.default = h; + } : function(d, p, _, b) { + b === void 0 && (b = _), d[b] = p[_]; + }), O = this && this.__setModuleDefault || (Object.create ? function(d, p) { + Object.defineProperty(d, "default", { enumerable: !0, value: p }); + } : function(d, p) { + d.default = p; }), k = this && this.__importStar || function(d) { if (d && d.__esModule) return d; - var h = {}; + var p = {}; if (d != null) for (var _ in d) - _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(h, d, _); - return O(h, d), h; + _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(p, d, _); + return O(p, d), p; }, S = this && this.__importDefault || function(d) { return d && d.__esModule ? d : { default: d }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.PrivKey = e.PubKey = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c() { return { key: new Uint8Array() }; } function u() { return { key: new Uint8Array() }; } - e.protobufPackage = "cosmos.crypto.ed25519", e.PubKey = { encode: (d, h = t.Writer.create()) => (d.key.length !== 0 && h.uint32(10).bytes(d.key), h), decode(d, h) { + e.protobufPackage = "cosmos.crypto.ed25519", e.PubKey = { encode: (d, p = t.Writer.create()) => (d.key.length !== 0 && p.uint32(10).bytes(d.key), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = c(); for (; _.pos < b; ) { const l = _.uint32(); @@ -19882,15 +19882,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ key: f(d.key) ? n(d.key) : new Uint8Array() }), toJSON(d) { - const h = {}; - return d.key !== void 0 && (h.key = i(d.key !== void 0 ? d.key : new Uint8Array())), h; + const p = {}; + return d.key !== void 0 && (p.key = i(d.key !== void 0 ? d.key : new Uint8Array())), p; }, fromPartial(d) { - var h; + var p; const _ = c(); - return _.key = (h = d.key) !== null && h !== void 0 ? h : new Uint8Array(), _; - } }, e.PrivKey = { encode: (d, h = t.Writer.create()) => (d.key.length !== 0 && h.uint32(10).bytes(d.key), h), decode(d, h) { + return _.key = (p = d.key) !== null && p !== void 0 ? p : new Uint8Array(), _; + } }, e.PrivKey = { encode: (d, p = t.Writer.create()) => (d.key.length !== 0 && p.uint32(10).bytes(d.key), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = u(); for (; _.pos < b; ) { const l = _.uint32(); @@ -19898,12 +19898,12 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ key: f(d.key) ? n(d.key) : new Uint8Array() }), toJSON(d) { - const h = {}; - return d.key !== void 0 && (h.key = i(d.key !== void 0 ? d.key : new Uint8Array())), h; + const p = {}; + return d.key !== void 0 && (p.key = i(d.key !== void 0 ? d.key : new Uint8Array())), p; }, fromPartial(d) { - var h; + var p; const _ = u(); - return _.key = (h = d.key) !== null && h !== void 0 ? h : new Uint8Array(), _; + return _.key = (p = d.key) !== null && p !== void 0 ? p : new Uint8Array(), _; } }; var s = (() => { if (s !== void 0) @@ -19912,29 +19912,29 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const r = s.atob || ((d) => s.Buffer.from(d, "base64").toString("binary")); function n(d) { - const h = r(d), _ = new Uint8Array(h.length); - for (let b = 0; b < h.length; ++b) - _[b] = h.charCodeAt(b); + const p = r(d), _ = new Uint8Array(p.length); + for (let b = 0; b < p.length; ++b) + _[b] = p.charCodeAt(b); return _; } const o = s.btoa || ((d) => s.Buffer.from(d, "binary").toString("base64")); function i(d) { - const h = []; + const p = []; for (const _ of d) - h.push(String.fromCharCode(_)); - return o(h.join("")); + p.push(String.fromCharCode(_)); + return o(p.join("")); } function f(d) { return d != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5818: function(D, e, p) { + }, 5818: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(u, s, r, n) { n === void 0 && (n = r), Object.defineProperty(u, n, { enumerable: !0, get: function() { return s[r]; @@ -19957,7 +19957,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return u && u.__esModule ? u : { default: u }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.LegacyAminoPubKey = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191); + const a = S(h(3720)), t = k(h(2100)), c = h(4191); e.protobufPackage = "cosmos.crypto.multisig", e.LegacyAminoPubKey = { encode(u, s = t.Writer.create()) { u.threshold !== 0 && s.uint32(8).uint32(u.threshold); for (const r of u.public_keys) @@ -19992,13 +19992,13 @@ Use Chrome, Firefox or Internet Explorer 11`); const n = { threshold: 0, public_keys: [] }; return n.threshold = (s = u.threshold) !== null && s !== void 0 ? s : 0, n.public_keys = ((r = u.public_keys) === null || r === void 0 ? void 0 : r.map((o) => c.Any.fromPartial(o))) || [], n; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 4271: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(f, d, h, _) { - _ === void 0 && (_ = h), Object.defineProperty(f, _, { enumerable: !0, get: function() { - return d[h]; + }, 4271: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(f, d, p, _) { + _ === void 0 && (_ = p), Object.defineProperty(f, _, { enumerable: !0, get: function() { + return d[p]; } }); - } : function(f, d, h, _) { - _ === void 0 && (_ = h), f[_] = d[h]; + } : function(f, d, p, _) { + _ === void 0 && (_ = p), f[_] = d[p]; }), O = this && this.__setModuleDefault || (Object.create ? function(f, d) { Object.defineProperty(f, "default", { enumerable: !0, value: d }); } : function(f, d) { @@ -20008,52 +20008,52 @@ Use Chrome, Firefox or Internet Explorer 11`); return f; var d = {}; if (f != null) - for (var h in f) - h !== "default" && Object.prototype.hasOwnProperty.call(f, h) && w(d, f, h); + for (var p in f) + p !== "default" && Object.prototype.hasOwnProperty.call(f, p) && w(d, f, p); return O(d, f), d; }, S = this && this.__importDefault || function(f) { return f && f.__esModule ? f : { default: f }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.CompactBitArray = e.MultiSignature = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c() { return { extra_bits_stored: 0, elems: new Uint8Array() }; } e.protobufPackage = "cosmos.crypto.multisig.v1beta1", e.MultiSignature = { encode(f, d = t.Writer.create()) { - for (const h of f.signatures) - d.uint32(10).bytes(h); + for (const p of f.signatures) + d.uint32(10).bytes(p); return d; }, decode(f, d) { - const h = f instanceof t.Reader ? f : new t.Reader(f); - let _ = d === void 0 ? h.len : h.pos + d; + const p = f instanceof t.Reader ? f : new t.Reader(f); + let _ = d === void 0 ? p.len : p.pos + d; const b = { signatures: [] }; - for (; h.pos < _; ) { - const I = h.uint32(); - I >>> 3 == 1 ? b.signatures.push(h.bytes()) : h.skipType(7 & I); + for (; p.pos < _; ) { + const I = p.uint32(); + I >>> 3 == 1 ? b.signatures.push(p.bytes()) : p.skipType(7 & I); } return b; }, fromJSON: (f) => ({ signatures: Array.isArray(f == null ? void 0 : f.signatures) ? f.signatures.map((d) => r(d)) : [] }), toJSON(f) { const d = {}; - return f.signatures ? d.signatures = f.signatures.map((h) => o(h !== void 0 ? h : new Uint8Array())) : d.signatures = [], d; + return f.signatures ? d.signatures = f.signatures.map((p) => o(p !== void 0 ? p : new Uint8Array())) : d.signatures = [], d; }, fromPartial(f) { var d; - const h = { signatures: [] }; - return h.signatures = ((d = f.signatures) === null || d === void 0 ? void 0 : d.map((_) => _)) || [], h; + const p = { signatures: [] }; + return p.signatures = ((d = f.signatures) === null || d === void 0 ? void 0 : d.map((_) => _)) || [], p; } }, e.CompactBitArray = { encode: (f, d = t.Writer.create()) => (f.extra_bits_stored !== 0 && d.uint32(8).uint32(f.extra_bits_stored), f.elems.length !== 0 && d.uint32(18).bytes(f.elems), d), decode(f, d) { - const h = f instanceof t.Reader ? f : new t.Reader(f); - let _ = d === void 0 ? h.len : h.pos + d; + const p = f instanceof t.Reader ? f : new t.Reader(f); + let _ = d === void 0 ? p.len : p.pos + d; const b = c(); - for (; h.pos < _; ) { - const I = h.uint32(); + for (; p.pos < _; ) { + const I = p.uint32(); switch (I >>> 3) { case 1: - b.extra_bits_stored = h.uint32(); + b.extra_bits_stored = p.uint32(); break; case 2: - b.elems = h.bytes(); + b.elems = p.bytes(); break; default: - h.skipType(7 & I); + p.skipType(7 & I); } } return b; @@ -20061,9 +20061,9 @@ Use Chrome, Firefox or Internet Explorer 11`); const d = {}; return f.extra_bits_stored !== void 0 && (d.extra_bits_stored = Math.round(f.extra_bits_stored)), f.elems !== void 0 && (d.elems = o(f.elems !== void 0 ? f.elems : new Uint8Array())), d; }, fromPartial(f) { - var d, h; + var d, p; const _ = c(); - return _.extra_bits_stored = (d = f.extra_bits_stored) !== null && d !== void 0 ? d : 0, _.elems = (h = f.elems) !== null && h !== void 0 ? h : new Uint8Array(), _; + return _.extra_bits_stored = (d = f.extra_bits_stored) !== null && d !== void 0 ? d : 0, _.elems = (p = f.elems) !== null && p !== void 0 ? p : new Uint8Array(), _; } }; var u = (() => { if (u !== void 0) @@ -20072,61 +20072,61 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const s = u.atob || ((f) => u.Buffer.from(f, "base64").toString("binary")); function r(f) { - const d = s(f), h = new Uint8Array(d.length); + const d = s(f), p = new Uint8Array(d.length); for (let _ = 0; _ < d.length; ++_) - h[_] = d.charCodeAt(_); - return h; + p[_] = d.charCodeAt(_); + return p; } const n = u.btoa || ((f) => u.Buffer.from(f, "binary").toString("base64")); function o(f) { const d = []; - for (const h of f) - d.push(String.fromCharCode(h)); + for (const p of f) + d.push(String.fromCharCode(p)); return n(d.join("")); } function i(f) { return f != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 6010: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(d, h, _, b) { + }, 6010: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(d, p, _, b) { b === void 0 && (b = _), Object.defineProperty(d, b, { enumerable: !0, get: function() { - return h[_]; + return p[_]; } }); - } : function(d, h, _, b) { - b === void 0 && (b = _), d[b] = h[_]; - }), O = this && this.__setModuleDefault || (Object.create ? function(d, h) { - Object.defineProperty(d, "default", { enumerable: !0, value: h }); - } : function(d, h) { - d.default = h; + } : function(d, p, _, b) { + b === void 0 && (b = _), d[b] = p[_]; + }), O = this && this.__setModuleDefault || (Object.create ? function(d, p) { + Object.defineProperty(d, "default", { enumerable: !0, value: p }); + } : function(d, p) { + d.default = p; }), k = this && this.__importStar || function(d) { if (d && d.__esModule) return d; - var h = {}; + var p = {}; if (d != null) for (var _ in d) - _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(h, d, _); - return O(h, d), h; + _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(p, d, _); + return O(p, d), p; }, S = this && this.__importDefault || function(d) { return d && d.__esModule ? d : { default: d }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.PrivKey = e.PubKey = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c() { return { key: new Uint8Array() }; } function u() { return { key: new Uint8Array() }; } - e.protobufPackage = "cosmos.crypto.secp256k1", e.PubKey = { encode: (d, h = t.Writer.create()) => (d.key.length !== 0 && h.uint32(10).bytes(d.key), h), decode(d, h) { + e.protobufPackage = "cosmos.crypto.secp256k1", e.PubKey = { encode: (d, p = t.Writer.create()) => (d.key.length !== 0 && p.uint32(10).bytes(d.key), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = c(); for (; _.pos < b; ) { const l = _.uint32(); @@ -20134,15 +20134,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ key: f(d.key) ? n(d.key) : new Uint8Array() }), toJSON(d) { - const h = {}; - return d.key !== void 0 && (h.key = i(d.key !== void 0 ? d.key : new Uint8Array())), h; + const p = {}; + return d.key !== void 0 && (p.key = i(d.key !== void 0 ? d.key : new Uint8Array())), p; }, fromPartial(d) { - var h; + var p; const _ = c(); - return _.key = (h = d.key) !== null && h !== void 0 ? h : new Uint8Array(), _; - } }, e.PrivKey = { encode: (d, h = t.Writer.create()) => (d.key.length !== 0 && h.uint32(10).bytes(d.key), h), decode(d, h) { + return _.key = (p = d.key) !== null && p !== void 0 ? p : new Uint8Array(), _; + } }, e.PrivKey = { encode: (d, p = t.Writer.create()) => (d.key.length !== 0 && p.uint32(10).bytes(d.key), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = u(); for (; _.pos < b; ) { const l = _.uint32(); @@ -20150,12 +20150,12 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ key: f(d.key) ? n(d.key) : new Uint8Array() }), toJSON(d) { - const h = {}; - return d.key !== void 0 && (h.key = i(d.key !== void 0 ? d.key : new Uint8Array())), h; + const p = {}; + return d.key !== void 0 && (p.key = i(d.key !== void 0 ? d.key : new Uint8Array())), p; }, fromPartial(d) { - var h; + var p; const _ = u(); - return _.key = (h = d.key) !== null && h !== void 0 ? h : new Uint8Array(), _; + return _.key = (p = d.key) !== null && p !== void 0 ? p : new Uint8Array(), _; } }; var s = (() => { if (s !== void 0) @@ -20164,29 +20164,29 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const r = s.atob || ((d) => s.Buffer.from(d, "base64").toString("binary")); function n(d) { - const h = r(d), _ = new Uint8Array(h.length); - for (let b = 0; b < h.length; ++b) - _[b] = h.charCodeAt(b); + const p = r(d), _ = new Uint8Array(p.length); + for (let b = 0; b < p.length; ++b) + _[b] = p.charCodeAt(b); return _; } const o = s.btoa || ((d) => s.Buffer.from(d, "binary").toString("base64")); function i(d) { - const h = []; + const p = []; for (const _ of d) - h.push(String.fromCharCode(_)); - return o(h.join("")); + p.push(String.fromCharCode(_)); + return o(p.join("")); } function f(d) { return d != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 8866: function(D, e, p) { + }, 8866: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(r, n, o, i) { i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { return n[o]; @@ -20209,7 +20209,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return r && r.__esModule ? r : { default: r }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.CommunityPoolSpendProposalWithDeposit = e.DelegationDelegatorReward = e.DelegatorStartingInfo = e.CommunityPoolSpendProposal = e.FeePool = e.ValidatorSlashEvents = e.ValidatorSlashEvent = e.ValidatorOutstandingRewards = e.ValidatorAccumulatedCommission = e.ValidatorCurrentRewards = e.ValidatorHistoricalRewards = e.Params = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(2976); function u(r) { return r.toString(); } @@ -20256,9 +20256,9 @@ Use Chrome, Firefox or Internet Explorer 11`); const n = {}; return r.community_tax !== void 0 && (n.community_tax = r.community_tax), r.base_proposer_reward !== void 0 && (n.base_proposer_reward = r.base_proposer_reward), r.bonus_proposer_reward !== void 0 && (n.bonus_proposer_reward = r.bonus_proposer_reward), r.withdraw_addr_enabled !== void 0 && (n.withdraw_addr_enabled = r.withdraw_addr_enabled), r.secret_foundation_tax !== void 0 && (n.secret_foundation_tax = r.secret_foundation_tax), r.secret_foundation_address !== void 0 && (n.secret_foundation_address = r.secret_foundation_address), r.minimum_restake_threshold !== void 0 && (n.minimum_restake_threshold = r.minimum_restake_threshold), r.restake_period !== void 0 && (n.restake_period = r.restake_period), n; }, fromPartial(r) { - var n, o, i, f, d, h, _, b; + var n, o, i, f, d, p, _, b; const I = { community_tax: "", base_proposer_reward: "", bonus_proposer_reward: "", withdraw_addr_enabled: !1, secret_foundation_tax: "", secret_foundation_address: "", minimum_restake_threshold: "", restake_period: "" }; - return I.community_tax = (n = r.community_tax) !== null && n !== void 0 ? n : "", I.base_proposer_reward = (o = r.base_proposer_reward) !== null && o !== void 0 ? o : "", I.bonus_proposer_reward = (i = r.bonus_proposer_reward) !== null && i !== void 0 ? i : "", I.withdraw_addr_enabled = (f = r.withdraw_addr_enabled) !== null && f !== void 0 && f, I.secret_foundation_tax = (d = r.secret_foundation_tax) !== null && d !== void 0 ? d : "", I.secret_foundation_address = (h = r.secret_foundation_address) !== null && h !== void 0 ? h : "", I.minimum_restake_threshold = (_ = r.minimum_restake_threshold) !== null && _ !== void 0 ? _ : "", I.restake_period = (b = r.restake_period) !== null && b !== void 0 ? b : "", I; + return I.community_tax = (n = r.community_tax) !== null && n !== void 0 ? n : "", I.base_proposer_reward = (o = r.base_proposer_reward) !== null && o !== void 0 ? o : "", I.bonus_proposer_reward = (i = r.bonus_proposer_reward) !== null && i !== void 0 ? i : "", I.withdraw_addr_enabled = (f = r.withdraw_addr_enabled) !== null && f !== void 0 && f, I.secret_foundation_tax = (d = r.secret_foundation_tax) !== null && d !== void 0 ? d : "", I.secret_foundation_address = (p = r.secret_foundation_address) !== null && p !== void 0 ? p : "", I.minimum_restake_threshold = (_ = r.minimum_restake_threshold) !== null && _ !== void 0 ? _ : "", I.restake_period = (b = r.restake_period) !== null && b !== void 0 ? b : "", I; } }, e.ValidatorHistoricalRewards = { encode(r, n = t.Writer.create()) { for (const o of r.cumulative_reward_ratio) c.DecCoin.encode(o, n.uint32(10).fork()).ldelim(); @@ -20457,7 +20457,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, fromPartial(r) { var n, o, i, f; const d = { title: "", description: "", recipient: "", amount: [] }; - return d.title = (n = r.title) !== null && n !== void 0 ? n : "", d.description = (o = r.description) !== null && o !== void 0 ? o : "", d.recipient = (i = r.recipient) !== null && i !== void 0 ? i : "", d.amount = ((f = r.amount) === null || f === void 0 ? void 0 : f.map((h) => c.Coin.fromPartial(h))) || [], d; + return d.title = (n = r.title) !== null && n !== void 0 ? n : "", d.description = (o = r.description) !== null && o !== void 0 ? o : "", d.recipient = (i = r.recipient) !== null && i !== void 0 ? i : "", d.amount = ((f = r.amount) === null || f === void 0 ? void 0 : f.map((p) => c.Coin.fromPartial(p))) || [], d; } }, e.DelegatorStartingInfo = { encode: (r, n = t.Writer.create()) => (r.previous_period !== "0" && n.uint32(8).uint64(r.previous_period), r.stake !== "" && n.uint32(18).string(r.stake), r.height !== "0" && n.uint32(24).uint64(r.height), n), decode(r, n) { const o = r instanceof t.Reader ? r : new t.Reader(r); let i = n === void 0 ? o.len : o.pos + n; @@ -20548,10 +20548,10 @@ Use Chrome, Firefox or Internet Explorer 11`); return r.title !== void 0 && (n.title = r.title), r.description !== void 0 && (n.description = r.description), r.recipient !== void 0 && (n.recipient = r.recipient), r.amount !== void 0 && (n.amount = r.amount), r.deposit !== void 0 && (n.deposit = r.deposit), n; }, fromPartial(r) { var n, o, i, f, d; - const h = { title: "", description: "", recipient: "", amount: "", deposit: "" }; - return h.title = (n = r.title) !== null && n !== void 0 ? n : "", h.description = (o = r.description) !== null && o !== void 0 ? o : "", h.recipient = (i = r.recipient) !== null && i !== void 0 ? i : "", h.amount = (f = r.amount) !== null && f !== void 0 ? f : "", h.deposit = (d = r.deposit) !== null && d !== void 0 ? d : "", h; + const p = { title: "", description: "", recipient: "", amount: "", deposit: "" }; + return p.title = (n = r.title) !== null && n !== void 0 ? n : "", p.description = (o = r.description) !== null && o !== void 0 ? o : "", p.recipient = (i = r.recipient) !== null && i !== void 0 ? i : "", p.amount = (f = r.amount) !== null && f !== void 0 ? f : "", p.deposit = (d = r.deposit) !== null && d !== void 0 ? d : "", p; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 4301: function(D, e, p) { + }, 4301: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(s, r, n, o) { o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { return r[n]; @@ -20574,7 +20574,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return s && s.__esModule ? s : { default: s }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgFundCommunityPoolResponse = e.MsgFundCommunityPool = e.MsgWithdrawValidatorCommissionResponse = e.MsgWithdrawValidatorCommission = e.MsgWithdrawDelegatorRewardResponse = e.MsgWithdrawDelegatorReward = e.MsgSetWithdrawAddressResponse = e.MsgSetAutoRestakeResponse = e.MsgSetAutoRestake = e.MsgSetWithdrawAddress = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(2976); function u(s) { return s != null; } @@ -20766,13 +20766,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("cosmos.distribution.v1beta1.Msg", "SetAutoRestake", r).then((n) => e.MsgSetAutoRestakeResponse.decode(new t.Reader(n))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 3676: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(f, d, h, _) { - _ === void 0 && (_ = h), Object.defineProperty(f, _, { enumerable: !0, get: function() { - return d[h]; + }, 3676: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(f, d, p, _) { + _ === void 0 && (_ = p), Object.defineProperty(f, _, { enumerable: !0, get: function() { + return d[p]; } }); - } : function(f, d, h, _) { - _ === void 0 && (_ = h), f[_] = d[h]; + } : function(f, d, p, _) { + _ === void 0 && (_ = p), f[_] = d[p]; }), O = this && this.__setModuleDefault || (Object.create ? function(f, d) { Object.defineProperty(f, "default", { enumerable: !0, value: d }); } : function(f, d) { @@ -20782,32 +20782,32 @@ Use Chrome, Firefox or Internet Explorer 11`); return f; var d = {}; if (f != null) - for (var h in f) - h !== "default" && Object.prototype.hasOwnProperty.call(f, h) && w(d, f, h); + for (var p in f) + p !== "default" && Object.prototype.hasOwnProperty.call(f, p) && w(d, f, p); return O(d, f), d; }, S = this && this.__importDefault || function(f) { return f && f.__esModule ? f : { default: f }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgSubmitEvidenceResponse = e.MsgSubmitEvidence = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191); + const a = S(h(3720)), t = k(h(2100)), c = h(4191); function u() { return { hash: new Uint8Array() }; } e.protobufPackage = "cosmos.evidence.v1beta1", e.MsgSubmitEvidence = { encode: (f, d = t.Writer.create()) => (f.submitter !== "" && d.uint32(10).string(f.submitter), f.evidence !== void 0 && c.Any.encode(f.evidence, d.uint32(18).fork()).ldelim(), d), decode(f, d) { - const h = f instanceof t.Reader ? f : new t.Reader(f); - let _ = d === void 0 ? h.len : h.pos + d; + const p = f instanceof t.Reader ? f : new t.Reader(f); + let _ = d === void 0 ? p.len : p.pos + d; const b = { submitter: "", evidence: void 0 }; - for (; h.pos < _; ) { - const I = h.uint32(); + for (; p.pos < _; ) { + const I = p.uint32(); switch (I >>> 3) { case 1: - b.submitter = h.string(); + b.submitter = p.string(); break; case 2: - b.evidence = c.Any.decode(h, h.uint32()); + b.evidence = c.Any.decode(p, p.uint32()); break; default: - h.skipType(7 & I); + p.skipType(7 & I); } } return b; @@ -20816,36 +20816,36 @@ Use Chrome, Firefox or Internet Explorer 11`); return f.submitter !== void 0 && (d.submitter = f.submitter), f.evidence !== void 0 && (d.evidence = f.evidence ? c.Any.toJSON(f.evidence) : void 0), d; }, fromPartial(f) { var d; - const h = { submitter: "", evidence: void 0 }; - return h.submitter = (d = f.submitter) !== null && d !== void 0 ? d : "", h.evidence = f.evidence !== void 0 && f.evidence !== null ? c.Any.fromPartial(f.evidence) : void 0, h; + const p = { submitter: "", evidence: void 0 }; + return p.submitter = (d = f.submitter) !== null && d !== void 0 ? d : "", p.evidence = f.evidence !== void 0 && f.evidence !== null ? c.Any.fromPartial(f.evidence) : void 0, p; } }, e.MsgSubmitEvidenceResponse = { encode: (f, d = t.Writer.create()) => (f.hash.length !== 0 && d.uint32(34).bytes(f.hash), d), decode(f, d) { - const h = f instanceof t.Reader ? f : new t.Reader(f); - let _ = d === void 0 ? h.len : h.pos + d; + const p = f instanceof t.Reader ? f : new t.Reader(f); + let _ = d === void 0 ? p.len : p.pos + d; const b = u(); - for (; h.pos < _; ) { - const I = h.uint32(); - I >>> 3 == 4 ? b.hash = h.bytes() : h.skipType(7 & I); + for (; p.pos < _; ) { + const I = p.uint32(); + I >>> 3 == 4 ? b.hash = p.bytes() : p.skipType(7 & I); } return b; }, fromJSON: (f) => ({ hash: i(f.hash) ? n(f.hash) : new Uint8Array() }), toJSON(f) { const d = {}; - return f.hash !== void 0 && (d.hash = function(h) { + return f.hash !== void 0 && (d.hash = function(p) { const _ = []; - for (const b of h) + for (const b of p) _.push(String.fromCharCode(b)); return o(_.join("")); }(f.hash !== void 0 ? f.hash : new Uint8Array())), d; }, fromPartial(f) { var d; - const h = u(); - return h.hash = (d = f.hash) !== null && d !== void 0 ? d : new Uint8Array(), h; + const p = u(); + return p.hash = (d = f.hash) !== null && d !== void 0 ? d : new Uint8Array(), p; } }, e.MsgClientImpl = class { constructor(f) { this.rpc = f, this.SubmitEvidence = this.SubmitEvidence.bind(this); } SubmitEvidence(f) { const d = e.MsgSubmitEvidence.encode(f).finish(); - return this.rpc.request("cosmos.evidence.v1beta1.Msg", "SubmitEvidence", d).then((h) => e.MsgSubmitEvidenceResponse.decode(new t.Reader(h))); + return this.rpc.request("cosmos.evidence.v1beta1.Msg", "SubmitEvidence", d).then((p) => e.MsgSubmitEvidenceResponse.decode(new t.Reader(p))); } }; var s = (() => { @@ -20855,52 +20855,52 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const r = s.atob || ((f) => s.Buffer.from(f, "base64").toString("binary")); function n(f) { - const d = r(f), h = new Uint8Array(d.length); + const d = r(f), p = new Uint8Array(d.length); for (let _ = 0; _ < d.length; ++_) - h[_] = d.charCodeAt(_); - return h; + p[_] = d.charCodeAt(_); + return p; } const o = s.btoa || ((f) => s.Buffer.from(f, "binary").toString("base64")); function i(f) { return f != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 4932: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(d, h, _, b) { + }, 4932: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(d, p, _, b) { b === void 0 && (b = _), Object.defineProperty(d, b, { enumerable: !0, get: function() { - return h[_]; + return p[_]; } }); - } : function(d, h, _, b) { - b === void 0 && (b = _), d[b] = h[_]; - }), O = this && this.__setModuleDefault || (Object.create ? function(d, h) { - Object.defineProperty(d, "default", { enumerable: !0, value: h }); - } : function(d, h) { - d.default = h; + } : function(d, p, _, b) { + b === void 0 && (b = _), d[b] = p[_]; + }), O = this && this.__setModuleDefault || (Object.create ? function(d, p) { + Object.defineProperty(d, "default", { enumerable: !0, value: p }); + } : function(d, p) { + d.default = p; }), k = this && this.__importStar || function(d) { if (d && d.__esModule) return d; - var h = {}; + var p = {}; if (d != null) for (var _ in d) - _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(h, d, _); - return O(h, d), h; + _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(p, d, _); + return O(p, d), p; }, S = this && this.__importDefault || function(d) { return d && d.__esModule ? d : { default: d }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Grant = e.AllowedMsgAllowance = e.PeriodicAllowance = e.BasicAllowance = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(5090), u = p(6138), s = p(4191), r = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(5090), u = h(6138), s = h(4191), r = h(2976); function n(d) { return { seconds: Math.trunc(d.getTime() / 1e3).toString(), nanos: d.getTime() % 1e3 * 1e6 }; } function o(d) { - let h = 1e3 * Number(d.seconds); - return h += d.nanos / 1e6, new Date(h); + let p = 1e3 * Number(d.seconds); + return p += d.nanos / 1e6, new Date(p); } function i(d) { return d instanceof Date ? n(d) : typeof d == "string" ? n(new Date(d)) : c.Timestamp.fromJSON(d); @@ -20908,13 +20908,13 @@ Use Chrome, Firefox or Internet Explorer 11`); function f(d) { return d != null; } - e.protobufPackage = "cosmos.feegrant.v1beta1", e.BasicAllowance = { encode(d, h = t.Writer.create()) { + e.protobufPackage = "cosmos.feegrant.v1beta1", e.BasicAllowance = { encode(d, p = t.Writer.create()) { for (const _ of d.spend_limit) - r.Coin.encode(_, h.uint32(10).fork()).ldelim(); - return d.expiration !== void 0 && c.Timestamp.encode(d.expiration, h.uint32(18).fork()).ldelim(), h; - }, decode(d, h) { + r.Coin.encode(_, p.uint32(10).fork()).ldelim(); + return d.expiration !== void 0 && c.Timestamp.encode(d.expiration, p.uint32(18).fork()).ldelim(), p; + }, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { spend_limit: [], expiration: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -20930,23 +20930,23 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return I; - }, fromJSON: (d) => ({ spend_limit: Array.isArray(d == null ? void 0 : d.spend_limit) ? d.spend_limit.map((h) => r.Coin.fromJSON(h)) : [], expiration: f(d.expiration) ? i(d.expiration) : void 0 }), toJSON(d) { - const h = {}; - return d.spend_limit ? h.spend_limit = d.spend_limit.map((_) => _ ? r.Coin.toJSON(_) : void 0) : h.spend_limit = [], d.expiration !== void 0 && (h.expiration = o(d.expiration).toISOString()), h; + }, fromJSON: (d) => ({ spend_limit: Array.isArray(d == null ? void 0 : d.spend_limit) ? d.spend_limit.map((p) => r.Coin.fromJSON(p)) : [], expiration: f(d.expiration) ? i(d.expiration) : void 0 }), toJSON(d) { + const p = {}; + return d.spend_limit ? p.spend_limit = d.spend_limit.map((_) => _ ? r.Coin.toJSON(_) : void 0) : p.spend_limit = [], d.expiration !== void 0 && (p.expiration = o(d.expiration).toISOString()), p; }, fromPartial(d) { - var h; + var p; const _ = { spend_limit: [], expiration: void 0 }; - return _.spend_limit = ((h = d.spend_limit) === null || h === void 0 ? void 0 : h.map((b) => r.Coin.fromPartial(b))) || [], _.expiration = d.expiration !== void 0 && d.expiration !== null ? c.Timestamp.fromPartial(d.expiration) : void 0, _; - } }, e.PeriodicAllowance = { encode(d, h = t.Writer.create()) { - d.basic !== void 0 && e.BasicAllowance.encode(d.basic, h.uint32(10).fork()).ldelim(), d.period !== void 0 && u.Duration.encode(d.period, h.uint32(18).fork()).ldelim(); + return _.spend_limit = ((p = d.spend_limit) === null || p === void 0 ? void 0 : p.map((b) => r.Coin.fromPartial(b))) || [], _.expiration = d.expiration !== void 0 && d.expiration !== null ? c.Timestamp.fromPartial(d.expiration) : void 0, _; + } }, e.PeriodicAllowance = { encode(d, p = t.Writer.create()) { + d.basic !== void 0 && e.BasicAllowance.encode(d.basic, p.uint32(10).fork()).ldelim(), d.period !== void 0 && u.Duration.encode(d.period, p.uint32(18).fork()).ldelim(); for (const _ of d.period_spend_limit) - r.Coin.encode(_, h.uint32(26).fork()).ldelim(); + r.Coin.encode(_, p.uint32(26).fork()).ldelim(); for (const _ of d.period_can_spend) - r.Coin.encode(_, h.uint32(34).fork()).ldelim(); - return d.period_reset !== void 0 && c.Timestamp.encode(d.period_reset, h.uint32(42).fork()).ldelim(), h; - }, decode(d, h) { + r.Coin.encode(_, p.uint32(34).fork()).ldelim(); + return d.period_reset !== void 0 && c.Timestamp.encode(d.period_reset, p.uint32(42).fork()).ldelim(), p; + }, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { basic: void 0, period: void 0, period_spend_limit: [], period_can_spend: [], period_reset: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -20971,21 +20971,21 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return I; - }, fromJSON: (d) => ({ basic: f(d.basic) ? e.BasicAllowance.fromJSON(d.basic) : void 0, period: f(d.period) ? u.Duration.fromJSON(d.period) : void 0, period_spend_limit: Array.isArray(d == null ? void 0 : d.period_spend_limit) ? d.period_spend_limit.map((h) => r.Coin.fromJSON(h)) : [], period_can_spend: Array.isArray(d == null ? void 0 : d.period_can_spend) ? d.period_can_spend.map((h) => r.Coin.fromJSON(h)) : [], period_reset: f(d.period_reset) ? i(d.period_reset) : void 0 }), toJSON(d) { - const h = {}; - return d.basic !== void 0 && (h.basic = d.basic ? e.BasicAllowance.toJSON(d.basic) : void 0), d.period !== void 0 && (h.period = d.period ? u.Duration.toJSON(d.period) : void 0), d.period_spend_limit ? h.period_spend_limit = d.period_spend_limit.map((_) => _ ? r.Coin.toJSON(_) : void 0) : h.period_spend_limit = [], d.period_can_spend ? h.period_can_spend = d.period_can_spend.map((_) => _ ? r.Coin.toJSON(_) : void 0) : h.period_can_spend = [], d.period_reset !== void 0 && (h.period_reset = o(d.period_reset).toISOString()), h; + }, fromJSON: (d) => ({ basic: f(d.basic) ? e.BasicAllowance.fromJSON(d.basic) : void 0, period: f(d.period) ? u.Duration.fromJSON(d.period) : void 0, period_spend_limit: Array.isArray(d == null ? void 0 : d.period_spend_limit) ? d.period_spend_limit.map((p) => r.Coin.fromJSON(p)) : [], period_can_spend: Array.isArray(d == null ? void 0 : d.period_can_spend) ? d.period_can_spend.map((p) => r.Coin.fromJSON(p)) : [], period_reset: f(d.period_reset) ? i(d.period_reset) : void 0 }), toJSON(d) { + const p = {}; + return d.basic !== void 0 && (p.basic = d.basic ? e.BasicAllowance.toJSON(d.basic) : void 0), d.period !== void 0 && (p.period = d.period ? u.Duration.toJSON(d.period) : void 0), d.period_spend_limit ? p.period_spend_limit = d.period_spend_limit.map((_) => _ ? r.Coin.toJSON(_) : void 0) : p.period_spend_limit = [], d.period_can_spend ? p.period_can_spend = d.period_can_spend.map((_) => _ ? r.Coin.toJSON(_) : void 0) : p.period_can_spend = [], d.period_reset !== void 0 && (p.period_reset = o(d.period_reset).toISOString()), p; }, fromPartial(d) { - var h, _; + var p, _; const b = { basic: void 0, period: void 0, period_spend_limit: [], period_can_spend: [], period_reset: void 0 }; - return b.basic = d.basic !== void 0 && d.basic !== null ? e.BasicAllowance.fromPartial(d.basic) : void 0, b.period = d.period !== void 0 && d.period !== null ? u.Duration.fromPartial(d.period) : void 0, b.period_spend_limit = ((h = d.period_spend_limit) === null || h === void 0 ? void 0 : h.map((I) => r.Coin.fromPartial(I))) || [], b.period_can_spend = ((_ = d.period_can_spend) === null || _ === void 0 ? void 0 : _.map((I) => r.Coin.fromPartial(I))) || [], b.period_reset = d.period_reset !== void 0 && d.period_reset !== null ? c.Timestamp.fromPartial(d.period_reset) : void 0, b; - } }, e.AllowedMsgAllowance = { encode(d, h = t.Writer.create()) { - d.allowance !== void 0 && s.Any.encode(d.allowance, h.uint32(10).fork()).ldelim(); + return b.basic = d.basic !== void 0 && d.basic !== null ? e.BasicAllowance.fromPartial(d.basic) : void 0, b.period = d.period !== void 0 && d.period !== null ? u.Duration.fromPartial(d.period) : void 0, b.period_spend_limit = ((p = d.period_spend_limit) === null || p === void 0 ? void 0 : p.map((I) => r.Coin.fromPartial(I))) || [], b.period_can_spend = ((_ = d.period_can_spend) === null || _ === void 0 ? void 0 : _.map((I) => r.Coin.fromPartial(I))) || [], b.period_reset = d.period_reset !== void 0 && d.period_reset !== null ? c.Timestamp.fromPartial(d.period_reset) : void 0, b; + } }, e.AllowedMsgAllowance = { encode(d, p = t.Writer.create()) { + d.allowance !== void 0 && s.Any.encode(d.allowance, p.uint32(10).fork()).ldelim(); for (const _ of d.allowed_messages) - h.uint32(18).string(_); - return h; - }, decode(d, h) { + p.uint32(18).string(_); + return p; + }, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { allowance: void 0, allowed_messages: [] }; for (; _.pos < b; ) { const l = _.uint32(); @@ -21001,16 +21001,16 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return I; - }, fromJSON: (d) => ({ allowance: f(d.allowance) ? s.Any.fromJSON(d.allowance) : void 0, allowed_messages: Array.isArray(d == null ? void 0 : d.allowed_messages) ? d.allowed_messages.map((h) => String(h)) : [] }), toJSON(d) { - const h = {}; - return d.allowance !== void 0 && (h.allowance = d.allowance ? s.Any.toJSON(d.allowance) : void 0), d.allowed_messages ? h.allowed_messages = d.allowed_messages.map((_) => _) : h.allowed_messages = [], h; + }, fromJSON: (d) => ({ allowance: f(d.allowance) ? s.Any.fromJSON(d.allowance) : void 0, allowed_messages: Array.isArray(d == null ? void 0 : d.allowed_messages) ? d.allowed_messages.map((p) => String(p)) : [] }), toJSON(d) { + const p = {}; + return d.allowance !== void 0 && (p.allowance = d.allowance ? s.Any.toJSON(d.allowance) : void 0), d.allowed_messages ? p.allowed_messages = d.allowed_messages.map((_) => _) : p.allowed_messages = [], p; }, fromPartial(d) { - var h; + var p; const _ = { allowance: void 0, allowed_messages: [] }; - return _.allowance = d.allowance !== void 0 && d.allowance !== null ? s.Any.fromPartial(d.allowance) : void 0, _.allowed_messages = ((h = d.allowed_messages) === null || h === void 0 ? void 0 : h.map((b) => b)) || [], _; - } }, e.Grant = { encode: (d, h = t.Writer.create()) => (d.granter !== "" && h.uint32(10).string(d.granter), d.grantee !== "" && h.uint32(18).string(d.grantee), d.allowance !== void 0 && s.Any.encode(d.allowance, h.uint32(26).fork()).ldelim(), h), decode(d, h) { + return _.allowance = d.allowance !== void 0 && d.allowance !== null ? s.Any.fromPartial(d.allowance) : void 0, _.allowed_messages = ((p = d.allowed_messages) === null || p === void 0 ? void 0 : p.map((b) => b)) || [], _; + } }, e.Grant = { encode: (d, p = t.Writer.create()) => (d.granter !== "" && p.uint32(10).string(d.granter), d.grantee !== "" && p.uint32(18).string(d.grantee), d.allowance !== void 0 && s.Any.encode(d.allowance, p.uint32(26).fork()).ldelim(), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { granter: "", grantee: "", allowance: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -21030,14 +21030,14 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ granter: f(d.granter) ? String(d.granter) : "", grantee: f(d.grantee) ? String(d.grantee) : "", allowance: f(d.allowance) ? s.Any.fromJSON(d.allowance) : void 0 }), toJSON(d) { - const h = {}; - return d.granter !== void 0 && (h.granter = d.granter), d.grantee !== void 0 && (h.grantee = d.grantee), d.allowance !== void 0 && (h.allowance = d.allowance ? s.Any.toJSON(d.allowance) : void 0), h; + const p = {}; + return d.granter !== void 0 && (p.granter = d.granter), d.grantee !== void 0 && (p.grantee = d.grantee), d.allowance !== void 0 && (p.allowance = d.allowance ? s.Any.toJSON(d.allowance) : void 0), p; }, fromPartial(d) { - var h, _; + var p, _; const b = { granter: "", grantee: "", allowance: void 0 }; - return b.granter = (h = d.granter) !== null && h !== void 0 ? h : "", b.grantee = (_ = d.grantee) !== null && _ !== void 0 ? _ : "", b.allowance = d.allowance !== void 0 && d.allowance !== null ? s.Any.fromPartial(d.allowance) : void 0, b; + return b.granter = (p = d.granter) !== null && p !== void 0 ? p : "", b.grantee = (_ = d.grantee) !== null && _ !== void 0 ? _ : "", b.allowance = d.allowance !== void 0 && d.allowance !== null ? s.Any.fromPartial(d.allowance) : void 0, b; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 6513: function(D, e, p) { + }, 6513: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(s, r, n, o) { o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { return r[n]; @@ -21060,7 +21060,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return s && s.__esModule ? s : { default: s }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgRevokeAllowanceResponse = e.MsgRevokeAllowance = e.MsgGrantAllowanceResponse = e.MsgGrantAllowance = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191); + const a = S(h(3720)), t = k(h(2100)), c = h(4191); function u(s) { return s != null; } @@ -21146,7 +21146,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("cosmos.feegrant.v1beta1.Msg", "RevokeAllowance", r).then((n) => e.MsgRevokeAllowanceResponse.decode(new t.Reader(n))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 9074: function(D, e, p) { + }, 9074: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(m, E, B, T) { T === void 0 && (T = B), Object.defineProperty(m, T, { enumerable: !0, get: function() { return E[B]; @@ -21169,7 +21169,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return m && m.__esModule ? m : { default: m }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.TallyParams = e.VotingParams = e.DepositParams = e.Vote = e.TallyResult = e.Proposal = e.Deposit = e.TextProposal = e.WeightedVoteOption = e.proposalStatusToJSON = e.proposalStatusFromJSON = e.ProposalStatus = e.voteOptionToJSON = e.voteOptionFromJSON = e.VoteOption = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191), u = p(5090), s = p(6138), r = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(4191), u = h(5090), s = h(6138), r = h(2976); var n, o; function i(m) { switch (m) { @@ -21232,7 +21232,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return o.UNRECOGNIZED; } } - function h(m) { + function p(m) { switch (m) { case o.PROPOSAL_STATUS_UNSPECIFIED: return "PROPOSAL_STATUS_UNSPECIFIED"; @@ -21257,7 +21257,7 @@ Use Chrome, Firefox or Internet Explorer 11`); m[m.VOTE_OPTION_UNSPECIFIED = 0] = "VOTE_OPTION_UNSPECIFIED", m[m.VOTE_OPTION_YES = 1] = "VOTE_OPTION_YES", m[m.VOTE_OPTION_ABSTAIN = 2] = "VOTE_OPTION_ABSTAIN", m[m.VOTE_OPTION_NO = 3] = "VOTE_OPTION_NO", m[m.VOTE_OPTION_NO_WITH_VETO = 4] = "VOTE_OPTION_NO_WITH_VETO", m[m.UNRECOGNIZED = -1] = "UNRECOGNIZED"; }(n = e.VoteOption || (e.VoteOption = {})), e.voteOptionFromJSON = i, e.voteOptionToJSON = f, function(m) { m[m.PROPOSAL_STATUS_UNSPECIFIED = 0] = "PROPOSAL_STATUS_UNSPECIFIED", m[m.PROPOSAL_STATUS_DEPOSIT_PERIOD = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD", m[m.PROPOSAL_STATUS_VOTING_PERIOD = 2] = "PROPOSAL_STATUS_VOTING_PERIOD", m[m.PROPOSAL_STATUS_PASSED = 3] = "PROPOSAL_STATUS_PASSED", m[m.PROPOSAL_STATUS_REJECTED = 4] = "PROPOSAL_STATUS_REJECTED", m[m.PROPOSAL_STATUS_FAILED = 5] = "PROPOSAL_STATUS_FAILED", m[m.UNRECOGNIZED = -1] = "UNRECOGNIZED"; - }(o = e.ProposalStatus || (e.ProposalStatus = {})), e.proposalStatusFromJSON = d, e.proposalStatusToJSON = h, e.WeightedVoteOption = { encode: (m, E = t.Writer.create()) => (m.option !== 0 && E.uint32(8).int32(m.option), m.weight !== "" && E.uint32(18).string(m.weight), E), decode(m, E) { + }(o = e.ProposalStatus || (e.ProposalStatus = {})), e.proposalStatusFromJSON = d, e.proposalStatusToJSON = p, e.WeightedVoteOption = { encode: (m, E = t.Writer.create()) => (m.option !== 0 && E.uint32(8).int32(m.option), m.weight !== "" && E.uint32(18).string(m.weight), E), decode(m, E) { const B = m instanceof t.Reader ? m : new t.Reader(m); let T = E === void 0 ? B.len : B.pos + E; const q = { option: 0, weight: "" }; @@ -21389,7 +21389,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return q; }, fromJSON: (m) => ({ proposal_id: v(m.proposal_id) ? String(m.proposal_id) : "0", content: v(m.content) ? c.Any.fromJSON(m.content) : void 0, status: v(m.status) ? d(m.status) : 0, final_tally_result: v(m.final_tally_result) ? e.TallyResult.fromJSON(m.final_tally_result) : void 0, submit_time: v(m.submit_time) ? x(m.submit_time) : void 0, deposit_end_time: v(m.deposit_end_time) ? x(m.deposit_end_time) : void 0, total_deposit: Array.isArray(m == null ? void 0 : m.total_deposit) ? m.total_deposit.map((E) => r.Coin.fromJSON(E)) : [], voting_start_time: v(m.voting_start_time) ? x(m.voting_start_time) : void 0, voting_end_time: v(m.voting_end_time) ? x(m.voting_end_time) : void 0, is_expedited: !!v(m.is_expedited) && !!m.is_expedited }), toJSON(m) { const E = {}; - return m.proposal_id !== void 0 && (E.proposal_id = m.proposal_id), m.content !== void 0 && (E.content = m.content ? c.Any.toJSON(m.content) : void 0), m.status !== void 0 && (E.status = h(m.status)), m.final_tally_result !== void 0 && (E.final_tally_result = m.final_tally_result ? e.TallyResult.toJSON(m.final_tally_result) : void 0), m.submit_time !== void 0 && (E.submit_time = C(m.submit_time).toISOString()), m.deposit_end_time !== void 0 && (E.deposit_end_time = C(m.deposit_end_time).toISOString()), m.total_deposit ? E.total_deposit = m.total_deposit.map((B) => B ? r.Coin.toJSON(B) : void 0) : E.total_deposit = [], m.voting_start_time !== void 0 && (E.voting_start_time = C(m.voting_start_time).toISOString()), m.voting_end_time !== void 0 && (E.voting_end_time = C(m.voting_end_time).toISOString()), m.is_expedited !== void 0 && (E.is_expedited = m.is_expedited), E; + return m.proposal_id !== void 0 && (E.proposal_id = m.proposal_id), m.content !== void 0 && (E.content = m.content ? c.Any.toJSON(m.content) : void 0), m.status !== void 0 && (E.status = p(m.status)), m.final_tally_result !== void 0 && (E.final_tally_result = m.final_tally_result ? e.TallyResult.toJSON(m.final_tally_result) : void 0), m.submit_time !== void 0 && (E.submit_time = C(m.submit_time).toISOString()), m.deposit_end_time !== void 0 && (E.deposit_end_time = C(m.deposit_end_time).toISOString()), m.total_deposit ? E.total_deposit = m.total_deposit.map((B) => B ? r.Coin.toJSON(B) : void 0) : E.total_deposit = [], m.voting_start_time !== void 0 && (E.voting_start_time = C(m.voting_start_time).toISOString()), m.voting_end_time !== void 0 && (E.voting_end_time = C(m.voting_end_time).toISOString()), m.is_expedited !== void 0 && (E.is_expedited = m.is_expedited), E; }, fromPartial(m) { var E, B, T, q; const te = { proposal_id: "0", content: void 0, status: 0, final_tally_result: void 0, submit_time: void 0, deposit_end_time: void 0, total_deposit: [], voting_start_time: void 0, voting_end_time: void 0, is_expedited: !1 }; @@ -21559,8 +21559,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const I = b.atob || ((m) => b.Buffer.from(m, "base64").toString("binary")); @@ -21594,7 +21594,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return m != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 88: function(D, e, p) { + }, 88: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(o, i, f, d) { d === void 0 && (d = f), Object.defineProperty(o, d, { enumerable: !0, get: function() { return i[f]; @@ -21617,7 +21617,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return o && o.__esModule ? o : { default: o }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgDepositResponse = e.MsgDeposit = e.MsgVoteWeightedResponse = e.MsgVoteWeighted = e.MsgVoteResponse = e.MsgVote = e.MsgSubmitProposalResponse = e.MsgSubmitProposal = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191), u = p(9074), s = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(4191), u = h(9074), s = h(2976); function r(o) { return o.toString(); } @@ -21632,43 +21632,43 @@ Use Chrome, Firefox or Internet Explorer 11`); }, decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { content: void 0, initial_deposit: [], proposer: "", is_expedited: !1 }; + const p = { content: void 0, initial_deposit: [], proposer: "", is_expedited: !1 }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.content = c.Any.decode(f, f.uint32()); + p.content = c.Any.decode(f, f.uint32()); break; case 2: - h.initial_deposit.push(s.Coin.decode(f, f.uint32())); + p.initial_deposit.push(s.Coin.decode(f, f.uint32())); break; case 3: - h.proposer = f.string(); + p.proposer = f.string(); break; case 4: - h.is_expedited = f.bool(); + p.is_expedited = f.bool(); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ content: n(o.content) ? c.Any.fromJSON(o.content) : void 0, initial_deposit: Array.isArray(o == null ? void 0 : o.initial_deposit) ? o.initial_deposit.map((i) => s.Coin.fromJSON(i)) : [], proposer: n(o.proposer) ? String(o.proposer) : "", is_expedited: !!n(o.is_expedited) && !!o.is_expedited }), toJSON(o) { const i = {}; return o.content !== void 0 && (i.content = o.content ? c.Any.toJSON(o.content) : void 0), o.initial_deposit ? i.initial_deposit = o.initial_deposit.map((f) => f ? s.Coin.toJSON(f) : void 0) : i.initial_deposit = [], o.proposer !== void 0 && (i.proposer = o.proposer), o.is_expedited !== void 0 && (i.is_expedited = o.is_expedited), i; }, fromPartial(o) { var i, f, d; - const h = { content: void 0, initial_deposit: [], proposer: "", is_expedited: !1 }; - return h.content = o.content !== void 0 && o.content !== null ? c.Any.fromPartial(o.content) : void 0, h.initial_deposit = ((i = o.initial_deposit) === null || i === void 0 ? void 0 : i.map((_) => s.Coin.fromPartial(_))) || [], h.proposer = (f = o.proposer) !== null && f !== void 0 ? f : "", h.is_expedited = (d = o.is_expedited) !== null && d !== void 0 && d, h; + const p = { content: void 0, initial_deposit: [], proposer: "", is_expedited: !1 }; + return p.content = o.content !== void 0 && o.content !== null ? c.Any.fromPartial(o.content) : void 0, p.initial_deposit = ((i = o.initial_deposit) === null || i === void 0 ? void 0 : i.map((_) => s.Coin.fromPartial(_))) || [], p.proposer = (f = o.proposer) !== null && f !== void 0 ? f : "", p.is_expedited = (d = o.is_expedited) !== null && d !== void 0 && d, p; } }, e.MsgSubmitProposalResponse = { encode: (o, i = t.Writer.create()) => (o.proposal_id !== "0" && i.uint32(8).uint64(o.proposal_id), i), decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { proposal_id: "0" }; + const p = { proposal_id: "0" }; for (; f.pos < d; ) { const _ = f.uint32(); - _ >>> 3 == 1 ? h.proposal_id = r(f.uint64()) : f.skipType(7 & _); + _ >>> 3 == 1 ? p.proposal_id = r(f.uint64()) : f.skipType(7 & _); } - return h; + return p; }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0" }), toJSON(o) { const i = {}; return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), i; @@ -21679,37 +21679,37 @@ Use Chrome, Firefox or Internet Explorer 11`); } }, e.MsgVote = { encode: (o, i = t.Writer.create()) => (o.proposal_id !== "0" && i.uint32(8).uint64(o.proposal_id), o.voter !== "" && i.uint32(18).string(o.voter), o.option !== 0 && i.uint32(24).int32(o.option), i), decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { proposal_id: "0", voter: "", option: 0 }; + const p = { proposal_id: "0", voter: "", option: 0 }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.proposal_id = r(f.uint64()); + p.proposal_id = r(f.uint64()); break; case 2: - h.voter = f.string(); + p.voter = f.string(); break; case 3: - h.option = f.int32(); + p.option = f.int32(); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0", voter: n(o.voter) ? String(o.voter) : "", option: n(o.option) ? (0, u.voteOptionFromJSON)(o.option) : 0 }), toJSON(o) { const i = {}; return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), o.voter !== void 0 && (i.voter = o.voter), o.option !== void 0 && (i.option = (0, u.voteOptionToJSON)(o.option)), i; }, fromPartial(o) { var i, f, d; - const h = { proposal_id: "0", voter: "", option: 0 }; - return h.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", h.voter = (f = o.voter) !== null && f !== void 0 ? f : "", h.option = (d = o.option) !== null && d !== void 0 ? d : 0, h; + const p = { proposal_id: "0", voter: "", option: 0 }; + return p.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", p.voter = (f = o.voter) !== null && f !== void 0 ? f : "", p.option = (d = o.option) !== null && d !== void 0 ? d : 0, p; } }, e.MsgVoteResponse = { encode: (o, i = t.Writer.create()) => i, decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; for (; f.pos < d; ) { - const h = f.uint32(); - f.skipType(7 & h); + const p = f.uint32(); + f.skipType(7 & p); } return {}; }, fromJSON: (o) => ({}), toJSON: (o) => ({}), fromPartial: (o) => ({}) }, e.MsgVoteWeighted = { encode(o, i = t.Writer.create()) { @@ -21720,37 +21720,37 @@ Use Chrome, Firefox or Internet Explorer 11`); }, decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { proposal_id: "0", voter: "", options: [] }; + const p = { proposal_id: "0", voter: "", options: [] }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.proposal_id = r(f.uint64()); + p.proposal_id = r(f.uint64()); break; case 2: - h.voter = f.string(); + p.voter = f.string(); break; case 3: - h.options.push(u.WeightedVoteOption.decode(f, f.uint32())); + p.options.push(u.WeightedVoteOption.decode(f, f.uint32())); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0", voter: n(o.voter) ? String(o.voter) : "", options: Array.isArray(o == null ? void 0 : o.options) ? o.options.map((i) => u.WeightedVoteOption.fromJSON(i)) : [] }), toJSON(o) { const i = {}; return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), o.voter !== void 0 && (i.voter = o.voter), o.options ? i.options = o.options.map((f) => f ? u.WeightedVoteOption.toJSON(f) : void 0) : i.options = [], i; }, fromPartial(o) { var i, f, d; - const h = { proposal_id: "0", voter: "", options: [] }; - return h.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", h.voter = (f = o.voter) !== null && f !== void 0 ? f : "", h.options = ((d = o.options) === null || d === void 0 ? void 0 : d.map((_) => u.WeightedVoteOption.fromPartial(_))) || [], h; + const p = { proposal_id: "0", voter: "", options: [] }; + return p.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", p.voter = (f = o.voter) !== null && f !== void 0 ? f : "", p.options = ((d = o.options) === null || d === void 0 ? void 0 : d.map((_) => u.WeightedVoteOption.fromPartial(_))) || [], p; } }, e.MsgVoteWeightedResponse = { encode: (o, i = t.Writer.create()) => i, decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; for (; f.pos < d; ) { - const h = f.uint32(); - f.skipType(7 & h); + const p = f.uint32(); + f.skipType(7 & p); } return {}; }, fromJSON: (o) => ({}), toJSON: (o) => ({}), fromPartial: (o) => ({}) }, e.MsgDeposit = { encode(o, i = t.Writer.create()) { @@ -21761,37 +21761,37 @@ Use Chrome, Firefox or Internet Explorer 11`); }, decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { proposal_id: "0", depositor: "", amount: [] }; + const p = { proposal_id: "0", depositor: "", amount: [] }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.proposal_id = r(f.uint64()); + p.proposal_id = r(f.uint64()); break; case 2: - h.depositor = f.string(); + p.depositor = f.string(); break; case 3: - h.amount.push(s.Coin.decode(f, f.uint32())); + p.amount.push(s.Coin.decode(f, f.uint32())); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ proposal_id: n(o.proposal_id) ? String(o.proposal_id) : "0", depositor: n(o.depositor) ? String(o.depositor) : "", amount: Array.isArray(o == null ? void 0 : o.amount) ? o.amount.map((i) => s.Coin.fromJSON(i)) : [] }), toJSON(o) { const i = {}; return o.proposal_id !== void 0 && (i.proposal_id = o.proposal_id), o.depositor !== void 0 && (i.depositor = o.depositor), o.amount ? i.amount = o.amount.map((f) => f ? s.Coin.toJSON(f) : void 0) : i.amount = [], i; }, fromPartial(o) { var i, f, d; - const h = { proposal_id: "0", depositor: "", amount: [] }; - return h.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", h.depositor = (f = o.depositor) !== null && f !== void 0 ? f : "", h.amount = ((d = o.amount) === null || d === void 0 ? void 0 : d.map((_) => s.Coin.fromPartial(_))) || [], h; + const p = { proposal_id: "0", depositor: "", amount: [] }; + return p.proposal_id = (i = o.proposal_id) !== null && i !== void 0 ? i : "0", p.depositor = (f = o.depositor) !== null && f !== void 0 ? f : "", p.amount = ((d = o.amount) === null || d === void 0 ? void 0 : d.map((_) => s.Coin.fromPartial(_))) || [], p; } }, e.MsgDepositResponse = { encode: (o, i = t.Writer.create()) => i, decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; for (; f.pos < d; ) { - const h = f.uint32(); - f.skipType(7 & h); + const p = f.uint32(); + f.skipType(7 & p); } return {}; }, fromJSON: (o) => ({}), toJSON: (o) => ({}), fromPartial: (o) => ({}) }, e.MsgClientImpl = class { @@ -21815,7 +21815,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("cosmos.gov.v1beta1.Msg", "Deposit", i).then((f) => e.MsgDepositResponse.decode(new t.Reader(f))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 9913: function(D, e, p) { + }, 9913: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(u, s, r, n) { n === void 0 && (n = r), Object.defineProperty(u, n, { enumerable: !0, get: function() { return s[r]; @@ -21838,7 +21838,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return u && u.__esModule ? u : { default: u }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.ParamChange = e.ParameterChangeProposal = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c(u) { return u != null; } @@ -21904,7 +21904,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const o = { subspace: "", key: "", value: "" }; return o.subspace = (s = u.subspace) !== null && s !== void 0 ? s : "", o.key = (r = u.key) !== null && r !== void 0 ? r : "", o.value = (n = u.value) !== null && n !== void 0 ? n : "", o; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5925: function(D, e, p) { + }, 5925: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(c, u, s, r) { r === void 0 && (r = s), Object.defineProperty(c, r, { enumerable: !0, get: function() { return u[s]; @@ -21927,7 +21927,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return c && c.__esModule ? c : { default: c }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgUnjailResponse = e.MsgUnjail = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); e.protobufPackage = "cosmos.slashing.v1beta1", e.MsgUnjail = { encode: (c, u = t.Writer.create()) => (c.validator_addr !== "" && u.uint32(10).string(c.validator_addr), u), decode(c, u) { const s = c instanceof t.Reader ? c : new t.Reader(c); let r = u === void 0 ? s.len : s.pos + u; @@ -21964,7 +21964,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", u).then((s) => e.MsgUnjailResponse.decode(new t.Reader(s))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 837: function(D, e, p) { + }, 837: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(o, i, f, d) { d === void 0 && (d = f), Object.defineProperty(o, d, { enumerable: !0, get: function() { return i[f]; @@ -21987,7 +21987,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return o && o.__esModule ? o : { default: o }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.StakeAuthorization_Validators = e.StakeAuthorization = e.authorizationTypeToJSON = e.authorizationTypeFromJSON = e.AuthorizationType = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(2976); var u; function s(o) { switch (o) { @@ -22029,27 +22029,27 @@ Use Chrome, Firefox or Internet Explorer 11`); }(u = e.AuthorizationType || (e.AuthorizationType = {})), e.authorizationTypeFromJSON = s, e.authorizationTypeToJSON = r, e.StakeAuthorization = { encode: (o, i = t.Writer.create()) => (o.max_tokens !== void 0 && c.Coin.encode(o.max_tokens, i.uint32(10).fork()).ldelim(), o.allow_list !== void 0 && e.StakeAuthorization_Validators.encode(o.allow_list, i.uint32(18).fork()).ldelim(), o.deny_list !== void 0 && e.StakeAuthorization_Validators.encode(o.deny_list, i.uint32(26).fork()).ldelim(), o.authorization_type !== 0 && i.uint32(32).int32(o.authorization_type), i), decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { max_tokens: void 0, allow_list: void 0, deny_list: void 0, authorization_type: 0 }; + const p = { max_tokens: void 0, allow_list: void 0, deny_list: void 0, authorization_type: 0 }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.max_tokens = c.Coin.decode(f, f.uint32()); + p.max_tokens = c.Coin.decode(f, f.uint32()); break; case 2: - h.allow_list = e.StakeAuthorization_Validators.decode(f, f.uint32()); + p.allow_list = e.StakeAuthorization_Validators.decode(f, f.uint32()); break; case 3: - h.deny_list = e.StakeAuthorization_Validators.decode(f, f.uint32()); + p.deny_list = e.StakeAuthorization_Validators.decode(f, f.uint32()); break; case 4: - h.authorization_type = f.int32(); + p.authorization_type = f.int32(); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ max_tokens: n(o.max_tokens) ? c.Coin.fromJSON(o.max_tokens) : void 0, allow_list: n(o.allow_list) ? e.StakeAuthorization_Validators.fromJSON(o.allow_list) : void 0, deny_list: n(o.deny_list) ? e.StakeAuthorization_Validators.fromJSON(o.deny_list) : void 0, authorization_type: n(o.authorization_type) ? s(o.authorization_type) : 0 }), toJSON(o) { const i = {}; return o.max_tokens !== void 0 && (i.max_tokens = o.max_tokens ? c.Coin.toJSON(o.max_tokens) : void 0), o.allow_list !== void 0 && (i.allow_list = o.allow_list ? e.StakeAuthorization_Validators.toJSON(o.allow_list) : void 0), o.deny_list !== void 0 && (i.deny_list = o.deny_list ? e.StakeAuthorization_Validators.toJSON(o.deny_list) : void 0), o.authorization_type !== void 0 && (i.authorization_type = r(o.authorization_type)), i; @@ -22064,12 +22064,12 @@ Use Chrome, Firefox or Internet Explorer 11`); }, decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { address: [] }; + const p = { address: [] }; for (; f.pos < d; ) { const _ = f.uint32(); - _ >>> 3 == 1 ? h.address.push(f.string()) : f.skipType(7 & _); + _ >>> 3 == 1 ? p.address.push(f.string()) : f.skipType(7 & _); } - return h; + return p; }, fromJSON: (o) => ({ address: Array.isArray(o == null ? void 0 : o.address) ? o.address.map((i) => String(i)) : [] }), toJSON(o) { const i = {}; return o.address ? i.address = o.address.map((f) => f) : i.address = [], i; @@ -22078,7 +22078,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const f = { address: [] }; return f.address = ((i = o.address) === null || i === void 0 ? void 0 : i.map((d) => d)) || [], f; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 2572: function(D, e, p) { + }, 2572: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(l, j, M, N) { N === void 0 && (N = M), Object.defineProperty(l, N, { enumerable: !0, get: function() { return j[M]; @@ -22101,7 +22101,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return l && l.__esModule ? l : { default: l }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Pool = e.RedelegationResponse = e.RedelegationEntryResponse = e.DelegationResponse = e.Params = e.Redelegation = e.RedelegationEntry = e.UnbondingDelegationEntry = e.UnbondingDelegation = e.Delegation = e.DVVTriplets = e.DVVTriplet = e.DVPairs = e.DVPair = e.ValAddresses = e.Validator = e.Description = e.Commission = e.CommissionRates = e.HistoricalInfo = e.bondStatusToJSON = e.bondStatusFromJSON = e.BondStatus = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(9928), u = p(5090), s = p(4191), r = p(6138), n = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(9928), u = h(5090), s = h(4191), r = h(6138), n = h(2976); var o; function i(l) { switch (l) { @@ -22138,7 +22138,7 @@ Use Chrome, Firefox or Internet Explorer 11`); function d(l) { return { seconds: Math.trunc(l.getTime() / 1e3).toString(), nanos: l.getTime() % 1e3 * 1e6 }; } - function h(l) { + function p(l) { let j = 1e3 * Number(l.seconds); return j += l.nanos / 1e6, new Date(j); } @@ -22231,7 +22231,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return C; }, fromJSON: (l) => ({ commission_rates: I(l.commission_rates) ? e.CommissionRates.fromJSON(l.commission_rates) : void 0, update_time: I(l.update_time) ? _(l.update_time) : void 0 }), toJSON(l) { const j = {}; - return l.commission_rates !== void 0 && (j.commission_rates = l.commission_rates ? e.CommissionRates.toJSON(l.commission_rates) : void 0), l.update_time !== void 0 && (j.update_time = h(l.update_time).toISOString()), j; + return l.commission_rates !== void 0 && (j.commission_rates = l.commission_rates ? e.CommissionRates.toJSON(l.commission_rates) : void 0), l.update_time !== void 0 && (j.update_time = p(l.update_time).toISOString()), j; }, fromPartial(l) { const j = { commission_rates: void 0, update_time: void 0 }; return j.commission_rates = l.commission_rates !== void 0 && l.commission_rates !== null ? e.CommissionRates.fromPartial(l.commission_rates) : void 0, j.update_time = l.update_time !== void 0 && l.update_time !== null ? u.Timestamp.fromPartial(l.update_time) : void 0, j; @@ -22316,7 +22316,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return C; }, fromJSON: (l) => ({ operator_address: I(l.operator_address) ? String(l.operator_address) : "", consensus_pubkey: I(l.consensus_pubkey) ? s.Any.fromJSON(l.consensus_pubkey) : void 0, jailed: !!I(l.jailed) && !!l.jailed, status: I(l.status) ? i(l.status) : 0, tokens: I(l.tokens) ? String(l.tokens) : "", delegator_shares: I(l.delegator_shares) ? String(l.delegator_shares) : "", description: I(l.description) ? e.Description.fromJSON(l.description) : void 0, unbonding_height: I(l.unbonding_height) ? String(l.unbonding_height) : "0", unbonding_time: I(l.unbonding_time) ? _(l.unbonding_time) : void 0, commission: I(l.commission) ? e.Commission.fromJSON(l.commission) : void 0, min_self_delegation: I(l.min_self_delegation) ? String(l.min_self_delegation) : "" }), toJSON(l) { const j = {}; - return l.operator_address !== void 0 && (j.operator_address = l.operator_address), l.consensus_pubkey !== void 0 && (j.consensus_pubkey = l.consensus_pubkey ? s.Any.toJSON(l.consensus_pubkey) : void 0), l.jailed !== void 0 && (j.jailed = l.jailed), l.status !== void 0 && (j.status = f(l.status)), l.tokens !== void 0 && (j.tokens = l.tokens), l.delegator_shares !== void 0 && (j.delegator_shares = l.delegator_shares), l.description !== void 0 && (j.description = l.description ? e.Description.toJSON(l.description) : void 0), l.unbonding_height !== void 0 && (j.unbonding_height = l.unbonding_height), l.unbonding_time !== void 0 && (j.unbonding_time = h(l.unbonding_time).toISOString()), l.commission !== void 0 && (j.commission = l.commission ? e.Commission.toJSON(l.commission) : void 0), l.min_self_delegation !== void 0 && (j.min_self_delegation = l.min_self_delegation), j; + return l.operator_address !== void 0 && (j.operator_address = l.operator_address), l.consensus_pubkey !== void 0 && (j.consensus_pubkey = l.consensus_pubkey ? s.Any.toJSON(l.consensus_pubkey) : void 0), l.jailed !== void 0 && (j.jailed = l.jailed), l.status !== void 0 && (j.status = f(l.status)), l.tokens !== void 0 && (j.tokens = l.tokens), l.delegator_shares !== void 0 && (j.delegator_shares = l.delegator_shares), l.description !== void 0 && (j.description = l.description ? e.Description.toJSON(l.description) : void 0), l.unbonding_height !== void 0 && (j.unbonding_height = l.unbonding_height), l.unbonding_time !== void 0 && (j.unbonding_time = p(l.unbonding_time).toISOString()), l.commission !== void 0 && (j.commission = l.commission ? e.Commission.toJSON(l.commission) : void 0), l.min_self_delegation !== void 0 && (j.min_self_delegation = l.min_self_delegation), j; }, fromPartial(l) { var j, M, N, C, x, P, v; const m = { operator_address: "", consensus_pubkey: void 0, jailed: !1, status: 0, tokens: "", delegator_shares: "", description: void 0, unbonding_height: "0", unbonding_time: void 0, commission: void 0, min_self_delegation: "" }; @@ -22521,7 +22521,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return C; }, fromJSON: (l) => ({ creation_height: I(l.creation_height) ? String(l.creation_height) : "0", completion_time: I(l.completion_time) ? _(l.completion_time) : void 0, initial_balance: I(l.initial_balance) ? String(l.initial_balance) : "", balance: I(l.balance) ? String(l.balance) : "" }), toJSON(l) { const j = {}; - return l.creation_height !== void 0 && (j.creation_height = l.creation_height), l.completion_time !== void 0 && (j.completion_time = h(l.completion_time).toISOString()), l.initial_balance !== void 0 && (j.initial_balance = l.initial_balance), l.balance !== void 0 && (j.balance = l.balance), j; + return l.creation_height !== void 0 && (j.creation_height = l.creation_height), l.completion_time !== void 0 && (j.completion_time = p(l.completion_time).toISOString()), l.initial_balance !== void 0 && (j.initial_balance = l.initial_balance), l.balance !== void 0 && (j.balance = l.balance), j; }, fromPartial(l) { var j, M, N; const C = { creation_height: "0", completion_time: void 0, initial_balance: "", balance: "" }; @@ -22552,7 +22552,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return C; }, fromJSON: (l) => ({ creation_height: I(l.creation_height) ? String(l.creation_height) : "0", completion_time: I(l.completion_time) ? _(l.completion_time) : void 0, initial_balance: I(l.initial_balance) ? String(l.initial_balance) : "", shares_dst: I(l.shares_dst) ? String(l.shares_dst) : "" }), toJSON(l) { const j = {}; - return l.creation_height !== void 0 && (j.creation_height = l.creation_height), l.completion_time !== void 0 && (j.completion_time = h(l.completion_time).toISOString()), l.initial_balance !== void 0 && (j.initial_balance = l.initial_balance), l.shares_dst !== void 0 && (j.shares_dst = l.shares_dst), j; + return l.creation_height !== void 0 && (j.creation_height = l.creation_height), l.completion_time !== void 0 && (j.completion_time = p(l.completion_time).toISOString()), l.initial_balance !== void 0 && (j.initial_balance = l.initial_balance), l.shares_dst !== void 0 && (j.shares_dst = l.shares_dst), j; }, fromPartial(l) { var j, M, N; const C = { creation_height: "0", completion_time: void 0, initial_balance: "", shares_dst: "" }; @@ -22732,36 +22732,36 @@ Use Chrome, Firefox or Internet Explorer 11`); const N = { not_bonded_tokens: "", bonded_tokens: "" }; return N.not_bonded_tokens = (j = l.not_bonded_tokens) !== null && j !== void 0 ? j : "", N.bonded_tokens = (M = l.bonded_tokens) !== null && M !== void 0 ? M : "", N; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 7704: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(d, h, _, b) { + }, 7704: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(d, p, _, b) { b === void 0 && (b = _), Object.defineProperty(d, b, { enumerable: !0, get: function() { - return h[_]; + return p[_]; } }); - } : function(d, h, _, b) { - b === void 0 && (b = _), d[b] = h[_]; - }), O = this && this.__setModuleDefault || (Object.create ? function(d, h) { - Object.defineProperty(d, "default", { enumerable: !0, value: h }); - } : function(d, h) { - d.default = h; + } : function(d, p, _, b) { + b === void 0 && (b = _), d[b] = p[_]; + }), O = this && this.__setModuleDefault || (Object.create ? function(d, p) { + Object.defineProperty(d, "default", { enumerable: !0, value: p }); + } : function(d, p) { + d.default = p; }), k = this && this.__importStar || function(d) { if (d && d.__esModule) return d; - var h = {}; + var p = {}; if (d != null) for (var _ in d) - _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(h, d, _); - return O(h, d), h; + _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(p, d, _); + return O(p, d), p; }, S = this && this.__importDefault || function(d) { return d && d.__esModule ? d : { default: d }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgUndelegateResponse = e.MsgUndelegate = e.MsgBeginRedelegateResponse = e.MsgBeginRedelegate = e.MsgDelegateResponse = e.MsgDelegate = e.MsgEditValidatorResponse = e.MsgEditValidator = e.MsgCreateValidatorResponse = e.MsgCreateValidator = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2572), u = p(4191), s = p(2976), r = p(5090); + const a = S(h(3720)), t = k(h(2100)), c = h(2572), u = h(4191), s = h(2976), r = h(5090); function n(d) { return { seconds: Math.trunc(d.getTime() / 1e3).toString(), nanos: d.getTime() % 1e3 * 1e6 }; } function o(d) { - let h = 1e3 * Number(d.seconds); - return h += d.nanos / 1e6, new Date(h); + let p = 1e3 * Number(d.seconds); + return p += d.nanos / 1e6, new Date(p); } function i(d) { return d instanceof Date ? n(d) : typeof d == "string" ? n(new Date(d)) : r.Timestamp.fromJSON(d); @@ -22769,9 +22769,9 @@ Use Chrome, Firefox or Internet Explorer 11`); function f(d) { return d != null; } - e.protobufPackage = "cosmos.staking.v1beta1", e.MsgCreateValidator = { encode: (d, h = t.Writer.create()) => (d.description !== void 0 && c.Description.encode(d.description, h.uint32(10).fork()).ldelim(), d.commission !== void 0 && c.CommissionRates.encode(d.commission, h.uint32(18).fork()).ldelim(), d.min_self_delegation !== "" && h.uint32(26).string(d.min_self_delegation), d.delegator_address !== "" && h.uint32(34).string(d.delegator_address), d.validator_address !== "" && h.uint32(42).string(d.validator_address), d.pubkey !== void 0 && u.Any.encode(d.pubkey, h.uint32(50).fork()).ldelim(), d.value !== void 0 && s.Coin.encode(d.value, h.uint32(58).fork()).ldelim(), h), decode(d, h) { + e.protobufPackage = "cosmos.staking.v1beta1", e.MsgCreateValidator = { encode: (d, p = t.Writer.create()) => (d.description !== void 0 && c.Description.encode(d.description, p.uint32(10).fork()).ldelim(), d.commission !== void 0 && c.CommissionRates.encode(d.commission, p.uint32(18).fork()).ldelim(), d.min_self_delegation !== "" && p.uint32(26).string(d.min_self_delegation), d.delegator_address !== "" && p.uint32(34).string(d.delegator_address), d.validator_address !== "" && p.uint32(42).string(d.validator_address), d.pubkey !== void 0 && u.Any.encode(d.pubkey, p.uint32(50).fork()).ldelim(), d.value !== void 0 && s.Coin.encode(d.value, p.uint32(58).fork()).ldelim(), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { description: void 0, commission: void 0, min_self_delegation: "", delegator_address: "", validator_address: "", pubkey: void 0, value: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -22803,23 +22803,23 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ description: f(d.description) ? c.Description.fromJSON(d.description) : void 0, commission: f(d.commission) ? c.CommissionRates.fromJSON(d.commission) : void 0, min_self_delegation: f(d.min_self_delegation) ? String(d.min_self_delegation) : "", delegator_address: f(d.delegator_address) ? String(d.delegator_address) : "", validator_address: f(d.validator_address) ? String(d.validator_address) : "", pubkey: f(d.pubkey) ? u.Any.fromJSON(d.pubkey) : void 0, value: f(d.value) ? s.Coin.fromJSON(d.value) : void 0 }), toJSON(d) { - const h = {}; - return d.description !== void 0 && (h.description = d.description ? c.Description.toJSON(d.description) : void 0), d.commission !== void 0 && (h.commission = d.commission ? c.CommissionRates.toJSON(d.commission) : void 0), d.min_self_delegation !== void 0 && (h.min_self_delegation = d.min_self_delegation), d.delegator_address !== void 0 && (h.delegator_address = d.delegator_address), d.validator_address !== void 0 && (h.validator_address = d.validator_address), d.pubkey !== void 0 && (h.pubkey = d.pubkey ? u.Any.toJSON(d.pubkey) : void 0), d.value !== void 0 && (h.value = d.value ? s.Coin.toJSON(d.value) : void 0), h; + const p = {}; + return d.description !== void 0 && (p.description = d.description ? c.Description.toJSON(d.description) : void 0), d.commission !== void 0 && (p.commission = d.commission ? c.CommissionRates.toJSON(d.commission) : void 0), d.min_self_delegation !== void 0 && (p.min_self_delegation = d.min_self_delegation), d.delegator_address !== void 0 && (p.delegator_address = d.delegator_address), d.validator_address !== void 0 && (p.validator_address = d.validator_address), d.pubkey !== void 0 && (p.pubkey = d.pubkey ? u.Any.toJSON(d.pubkey) : void 0), d.value !== void 0 && (p.value = d.value ? s.Coin.toJSON(d.value) : void 0), p; }, fromPartial(d) { - var h, _, b; + var p, _, b; const I = { description: void 0, commission: void 0, min_self_delegation: "", delegator_address: "", validator_address: "", pubkey: void 0, value: void 0 }; - return I.description = d.description !== void 0 && d.description !== null ? c.Description.fromPartial(d.description) : void 0, I.commission = d.commission !== void 0 && d.commission !== null ? c.CommissionRates.fromPartial(d.commission) : void 0, I.min_self_delegation = (h = d.min_self_delegation) !== null && h !== void 0 ? h : "", I.delegator_address = (_ = d.delegator_address) !== null && _ !== void 0 ? _ : "", I.validator_address = (b = d.validator_address) !== null && b !== void 0 ? b : "", I.pubkey = d.pubkey !== void 0 && d.pubkey !== null ? u.Any.fromPartial(d.pubkey) : void 0, I.value = d.value !== void 0 && d.value !== null ? s.Coin.fromPartial(d.value) : void 0, I; - } }, e.MsgCreateValidatorResponse = { encode: (d, h = t.Writer.create()) => h, decode(d, h) { + return I.description = d.description !== void 0 && d.description !== null ? c.Description.fromPartial(d.description) : void 0, I.commission = d.commission !== void 0 && d.commission !== null ? c.CommissionRates.fromPartial(d.commission) : void 0, I.min_self_delegation = (p = d.min_self_delegation) !== null && p !== void 0 ? p : "", I.delegator_address = (_ = d.delegator_address) !== null && _ !== void 0 ? _ : "", I.validator_address = (b = d.validator_address) !== null && b !== void 0 ? b : "", I.pubkey = d.pubkey !== void 0 && d.pubkey !== null ? u.Any.fromPartial(d.pubkey) : void 0, I.value = d.value !== void 0 && d.value !== null ? s.Coin.fromPartial(d.value) : void 0, I; + } }, e.MsgCreateValidatorResponse = { encode: (d, p = t.Writer.create()) => p, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; for (; _.pos < b; ) { const I = _.uint32(); _.skipType(7 & I); } return {}; - }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgEditValidator = { encode: (d, h = t.Writer.create()) => (d.description !== void 0 && c.Description.encode(d.description, h.uint32(10).fork()).ldelim(), d.validator_address !== "" && h.uint32(18).string(d.validator_address), d.commission_rate !== "" && h.uint32(26).string(d.commission_rate), d.min_self_delegation !== "" && h.uint32(34).string(d.min_self_delegation), h), decode(d, h) { + }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgEditValidator = { encode: (d, p = t.Writer.create()) => (d.description !== void 0 && c.Description.encode(d.description, p.uint32(10).fork()).ldelim(), d.validator_address !== "" && p.uint32(18).string(d.validator_address), d.commission_rate !== "" && p.uint32(26).string(d.commission_rate), d.min_self_delegation !== "" && p.uint32(34).string(d.min_self_delegation), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { description: void 0, validator_address: "", commission_rate: "", min_self_delegation: "" }; for (; _.pos < b; ) { const l = _.uint32(); @@ -22842,23 +22842,23 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ description: f(d.description) ? c.Description.fromJSON(d.description) : void 0, validator_address: f(d.validator_address) ? String(d.validator_address) : "", commission_rate: f(d.commission_rate) ? String(d.commission_rate) : "", min_self_delegation: f(d.min_self_delegation) ? String(d.min_self_delegation) : "" }), toJSON(d) { - const h = {}; - return d.description !== void 0 && (h.description = d.description ? c.Description.toJSON(d.description) : void 0), d.validator_address !== void 0 && (h.validator_address = d.validator_address), d.commission_rate !== void 0 && (h.commission_rate = d.commission_rate), d.min_self_delegation !== void 0 && (h.min_self_delegation = d.min_self_delegation), h; + const p = {}; + return d.description !== void 0 && (p.description = d.description ? c.Description.toJSON(d.description) : void 0), d.validator_address !== void 0 && (p.validator_address = d.validator_address), d.commission_rate !== void 0 && (p.commission_rate = d.commission_rate), d.min_self_delegation !== void 0 && (p.min_self_delegation = d.min_self_delegation), p; }, fromPartial(d) { - var h, _, b; + var p, _, b; const I = { description: void 0, validator_address: "", commission_rate: "", min_self_delegation: "" }; - return I.description = d.description !== void 0 && d.description !== null ? c.Description.fromPartial(d.description) : void 0, I.validator_address = (h = d.validator_address) !== null && h !== void 0 ? h : "", I.commission_rate = (_ = d.commission_rate) !== null && _ !== void 0 ? _ : "", I.min_self_delegation = (b = d.min_self_delegation) !== null && b !== void 0 ? b : "", I; - } }, e.MsgEditValidatorResponse = { encode: (d, h = t.Writer.create()) => h, decode(d, h) { + return I.description = d.description !== void 0 && d.description !== null ? c.Description.fromPartial(d.description) : void 0, I.validator_address = (p = d.validator_address) !== null && p !== void 0 ? p : "", I.commission_rate = (_ = d.commission_rate) !== null && _ !== void 0 ? _ : "", I.min_self_delegation = (b = d.min_self_delegation) !== null && b !== void 0 ? b : "", I; + } }, e.MsgEditValidatorResponse = { encode: (d, p = t.Writer.create()) => p, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; for (; _.pos < b; ) { const I = _.uint32(); _.skipType(7 & I); } return {}; - }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgDelegate = { encode: (d, h = t.Writer.create()) => (d.delegator_address !== "" && h.uint32(10).string(d.delegator_address), d.validator_address !== "" && h.uint32(18).string(d.validator_address), d.amount !== void 0 && s.Coin.encode(d.amount, h.uint32(26).fork()).ldelim(), h), decode(d, h) { + }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgDelegate = { encode: (d, p = t.Writer.create()) => (d.delegator_address !== "" && p.uint32(10).string(d.delegator_address), d.validator_address !== "" && p.uint32(18).string(d.validator_address), d.amount !== void 0 && s.Coin.encode(d.amount, p.uint32(26).fork()).ldelim(), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { delegator_address: "", validator_address: "", amount: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -22878,23 +22878,23 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ delegator_address: f(d.delegator_address) ? String(d.delegator_address) : "", validator_address: f(d.validator_address) ? String(d.validator_address) : "", amount: f(d.amount) ? s.Coin.fromJSON(d.amount) : void 0 }), toJSON(d) { - const h = {}; - return d.delegator_address !== void 0 && (h.delegator_address = d.delegator_address), d.validator_address !== void 0 && (h.validator_address = d.validator_address), d.amount !== void 0 && (h.amount = d.amount ? s.Coin.toJSON(d.amount) : void 0), h; + const p = {}; + return d.delegator_address !== void 0 && (p.delegator_address = d.delegator_address), d.validator_address !== void 0 && (p.validator_address = d.validator_address), d.amount !== void 0 && (p.amount = d.amount ? s.Coin.toJSON(d.amount) : void 0), p; }, fromPartial(d) { - var h, _; + var p, _; const b = { delegator_address: "", validator_address: "", amount: void 0 }; - return b.delegator_address = (h = d.delegator_address) !== null && h !== void 0 ? h : "", b.validator_address = (_ = d.validator_address) !== null && _ !== void 0 ? _ : "", b.amount = d.amount !== void 0 && d.amount !== null ? s.Coin.fromPartial(d.amount) : void 0, b; - } }, e.MsgDelegateResponse = { encode: (d, h = t.Writer.create()) => h, decode(d, h) { + return b.delegator_address = (p = d.delegator_address) !== null && p !== void 0 ? p : "", b.validator_address = (_ = d.validator_address) !== null && _ !== void 0 ? _ : "", b.amount = d.amount !== void 0 && d.amount !== null ? s.Coin.fromPartial(d.amount) : void 0, b; + } }, e.MsgDelegateResponse = { encode: (d, p = t.Writer.create()) => p, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; for (; _.pos < b; ) { const I = _.uint32(); _.skipType(7 & I); } return {}; - }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgBeginRedelegate = { encode: (d, h = t.Writer.create()) => (d.delegator_address !== "" && h.uint32(10).string(d.delegator_address), d.validator_src_address !== "" && h.uint32(18).string(d.validator_src_address), d.validator_dst_address !== "" && h.uint32(26).string(d.validator_dst_address), d.amount !== void 0 && s.Coin.encode(d.amount, h.uint32(34).fork()).ldelim(), h), decode(d, h) { + }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgBeginRedelegate = { encode: (d, p = t.Writer.create()) => (d.delegator_address !== "" && p.uint32(10).string(d.delegator_address), d.validator_src_address !== "" && p.uint32(18).string(d.validator_src_address), d.validator_dst_address !== "" && p.uint32(26).string(d.validator_dst_address), d.amount !== void 0 && s.Coin.encode(d.amount, p.uint32(34).fork()).ldelim(), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { delegator_address: "", validator_src_address: "", validator_dst_address: "", amount: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -22917,15 +22917,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ delegator_address: f(d.delegator_address) ? String(d.delegator_address) : "", validator_src_address: f(d.validator_src_address) ? String(d.validator_src_address) : "", validator_dst_address: f(d.validator_dst_address) ? String(d.validator_dst_address) : "", amount: f(d.amount) ? s.Coin.fromJSON(d.amount) : void 0 }), toJSON(d) { - const h = {}; - return d.delegator_address !== void 0 && (h.delegator_address = d.delegator_address), d.validator_src_address !== void 0 && (h.validator_src_address = d.validator_src_address), d.validator_dst_address !== void 0 && (h.validator_dst_address = d.validator_dst_address), d.amount !== void 0 && (h.amount = d.amount ? s.Coin.toJSON(d.amount) : void 0), h; + const p = {}; + return d.delegator_address !== void 0 && (p.delegator_address = d.delegator_address), d.validator_src_address !== void 0 && (p.validator_src_address = d.validator_src_address), d.validator_dst_address !== void 0 && (p.validator_dst_address = d.validator_dst_address), d.amount !== void 0 && (p.amount = d.amount ? s.Coin.toJSON(d.amount) : void 0), p; }, fromPartial(d) { - var h, _, b; + var p, _, b; const I = { delegator_address: "", validator_src_address: "", validator_dst_address: "", amount: void 0 }; - return I.delegator_address = (h = d.delegator_address) !== null && h !== void 0 ? h : "", I.validator_src_address = (_ = d.validator_src_address) !== null && _ !== void 0 ? _ : "", I.validator_dst_address = (b = d.validator_dst_address) !== null && b !== void 0 ? b : "", I.amount = d.amount !== void 0 && d.amount !== null ? s.Coin.fromPartial(d.amount) : void 0, I; - } }, e.MsgBeginRedelegateResponse = { encode: (d, h = t.Writer.create()) => (d.completion_time !== void 0 && r.Timestamp.encode(d.completion_time, h.uint32(10).fork()).ldelim(), h), decode(d, h) { + return I.delegator_address = (p = d.delegator_address) !== null && p !== void 0 ? p : "", I.validator_src_address = (_ = d.validator_src_address) !== null && _ !== void 0 ? _ : "", I.validator_dst_address = (b = d.validator_dst_address) !== null && b !== void 0 ? b : "", I.amount = d.amount !== void 0 && d.amount !== null ? s.Coin.fromPartial(d.amount) : void 0, I; + } }, e.MsgBeginRedelegateResponse = { encode: (d, p = t.Writer.create()) => (d.completion_time !== void 0 && r.Timestamp.encode(d.completion_time, p.uint32(10).fork()).ldelim(), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { completion_time: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -22933,14 +22933,14 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ completion_time: f(d.completion_time) ? i(d.completion_time) : void 0 }), toJSON(d) { - const h = {}; - return d.completion_time !== void 0 && (h.completion_time = o(d.completion_time).toISOString()), h; + const p = {}; + return d.completion_time !== void 0 && (p.completion_time = o(d.completion_time).toISOString()), p; }, fromPartial(d) { - const h = { completion_time: void 0 }; - return h.completion_time = d.completion_time !== void 0 && d.completion_time !== null ? r.Timestamp.fromPartial(d.completion_time) : void 0, h; - } }, e.MsgUndelegate = { encode: (d, h = t.Writer.create()) => (d.delegator_address !== "" && h.uint32(10).string(d.delegator_address), d.validator_address !== "" && h.uint32(18).string(d.validator_address), d.amount !== void 0 && s.Coin.encode(d.amount, h.uint32(26).fork()).ldelim(), h), decode(d, h) { + const p = { completion_time: void 0 }; + return p.completion_time = d.completion_time !== void 0 && d.completion_time !== null ? r.Timestamp.fromPartial(d.completion_time) : void 0, p; + } }, e.MsgUndelegate = { encode: (d, p = t.Writer.create()) => (d.delegator_address !== "" && p.uint32(10).string(d.delegator_address), d.validator_address !== "" && p.uint32(18).string(d.validator_address), d.amount !== void 0 && s.Coin.encode(d.amount, p.uint32(26).fork()).ldelim(), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { delegator_address: "", validator_address: "", amount: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -22960,15 +22960,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ delegator_address: f(d.delegator_address) ? String(d.delegator_address) : "", validator_address: f(d.validator_address) ? String(d.validator_address) : "", amount: f(d.amount) ? s.Coin.fromJSON(d.amount) : void 0 }), toJSON(d) { - const h = {}; - return d.delegator_address !== void 0 && (h.delegator_address = d.delegator_address), d.validator_address !== void 0 && (h.validator_address = d.validator_address), d.amount !== void 0 && (h.amount = d.amount ? s.Coin.toJSON(d.amount) : void 0), h; + const p = {}; + return d.delegator_address !== void 0 && (p.delegator_address = d.delegator_address), d.validator_address !== void 0 && (p.validator_address = d.validator_address), d.amount !== void 0 && (p.amount = d.amount ? s.Coin.toJSON(d.amount) : void 0), p; }, fromPartial(d) { - var h, _; + var p, _; const b = { delegator_address: "", validator_address: "", amount: void 0 }; - return b.delegator_address = (h = d.delegator_address) !== null && h !== void 0 ? h : "", b.validator_address = (_ = d.validator_address) !== null && _ !== void 0 ? _ : "", b.amount = d.amount !== void 0 && d.amount !== null ? s.Coin.fromPartial(d.amount) : void 0, b; - } }, e.MsgUndelegateResponse = { encode: (d, h = t.Writer.create()) => (d.completion_time !== void 0 && r.Timestamp.encode(d.completion_time, h.uint32(10).fork()).ldelim(), h), decode(d, h) { + return b.delegator_address = (p = d.delegator_address) !== null && p !== void 0 ? p : "", b.validator_address = (_ = d.validator_address) !== null && _ !== void 0 ? _ : "", b.amount = d.amount !== void 0 && d.amount !== null ? s.Coin.fromPartial(d.amount) : void 0, b; + } }, e.MsgUndelegateResponse = { encode: (d, p = t.Writer.create()) => (d.completion_time !== void 0 && r.Timestamp.encode(d.completion_time, p.uint32(10).fork()).ldelim(), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { completion_time: void 0 }; for (; _.pos < b; ) { const l = _.uint32(); @@ -22976,37 +22976,37 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ completion_time: f(d.completion_time) ? i(d.completion_time) : void 0 }), toJSON(d) { - const h = {}; - return d.completion_time !== void 0 && (h.completion_time = o(d.completion_time).toISOString()), h; + const p = {}; + return d.completion_time !== void 0 && (p.completion_time = o(d.completion_time).toISOString()), p; }, fromPartial(d) { - const h = { completion_time: void 0 }; - return h.completion_time = d.completion_time !== void 0 && d.completion_time !== null ? r.Timestamp.fromPartial(d.completion_time) : void 0, h; + const p = { completion_time: void 0 }; + return p.completion_time = d.completion_time !== void 0 && d.completion_time !== null ? r.Timestamp.fromPartial(d.completion_time) : void 0, p; } }, e.MsgClientImpl = class { constructor(d) { this.rpc = d, 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); } CreateValidator(d) { - const h = e.MsgCreateValidator.encode(d).finish(); - return this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", h).then((_) => e.MsgCreateValidatorResponse.decode(new t.Reader(_))); + const p = e.MsgCreateValidator.encode(d).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "CreateValidator", p).then((_) => e.MsgCreateValidatorResponse.decode(new t.Reader(_))); } EditValidator(d) { - const h = e.MsgEditValidator.encode(d).finish(); - return this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", h).then((_) => e.MsgEditValidatorResponse.decode(new t.Reader(_))); + const p = e.MsgEditValidator.encode(d).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "EditValidator", p).then((_) => e.MsgEditValidatorResponse.decode(new t.Reader(_))); } Delegate(d) { - const h = e.MsgDelegate.encode(d).finish(); - return this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", h).then((_) => e.MsgDelegateResponse.decode(new t.Reader(_))); + const p = e.MsgDelegate.encode(d).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "Delegate", p).then((_) => e.MsgDelegateResponse.decode(new t.Reader(_))); } BeginRedelegate(d) { - const h = e.MsgBeginRedelegate.encode(d).finish(); - return this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", h).then((_) => e.MsgBeginRedelegateResponse.decode(new t.Reader(_))); + const p = e.MsgBeginRedelegate.encode(d).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "BeginRedelegate", p).then((_) => e.MsgBeginRedelegateResponse.decode(new t.Reader(_))); } Undelegate(d) { - const h = e.MsgUndelegate.encode(d).finish(); - return this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", h).then((_) => e.MsgUndelegateResponse.decode(new t.Reader(_))); + const p = e.MsgUndelegate.encode(d).finish(); + return this.rpc.request("cosmos.staking.v1beta1.Msg", "Undelegate", p).then((_) => e.MsgUndelegateResponse.decode(new t.Reader(_))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 8502: function(D, e, p) { + }, 8502: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(b, I, l, j) { j === void 0 && (j = l), Object.defineProperty(b, j, { enumerable: !0, get: function() { return I[l]; @@ -23029,7 +23029,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return b && b.__esModule ? b : { default: b }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.SignatureDescriptor_Data_Multi = e.SignatureDescriptor_Data_Single = e.SignatureDescriptor_Data = e.SignatureDescriptor = e.SignatureDescriptors = e.signModeToJSON = e.signModeFromJSON = e.SignMode = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191), u = p(4271); + const a = S(h(3720)), t = k(h(2100)), c = h(4191), u = h(4271); var s; function r(b) { switch (b) { @@ -23169,7 +23169,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const j = []; for (const M of l) j.push(String.fromCharCode(M)); - return h(j.join("")); + return p(j.join("")); }(b.signature !== void 0 ? b.signature : new Uint8Array())), I; }, fromPartial(b) { var I, l; @@ -23213,8 +23213,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const f = i.atob || ((b) => i.Buffer.from(b, "base64").toString("binary")); @@ -23224,12 +23224,12 @@ Use Chrome, Firefox or Internet Explorer 11`); l[j] = I.charCodeAt(j); return l; } - const h = i.btoa || ((b) => i.Buffer.from(b, "binary").toString("base64")); + const p = i.btoa || ((b) => i.Buffer.from(b, "binary").toString("base64")); function _(b) { return b != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 6994: function(D, e, p) { + }, 6994: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(l, j, M, N) { N === void 0 && (N = M), Object.defineProperty(l, N, { enumerable: !0, get: function() { return j[M]; @@ -23252,7 +23252,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return l && l.__esModule ? l : { default: l }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Fee = e.ModeInfo_Multi = e.ModeInfo_Single = e.ModeInfo = e.SignerInfo = e.AuthInfo = e.TxBody = e.SignDoc = e.TxRaw = e.Tx = e.Txs = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191), u = p(8502), s = p(4271), r = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(4191), u = h(8502), s = h(4271), r = h(2976); function n() { return { body_bytes: new Uint8Array(), auth_info_bytes: new Uint8Array(), signatures: [] }; } @@ -23589,8 +23589,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const f = i.atob || ((l) => i.Buffer.from(l, "base64").toString("binary")); @@ -23600,12 +23600,12 @@ Use Chrome, Firefox or Internet Explorer 11`); M[N] = j.charCodeAt(N); return M; } - const h = i.btoa || ((l) => i.Buffer.from(l, "binary").toString("base64")); + const p = i.btoa || ((l) => i.Buffer.from(l, "binary").toString("base64")); function _(l) { const j = []; for (const M of l) j.push(String.fromCharCode(M)); - return h(j.join("")); + return p(j.join("")); } function b(l) { return l.toString(); @@ -23614,7 +23614,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return l != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 8310: function(D, e, p) { + }, 8310: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(o, i, f, d) { d === void 0 && (d = f), Object.defineProperty(o, d, { enumerable: !0, get: function() { return i[f]; @@ -23637,7 +23637,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return o && o.__esModule ? o : { default: o }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.ModuleVersion = e.CancelSoftwareUpgradeProposal = e.SoftwareUpgradeProposal = e.Plan = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(5090), u = p(4191); + const a = S(h(3720)), t = k(h(2100)), c = h(5090), u = h(4191); function s(o) { return { seconds: Math.trunc(o.getTime() / 1e3).toString(), nanos: o.getTime() % 1e3 * 1e6 }; } @@ -23650,30 +23650,30 @@ Use Chrome, Firefox or Internet Explorer 11`); e.protobufPackage = "cosmos.upgrade.v1beta1", e.Plan = { encode: (o, i = t.Writer.create()) => (o.name !== "" && i.uint32(10).string(o.name), o.time !== void 0 && c.Timestamp.encode(o.time, i.uint32(18).fork()).ldelim(), o.height !== "0" && i.uint32(24).int64(o.height), o.info !== "" && i.uint32(34).string(o.info), o.upgraded_client_state !== void 0 && u.Any.encode(o.upgraded_client_state, i.uint32(42).fork()).ldelim(), i), decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { name: "", time: void 0, height: "0", info: "", upgraded_client_state: void 0 }; + const p = { name: "", time: void 0, height: "0", info: "", upgraded_client_state: void 0 }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.name = f.string(); + p.name = f.string(); break; case 2: - h.time = c.Timestamp.decode(f, f.uint32()); + p.time = c.Timestamp.decode(f, f.uint32()); break; case 3: - h.height = r(f.int64()); + p.height = r(f.int64()); break; case 4: - h.info = f.string(); + p.info = f.string(); break; case 5: - h.upgraded_client_state = u.Any.decode(f, f.uint32()); + p.upgraded_client_state = u.Any.decode(f, f.uint32()); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => { return { name: n(o.name) ? String(o.name) : "", time: n(o.time) ? (i = o.time, i instanceof Date ? s(i) : typeof i == "string" ? s(new Date(i)) : c.Timestamp.fromJSON(i)) : void 0, height: n(o.height) ? String(o.height) : "0", info: n(o.info) ? String(o.info) : "", upgraded_client_state: n(o.upgraded_client_state) ? u.Any.fromJSON(o.upgraded_client_state) : void 0 }; var i; @@ -23685,29 +23685,29 @@ Use Chrome, Firefox or Internet Explorer 11`); }(o.time).toISOString()), o.height !== void 0 && (i.height = o.height), o.info !== void 0 && (i.info = o.info), o.upgraded_client_state !== void 0 && (i.upgraded_client_state = o.upgraded_client_state ? u.Any.toJSON(o.upgraded_client_state) : void 0), i; }, fromPartial(o) { var i, f, d; - const h = { name: "", time: void 0, height: "0", info: "", upgraded_client_state: void 0 }; - return h.name = (i = o.name) !== null && i !== void 0 ? i : "", h.time = o.time !== void 0 && o.time !== null ? c.Timestamp.fromPartial(o.time) : void 0, h.height = (f = o.height) !== null && f !== void 0 ? f : "0", h.info = (d = o.info) !== null && d !== void 0 ? d : "", h.upgraded_client_state = o.upgraded_client_state !== void 0 && o.upgraded_client_state !== null ? u.Any.fromPartial(o.upgraded_client_state) : void 0, h; + const p = { name: "", time: void 0, height: "0", info: "", upgraded_client_state: void 0 }; + return p.name = (i = o.name) !== null && i !== void 0 ? i : "", p.time = o.time !== void 0 && o.time !== null ? c.Timestamp.fromPartial(o.time) : void 0, p.height = (f = o.height) !== null && f !== void 0 ? f : "0", p.info = (d = o.info) !== null && d !== void 0 ? d : "", p.upgraded_client_state = o.upgraded_client_state !== void 0 && o.upgraded_client_state !== null ? u.Any.fromPartial(o.upgraded_client_state) : void 0, p; } }, e.SoftwareUpgradeProposal = { encode: (o, i = t.Writer.create()) => (o.title !== "" && i.uint32(10).string(o.title), o.description !== "" && i.uint32(18).string(o.description), o.plan !== void 0 && e.Plan.encode(o.plan, i.uint32(26).fork()).ldelim(), i), decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { title: "", description: "", plan: void 0 }; + const p = { title: "", description: "", plan: void 0 }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.title = f.string(); + p.title = f.string(); break; case 2: - h.description = f.string(); + p.description = f.string(); break; case 3: - h.plan = e.Plan.decode(f, f.uint32()); + p.plan = e.Plan.decode(f, f.uint32()); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ title: n(o.title) ? String(o.title) : "", description: n(o.description) ? String(o.description) : "", plan: n(o.plan) ? e.Plan.fromJSON(o.plan) : void 0 }), toJSON(o) { const i = {}; return o.title !== void 0 && (i.title = o.title), o.description !== void 0 && (i.description = o.description), o.plan !== void 0 && (i.plan = o.plan ? e.Plan.toJSON(o.plan) : void 0), i; @@ -23718,21 +23718,21 @@ Use Chrome, Firefox or Internet Explorer 11`); } }, e.CancelSoftwareUpgradeProposal = { encode: (o, i = t.Writer.create()) => (o.title !== "" && i.uint32(10).string(o.title), o.description !== "" && i.uint32(18).string(o.description), i), decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { title: "", description: "" }; + const p = { title: "", description: "" }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.title = f.string(); + p.title = f.string(); break; case 2: - h.description = f.string(); + p.description = f.string(); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ title: n(o.title) ? String(o.title) : "", description: n(o.description) ? String(o.description) : "" }), toJSON(o) { const i = {}; return o.title !== void 0 && (i.title = o.title), o.description !== void 0 && (i.description = o.description), i; @@ -23743,21 +23743,21 @@ Use Chrome, Firefox or Internet Explorer 11`); } }, e.ModuleVersion = { encode: (o, i = t.Writer.create()) => (o.name !== "" && i.uint32(10).string(o.name), o.version !== "0" && i.uint32(16).uint64(o.version), i), decode(o, i) { const f = o instanceof t.Reader ? o : new t.Reader(o); let d = i === void 0 ? f.len : f.pos + i; - const h = { name: "", version: "0" }; + const p = { name: "", version: "0" }; for (; f.pos < d; ) { const _ = f.uint32(); switch (_ >>> 3) { case 1: - h.name = f.string(); + p.name = f.string(); break; case 2: - h.version = r(f.uint64()); + p.version = r(f.uint64()); break; default: f.skipType(7 & _); } } - return h; + return p; }, fromJSON: (o) => ({ name: n(o.name) ? String(o.name) : "", version: n(o.version) ? String(o.version) : "0" }), toJSON(o) { const i = {}; return o.name !== void 0 && (i.name = o.name), o.version !== void 0 && (i.version = o.version), i; @@ -23766,7 +23766,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const d = { name: "", version: "0" }; return d.name = (i = o.name) !== null && i !== void 0 ? i : "", d.version = (f = o.version) !== null && f !== void 0 ? f : "0", d; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 8644: function(D, e, p) { + }, 8644: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(s, r, n, o) { o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { return r[n]; @@ -23789,7 +23789,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return s && s.__esModule ? s : { default: s }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgCreateVestingAccountResponse = e.MsgCreateVestingAccount = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(2976); function u(s) { return s != null; } @@ -23831,7 +23831,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, fromPartial(s) { var r, n, o, i, f; const d = { from_address: "", to_address: "", amount: [], end_time: "0", delayed: !1 }; - return d.from_address = (r = s.from_address) !== null && r !== void 0 ? r : "", d.to_address = (n = s.to_address) !== null && n !== void 0 ? n : "", d.amount = ((o = s.amount) === null || o === void 0 ? void 0 : o.map((h) => c.Coin.fromPartial(h))) || [], d.end_time = (i = s.end_time) !== null && i !== void 0 ? i : "0", d.delayed = (f = s.delayed) !== null && f !== void 0 && f, d; + return d.from_address = (r = s.from_address) !== null && r !== void 0 ? r : "", d.to_address = (n = s.to_address) !== null && n !== void 0 ? n : "", d.amount = ((o = s.amount) === null || o === void 0 ? void 0 : o.map((p) => c.Coin.fromPartial(p))) || [], d.end_time = (i = s.end_time) !== null && i !== void 0 ? i : "0", d.delayed = (f = s.delayed) !== null && f !== void 0 && f, d; } }, e.MsgCreateVestingAccountResponse = { encode: (s, r = t.Writer.create()) => r, decode(s, r) { const n = s instanceof t.Reader ? s : new t.Reader(s); let o = r === void 0 ? n.len : n.pos + r; @@ -23849,13 +23849,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("cosmos.vesting.v1beta1.Msg", "CreateVestingAccount", r).then((n) => e.MsgCreateVestingAccountResponse.decode(new t.Reader(n))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 4191: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(i, f, d, h) { - h === void 0 && (h = d), Object.defineProperty(i, h, { enumerable: !0, get: function() { + }, 4191: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(i, f, d, p) { + p === void 0 && (p = d), Object.defineProperty(i, p, { enumerable: !0, get: function() { return f[d]; } }); - } : function(i, f, d, h) { - h === void 0 && (h = d), i[h] = f[d]; + } : function(i, f, d, p) { + p === void 0 && (p = d), i[p] = f[d]; }), O = this && this.__setModuleDefault || (Object.create ? function(i, f) { Object.defineProperty(i, "default", { enumerable: !0, value: f }); } : function(i, f) { @@ -23872,15 +23872,15 @@ Use Chrome, Firefox or Internet Explorer 11`); return i && i.__esModule ? i : { default: i }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Any = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c() { return { type_url: "", value: new Uint8Array() }; } e.protobufPackage = "google.protobuf", e.Any = { encode: (i, f = t.Writer.create()) => (i.type_url !== "" && f.uint32(10).string(i.type_url), i.value.length !== 0 && f.uint32(18).bytes(i.value), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = c(); - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -23897,15 +23897,15 @@ Use Chrome, Firefox or Internet Explorer 11`); }, fromJSON: (i) => ({ type_url: o(i.type_url) ? String(i.type_url) : "", value: o(i.value) ? r(i.value) : new Uint8Array() }), toJSON(i) { const f = {}; return i.type_url !== void 0 && (f.type_url = i.type_url), i.value !== void 0 && (f.value = function(d) { - const h = []; + const p = []; for (const _ of d) - h.push(String.fromCharCode(_)); - return n(h.join("")); + p.push(String.fromCharCode(_)); + return n(p.join("")); }(i.value !== void 0 ? i.value : new Uint8Array())), f; }, fromPartial(i) { var f, d; - const h = c(); - return h.type_url = (f = i.type_url) !== null && f !== void 0 ? f : "", h.value = (d = i.value) !== null && d !== void 0 ? d : new Uint8Array(), h; + const p = c(); + return p.type_url = (f = i.type_url) !== null && f !== void 0 ? f : "", p.value = (d = i.value) !== null && d !== void 0 ? d : new Uint8Array(), p; } }; var u = (() => { if (u !== void 0) @@ -23914,15 +23914,15 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const s = u.atob || ((i) => u.Buffer.from(i, "base64").toString("binary")); function r(i) { const f = s(i), d = new Uint8Array(f.length); - for (let h = 0; h < f.length; ++h) - d[h] = f.charCodeAt(h); + for (let p = 0; p < f.length; ++p) + d[p] = f.charCodeAt(p); return d; } const n = u.btoa || ((i) => u.Buffer.from(i, "binary").toString("base64")); @@ -23930,7 +23930,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return i != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 6138: function(D, e, p) { + }, 6138: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(u, s, r, n) { n === void 0 && (n = r), Object.defineProperty(u, n, { enumerable: !0, get: function() { return s[r]; @@ -23953,7 +23953,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return u && u.__esModule ? u : { default: u }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Duration = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c(u) { return u != null; } @@ -23983,7 +23983,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const n = { seconds: "0", nanos: 0 }; return n.seconds = (s = u.seconds) !== null && s !== void 0 ? s : "0", n.nanos = (r = u.nanos) !== null && r !== void 0 ? r : 0, n; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5090: function(D, e, p) { + }, 5090: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(u, s, r, n) { n === void 0 && (n = r), Object.defineProperty(u, n, { enumerable: !0, get: function() { return s[r]; @@ -24006,7 +24006,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return u && u.__esModule ? u : { default: u }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Timestamp = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c(u) { return u != null; } @@ -24036,7 +24036,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const n = { seconds: "0", nanos: 0 }; return n.seconds = (s = u.seconds) !== null && s !== void 0 ? s : "0", n.nanos = (r = u.nanos) !== null && r !== void 0 ? r : 0, n; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 1106: function(D, e, p) { + }, 1106: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(r, n, o, i) { i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { return n[o]; @@ -24059,7 +24059,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return r && r.__esModule ? r : { default: r }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.IdentifiedPacketFees = e.PacketFees = e.PacketFee = e.Fee = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(5414), u = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(5414), u = h(2976); function s(r) { return r != null; } @@ -24183,7 +24183,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const o = { packet_id: void 0, packet_fees: [] }; return o.packet_id = r.packet_id !== void 0 && r.packet_id !== null ? c.PacketId.fromPartial(r.packet_id) : void 0, o.packet_fees = ((n = r.packet_fees) === null || n === void 0 ? void 0 : n.map((i) => e.PacketFee.fromPartial(i))) || [], o; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 6065: function(D, e, p) { + }, 6065: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(r, n, o, i) { i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { return n[o]; @@ -24206,7 +24206,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return r && r.__esModule ? r : { default: r }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgPayPacketFeeAsyncResponse = e.MsgPayPacketFeeAsync = e.MsgPayPacketFeeResponse = e.MsgPayPacketFee = e.MsgRegisterCounterpartyPayeeResponse = e.MsgRegisterCounterpartyPayee = e.MsgRegisterPayeeResponse = e.MsgRegisterPayee = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(1106), u = p(5414); + const a = S(h(3720)), t = k(h(2100)), c = h(1106), u = h(5414); function s(r) { return r != null; } @@ -24326,7 +24326,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, fromPartial(r) { var n, o, i, f; const d = { fee: void 0, source_port_id: "", source_channel_id: "", signer: "", relayers: [] }; - return d.fee = r.fee !== void 0 && r.fee !== null ? c.Fee.fromPartial(r.fee) : void 0, d.source_port_id = (n = r.source_port_id) !== null && n !== void 0 ? n : "", d.source_channel_id = (o = r.source_channel_id) !== null && o !== void 0 ? o : "", d.signer = (i = r.signer) !== null && i !== void 0 ? i : "", d.relayers = ((f = r.relayers) === null || f === void 0 ? void 0 : f.map((h) => h)) || [], d; + return d.fee = r.fee !== void 0 && r.fee !== null ? c.Fee.fromPartial(r.fee) : void 0, d.source_port_id = (n = r.source_port_id) !== null && n !== void 0 ? n : "", d.source_channel_id = (o = r.source_channel_id) !== null && o !== void 0 ? o : "", d.signer = (i = r.signer) !== null && i !== void 0 ? i : "", d.relayers = ((f = r.relayers) === null || f === void 0 ? void 0 : f.map((p) => p)) || [], d; } }, e.MsgPayPacketFeeResponse = { encode: (r, n = t.Writer.create()) => n, decode(r, n) { const o = r instanceof t.Reader ? r : new t.Reader(r); let i = n === void 0 ? o.len : o.pos + n; @@ -24388,7 +24388,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("ibc.applications.fee.v1.Msg", "PayPacketFeeAsync", n).then((o) => e.MsgPayPacketFeeAsyncResponse.decode(new t.Reader(o))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 865: function(D, e, p) { + }, 865: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(n, o, i, f) { f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { return o[i]; @@ -24411,7 +24411,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return n && n.__esModule ? n : { default: n }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgTransferResponse = e.MsgTransfer = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976), u = p(5650); + const a = S(h(3720)), t = k(h(2100)), c = h(2976), u = h(5650); function s(n) { return n.toString(); } @@ -24423,8 +24423,8 @@ Use Chrome, Firefox or Internet Explorer 11`); let f = o === void 0 ? i.len : i.pos + o; const d = { source_port: "", source_channel: "", token: void 0, sender: "", receiver: "", timeout_height: void 0, timeout_timestamp: "0", memo: "" }; for (; i.pos < f; ) { - const h = i.uint32(); - switch (h >>> 3) { + const p = i.uint32(); + switch (p >>> 3) { case 1: d.source_port = i.string(); break; @@ -24450,7 +24450,7 @@ Use Chrome, Firefox or Internet Explorer 11`); d.memo = i.string(); break; default: - i.skipType(7 & h); + i.skipType(7 & p); } } return d; @@ -24458,16 +24458,16 @@ Use Chrome, Firefox or Internet Explorer 11`); const o = {}; return n.source_port !== void 0 && (o.source_port = n.source_port), n.source_channel !== void 0 && (o.source_channel = n.source_channel), n.token !== void 0 && (o.token = n.token ? c.Coin.toJSON(n.token) : void 0), n.sender !== void 0 && (o.sender = n.sender), n.receiver !== void 0 && (o.receiver = n.receiver), n.timeout_height !== void 0 && (o.timeout_height = n.timeout_height ? u.Height.toJSON(n.timeout_height) : void 0), n.timeout_timestamp !== void 0 && (o.timeout_timestamp = n.timeout_timestamp), n.memo !== void 0 && (o.memo = n.memo), o; }, fromPartial(n) { - var o, i, f, d, h, _; + var o, i, f, d, p, _; const b = { source_port: "", source_channel: "", token: void 0, sender: "", receiver: "", timeout_height: void 0, timeout_timestamp: "0", memo: "" }; - return b.source_port = (o = n.source_port) !== null && o !== void 0 ? o : "", b.source_channel = (i = n.source_channel) !== null && i !== void 0 ? i : "", b.token = n.token !== void 0 && n.token !== null ? c.Coin.fromPartial(n.token) : void 0, b.sender = (f = n.sender) !== null && f !== void 0 ? f : "", b.receiver = (d = n.receiver) !== null && d !== void 0 ? d : "", b.timeout_height = n.timeout_height !== void 0 && n.timeout_height !== null ? u.Height.fromPartial(n.timeout_height) : void 0, b.timeout_timestamp = (h = n.timeout_timestamp) !== null && h !== void 0 ? h : "0", b.memo = (_ = n.memo) !== null && _ !== void 0 ? _ : "", b; + return b.source_port = (o = n.source_port) !== null && o !== void 0 ? o : "", b.source_channel = (i = n.source_channel) !== null && i !== void 0 ? i : "", b.token = n.token !== void 0 && n.token !== null ? c.Coin.fromPartial(n.token) : void 0, b.sender = (f = n.sender) !== null && f !== void 0 ? f : "", b.receiver = (d = n.receiver) !== null && d !== void 0 ? d : "", b.timeout_height = n.timeout_height !== void 0 && n.timeout_height !== null ? u.Height.fromPartial(n.timeout_height) : void 0, b.timeout_timestamp = (p = n.timeout_timestamp) !== null && p !== void 0 ? p : "0", b.memo = (_ = n.memo) !== null && _ !== void 0 ? _ : "", b; } }, e.MsgTransferResponse = { encode: (n, o = t.Writer.create()) => (n.sequence !== "0" && o.uint32(8).uint64(n.sequence), o), decode(n, o) { const i = n instanceof t.Reader ? n : new t.Reader(n); let f = o === void 0 ? i.len : i.pos + o; const d = { sequence: "0" }; for (; i.pos < f; ) { - const h = i.uint32(); - h >>> 3 == 1 ? d.sequence = s(i.uint64()) : i.skipType(7 & h); + const p = i.uint32(); + p >>> 3 == 1 ? d.sequence = s(i.uint64()) : i.skipType(7 & p); } return d; }, fromJSON: (n) => ({ sequence: r(n.sequence) ? String(n.sequence) : "0" }), toJSON(n) { @@ -24486,7 +24486,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("ibc.applications.transfer.v1.Msg", "Transfer", o).then((i) => e.MsgTransferResponse.decode(new t.Reader(i))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5414: function(D, e, p) { + }, 5414: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(N, C, x, P) { P === void 0 && (P = x), Object.defineProperty(N, P, { enumerable: !0, get: function() { return C[x]; @@ -24509,7 +24509,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return N && N.__esModule ? N : { default: N }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Acknowledgement = e.PacketId = e.PacketState = e.Packet = e.Counterparty = e.IdentifiedChannel = e.Channel = e.orderToJSON = e.orderFromJSON = e.Order = e.stateToJSON = e.stateFromJSON = e.State = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(5650); + const a = S(h(3720)), t = k(h(2100)), c = h(5650); var u, s; function r(N) { switch (N) { @@ -24822,25 +24822,25 @@ Use Chrome, Firefox or Internet Explorer 11`); const P = { result: void 0, error: void 0 }; return P.result = (C = N.result) !== null && C !== void 0 ? C : void 0, P.error = (x = N.error) !== null && x !== void 0 ? x : void 0, P; } }; - var h = (() => { - if (h !== void 0) - return h; + var p = (() => { + if (p !== void 0) + return p; if (typeof self < "u") return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); - const _ = h.atob || ((N) => h.Buffer.from(N, "base64").toString("binary")); + const _ = p.atob || ((N) => p.Buffer.from(N, "base64").toString("binary")); function b(N) { const C = _(N), x = new Uint8Array(C.length); for (let P = 0; P < C.length; ++P) x[P] = C.charCodeAt(P); return x; } - const I = h.btoa || ((N) => h.Buffer.from(N, "binary").toString("base64")); + const I = p.btoa || ((N) => p.Buffer.from(N, "binary").toString("base64")); function l(N) { const C = []; for (const x of N) @@ -24854,7 +24854,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return N != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 7579: function(D, e, p) { + }, 7579: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(v, m, E, B) { B === void 0 && (B = E), Object.defineProperty(v, B, { enumerable: !0, get: function() { return m[E]; @@ -24877,7 +24877,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return v && v.__esModule ? v : { default: v }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgAcknowledgementResponse = e.MsgAcknowledgement = e.MsgTimeoutOnCloseResponse = e.MsgTimeoutOnClose = e.MsgTimeoutResponse = e.MsgTimeout = e.MsgRecvPacketResponse = e.MsgRecvPacket = e.MsgChannelCloseConfirmResponse = e.MsgChannelCloseConfirm = e.MsgChannelCloseInitResponse = e.MsgChannelCloseInit = e.MsgChannelOpenConfirmResponse = e.MsgChannelOpenConfirm = e.MsgChannelOpenAckResponse = e.MsgChannelOpenAck = e.MsgChannelOpenTryResponse = e.MsgChannelOpenTry = e.MsgChannelOpenInitResponse = e.MsgChannelOpenInit = e.responseResultTypeToJSON = e.responseResultTypeFromJSON = e.ResponseResultType = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(5414), u = p(5650); + const a = S(h(3720)), t = k(h(2100)), c = h(5414), u = h(5650); var s; function r(v) { switch (v) { @@ -24918,7 +24918,7 @@ Use Chrome, Firefox or Internet Explorer 11`); function d() { return { port_id: "", channel_id: "", proof_init: new Uint8Array(), proof_height: void 0, signer: "" }; } - function h() { + function p() { return { packet: void 0, proof_commitment: new Uint8Array(), proof_height: void 0, signer: "" }; } function _() { @@ -25212,7 +25212,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, fromJSON: (v) => ({}), toJSON: (v) => ({}), fromPartial: (v) => ({}) }, e.MsgRecvPacket = { encode: (v, m = t.Writer.create()) => (v.packet !== void 0 && c.Packet.encode(v.packet, m.uint32(10).fork()).ldelim(), v.proof_commitment.length !== 0 && m.uint32(18).bytes(v.proof_commitment), v.proof_height !== void 0 && u.Height.encode(v.proof_height, m.uint32(26).fork()).ldelim(), v.signer !== "" && m.uint32(34).string(v.signer), m), decode(v, m) { const E = v instanceof t.Reader ? v : new t.Reader(v); let B = m === void 0 ? E.len : E.pos + m; - const T = h(); + const T = p(); for (; E.pos < B; ) { const q = E.uint32(); switch (q >>> 3) { @@ -25238,7 +25238,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return v.packet !== void 0 && (m.packet = v.packet ? c.Packet.toJSON(v.packet) : void 0), v.proof_commitment !== void 0 && (m.proof_commitment = C(v.proof_commitment !== void 0 ? v.proof_commitment : new Uint8Array())), v.proof_height !== void 0 && (m.proof_height = v.proof_height ? u.Height.toJSON(v.proof_height) : void 0), v.signer !== void 0 && (m.signer = v.signer), m; }, fromPartial(v) { var m, E; - const B = h(); + const B = p(); return B.packet = v.packet !== void 0 && v.packet !== null ? c.Packet.fromPartial(v.packet) : void 0, B.proof_commitment = (m = v.proof_commitment) !== null && m !== void 0 ? m : new Uint8Array(), B.proof_height = v.proof_height !== void 0 && v.proof_height !== null ? u.Height.fromPartial(v.proof_height) : void 0, B.signer = (E = v.signer) !== null && E !== void 0 ? E : "", B; } }, e.MsgRecvPacketResponse = { encode: (v, m = t.Writer.create()) => (v.result !== 0 && m.uint32(8).int32(v.result), m), decode(v, m) { const E = v instanceof t.Reader ? v : new t.Reader(v); @@ -25461,8 +25461,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const j = l.atob || ((v) => l.Buffer.from(v, "base64").toString("binary")); @@ -25486,7 +25486,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return v != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5650: function(D, e, p) { + }, 5650: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(n, o, i, f) { f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { return o[i]; @@ -25509,7 +25509,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return n && n.__esModule ? n : { default: n }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Params = e.Height = e.UpgradeProposal = e.ClientUpdateProposal = e.ClientConsensusStates = e.ConsensusStateWithHeight = e.IdentifiedClientState = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191), u = p(8310); + const a = S(h(3720)), t = k(h(2100)), c = h(4191), u = h(8310); function s(n) { return n.toString(); } @@ -25521,8 +25521,8 @@ Use Chrome, Firefox or Internet Explorer 11`); let f = o === void 0 ? i.len : i.pos + o; const d = { client_id: "", client_state: void 0 }; for (; i.pos < f; ) { - const h = i.uint32(); - switch (h >>> 3) { + const p = i.uint32(); + switch (p >>> 3) { case 1: d.client_id = i.string(); break; @@ -25530,7 +25530,7 @@ Use Chrome, Firefox or Internet Explorer 11`); d.client_state = c.Any.decode(i, i.uint32()); break; default: - i.skipType(7 & h); + i.skipType(7 & p); } } return d; @@ -25546,8 +25546,8 @@ Use Chrome, Firefox or Internet Explorer 11`); let f = o === void 0 ? i.len : i.pos + o; const d = { height: void 0, consensus_state: void 0 }; for (; i.pos < f; ) { - const h = i.uint32(); - switch (h >>> 3) { + const p = i.uint32(); + switch (p >>> 3) { case 1: d.height = e.Height.decode(i, i.uint32()); break; @@ -25555,7 +25555,7 @@ Use Chrome, Firefox or Internet Explorer 11`); d.consensus_state = c.Any.decode(i, i.uint32()); break; default: - i.skipType(7 & h); + i.skipType(7 & p); } } return d; @@ -25575,8 +25575,8 @@ Use Chrome, Firefox or Internet Explorer 11`); let f = o === void 0 ? i.len : i.pos + o; const d = { client_id: "", consensus_states: [] }; for (; i.pos < f; ) { - const h = i.uint32(); - switch (h >>> 3) { + const p = i.uint32(); + switch (p >>> 3) { case 1: d.client_id = i.string(); break; @@ -25584,7 +25584,7 @@ Use Chrome, Firefox or Internet Explorer 11`); d.consensus_states.push(e.ConsensusStateWithHeight.decode(i, i.uint32())); break; default: - i.skipType(7 & h); + i.skipType(7 & p); } } return d; @@ -25600,8 +25600,8 @@ Use Chrome, Firefox or Internet Explorer 11`); let f = o === void 0 ? i.len : i.pos + o; const d = { title: "", description: "", subject_client_id: "", substitute_client_id: "" }; for (; i.pos < f; ) { - const h = i.uint32(); - switch (h >>> 3) { + const p = i.uint32(); + switch (p >>> 3) { case 1: d.title = i.string(); break; @@ -25615,7 +25615,7 @@ Use Chrome, Firefox or Internet Explorer 11`); d.substitute_client_id = i.string(); break; default: - i.skipType(7 & h); + i.skipType(7 & p); } } return d; @@ -25624,15 +25624,15 @@ Use Chrome, Firefox or Internet Explorer 11`); return n.title !== void 0 && (o.title = n.title), n.description !== void 0 && (o.description = n.description), n.subject_client_id !== void 0 && (o.subject_client_id = n.subject_client_id), n.substitute_client_id !== void 0 && (o.substitute_client_id = n.substitute_client_id), o; }, fromPartial(n) { var o, i, f, d; - const h = { title: "", description: "", subject_client_id: "", substitute_client_id: "" }; - return h.title = (o = n.title) !== null && o !== void 0 ? o : "", h.description = (i = n.description) !== null && i !== void 0 ? i : "", h.subject_client_id = (f = n.subject_client_id) !== null && f !== void 0 ? f : "", h.substitute_client_id = (d = n.substitute_client_id) !== null && d !== void 0 ? d : "", h; + const p = { title: "", description: "", subject_client_id: "", substitute_client_id: "" }; + return p.title = (o = n.title) !== null && o !== void 0 ? o : "", p.description = (i = n.description) !== null && i !== void 0 ? i : "", p.subject_client_id = (f = n.subject_client_id) !== null && f !== void 0 ? f : "", p.substitute_client_id = (d = n.substitute_client_id) !== null && d !== void 0 ? d : "", p; } }, e.UpgradeProposal = { encode: (n, o = t.Writer.create()) => (n.title !== "" && o.uint32(10).string(n.title), n.description !== "" && o.uint32(18).string(n.description), n.plan !== void 0 && u.Plan.encode(n.plan, o.uint32(26).fork()).ldelim(), n.upgraded_client_state !== void 0 && c.Any.encode(n.upgraded_client_state, o.uint32(34).fork()).ldelim(), o), decode(n, o) { const i = n instanceof t.Reader ? n : new t.Reader(n); let f = o === void 0 ? i.len : i.pos + o; const d = { title: "", description: "", plan: void 0, upgraded_client_state: void 0 }; for (; i.pos < f; ) { - const h = i.uint32(); - switch (h >>> 3) { + const p = i.uint32(); + switch (p >>> 3) { case 1: d.title = i.string(); break; @@ -25646,7 +25646,7 @@ Use Chrome, Firefox or Internet Explorer 11`); d.upgraded_client_state = c.Any.decode(i, i.uint32()); break; default: - i.skipType(7 & h); + i.skipType(7 & p); } } return d; @@ -25662,8 +25662,8 @@ Use Chrome, Firefox or Internet Explorer 11`); let f = o === void 0 ? i.len : i.pos + o; const d = { revision_number: "0", revision_height: "0" }; for (; i.pos < f; ) { - const h = i.uint32(); - switch (h >>> 3) { + const p = i.uint32(); + switch (p >>> 3) { case 1: d.revision_number = s(i.uint64()); break; @@ -25671,7 +25671,7 @@ Use Chrome, Firefox or Internet Explorer 11`); d.revision_height = s(i.uint64()); break; default: - i.skipType(7 & h); + i.skipType(7 & p); } } return d; @@ -25691,8 +25691,8 @@ Use Chrome, Firefox or Internet Explorer 11`); let f = o === void 0 ? i.len : i.pos + o; const d = { allowed_clients: [] }; for (; i.pos < f; ) { - const h = i.uint32(); - h >>> 3 == 1 ? d.allowed_clients.push(i.string()) : i.skipType(7 & h); + const p = i.uint32(); + p >>> 3 == 1 ? d.allowed_clients.push(i.string()) : i.skipType(7 & p); } return d; }, fromJSON: (n) => ({ allowed_clients: Array.isArray(n == null ? void 0 : n.allowed_clients) ? n.allowed_clients.map((o) => String(o)) : [] }), toJSON(n) { @@ -25703,36 +25703,36 @@ Use Chrome, Firefox or Internet Explorer 11`); const i = { allowed_clients: [] }; return i.allowed_clients = ((o = n.allowed_clients) === null || o === void 0 ? void 0 : o.map((f) => f)) || [], i; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 322: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(d, h, _, b) { + }, 322: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(d, p, _, b) { b === void 0 && (b = _), Object.defineProperty(d, b, { enumerable: !0, get: function() { - return h[_]; + return p[_]; } }); - } : function(d, h, _, b) { - b === void 0 && (b = _), d[b] = h[_]; - }), O = this && this.__setModuleDefault || (Object.create ? function(d, h) { - Object.defineProperty(d, "default", { enumerable: !0, value: h }); - } : function(d, h) { - d.default = h; + } : function(d, p, _, b) { + b === void 0 && (b = _), d[b] = p[_]; + }), O = this && this.__setModuleDefault || (Object.create ? function(d, p) { + Object.defineProperty(d, "default", { enumerable: !0, value: p }); + } : function(d, p) { + d.default = p; }), k = this && this.__importStar || function(d) { if (d && d.__esModule) return d; - var h = {}; + var p = {}; if (d != null) for (var _ in d) - _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(h, d, _); - return O(h, d), h; + _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(p, d, _); + return O(p, d), p; }, S = this && this.__importDefault || function(d) { return d && d.__esModule ? d : { default: d }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgSubmitMisbehaviourResponse = e.MsgSubmitMisbehaviour = e.MsgUpgradeClientResponse = e.MsgUpgradeClient = e.MsgUpdateClientResponse = e.MsgUpdateClient = e.MsgCreateClientResponse = e.MsgCreateClient = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(4191); + const a = S(h(3720)), t = k(h(2100)), c = h(4191); function u() { return { client_id: "", client_state: void 0, consensus_state: void 0, proof_upgrade_client: new Uint8Array(), proof_upgrade_consensus_state: new Uint8Array(), signer: "" }; } - e.protobufPackage = "ibc.core.client.v1", e.MsgCreateClient = { encode: (d, h = t.Writer.create()) => (d.client_state !== void 0 && c.Any.encode(d.client_state, h.uint32(10).fork()).ldelim(), d.consensus_state !== void 0 && c.Any.encode(d.consensus_state, h.uint32(18).fork()).ldelim(), d.signer !== "" && h.uint32(26).string(d.signer), h), decode(d, h) { + e.protobufPackage = "ibc.core.client.v1", e.MsgCreateClient = { encode: (d, p = t.Writer.create()) => (d.client_state !== void 0 && c.Any.encode(d.client_state, p.uint32(10).fork()).ldelim(), d.consensus_state !== void 0 && c.Any.encode(d.consensus_state, p.uint32(18).fork()).ldelim(), d.signer !== "" && p.uint32(26).string(d.signer), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { client_state: void 0, consensus_state: void 0, signer: "" }; for (; _.pos < b; ) { const l = _.uint32(); @@ -25752,23 +25752,23 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ client_state: f(d.client_state) ? c.Any.fromJSON(d.client_state) : void 0, consensus_state: f(d.consensus_state) ? c.Any.fromJSON(d.consensus_state) : void 0, signer: f(d.signer) ? String(d.signer) : "" }), toJSON(d) { - const h = {}; - return d.client_state !== void 0 && (h.client_state = d.client_state ? c.Any.toJSON(d.client_state) : void 0), d.consensus_state !== void 0 && (h.consensus_state = d.consensus_state ? c.Any.toJSON(d.consensus_state) : void 0), d.signer !== void 0 && (h.signer = d.signer), h; + const p = {}; + return d.client_state !== void 0 && (p.client_state = d.client_state ? c.Any.toJSON(d.client_state) : void 0), d.consensus_state !== void 0 && (p.consensus_state = d.consensus_state ? c.Any.toJSON(d.consensus_state) : void 0), d.signer !== void 0 && (p.signer = d.signer), p; }, fromPartial(d) { - var h; + var p; const _ = { client_state: void 0, consensus_state: void 0, signer: "" }; - return _.client_state = d.client_state !== void 0 && d.client_state !== null ? c.Any.fromPartial(d.client_state) : void 0, _.consensus_state = d.consensus_state !== void 0 && d.consensus_state !== null ? c.Any.fromPartial(d.consensus_state) : void 0, _.signer = (h = d.signer) !== null && h !== void 0 ? h : "", _; - } }, e.MsgCreateClientResponse = { encode: (d, h = t.Writer.create()) => h, decode(d, h) { + return _.client_state = d.client_state !== void 0 && d.client_state !== null ? c.Any.fromPartial(d.client_state) : void 0, _.consensus_state = d.consensus_state !== void 0 && d.consensus_state !== null ? c.Any.fromPartial(d.consensus_state) : void 0, _.signer = (p = d.signer) !== null && p !== void 0 ? p : "", _; + } }, e.MsgCreateClientResponse = { encode: (d, p = t.Writer.create()) => p, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; for (; _.pos < b; ) { const I = _.uint32(); _.skipType(7 & I); } return {}; - }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgUpdateClient = { encode: (d, h = t.Writer.create()) => (d.client_id !== "" && h.uint32(10).string(d.client_id), d.header !== void 0 && c.Any.encode(d.header, h.uint32(18).fork()).ldelim(), d.signer !== "" && h.uint32(26).string(d.signer), h), decode(d, h) { + }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgUpdateClient = { encode: (d, p = t.Writer.create()) => (d.client_id !== "" && p.uint32(10).string(d.client_id), d.header !== void 0 && c.Any.encode(d.header, p.uint32(18).fork()).ldelim(), d.signer !== "" && p.uint32(26).string(d.signer), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { client_id: "", header: void 0, signer: "" }; for (; _.pos < b; ) { const l = _.uint32(); @@ -25788,23 +25788,23 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ client_id: f(d.client_id) ? String(d.client_id) : "", header: f(d.header) ? c.Any.fromJSON(d.header) : void 0, signer: f(d.signer) ? String(d.signer) : "" }), toJSON(d) { - const h = {}; - return d.client_id !== void 0 && (h.client_id = d.client_id), d.header !== void 0 && (h.header = d.header ? c.Any.toJSON(d.header) : void 0), d.signer !== void 0 && (h.signer = d.signer), h; + const p = {}; + return d.client_id !== void 0 && (p.client_id = d.client_id), d.header !== void 0 && (p.header = d.header ? c.Any.toJSON(d.header) : void 0), d.signer !== void 0 && (p.signer = d.signer), p; }, fromPartial(d) { - var h, _; + var p, _; const b = { client_id: "", header: void 0, signer: "" }; - return b.client_id = (h = d.client_id) !== null && h !== void 0 ? h : "", b.header = d.header !== void 0 && d.header !== null ? c.Any.fromPartial(d.header) : void 0, b.signer = (_ = d.signer) !== null && _ !== void 0 ? _ : "", b; - } }, e.MsgUpdateClientResponse = { encode: (d, h = t.Writer.create()) => h, decode(d, h) { + return b.client_id = (p = d.client_id) !== null && p !== void 0 ? p : "", b.header = d.header !== void 0 && d.header !== null ? c.Any.fromPartial(d.header) : void 0, b.signer = (_ = d.signer) !== null && _ !== void 0 ? _ : "", b; + } }, e.MsgUpdateClientResponse = { encode: (d, p = t.Writer.create()) => p, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; for (; _.pos < b; ) { const I = _.uint32(); _.skipType(7 & I); } return {}; - }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgUpgradeClient = { encode: (d, h = t.Writer.create()) => (d.client_id !== "" && h.uint32(10).string(d.client_id), d.client_state !== void 0 && c.Any.encode(d.client_state, h.uint32(18).fork()).ldelim(), d.consensus_state !== void 0 && c.Any.encode(d.consensus_state, h.uint32(26).fork()).ldelim(), d.proof_upgrade_client.length !== 0 && h.uint32(34).bytes(d.proof_upgrade_client), d.proof_upgrade_consensus_state.length !== 0 && h.uint32(42).bytes(d.proof_upgrade_consensus_state), d.signer !== "" && h.uint32(50).string(d.signer), h), decode(d, h) { + }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgUpgradeClient = { encode: (d, p = t.Writer.create()) => (d.client_id !== "" && p.uint32(10).string(d.client_id), d.client_state !== void 0 && c.Any.encode(d.client_state, p.uint32(18).fork()).ldelim(), d.consensus_state !== void 0 && c.Any.encode(d.consensus_state, p.uint32(26).fork()).ldelim(), d.proof_upgrade_client.length !== 0 && p.uint32(34).bytes(d.proof_upgrade_client), d.proof_upgrade_consensus_state.length !== 0 && p.uint32(42).bytes(d.proof_upgrade_consensus_state), d.signer !== "" && p.uint32(50).string(d.signer), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = u(); for (; _.pos < b; ) { const l = _.uint32(); @@ -25833,23 +25833,23 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ client_id: f(d.client_id) ? String(d.client_id) : "", client_state: f(d.client_state) ? c.Any.fromJSON(d.client_state) : void 0, consensus_state: f(d.consensus_state) ? c.Any.fromJSON(d.consensus_state) : void 0, proof_upgrade_client: f(d.proof_upgrade_client) ? n(d.proof_upgrade_client) : new Uint8Array(), proof_upgrade_consensus_state: f(d.proof_upgrade_consensus_state) ? n(d.proof_upgrade_consensus_state) : new Uint8Array(), signer: f(d.signer) ? String(d.signer) : "" }), toJSON(d) { - const h = {}; - return d.client_id !== void 0 && (h.client_id = d.client_id), d.client_state !== void 0 && (h.client_state = d.client_state ? c.Any.toJSON(d.client_state) : void 0), d.consensus_state !== void 0 && (h.consensus_state = d.consensus_state ? c.Any.toJSON(d.consensus_state) : void 0), d.proof_upgrade_client !== void 0 && (h.proof_upgrade_client = i(d.proof_upgrade_client !== void 0 ? d.proof_upgrade_client : new Uint8Array())), d.proof_upgrade_consensus_state !== void 0 && (h.proof_upgrade_consensus_state = i(d.proof_upgrade_consensus_state !== void 0 ? d.proof_upgrade_consensus_state : new Uint8Array())), d.signer !== void 0 && (h.signer = d.signer), h; + const p = {}; + return d.client_id !== void 0 && (p.client_id = d.client_id), d.client_state !== void 0 && (p.client_state = d.client_state ? c.Any.toJSON(d.client_state) : void 0), d.consensus_state !== void 0 && (p.consensus_state = d.consensus_state ? c.Any.toJSON(d.consensus_state) : void 0), d.proof_upgrade_client !== void 0 && (p.proof_upgrade_client = i(d.proof_upgrade_client !== void 0 ? d.proof_upgrade_client : new Uint8Array())), d.proof_upgrade_consensus_state !== void 0 && (p.proof_upgrade_consensus_state = i(d.proof_upgrade_consensus_state !== void 0 ? d.proof_upgrade_consensus_state : new Uint8Array())), d.signer !== void 0 && (p.signer = d.signer), p; }, fromPartial(d) { - var h, _, b, I; + var p, _, b, I; const l = u(); - return l.client_id = (h = d.client_id) !== null && h !== void 0 ? h : "", l.client_state = d.client_state !== void 0 && d.client_state !== null ? c.Any.fromPartial(d.client_state) : void 0, l.consensus_state = d.consensus_state !== void 0 && d.consensus_state !== null ? c.Any.fromPartial(d.consensus_state) : void 0, l.proof_upgrade_client = (_ = d.proof_upgrade_client) !== null && _ !== void 0 ? _ : new Uint8Array(), l.proof_upgrade_consensus_state = (b = d.proof_upgrade_consensus_state) !== null && b !== void 0 ? b : new Uint8Array(), l.signer = (I = d.signer) !== null && I !== void 0 ? I : "", l; - } }, e.MsgUpgradeClientResponse = { encode: (d, h = t.Writer.create()) => h, decode(d, h) { + return l.client_id = (p = d.client_id) !== null && p !== void 0 ? p : "", l.client_state = d.client_state !== void 0 && d.client_state !== null ? c.Any.fromPartial(d.client_state) : void 0, l.consensus_state = d.consensus_state !== void 0 && d.consensus_state !== null ? c.Any.fromPartial(d.consensus_state) : void 0, l.proof_upgrade_client = (_ = d.proof_upgrade_client) !== null && _ !== void 0 ? _ : new Uint8Array(), l.proof_upgrade_consensus_state = (b = d.proof_upgrade_consensus_state) !== null && b !== void 0 ? b : new Uint8Array(), l.signer = (I = d.signer) !== null && I !== void 0 ? I : "", l; + } }, e.MsgUpgradeClientResponse = { encode: (d, p = t.Writer.create()) => p, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; for (; _.pos < b; ) { const I = _.uint32(); _.skipType(7 & I); } return {}; - }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgSubmitMisbehaviour = { encode: (d, h = t.Writer.create()) => (d.client_id !== "" && h.uint32(10).string(d.client_id), d.misbehaviour !== void 0 && c.Any.encode(d.misbehaviour, h.uint32(18).fork()).ldelim(), d.signer !== "" && h.uint32(26).string(d.signer), h), decode(d, h) { + }, fromJSON: (d) => ({}), toJSON: (d) => ({}), fromPartial: (d) => ({}) }, e.MsgSubmitMisbehaviour = { encode: (d, p = t.Writer.create()) => (d.client_id !== "" && p.uint32(10).string(d.client_id), d.misbehaviour !== void 0 && c.Any.encode(d.misbehaviour, p.uint32(18).fork()).ldelim(), d.signer !== "" && p.uint32(26).string(d.signer), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { client_id: "", misbehaviour: void 0, signer: "" }; for (; _.pos < b; ) { const l = _.uint32(); @@ -25869,15 +25869,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ client_id: f(d.client_id) ? String(d.client_id) : "", misbehaviour: f(d.misbehaviour) ? c.Any.fromJSON(d.misbehaviour) : void 0, signer: f(d.signer) ? String(d.signer) : "" }), toJSON(d) { - const h = {}; - return d.client_id !== void 0 && (h.client_id = d.client_id), d.misbehaviour !== void 0 && (h.misbehaviour = d.misbehaviour ? c.Any.toJSON(d.misbehaviour) : void 0), d.signer !== void 0 && (h.signer = d.signer), h; + const p = {}; + return d.client_id !== void 0 && (p.client_id = d.client_id), d.misbehaviour !== void 0 && (p.misbehaviour = d.misbehaviour ? c.Any.toJSON(d.misbehaviour) : void 0), d.signer !== void 0 && (p.signer = d.signer), p; }, fromPartial(d) { - var h, _; + var p, _; const b = { client_id: "", misbehaviour: void 0, signer: "" }; - return b.client_id = (h = d.client_id) !== null && h !== void 0 ? h : "", b.misbehaviour = d.misbehaviour !== void 0 && d.misbehaviour !== null ? c.Any.fromPartial(d.misbehaviour) : void 0, b.signer = (_ = d.signer) !== null && _ !== void 0 ? _ : "", b; - } }, e.MsgSubmitMisbehaviourResponse = { encode: (d, h = t.Writer.create()) => h, decode(d, h) { + return b.client_id = (p = d.client_id) !== null && p !== void 0 ? p : "", b.misbehaviour = d.misbehaviour !== void 0 && d.misbehaviour !== null ? c.Any.fromPartial(d.misbehaviour) : void 0, b.signer = (_ = d.signer) !== null && _ !== void 0 ? _ : "", b; + } }, e.MsgSubmitMisbehaviourResponse = { encode: (d, p = t.Writer.create()) => p, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; for (; _.pos < b; ) { const I = _.uint32(); _.skipType(7 & I); @@ -25888,20 +25888,20 @@ Use Chrome, Firefox or Internet Explorer 11`); this.rpc = d, this.CreateClient = this.CreateClient.bind(this), this.UpdateClient = this.UpdateClient.bind(this), this.UpgradeClient = this.UpgradeClient.bind(this), this.SubmitMisbehaviour = this.SubmitMisbehaviour.bind(this); } CreateClient(d) { - const h = e.MsgCreateClient.encode(d).finish(); - return this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", h).then((_) => e.MsgCreateClientResponse.decode(new t.Reader(_))); + const p = e.MsgCreateClient.encode(d).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "CreateClient", p).then((_) => e.MsgCreateClientResponse.decode(new t.Reader(_))); } UpdateClient(d) { - const h = e.MsgUpdateClient.encode(d).finish(); - return this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", h).then((_) => e.MsgUpdateClientResponse.decode(new t.Reader(_))); + const p = e.MsgUpdateClient.encode(d).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "UpdateClient", p).then((_) => e.MsgUpdateClientResponse.decode(new t.Reader(_))); } UpgradeClient(d) { - const h = e.MsgUpgradeClient.encode(d).finish(); - return this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", h).then((_) => e.MsgUpgradeClientResponse.decode(new t.Reader(_))); + const p = e.MsgUpgradeClient.encode(d).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "UpgradeClient", p).then((_) => e.MsgUpgradeClientResponse.decode(new t.Reader(_))); } SubmitMisbehaviour(d) { - const h = e.MsgSubmitMisbehaviour.encode(d).finish(); - return this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", h).then((_) => e.MsgSubmitMisbehaviourResponse.decode(new t.Reader(_))); + const p = e.MsgSubmitMisbehaviour.encode(d).finish(); + return this.rpc.request("ibc.core.client.v1.Msg", "SubmitMisbehaviour", p).then((_) => e.MsgSubmitMisbehaviourResponse.decode(new t.Reader(_))); } }; var s = (() => { @@ -25911,60 +25911,60 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const r = s.atob || ((d) => s.Buffer.from(d, "base64").toString("binary")); function n(d) { - const h = r(d), _ = new Uint8Array(h.length); - for (let b = 0; b < h.length; ++b) - _[b] = h.charCodeAt(b); + const p = r(d), _ = new Uint8Array(p.length); + for (let b = 0; b < p.length; ++b) + _[b] = p.charCodeAt(b); return _; } const o = s.btoa || ((d) => s.Buffer.from(d, "binary").toString("base64")); function i(d) { - const h = []; + const p = []; for (const _ of d) - h.push(String.fromCharCode(_)); - return o(h.join("")); + p.push(String.fromCharCode(_)); + return o(p.join("")); } function f(d) { return d != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5261: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(h, _, b, I) { - I === void 0 && (I = b), Object.defineProperty(h, I, { enumerable: !0, get: function() { + }, 5261: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(p, _, b, I) { + I === void 0 && (I = b), Object.defineProperty(p, I, { enumerable: !0, get: function() { return _[b]; } }); - } : function(h, _, b, I) { - I === void 0 && (I = b), h[I] = _[b]; - }), O = this && this.__setModuleDefault || (Object.create ? function(h, _) { - Object.defineProperty(h, "default", { enumerable: !0, value: _ }); - } : function(h, _) { - h.default = _; - }), k = this && this.__importStar || function(h) { - if (h && h.__esModule) - return h; + } : function(p, _, b, I) { + I === void 0 && (I = b), p[I] = _[b]; + }), O = this && this.__setModuleDefault || (Object.create ? function(p, _) { + Object.defineProperty(p, "default", { enumerable: !0, value: _ }); + } : function(p, _) { + p.default = _; + }), k = this && this.__importStar || function(p) { + if (p && p.__esModule) + return p; var _ = {}; - if (h != null) - for (var b in h) - b !== "default" && Object.prototype.hasOwnProperty.call(h, b) && w(_, h, b); - return O(_, h), _; - }, S = this && this.__importDefault || function(h) { - return h && h.__esModule ? h : { default: h }; + if (p != null) + for (var b in p) + b !== "default" && Object.prototype.hasOwnProperty.call(p, b) && w(_, p, b); + return O(_, p), _; + }, S = this && this.__importDefault || function(p) { + return p && p.__esModule ? p : { default: p }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MerkleProof = e.MerklePath = e.MerklePrefix = e.MerkleRoot = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(6578); + const a = S(h(3720)), t = k(h(2100)), c = h(6578); function u() { return { hash: new Uint8Array() }; } function s() { return { key_prefix: new Uint8Array() }; } - e.protobufPackage = "ibc.core.commitment.v1", e.MerkleRoot = { encode: (h, _ = t.Writer.create()) => (h.hash.length !== 0 && _.uint32(10).bytes(h.hash), _), decode(h, _) { - const b = h instanceof t.Reader ? h : new t.Reader(h); + e.protobufPackage = "ibc.core.commitment.v1", e.MerkleRoot = { encode: (p, _ = t.Writer.create()) => (p.hash.length !== 0 && _.uint32(10).bytes(p.hash), _), decode(p, _) { + const b = p instanceof t.Reader ? p : new t.Reader(p); let I = _ === void 0 ? b.len : b.pos + _; const l = u(); for (; b.pos < I; ) { @@ -25972,15 +25972,15 @@ Use Chrome, Firefox or Internet Explorer 11`); j >>> 3 == 1 ? l.hash = b.bytes() : b.skipType(7 & j); } return l; - }, fromJSON: (h) => ({ hash: d(h.hash) ? o(h.hash) : new Uint8Array() }), toJSON(h) { + }, fromJSON: (p) => ({ hash: d(p.hash) ? o(p.hash) : new Uint8Array() }), toJSON(p) { const _ = {}; - return h.hash !== void 0 && (_.hash = f(h.hash !== void 0 ? h.hash : new Uint8Array())), _; - }, fromPartial(h) { + return p.hash !== void 0 && (_.hash = f(p.hash !== void 0 ? p.hash : new Uint8Array())), _; + }, fromPartial(p) { var _; const b = u(); - return b.hash = (_ = h.hash) !== null && _ !== void 0 ? _ : new Uint8Array(), b; - } }, e.MerklePrefix = { encode: (h, _ = t.Writer.create()) => (h.key_prefix.length !== 0 && _.uint32(10).bytes(h.key_prefix), _), decode(h, _) { - const b = h instanceof t.Reader ? h : new t.Reader(h); + return b.hash = (_ = p.hash) !== null && _ !== void 0 ? _ : new Uint8Array(), b; + } }, e.MerklePrefix = { encode: (p, _ = t.Writer.create()) => (p.key_prefix.length !== 0 && _.uint32(10).bytes(p.key_prefix), _), decode(p, _) { + const b = p instanceof t.Reader ? p : new t.Reader(p); let I = _ === void 0 ? b.len : b.pos + _; const l = s(); for (; b.pos < I; ) { @@ -25988,19 +25988,19 @@ Use Chrome, Firefox or Internet Explorer 11`); j >>> 3 == 1 ? l.key_prefix = b.bytes() : b.skipType(7 & j); } return l; - }, fromJSON: (h) => ({ key_prefix: d(h.key_prefix) ? o(h.key_prefix) : new Uint8Array() }), toJSON(h) { + }, fromJSON: (p) => ({ key_prefix: d(p.key_prefix) ? o(p.key_prefix) : new Uint8Array() }), toJSON(p) { const _ = {}; - return h.key_prefix !== void 0 && (_.key_prefix = f(h.key_prefix !== void 0 ? h.key_prefix : new Uint8Array())), _; - }, fromPartial(h) { + return p.key_prefix !== void 0 && (_.key_prefix = f(p.key_prefix !== void 0 ? p.key_prefix : new Uint8Array())), _; + }, fromPartial(p) { var _; const b = s(); - return b.key_prefix = (_ = h.key_prefix) !== null && _ !== void 0 ? _ : new Uint8Array(), b; - } }, e.MerklePath = { encode(h, _ = t.Writer.create()) { - for (const b of h.key_path) + return b.key_prefix = (_ = p.key_prefix) !== null && _ !== void 0 ? _ : new Uint8Array(), b; + } }, e.MerklePath = { encode(p, _ = t.Writer.create()) { + for (const b of p.key_path) _.uint32(10).string(b); return _; - }, decode(h, _) { - const b = h instanceof t.Reader ? h : new t.Reader(h); + }, decode(p, _) { + const b = p instanceof t.Reader ? p : new t.Reader(p); let I = _ === void 0 ? b.len : b.pos + _; const l = { key_path: [] }; for (; b.pos < I; ) { @@ -26008,19 +26008,19 @@ Use Chrome, Firefox or Internet Explorer 11`); j >>> 3 == 1 ? l.key_path.push(b.string()) : b.skipType(7 & j); } return l; - }, fromJSON: (h) => ({ key_path: Array.isArray(h == null ? void 0 : h.key_path) ? h.key_path.map((_) => String(_)) : [] }), toJSON(h) { + }, fromJSON: (p) => ({ key_path: Array.isArray(p == null ? void 0 : p.key_path) ? p.key_path.map((_) => String(_)) : [] }), toJSON(p) { const _ = {}; - return h.key_path ? _.key_path = h.key_path.map((b) => b) : _.key_path = [], _; - }, fromPartial(h) { + return p.key_path ? _.key_path = p.key_path.map((b) => b) : _.key_path = [], _; + }, fromPartial(p) { var _; const b = { key_path: [] }; - return b.key_path = ((_ = h.key_path) === null || _ === void 0 ? void 0 : _.map((I) => I)) || [], b; - } }, e.MerkleProof = { encode(h, _ = t.Writer.create()) { - for (const b of h.proofs) + return b.key_path = ((_ = p.key_path) === null || _ === void 0 ? void 0 : _.map((I) => I)) || [], b; + } }, e.MerkleProof = { encode(p, _ = t.Writer.create()) { + for (const b of p.proofs) c.CommitmentProof.encode(b, _.uint32(10).fork()).ldelim(); return _; - }, decode(h, _) { - const b = h instanceof t.Reader ? h : new t.Reader(h); + }, decode(p, _) { + const b = p instanceof t.Reader ? p : new t.Reader(p); let I = _ === void 0 ? b.len : b.pos + _; const l = { proofs: [] }; for (; b.pos < I; ) { @@ -26028,13 +26028,13 @@ Use Chrome, Firefox or Internet Explorer 11`); j >>> 3 == 1 ? l.proofs.push(c.CommitmentProof.decode(b, b.uint32())) : b.skipType(7 & j); } return l; - }, fromJSON: (h) => ({ proofs: Array.isArray(h == null ? void 0 : h.proofs) ? h.proofs.map((_) => c.CommitmentProof.fromJSON(_)) : [] }), toJSON(h) { + }, fromJSON: (p) => ({ proofs: Array.isArray(p == null ? void 0 : p.proofs) ? p.proofs.map((_) => c.CommitmentProof.fromJSON(_)) : [] }), toJSON(p) { const _ = {}; - return h.proofs ? _.proofs = h.proofs.map((b) => b ? c.CommitmentProof.toJSON(b) : void 0) : _.proofs = [], _; - }, fromPartial(h) { + return p.proofs ? _.proofs = p.proofs.map((b) => b ? c.CommitmentProof.toJSON(b) : void 0) : _.proofs = [], _; + }, fromPartial(p) { var _; const b = { proofs: [] }; - return b.proofs = ((_ = h.proofs) === null || _ === void 0 ? void 0 : _.map((I) => c.CommitmentProof.fromPartial(I))) || [], b; + return b.proofs = ((_ = p.proofs) === null || _ === void 0 ? void 0 : _.map((I) => c.CommitmentProof.fromPartial(I))) || [], b; } }; var r = (() => { if (r !== void 0) @@ -26043,35 +26043,35 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); - const n = r.atob || ((h) => r.Buffer.from(h, "base64").toString("binary")); - function o(h) { - const _ = n(h), b = new Uint8Array(_.length); + const n = r.atob || ((p) => r.Buffer.from(p, "base64").toString("binary")); + function o(p) { + const _ = n(p), b = new Uint8Array(_.length); for (let I = 0; I < _.length; ++I) b[I] = _.charCodeAt(I); return b; } - const i = r.btoa || ((h) => r.Buffer.from(h, "binary").toString("base64")); - function f(h) { + const i = r.btoa || ((p) => r.Buffer.from(p, "binary").toString("base64")); + function f(p) { const _ = []; - for (const b of h) + for (const b of p) _.push(String.fromCharCode(b)); return i(_.join("")); } - function d(h) { - return h != null; + function d(p) { + return p != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 6788: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(i, f, d, h) { - h === void 0 && (h = d), Object.defineProperty(i, h, { enumerable: !0, get: function() { + }, 6788: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(i, f, d, p) { + p === void 0 && (p = d), Object.defineProperty(i, p, { enumerable: !0, get: function() { return f[d]; } }); - } : function(i, f, d, h) { - h === void 0 && (h = d), i[h] = f[d]; + } : function(i, f, d, p) { + p === void 0 && (p = d), i[p] = f[d]; }), O = this && this.__setModuleDefault || (Object.create ? function(i, f) { Object.defineProperty(i, "default", { enumerable: !0, value: f }); } : function(i, f) { @@ -26088,7 +26088,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return i && i.__esModule ? i : { default: i }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Params = e.Version = e.ConnectionPaths = e.ClientPaths = e.Counterparty = e.IdentifiedConnection = e.ConnectionEnd = e.stateToJSON = e.stateFromJSON = e.State = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(5261); + const a = S(h(3720)), t = k(h(2100)), c = h(5261); var u; function s(i) { switch (i) { @@ -26137,9 +26137,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.state !== 0 && f.uint32(24).int32(i.state), i.counterparty !== void 0 && e.Counterparty.encode(i.counterparty, f.uint32(34).fork()).ldelim(), i.delay_period !== "0" && f.uint32(40).uint64(i.delay_period), f; }, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -26166,9 +26166,9 @@ Use Chrome, Firefox or Internet Explorer 11`); const f = {}; return i.client_id !== void 0 && (f.client_id = i.client_id), i.versions ? f.versions = i.versions.map((d) => d ? e.Version.toJSON(d) : void 0) : f.versions = [], i.state !== void 0 && (f.state = r(i.state)), i.counterparty !== void 0 && (f.counterparty = i.counterparty ? e.Counterparty.toJSON(i.counterparty) : void 0), i.delay_period !== void 0 && (f.delay_period = i.delay_period), f; }, fromPartial(i) { - var f, d, h, _; + var f, d, p, _; const b = { client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; - return b.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", b.versions = ((d = i.versions) === null || d === void 0 ? void 0 : d.map((I) => e.Version.fromPartial(I))) || [], b.state = (h = i.state) !== null && h !== void 0 ? h : 0, b.counterparty = i.counterparty !== void 0 && i.counterparty !== null ? e.Counterparty.fromPartial(i.counterparty) : void 0, b.delay_period = (_ = i.delay_period) !== null && _ !== void 0 ? _ : "0", b; + return b.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", b.versions = ((d = i.versions) === null || d === void 0 ? void 0 : d.map((I) => e.Version.fromPartial(I))) || [], b.state = (p = i.state) !== null && p !== void 0 ? p : 0, b.counterparty = i.counterparty !== void 0 && i.counterparty !== null ? e.Counterparty.fromPartial(i.counterparty) : void 0, b.delay_period = (_ = i.delay_period) !== null && _ !== void 0 ? _ : "0", b; } }, e.IdentifiedConnection = { encode(i, f = t.Writer.create()) { i.id !== "" && f.uint32(10).string(i.id), i.client_id !== "" && f.uint32(18).string(i.client_id); for (const d of i.versions) @@ -26176,9 +26176,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.state !== 0 && f.uint32(32).int32(i.state), i.counterparty !== void 0 && e.Counterparty.encode(i.counterparty, f.uint32(42).fork()).ldelim(), i.delay_period !== "0" && f.uint32(48).uint64(i.delay_period), f; }, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { id: "", client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -26208,14 +26208,14 @@ Use Chrome, Firefox or Internet Explorer 11`); const f = {}; return i.id !== void 0 && (f.id = i.id), i.client_id !== void 0 && (f.client_id = i.client_id), i.versions ? f.versions = i.versions.map((d) => d ? e.Version.toJSON(d) : void 0) : f.versions = [], i.state !== void 0 && (f.state = r(i.state)), i.counterparty !== void 0 && (f.counterparty = i.counterparty ? e.Counterparty.toJSON(i.counterparty) : void 0), i.delay_period !== void 0 && (f.delay_period = i.delay_period), f; }, fromPartial(i) { - var f, d, h, _, b; + var f, d, p, _, b; const I = { id: "", client_id: "", versions: [], state: 0, counterparty: void 0, delay_period: "0" }; - return I.id = (f = i.id) !== null && f !== void 0 ? f : "", I.client_id = (d = i.client_id) !== null && d !== void 0 ? d : "", I.versions = ((h = i.versions) === null || h === void 0 ? void 0 : h.map((l) => e.Version.fromPartial(l))) || [], I.state = (_ = i.state) !== null && _ !== void 0 ? _ : 0, I.counterparty = i.counterparty !== void 0 && i.counterparty !== null ? e.Counterparty.fromPartial(i.counterparty) : void 0, I.delay_period = (b = i.delay_period) !== null && b !== void 0 ? b : "0", I; + return I.id = (f = i.id) !== null && f !== void 0 ? f : "", I.client_id = (d = i.client_id) !== null && d !== void 0 ? d : "", I.versions = ((p = i.versions) === null || p === void 0 ? void 0 : p.map((l) => e.Version.fromPartial(l))) || [], I.state = (_ = i.state) !== null && _ !== void 0 ? _ : 0, I.counterparty = i.counterparty !== void 0 && i.counterparty !== null ? e.Counterparty.fromPartial(i.counterparty) : void 0, I.delay_period = (b = i.delay_period) !== null && b !== void 0 ? b : "0", I; } }, e.Counterparty = { encode: (i, f = t.Writer.create()) => (i.client_id !== "" && f.uint32(10).string(i.client_id), i.connection_id !== "" && f.uint32(18).string(i.connection_id), i.prefix !== void 0 && c.MerklePrefix.encode(i.prefix, f.uint32(26).fork()).ldelim(), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { client_id: "", connection_id: "", prefix: void 0 }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -26237,17 +26237,17 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.client_id !== void 0 && (f.client_id = i.client_id), i.connection_id !== void 0 && (f.connection_id = i.connection_id), i.prefix !== void 0 && (f.prefix = i.prefix ? c.MerklePrefix.toJSON(i.prefix) : void 0), f; }, fromPartial(i) { var f, d; - const h = { client_id: "", connection_id: "", prefix: void 0 }; - return h.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", h.connection_id = (d = i.connection_id) !== null && d !== void 0 ? d : "", h.prefix = i.prefix !== void 0 && i.prefix !== null ? c.MerklePrefix.fromPartial(i.prefix) : void 0, h; + const p = { client_id: "", connection_id: "", prefix: void 0 }; + return p.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", p.connection_id = (d = i.connection_id) !== null && d !== void 0 ? d : "", p.prefix = i.prefix !== void 0 && i.prefix !== null ? c.MerklePrefix.fromPartial(i.prefix) : void 0, p; } }, e.ClientPaths = { encode(i, f = t.Writer.create()) { for (const d of i.paths) f.uint32(10).string(d); return f; }, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { paths: [] }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); b >>> 3 == 1 ? _.paths.push(d.string()) : d.skipType(7 & b); } @@ -26258,7 +26258,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, fromPartial(i) { var f; const d = { paths: [] }; - return d.paths = ((f = i.paths) === null || f === void 0 ? void 0 : f.map((h) => h)) || [], d; + return d.paths = ((f = i.paths) === null || f === void 0 ? void 0 : f.map((p) => p)) || [], d; } }, e.ConnectionPaths = { encode(i, f = t.Writer.create()) { i.client_id !== "" && f.uint32(10).string(i.client_id); for (const d of i.paths) @@ -26266,9 +26266,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return f; }, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { client_id: "", paths: [] }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -26287,8 +26287,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.client_id !== void 0 && (f.client_id = i.client_id), i.paths ? f.paths = i.paths.map((d) => d) : f.paths = [], f; }, fromPartial(i) { var f, d; - const h = { client_id: "", paths: [] }; - return h.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", h.paths = ((d = i.paths) === null || d === void 0 ? void 0 : d.map((_) => _)) || [], h; + const p = { client_id: "", paths: [] }; + return p.client_id = (f = i.client_id) !== null && f !== void 0 ? f : "", p.paths = ((d = i.paths) === null || d === void 0 ? void 0 : d.map((_) => _)) || [], p; } }, e.Version = { encode(i, f = t.Writer.create()) { i.identifier !== "" && f.uint32(10).string(i.identifier); for (const d of i.features) @@ -26296,9 +26296,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return f; }, decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { identifier: "", features: [] }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -26317,13 +26317,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.identifier !== void 0 && (f.identifier = i.identifier), i.features ? f.features = i.features.map((d) => d) : f.features = [], f; }, fromPartial(i) { var f, d; - const h = { identifier: "", features: [] }; - return h.identifier = (f = i.identifier) !== null && f !== void 0 ? f : "", h.features = ((d = i.features) === null || d === void 0 ? void 0 : d.map((_) => _)) || [], h; + const p = { identifier: "", features: [] }; + return p.identifier = (f = i.identifier) !== null && f !== void 0 ? f : "", p.features = ((d = i.features) === null || d === void 0 ? void 0 : d.map((_) => _)) || [], p; } }, e.Params = { encode: (i, f = t.Writer.create()) => (i.max_expected_time_per_block !== "0" && f.uint32(8).uint64(i.max_expected_time_per_block), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { max_expected_time_per_block: "0" }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); b >>> 3 == 1 ? _.max_expected_time_per_block = n(d.uint64()) : d.skipType(7 & b); } @@ -26336,7 +26336,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const d = { max_expected_time_per_block: "0" }; return d.max_expected_time_per_block = (f = i.max_expected_time_per_block) !== null && f !== void 0 ? f : "0", d; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 8344: function(D, e, p) { + }, 8344: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(l, j, M, N) { N === void 0 && (N = M), Object.defineProperty(l, N, { enumerable: !0, get: function() { return j[M]; @@ -26359,7 +26359,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return l && l.__esModule ? l : { default: l }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgConnectionOpenConfirmResponse = e.MsgConnectionOpenConfirm = e.MsgConnectionOpenAckResponse = e.MsgConnectionOpenAck = e.MsgConnectionOpenTryResponse = e.MsgConnectionOpenTry = e.MsgConnectionOpenInitResponse = e.MsgConnectionOpenInit = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(6788), u = p(4191), s = p(5650); + const a = S(h(3720)), t = k(h(2100)), c = h(6788), u = h(4191), s = h(5650); function r() { return { client_id: "", previous_connection_id: "", client_state: void 0, counterparty: void 0, delay_period: "0", counterparty_versions: [], proof_height: void 0, proof_init: new Uint8Array(), proof_client: new Uint8Array(), proof_consensus: new Uint8Array(), consensus_height: void 0, signer: "" }; } @@ -26603,8 +26603,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const f = i.atob || ((l) => i.Buffer.from(l, "base64").toString("binary")); @@ -26614,12 +26614,12 @@ Use Chrome, Firefox or Internet Explorer 11`); M[N] = j.charCodeAt(N); return M; } - const h = i.btoa || ((l) => i.Buffer.from(l, "binary").toString("base64")); + const p = i.btoa || ((l) => i.Buffer.from(l, "binary").toString("base64")); function _(l) { const j = []; for (const M of l) j.push(String.fromCharCode(M)); - return h(j.join("")); + return p(j.join("")); } function b(l) { return l.toString(); @@ -26628,7 +26628,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return l != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 2896: function(D, e, p) { + }, 2896: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(C, x, P, v) { v === void 0 && (v = P), Object.defineProperty(C, v, { enumerable: !0, get: function() { return x[P]; @@ -26651,7 +26651,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return C && C.__esModule ? C : { default: C }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgClearAdminResponse = e.MsgClearAdmin = e.MsgUpdateAdminResponse = e.MsgUpdateAdmin = e.MsgMigrateContractResponse = e.MsgMigrateContract = e.MsgExecuteContractResponse = e.MsgExecuteContract = e.MsgInstantiateContractResponse = e.MsgInstantiateContract = e.MsgStoreCodeResponse = e.MsgStoreCode = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2976); + const a = S(h(3720)), t = k(h(2100)), c = h(2976); function u() { return { sender: new Uint8Array(), wasm_byte_code: new Uint8Array(), source: "", builder: "" }; } @@ -26676,7 +26676,7 @@ Use Chrome, Firefox or Internet Explorer 11`); function d() { return { sender: "", new_admin: "", contract: "", callback_sig: new Uint8Array() }; } - function h() { + function p() { return { sender: "", contract: "", callback_sig: new Uint8Array() }; } e.protobufPackage = "secret.compute.v1beta1", e.MsgStoreCode = { encode: (C, x = t.Writer.create()) => (C.sender.length !== 0 && x.uint32(10).bytes(C.sender), C.wasm_byte_code.length !== 0 && x.uint32(18).bytes(C.wasm_byte_code), C.source !== "" && x.uint32(26).string(C.source), C.builder !== "" && x.uint32(34).string(C.builder), x), decode(C, x) { @@ -26952,7 +26952,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, fromJSON: (C) => ({}), toJSON: (C) => ({}), fromPartial: (C) => ({}) }, e.MsgClearAdmin = { encode: (C, x = t.Writer.create()) => (C.sender !== "" && x.uint32(10).string(C.sender), C.contract !== "" && x.uint32(26).string(C.contract), C.callback_sig.length !== 0 && x.uint32(58).bytes(C.callback_sig), x), decode(C, x) { const P = C instanceof t.Reader ? C : new t.Reader(C); let v = x === void 0 ? P.len : P.pos + x; - const m = h(); + const m = p(); for (; P.pos < v; ) { const E = P.uint32(); switch (E >>> 3) { @@ -26975,7 +26975,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return C.sender !== void 0 && (x.sender = C.sender), C.contract !== void 0 && (x.contract = C.contract), C.callback_sig !== void 0 && (x.callback_sig = j(C.callback_sig !== void 0 ? C.callback_sig : new Uint8Array())), x; }, fromPartial(C) { var x, P, v; - const m = h(); + const m = p(); return m.sender = (x = C.sender) !== null && x !== void 0 ? x : "", m.contract = (P = C.contract) !== null && P !== void 0 ? P : "", m.callback_sig = (v = C.callback_sig) !== null && v !== void 0 ? v : new Uint8Array(), m; } }, e.MsgClearAdminResponse = { encode: (C, x = t.Writer.create()) => x, decode(C, x) { const P = C instanceof t.Reader ? C : new t.Reader(C); @@ -27021,8 +27021,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const b = _.atob || ((C) => _.Buffer.from(C, "base64").toString("binary")); @@ -27046,7 +27046,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return C != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 4657: function(D, e, p) { + }, 4657: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(c, u, s, r) { r === void 0 && (r = s), Object.defineProperty(c, r, { enumerable: !0, get: function() { return u[s]; @@ -27069,7 +27069,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return c && c.__esModule ? c : { default: c }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClientImpl = e.MsgToggleIbcSwitchResponse = e.MsgToggleIbcSwitch = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); e.protobufPackage = "secret.emergencybutton.v1beta1", e.MsgToggleIbcSwitch = { encode: (c, u = t.Writer.create()) => (c.sender !== "" && u.uint32(10).string(c.sender), u), decode(c, u) { const s = c instanceof t.Reader ? c : new t.Reader(c); let r = u === void 0 ? s.len : s.pos + u; @@ -27106,30 +27106,30 @@ Use Chrome, Firefox or Internet Explorer 11`); return this.rpc.request("secret.emergencybutton.v1beta1.Msg", "ToggleIbcSwitch", u).then((s) => e.MsgToggleIbcSwitchResponse.decode(new t.Reader(s))); } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 1901: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(h, _, b, I) { - I === void 0 && (I = b), Object.defineProperty(h, I, { enumerable: !0, get: function() { + }, 1901: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(p, _, b, I) { + I === void 0 && (I = b), Object.defineProperty(p, I, { enumerable: !0, get: function() { return _[b]; } }); - } : function(h, _, b, I) { - I === void 0 && (I = b), h[I] = _[b]; - }), O = this && this.__setModuleDefault || (Object.create ? function(h, _) { - Object.defineProperty(h, "default", { enumerable: !0, value: _ }); - } : function(h, _) { - h.default = _; - }), k = this && this.__importStar || function(h) { - if (h && h.__esModule) - return h; + } : function(p, _, b, I) { + I === void 0 && (I = b), p[I] = _[b]; + }), O = this && this.__setModuleDefault || (Object.create ? function(p, _) { + Object.defineProperty(p, "default", { enumerable: !0, value: _ }); + } : function(p, _) { + p.default = _; + }), k = this && this.__importStar || function(p) { + if (p && p.__esModule) + return p; var _ = {}; - if (h != null) - for (var b in h) - b !== "default" && Object.prototype.hasOwnProperty.call(h, b) && w(_, h, b); - return O(_, h), _; - }, S = this && this.__importDefault || function(h) { - return h && h.__esModule ? h : { default: h }; + if (p != null) + for (var b in p) + b !== "default" && Object.prototype.hasOwnProperty.call(p, b) && w(_, p, b); + return O(_, p), _; + }, S = this && this.__importDefault || function(p) { + return p && p.__esModule ? p : { default: p }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Key = e.MasterKey = e.RaAuthenticate = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c() { return { sender: new Uint8Array(), certificate: new Uint8Array() }; } @@ -27139,8 +27139,8 @@ Use Chrome, Firefox or Internet Explorer 11`); function s() { return { key: new Uint8Array() }; } - e.protobufPackage = "secret.registration.v1beta1", e.RaAuthenticate = { encode: (h, _ = t.Writer.create()) => (h.sender.length !== 0 && _.uint32(10).bytes(h.sender), h.certificate.length !== 0 && _.uint32(18).bytes(h.certificate), _), decode(h, _) { - const b = h instanceof t.Reader ? h : new t.Reader(h); + e.protobufPackage = "secret.registration.v1beta1", e.RaAuthenticate = { encode: (p, _ = t.Writer.create()) => (p.sender.length !== 0 && _.uint32(10).bytes(p.sender), p.certificate.length !== 0 && _.uint32(18).bytes(p.certificate), _), decode(p, _) { + const b = p instanceof t.Reader ? p : new t.Reader(p); let I = _ === void 0 ? b.len : b.pos + _; const l = c(); for (; b.pos < I; ) { @@ -27157,15 +27157,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return l; - }, fromJSON: (h) => ({ sender: d(h.sender) ? o(h.sender) : new Uint8Array(), certificate: d(h.certificate) ? o(h.certificate) : new Uint8Array() }), toJSON(h) { + }, fromJSON: (p) => ({ sender: d(p.sender) ? o(p.sender) : new Uint8Array(), certificate: d(p.certificate) ? o(p.certificate) : new Uint8Array() }), toJSON(p) { const _ = {}; - return h.sender !== void 0 && (_.sender = f(h.sender !== void 0 ? h.sender : new Uint8Array())), h.certificate !== void 0 && (_.certificate = f(h.certificate !== void 0 ? h.certificate : new Uint8Array())), _; - }, fromPartial(h) { + return p.sender !== void 0 && (_.sender = f(p.sender !== void 0 ? p.sender : new Uint8Array())), p.certificate !== void 0 && (_.certificate = f(p.certificate !== void 0 ? p.certificate : new Uint8Array())), _; + }, fromPartial(p) { var _, b; const I = c(); - return I.sender = (_ = h.sender) !== null && _ !== void 0 ? _ : new Uint8Array(), I.certificate = (b = h.certificate) !== null && b !== void 0 ? b : new Uint8Array(), I; - } }, e.MasterKey = { encode: (h, _ = t.Writer.create()) => (h.bytes.length !== 0 && _.uint32(10).bytes(h.bytes), _), decode(h, _) { - const b = h instanceof t.Reader ? h : new t.Reader(h); + return I.sender = (_ = p.sender) !== null && _ !== void 0 ? _ : new Uint8Array(), I.certificate = (b = p.certificate) !== null && b !== void 0 ? b : new Uint8Array(), I; + } }, e.MasterKey = { encode: (p, _ = t.Writer.create()) => (p.bytes.length !== 0 && _.uint32(10).bytes(p.bytes), _), decode(p, _) { + const b = p instanceof t.Reader ? p : new t.Reader(p); let I = _ === void 0 ? b.len : b.pos + _; const l = u(); for (; b.pos < I; ) { @@ -27173,15 +27173,15 @@ Use Chrome, Firefox or Internet Explorer 11`); j >>> 3 == 1 ? l.bytes = b.bytes() : b.skipType(7 & j); } return l; - }, fromJSON: (h) => ({ bytes: d(h.bytes) ? o(h.bytes) : new Uint8Array() }), toJSON(h) { + }, fromJSON: (p) => ({ bytes: d(p.bytes) ? o(p.bytes) : new Uint8Array() }), toJSON(p) { const _ = {}; - return h.bytes !== void 0 && (_.bytes = f(h.bytes !== void 0 ? h.bytes : new Uint8Array())), _; - }, fromPartial(h) { + return p.bytes !== void 0 && (_.bytes = f(p.bytes !== void 0 ? p.bytes : new Uint8Array())), _; + }, fromPartial(p) { var _; const b = u(); - return b.bytes = (_ = h.bytes) !== null && _ !== void 0 ? _ : new Uint8Array(), b; - } }, e.Key = { encode: (h, _ = t.Writer.create()) => (h.key.length !== 0 && _.uint32(10).bytes(h.key), _), decode(h, _) { - const b = h instanceof t.Reader ? h : new t.Reader(h); + return b.bytes = (_ = p.bytes) !== null && _ !== void 0 ? _ : new Uint8Array(), b; + } }, e.Key = { encode: (p, _ = t.Writer.create()) => (p.key.length !== 0 && _.uint32(10).bytes(p.key), _), decode(p, _) { + const b = p instanceof t.Reader ? p : new t.Reader(p); let I = _ === void 0 ? b.len : b.pos + _; const l = s(); for (; b.pos < I; ) { @@ -27189,13 +27189,13 @@ Use Chrome, Firefox or Internet Explorer 11`); j >>> 3 == 1 ? l.key = b.bytes() : b.skipType(7 & j); } return l; - }, fromJSON: (h) => ({ key: d(h.key) ? o(h.key) : new Uint8Array() }), toJSON(h) { + }, fromJSON: (p) => ({ key: d(p.key) ? o(p.key) : new Uint8Array() }), toJSON(p) { const _ = {}; - return h.key !== void 0 && (_.key = f(h.key !== void 0 ? h.key : new Uint8Array())), _; - }, fromPartial(h) { + return p.key !== void 0 && (_.key = f(p.key !== void 0 ? p.key : new Uint8Array())), _; + }, fromPartial(p) { var _; const b = s(); - return b.key = (_ = h.key) !== null && _ !== void 0 ? _ : new Uint8Array(), b; + return b.key = (_ = p.key) !== null && _ !== void 0 ? _ : new Uint8Array(), b; } }; var r = (() => { if (r !== void 0) @@ -27204,29 +27204,29 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); - const n = r.atob || ((h) => r.Buffer.from(h, "base64").toString("binary")); - function o(h) { - const _ = n(h), b = new Uint8Array(_.length); + const n = r.atob || ((p) => r.Buffer.from(p, "base64").toString("binary")); + function o(p) { + const _ = n(p), b = new Uint8Array(_.length); for (let I = 0; I < _.length; ++I) b[I] = _.charCodeAt(I); return b; } - const i = r.btoa || ((h) => r.Buffer.from(h, "binary").toString("base64")); - function f(h) { + const i = r.btoa || ((p) => r.Buffer.from(p, "binary").toString("base64")); + function f(p) { const _ = []; - for (const b of h) + for (const b of p) _.push(String.fromCharCode(b)); return i(_.join("")); } - function d(h) { - return h != null; + function d(p) { + return p != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 2093: function(D, e, p) { + }, 2093: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(y, A, R, U) { U === void 0 && (U = R), Object.defineProperty(y, U, { enumerable: !0, get: function() { return A[R]; @@ -27249,9 +27249,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return y && y.__esModule ? y : { default: y }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Event = e.LastCommitInfo = e.BlockParams = e.ConsensusParams = e.ResponseApplySnapshotChunk = e.ResponseLoadSnapshotChunk = e.ResponseOfferSnapshot = e.ResponseListSnapshots = e.ResponseCommit = e.ResponseEndBlock = e.ResponseDeliverTx = e.ResponseCheckTx = e.ResponseBeginBlock = e.ResponseQuery = e.ResponseInitChain = e.ResponseSetOption = e.ResponseInfo = e.ResponseFlush = e.ResponseEcho = e.ResponseException = e.Response = e.RequestApplySnapshotChunk = e.RequestLoadSnapshotChunk = e.RequestOfferSnapshot = e.RequestListSnapshots = e.RequestCommit = e.RequestEndBlock = e.RequestDeliverTx = e.RequestCheckTx = e.RequestBeginBlock = e.RequestQuery = e.RequestInitChain = e.RequestSetOption = e.RequestInfo = e.RequestFlush = e.RequestEcho = e.Request = e.responseApplySnapshotChunk_ResultToJSON = e.responseApplySnapshotChunk_ResultFromJSON = e.ResponseApplySnapshotChunk_Result = e.responseOfferSnapshot_ResultToJSON = e.responseOfferSnapshot_ResultFromJSON = e.ResponseOfferSnapshot_Result = e.evidenceTypeToJSON = e.evidenceTypeFromJSON = e.EvidenceType = e.checkTxTypeToJSON = e.checkTxTypeFromJSON = e.CheckTxType = e.protobufPackage = void 0, e.ABCIApplicationClientImpl = e.Snapshot = e.Evidence = e.VoteInfo = e.ValidatorUpdate = e.Validator = e.TxResult = e.EventAttribute = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(5090), u = p(9928), s = p(1093), r = p(5672), n = p(2740); + const a = S(h(3720)), t = k(h(2100)), c = h(5090), u = h(9928), s = h(1093), r = h(5672), n = h(2740); var o, i, f, d; - function h(y) { + function p(y) { switch (y) { case 0: case "NEW": @@ -27440,7 +27440,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } e.protobufPackage = "tendermint.abci", function(y) { y[y.NEW = 0] = "NEW", y[y.RECHECK = 1] = "RECHECK", y[y.UNRECOGNIZED = -1] = "UNRECOGNIZED"; - }(o = e.CheckTxType || (e.CheckTxType = {})), e.checkTxTypeFromJSON = h, e.checkTxTypeToJSON = _, function(y) { + }(o = e.CheckTxType || (e.CheckTxType = {})), e.checkTxTypeFromJSON = p, e.checkTxTypeToJSON = _, function(y) { y[y.UNKNOWN = 0] = "UNKNOWN", y[y.DUPLICATE_VOTE = 1] = "DUPLICATE_VOTE", y[y.LIGHT_CLIENT_ATTACK = 2] = "LIGHT_CLIENT_ATTACK", y[y.UNRECOGNIZED = -1] = "UNRECOGNIZED"; }(i = e.EvidenceType || (e.EvidenceType = {})), e.evidenceTypeFromJSON = b, e.evidenceTypeToJSON = I, function(y) { y[y.UNKNOWN = 0] = "UNKNOWN", y[y.ACCEPT = 1] = "ACCEPT", y[y.ABORT = 2] = "ABORT", y[y.REJECT = 3] = "REJECT", y[y.REJECT_FORMAT = 4] = "REJECT_FORMAT", y[y.REJECT_SENDER = 5] = "REJECT_SENDER", y[y.UNRECOGNIZED = -1] = "UNRECOGNIZED"; @@ -27722,7 +27722,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return z; - }, fromJSON: (y) => ({ tx: V(y.tx) ? he(y.tx) : new Uint8Array(), type: V(y.type) ? h(y.type) : 0 }), toJSON(y) { + }, fromJSON: (y) => ({ tx: V(y.tx) ? he(y.tx) : new Uint8Array(), type: V(y.type) ? p(y.type) : 0 }), toJSON(y) { const A = {}; return y.tx !== void 0 && (A.tx = ce(y.tx !== void 0 ? y.tx : new Uint8Array())), y.type !== void 0 && (A.type = _(y.type)), A; }, fromPartial(y) { @@ -28772,8 +28772,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const ae = F.atob || ((y) => F.Buffer.from(y, "base64").toString("binary")); @@ -28807,13 +28807,13 @@ Use Chrome, Firefox or Internet Explorer 11`); return y != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 2740: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(i, f, d, h) { - h === void 0 && (h = d), Object.defineProperty(i, h, { enumerable: !0, get: function() { + }, 2740: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(i, f, d, p) { + p === void 0 && (p = d), Object.defineProperty(i, p, { enumerable: !0, get: function() { return f[d]; } }); - } : function(i, f, d, h) { - h === void 0 && (h = d), i[h] = f[d]; + } : function(i, f, d, p) { + p === void 0 && (p = d), i[p] = f[d]; }), O = this && this.__setModuleDefault || (Object.create ? function(i, f) { Object.defineProperty(i, "default", { enumerable: !0, value: f }); } : function(i, f) { @@ -28830,12 +28830,12 @@ Use Chrome, Firefox or Internet Explorer 11`); return i && i.__esModule ? i : { default: i }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.PublicKey = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); e.protobufPackage = "tendermint.crypto", e.PublicKey = { encode: (i, f = t.Writer.create()) => (i.ed25519 !== void 0 && f.uint32(10).bytes(i.ed25519), i.secp256k1 !== void 0 && f.uint32(18).bytes(i.secp256k1), f), decode(i, f) { const d = i instanceof t.Reader ? i : new t.Reader(i); - let h = f === void 0 ? d.len : d.pos + f; + let p = f === void 0 ? d.len : d.pos + f; const _ = { ed25519: void 0, secp256k1: void 0 }; - for (; d.pos < h; ) { + for (; d.pos < p; ) { const b = d.uint32(); switch (b >>> 3) { case 1: @@ -28854,8 +28854,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return i.ed25519 !== void 0 && (f.ed25519 = i.ed25519 !== void 0 ? n(i.ed25519) : void 0), i.secp256k1 !== void 0 && (f.secp256k1 = i.secp256k1 !== void 0 ? n(i.secp256k1) : void 0), f; }, fromPartial(i) { var f, d; - const h = { ed25519: void 0, secp256k1: void 0 }; - return h.ed25519 = (f = i.ed25519) !== null && f !== void 0 ? f : void 0, h.secp256k1 = (d = i.secp256k1) !== null && d !== void 0 ? d : void 0, h; + const p = { ed25519: void 0, secp256k1: void 0 }; + return p.ed25519 = (f = i.ed25519) !== null && f !== void 0 ? f : void 0, p.secp256k1 = (d = i.secp256k1) !== null && d !== void 0 ? d : void 0, p; } }; var c = (() => { if (c !== void 0) @@ -28864,15 +28864,15 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const u = c.atob || ((i) => c.Buffer.from(i, "base64").toString("binary")); function s(i) { const f = u(i), d = new Uint8Array(f.length); - for (let h = 0; h < f.length; ++h) - d[h] = f.charCodeAt(h); + for (let p = 0; p < f.length; ++p) + d[p] = f.charCodeAt(p); return d; } const r = c.btoa || ((i) => c.Buffer.from(i, "binary").toString("base64")); @@ -28886,7 +28886,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return i != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 1093: function(D, e, p) { + }, 1093: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(_, b, I, l) { l === void 0 && (l = I), Object.defineProperty(_, l, { enumerable: !0, get: function() { return b[I]; @@ -28909,7 +28909,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return _ && _.__esModule ? _ : { default: _ }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.ProofOps = e.ProofOp = e.DominoOp = e.ValueOp = e.Proof = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c() { return { total: "0", index: "0", leaf_hash: new Uint8Array(), aunts: [] }; } @@ -28948,7 +28948,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return j; - }, fromJSON: (_) => ({ total: h(_.total) ? String(_.total) : "0", index: h(_.index) ? String(_.index) : "0", leaf_hash: h(_.leaf_hash) ? o(_.leaf_hash) : new Uint8Array(), aunts: Array.isArray(_ == null ? void 0 : _.aunts) ? _.aunts.map((b) => o(b)) : [] }), toJSON(_) { + }, fromJSON: (_) => ({ total: p(_.total) ? String(_.total) : "0", index: p(_.index) ? String(_.index) : "0", leaf_hash: p(_.leaf_hash) ? o(_.leaf_hash) : new Uint8Array(), aunts: Array.isArray(_ == null ? void 0 : _.aunts) ? _.aunts.map((b) => o(b)) : [] }), toJSON(_) { const b = {}; return _.total !== void 0 && (b.total = _.total), _.index !== void 0 && (b.index = _.index), _.leaf_hash !== void 0 && (b.leaf_hash = f(_.leaf_hash !== void 0 ? _.leaf_hash : new Uint8Array())), _.aunts ? b.aunts = _.aunts.map((I) => f(I !== void 0 ? I : new Uint8Array())) : b.aunts = [], b; }, fromPartial(_) { @@ -28973,7 +28973,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return j; - }, fromJSON: (_) => ({ key: h(_.key) ? o(_.key) : new Uint8Array(), proof: h(_.proof) ? e.Proof.fromJSON(_.proof) : void 0 }), toJSON(_) { + }, fromJSON: (_) => ({ key: p(_.key) ? o(_.key) : new Uint8Array(), proof: p(_.proof) ? e.Proof.fromJSON(_.proof) : void 0 }), toJSON(_) { const b = {}; return _.key !== void 0 && (b.key = f(_.key !== void 0 ? _.key : new Uint8Array())), _.proof !== void 0 && (b.proof = _.proof ? e.Proof.toJSON(_.proof) : void 0), b; }, fromPartial(_) { @@ -29001,7 +29001,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return j; - }, fromJSON: (_) => ({ key: h(_.key) ? String(_.key) : "", input: h(_.input) ? String(_.input) : "", output: h(_.output) ? String(_.output) : "" }), toJSON(_) { + }, fromJSON: (_) => ({ key: p(_.key) ? String(_.key) : "", input: p(_.input) ? String(_.input) : "", output: p(_.output) ? String(_.output) : "" }), toJSON(_) { const b = {}; return _.key !== void 0 && (b.key = _.key), _.input !== void 0 && (b.input = _.input), _.output !== void 0 && (b.output = _.output), b; }, fromPartial(_) { @@ -29029,7 +29029,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return j; - }, fromJSON: (_) => ({ type: h(_.type) ? String(_.type) : "", key: h(_.key) ? o(_.key) : new Uint8Array(), data: h(_.data) ? o(_.data) : new Uint8Array() }), toJSON(_) { + }, fromJSON: (_) => ({ type: p(_.type) ? String(_.type) : "", key: p(_.key) ? o(_.key) : new Uint8Array(), data: p(_.data) ? o(_.data) : new Uint8Array() }), toJSON(_) { const b = {}; return _.type !== void 0 && (b.type = _.type), _.key !== void 0 && (b.key = f(_.key !== void 0 ? _.key : new Uint8Array())), _.data !== void 0 && (b.data = f(_.data !== void 0 ? _.data : new Uint8Array())), b; }, fromPartial(_) { @@ -29064,8 +29064,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const n = r.atob || ((_) => r.Buffer.from(_, "base64").toString("binary")); @@ -29085,11 +29085,11 @@ Use Chrome, Firefox or Internet Explorer 11`); function d(_) { return _.toString(); } - function h(_) { + function p(_) { return _ != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5672: function(D, e, p) { + }, 5672: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(r, n, o, i) { i === void 0 && (i = o), Object.defineProperty(r, i, { enumerable: !0, get: function() { return n[o]; @@ -29112,7 +29112,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return r && r.__esModule ? r : { default: r }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.HashedParams = e.VersionParams = e.ValidatorParams = e.EvidenceParams = e.BlockParams = e.ConsensusParams = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(6138); + const a = S(h(3720)), t = k(h(2100)), c = h(6138); function u(r) { return r.toString(); } @@ -29267,7 +29267,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const i = { block_max_bytes: "0", block_max_gas: "0" }; return i.block_max_bytes = (n = r.block_max_bytes) !== null && n !== void 0 ? n : "0", i.block_max_gas = (o = r.block_max_gas) !== null && o !== void 0 ? o : "0", i; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 9928: function(D, e, p) { + }, 9928: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(J, ee, G, $) { $ === void 0 && ($ = G), Object.defineProperty(J, $, { enumerable: !0, get: function() { return ee[G]; @@ -29290,7 +29290,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return J && J.__esModule ? J : { default: J }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.TxProof = e.BlockMeta = e.LightBlock = e.SignedHeader = e.Proposal = e.CommitSig = e.Commit = e.Vote = e.Data = e.EncryptedRandom = e.Header = e.BlockID = e.Part = e.PartSetHeader = e.signedMsgTypeToJSON = e.signedMsgTypeFromJSON = e.SignedMsgType = e.blockIDFlagToJSON = e.blockIDFlagFromJSON = e.BlockIDFlag = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(1093), u = p(5640), s = p(5090), r = p(3563); + const a = S(h(3720)), t = k(h(2100)), c = h(1093), u = h(5640), s = h(5090), r = h(3563); var n, o; function i(J) { switch (J) { @@ -29342,7 +29342,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return o.UNRECOGNIZED; } } - function h(J) { + function p(J) { switch (J) { case o.SIGNED_MSG_TYPE_UNKNOWN: return "SIGNED_MSG_TYPE_UNKNOWN"; @@ -29387,7 +29387,7 @@ Use Chrome, Firefox or Internet Explorer 11`); J[J.BLOCK_ID_FLAG_UNKNOWN = 0] = "BLOCK_ID_FLAG_UNKNOWN", J[J.BLOCK_ID_FLAG_ABSENT = 1] = "BLOCK_ID_FLAG_ABSENT", J[J.BLOCK_ID_FLAG_COMMIT = 2] = "BLOCK_ID_FLAG_COMMIT", J[J.BLOCK_ID_FLAG_NIL = 3] = "BLOCK_ID_FLAG_NIL", J[J.UNRECOGNIZED = -1] = "UNRECOGNIZED"; }(n = e.BlockIDFlag || (e.BlockIDFlag = {})), e.blockIDFlagFromJSON = i, e.blockIDFlagToJSON = f, function(J) { J[J.SIGNED_MSG_TYPE_UNKNOWN = 0] = "SIGNED_MSG_TYPE_UNKNOWN", J[J.SIGNED_MSG_TYPE_PREVOTE = 1] = "SIGNED_MSG_TYPE_PREVOTE", J[J.SIGNED_MSG_TYPE_PRECOMMIT = 2] = "SIGNED_MSG_TYPE_PRECOMMIT", J[J.SIGNED_MSG_TYPE_PROPOSAL = 32] = "SIGNED_MSG_TYPE_PROPOSAL", J[J.UNRECOGNIZED = -1] = "UNRECOGNIZED"; - }(o = e.SignedMsgType || (e.SignedMsgType = {})), e.signedMsgTypeFromJSON = d, e.signedMsgTypeToJSON = h, e.PartSetHeader = { encode: (J, ee = t.Writer.create()) => (J.total !== 0 && ee.uint32(8).uint32(J.total), J.hash.length !== 0 && ee.uint32(18).bytes(J.hash), ee), decode(J, ee) { + }(o = e.SignedMsgType || (e.SignedMsgType = {})), e.signedMsgTypeFromJSON = d, e.signedMsgTypeToJSON = p, e.PartSetHeader = { encode: (J, ee = t.Writer.create()) => (J.total !== 0 && ee.uint32(8).uint32(J.total), J.hash.length !== 0 && ee.uint32(18).bytes(J.hash), ee), decode(J, ee) { const G = J instanceof t.Reader ? J : new t.Reader(J); let $ = ee === void 0 ? G.len : G.pos + ee; const W = _(); @@ -29612,7 +29612,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return W; }, fromJSON: (J) => ({ type: ie(J.type) ? d(J.type) : 0, height: ie(J.height) ? String(J.height) : "0", round: ie(J.round) ? Number(J.round) : 0, block_id: ie(J.block_id) ? e.BlockID.fromJSON(J.block_id) : void 0, timestamp: ie(J.timestamp) ? te(J.timestamp) : void 0, validator_address: ie(J.validator_address) ? m(J.validator_address) : new Uint8Array(), validator_index: ie(J.validator_index) ? Number(J.validator_index) : 0, signature: ie(J.signature) ? m(J.signature) : new Uint8Array() }), toJSON(J) { const ee = {}; - return J.type !== void 0 && (ee.type = h(J.type)), J.height !== void 0 && (ee.height = J.height), J.round !== void 0 && (ee.round = Math.round(J.round)), J.block_id !== void 0 && (ee.block_id = J.block_id ? e.BlockID.toJSON(J.block_id) : void 0), J.timestamp !== void 0 && (ee.timestamp = q(J.timestamp).toISOString()), J.validator_address !== void 0 && (ee.validator_address = B(J.validator_address !== void 0 ? J.validator_address : new Uint8Array())), J.validator_index !== void 0 && (ee.validator_index = Math.round(J.validator_index)), J.signature !== void 0 && (ee.signature = B(J.signature !== void 0 ? J.signature : new Uint8Array())), ee; + return J.type !== void 0 && (ee.type = p(J.type)), J.height !== void 0 && (ee.height = J.height), J.round !== void 0 && (ee.round = Math.round(J.round)), J.block_id !== void 0 && (ee.block_id = J.block_id ? e.BlockID.toJSON(J.block_id) : void 0), J.timestamp !== void 0 && (ee.timestamp = q(J.timestamp).toISOString()), J.validator_address !== void 0 && (ee.validator_address = B(J.validator_address !== void 0 ? J.validator_address : new Uint8Array())), J.validator_index !== void 0 && (ee.validator_index = Math.round(J.validator_index)), J.signature !== void 0 && (ee.signature = B(J.signature !== void 0 ? J.signature : new Uint8Array())), ee; }, fromPartial(J) { var ee, G, $, W, Y, F; const ae = M(); @@ -29719,7 +29719,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return W; }, fromJSON: (J) => ({ type: ie(J.type) ? d(J.type) : 0, height: ie(J.height) ? String(J.height) : "0", round: ie(J.round) ? Number(J.round) : 0, pol_round: ie(J.pol_round) ? Number(J.pol_round) : 0, block_id: ie(J.block_id) ? e.BlockID.fromJSON(J.block_id) : void 0, timestamp: ie(J.timestamp) ? te(J.timestamp) : void 0, signature: ie(J.signature) ? m(J.signature) : new Uint8Array() }), toJSON(J) { const ee = {}; - return J.type !== void 0 && (ee.type = h(J.type)), J.height !== void 0 && (ee.height = J.height), J.round !== void 0 && (ee.round = Math.round(J.round)), J.pol_round !== void 0 && (ee.pol_round = Math.round(J.pol_round)), J.block_id !== void 0 && (ee.block_id = J.block_id ? e.BlockID.toJSON(J.block_id) : void 0), J.timestamp !== void 0 && (ee.timestamp = q(J.timestamp).toISOString()), J.signature !== void 0 && (ee.signature = B(J.signature !== void 0 ? J.signature : new Uint8Array())), ee; + return J.type !== void 0 && (ee.type = p(J.type)), J.height !== void 0 && (ee.height = J.height), J.round !== void 0 && (ee.round = Math.round(J.round)), J.pol_round !== void 0 && (ee.pol_round = Math.round(J.pol_round)), J.block_id !== void 0 && (ee.block_id = J.block_id ? e.BlockID.toJSON(J.block_id) : void 0), J.timestamp !== void 0 && (ee.timestamp = q(J.timestamp).toISOString()), J.signature !== void 0 && (ee.signature = B(J.signature !== void 0 ? J.signature : new Uint8Array())), ee; }, fromPartial(J) { var ee, G, $, W, Y; const F = C(); @@ -29839,8 +29839,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const v = P.atob || ((J) => P.Buffer.from(J, "base64").toString("binary")); @@ -29874,40 +29874,40 @@ Use Chrome, Firefox or Internet Explorer 11`); return J != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 3563: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(d, h, _, b) { + }, 3563: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(d, p, _, b) { b === void 0 && (b = _), Object.defineProperty(d, b, { enumerable: !0, get: function() { - return h[_]; + return p[_]; } }); - } : function(d, h, _, b) { - b === void 0 && (b = _), d[b] = h[_]; - }), O = this && this.__setModuleDefault || (Object.create ? function(d, h) { - Object.defineProperty(d, "default", { enumerable: !0, value: h }); - } : function(d, h) { - d.default = h; + } : function(d, p, _, b) { + b === void 0 && (b = _), d[b] = p[_]; + }), O = this && this.__setModuleDefault || (Object.create ? function(d, p) { + Object.defineProperty(d, "default", { enumerable: !0, value: p }); + } : function(d, p) { + d.default = p; }), k = this && this.__importStar || function(d) { if (d && d.__esModule) return d; - var h = {}; + var p = {}; if (d != null) for (var _ in d) - _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(h, d, _); - return O(h, d), h; + _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(p, d, _); + return O(p, d), p; }, S = this && this.__importDefault || function(d) { return d && d.__esModule ? d : { default: d }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.SimpleValidator = e.Validator = e.ValidatorSet = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)), c = p(2740); + const a = S(h(3720)), t = k(h(2100)), c = h(2740); function u() { return { address: new Uint8Array(), pub_key: void 0, voting_power: "0", proposer_priority: "0" }; } - e.protobufPackage = "tendermint.types", e.ValidatorSet = { encode(d, h = t.Writer.create()) { + e.protobufPackage = "tendermint.types", e.ValidatorSet = { encode(d, p = t.Writer.create()) { for (const _ of d.validators) - e.Validator.encode(_, h.uint32(10).fork()).ldelim(); - return d.proposer !== void 0 && e.Validator.encode(d.proposer, h.uint32(18).fork()).ldelim(), d.total_voting_power !== "0" && h.uint32(24).int64(d.total_voting_power), h; - }, decode(d, h) { + e.Validator.encode(_, p.uint32(10).fork()).ldelim(); + return d.proposer !== void 0 && e.Validator.encode(d.proposer, p.uint32(18).fork()).ldelim(), d.total_voting_power !== "0" && p.uint32(24).int64(d.total_voting_power), p; + }, decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { validators: [], proposer: void 0, total_voting_power: "0" }; for (; _.pos < b; ) { const l = _.uint32(); @@ -29926,16 +29926,16 @@ Use Chrome, Firefox or Internet Explorer 11`); } } return I; - }, fromJSON: (d) => ({ validators: Array.isArray(d == null ? void 0 : d.validators) ? d.validators.map((h) => e.Validator.fromJSON(h)) : [], proposer: f(d.proposer) ? e.Validator.fromJSON(d.proposer) : void 0, total_voting_power: f(d.total_voting_power) ? String(d.total_voting_power) : "0" }), toJSON(d) { - const h = {}; - return d.validators ? h.validators = d.validators.map((_) => _ ? e.Validator.toJSON(_) : void 0) : h.validators = [], d.proposer !== void 0 && (h.proposer = d.proposer ? e.Validator.toJSON(d.proposer) : void 0), d.total_voting_power !== void 0 && (h.total_voting_power = d.total_voting_power), h; + }, fromJSON: (d) => ({ validators: Array.isArray(d == null ? void 0 : d.validators) ? d.validators.map((p) => e.Validator.fromJSON(p)) : [], proposer: f(d.proposer) ? e.Validator.fromJSON(d.proposer) : void 0, total_voting_power: f(d.total_voting_power) ? String(d.total_voting_power) : "0" }), toJSON(d) { + const p = {}; + return d.validators ? p.validators = d.validators.map((_) => _ ? e.Validator.toJSON(_) : void 0) : p.validators = [], d.proposer !== void 0 && (p.proposer = d.proposer ? e.Validator.toJSON(d.proposer) : void 0), d.total_voting_power !== void 0 && (p.total_voting_power = d.total_voting_power), p; }, fromPartial(d) { - var h, _; + var p, _; const b = { validators: [], proposer: void 0, total_voting_power: "0" }; - return b.validators = ((h = d.validators) === null || h === void 0 ? void 0 : h.map((I) => e.Validator.fromPartial(I))) || [], b.proposer = d.proposer !== void 0 && d.proposer !== null ? e.Validator.fromPartial(d.proposer) : void 0, b.total_voting_power = (_ = d.total_voting_power) !== null && _ !== void 0 ? _ : "0", b; - } }, e.Validator = { encode: (d, h = t.Writer.create()) => (d.address.length !== 0 && h.uint32(10).bytes(d.address), d.pub_key !== void 0 && c.PublicKey.encode(d.pub_key, h.uint32(18).fork()).ldelim(), d.voting_power !== "0" && h.uint32(24).int64(d.voting_power), d.proposer_priority !== "0" && h.uint32(32).int64(d.proposer_priority), h), decode(d, h) { + return b.validators = ((p = d.validators) === null || p === void 0 ? void 0 : p.map((I) => e.Validator.fromPartial(I))) || [], b.proposer = d.proposer !== void 0 && d.proposer !== null ? e.Validator.fromPartial(d.proposer) : void 0, b.total_voting_power = (_ = d.total_voting_power) !== null && _ !== void 0 ? _ : "0", b; + } }, e.Validator = { encode: (d, p = t.Writer.create()) => (d.address.length !== 0 && p.uint32(10).bytes(d.address), d.pub_key !== void 0 && c.PublicKey.encode(d.pub_key, p.uint32(18).fork()).ldelim(), d.voting_power !== "0" && p.uint32(24).int64(d.voting_power), d.proposer_priority !== "0" && p.uint32(32).int64(d.proposer_priority), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = u(); for (; _.pos < b; ) { const l = _.uint32(); @@ -29958,20 +29958,20 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ address: f(d.address) ? n(d.address) : new Uint8Array(), pub_key: f(d.pub_key) ? c.PublicKey.fromJSON(d.pub_key) : void 0, voting_power: f(d.voting_power) ? String(d.voting_power) : "0", proposer_priority: f(d.proposer_priority) ? String(d.proposer_priority) : "0" }), toJSON(d) { - const h = {}; - return d.address !== void 0 && (h.address = function(_) { + const p = {}; + return d.address !== void 0 && (p.address = function(_) { const b = []; for (const I of _) b.push(String.fromCharCode(I)); return o(b.join("")); - }(d.address !== void 0 ? d.address : new Uint8Array())), d.pub_key !== void 0 && (h.pub_key = d.pub_key ? c.PublicKey.toJSON(d.pub_key) : void 0), d.voting_power !== void 0 && (h.voting_power = d.voting_power), d.proposer_priority !== void 0 && (h.proposer_priority = d.proposer_priority), h; + }(d.address !== void 0 ? d.address : new Uint8Array())), d.pub_key !== void 0 && (p.pub_key = d.pub_key ? c.PublicKey.toJSON(d.pub_key) : void 0), d.voting_power !== void 0 && (p.voting_power = d.voting_power), d.proposer_priority !== void 0 && (p.proposer_priority = d.proposer_priority), p; }, fromPartial(d) { - var h, _, b; + var p, _, b; const I = u(); - return I.address = (h = d.address) !== null && h !== void 0 ? h : new Uint8Array(), I.pub_key = d.pub_key !== void 0 && d.pub_key !== null ? c.PublicKey.fromPartial(d.pub_key) : void 0, I.voting_power = (_ = d.voting_power) !== null && _ !== void 0 ? _ : "0", I.proposer_priority = (b = d.proposer_priority) !== null && b !== void 0 ? b : "0", I; - } }, e.SimpleValidator = { encode: (d, h = t.Writer.create()) => (d.pub_key !== void 0 && c.PublicKey.encode(d.pub_key, h.uint32(10).fork()).ldelim(), d.voting_power !== "0" && h.uint32(16).int64(d.voting_power), h), decode(d, h) { + return I.address = (p = d.address) !== null && p !== void 0 ? p : new Uint8Array(), I.pub_key = d.pub_key !== void 0 && d.pub_key !== null ? c.PublicKey.fromPartial(d.pub_key) : void 0, I.voting_power = (_ = d.voting_power) !== null && _ !== void 0 ? _ : "0", I.proposer_priority = (b = d.proposer_priority) !== null && b !== void 0 ? b : "0", I; + } }, e.SimpleValidator = { encode: (d, p = t.Writer.create()) => (d.pub_key !== void 0 && c.PublicKey.encode(d.pub_key, p.uint32(10).fork()).ldelim(), d.voting_power !== "0" && p.uint32(16).int64(d.voting_power), p), decode(d, p) { const _ = d instanceof t.Reader ? d : new t.Reader(d); - let b = h === void 0 ? _.len : _.pos + h; + let b = p === void 0 ? _.len : _.pos + p; const I = { pub_key: void 0, voting_power: "0" }; for (; _.pos < b; ) { const l = _.uint32(); @@ -29988,12 +29988,12 @@ Use Chrome, Firefox or Internet Explorer 11`); } return I; }, fromJSON: (d) => ({ pub_key: f(d.pub_key) ? c.PublicKey.fromJSON(d.pub_key) : void 0, voting_power: f(d.voting_power) ? String(d.voting_power) : "0" }), toJSON(d) { - const h = {}; - return d.pub_key !== void 0 && (h.pub_key = d.pub_key ? c.PublicKey.toJSON(d.pub_key) : void 0), d.voting_power !== void 0 && (h.voting_power = d.voting_power), h; + const p = {}; + return d.pub_key !== void 0 && (p.pub_key = d.pub_key ? c.PublicKey.toJSON(d.pub_key) : void 0), d.voting_power !== void 0 && (p.voting_power = d.voting_power), p; }, fromPartial(d) { - var h; + var p; const _ = { pub_key: void 0, voting_power: "0" }; - return _.pub_key = d.pub_key !== void 0 && d.pub_key !== null ? c.PublicKey.fromPartial(d.pub_key) : void 0, _.voting_power = (h = d.voting_power) !== null && h !== void 0 ? h : "0", _; + return _.pub_key = d.pub_key !== void 0 && d.pub_key !== null ? c.PublicKey.fromPartial(d.pub_key) : void 0, _.voting_power = (p = d.voting_power) !== null && p !== void 0 ? p : "0", _; } }; var s = (() => { if (s !== void 0) @@ -30002,15 +30002,15 @@ Use Chrome, Firefox or Internet Explorer 11`); return self; if (typeof window < "u") return window; - if (p.g !== void 0) - return p.g; + if (h.g !== void 0) + return h.g; throw "Unable to locate global object"; })(); const r = s.atob || ((d) => s.Buffer.from(d, "base64").toString("binary")); function n(d) { - const h = r(d), _ = new Uint8Array(h.length); - for (let b = 0; b < h.length; ++b) - _[b] = h.charCodeAt(b); + const p = r(d), _ = new Uint8Array(p.length); + for (let b = 0; b < p.length; ++b) + _[b] = p.charCodeAt(b); return _; } const o = s.btoa || ((d) => s.Buffer.from(d, "binary").toString("base64")); @@ -30021,7 +30021,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return d != null; } t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 5640: function(D, e, p) { + }, 5640: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(s, r, n, o) { o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { return r[n]; @@ -30044,7 +30044,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return s && s.__esModule ? s : { default: s }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Consensus = e.App = e.protobufPackage = void 0; - const a = S(p(3720)), t = k(p(2100)); + const a = S(h(3720)), t = k(h(2100)); function c(s) { return s.toString(); } @@ -30102,7 +30102,7 @@ Use Chrome, Firefox or Internet Explorer 11`); const o = { block: "0", app: "0" }; return o.block = (r = s.block) !== null && r !== void 0 ? r : "0", o.app = (n = s.app) !== null && n !== void 0 ? n : "0", o; } }, t.util.Long !== a.default && (t.util.Long = a.default, t.configure()); - }, 2076: function(D, e, p) { + }, 2076: function(D, e, h) { var w = this && this.__awaiter || function(k, S, a, t) { return new (a || (a = Promise))(function(c, u) { function s(o) { @@ -30129,7 +30129,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthQuerier = void 0; - const O = p(3004); + const O = h(3004); e.AuthQuerier = class { constructor(k) { this.url = k; @@ -30155,9 +30155,9 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 298: (D, e, p) => { + }, 298: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.AuthzQuerier = void 0; - const w = p(3704); + const w = h(3704); e.AuthzQuerier = class { constructor(O) { this.url = O; @@ -30172,9 +30172,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.GranteeGrants(O, { headers: k, pathPrefix: this.url }); } }; - }, 8622: (D, e, p) => { + }, 8622: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.BankQuerier = void 0; - const w = p(1926); + const w = h(1926); e.BankQuerier = class { constructor(O) { this.url = O; @@ -30204,26 +30204,26 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.DenomsMetadata(O, { headers: k, pathPrefix: this.url }); } }; - }, 8526: function(D, e, p) { - var w = p(5108), O = this && this.__awaiter || function(c, u, s, r) { + }, 8526: function(D, e, h) { + var w = h(5108), O = this && this.__awaiter || function(c, u, s, r) { return new (s || (s = Promise))(function(n, o) { - function i(h) { + function i(p) { try { - d(r.next(h)); + d(r.next(p)); } catch (_) { o(_); } } - function f(h) { + function f(p) { try { - d(r.throw(h)); + d(r.throw(p)); } catch (_) { o(_); } } - function d(h) { + function d(p) { var _; - h.done ? n(h.value) : (_ = h.value, _ instanceof s ? _ : new s(function(b) { + p.done ? n(p.value) : (_ = p.value, _ instanceof s ? _ : new s(function(b) { b(_); })).then(i, f); } @@ -30231,7 +30231,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.ComputeQuerier = void 0; - const k = p(8972), S = p(3607), a = p(8136), t = p(5250); + const k = h(8972), S = h(3607), a = h(8136), t = h(5250); e.ComputeQuerier = class { constructor(c, u) { this.url = c, this.encryption = u, this.codeHashCache = /* @__PURE__ */ new Map(), this.encryption || (this.encryption = new a.EncryptionUtilsImpl(c)); @@ -30278,12 +30278,12 @@ Use Chrome, Firefox or Internet Explorer 11`); const f = /encrypted: (.+?): (?:instantiate|execute|query|reply to|migrate) contract failed/g.exec(i.message); if (f == null || (f == null ? void 0 : f.length) != 2) throw i; - const d = (0, k.fromBase64)(f[1]), h = yield this.encryption.decrypt(d, o); + const d = (0, k.fromBase64)(f[1]), p = yield this.encryption.decrypt(d, o); try { - return (0, k.fromUtf8)((0, k.fromBase64)((0, k.fromUtf8)(h))); + return (0, k.fromUtf8)((0, k.fromBase64)((0, k.fromUtf8)(p))); } catch (_) { if (_.message === "Invalid base64 string format") - return (0, k.fromUtf8)(h); + return (0, k.fromUtf8)(p); throw i; } } catch { @@ -30299,8 +30299,8 @@ Use Chrome, Firefox or Internet Explorer 11`); for (const n of s ?? []) { let o = n.msg; try { - const i = (0, k.fromBase64)(o), f = i.slice(0, 32), d = i.slice(64), h = yield this.encryption.decrypt(d, f); - o = (0, k.fromUtf8)(h).slice(64); + const i = (0, k.fromBase64)(o), f = i.slice(0, 32), d = i.slice(64), p = yield this.encryption.decrypt(d, f); + o = (0, k.fromUtf8)(p).slice(64); } catch { } r.push({ operation: n.operation, code_id: n.code_id, updated: n.updated, msg: o }); @@ -30309,9 +30309,9 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 2012: (D, e, p) => { + }, 2012: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.DistributionQuerier = void 0; - const w = p(406); + const w = h(406); e.DistributionQuerier = class { constructor(O) { this.url = O; @@ -30353,9 +30353,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.RestakingEntries(O, { headers: k, pathPrefix: this.url }); } }; - }, 5468: (D, e, p) => { + }, 5468: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.EmergencyButtonQuerier = void 0; - const w = p(71); + const w = h(71); e.EmergencyButtonQuerier = class { constructor(O) { this.url = O; @@ -30364,9 +30364,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.Params(O, { headers: k, pathPrefix: this.url }); } }; - }, 3394: (D, e, p) => { + }, 3394: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.EvidenceQuerier = void 0; - const w = p(6898); + const w = h(6898); e.EvidenceQuerier = class { constructor(O) { this.url = O; @@ -30378,9 +30378,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.AllEvidence(O, { headers: k, pathPrefix: this.url }); } }; - }, 380: (D, e, p) => { + }, 380: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.FeegrantQuerier = void 0; - const w = p(876); + const w = h(876); e.FeegrantQuerier = class { constructor(O) { this.url = O; @@ -30395,9 +30395,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.AllowancesByGranter(O, { headers: k, pathPrefix: this.url }); } }; - }, 3095: (D, e, p) => { + }, 3095: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.GovQuerier = void 0; - const w = p(7331); + const w = h(7331); e.GovQuerier = class { constructor(O) { this.url = O; @@ -30427,9 +30427,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.TallyResult(O, { headers: k, pathPrefix: this.url }); } }; - }, 7807: (D, e, p) => { + }, 7807: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcChannelQuerier = void 0; - const w = p(6409); + const w = h(6409); e.IbcChannelQuerier = class { constructor(O) { this.url = O; @@ -30474,9 +30474,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.NextSequenceReceive(O, { headers: k, pathPrefix: this.url }); } }; - }, 1654: (D, e, p) => { + }, 1654: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcClientQuerier = void 0; - const w = p(301); + const w = h(301); e.IbcClientQuerier = class { constructor(O) { this.url = O; @@ -30509,9 +30509,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.ConsensusStateHeights(O, { headers: k, pathPrefix: this.url }); } }; - }, 2840: (D, e, p) => { + }, 2840: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcConnectionQuerier = void 0; - const w = p(5258); + const w = h(5258); e.IbcConnectionQuerier = class { constructor(O) { this.url = O; @@ -30532,9 +30532,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.ConnectionConsensusState(O, { headers: k, pathPrefix: this.url }); } }; - }, 5570: (D, e, p) => { + }, 5570: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcFeeQuerier = void 0; - const w = p(187); + const w = h(187); e.IbcFeeQuerier = class { constructor(O) { this.url = O; @@ -30570,9 +30570,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.FeeEnabledChannel(O, { headers: k, pathPrefix: this.url }); } }; - }, 5037: (D, e, p) => { + }, 5037: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcInterchainAccountsControllerQuerier = void 0; - const w = p(2847); + const w = h(2847); e.IbcInterchainAccountsControllerQuerier = class { constructor(O) { this.url = O; @@ -30584,9 +30584,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.InterchainAccount(O, { headers: k, pathPrefix: this.url }); } }; - }, 3635: (D, e, p) => { + }, 3635: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcInterchainAccountsHostQuerier = void 0; - const w = p(1154); + const w = h(1154); e.IbcInterchainAccountsHostQuerier = class { constructor(O) { this.url = O; @@ -30595,9 +30595,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.Params(O, { headers: k, pathPrefix: this.url }); } }; - }, 9637: (D, e, p) => { + }, 9637: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcPacketForwardQuerier = void 0; - const w = p(1692); + const w = h(1692); e.IbcPacketForwardQuerier = class { constructor(O) { this.url = O; @@ -30606,9 +30606,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.Params(O, { headers: k, pathPrefix: this.url }); } }; - }, 1387: (D, e, p) => { + }, 1387: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.IbcTransferQuerier = void 0; - const w = p(4921); + const w = h(4921); e.IbcTransferQuerier = class { constructor(O) { this.url = O; @@ -30629,7 +30629,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.EscrowAddress(O, { headers: k, pathPrefix: this.url }); } }; - }, 9150: function(D, e, p) { + }, 9150: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(k, S, a, t) { t === void 0 && (t = a), Object.defineProperty(k, t, { enumerable: !0, get: function() { return S[a]; @@ -30640,10 +30640,10 @@ Use Chrome, Firefox or Internet Explorer 11`); for (var a in k) a === "default" || Object.prototype.hasOwnProperty.call(S, a) || w(S, k, a); }; - Object.defineProperty(e, "__esModule", { value: !0 }), O(p(2076), e), O(p(298), e), O(p(8622), e), O(p(8526), e), O(p(2012), e), O(p(3394), e), O(p(380), e), O(p(3095), e), O(p(7807), e), O(p(1654), e), O(p(2840), e), O(p(1387), e), O(p(5714), e), O(p(5932), e), O(p(8513), e), O(p(4482), e), O(p(7224), e), O(p(5562), e), O(p(7174), e), O(p(1743), e), O(p(6189), e), O(p(5468), e); - }, 5714: (D, e, p) => { + Object.defineProperty(e, "__esModule", { value: !0 }), O(h(2076), e), O(h(298), e), O(h(8622), e), O(h(8526), e), O(h(2012), e), O(h(3394), e), O(h(380), e), O(h(3095), e), O(h(7807), e), O(h(1654), e), O(h(2840), e), O(h(1387), e), O(h(5714), e), O(h(5932), e), O(h(8513), e), O(h(4482), e), O(h(7224), e), O(h(5562), e), O(h(7174), e), O(h(1743), e), O(h(6189), e), O(h(5468), e); + }, 5714: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.MauthQuerier = void 0; - const w = p(9743); + const w = h(9743); e.MauthQuerier = class { constructor(O) { this.url = O; @@ -30652,9 +30652,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.InterchainAccountFromAddress(O, { headers: k, pathPrefix: this.url }); } }; - }, 5932: (D, e, p) => { + }, 5932: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.MintQuerier = void 0; - const w = p(468); + const w = h(468); e.MintQuerier = class { constructor(O) { this.url = O; @@ -30669,9 +30669,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.AnnualProvisions(O, { headers: k, pathPrefix: this.url }); } }; - }, 8513: (D, e, p) => { + }, 8513: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.NodeQuerier = void 0; - const w = p(4210); + const w = h(4210); e.NodeQuerier = class { constructor(O) { this.url = O; @@ -30680,9 +30680,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Service.Config(O, { headers: k, pathPrefix: this.url }); } }; - }, 4482: (D, e, p) => { + }, 4482: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.ParamsQuerier = void 0; - const w = p(5440); + const w = h(5440); e.ParamsQuerier = class { constructor(O) { this.url = O; @@ -30691,9 +30691,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.Params(O, { headers: k, pathPrefix: this.url }); } }; - }, 7224: (D, e, p) => { + }, 7224: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.RegistrationQuerier = void 0; - const w = p(6402); + const w = h(6402); e.RegistrationQuerier = class { constructor(O) { this.url = O; @@ -30708,9 +30708,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.EncryptedSeed(O, { headers: k, pathPrefix: this.url }); } }; - }, 5562: (D, e, p) => { + }, 5562: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.SlashingQuerier = void 0; - const w = p(1575); + const w = h(1575); e.SlashingQuerier = class { constructor(O) { this.url = O; @@ -30725,9 +30725,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.SigningInfos(O, { headers: k, pathPrefix: this.url }); } }; - }, 7174: (D, e, p) => { + }, 7174: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.StakingQuerier = void 0; - const w = p(4066); + const w = h(4066); e.StakingQuerier = class { constructor(O) { this.url = O; @@ -30775,9 +30775,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.Params(O, { headers: k, pathPrefix: this.url }); } }; - }, 1743: (D, e, p) => { + }, 1743: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.TendermintQuerier = void 0; - const w = p(2390); + const w = h(2390); e.TendermintQuerier = class { constructor(O) { this.url = O; @@ -30801,9 +30801,9 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Service.GetValidatorSetByHeight(O, { headers: k, pathPrefix: this.url }); } }; - }, 6189: (D, e, p) => { + }, 6189: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.UpgradeQuerier = void 0; - const w = p(2265); + const w = h(2265); e.UpgradeQuerier = class { constructor(O) { this.url = O; @@ -30821,7 +30821,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return w.Query.ModuleVersions(O, { headers: k, pathPrefix: this.url }); } }; - }, 1972: function(D, e, p) { + }, 1972: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(K, X, Q, Z) { Z === void 0 && (Z = Q), Object.defineProperty(K, Z, { enumerable: !0, get: function() { return X[Q]; @@ -30866,10 +30866,10 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; if (Object.defineProperty(e, "__esModule", { value: !0 }), e.TxResultCode = e.gasToFee = e.SecretNetworkClient = e.ReadonlySigner = e.BroadcastMode = void 0, typeof window > "u" || window.fetch === void 0) { - const K = p(4098); - p.g.fetch = K; + const K = h(4098); + h.g.fetch = K; } - const a = p(8972), t = p(3061), c = p(3607), u = p(8136), s = p(3117), r = p(1610), n = p(4447), o = p(7350), i = p(8471), f = p(2412), d = p(6519), h = p(9849), _ = p(5818), b = p(6010), I = p(6994), l = p(4191), j = p(2896), M = p(2076), N = p(298), C = p(8622), x = p(8526), P = p(2012), v = p(5468), m = p(3394), E = p(380), B = p(3095), T = p(7807), q = p(1654), te = p(2840), re = p(5570), ie = p(5037), J = p(3635), ee = p(9637), G = p(1387), $ = p(5932), W = p(4482), Y = p(7224), F = p(5562), ae = p(7174), he = p(1743), le = p(6189), ce = p(3745), ve = p(6049), de = p(8772), pe = p(5498), ye = p(5360); + const a = h(8972), t = h(3061), c = h(3607), u = h(8136), s = h(3117), r = h(1610), n = h(4447), o = h(7350), i = h(8471), f = h(2412), d = h(6519), p = h(9849), _ = h(5818), b = h(6010), I = h(6994), l = h(4191), j = h(2896), M = h(2076), N = h(298), C = h(8622), x = h(8526), P = h(2012), v = h(5468), m = h(3394), E = h(380), B = h(3095), T = h(7807), q = h(1654), te = h(2840), re = h(5570), ie = h(5037), J = h(3635), ee = h(9637), G = h(1387), $ = h(5932), W = h(4482), Y = h(7224), F = h(5562), ae = h(7174), he = h(1743), le = h(6189), ce = h(3745), ve = h(6049), de = h(8772), pe = h(5498), ye = h(5360); var V, y; (function(K) { K.Block = "Block", K.Sync = "Sync", K.Async = "Async"; @@ -30890,8 +30890,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function z(K, X, Q, Z, se) { return S(this, void 0, void 0, function* () { - se || (se = (yield Promise.resolve().then(() => k(p(8502)))).SignMode.SIGN_MODE_DIRECT); - const ue = { signer_infos: L(K, se), fee: { amount: [...X], gas_limit: String(Q), granter: Z ?? "", payer: "" } }, { AuthInfo: fe } = yield Promise.resolve().then(() => k(p(6994))); + se || (se = (yield Promise.resolve().then(() => k(h(8502)))).SignMode.SIGN_MODE_DIRECT); + const ue = { signer_infos: L(K, se), fee: { amount: [...X], gas_limit: String(Q), granter: Z ?? "", payer: "" } }, { AuthInfo: fe } = yield Promise.resolve().then(() => k(h(6994))); return fe.encode(fe.fromPartial(ue)).finish(); }); } @@ -30900,17 +30900,17 @@ Use Chrome, Firefox or Internet Explorer 11`); } function H(K) { return S(this, void 0, void 0, function* () { - const { Any: X } = yield Promise.resolve().then(() => k(p(4191))); + const { Any: X } = yield Promise.resolve().then(() => k(h(4191))); if (function(Q) { return Q.type === "tendermint/PubKeySecp256k1"; }(K)) { - const { PubKey: Q } = yield Promise.resolve().then(() => k(p(6010))), Z = Q.fromPartial({ key: (0, a.fromBase64)(K.value) }); + const { PubKey: Q } = yield Promise.resolve().then(() => k(h(6010))), Z = Q.fromPartial({ key: (0, a.fromBase64)(K.value) }); return X.fromPartial({ type_url: "/cosmos.crypto.secp256k1.PubKey", value: Uint8Array.from(Q.encode(Z).finish()) }); } if (function(Q) { return Q.type === "tendermint/PubKeyMultisigThreshold"; }(K)) { - const { LegacyAminoPubKey: Q } = yield Promise.resolve().then(() => k(p(5818))), Z = Q.fromPartial({ threshold: Number(K.value.threshold), public_keys: K.value.pubkeys.map(H) }); + const { LegacyAminoPubKey: Q } = yield Promise.resolve().then(() => k(h(5818))), Z = Q.fromPartial({ threshold: Number(K.value.threshold), public_keys: K.value.pubkeys.map(H) }); return X.fromPartial({ type_url: "/cosmos.crypto.multisig.LegacyAminoPubKey", value: Uint8Array.from(Q.encode(Z).finish()) }); } throw new Error(`Pubkey type ${K.type} not recognized`); @@ -31035,7 +31035,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } } catch { } - const xe = h.TxMsgData.decode((0, a.fromHex)(K.data)), Se = new Array(xe.data.length); + const xe = p.TxMsgData.decode((0, a.fromHex)(K.data)), Se = new Array(xe.data.length); for (let ke = 0; ke < xe.data.length; ke++) { Se[ke] = xe.data[ke].data; const Re = me[ke]; @@ -31073,7 +31073,7 @@ Use Chrome, Firefox or Internet Explorer 11`); let Se; if (se || Z != V.Block || (Z = V.Sync), Z === V.Block) { se = !0; - const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(p(6519))); + const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(h(6519))); let Re = !1; try { ({ tx_response: Se } = yield d.Service.BroadcastTx({ txBytes: (0, a.toBase64)(K), mode: ke.BROADCAST_MODE_BLOCK }, { pathPrefix: this.url })); @@ -31083,7 +31083,7 @@ Use Chrome, Firefox or Internet Explorer 11`); Re = !0; } if (!Re) { - Se.tx = (yield Promise.resolve().then(() => k(p(6994)))).Tx.toJSON((yield Promise.resolve().then(() => k(p(6994)))).Tx.decode(K)); + Se.tx = (yield Promise.resolve().then(() => k(h(6994)))).Tx.toJSON((yield Promise.resolve().then(() => k(h(6994)))).Tx.decode(K)); const Oe = Se.tx, Pe = (Me) => { if (Me.type_url === "/cosmos.crypto.multisig.LegacyAminoPubKey") { const Ae = _.LegacyAminoPubKey.decode((0, a.fromBase64)(Me.value)); @@ -31102,14 +31102,14 @@ Use Chrome, Firefox or Internet Explorer 11`); return Se.tx = Object.assign({ "@type": "/cosmos.tx.v1beta1.Tx" }, ne(Se.tx)), yield this.decodeTxResponse(Se, ue); } } else if (Z === V.Sync) { - const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(p(6519))); + const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(h(6519))); if ({ tx_response: Se } = yield d.Service.BroadcastTx({ txBytes: (0, a.toBase64)(K), mode: ke.BROADCAST_MODE_SYNC }, { pathPrefix: this.url }), (Se == null ? void 0 : Se.code) !== 0) throw new Error(`Broadcasting transaction failed with code ${Se == null ? void 0 : Se.code} (codespace: ${Se == null ? void 0 : Se.codespace}). Log: ${Se == null ? void 0 : Se.raw_log}`); } else { if (Z !== V.Async) throw new Error(`Unknown broadcast mode "${String(Z)}", must be either "${String(V.Block)}", "${String(V.Sync)}" or "${String(V.Async)}".`); { - const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(p(6519))); + const { BroadcastMode: ke } = yield Promise.resolve().then(() => k(h(6519))); d.Service.BroadcastTx({ txBytes: (0, a.toBase64)(K), mode: ke.BROADCAST_MODE_ASYNC }, { pathPrefix: this.url }); } } @@ -31192,7 +31192,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S(this, void 0, void 0, function* () { if ((0, ye.isDirectSigner)(this.wallet)) throw new Error("Wrong signer type! Expected AminoSigner or AminoEip191Signer."); - let ge = (yield Promise.resolve().then(() => k(p(8502)))).SignMode.SIGN_MODE_LEGACY_AMINO_JSON; + let ge = (yield Promise.resolve().then(() => k(h(8502)))).SignMode.SIGN_MODE_LEGACY_AMINO_JSON; typeof this.wallet.getSignMode == "function" && (ge = yield this.wallet.getSignMode()); const be = function(Pe, Me, Ae, Ne, Te, Ce) { return { chain_id: Ae, account_number: String(Te), sequence: String(Ce), fee: Me, msgs: Pe, memo: Ne || "" }; @@ -31241,21 +31241,21 @@ Use Chrome, Firefox or Internet Explorer 11`); }, e.gasToFee = U, function(K) { K[K.Success = 0] = "Success", K[K.ErrInternal = 1] = "ErrInternal", K[K.ErrTxDecode = 2] = "ErrTxDecode", K[K.ErrInvalidSequence = 3] = "ErrInvalidSequence", K[K.ErrUnauthorized = 4] = "ErrUnauthorized", K[K.ErrInsufficientFunds = 5] = "ErrInsufficientFunds", K[K.ErrUnknownRequest = 6] = "ErrUnknownRequest", K[K.ErrInvalidAddress = 7] = "ErrInvalidAddress", K[K.ErrInvalidPubKey = 8] = "ErrInvalidPubKey", K[K.ErrUnknownAddress = 9] = "ErrUnknownAddress", K[K.ErrInvalidCoins = 10] = "ErrInvalidCoins", K[K.ErrOutOfGas = 11] = "ErrOutOfGas", K[K.ErrMemoTooLarge = 12] = "ErrMemoTooLarge", K[K.ErrInsufficientFee = 13] = "ErrInsufficientFee", K[K.ErrTooManySignatures = 14] = "ErrTooManySignatures", K[K.ErrNoSignatures = 15] = "ErrNoSignatures", K[K.ErrJSONMarshal = 16] = "ErrJSONMarshal", K[K.ErrJSONUnmarshal = 17] = "ErrJSONUnmarshal", K[K.ErrInvalidRequest = 18] = "ErrInvalidRequest", K[K.ErrTxInMempoolCache = 19] = "ErrTxInMempoolCache", K[K.ErrMempoolIsFull = 20] = "ErrMempoolIsFull", K[K.ErrTxTooLarge = 21] = "ErrTxTooLarge", K[K.ErrKeyNotFound = 22] = "ErrKeyNotFound", K[K.ErrWrongPassword = 23] = "ErrWrongPassword", K[K.ErrorInvalidSigner = 24] = "ErrorInvalidSigner", K[K.ErrorInvalidGasAdjustment = 25] = "ErrorInvalidGasAdjustment", K[K.ErrInvalidHeight = 26] = "ErrInvalidHeight", K[K.ErrInvalidVersion = 27] = "ErrInvalidVersion", K[K.ErrInvalidChainID = 28] = "ErrInvalidChainID", K[K.ErrInvalidType = 29] = "ErrInvalidType", K[K.ErrTxTimeoutHeight = 30] = "ErrTxTimeoutHeight", K[K.ErrUnknownExtensionOptions = 31] = "ErrUnknownExtensionOptions", K[K.ErrWrongSequence = 32] = "ErrWrongSequence", K[K.ErrPackAny = 33] = "ErrPackAny", K[K.ErrUnpackAny = 34] = "ErrUnpackAny", K[K.ErrLogic = 35] = "ErrLogic", K[K.ErrConflict = 36] = "ErrConflict", K[K.ErrNotSupported = 37] = "ErrNotSupported", K[K.ErrNotFound = 38] = "ErrNotFound", K[K.ErrIO = 39] = "ErrIO", K[K.ErrAppConfig = 40] = "ErrAppConfig", K[K.ErrPanic = 111222] = "ErrPanic"; }(y = e.TxResultCode || (e.TxResultCode = {})); - }, 2132: function(D, e, p) { + }, 2132: function(D, e, h) { var w = this && this.__awaiter || function(n, o, i, f) { - return new (i || (i = Promise))(function(d, h) { + return new (i || (i = Promise))(function(d, p) { function _(l) { try { I(f.next(l)); } catch (j) { - h(j); + p(j); } } function b(l) { try { I(f.throw(l)); } catch (j) { - h(j); + p(j); } } function I(l) { @@ -31268,7 +31268,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgRevoke = e.MsgExec = e.MsgGrant = e.StakeAuthorizationType = e.MsgGrantAuthorization = void 0; - const O = p(9094), k = p(5635), S = p(5939), a = p(837); + const O = h(9094), k = h(5635), S = h(5939), a = h(837); function t(n) { return "msg" in n; } @@ -31291,8 +31291,8 @@ Use Chrome, Firefox or Internet Explorer 11`); if (c(this.params.authorization)) i = { authorization: { type_url: "/cosmos.bank.v1beta1.SendAuthorization", value: S.SendAuthorization.encode(this.params.authorization).finish() }, expiration: f }; else if (u(this.params.authorization)) { - let h, _; - ((n = this.params.authorization.allow_list) === null || n === void 0 ? void 0 : n.length) > 0 ? h = { address: this.params.authorization.allow_list } : ((o = this.params.authorization.deny_list) === null || o === void 0 ? void 0 : o.length) > 0 && (_ = { address: this.params.authorization.deny_list }), i = { authorization: { type_url: "/cosmos.staking.v1beta1.StakeAuthorization", value: a.StakeAuthorization.encode({ max_tokens: this.params.authorization.max_tokens, allow_list: h, deny_list: _, authorization_type: Number(this.params.authorization.authorization_type) }).finish() }, expiration: f }; + let p, _; + ((n = this.params.authorization.allow_list) === null || n === void 0 ? void 0 : n.length) > 0 ? p = { address: this.params.authorization.allow_list } : ((o = this.params.authorization.deny_list) === null || o === void 0 ? void 0 : o.length) > 0 && (_ = { address: this.params.authorization.deny_list }), i = { authorization: { type_url: "/cosmos.staking.v1beta1.StakeAuthorization", value: a.StakeAuthorization.encode({ max_tokens: this.params.authorization.max_tokens, allow_list: p, deny_list: _, authorization_type: Number(this.params.authorization.authorization_type) }).finish() }, expiration: f }; } else { if (!t(this.params.authorization)) throw new Error("Unknown authorization type."); @@ -31368,7 +31368,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 587: function(D, e, p) { + }, 587: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -31405,8 +31405,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -31420,7 +31420,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S(this, void 0, void 0, function* () { const a = { from_address: this.from_address, to_address: this.to_address, amount: this.amount }; return { type_url: "/cosmos.bank.v1beta1.MsgSend", value: a, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(810)))).MsgSend.encode(a).finish(); + return (yield Promise.resolve().then(() => k(h(810)))).MsgSend.encode(a).finish(); }) }; }); } @@ -31437,7 +31437,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S(this, void 0, void 0, function* () { const a = { inputs: this.inputs, outputs: this.outputs }; return { type_url: "/cosmos.bank.v1beta1.MsgMultiSend", value: a, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(810)))).MsgMultiSend.encode(a).finish(); + return (yield Promise.resolve().then(() => k(h(810)))).MsgMultiSend.encode(a).finish(); }) }; }); } @@ -31447,8 +31447,8 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 7278: function(D, e, p) { - var w = p(5108), O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { + }, 7278: function(D, e, h) { + var w = h(5108), O = this && this.__createBinding || (Object.create ? function(s, r, n, o) { o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { return r[n]; } }); @@ -31475,7 +31475,7 @@ Use Chrome, Firefox or Internet Explorer 11`); f(I); } } - function h(b) { + function p(b) { try { _(o.throw(b)); } catch (I) { @@ -31486,13 +31486,13 @@ Use Chrome, Firefox or Internet Explorer 11`); var I; b.done ? i(b.value) : (I = b.value, I instanceof n ? I : new n(function(l) { l(I); - })).then(d, h); + })).then(d, p); } _((o = o.apply(s, r || [])).next()); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgClearAdmin = e.MsgUpdateAdmin = e.MsgMigrateContract = e.MsgStoreCode = e.MsgExecuteContract = e.MsgInstantiateContract = e.getMissingCodeHashWarning = void 0; - const t = p(8972), c = p(8593); + const t = h(8972), c = h(8593); function u(s) { return `${(/* @__PURE__ */ new Date()).toISOString()} WARNING: ${s} was used without the "code_hash" parameter. This is discouraged and will result in much slower execution times for your app.`; } @@ -31505,7 +31505,7 @@ Use Chrome, Firefox or Internet Explorer 11`); this.warnCodeHash && w.warn(u("MsgInstantiateContract")), this.initMsgEncrypted || (this.initMsgEncrypted = yield s.encrypt(this.codeHash, this.initMsg)); const r = { sender: (0, c.addressToBytes)(this.sender), code_id: this.codeId, label: this.label, init_msg: this.initMsgEncrypted, init_funds: this.initFunds, callback_sig: new Uint8Array(0), callback_code_hash: "", admin: this.admin }; return { type_url: "/secret.compute.v1beta1.MsgInstantiateContract", value: r, encode: () => a(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => S(p(2896)))).MsgInstantiateContract.encode(r).finish(); + return (yield Promise.resolve().then(() => S(h(2896)))).MsgInstantiateContract.encode(r).finish(); }) }; }); } @@ -31523,7 +31523,7 @@ Use Chrome, Firefox or Internet Explorer 11`); this.warnCodeHash && w.warn(u("MsgExecuteContract")), this.msgEncrypted || (this.msgEncrypted = yield s.encrypt(this.codeHash, this.msg)); const r = { sender: (0, c.addressToBytes)(this.sender), contract: (0, c.addressToBytes)(this.contractAddress), msg: this.msgEncrypted, sent_funds: this.sentFunds, callback_sig: new Uint8Array(), callback_code_hash: "" }; return { type_url: "/secret.compute.v1beta1.MsgExecuteContract", value: r, encode: () => a(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => S(p(2896)))).MsgExecuteContract.encode(r).finish(); + return (yield Promise.resolve().then(() => S(h(2896)))).MsgExecuteContract.encode(r).finish(); }) }; }); } @@ -31539,7 +31539,7 @@ Use Chrome, Firefox or Internet Explorer 11`); gzipWasm() { return a(this, void 0, void 0, function* () { if (!(0, c.is_gzip)(this.wasmByteCode)) { - const s = yield Promise.resolve().then(() => S(p(9591))); + const s = yield Promise.resolve().then(() => S(h(9591))); this.wasmByteCode = s.gzip(this.wasmByteCode, { level: 9 }); } }); @@ -31549,7 +31549,7 @@ Use Chrome, Firefox or Internet Explorer 11`); yield this.gzipWasm(); const s = { sender: (0, c.addressToBytes)(this.sender), wasm_byte_code: this.wasmByteCode, source: this.source, builder: this.builder }; return { type_url: "/secret.compute.v1beta1.MsgStoreCode", value: s, encode: () => a(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => S(p(2896)))).MsgStoreCode.encode(s).finish(); + return (yield Promise.resolve().then(() => S(h(2896)))).MsgStoreCode.encode(s).finish(); }) }; }); } @@ -31567,7 +31567,7 @@ Use Chrome, Firefox or Internet Explorer 11`); this.warnCodeHash && w.warn(u("MsgMigrateContract")), this.msgEncrypted || (this.msgEncrypted = yield s.encrypt(this.codeHash, this.msg)); const r = { sender: this.sender, contract: this.contractAddress, msg: this.msgEncrypted, code_id: this.codeId, callback_sig: new Uint8Array(), callback_code_hash: "" }; return { type_url: "/secret.compute.v1beta1.MsgMigrateContract", value: r, encode: () => a(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => S(p(2896)))).MsgMigrateContract.encode(r).finish(); + return (yield Promise.resolve().then(() => S(h(2896)))).MsgMigrateContract.encode(r).finish(); }) }; }); } @@ -31583,7 +31583,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return a(this, void 0, void 0, function* () { return { type_url: "/secret.compute.v1beta1.MsgUpdateAdmin", value: this.params, encode: () => a(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => S(p(2896)))).MsgUpdateAdmin.encode({ sender: this.params.sender, new_admin: this.params.new_admin, contract: this.params.contract_address, callback_sig: new Uint8Array() }).finish(); + return (yield Promise.resolve().then(() => S(h(2896)))).MsgUpdateAdmin.encode({ sender: this.params.sender, new_admin: this.params.new_admin, contract: this.params.contract_address, callback_sig: new Uint8Array() }).finish(); }) }; }); } @@ -31599,7 +31599,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return a(this, void 0, void 0, function* () { return { type_url: "/secret.compute.v1beta1.MsgClearAdmin", value: this.params, encode: () => a(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => S(p(2896)))).MsgClearAdmin.encode({ sender: this.params.sender, contract: this.params.contract_address, callback_sig: new Uint8Array() }).finish(); + return (yield Promise.resolve().then(() => S(h(2896)))).MsgClearAdmin.encode({ sender: this.params.sender, contract: this.params.contract_address, callback_sig: new Uint8Array() }).finish(); }) }; }); } @@ -31609,7 +31609,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 7949: function(D, e, p) { + }, 7949: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -31646,8 +31646,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -31660,7 +31660,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.crisis.v1beta1.MsgVerifyInvariant", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(4489)))).MsgVerifyInvariant.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(4489)))).MsgVerifyInvariant.encode(this.params).finish(); }) }; }); } @@ -31670,7 +31670,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 1890: function(D, e, p) { + }, 1890: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(c, u, s, r) { r === void 0 && (r = s), Object.defineProperty(c, r, { enumerable: !0, get: function() { return u[s]; @@ -31691,23 +31691,23 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(u, c), u; }, S = this && this.__awaiter || function(c, u, s, r) { return new (s || (s = Promise))(function(n, o) { - function i(h) { + function i(p) { try { - d(r.next(h)); + d(r.next(p)); } catch (_) { o(_); } } - function f(h) { + function f(p) { try { - d(r.throw(h)); + d(r.throw(p)); } catch (_) { o(_); } } - function d(h) { + function d(p) { var _; - h.done ? n(h.value) : (_ = h.value, _ instanceof s ? _ : new s(function(b) { + p.done ? n(p.value) : (_ = p.value, _ instanceof s ? _ : new s(function(b) { b(_); })).then(i, f); } @@ -31722,7 +31722,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(4301)))).MsgSetWithdrawAddress.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(4301)))).MsgSetWithdrawAddress.encode(this.params).finish(); }) }; }); } @@ -31740,7 +31740,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(4301)))).MsgWithdrawDelegatorReward.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(4301)))).MsgWithdrawDelegatorReward.encode(this.params).finish(); }) }; }); } @@ -31757,7 +31757,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(4301)))).MsgWithdrawValidatorCommission.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(4301)))).MsgWithdrawValidatorCommission.encode(this.params).finish(); }) }; }); } @@ -31773,7 +31773,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.distribution.v1beta1.MsgFundCommunityPool", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(4301)))).MsgFundCommunityPool.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(4301)))).MsgFundCommunityPool.encode(this.params).finish(); }) }; }); } @@ -31789,7 +31789,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.distribution.v1beta1.MsgSetAutoRestake", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(4301)))).MsgSetAutoRestake.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(4301)))).MsgSetAutoRestake.encode(this.params).finish(); }) }; }); } @@ -31799,7 +31799,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 6049: function(D, e, p) { + }, 6049: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -31836,8 +31836,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -31850,7 +31850,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(4657)))).MsgToggleIbcSwitch.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(4657)))).MsgToggleIbcSwitch.encode(this.params).finish(); }) }; }); } @@ -31861,7 +31861,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } }; }, 3651: function(D, e) { - var p = this && this.__awaiter || function(w, O, k, S) { + var h = this && this.__awaiter || function(w, O, k, S) { return new (k || (k = Promise))(function(a, t) { function c(r) { try { @@ -31891,36 +31891,36 @@ Use Chrome, Firefox or Internet Explorer 11`); this.params = w; } toProto() { - return p(this, void 0, void 0, function* () { + return h(this, void 0, void 0, function* () { throw new Error("MsgSubmitEvidence not implemented."); }); } toAmino() { - return p(this, void 0, void 0, function* () { + return h(this, void 0, void 0, function* () { throw new Error("MsgSubmitEvidence not implemented."); }); } }; - }, 8434: function(D, e, p) { + }, 8434: function(D, e, h) { var w = this && this.__awaiter || function(c, u, s, r) { return new (s || (s = Promise))(function(n, o) { - function i(h) { + function i(p) { try { - d(r.next(h)); + d(r.next(p)); } catch (_) { o(_); } } - function f(h) { + function f(p) { try { - d(r.throw(h)); + d(r.throw(p)); } catch (_) { o(_); } } - function d(h) { + function d(p) { var _; - h.done ? n(h.value) : (_ = h.value, _ instanceof s ? _ : new s(function(b) { + p.done ? n(p.value) : (_ = p.value, _ instanceof s ? _ : new s(function(b) { b(_); })).then(i, f); } @@ -31928,7 +31928,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgRevokeAllowance = e.MsgGrantAllowance = void 0; - const O = p(4932), k = p(6513); + const O = h(4932), k = h(6513); function S(c) { return "spend_limit" in c; } @@ -32011,7 +32011,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 4509: function(D, e, p) { + }, 4509: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(o, i, f, d) { d === void 0 && (d = f), Object.defineProperty(o, d, { enumerable: !0, get: function() { return i[f]; @@ -32031,7 +32031,7 @@ Use Chrome, Firefox or Internet Explorer 11`); f !== "default" && Object.prototype.hasOwnProperty.call(o, f) && w(i, o, f); return O(i, o), i; }, S = this && this.__awaiter || function(o, i, f, d) { - return new (f || (f = Promise))(function(h, _) { + return new (f || (f = Promise))(function(p, _) { function b(j) { try { l(d.next(j)); @@ -32048,7 +32048,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } function l(j) { var M; - j.done ? h(j.value) : (M = j.value, M instanceof f ? M : new f(function(N) { + j.done ? p(j.value) : (M = j.value, M instanceof f ? M : new f(function(N) { N(M); })).then(b, I); } @@ -32058,7 +32058,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return o && o.__esModule ? o : { default: o }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgDeposit = e.MsgVoteWeighted = e.MsgVote = e.MsgSubmitProposal = e.ProposalType = e.ProposalStatus = e.VoteOption = void 0; - const t = a(p(4431)), c = p(4191); + const t = a(h(4431)), c = h(4191); var u, s, r; (r = e.VoteOption || (e.VoteOption = {}))[r.VOTE_OPTION_UNSPECIFIED = 0] = "VOTE_OPTION_UNSPECIFIED", r[r.VOTE_OPTION_YES = 1] = "VOTE_OPTION_YES", r[r.VOTE_OPTION_ABSTAIN = 2] = "VOTE_OPTION_ABSTAIN", r[r.VOTE_OPTION_NO = 3] = "VOTE_OPTION_NO", r[r.VOTE_OPTION_NO_WITH_VETO = 4] = "VOTE_OPTION_NO_WITH_VETO", (s = e.ProposalStatus || (e.ProposalStatus = {}))[s.PROPOSAL_STATUS_UNSPECIFIED = 0] = "PROPOSAL_STATUS_UNSPECIFIED", s[s.PROPOSAL_STATUS_DEPOSIT_PERIOD = 1] = "PROPOSAL_STATUS_DEPOSIT_PERIOD", s[s.PROPOSAL_STATUS_VOTING_PERIOD = 2] = "PROPOSAL_STATUS_VOTING_PERIOD", s[s.PROPOSAL_STATUS_PASSED = 3] = "PROPOSAL_STATUS_PASSED", s[s.PROPOSAL_STATUS_REJECTED = 4] = "PROPOSAL_STATUS_REJECTED", s[s.PROPOSAL_STATUS_FAILED = 5] = "PROPOSAL_STATUS_FAILED", s[s.UNRECOGNIZED = -1] = "UNRECOGNIZED", function(o) { o.TextProposal = "TextProposal", o.CommunityPoolSpendProposal = "CommunityPoolSpendProposal", o.ParameterChangeProposal = "ParameterChangeProposal", o.ClientUpdateProposal = "ClientUpdateProposal", o.UpgradeProposal = "UpgradeProposal", o.SoftwareUpgradeProposal = "SoftwareUpgradeProposal", o.CancelSoftwareUpgradeProposal = "CancelSoftwareUpgradeProposal"; @@ -32074,31 +32074,31 @@ Use Chrome, Firefox or Internet Explorer 11`); let i; switch (this.params.type) { case u.TextProposal: - const { TextProposal: d } = yield Promise.resolve().then(() => k(p(9074))); + const { TextProposal: d } = yield Promise.resolve().then(() => k(h(9074))); i = c.Any.fromPartial({ type_url: "/cosmos.gov.v1beta1.TextProposal", value: d.encode(d.fromPartial(this.params.content)).finish() }); break; case u.CommunityPoolSpendProposal: - const { CommunityPoolSpendProposal: h } = yield Promise.resolve().then(() => k(p(8866))); - i = c.Any.fromPartial({ type_url: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: h.encode(h.fromPartial(this.params.content)).finish() }); + const { CommunityPoolSpendProposal: p } = yield Promise.resolve().then(() => k(h(8866))); + i = c.Any.fromPartial({ type_url: "/cosmos.distribution.v1beta1.CommunityPoolSpendProposal", value: p.encode(p.fromPartial(this.params.content)).finish() }); break; case u.ParameterChangeProposal: - const { ParameterChangeProposal: _ } = yield Promise.resolve().then(() => k(p(9913))); + const { ParameterChangeProposal: _ } = yield Promise.resolve().then(() => k(h(9913))); i = c.Any.fromPartial({ type_url: "/cosmos.params.v1beta1.ParameterChangeProposal", value: _.encode(_.fromPartial(this.params.content)).finish() }); break; case u.ClientUpdateProposal: - const { ClientUpdateProposal: b } = yield Promise.resolve().then(() => k(p(5650))); + const { ClientUpdateProposal: b } = yield Promise.resolve().then(() => k(h(5650))); i = c.Any.fromPartial({ type_url: "/ibc.core.client.v1.ClientUpdateProposal", value: b.encode(b.fromPartial(this.params.content)).finish() }); break; case u.UpgradeProposal: - const { UpgradeProposal: I } = yield Promise.resolve().then(() => k(p(5650))); + const { UpgradeProposal: I } = yield Promise.resolve().then(() => k(h(5650))); i = c.Any.fromPartial({ type_url: "/ibc.core.client.v1.UpgradeProposal", value: I.encode(I.fromPartial(this.params.content)).finish() }); break; case u.SoftwareUpgradeProposal: - const { SoftwareUpgradeProposal: l } = yield Promise.resolve().then(() => k(p(8310))); + const { SoftwareUpgradeProposal: l } = yield Promise.resolve().then(() => k(h(8310))); i = c.Any.fromPartial({ type_url: "/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal", value: l.encode(l.fromPartial(this.params.content)).finish() }); break; case u.CancelSoftwareUpgradeProposal: - const { CancelSoftwareUpgradeProposal: j } = yield Promise.resolve().then(() => k(p(8310))); + const { CancelSoftwareUpgradeProposal: j } = yield Promise.resolve().then(() => k(h(8310))); i = c.Any.fromPartial({ type_url: "/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal", value: j.encode(j.fromPartial(this.params.content)).finish() }); break; default: @@ -32106,7 +32106,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } const f = { content: i, initial_deposit: this.params.initial_deposit, proposer: this.params.proposer, is_expedited: (o = this.params.is_expedited) !== null && o !== void 0 && o }; return { type_url: "/cosmos.gov.v1beta1.MsgSubmitProposal", value: f, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(88)))).MsgSubmitProposal.encode(f).finish(); + return (yield Promise.resolve().then(() => k(h(88)))).MsgSubmitProposal.encode(f).finish(); }) }; }); } @@ -32126,7 +32126,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.gov.v1beta1.MsgVote", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(88)))).MsgVote.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(88)))).MsgVote.encode(this.params).finish(); }) }; }); } @@ -32143,7 +32143,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S(this, void 0, void 0, function* () { const o = { voter: this.params.voter, proposal_id: this.params.proposal_id, options: this.params.options.map((i) => ({ option: i.option, weight: new t.default(i.weight).toFixed(18).replace(/0\.0*/, "") })) }; return { type_url: "/cosmos.gov.v1beta1.MsgVoteWeighted", value: o, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(88)))).MsgVoteWeighted.encode(o).finish(); + return (yield Promise.resolve().then(() => k(h(88)))).MsgVoteWeighted.encode(o).finish(); }) }; }); } @@ -32159,7 +32159,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.gov.v1beta1.MsgDeposit", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(88)))).MsgDeposit.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(88)))).MsgDeposit.encode(this.params).finish(); }) }; }); } @@ -32169,7 +32169,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 6130: function(D, e, p) { + }, 6130: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -32206,8 +32206,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -32220,7 +32220,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgRecvPacket", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgRecvPacket.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgRecvPacket.encode(this.msg).finish(); }) }; }); } @@ -32236,7 +32236,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgTimeout", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgTimeout.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgTimeout.encode(this.msg).finish(); }) }; }); } @@ -32252,7 +32252,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgTimeoutOnClose", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgTimeoutOnClose.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgTimeoutOnClose.encode(this.msg).finish(); }) }; }); } @@ -32268,7 +32268,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgChannelOpenInit", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgChannelOpenInit.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgChannelOpenInit.encode(this.msg).finish(); }) }; }); } @@ -32284,7 +32284,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgAcknowledgement", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgAcknowledgement.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgAcknowledgement.encode(this.msg).finish(); }) }; }); } @@ -32300,7 +32300,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgChannelOpenTry", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgChannelOpenTry.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgChannelOpenTry.encode(this.msg).finish(); }) }; }); } @@ -32316,7 +32316,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgChannelOpenAck", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgChannelOpenAck.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgChannelOpenAck.encode(this.msg).finish(); }) }; }); } @@ -32332,7 +32332,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgChannelOpenConfirm", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgChannelOpenConfirm.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgChannelOpenConfirm.encode(this.msg).finish(); }) }; }); } @@ -32348,7 +32348,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgChannelCloseInit", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgChannelCloseInit.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgChannelCloseInit.encode(this.msg).finish(); }) }; }); } @@ -32364,7 +32364,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.channel.v1.MsgChannelCloseConfirm", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7579)))).MsgChannelCloseConfirm.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(7579)))).MsgChannelCloseConfirm.encode(this.msg).finish(); }) }; }); } @@ -32374,7 +32374,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 574: function(D, e, p) { + }, 574: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -32411,8 +32411,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -32425,7 +32425,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.client.v1.MsgUpdateClient", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(322)))).MsgUpdateClient.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(322)))).MsgUpdateClient.encode(this.msg).finish(); }) }; }); } @@ -32441,7 +32441,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.client.v1.MsgUpgradeClient", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(322)))).MsgUpgradeClient.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(322)))).MsgUpgradeClient.encode(this.msg).finish(); }) }; }); } @@ -32457,7 +32457,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.client.v1.MsgSubmitMisbehaviour", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(322)))).MsgSubmitMisbehaviour.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(322)))).MsgSubmitMisbehaviour.encode(this.msg).finish(); }) }; }); } @@ -32473,7 +32473,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.client.v1.MsgCreateClient", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(322)))).MsgCreateClient.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(322)))).MsgCreateClient.encode(this.msg).finish(); }) }; }); } @@ -32483,7 +32483,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 6187: function(D, e, p) { + }, 6187: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -32520,8 +32520,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -32534,7 +32534,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenInit", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(8344)))).MsgConnectionOpenInit.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(8344)))).MsgConnectionOpenInit.encode(this.msg).finish(); }) }; }); } @@ -32550,7 +32550,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenTry", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(8344)))).MsgConnectionOpenTry.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(8344)))).MsgConnectionOpenTry.encode(this.msg).finish(); }) }; }); } @@ -32566,7 +32566,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenAck", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(8344)))).MsgConnectionOpenAck.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(8344)))).MsgConnectionOpenAck.encode(this.msg).finish(); }) }; }); } @@ -32582,7 +32582,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/ibc.core.connection.v1.MsgConnectionOpenConfirm", value: this.msg, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(8344)))).MsgConnectionOpenConfirm.encode(this.msg).finish(); + return (yield Promise.resolve().then(() => k(h(8344)))).MsgConnectionOpenConfirm.encode(this.msg).finish(); }) }; }); } @@ -32592,7 +32592,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 7989: function(D, e, p) { + }, 7989: function(D, e, h) { var w = this && this.__awaiter || function(k, S, a, t) { return new (a || (a = Promise))(function(c, u) { function s(o) { @@ -32619,7 +32619,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgPayPacketFeeAsync = e.MsgPayPacketFee = e.MsgRegisterCounterpartyPayee = e.MsgRegisterPayee = void 0; - const O = p(6065); + const O = h(6065); e.MsgRegisterPayee = class { constructor(k) { this.params = k; @@ -32685,7 +32685,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 6272: function(D, e, p) { + }, 6272: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -32722,8 +32722,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -32737,7 +32737,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S(this, void 0, void 0, function* () { const a = { source_port: this.params.source_port, source_channel: this.params.source_channel, token: this.params.token, sender: this.params.sender, receiver: this.params.receiver, timeout_height: this.params.timeout_height, timeout_timestamp: this.params.timeout_timestamp ? `${this.params.timeout_timestamp}000000000` : "0", memo: this.params.memo || "" }; return { type_url: "/ibc.applications.transfer.v1.MsgTransfer", value: a, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(865)))).MsgTransfer.encode(a).finish(); + return (yield Promise.resolve().then(() => k(h(865)))).MsgTransfer.encode(a).finish(); }) }; }); } @@ -32747,7 +32747,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 3745: function(D, e, p) { + }, 3745: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(j, M, N, C) { C === void 0 && (C = N), Object.defineProperty(j, C, { enumerable: !0, get: function() { return M[N]; @@ -32759,9 +32759,9 @@ Use Chrome, Firefox or Internet Explorer 11`); N === "default" || Object.prototype.hasOwnProperty.call(M, N) || w(M, j, N); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgRegistry = void 0; - const k = p(5635), S = p(810), a = p(4489), t = p(4301), c = p(3676), u = p(6513), s = p(88), r = p(5925), n = p(7704), o = p(8644), i = p(6065), f = p(865), d = p(7579), h = p(322), _ = p(8344), b = p(2896), I = p(4657), l = p(1901); - O(p(2132), e), O(p(587), e), O(p(7278), e), O(p(7949), e), O(p(1890), e), O(p(6049), e), O(p(3651), e), O(p(8434), e), O(p(4509), e), O(p(6130), e), O(p(574), e), O(p(6187), e), O(p(7989), e), O(p(6272), e), O(p(5656), e), O(p(2731), e), O(p(8382), e), O(p(5498), e), e.MsgRegistry = /* @__PURE__ */ new Map([["/cosmos.authz.v1beta1.MsgGrant", k.MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", k.MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", k.MsgRevoke], ["/cosmos.bank.v1beta1.MsgSend", S.MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", S.MsgMultiSend], ["/cosmos.crisis.v1beta1.MsgVerifyInvariant", a.MsgVerifyInvariant], ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", t.MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", t.MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", t.MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", t.MsgFundCommunityPool], ["/cosmos.distribution.v1beta1.MsgSetAutoRestake", t.MsgSetAutoRestake], ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", c.MsgSubmitEvidence], ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", u.MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", u.MsgRevokeAllowance], ["/cosmos.gov.v1beta1.MsgSubmitProposal", s.MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", s.MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", s.MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", s.MsgDeposit], ["/cosmos.slashing.v1beta1.MsgUnjail", r.MsgUnjail], ["/cosmos.staking.v1beta1.MsgCreateValidator", n.MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", n.MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", n.MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", n.MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", n.MsgUndelegate], ["/ibc.applications.transfer.v1.MsgTransfer", f.MsgTransfer], ["/ibc.applications.fee.v1.MsgPayPacketFee", i.MsgPayPacketFee], ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", i.MsgPayPacketFeeAsync], ["/ibc.applications.fee.v1.MsgRegisterPayee", i.MsgRegisterPayee], ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", i.MsgRegisterCounterpartyPayee], ["/ibc.core.channel.v1.MsgChannelOpenInit", d.MsgChannelOpenInit], ["/ibc.core.channel.v1.MsgChannelOpenTry", d.MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgChannelOpenAck", d.MsgChannelOpenAck], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", d.MsgChannelOpenConfirm], ["/ibc.core.channel.v1.MsgChannelCloseInit", d.MsgChannelCloseInit], ["/ibc.core.channel.v1.MsgChannelCloseConfirm", d.MsgChannelCloseConfirm], ["/ibc.core.channel.v1.MsgRecvPacket", d.MsgRecvPacket], ["/ibc.core.channel.v1.MsgTimeout", d.MsgTimeout], ["/ibc.core.channel.v1.MsgTimeoutOnClose", d.MsgTimeoutOnClose], ["/ibc.core.channel.v1.MsgAcknowledgement", d.MsgAcknowledgement], ["/ibc.core.client.v1.MsgCreateClient", h.MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", h.MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", h.MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", h.MsgSubmitMisbehaviour], ["/ibc.core.connection.v1.MsgConnectionOpenInit", _.MsgConnectionOpenInit], ["/ibc.core.connection.v1.MsgConnectionOpenTry", _.MsgConnectionOpenTry], ["/ibc.core.connection.v1.MsgConnectionOpenAck", _.MsgConnectionOpenAck], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", _.MsgConnectionOpenConfirm], ["/secret.compute.v1beta1.MsgStoreCode", b.MsgStoreCode], ["/secret.compute.v1beta1.MsgInstantiateContract", b.MsgInstantiateContract], ["/secret.compute.v1beta1.MsgExecuteContract", b.MsgExecuteContract], ["/secret.compute.v1beta1.MsgMigrateContract", b.MsgMigrateContract], ["/secret.compute.v1beta1.MsgUpdateAdmin", b.MsgUpdateAdmin], ["/secret.compute.v1beta1.MsgClearAdmin", b.MsgClearAdmin], ["/secret.registration.v1beta1.RaAuthenticate", l.RaAuthenticate], ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", o.MsgCreateVestingAccount], ["/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch", I.MsgToggleIbcSwitch]]); - }, 8772: function(D, e, p) { + const k = h(5635), S = h(810), a = h(4489), t = h(4301), c = h(3676), u = h(6513), s = h(88), r = h(5925), n = h(7704), o = h(8644), i = h(6065), f = h(865), d = h(7579), p = h(322), _ = h(8344), b = h(2896), I = h(4657), l = h(1901); + O(h(2132), e), O(h(587), e), O(h(7278), e), O(h(7949), e), O(h(1890), e), O(h(6049), e), O(h(3651), e), O(h(8434), e), O(h(4509), e), O(h(6130), e), O(h(574), e), O(h(6187), e), O(h(7989), e), O(h(6272), e), O(h(5656), e), O(h(2731), e), O(h(8382), e), O(h(5498), e), e.MsgRegistry = /* @__PURE__ */ new Map([["/cosmos.authz.v1beta1.MsgGrant", k.MsgGrant], ["/cosmos.authz.v1beta1.MsgExec", k.MsgExec], ["/cosmos.authz.v1beta1.MsgRevoke", k.MsgRevoke], ["/cosmos.bank.v1beta1.MsgSend", S.MsgSend], ["/cosmos.bank.v1beta1.MsgMultiSend", S.MsgMultiSend], ["/cosmos.crisis.v1beta1.MsgVerifyInvariant", a.MsgVerifyInvariant], ["/cosmos.distribution.v1beta1.MsgSetWithdrawAddress", t.MsgSetWithdrawAddress], ["/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward", t.MsgWithdrawDelegatorReward], ["/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission", t.MsgWithdrawValidatorCommission], ["/cosmos.distribution.v1beta1.MsgFundCommunityPool", t.MsgFundCommunityPool], ["/cosmos.distribution.v1beta1.MsgSetAutoRestake", t.MsgSetAutoRestake], ["/cosmos.evidence.v1beta1.MsgSubmitEvidence", c.MsgSubmitEvidence], ["/cosmos.feegrant.v1beta1.MsgGrantAllowance", u.MsgGrantAllowance], ["/cosmos.feegrant.v1beta1.MsgRevokeAllowance", u.MsgRevokeAllowance], ["/cosmos.gov.v1beta1.MsgSubmitProposal", s.MsgSubmitProposal], ["/cosmos.gov.v1beta1.MsgVote", s.MsgVote], ["/cosmos.gov.v1beta1.MsgVoteWeighted", s.MsgVoteWeighted], ["/cosmos.gov.v1beta1.MsgDeposit", s.MsgDeposit], ["/cosmos.slashing.v1beta1.MsgUnjail", r.MsgUnjail], ["/cosmos.staking.v1beta1.MsgCreateValidator", n.MsgCreateValidator], ["/cosmos.staking.v1beta1.MsgEditValidator", n.MsgEditValidator], ["/cosmos.staking.v1beta1.MsgDelegate", n.MsgDelegate], ["/cosmos.staking.v1beta1.MsgBeginRedelegate", n.MsgBeginRedelegate], ["/cosmos.staking.v1beta1.MsgUndelegate", n.MsgUndelegate], ["/ibc.applications.transfer.v1.MsgTransfer", f.MsgTransfer], ["/ibc.applications.fee.v1.MsgPayPacketFee", i.MsgPayPacketFee], ["/ibc.applications.fee.v1.MsgPayPacketFeeAsync", i.MsgPayPacketFeeAsync], ["/ibc.applications.fee.v1.MsgRegisterPayee", i.MsgRegisterPayee], ["/ibc.applications.fee.v1.MsgRegisterCounterpartyPayee", i.MsgRegisterCounterpartyPayee], ["/ibc.core.channel.v1.MsgChannelOpenInit", d.MsgChannelOpenInit], ["/ibc.core.channel.v1.MsgChannelOpenTry", d.MsgChannelOpenTry], ["/ibc.core.channel.v1.MsgChannelOpenAck", d.MsgChannelOpenAck], ["/ibc.core.channel.v1.MsgChannelOpenConfirm", d.MsgChannelOpenConfirm], ["/ibc.core.channel.v1.MsgChannelCloseInit", d.MsgChannelCloseInit], ["/ibc.core.channel.v1.MsgChannelCloseConfirm", d.MsgChannelCloseConfirm], ["/ibc.core.channel.v1.MsgRecvPacket", d.MsgRecvPacket], ["/ibc.core.channel.v1.MsgTimeout", d.MsgTimeout], ["/ibc.core.channel.v1.MsgTimeoutOnClose", d.MsgTimeoutOnClose], ["/ibc.core.channel.v1.MsgAcknowledgement", d.MsgAcknowledgement], ["/ibc.core.client.v1.MsgCreateClient", p.MsgCreateClient], ["/ibc.core.client.v1.MsgUpdateClient", p.MsgUpdateClient], ["/ibc.core.client.v1.MsgUpgradeClient", p.MsgUpgradeClient], ["/ibc.core.client.v1.MsgSubmitMisbehaviour", p.MsgSubmitMisbehaviour], ["/ibc.core.connection.v1.MsgConnectionOpenInit", _.MsgConnectionOpenInit], ["/ibc.core.connection.v1.MsgConnectionOpenTry", _.MsgConnectionOpenTry], ["/ibc.core.connection.v1.MsgConnectionOpenAck", _.MsgConnectionOpenAck], ["/ibc.core.connection.v1.MsgConnectionOpenConfirm", _.MsgConnectionOpenConfirm], ["/secret.compute.v1beta1.MsgStoreCode", b.MsgStoreCode], ["/secret.compute.v1beta1.MsgInstantiateContract", b.MsgInstantiateContract], ["/secret.compute.v1beta1.MsgExecuteContract", b.MsgExecuteContract], ["/secret.compute.v1beta1.MsgMigrateContract", b.MsgMigrateContract], ["/secret.compute.v1beta1.MsgUpdateAdmin", b.MsgUpdateAdmin], ["/secret.compute.v1beta1.MsgClearAdmin", b.MsgClearAdmin], ["/secret.registration.v1beta1.RaAuthenticate", l.RaAuthenticate], ["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", o.MsgCreateVestingAccount], ["/secret.emergencybutton.v1beta1.MsgToggleIbcSwitch", I.MsgToggleIbcSwitch]]); + }, 8772: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(c, u, s, r) { r === void 0 && (r = s), Object.defineProperty(c, r, { enumerable: !0, get: function() { return u[s]; @@ -32782,23 +32782,23 @@ Use Chrome, Firefox or Internet Explorer 11`); return O(u, c), u; }, S = this && this.__awaiter || function(c, u, s, r) { return new (s || (s = Promise))(function(n, o) { - function i(h) { + function i(p) { try { - d(r.next(h)); + d(r.next(p)); } catch (_) { o(_); } } - function f(h) { + function f(p) { try { - d(r.throw(h)); + d(r.throw(p)); } catch (_) { o(_); } } - function d(h) { + function d(p) { var _; - h.done ? n(h.value) : (_ = h.value, _ instanceof s ? _ : new s(function(b) { + p.done ? n(p.value) : (_ = p.value, _ instanceof s ? _ : new s(function(b) { b(_); })).then(i, f); } @@ -32806,7 +32806,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.RaAuthenticate = void 0; - const a = p(8972), t = p(3607); + const a = h(8972), t = h(3607); e.RaAuthenticate = class { constructor(c) { this.params = c; @@ -32815,7 +32815,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S(this, void 0, void 0, function* () { const c = { sender: (0, t.addressToBytes)(this.params.sender), certificate: this.params.certificate }; return { type_url: "/secret.registration.v1beta1.RaAuthenticate", value: c, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(1901)))).RaAuthenticate.encode(c).finish(); + return (yield Promise.resolve().then(() => k(h(1901)))).RaAuthenticate.encode(c).finish(); }) }; }); } @@ -32825,7 +32825,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 5656: function(D, e, p) { + }, 5656: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -32862,8 +32862,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -32876,7 +32876,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.slashing.v1beta1.MsgUnjail", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(5925)))).MsgUnjail.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(5925)))).MsgUnjail.encode(this.params).finish(); }) }; }); } @@ -32886,7 +32886,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 2731: function(D, e, p) { + }, 2731: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(n, o, i, f) { f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { return o[i]; @@ -32906,19 +32906,19 @@ Use Chrome, Firefox or Internet Explorer 11`); i !== "default" && Object.prototype.hasOwnProperty.call(n, i) && w(o, n, i); return O(o, n), o; }, S = this && this.__awaiter || function(n, o, i, f) { - return new (i || (i = Promise))(function(d, h) { + return new (i || (i = Promise))(function(d, p) { function _(l) { try { I(f.next(l)); } catch (j) { - h(j); + p(j); } } function b(l) { try { I(f.throw(l)); } catch (j) { - h(j); + p(j); } } function I(l) { @@ -32933,7 +32933,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return n && n.__esModule ? n : { default: n }; }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MsgUndelegate = e.MsgBeginRedelegate = e.MsgDelegate = e.MsgEditValidator = e.MsgCreateValidator = void 0; - const t = p(8972), c = p(7715), u = a(p(4431)), s = p(7776), r = p(4191); + const t = h(8972), c = h(7715), u = a(h(4431)), s = h(7776), r = h(4191); e.MsgCreateValidator = class { constructor(n) { this.params = n; @@ -32942,7 +32942,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return S(this, void 0, void 0, function* () { const n = { description: this.params.description, commission: { rate: new u.default(this.params.commission.rate).toFixed(18).replace(/0\.0*/, ""), max_rate: new u.default(this.params.commission.max_rate).toFixed(18).replace(/0\.0*/, ""), max_change_rate: new u.default(this.params.commission.max_change_rate).toFixed(18).replace(/0\.0*/, "") }, min_self_delegation: this.params.min_self_delegation, delegator_address: this.params.delegator_address, validator_address: c.bech32.encode("secretvaloper", c.bech32.decode(this.params.delegator_address).words), pubkey: r.Any.fromPartial({ type_url: "/cosmos.crypto.ed25519.PubKey", value: s.PubKey.encode(s.PubKey.fromPartial({ key: (0, t.fromBase64)(this.params.pubkey) })).finish() }), value: this.params.initial_delegation }; return { type_url: "/cosmos.staking.v1beta1.MsgCreateValidator", value: n, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7704)))).MsgCreateValidator.encode(n).finish(); + return (yield Promise.resolve().then(() => k(h(7704)))).MsgCreateValidator.encode(n).finish(); }) }; }); } @@ -32957,9 +32957,9 @@ Use Chrome, Firefox or Internet Explorer 11`); } toProto() { return S(this, void 0, void 0, function* () { - const { Description: n } = yield Promise.resolve().then(() => k(p(2572))), o = { validator_address: this.params.validator_address, description: n.fromPartial(this.params.description || {}), commission_rate: this.params.commission_rate ? new u.default(this.params.commission_rate).toFixed(18).replace(/0\.0*/, "") : "", min_self_delegation: this.params.min_self_delegation || "" }; + const { Description: n } = yield Promise.resolve().then(() => k(h(2572))), o = { validator_address: this.params.validator_address, description: n.fromPartial(this.params.description || {}), commission_rate: this.params.commission_rate ? new u.default(this.params.commission_rate).toFixed(18).replace(/0\.0*/, "") : "", min_self_delegation: this.params.min_self_delegation || "" }; return { type_url: "/cosmos.staking.v1beta1.MsgEditValidator", value: o, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7704)))).MsgEditValidator.encode(o).finish(); + return (yield Promise.resolve().then(() => k(h(7704)))).MsgEditValidator.encode(o).finish(); }) }; }); } @@ -32976,7 +32976,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.staking.v1beta1.MsgDelegate", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7704)))).MsgDelegate.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(7704)))).MsgDelegate.encode(this.params).finish(); }) }; }); } @@ -32992,7 +32992,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.staking.v1beta1.MsgBeginRedelegate", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7704)))).MsgBeginRedelegate.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(7704)))).MsgBeginRedelegate.encode(this.params).finish(); }) }; }); } @@ -33008,7 +33008,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.staking.v1beta1.MsgUndelegate", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(7704)))).MsgUndelegate.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(7704)))).MsgUndelegate.encode(this.params).finish(); }) }; }); } @@ -33020,7 +33020,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }; }, 8382: (D, e) => { Object.defineProperty(e, "__esModule", { value: !0 }); - }, 5498: function(D, e, p) { + }, 5498: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(a, t, c, u) { u === void 0 && (u = c), Object.defineProperty(a, u, { enumerable: !0, get: function() { return t[c]; @@ -33057,8 +33057,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(f) { var d; - f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(h) { - h(d); + f.done ? s(f.value) : (d = f.value, d instanceof c ? d : new c(function(p) { + p(d); })).then(n, o); } i((u = u.apply(a, t || [])).next()); @@ -33071,7 +33071,7 @@ Use Chrome, Firefox or Internet Explorer 11`); toProto() { return S(this, void 0, void 0, function* () { return { type_url: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: this.params, encode: () => S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(8644)))).MsgCreateVestingAccount.encode(this.params).finish(); + return (yield Promise.resolve().then(() => k(h(8644)))).MsgCreateVestingAccount.encode(this.params).finish(); }) }; }); } @@ -33081,9 +33081,9 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } }; - }, 8593: (D, e, p) => { + }, 8593: (D, e, h) => { Object.defineProperty(e, "__esModule", { value: !0 }), e.bytesToAddress = e.addressToBytes = e.validateAddress = e.coinsFromString = e.stringToCoins = e.coinFromString = e.stringToCoin = e.ibcDenom = e.base64TendermintPubkeyToValconsAddress = e.tendermintPubkeyToValconsAddress = e.validatorAddressToSelfDelegatorAddress = e.selfDelegatorAddressToValidatorAddress = e.base64PubkeyToAddress = e.pubkeyToAddress = e.is_gzip = void 0; - const w = p(8972), O = p(830), k = p(3061), S = p(7715); + const w = h(8972), O = h(830), k = h(3061), S = h(7715); function a(c, u = "secret") { return S.bech32.encode(u, S.bech32.toWords((0, O.ripemd160)((0, k.sha256)(c)))); } @@ -33126,26 +33126,26 @@ Use Chrome, Firefox or Internet Explorer 11`); }, e.bytesToAddress = function(c, u = "secret") { return c.length === 0 ? "" : S.bech32.encode(u, S.bech32.toWords(c)); }; - }, 5360: function(D, e, p) { - var w = this && this.__createBinding || (Object.create ? function(d, h, _, b) { + }, 5360: function(D, e, h) { + var w = this && this.__createBinding || (Object.create ? function(d, p, _, b) { b === void 0 && (b = _), Object.defineProperty(d, b, { enumerable: !0, get: function() { - return h[_]; + return p[_]; } }); - } : function(d, h, _, b) { - b === void 0 && (b = _), d[b] = h[_]; - }), O = this && this.__setModuleDefault || (Object.create ? function(d, h) { - Object.defineProperty(d, "default", { enumerable: !0, value: h }); - } : function(d, h) { - d.default = h; + } : function(d, p, _, b) { + b === void 0 && (b = _), d[b] = p[_]; + }), O = this && this.__setModuleDefault || (Object.create ? function(d, p) { + Object.defineProperty(d, "default", { enumerable: !0, value: p }); + } : function(d, p) { + d.default = p; }), k = this && this.__importStar || function(d) { if (d && d.__esModule) return d; - var h = {}; + var p = {}; if (d != null) for (var _ in d) - _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(h, d, _); - return O(h, d), h; - }, S = this && this.__awaiter || function(d, h, _, b) { + _ !== "default" && Object.prototype.hasOwnProperty.call(d, _) && w(p, d, _); + return O(p, d), p; + }, S = this && this.__awaiter || function(d, p, _, b) { return new (_ || (_ = Promise))(function(I, l) { function j(C) { try { @@ -33167,15 +33167,15 @@ Use Chrome, Firefox or Internet Explorer 11`); P(x); })).then(j, M); } - N((b = b.apply(d, h || [])).next()); + N((b = b.apply(d, p || [])).next()); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.isDirectSigner = e.isSignDocCamelCase = e.isSignDoc = e.serializeStdSignDoc = e.sortObject = e.encodeSecp256k1Pubkey = e.encodeSecp256k1Signature = e.AminoWallet = e.SECRET_BECH32_PREFIX = e.SECRET_COIN_TYPE = void 0; - const a = p(8972), t = p(3061), c = k(p(9656)), u = k(p(7786)), s = k(p(2153)), r = p(3607); - function n(d, h) { - if (h.length !== 64) + const a = h(8972), t = h(3061), c = k(h(9656)), u = k(h(7786)), s = k(h(2153)), r = h(3607); + function n(d, p) { + if (p.length !== 64) throw new 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: o(d), signature: (0, a.toBase64)(h) }; + return { pub_key: o(d), signature: (0, a.toBase64)(p) }; } function o(d) { if (d.length !== 33 || d[0] !== 2 && d[0] !== 3) @@ -33187,19 +33187,19 @@ Use Chrome, Firefox or Internet Explorer 11`); return d; if (Array.isArray(d)) return d.map(i); - const h = Object.keys(d).sort(), _ = {}; - return h.forEach((b) => { + const p = Object.keys(d).sort(), _ = {}; + return p.forEach((b) => { _[b] = i(d[b]); }), _; } function f(d) { - return (0, a.toUtf8)((h = d, JSON.stringify(i(h)))); - var h; + return (0, a.toUtf8)((p = d, JSON.stringify(i(p)))); + var p; } e.SECRET_COIN_TYPE = 529, e.SECRET_BECH32_PREFIX = "secret", e.AminoWallet = class { - constructor(d = "", h = {}) { + constructor(d = "", p = {}) { var _, b, I; - d === "" && (d = s.generateMnemonic(256)), this.mnemonic = d, this.hdAccountIndex = (_ = h.hdAccountIndex) !== null && _ !== void 0 ? _ : 0, this.coinType = (b = h.coinType) !== null && b !== void 0 ? b : e.SECRET_COIN_TYPE, this.bech32Prefix = (I = h.bech32Prefix) !== null && I !== void 0 ? I : e.SECRET_BECH32_PREFIX; + d === "" && (d = s.generateMnemonic(256)), this.mnemonic = d, this.hdAccountIndex = (_ = p.hdAccountIndex) !== null && _ !== void 0 ? _ : 0, this.coinType = (b = p.coinType) !== null && b !== void 0 ? b : e.SECRET_COIN_TYPE, this.bech32Prefix = (I = p.bech32Prefix) !== null && I !== void 0 ? I : e.SECRET_BECH32_PREFIX; const l = s.mnemonicToSeedSync(this.mnemonic), j = u.fromSeed(l).derivePath(`m/44'/${this.coinType}'/0'/0/${this.hdAccountIndex}`).privateKey; if (!j) throw new Error("Failed to derive key pair"); @@ -33210,12 +33210,12 @@ Use Chrome, Firefox or Internet Explorer 11`); return [{ address: this.address, algo: "secp256k1", pubkey: this.publicKey }]; }); } - signAmino(d, h) { + signAmino(d, p) { return S(this, void 0, void 0, function* () { if (d !== this.address) throw new Error(`Address ${d} not found in wallet`); - const _ = (0, t.sha256)(f(h)), b = yield c.sign(_, this.privateKey, { extraEntropy: !0, der: !1 }); - return { signed: h, signature: n(this.publicKey, b) }; + const _ = (0, t.sha256)(f(p)), b = yield c.sign(_, this.privateKey, { extraEntropy: !0, der: !1 }); + return { signed: p, signature: n(this.publicKey, b) }; }); } }, e.encodeSecp256k1Signature = n, e.encodeSecp256k1Pubkey = o, e.sortObject = i, e.serializeStdSignDoc = f, e.isSignDoc = function(d) { @@ -33225,7 +33225,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }, e.isDirectSigner = function(d) { return d.signDirect !== void 0; }; - }, 1444: function(D, e, p) { + }, 1444: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(n, o, i, f) { f === void 0 && (f = i), Object.defineProperty(n, f, { enumerable: !0, get: function() { return o[i]; @@ -33245,19 +33245,19 @@ Use Chrome, Firefox or Internet Explorer 11`); i !== "default" && Object.prototype.hasOwnProperty.call(n, i) && w(o, n, i); return O(o, n), o; }, S = this && this.__awaiter || function(n, o, i, f) { - return new (i || (i = Promise))(function(d, h) { + return new (i || (i = Promise))(function(d, p) { function _(l) { try { I(f.next(l)); } catch (j) { - h(j); + p(j); } } function b(l) { try { I(f.throw(l)); } catch (j) { - h(j); + p(j); } } function I(l) { @@ -33270,7 +33270,7 @@ Use Chrome, Firefox or Internet Explorer 11`); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.MetaMaskWallet = void 0; - const a = p(5426), t = k(p(9656)), c = p(3061), u = p(3607), s = p(5360); + const a = h(5426), t = k(h(9656)), c = h(3061), u = h(3607), s = h(5360); class r { constructor(o, i, f) { this.ethProvider = o, this.ethAddress = i, this.publicKey = f, this.address = (0, u.pubkeyToAddress)(this.publicKey); @@ -33286,11 +33286,11 @@ Use Chrome, Firefox or Internet Explorer 11`); return new r(o, i, (0, u.fromHex)(d)); localStorage.removeItem(f); } - const h = (0, u.toUtf8)("Get secret address"), _ = `0x${(0, u.toHex)(h)}`, b = (yield o.request({ method: "personal_sign", params: [_, i] })).toString(), I = (0, u.fromHex)(b.slice(2, -2)); + const p = (0, u.toUtf8)("Get secret address"), _ = `0x${(0, u.toHex)(p)}`, b = (yield o.request({ method: "personal_sign", params: [_, i] })).toString(), I = (0, u.fromHex)(b.slice(2, -2)); let l = parseInt(b.slice(-2), 16) - 27; l < 0 && (l += 27); const j = (0, u.toUtf8)(`Ethereum Signed Message: -`), M = (0, u.toUtf8)(String(h.length)), N = t.recoverPublicKey((0, a.keccak_256)(new Uint8Array([...j, ...M, ...h])), I, l, !0); +`), M = (0, u.toUtf8)(String(p.length)), N = t.recoverPublicKey((0, a.keccak_256)(new Uint8Array([...j, ...M, ...p])), I, l, !0); return localStorage.setItem(f, (0, u.toHex)(N)), new r(o, i, N); }); } @@ -33301,7 +33301,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } getSignMode() { return S(this, void 0, void 0, function* () { - return (yield Promise.resolve().then(() => k(p(8502)))).SignMode.SIGN_MODE_EIP_191; + return (yield Promise.resolve().then(() => k(h(8502)))).SignMode.SIGN_MODE_EIP_191; }); } signAmino(o, i) { @@ -33311,21 +33311,21 @@ Use Chrome, Firefox or Internet Explorer 11`); const f = `0x${(0, u.toHex)(function(_) { return (0, u.toUtf8)((b = _, JSON.stringify((0, s.sortObject)(b), null, 4))); var b; - }(i))}`, d = yield this.ethProvider.request({ method: "personal_sign", params: [f, this.ethAddress] }), h = (0, u.fromHex)(d.slice(2, -2)); - return { signed: i, signature: (0, s.encodeSecp256k1Signature)(this.publicKey, h) }; + }(i))}`, d = yield this.ethProvider.request({ method: "personal_sign", params: [f, this.ethAddress] }), p = (0, u.fromHex)(d.slice(2, -2)); + return { signed: i, signature: (0, s.encodeSecp256k1Signature)(this.publicKey, p) }; }); } signPermit(o, i) { return S(this, void 0, void 0, function* () { if (o !== (0, u.pubkeyToAddress)(this.publicKey)) throw new Error(`Address ${o} not found in wallet`); - const f = (0, c.sha256)((0, s.serializeStdSignDoc)(i)), d = yield this.ethProvider.request({ method: "eth_sign", params: [this.ethAddress, "0x" + (0, u.toHex)(f)] }), h = (0, u.fromHex)(d.slice(2, -2)); - return { signed: i, signature: (0, s.encodeSecp256k1Signature)(this.publicKey, h) }; + const f = (0, c.sha256)((0, s.serializeStdSignDoc)(i)), d = yield this.ethProvider.request({ method: "eth_sign", params: [this.ethAddress, "0x" + (0, u.toHex)(f)] }), p = (0, u.fromHex)(d.slice(2, -2)); + return { signed: i, signature: (0, s.encodeSecp256k1Signature)(this.publicKey, p) }; }); } } e.MetaMaskWallet = r; - }, 1049: function(D, e, p) { + }, 1049: function(D, e, h) { var w = this && this.__createBinding || (Object.create ? function(s, r, n, o) { o === void 0 && (o = n), Object.defineProperty(s, o, { enumerable: !0, get: function() { return r[n]; @@ -33353,7 +33353,7 @@ Use Chrome, Firefox or Internet Explorer 11`); f(I); } } - function h(b) { + function p(b) { try { _(o.throw(b)); } catch (I) { @@ -33364,22 +33364,22 @@ Use Chrome, Firefox or Internet Explorer 11`); var I; b.done ? i(b.value) : (I = b.value, I instanceof n ? I : new n(function(l) { l(I); - })).then(d, h); + })).then(d, p); } _((o = o.apply(s, r || [])).next()); }); }; Object.defineProperty(e, "__esModule", { value: !0 }), e.Wallet = void 0; - const a = p(3061), t = k(p(9656)), c = p(5360); + const a = h(3061), t = k(h(9656)), c = h(5360); class u extends c.AminoWallet { signDirect(r, n) { return S(this, void 0, void 0, function* () { if (r !== this.address) throw new Error(`Address ${r} not found in wallet`); - const o = (0, a.sha256)(yield function({ account_number: f, auth_info_bytes: d, body_bytes: h, chain_id: _ }) { + const o = (0, a.sha256)(yield function({ account_number: f, auth_info_bytes: d, body_bytes: p, chain_id: _ }) { return S(this, void 0, void 0, function* () { - const { SignDoc: b } = yield Promise.resolve().then(() => k(p(6994))); - return b.encode(b.fromPartial({ account_number: f, auth_info_bytes: d, body_bytes: h, chain_id: _ })).finish(); + const { SignDoc: b } = yield Promise.resolve().then(() => k(h(6994))); + return b.encode(b.fromPartial({ account_number: f, auth_info_bytes: d, body_bytes: p, chain_id: _ })).finish(); }); }(n)), i = yield t.sign(o, this.privateKey, { extraEntropy: !0, der: !1 }); return { signed: n, signature: (0, c.encodeSecp256k1Signature)(this.publicKey, i) }; @@ -33387,8 +33387,8 @@ Use Chrome, Firefox or Internet Explorer 11`); } } e.Wallet = u; - }, 6647: (D, e, p) => { - var w = p(247); + }, 6647: (D, e, h) => { + var w = h(247); function O(s) { return s.name || s.toString().match(/function (.*?)\s*\(/)[1]; } @@ -33411,9 +33411,9 @@ Use Chrome, Firefox or Internet Explorer 11`); n = n || k(r), this.message = t(s, r, n), S(this, c), this.__type = s, this.__value = r, this.__valueTypeName = n; } function u(s, r, n, o, i) { - s ? (i = i || k(o), this.message = function(f, d, h, _, b) { + s ? (i = i || k(o), this.message = function(f, d, p, _, b) { var I = '" of type '; - return d === "key" && (I = '" with key type '), t('property "' + a(h) + I + a(f), _, b); + return d === "key" && (I = '" with key type '), t('property "' + a(p) + I + a(f), _, b); }(s, n, r, o, i)) : this.message = 'Unexpected property "' + r + '"', S(this, c), this.__label = n, this.__property = r, this.__type = s, this.__value = o, this.__valueTypeName = i; } c.prototype = Object.create(Error.prototype), c.prototype.constructor = c, u.prototype = Object.create(Error.prototype), u.prototype.constructor = c, D.exports = { TfTypeError: c, TfPropertyTypeError: u, tfCustomError: function(s, r) { @@ -33421,8 +33421,8 @@ Use Chrome, Firefox or Internet Explorer 11`); }, tfSubError: function(s, r, n) { return s instanceof u ? (r = r + "." + s.__property, s = new u(s.__type, r, s.__label, s.__value, s.__valueTypeName)) : s instanceof c && (s = new u(s.__type, r, n, s.__value, s.__valueTypeName)), S(s), s; }, tfJSON: a, getValueTypeName: k }; - }, 4307: (D, e, p) => { - var w = p(8764).Buffer, O = p(247), k = p(6647); + }, 4307: (D, e, h) => { + var w = h(8764).Buffer, O = h(247), k = h(6647); function S(f) { return w.isBuffer(f); } @@ -33430,16 +33430,16 @@ Use Chrome, Firefox or Internet Explorer 11`); return typeof f == "string" && /^([0-9a-f]{2})+$/i.test(f); } function t(f, d) { - var h = f.toJSON(); + var p = f.toJSON(); function _(b) { if (!f(b)) return !1; if (b.length === d) return !0; - throw k.tfCustomError(h + "(Length: " + d + ")", h + "(Length: " + b.length + ")"); + throw k.tfCustomError(p + "(Length: " + d + ")", p + "(Length: " + b.length + ")"); } return _.toJSON = function() { - return h; + return p; }, _; } var c = t.bind(null, O.Array), u = t.bind(null, S), s = t.bind(null, a), r = t.bind(null, O.String), n = Math.pow(2, 53) - 1, o = { ArrayN: c, Buffer: S, BufferN: u, Finite: function(f) { @@ -33452,12 +33452,12 @@ Use Chrome, Firefox or Internet Explorer 11`); return (0 | f) === f; }, Int53: function(f) { return typeof f == "number" && f >= -n && f <= n && Math.floor(f) === f; - }, Range: function(f, d, h) { + }, Range: function(f, d, p) { function _(b, I) { - return h(b, I) && b > f && b < d; + return p(b, I) && b > f && b < d; } - return h = h || O.Number, _.toJSON = function() { - return `${h.toJSON()} between [${f}, ${d}]`; + return p = p || O.Number, _.toJSON = function() { + return `${p.toJSON()} between [${f}, ${d}]`; }, _; }, StringN: r, UInt8: function(f) { return (255 & f) === f; @@ -33473,10 +33473,10 @@ Use Chrome, Firefox or Internet Explorer 11`); return f; }).bind(null, i); D.exports = o; - }, 2401: (D, e, p) => { - var w = p(6647), O = p(247), k = w.tfJSON, S = w.TfTypeError, a = w.TfPropertyTypeError, t = w.tfSubError, c = w.getValueTypeName, u = { arrayOf: function(i, f) { - function d(h, _) { - return !!O.Array(h) && !O.Nil(h) && !(f.minLength !== void 0 && h.length < f.minLength) && !(f.maxLength !== void 0 && h.length > f.maxLength) && (f.length === void 0 || h.length === f.length) && h.every(function(b, I) { + }, 2401: (D, e, h) => { + var w = h(6647), O = h(247), k = w.tfJSON, S = w.TfTypeError, a = w.TfPropertyTypeError, t = w.tfSubError, c = w.getValueTypeName, u = { arrayOf: function(i, f) { + function d(p, _) { + return !!O.Array(p) && !O.Nil(p) && !(f.minLength !== void 0 && p.length < f.minLength) && !(f.maxLength !== void 0 && p.length > f.maxLength) && (f.length === void 0 || p.length === f.length) && p.every(function(b, I) { try { return r(i, b, _); } catch (l) { @@ -33485,28 +33485,28 @@ Use Chrome, Firefox or Internet Explorer 11`); }); } return i = s(i), f = f || {}, d.toJSON = function() { - var h = "[" + k(i) + "]"; - return f.length !== void 0 ? h += "{" + f.length + "}" : f.minLength === void 0 && f.maxLength === void 0 || (h += "{" + (f.minLength === void 0 ? 0 : f.minLength) + "," + (f.maxLength === void 0 ? 1 / 0 : f.maxLength) + "}"), h; + var p = "[" + k(i) + "]"; + return f.length !== void 0 ? p += "{" + f.length + "}" : f.minLength === void 0 && f.maxLength === void 0 || (p += "{" + (f.minLength === void 0 ? 0 : f.minLength) + "," + (f.maxLength === void 0 ? 1 / 0 : f.maxLength) + "}"), p; }, d; }, maybe: function i(f) { - function d(h, _) { - return O.Nil(h) || f(h, _, i); + function d(p, _) { + return O.Nil(p) || f(p, _, i); } return f = s(f), d.toJSON = function() { return "?" + k(f); }, d; }, map: function(i, f) { - function d(h, _) { - if (!O.Object(h) || O.Nil(h)) + function d(p, _) { + if (!O.Object(p) || O.Nil(p)) return !1; - for (var b in h) { + for (var b in p) { try { f && r(f, b, _); } catch (l) { throw t(l, b, "key"); } try { - var I = h[b]; + var I = p[b]; r(i, I, _); } catch (l) { throw t(l, b); @@ -33523,7 +33523,7 @@ Use Chrome, Firefox or Internet Explorer 11`); var f = {}; for (var d in i) f[d] = s(i[d]); - function h(_, b) { + function p(_, b) { if (!O.Object(_) || O.Nil(_)) return !1; var I; @@ -33540,15 +33540,15 @@ Use Chrome, Firefox or Internet Explorer 11`); } return !0; } - return h.toJSON = function() { + return p.toJSON = function() { return k(f); - }, h; + }, p; }, anyOf: function() { var i = [].slice.call(arguments).map(s); - function f(d, h) { + function f(d, p) { return i.some(function(_) { try { - return r(_, d, h); + return r(_, d, p); } catch { return !1; } @@ -33559,10 +33559,10 @@ Use Chrome, Firefox or Internet Explorer 11`); }, f; }, allOf: function() { var i = [].slice.call(arguments).map(s); - function f(d, h) { + function f(d, p) { return i.every(function(_) { try { - return r(_, d, h); + return r(_, d, p); } catch { return !1; } @@ -33580,10 +33580,10 @@ Use Chrome, Firefox or Internet Explorer 11`); }, f; }, tuple: function() { var i = [].slice.call(arguments).map(s); - function f(d, h) { - return !O.Nil(d) && !O.Nil(d.length) && (!h || d.length === i.length) && i.every(function(_, b) { + function f(d, p) { + return !O.Nil(d) && !O.Nil(d.length) && (!p || d.length === i.length) && i.every(function(_, b) { try { - return r(_, d[b], h); + return r(_, d[b], p); } catch (I) { throw t(I, b); } @@ -33613,11 +33613,11 @@ Use Chrome, Firefox or Internet Explorer 11`); } return O.Function(i) ? i : u.value(i); } - function r(i, f, d, h) { + function r(i, f, d, p) { if (O.Function(i)) { if (i(f, d)) return !0; - throw new S(h || i, f); + throw new S(p || i, f); } return r(s(i), f, d); } @@ -33625,7 +33625,7 @@ Use Chrome, Firefox or Internet Explorer 11`); r[n] = O[n]; for (n in u) r[n] = u[n]; - var o = p(4307); + var o = h(4307); for (n in o) r[n] = o[n]; r.compile = s, r.TfTypeError = S, r.TfPropertyTypeError = a, D.exports = r; @@ -33647,21 +33647,21 @@ Use Chrome, Firefox or Internet Explorer 11`); }, "": function() { return !0; } }; - for (var p in e.Null = e.Nil, e) - e[p].toJSON = (function(w) { + for (var h in e.Null = e.Nil, e) + e[h].toJSON = (function(w) { return w; - }).bind(null, p); + }).bind(null, h); D.exports = e; - }, 4927: (D, e, p) => { - var w = p(5108); + }, 4927: (D, e, h) => { + var w = h(5108); function O(k) { try { - if (!p.g.localStorage) + if (!h.g.localStorage) return !1; } catch { return !1; } - var S = p.g.localStorage[k]; + var S = h.g.localStorage[k]; return S != null && String(S).toLowerCase() === "true"; } D.exports = function(k, S) { @@ -33681,8 +33681,8 @@ Use Chrome, Firefox or Internet Explorer 11`); D.exports = function(e) { return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function"; }; - }, 5955: (D, e, p) => { - var w = p(2584), O = p(8662), k = p(6430), S = p(5692); + }, 5955: (D, e, h) => { + var w = h(2584), O = h(8662), k = h(6430), S = h(5692); function a(T) { return T.call.bind(T); } @@ -33703,7 +33703,7 @@ Use Chrome, Firefox or Internet Explorer 11`); function d(T) { return u(T) === "[object Map]"; } - function h(T) { + function p(T) { return u(T) === "[object Set]"; } function _(T) { @@ -33752,8 +33752,8 @@ Use Chrome, Firefox or Internet Explorer 11`); return k(T) === "BigUint64Array"; }, d.working = typeof Map < "u" && d(/* @__PURE__ */ new Map()), e.isMap = function(T) { return typeof Map < "u" && (d.working ? d(T) : T instanceof Map); - }, h.working = typeof Set < "u" && h(/* @__PURE__ */ new Set()), e.isSet = function(T) { - return typeof Set < "u" && (h.working ? h(T) : T instanceof Set); + }, p.working = typeof Set < "u" && p(/* @__PURE__ */ new Set()), e.isSet = function(T) { + return typeof Set < "u" && (p.working ? p(T) : T instanceof Set); }, _.working = typeof WeakMap < "u" && _(/* @__PURE__ */ new WeakMap()), e.isWeakMap = function(T) { return typeof WeakMap < "u" && (_.working ? _(T) : T instanceof WeakMap); }, b.working = typeof WeakSet < "u" && b(/* @__PURE__ */ new WeakSet()), e.isWeakSet = function(T) { @@ -33800,8 +33800,8 @@ Use Chrome, Firefox or Internet Explorer 11`); throw new Error(T + " is not supported in userland"); } }); }); - }, 9539: (D, e, p) => { - var w = p(4155), O = p(5108), k = Object.getOwnPropertyDescriptors || function(T) { + }, 9539: (D, e, h) => { + var w = h(4155), O = h(5108), k = Object.getOwnPropertyDescriptors || function(T) { for (var q = Object.keys(T), te = {}, re = 0; re < q.length; re++) te[q[re]] = Object.getOwnPropertyDescriptor(T, q[re]); return te; @@ -33833,7 +33833,7 @@ Use Chrome, Firefox or Internet Explorer 11`); return G; } }), ee = re[te]; te < ie; ee = re[++te]) - h(ee) || !j(ee) ? J += " " + ee : J += " " + u(ee); + p(ee) || !j(ee) ? J += " " + ee : J += " " + u(ee); return J; }, e.deprecate = function(T, q) { if (w !== void 0 && w.noDeprecation === !0) @@ -33880,7 +33880,7 @@ Use Chrome, Firefox or Internet Explorer 11`); var le = "'" + JSON.stringify(he).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'"; return ae.stylize(le, "string"); } - return _(he) ? ae.stylize("" + he, "number") : d(he) ? ae.stylize("" + he, "boolean") : h(he) ? ae.stylize("null", "null") : void 0; + return _(he) ? ae.stylize("" + he, "number") : d(he) ? ae.stylize("" + he, "boolean") : p(he) ? ae.stylize("null", "null") : void 0; }(T, q); if (ie) return ie; @@ -33927,7 +33927,7 @@ Use Chrome, Firefox or Internet Explorer 11`); } function i(T, q, te, re, ie, J) { var ee, G, $; - if (($ = Object.getOwnPropertyDescriptor(q, ie) || { value: q[ie] }).get ? G = $.set ? T.stylize("[Getter/Setter]", "special") : T.stylize("[Getter]", "special") : $.set && (G = T.stylize("[Setter]", "special")), m(re, ie) || (ee = "[" + ie + "]"), G || (T.seen.indexOf($.value) < 0 ? (G = h(te) ? n(T, $.value, null) : n(T, $.value, te - 1)).indexOf(` + if (($ = Object.getOwnPropertyDescriptor(q, ie) || { value: q[ie] }).get ? G = $.set ? T.stylize("[Getter/Setter]", "special") : T.stylize("[Getter]", "special") : $.set && (G = T.stylize("[Setter]", "special")), m(re, ie) || (ee = "[" + ie + "]"), G || (T.seen.indexOf($.value) < 0 ? (G = p(te) ? n(T, $.value, null) : n(T, $.value, te - 1)).indexOf(` `) > -1 && (G = J ? G.split(` `).map(function(W) { return " " + W; @@ -33950,7 +33950,7 @@ Use Chrome, Firefox or Internet Explorer 11`); function d(T) { return typeof T == "boolean"; } - function h(T) { + function p(T) { return T === null; } function _(T) { @@ -33995,13 +33995,13 @@ Use Chrome, Firefox or Internet Explorer 11`); a[T] = function() { }; return a[T]; - }, e.inspect = u, u.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] }, u.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, e.types = p(5955), e.isArray = f, e.isBoolean = d, e.isNull = h, e.isNullOrUndefined = function(T) { + }, e.inspect = u, u.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] }, u.styles = { special: "cyan", number: "yellow", boolean: "yellow", undefined: "grey", null: "bold", string: "green", date: "magenta", regexp: "red" }, e.types = h(5955), e.isArray = f, e.isBoolean = d, e.isNull = p, e.isNullOrUndefined = function(T) { return T == null; }, e.isNumber = _, e.isString = b, e.isSymbol = function(T) { return typeof T == "symbol"; }, e.isUndefined = I, e.isRegExp = l, e.types.isRegExp = l, e.isObject = j, e.isDate = M, e.types.isDate = M, e.isError = N, e.types.isNativeError = N, e.isFunction = C, e.isPrimitive = function(T) { return T === null || typeof T == "boolean" || typeof T == "number" || typeof T == "string" || typeof T == "symbol" || T === void 0; - }, e.isBuffer = p(384); + }, e.isBuffer = h(384); var v = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; function m(T, q) { return Object.prototype.hasOwnProperty.call(T, q); @@ -34009,7 +34009,7 @@ Use Chrome, Firefox or Internet Explorer 11`); e.log = function() { var T, q; O.log("%s - %s", (q = [P((T = /* @__PURE__ */ new Date()).getHours()), P(T.getMinutes()), P(T.getSeconds())].join(":"), [T.getDate(), v[T.getMonth()], q].join(" ")), e.format.apply(e, arguments)); - }, e.inherits = p(5717), e._extend = function(T, q) { + }, e.inherits = h(5717), e._extend = function(T, q) { if (!q || !j(q)) return T; for (var te = Object.keys(q), re = te.length; re--; ) @@ -34069,19 +34069,19 @@ Use Chrome, Firefox or Internet Explorer 11`); } return Object.setPrototypeOf(q, Object.getPrototypeOf(T)), Object.defineProperties(q, k(T)), q; }; - }, 6430: (D, e, p) => { - var w = p(4029), O = p(3083), k = p(5559), S = p(1924), a = p(7296), t = S("Object.prototype.toString"), c = p(6410)(), u = typeof globalThis > "u" ? p.g : globalThis, s = O(), r = S("String.prototype.slice"), n = Object.getPrototypeOf, o = S("Array.prototype.indexOf", !0) || function(f, d) { - for (var h = 0; h < f.length; h += 1) - if (f[h] === d) - return h; + }, 6430: (D, e, h) => { + var w = h(4029), O = h(3083), k = h(5559), S = h(1924), a = h(7296), t = S("Object.prototype.toString"), c = h(6410)(), u = typeof globalThis > "u" ? h.g : globalThis, s = O(), r = S("String.prototype.slice"), n = Object.getPrototypeOf, o = S("Array.prototype.indexOf", !0) || function(f, d) { + for (var p = 0; p < f.length; p += 1) + if (f[p] === d) + return p; return -1; }, i = { __proto__: null }; w(s, c && a && n ? function(f) { var d = new u[f](); if (Symbol.toStringTag in d) { - var h = n(d), _ = a(h, Symbol.toStringTag); + var p = n(d), _ = a(p, Symbol.toStringTag); if (!_) { - var b = n(h); + var b = n(p); _ = a(b, Symbol.toStringTag); } i["$" + f] = k(_.get); @@ -34094,30 +34094,30 @@ Use Chrome, Firefox or Internet Explorer 11`); return !1; if (!c) { var d = r(t(f), 8, -1); - return o(s, d) > -1 ? d : d === "Object" && function(h) { + return o(s, d) > -1 ? d : d === "Object" && function(p) { var _ = !1; return w(i, function(b, I) { if (!_) try { - b(h), _ = r(I, 1); + b(p), _ = r(I, 1); } catch { } }), _; }(f); } - return a ? function(h) { + return a ? function(p) { var _ = !1; return w(i, function(b, I) { if (!_) try { - "$" + b(h) === I && (_ = r(I, 1)); + "$" + b(p) === I && (_ = r(I, 1)); } catch { } }), _; }(f) : null; }; - }, 9898: (D, e, p) => { - var w = p(8764).Buffer, O = p(8334); + }, 9898: (D, e, h) => { + var w = h(8764).Buffer, O = h(8334); function k(a, t) { if (t !== void 0 && a[0] !== t) throw new Error("Invalid network version"); @@ -34144,8 +34144,8 @@ Use Chrome, Firefox or Internet Explorer 11`); }, 2361: () => { }, 4616: () => { }, 3954: () => { - }, 3083: (D, e, p) => { - var w = ["BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray"], O = typeof globalThis > "u" ? p.g : globalThis; + }, 3083: (D, e, h) => { + var w = ["BigInt64Array", "BigUint64Array", "Float32Array", "Float64Array", "Int16Array", "Int32Array", "Int8Array", "Uint16Array", "Uint32Array", "Uint8Array", "Uint8ClampedArray"], O = typeof globalThis > "u" ? h.g : globalThis; D.exports = function() { for (var k = [], S = 0; S < w.length; S++) typeof O[w[S]] == "function" && (k[k.length] = w[S]); @@ -34178,8 +34178,8 @@ Use Chrome, Firefox or Internet Explorer 11`); var e = __webpack_module_cache__[D]; if (e !== void 0) return e.exports; - var p = __webpack_module_cache__[D] = { id: D, loaded: !1, exports: {} }; - return __webpack_modules__[D].call(p.exports, p, p.exports, __webpack_require__), p.loaded = !0, p.exports; + var h = __webpack_module_cache__[D] = { id: D, loaded: !1, exports: {} }; + return __webpack_modules__[D].call(h.exports, h, h.exports, __webpack_require__), h.loaded = !0, h.exports; } __webpack_require__.g = function() { if (typeof globalThis == "object") @@ -34199,16 +34199,16 @@ var browserExports = browser.exports; const DEFAULT_SECRET_LCD_ENDPOINT = "https://lcd.secret.express/", SECRET_MAINNET_CHAIN_ID = "secret-4", getSecretNetworkClient$ = ({ lcdEndpoint: D, chainId: e, - walletAccount: p + walletAccount: h }) => createFetchClient(defer( - () => of(p ? { + () => of(h ? { client: new browserExports.SecretNetworkClient({ url: D, - wallet: p.signer, - walletAddress: p.walletAddress, + wallet: h.signer, + walletAddress: h.walletAddress, chainId: e, - encryptionUtils: p.encryptionUtils, - encryptionSeed: p.encryptionSeed + encryptionUtils: h.encryptionUtils, + encryptionSeed: h.encryptionSeed }), endpoint: D, chainId: e @@ -34227,9 +34227,9 @@ function getActiveQueryClient$(D, e) { lcdEndpoint: D ?? DEFAULT_SECRET_LCD_ENDPOINT, chainId: e ?? SECRET_MAINNET_CHAIN_ID }).pipe( - tap(({ client: p }) => { + tap(({ client: h }) => { activeClient = { - client: p, + client: h, endpoint: D ?? DEFAULT_SECRET_LCD_ENDPOINT, chainId: e ?? SECRET_MAINNET_CHAIN_ID }; @@ -34239,18 +34239,18 @@ function getActiveQueryClient$(D, e) { } function parseBatchQuery(D) { const { responses: e } = D.batch; - return e.map((p) => ({ - id: decodeB64ToJson(p.id), - response: decodeB64ToJson(p.response.response) + return e.map((h) => ({ + id: decodeB64ToJson(h.id), + response: decodeB64ToJson(h.response.response) })); } const batchQuery$ = ({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, queries: O -}) => getActiveQueryClient$(p, w).pipe( +}) => getActiveQueryClient$(h, w).pipe( switchMap(({ client: k }) => sendSecretClientContractQuery$({ queryMsg: msgBatchQuery(O), client: k, @@ -34263,14 +34263,14 @@ const batchQuery$ = ({ async function batchQuery({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, queries: O }) { return lastValueFrom(batchQuery$({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, queries: O })); @@ -34282,25 +34282,25 @@ const parsePriceFromContract = (D) => ({ lastUpdatedQuote: D.data.last_updated_quote }); function parsePricesFromContract(D) { - return D.reduce((e, p) => ({ + return D.reduce((e, h) => ({ ...e, - [p.key]: { - oracleKey: p.key, - rate: p.data.rate, - lastUpdatedBase: p.data.last_updated_base, - lastUpdatedQuote: p.data.last_updated_quote + [h.key]: { + oracleKey: h.key, + rate: h.data.rate, + lastUpdatedBase: h.data.last_updated_base, + lastUpdatedQuote: h.data.last_updated_quote } }), {}); } const queryPrice$ = ({ contractAddress: D, codeHash: e, - oracleKey: p, + oracleKey: h, lcdEndpoint: w, chainId: O }) => getActiveQueryClient$(w, O).pipe( switchMap(({ client: k }) => sendSecretClientContractQuery$({ - queryMsg: msgQueryOraclePrice(p), + queryMsg: msgQueryOraclePrice(h), client: k, contractAddress: D, codeHash: e @@ -34311,14 +34311,14 @@ const queryPrice$ = ({ async function queryPrice({ contractAddress: D, codeHash: e, - oracleKey: p, + oracleKey: h, lcdEndpoint: w, chainId: O }) { return lastValueFrom(queryPrice$({ contractAddress: D, codeHash: e, - oracleKey: p, + oracleKey: h, lcdEndpoint: w, chainId: O })); @@ -34326,12 +34326,12 @@ async function queryPrice({ const queryPrices$ = ({ contractAddress: D, codeHash: e, - oracleKeys: p, + oracleKeys: h, lcdEndpoint: w, chainId: O }) => getActiveQueryClient$(w, O).pipe( switchMap(({ client: k }) => sendSecretClientContractQuery$({ - queryMsg: msgQueryOraclePrices(p), + queryMsg: msgQueryOraclePrices(h), client: k, contractAddress: D, codeHash: e @@ -34342,14 +34342,14 @@ const queryPrices$ = ({ async function queryPrices({ contractAddress: D, codeHash: e, - oracleKeys: p, + oracleKeys: h, lcdEndpoint: w, chainId: O }) { return lastValueFrom(queryPrices$({ contractAddress: D, codeHash: e, - oracleKeys: p, + oracleKeys: h, lcdEndpoint: w, chainId: O })); @@ -34362,9 +34362,9 @@ const parseTokenInfo = (D) => ({ }), parseBalance = (D) => D.balance.amount, querySnip20TokenInfo$ = ({ snip20ContractAddress: D, snip20CodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w -}) => getActiveQueryClient$(p, w).pipe( +}) => getActiveQueryClient$(h, w).pipe( switchMap(({ client: O }) => sendSecretClientContractQuery$({ queryMsg: snip20.queries.tokenInfo(), client: O, @@ -34377,26 +34377,26 @@ const parseTokenInfo = (D) => ({ async function querySnip20TokenInfo({ snip20ContractAddress: D, snip20CodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w }) { return lastValueFrom(querySnip20TokenInfo$({ snip20ContractAddress: D, snip20CodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w })); } const querySnip20Balance$ = ({ snip20ContractAddress: D, snip20CodeHash: e, - userAddress: p, + userAddress: h, viewingKey: w, lcdEndpoint: O, chainId: k }) => getActiveQueryClient$(O, k).pipe( switchMap(({ client: S }) => sendSecretClientContractQuery$({ - queryMsg: snip20.queries.getBalance(p, w), + queryMsg: snip20.queries.getBalance(h, w), client: S, contractAddress: D, codeHash: e @@ -34407,7 +34407,7 @@ const querySnip20Balance$ = ({ async function querySnip20Balance({ snip20ContractAddress: D, snip20CodeHash: e, - userAddress: p, + userAddress: h, viewingKey: w, lcdEndpoint: O, chainId: k @@ -34415,14 +34415,14 @@ async function querySnip20Balance({ return lastValueFrom(querySnip20Balance$({ snip20ContractAddress: D, snip20CodeHash: e, - userAddress: p, + userAddress: h, viewingKey: w, lcdEndpoint: O, chainId: k })); } function parseFactoryConfig(D) { - const { get_config: e } = D, { amm_settings: p } = e; + const { get_config: e } = D, { amm_settings: h } = e; return { pairContractInstatiationInfo: { codeHash: e.pair_contract.code_hash, @@ -34441,13 +34441,13 @@ function parseFactoryConfig(D) { codeHash: e.authenticator.code_hash } : null, defaultPairSettings: { - lpFee: p.lp_fee.nom / p.lp_fee.denom, - daoFee: p.shade_dao_fee.nom / p.shade_dao_fee.denom, - stableLpFee: p.stable_lp_fee.nom / p.stable_lp_fee.denom, - stableDaoFee: p.stable_shade_dao_fee.nom / p.stable_shade_dao_fee.denom, + lpFee: h.lp_fee.nom / h.lp_fee.denom, + daoFee: h.shade_dao_fee.nom / h.shade_dao_fee.denom, + stableLpFee: h.stable_lp_fee.nom / h.stable_lp_fee.denom, + stableDaoFee: h.stable_shade_dao_fee.nom / h.stable_shade_dao_fee.denom, daoContract: { - address: p.shade_dao_address.address, - codeHash: p.shade_dao_address.code_hash + address: h.shade_dao_address.address, + codeHash: h.shade_dao_address.code_hash } } }; @@ -34455,7 +34455,7 @@ function parseFactoryConfig(D) { function parseFactoryPairs({ response: D, startingIndex: e, - limit: p + limit: h }) { const { amm_pairs: w } = D.list_a_m_m_pairs; return { @@ -34476,14 +34476,14 @@ function parseFactoryPairs({ isEnabled: k.enabled })), startIndex: e, - endIndex: e + p - 1 + endIndex: e + h - 1 }; } function parsePairConfig(D) { const { get_config: { factory_contract: e, - lp_token: p, + lp_token: h, staking_contract: w, pair: O, custom_fee: k @@ -34494,9 +34494,9 @@ function parsePairConfig(D) { address: e.address, codeHash: e.code_hash } : null, - lpTokenContract: p ? { - address: p.address, - codeHash: p.code_hash + lpTokenContract: h ? { + address: h.address, + codeHash: h.code_hash } : null, stakingContract: w ? { address: w.address, @@ -34513,13 +34513,13 @@ function parsePairConfig(D) { isStable: O[2], fee: k ? { lpFee: k.lp_fee.nom / k.lp_fee.denom, - daoFee: k.lp_fee.nom / k.lp_fee.denom + daoFee: k.shade_dao_fee.nom / k.shade_dao_fee.denom } : null }; } function parsePairInfo(D) { const { get_pair_info: e } = D, { - fee_info: p, + fee_info: h, stable_info: w } = e; return { @@ -34539,13 +34539,13 @@ function parsePairInfo(D) { address: e.factory.address, codeHash: e.factory.code_hash } : null, - daoContractAddress: p.shade_dao_address, + daoContractAddress: h.shade_dao_address, isStable: e.pair[2], token0Amount: e.amount_0, token1Amount: e.amount_1, lpTokenAmount: e.total_liquidity, - lpFee: e.pair[2] ? p.stable_lp_fee.nom / p.stable_lp_fee.denom : p.lp_fee.nom / p.lp_fee.denom, - daoFee: e.pair[2] ? p.stable_shade_dao_fee.nom / p.stable_shade_dao_fee.denom : p.shade_dao_fee.nom / p.shade_dao_fee.denom, + lpFee: e.pair[2] ? h.stable_lp_fee.nom / h.stable_lp_fee.denom : h.lp_fee.nom / h.lp_fee.denom, + daoFee: e.pair[2] ? h.stable_shade_dao_fee.nom / h.stable_shade_dao_fee.denom : h.shade_dao_fee.nom / h.shade_dao_fee.denom, stableParams: w ? { priceRatio: w.p, // if stable params exist, we know price ratio will be available @@ -34579,11 +34579,14 @@ function parsePairInfo(D) { const parseBatchQueryPairInfoResponse = (D) => D.map((e) => ({ pairContractAddress: e.id, pairInfo: parsePairInfo(e.response) +})), parseBatchQueryPairConfigResponse = (D) => D.map((e) => ({ + pairContractAddress: e.id, + pairConfig: parsePairConfig(e.response) })); function parseStakingInfo(D) { const { lp_token: e, - amm_pair: p, + amm_pair: h, admin_auth: w, query_auth: O, total_amount_staked: k, @@ -34594,7 +34597,7 @@ function parseStakingInfo(D) { address: e.address, codeHash: e.code_hash }, - pairContractAddress: p, + pairContractAddress: h, adminAuthContract: { address: w.address, codeHash: w.code_hash @@ -34620,7 +34623,7 @@ const parseBatchQueryStakingInfoResponse = (D) => D.map((e) => ({ stakingContractAddress: e.id, stakingInfo: parseStakingInfo(e.response) })), parseSwapResponse = (D) => { - let e, p, w, O; + let e, h, w, O; const k = D.transactionHash, { jsonLog: S } = D; if (S !== void 0 && S.length > 0) { const a = S[0].events.find((t) => t.type === "wasm"); @@ -34628,27 +34631,27 @@ const parseBatchQueryStakingInfoResponse = (D) => D.map((e) => ({ return { txHash: k, inputTokenAddress: e, - outputTokenAddress: p, + outputTokenAddress: h, inputTokenAmount: w, outputTokenAmount: O }; a.attributes.forEach((t) => { - t.key.trim() === "amount_out" ? O = t.value.trim() : t.key.trim() === "amount_in" && w === void 0 ? w = t.value.trim() : t.key.trim() === "token_out_key" ? p = t.value.trim() : t.key.trim() === "token_in_key" && e === void 0 && (e = t.value.trim()); + t.key.trim() === "amount_out" ? O = t.value.trim() : t.key.trim() === "amount_in" && w === void 0 ? w = t.value.trim() : t.key.trim() === "token_out_key" ? h = t.value.trim() : t.key.trim() === "token_in_key" && e === void 0 && (e = t.value.trim()); }); } return { txHash: k, inputTokenAddress: e, - outputTokenAddress: p, + outputTokenAddress: h, inputTokenAmount: w, outputTokenAmount: O }; }, queryFactoryConfig$ = ({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w -}) => getActiveQueryClient$(p, w).pipe( +}) => getActiveQueryClient$(h, w).pipe( switchMap(({ client: O }) => sendSecretClientContractQuery$({ queryMsg: msgQueryFactoryConfig(), client: O, @@ -34661,33 +34664,33 @@ const parseBatchQueryStakingInfoResponse = (D) => D.map((e) => ({ async function queryFactoryConfig({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w }) { return lastValueFrom(queryFactoryConfig$({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w })); } const queryFactoryPairs$ = ({ contractAddress: D, codeHash: e, - startingIndex: p, + startingIndex: h, limit: w, lcdEndpoint: O, chainId: k }) => getActiveQueryClient$(O, k).pipe( switchMap(({ client: S }) => sendSecretClientContractQuery$({ - queryMsg: msgQueryFactoryPairs(p, w), + queryMsg: msgQueryFactoryPairs(h, w), client: S, contractAddress: D, codeHash: e })), map((S) => parseFactoryPairs({ response: S, - startingIndex: p, + startingIndex: h, limit: w })), first() @@ -34695,7 +34698,7 @@ const queryFactoryPairs$ = ({ async function queryFactoryPairs({ contractAddress: D, codeHash: e, - startingIndex: p, + startingIndex: h, limit: w, lcdEndpoint: O, chainId: k @@ -34703,7 +34706,7 @@ async function queryFactoryPairs({ return lastValueFrom(queryFactoryPairs$({ contractAddress: D, codeHash: e, - startingIndex: p, + startingIndex: h, limit: w, lcdEndpoint: O, chainId: k @@ -34712,9 +34715,9 @@ async function queryFactoryPairs({ const queryPairConfig$ = ({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w -}) => getActiveQueryClient$(p, w).pipe( +}) => getActiveQueryClient$(h, w).pipe( switchMap(({ client: O }) => sendSecretClientContractQuery$({ queryMsg: msgQueryPairConfig(), client: O, @@ -34727,20 +34730,20 @@ const queryPairConfig$ = ({ async function queryPairConfig({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w }) { return lastValueFrom(queryPairConfig$({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w })); } function batchQueryPairsInfo$({ queryRouterContractAddress: D, queryRouterCodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, pairsContracts: O }) { @@ -34755,7 +34758,7 @@ function batchQueryPairsInfo$({ return batchQuery$({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, queries: k }).pipe( @@ -34766,14 +34769,55 @@ function batchQueryPairsInfo$({ async function batchQueryPairsInfo({ queryRouterContractAddress: D, queryRouterCodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, pairsContracts: O }) { return lastValueFrom(batchQueryPairsInfo$({ queryRouterContractAddress: D, queryRouterCodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, + chainId: w, + pairsContracts: O + })); +} +function batchQueryPairsConfig$({ + queryRouterContractAddress: D, + queryRouterCodeHash: e, + lcdEndpoint: h, + chainId: w, + pairsContracts: O +}) { + const k = O.map((S) => ({ + id: S.address, + contract: { + address: S.address, + codeHash: S.codeHash + }, + queryMsg: msgQueryPairConfig() + })); + return batchQuery$({ + contractAddress: D, + codeHash: e, + lcdEndpoint: h, + chainId: w, + queries: k + }).pipe( + map(parseBatchQueryPairConfigResponse), + first() + ); +} +async function batchQueryPairsConfig({ + queryRouterContractAddress: D, + queryRouterCodeHash: e, + lcdEndpoint: h, + chainId: w, + pairsContracts: O +}) { + return lastValueFrom(batchQueryPairsConfig$({ + queryRouterContractAddress: D, + queryRouterCodeHash: e, + lcdEndpoint: h, chainId: w, pairsContracts: O })); @@ -34781,7 +34825,7 @@ async function batchQueryPairsInfo({ function batchQueryStakingInfo$({ queryRouterContractAddress: D, queryRouterCodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, stakingContracts: O }) { @@ -34796,7 +34840,7 @@ function batchQueryStakingInfo$({ return batchQuery$({ contractAddress: D, codeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, queries: k }).pipe( @@ -34807,14 +34851,14 @@ function batchQueryStakingInfo$({ async function batchQueryStakingInfo({ queryRouterContractAddress: D, queryRouterCodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, stakingContracts: O }) { return lastValueFrom(batchQueryStakingInfo$({ queryRouterContractAddress: D, queryRouterCodeHash: e, - lcdEndpoint: p, + lcdEndpoint: h, chainId: w, stakingContracts: O })); @@ -34827,11 +34871,11 @@ class NewtonMethodError extends Error { function newton({ f: D, df: e, - initialGuess: p, + initialGuess: h, epsilon: w, maxIterations: O }) { - let k = p; + let k = h; for (let S = 0; S < O; S += 1) { const a = k, t = D(k), c = e(k); if (c.isEqualTo(0)) @@ -34844,18 +34888,18 @@ function newton({ function bisect({ f: D, a: e, - b: p, + b: h, epsilon: w, maxIterations: O }) { - const k = D(e), S = D(p); + const k = D(e), S = D(h); if (k.isEqualTo(0)) return e; if (S.isEqualTo(0)) - return p; + return h; if (k.isGreaterThan(0) && S.isGreaterThan(0) || k.isLessThan(0) && S.isLessThan(0)) throw Error("bisect endpoints must have different signs"); - let a = p.minus(e), t = e; + let a = h.minus(e), t = e; for (let c = 0; c < O; c += 1) { a = a.multipliedBy(BigNumber(0.5)); const u = t.plus(a), s = D(u); @@ -34867,7 +34911,7 @@ function bisect({ function calcZero({ f: D, df: e, - initialGuessNewton: p, + initialGuessNewton: h, upperBoundBisect: w, ignoreNegativeResult: O, lazyLowerBoundBisect: k, @@ -34878,7 +34922,7 @@ function calcZero({ const u = newton({ f: D, df: e, - initialGuess: p, + initialGuess: h, epsilon: a, maxIterations: t }); @@ -34917,7 +34961,7 @@ function verifySwapAmountInBounds(D, e) { class StableConfig { constructor({ pool0Size: e, - pool1Size: p, + pool1Size: h, priceRatio: w, alpha: O, gamma1: k, @@ -34955,14 +34999,14 @@ class StableConfig { Fe(this, "minTradeSize0For1"); Fe(this, "minTradeSize1For0"); Fe(this, "priceImpactLimit"); - BigNumber.set({ DECIMAL_PLACES: 30 }), this.pool0Size = e, this.pool1Size = p, this.priceOfToken1 = w, this.alpha = O, this.gamma1 = k, this.gamma2 = S, this.lpFee = a, this.shadeDaoFee = t, this.invariant = this.calculateInvariant(), this.minTradeSize0For1 = c, this.minTradeSize1For0 = u, this.priceImpactLimit = s; + BigNumber.set({ DECIMAL_PLACES: 30 }), this.pool0Size = e, this.pool1Size = h, this.priceOfToken1 = w, this.alpha = O, this.gamma1 = k, this.gamma2 = S, this.lpFee = a, this.shadeDaoFee = t, this.invariant = this.calculateInvariant(), this.minTradeSize0For1 = c, this.minTradeSize1For0 = u, this.priceImpactLimit = s; } // solves the invariant fn to find the balanced amount of y for the given x // e.g. for a given pool size x, what is the correct pool size y so that the // invariant is not changed? // analogous to 'output = (x * y) / (x + input)' for constant product trades solveInvFnForPool1Size(e) { - const p = e.dividedBy(this.invariant), w = (S) => this.invariantFnFromPoolSizes(p, S), O = (S) => this.derivRespectToPool1OfInvFn(p, S); + const h = e.dividedBy(this.invariant), w = (S) => this.invariantFnFromPoolSizes(h, S), O = (S) => this.derivRespectToPool1OfInvFn(h, S); return this.findZeroWithPool1Params(w, O).multipliedBy(this.invariant).dividedBy(this.priceOfToken1); } // solves the invariant fn to find the balanced amount of x for the given y @@ -34970,18 +35014,18 @@ class StableConfig { // invariant is not changed? // analogous to 'output = (x * y) / (y + input)' for constant product trades solveInvFnForPool0Size(e) { - const p = e.dividedBy(this.invariant), w = (S) => this.invariantFnFromPoolSizes(S, p), O = (S) => this.derivRespectToPool0OfInvFnFromPool0(S, p); + const h = e.dividedBy(this.invariant), w = (S) => this.invariantFnFromPoolSizes(S, h), O = (S) => this.derivRespectToPool0OfInvFnFromPool0(S, h); return this.findZeroWithPool0Params(w, O).multipliedBy(this.invariant); } // Executes a swap of x for y, if the trade is within amount and slippage bounds. swapToken0WithToken1(e) { - const p = this.simulateToken0WithToken1Trade(e); - return this.executeTrade(p); + const h = this.simulateToken0WithToken1Trade(e); + return this.executeTrade(h); } // Executes a swap of y for x, if the trade is within amount and slippage bounds. swapToken1WithToken0(e) { - const p = this.simulateToken1WithToken0Trade(e); - return this.executeTrade(p); + const h = this.simulateToken1WithToken0Trade(e); + return this.executeTrade(h); } // Applies the data from a TradeResult to the given conf. // takes a simulated trade and actually updates the config's values to reflect that the @@ -34992,7 +35036,7 @@ class StableConfig { // Simulates a swap of x for y, given the output y, if the trade is within amount and slippage bounds. // Returns data about the state of the conf after the swap. simulateReverseToken0WithToken1Trade(e) { - const p = this.lpFee.multipliedBy(e), w = this.shadeDaoFee.multipliedBy(e), O = p.plus(w), k = e.minus(O), S = this.pool1Size.minus(e), a = S.multipliedBy(this.priceOfToken1), t = this.solveInvFnForPool0Size(a); + const h = this.lpFee.multipliedBy(e), w = this.shadeDaoFee.multipliedBy(e), O = h.plus(w), k = e.minus(O), S = this.pool1Size.minus(e), a = S.multipliedBy(this.priceOfToken1), t = this.solveInvFnForPool0Size(a); this.verifySwapPriceImpactInBounds({ pool0Size: t, pool1Size: S, @@ -35000,20 +35044,20 @@ class StableConfig { }); const c = t.minus(this.pool0Size); verifySwapAmountInBounds(c, this.minTradeSize0For1); - const u = S.plus(p); + const u = S.plus(h); return { newPool0: t, newPool1: u, tradeInput: c, tradeReturn: k, - lpFeeAmount: p, + lpFeeAmount: h, shadeDaoFeeAmount: w }; } // Simulates a swap of y for x, given the output x, if the trade is within amount and slippage bounds. // Returns data about the state of the conf after the swap. simulateReverseToken1WithToken0Trade(e) { - const p = this.lpFee.multipliedBy(e), w = this.shadeDaoFee.multipliedBy(e), O = p.plus(w), k = e.minus(O), S = this.pool0Size.minus(e), a = this.solveInvFnForPool1Size(S); + const h = this.lpFee.multipliedBy(e), w = this.shadeDaoFee.multipliedBy(e), O = h.plus(w), k = e.minus(O), S = this.pool0Size.minus(e), a = this.solveInvFnForPool1Size(S); this.verifySwapPriceImpactInBounds({ pool0Size: S, pool1Size: a, @@ -35021,11 +35065,11 @@ class StableConfig { }); const t = a.minus(this.pool1Size); return verifySwapAmountInBounds(t, this.minTradeSize1For0), { - newPool0: S.plus(p), + newPool0: S.plus(h), newPool1: a, tradeInput: t, tradeReturn: k, - lpFeeAmount: p, + lpFeeAmount: h, shadeDaoFeeAmount: w }; } @@ -35033,15 +35077,15 @@ class StableConfig { // Returns data about the state of the conf after the swap. simulateToken0WithToken1Trade(e) { verifySwapAmountInBounds(e, this.minTradeSize0For1); - const p = this.pool0Size.plus(e), w = this.solveInvFnForPool1Size(p); + const h = this.pool0Size.plus(e), w = this.solveInvFnForPool1Size(h); this.verifySwapPriceImpactInBounds({ - pool0Size: p, + pool0Size: h, pool1Size: w, tradeDirIs0For1: !0 }); const O = this.pool1Size.minus(w), k = this.lpFee.multipliedBy(O), S = this.shadeDaoFee.multipliedBy(O), a = w.plus(k); return { - newPool0: p, + newPool0: h, newPool1: a, tradeReturn: O.minus(k).minus(S), lpFeeAmount: k, @@ -35052,16 +35096,16 @@ class StableConfig { // Returns data about the state of the conf after the swap. simulateToken1WithToken0Trade(e) { verifySwapAmountInBounds(e, this.minTradeSize1For0); - const p = this.pool1Size.plus(e), w = this.priceOfToken1.multipliedBy(p), O = this.solveInvFnForPool0Size(w); + const h = this.pool1Size.plus(e), w = this.priceOfToken1.multipliedBy(h), O = this.solveInvFnForPool0Size(w); this.verifySwapPriceImpactInBounds({ pool0Size: O, - pool1Size: p, + pool1Size: h, tradeDirIs0For1: !1 }); const k = this.pool0Size.minus(O), S = this.lpFee.multipliedBy(k), a = this.shadeDaoFee.multipliedBy(k); return { newPool0: O.plus(S), - newPool1: p, + newPool1: h, tradeReturn: k.minus(S).minus(a), lpFeeAmount: S, shadeDaoFeeAmount: a @@ -35074,12 +35118,12 @@ class StableConfig { // The price of that token in the pool will always increase, leading to a positive price impact. verifySwapPriceImpactInBounds({ pool0Size: e, - pool1Size: p, + pool1Size: h, tradeDirIs0For1: w }) { const O = this.priceImpactAt({ newPool0: e, - newPool1: p, + newPool1: h, tradeDirIs0For1: w }); if (O.isGreaterThan(this.priceImpactLimit) || O.isLessThan(BigNumber(0))) @@ -35089,18 +35133,18 @@ class StableConfig { // relative to the current values stored in conf. priceImpactAt({ newPool0: e, - newPool1: p, + newPool1: h, tradeDirIs0For1: w }) { const O = w ? this.priceToken1() : this.priceToken0(); - return (w ? this.priceToken1At(e, p) : this.priceToken0At(e, p)).dividedBy(O).minus(BigNumber(1)).multipliedBy(100); + return (w ? this.priceToken1At(e, h) : this.priceToken0At(e, h)).dividedBy(O).minus(BigNumber(1)).multipliedBy(100); } // Returns the price impact for a swap of x for y, given the trade input. // result is expresed as percent so no conversion is necessary, ex. 263.5 = 263.5% priceImpactToken0ForToken1(e) { - const p = this.pool0Size.plus(e), w = this.solveInvFnForPool1Size(p); + const h = this.pool0Size.plus(e), w = this.solveInvFnForPool1Size(h); return this.priceImpactAt({ - newPool0: p, + newPool0: h, newPool1: w, tradeDirIs0For1: !0 }); @@ -35108,30 +35152,30 @@ class StableConfig { // Returns the price impact for a swap of y for x, given the trade input. // result is expresed as percent so no conversion is necessary, ex. 263.5 = 263.5% priceImpactToken1ForToken0(e) { - const p = this.pool1Size.plus(e), w = this.solveInvFnForPool0Size(this.priceOfToken1.multipliedBy(p)); + const h = this.pool1Size.plus(e), w = this.solveInvFnForPool0Size(this.priceOfToken1.multipliedBy(h)); return this.priceImpactAt({ newPool0: w, - newPool1: p, + newPool1: h, tradeDirIs0For1: !1 }); } // Helper method for price. // Returns -1 * slope of tangent to inv curve at (x, y) // The slope (tangent) of the curve is the price of the token - negativeTangent(e, p) { - return this.derivRespectToPool0OfInvFnFromPool0(e, p).dividedBy(this.derivRespectToPool1OfInvFn(e, p)).dividedBy(this.priceOfToken1); + negativeTangent(e, h) { + return this.derivRespectToPool0OfInvFnFromPool0(e, h).dividedBy(this.derivRespectToPool1OfInvFn(e, h)).dividedBy(this.priceOfToken1); } /// Returns the price of y in terms of x, for given pool sizes of x and y. - priceToken1At(e, p) { - return BigNumber(1).dividedBy(this.negativeTangent(e.dividedBy(this.invariant), this.priceOfToken1.multipliedBy(p).dividedBy(this.invariant))); + priceToken1At(e, h) { + return BigNumber(1).dividedBy(this.negativeTangent(e.dividedBy(this.invariant), this.priceOfToken1.multipliedBy(h).dividedBy(this.invariant))); } // Returns the currect price of y in terms of x. priceToken1() { return this.priceToken1At(this.pool0Size, this.pool1Size); } // Returns the price of x in terms of y, for given pool sizes of x and y. - priceToken0At(e, p) { - return this.negativeTangent(e.dividedBy(this.invariant), this.priceOfToken1.multipliedBy(p).dividedBy(this.invariant)); + priceToken0At(e, h) { + return this.negativeTangent(e.dividedBy(this.invariant), this.priceOfToken1.multipliedBy(h).dividedBy(this.invariant)); } // Returns the current price of x in terms of y. priceToken0() { @@ -35160,26 +35204,26 @@ class StableConfig { // Calculates and returns the correct value of the invariant d, given the current conf, // by finding the 0 of the invariant fn.` calculateInvariant() { - const e = this.token1TvlInUnitsToken0(), p = this.pool0Size.isLessThanOrEqualTo(e) ? this.gamma1 : this.gamma2, w = (S) => this.invariantFnFromInv(S, p), O = (S) => this.derivRespectToInvOfInvFn(S, p), k = this.findZeroWithInvariantParams(w, O); + const e = this.token1TvlInUnitsToken0(), h = this.pool0Size.isLessThanOrEqualTo(e) ? this.gamma1 : this.gamma2, w = (S) => this.invariantFnFromInv(S, h), O = (S) => this.derivRespectToInvOfInvFn(S, h), k = this.findZeroWithInvariantParams(w, O); return this.invariant = k, k; } // INVARIANT AND DERIV FUNCTIONS // Returns the invariant as a function of d and gamma - invariantFnFromInv(e, p) { + invariantFnFromInv(e, h) { const w = this.token1TvlInUnitsToken0(), k = this.getCoeffScaledByInv({ invariant: e, - gamma: p, + gamma: h, pool1SizeInUnitsPool0: w }).multipliedBy(e.multipliedBy(this.pool0Size.plus(w.minus(e)))), S = this.pool0Size.multipliedBy(w), a = e.multipliedBy(e).dividedBy(4); return k.plus(S).minus(a); } // Returns the derivative of the invariant fn as a function of d and gamma. - derivRespectToInvOfInvFn(e, p) { + derivRespectToInvOfInvFn(e, h) { const w = this.token1TvlInUnitsToken0(), O = this.getCoeffScaledByInv({ invariant: e, - gamma: p, + gamma: h, pool1SizeInUnitsPool0: w - }), k = BigNumber(-2).multipliedBy(p).plus(1).multipliedBy(this.pool0Size.minus(e).plus(w)).minus(e); + }), k = BigNumber(-2).multipliedBy(h).plus(1).multipliedBy(this.pool0Size.minus(e).plus(w)).minus(e); return O.multipliedBy(k).minus(e.dividedBy(2)); } // returns the 'coefficient' used in the invariant functions, scaled by d @@ -35187,57 +35231,57 @@ class StableConfig { // see whitepaper for full explanation getCoeffScaledByInv({ invariant: e, - gamma: p, + gamma: h, pool1SizeInUnitsPool0: w }) { - return this.alpha.multipliedBy(BigNumber(4).multipliedBy(this.pool0Size.dividedBy(e)).multipliedBy(w.dividedBy(e)).pow(p)); + return this.alpha.multipliedBy(BigNumber(4).multipliedBy(this.pool0Size.dividedBy(e)).multipliedBy(w.dividedBy(e)).pow(h)); } // returns the 'coefficient' used in the invariant functions // this is just a simplification of the math, with no real world meaning // see whitepaper for full explanation getCoeff({ pool0Size: e, - pool1SizeInUnitsPool0: p, + pool1SizeInUnitsPool0: h, gamma: w }) { - const O = e.multipliedBy(p); + const O = e.multipliedBy(h); return this.alpha.multipliedBy(BigNumber(4).multipliedBy(O).pow(w)); } // Returns the invariant fn as a function of x and py - invariantFnFromPoolSizes(e, p) { - const w = e.isLessThanOrEqualTo(p) ? this.gamma1 : this.gamma2, O = e.multipliedBy(p); + invariantFnFromPoolSizes(e, h) { + const w = e.isLessThanOrEqualTo(h) ? this.gamma1 : this.gamma2, O = e.multipliedBy(h); return this.getCoeff({ pool0Size: e, - pool1SizeInUnitsPool0: p, + pool1SizeInUnitsPool0: h, gamma: w - }).multipliedBy(e.plus(p).minus(1)).plus(O).minus(0.25); + }).multipliedBy(e.plus(h).minus(1)).plus(O).minus(0.25); } // Returns the derivative of the invariant fn with respect to x as a function of x and py. - derivRespectToPool0OfInvFnFromPool0(e, p) { - const w = e.isLessThanOrEqualTo(p) ? this.gamma1 : this.gamma2, O = this.getCoeff({ + derivRespectToPool0OfInvFnFromPool0(e, h) { + const w = e.isLessThanOrEqualTo(h) ? this.gamma1 : this.gamma2, O = this.getCoeff({ pool0Size: e, - pool1SizeInUnitsPool0: p, + pool1SizeInUnitsPool0: h, gamma: w - }), k = w.multipliedBy(e.plus(p).minus(1)).dividedBy(e).plus(1); - return O.multipliedBy(k).plus(p); + }), k = w.multipliedBy(e.plus(h).minus(1)).dividedBy(e).plus(1); + return O.multipliedBy(k).plus(h); } // Returns the derivative of the invariant fn with respect to y as a function of x and py. - derivRespectToPool1OfInvFn(e, p) { - const w = e.isLessThanOrEqualTo(p) ? this.gamma1 : this.gamma2, O = this.getCoeff({ + derivRespectToPool1OfInvFn(e, h) { + const w = e.isLessThanOrEqualTo(h) ? this.gamma1 : this.gamma2, O = this.getCoeff({ pool0Size: e, - pool1SizeInUnitsPool0: p, + pool1SizeInUnitsPool0: h, gamma: w - }), k = w.multipliedBy(e.plus(p).minus(1).dividedBy(p)).plus(1); + }), k = w.multipliedBy(e.plus(h).minus(1).dividedBy(h)).plus(1); return O.multipliedBy(k).plus(e); } // ZERO FINDER // Finds and returns a zero for the given fn f (with its derivative df). // Uses guesses and bounds optimized for calculating the invariant as a fn of d - findZeroWithInvariantParams(e, p) { + findZeroWithInvariantParams(e, h) { const w = this.totalTvl(); return calcZero({ f: e, - df: p, + df: h, initialGuessNewton: w, upperBoundBisect: w, ignoreNegativeResult: !0, @@ -35247,11 +35291,11 @@ class StableConfig { } // Finds and returns a zero for the given fn f (with its derivative df). // Uses guesses and bounds optimized for calculating the invariant as a fn of x - findZeroWithPool0Params(e, p) { + findZeroWithPool0Params(e, h) { const w = this.pool0Size.dividedBy(this.invariant); return calcZero({ f: e, - df: p, + df: h, initialGuessNewton: w, upperBoundBisect: w, ignoreNegativeResult: !1, @@ -35261,11 +35305,11 @@ class StableConfig { } // Finds and returns a zero for the given fn f (with its derivative df) // Uses guesses and bounds optimized for calculating the invariant as a fn of y - findZeroWithPool1Params(e, p) { + findZeroWithPool1Params(e, h) { const w = this.token1TvlInUnitsToken0().dividedBy(this.invariant); return calcZero({ f: e, - df: p, + df: h, initialGuessNewton: w, upperBoundBisect: w, ignoreNegativeResult: !1, @@ -35277,75 +35321,75 @@ class StableConfig { function constantProductSwapToken0for1({ token0LiquidityAmount: D, token1LiquidityAmount: e, - token0InputAmount: p, + token0InputAmount: h, fee: w }) { const O = e.minus( - D.multipliedBy(e).dividedBy(D.plus(p)) + D.multipliedBy(e).dividedBy(D.plus(h)) ), k = O.minus(O.multipliedBy(w)); return BigNumber(k.toFixed(0)); } function constantProductReverseSwapToken0for1({ token0LiquidityAmount: D, token1LiquidityAmount: e, - token1OutputAmount: p, + token1OutputAmount: h, fee: w }) { - if (p.isGreaterThanOrEqualTo(e)) + if (h.isGreaterThanOrEqualTo(e)) throw Error("Not enough liquidity for swap"); const O = D.multipliedBy( e ).dividedBy( - p.dividedBy(BigNumber(1).minus(w)).minus(e) + h.dividedBy(BigNumber(1).minus(w)).minus(e) ).plus(D).multipliedBy(-1); return BigNumber(O.toFixed(0)); } function constantProductPriceImpactToken0for1({ token0LiquidityAmount: D, token1LiquidityAmount: e, - token0InputAmount: p + token0InputAmount: h }) { - const w = D.dividedBy(e), O = D.multipliedBy(e), k = D.plus(p), S = O.dividedBy(k), a = e.minus(S); - return p.dividedBy(a).dividedBy(w).minus(1); + const w = D.dividedBy(e), O = D.multipliedBy(e), k = D.plus(h), S = O.dividedBy(k), a = e.minus(S); + return h.dividedBy(a).dividedBy(w).minus(1); } function constantProductSwapToken1for0({ token0LiquidityAmount: D, token1LiquidityAmount: e, - token1InputAmount: p, + token1InputAmount: h, fee: w }) { const O = D.minus( - D.multipliedBy(e).dividedBy(e.plus(p)) + D.multipliedBy(e).dividedBy(e.plus(h)) ), k = O.minus(O.multipliedBy(w)); return BigNumber(k.toFixed(0)); } function constantProductReverseSwapToken1for0({ token0LiquidityAmount: D, token1LiquidityAmount: e, - token0OutputAmount: p, + token0OutputAmount: h, fee: w }) { - if (p.isGreaterThanOrEqualTo(D)) + if (h.isGreaterThanOrEqualTo(D)) throw Error("Not enough liquidity for swap"); const O = e.multipliedBy( D ).dividedBy( - p.dividedBy(BigNumber(1).minus(w)).minus(D) + h.dividedBy(BigNumber(1).minus(w)).minus(D) ).plus(e).multipliedBy(-1); return BigNumber(O.toFixed(0)); } function constantProductPriceImpactToken1for0({ token0LiquidityAmount: D, token1LiquidityAmount: e, - token1InputAmount: p + token1InputAmount: h }) { - const w = e.dividedBy(D), O = e.multipliedBy(D), k = e.plus(p), S = O.dividedBy(k), a = D.minus(S); - return p.dividedBy(a).dividedBy(w).minus(1); + const w = e.dividedBy(D), O = e.multipliedBy(D), k = e.plus(h), S = O.dividedBy(k), a = D.minus(S); + return h.dividedBy(a).dividedBy(w).minus(1); } function stableSwapToken0for1({ inputToken0Amount: D, poolToken0Amount: e, - poolToken1Amount: p, + poolToken1Amount: h, priceRatio: w, alpha: O, gamma1: k, @@ -35359,7 +35403,7 @@ function stableSwapToken0for1({ function r() { return BigNumber.set({ DECIMAL_PLACES: 30 }), new StableConfig({ pool0Size: e, - pool1Size: p, + pool1Size: h, priceRatio: w, alpha: O, gamma1: k, @@ -35376,7 +35420,7 @@ function stableSwapToken0for1({ function stableReverseSwapToken0for1({ outputToken1Amount: D, poolToken0Amount: e, - poolToken1Amount: p, + poolToken1Amount: h, priceRatio: w, alpha: O, gamma1: k, @@ -35390,7 +35434,7 @@ function stableReverseSwapToken0for1({ function r() { return BigNumber.set({ DECIMAL_PLACES: 30 }), new StableConfig({ pool0Size: e, - pool1Size: p, + pool1Size: h, priceRatio: w, alpha: O, gamma1: k, @@ -35408,7 +35452,7 @@ function stableReverseSwapToken0for1({ function stableSwapToken1for0({ inputToken1Amount: D, poolToken0Amount: e, - poolToken1Amount: p, + poolToken1Amount: h, priceRatio: w, alpha: O, gamma1: k, @@ -35422,7 +35466,7 @@ function stableSwapToken1for0({ function r() { return BigNumber.set({ DECIMAL_PLACES: 30 }), new StableConfig({ pool0Size: e, - pool1Size: p, + pool1Size: h, priceRatio: w, alpha: O, gamma1: k, @@ -35439,7 +35483,7 @@ function stableSwapToken1for0({ function stableReverseSwapToken1for0({ outputToken0Amount: D, poolToken0Amount: e, - poolToken1Amount: p, + poolToken1Amount: h, priceRatio: w, alpha: O, gamma1: k, @@ -35453,7 +35497,7 @@ function stableReverseSwapToken1for0({ function r() { return BigNumber.set({ DECIMAL_PLACES: 30 }), new StableConfig({ pool0Size: e, - pool1Size: p, + pool1Size: h, priceRatio: w, alpha: O, gamma1: k, @@ -35471,7 +35515,7 @@ function stableReverseSwapToken1for0({ function stableSwapPriceImpactToken0For1({ inputToken0Amount: D, poolToken0Amount: e, - poolToken1Amount: p, + poolToken1Amount: h, priceRatio: w, alpha: O, gamma1: k, @@ -35485,7 +35529,7 @@ function stableSwapPriceImpactToken0For1({ function r() { return BigNumber.set({ DECIMAL_PLACES: 30 }), new StableConfig({ pool0Size: e, - pool1Size: p, + pool1Size: h, priceRatio: w, alpha: O, gamma1: k, @@ -35505,7 +35549,7 @@ function stableSwapPriceImpactToken0For1({ function stableSwapPriceImpactToken1For0({ inputToken1Amount: D, poolToken0Amount: e, - poolToken1Amount: p, + poolToken1Amount: h, priceRatio: w, alpha: O, gamma1: k, @@ -35519,7 +35563,7 @@ function stableSwapPriceImpactToken1For0({ function r() { return BigNumber.set({ DECIMAL_PLACES: 30 }), new StableConfig({ pool0Size: e, - pool1Size: p, + pool1Size: h, priceRatio: w, alpha: O, gamma1: k, @@ -35540,12 +35584,12 @@ var GasMultiplier = /* @__PURE__ */ ((D) => (D[D.STABLE = 2.7] = "STABLE", D[D.C function getPossiblePaths({ inputTokenContractAddress: D, outputTokenContractAddress: e, - maxHops: p, + maxHops: h, pairs: w }) { const O = [], k = [], S = /* @__PURE__ */ new Set(); function a(t, c) { - if (!(c > p)) { + if (!(c > h)) { if (t === e) { k.push([...O]); return; @@ -35564,18 +35608,18 @@ function getPossiblePaths({ function calculateRoute({ inputTokenAmount: D, inputTokenContractAddress: e, - path: p, + path: h, pairs: w, tokens: O }) { - const k = p.reduce((r, n) => { + const k = h.reduce((r, n) => { const { // set previous pool swap output as the new input outputTokenContractAddress: o, quoteOutputAmount: i, quoteShadeDaoFee: f, quotePriceImpact: d, - quoteLPFee: h, + quoteLPFee: p, gasMultiplier: _ } = r; let b, I, l; @@ -35691,7 +35735,7 @@ function calculateRoute({ outputTokenContractAddress: ee, quoteOutputAmount: b, quoteShadeDaoFee: f.plus(m), - quoteLPFee: h.plus(v), + quoteLPFee: p.plus(v), quotePriceImpact: d.plus(I), gasMultiplier: _ + l }; @@ -35718,21 +35762,21 @@ function calculateRoute({ priceImpact: u, inputTokenContractAddress: e, outputTokenContractAddress: S, - path: p, + path: h, gasMultiplier: s }; } function getRoutes({ inputTokenAmount: D, inputTokenContractAddress: e, - outputTokenContractAddress: p, + outputTokenContractAddress: h, maxHops: w, pairs: O, tokens: k }) { const S = getPossiblePaths({ inputTokenContractAddress: e, - outputTokenContractAddress: p, + outputTokenContractAddress: h, maxHops: w, pairs: O }); @@ -35752,8 +35796,11 @@ function getRoutes({ }, []).sort((t, c) => t.quoteOutputAmount.isGreaterThan(c.quoteOutputAmount) ? -1 : t.quoteOutputAmount.isLessThan(c.quoteOutputAmount) ? 1 : 0); } export { + GasMultiplier, batchQuery, batchQuery$, + batchQueryPairsConfig, + batchQueryPairsConfig$, batchQueryPairsInfo, batchQueryPairsInfo$, batchQueryStakingInfo, @@ -35785,6 +35832,7 @@ export { msgSwap, parseBalance, parseBatchQuery, + parseBatchQueryPairConfigResponse, parseBatchQueryPairInfoResponse, parseBatchQueryStakingInfoResponse, parseFactoryConfig, diff --git a/docs/queries/batch-query.md b/docs/queries/batch-query.md index 64a54cb..6efdbf7 100644 --- a/docs/queries/batch-query.md +++ b/docs/queries/batch-query.md @@ -26,7 +26,7 @@ not yet determined. There is also an unknown variable of the quality of the infr **input** ```ts -type BatchQuery = { +type BatchQueryParams = { id: string | number, contract: { address: string, @@ -46,7 +46,7 @@ async function batchQuery({ codeHash?: string, lcdEndpoint?: string, chainId?: string, - queries: BatchQuery[] + queries: BatchQueryParams[] }): Promise ``` diff --git a/src/contracts/definitions/batchQuery.test.ts b/src/contracts/definitions/batchQuery.test.ts index 4deee43..d489859 100644 --- a/src/contracts/definitions/batchQuery.test.ts +++ b/src/contracts/definitions/batchQuery.test.ts @@ -5,11 +5,11 @@ import { import { msgBatchQuery, } from '~/contracts/definitions/batchQuery'; -import { BatchQuery } from '~/types/contracts/batchQuery/model'; +import { BatchQueryParams } from '~/types/contracts/batchQuery/model'; import { encodeJsonToB64 } from '~/lib/utils'; test('it test the form of the query oracle msg', () => { - const input: BatchQuery[] = [{ + const input: BatchQueryParams[] = [{ id: 'ID', contract: { address: 'CONTRACT_ADDRESS', diff --git a/src/contracts/definitions/batchQuery.ts b/src/contracts/definitions/batchQuery.ts index da4b54f..2ecb469 100644 --- a/src/contracts/definitions/batchQuery.ts +++ b/src/contracts/definitions/batchQuery.ts @@ -1,10 +1,10 @@ import { encodeJsonToB64 } from '~/lib/utils'; -import { BatchQuery } from '~/types/contracts/batchQuery/model'; +import { BatchQueryParams } from '~/types/contracts/batchQuery/model'; /** * batch query multiple contracts/messages at one time */ -const msgBatchQuery = (queries: BatchQuery[]) => ({ +const msgBatchQuery = (queries: BatchQueryParams[]) => ({ batch: { queries: queries.map((batchQuery) => ({ id: encodeJsonToB64(batchQuery.id), diff --git a/src/contracts/services/batchQuery.test.ts b/src/contracts/services/batchQuery.test.ts index d1cf1ea..6c873f3 100644 --- a/src/contracts/services/batchQuery.test.ts +++ b/src/contracts/services/batchQuery.test.ts @@ -8,7 +8,7 @@ import { import { of } from 'rxjs'; import batchPairConfigResponse from '~/test/mocks/batchQuery/batchPairConfigResponse.json'; import { batchPairConfigParsed } from '~/test/mocks/batchQuery/batchPairConfigParsed'; -import { BatchQuery } from '~/types/contracts/batchQuery/model'; +import { BatchQueryParams } from '~/types/contracts/batchQuery/model'; import { msgBatchQuery } from '~/contracts/definitions/batchQuery'; import { parseBatchQuery, @@ -48,7 +48,7 @@ test('it can call the batch query service', async () => { codeHash: 'CODE_HASH', lcdEndpoint: 'LCD_ENDPOINT', chainId: 'CHAIN_ID', - queries: ['BATCH_QUERY' as unknown as BatchQuery], + queries: ['BATCH_QUERY' as unknown as BatchQueryParams], }; // observables function sendSecretClientContractQuery$.mockReturnValueOnce(of(batchPairConfigResponse)); diff --git a/src/contracts/services/batchQuery.ts b/src/contracts/services/batchQuery.ts index 7d7e9f9..543b00d 100644 --- a/src/contracts/services/batchQuery.ts +++ b/src/contracts/services/batchQuery.ts @@ -8,7 +8,7 @@ import { sendSecretClientContractQuery$ } from '~/client/services/clientServices import { getActiveQueryClient$ } from '~/client'; import { msgBatchQuery } from '~/contracts/definitions/batchQuery'; import { - BatchQuery, + BatchQueryParams, BatchQueryParsedResponseItem, BatchQueryParsedResponse, } from '~/types/contracts/batchQuery/model'; @@ -40,7 +40,7 @@ const batchQuery$ = ({ codeHash?: string, lcdEndpoint?: string, chainId?: string, - queries: BatchQuery[] + queries: BatchQueryParams[] }) => getActiveQueryClient$(lcdEndpoint, chainId).pipe( switchMap(({ client }) => sendSecretClientContractQuery$({ queryMsg: msgBatchQuery(queries), @@ -66,7 +66,7 @@ async function batchQuery({ codeHash?: string, lcdEndpoint?: string, chainId?: string, - queries: BatchQuery[] + queries: BatchQueryParams[] }) { return lastValueFrom(batchQuery$({ contractAddress, diff --git a/src/contracts/services/swap.ts b/src/contracts/services/swap.ts index fa376ab..2d26319 100644 --- a/src/contracts/services/swap.ts +++ b/src/contracts/services/swap.ts @@ -32,7 +32,10 @@ import { msgQueryStakingConfig, } from '~/contracts/definitions/swap'; import { Contract } from '~/types/contracts/shared'; -import { BatchQuery, BatchQueryParsedResponse } from '~/types/contracts/batchQuery/model'; +import { + BatchQueryParams, + BatchQueryParsedResponse, +} from '~/types/contracts/batchQuery/model'; import { TxResponse } from 'secretjs'; import { Attribute } from 'secretjs/dist/protobuf/cosmos/base/abci/v1beta1/abci'; import { batchQuery$ } from './batchQuery'; @@ -513,7 +516,7 @@ function batchQueryPairsInfo$({ chainId?: string, pairsContracts: Contract[] }) { - const queries:BatchQuery[] = pairsContracts.map((contract) => ({ + const queries:BatchQueryParams[] = pairsContracts.map((contract) => ({ id: contract.address, contract: { address: contract.address, @@ -574,7 +577,7 @@ function batchQueryPairsConfig$({ chainId?: string, pairsContracts: Contract[] }) { - const queries:BatchQuery[] = pairsContracts.map((contract) => ({ + const queries:BatchQueryParams[] = pairsContracts.map((contract) => ({ id: contract.address, contract: { address: contract.address, @@ -635,7 +638,7 @@ function batchQueryStakingInfo$({ chainId?: string, stakingContracts: Contract[] }) { - const queries:BatchQuery[] = stakingContracts.map((contract) => ({ + const queries:BatchQueryParams[] = stakingContracts.map((contract) => ({ id: contract.address, contract: { address: contract.address, diff --git a/src/types/contracts/batchQuery/model.ts b/src/types/contracts/batchQuery/model.ts index 806e7b7..7107b7c 100644 --- a/src/types/contracts/batchQuery/model.ts +++ b/src/types/contracts/batchQuery/model.ts @@ -1,4 +1,4 @@ -type BatchQuery = { +type BatchQueryParams = { id: string | number, contract: { address: string, @@ -15,7 +15,7 @@ type BatchQueryParsedResponseItem = { type BatchQueryParsedResponse = BatchQueryParsedResponseItem[] export type { - BatchQuery, + BatchQueryParams, BatchQueryParsedResponseItem, BatchQueryParsedResponse, }; diff --git a/src/types/contracts/batchQuery/response.ts b/src/types/contracts/batchQuery/response.ts index b460ba5..08a41cd 100644 --- a/src/types/contracts/batchQuery/response.ts +++ b/src/types/contracts/batchQuery/response.ts @@ -1,4 +1,4 @@ -type BatchQuery = { +type BatchQueryResponseItem = { id: string, contract: { address: string, @@ -11,7 +11,7 @@ type BatchQuery = { type BatchQueryResponse = { batch: { - responses: BatchQuery[], + responses: BatchQueryResponseItem[], } }