@stakekit/widget 0.0.292 → 0.0.294
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/{DateTime-BBRIKkPv.js → DateTime-CMMZj2i-.js} +54 -54
- package/dist/bundle/{assets-vw12jo1v.js → assets-Bc9gJ-IT.js} +6 -6
- package/dist/bundle/{cardano-connector-DCWdS4Lt.js → cardano-connector-4FH7sm5s.js} +2 -2
- package/dist/bundle/{configured-chains-Bc6_pgMo.js → configured-chains-DF5IpaPp.js} +1 -1
- package/dist/bundle/{cosmos-connector-meta-Br67nymZ.js → cosmos-connector-meta-BKRBGzAs.js} +1 -1
- package/dist/bundle/index.bundle.css +1 -1
- package/dist/bundle/index.bundle.js +15768 -15242
- package/dist/bundle/{ledger-connector-wZ-AWITi.js → ledger-connector-Em3Ex6Ns.js} +5 -5
- package/dist/bundle/{network-D8-Flo2u.js → network-D2ajkWp0.js} +1 -1
- package/dist/bundle/{reward-rate-chart-B41r4AU4.js → reward-rate-chart-6q6gJawR.js} +4 -4
- package/dist/bundle/{solana-connector-CXe_nU4I.js → solana-connector-DHrdMGZC.js} +3 -3
- package/dist/bundle/{stellar-connector-Cdl9Hnba.js → stellar-connector-DkR_jg41.js} +2 -2
- package/dist/bundle/{styles.css-BJ7-ORZP.js → styles.css-DQG3ba8V.js} +6 -6
- package/dist/bundle/{substrate-connector-DFeFqV_q.js → substrate-connector-CzewVoQ6.js} +1 -1
- package/dist/bundle/{ton-connector-CWmOukzn.js → ton-connector-CcahoFeW.js} +3 -3
- package/dist/bundle/{transaction-BwhgjU0e.js → transaction-BGiGADTK.js} +1 -1
- package/dist/bundle/{transaction-CUoDE6CU.js → transaction-BvpQWKqm.js} +1 -1
- package/dist/bundle/{transaction-B8S7Vgaq.js → transaction-CD_QhA6u.js} +2 -2
- package/dist/bundle/{transaction-DxrR2BHC.js → transaction-CiEShf7a.js} +1 -1
- package/dist/bundle/{tron-connector--M_0_Iy7.js → tron-connector-Dy_36o_J.js} +3 -3
- package/dist/bundle/{utils-CoW929-6.js → utils-BMTuLksW.js} +1 -1
- package/dist/bundle/{wallet-manager-C3rmOq7t.js → wallet-manager-BLaLHs2U.js} +11 -11
- package/dist/package/{DateTime-DJZXpaqx.js → DateTime-CGVpQQm9.js} +24 -2
- package/dist/package/{assets-BuIo5TOF.js → assets-CEn8BPdT.js} +1 -1
- package/dist/package/{cardano-connector-DIZuipB7.js → cardano-connector-BDWTBXaS.js} +2 -2
- package/dist/package/{configured-chains-B6PD9hvx.js → configured-chains-CRuy8tse.js} +1 -1
- package/dist/package/{cosmos-connector-meta-CgvZWkLV.js → cosmos-connector-meta-B-ke1Dvw.js} +1 -1
- package/dist/package/index.package.css +162 -162
- package/dist/package/index.package.js +4126 -3050
- package/dist/package/{ledger-connector-B3kEcKjM.js → ledger-connector-BQDRUjOJ.js} +5 -5
- package/dist/package/{network-B4Qs3uRl.js → network-K03Uj00V.js} +1 -1
- package/dist/package/{reward-rate-chart-B42ZCby7.js → reward-rate-chart-DBx39GdL.js} +2 -2
- package/dist/package/{solana-connector-VG2pC1EJ.js → solana-connector-fL70NOkD.js} +3 -3
- package/dist/package/{stellar-connector-DO9tJUOg.js → stellar-connector-C_33sqO5.js} +2 -2
- package/dist/package/{styles.css-DwJjrmLr.js → styles.css-BOghDWGq.js} +1 -1
- package/dist/package/{substrate-connector-P80MVt5T.js → substrate-connector-Cr7LEt2o.js} +1 -1
- package/dist/package/{ton-connector-3rqiqNZO.js → ton-connector-81-rUhzX.js} +3 -3
- package/dist/package/{transaction-DTbU7sxm.js → transaction-BHIZ9rKF.js} +1 -1
- package/dist/package/{transaction-CuMGfUeE.js → transaction-C5e_gCK6.js} +1 -1
- package/dist/package/{transaction-V39s0qKU.js → transaction-DMMfLvk1.js} +2 -2
- package/dist/package/{transaction-Do_oUKxl.js → transaction-DgdU5pHH.js} +1 -1
- package/dist/package/{tron-connector-CKUZFHDh.js → tron-connector-Cuez3U16.js} +3 -3
- package/dist/package/{wallet-manager-CioQJQ5H.js → wallet-manager-DWFwmdLb.js} +2 -2
- package/dist/types/domain/earn/contract.d.ts +1 -0
- package/dist/types/generated/yield-provider-ids.d.ts +86 -0
- package/dist/types/index.bundle.d.ts +2 -2
- package/dist/types/index.package.d.ts +2 -2
- package/dist/types/public-api/types.d.ts +21 -3
- package/dist/website/assets/AlertController-Dd3t1FDe.js +1 -0
- package/dist/website/assets/{CaipNetworkUtil-CIgzbD6k.js → CaipNetworkUtil-CyIDQhS0.js} +1 -1
- package/dist/website/assets/DateTime-ByC3zr_K.js +1 -0
- package/dist/website/assets/{HelpersUtil-BokHy7la.js → HelpersUtil-Bpil3MMz.js} +1 -1
- package/dist/website/assets/ModalController-BhWRBcfd.js +5 -0
- package/dist/website/assets/{albedo.module-Dn9vkw3f.js → albedo.module-DkOe0Unb.js} +1 -1
- package/dist/website/assets/assets-DXO6qW6R.js +2 -0
- package/dist/website/assets/{axios-Dl6BaS8Y.js → axios-rFNl7rAx.js} +2 -2
- package/dist/website/assets/{base-signer-b1ff2VPI-DF_m1Hx-.js → base-signer-b1ff2VPI-DEykpag5.js} +1 -1
- package/dist/website/assets/{basic-Bt_YnOIC.js → basic-By5_muQ4.js} +1 -1
- package/dist/website/assets/bignumber-FohbSRh0.js +1 -0
- package/dist/website/assets/blakejs-x6iaQxOd.js +3 -0
- package/dist/website/assets/bn-Ck4DeaX2.js +1 -0
- package/dist/website/assets/{browser-ponyfill-_v4sZCld.js → browser-ponyfill-lHyeX8iJ.js} +1 -1
- package/dist/website/assets/{bs58-CiFyCgrv.js → bs58-gzsgdke5.js} +1 -1
- package/dist/website/assets/{build-DM4Sawu1.js → build-ClRxYQRR.js} +1 -1
- package/dist/website/assets/{build-Butjcagw.js → build-TBrHU398.js} +1 -1
- package/dist/website/assets/{build-B5AnTSOq.js → build-Tl3I8dhV.js} +1 -1
- package/dist/website/assets/{cardano-connector-BC5bF4Y2.js → cardano-connector-8El4Ztf_.js} +9 -9
- package/dist/website/assets/{configured-chains-Bp7rWkOZ.js → configured-chains-DQ_M8-li.js} +1 -1
- package/dist/website/assets/core-BiDQVY37.js +2 -0
- package/dist/website/assets/{cosmos-connector-meta-CZFaunIB.js → cosmos-connector-meta-DRTieEt0.js} +1 -1
- package/dist/website/assets/dist-BVuLBvyS.js +7 -0
- package/dist/website/assets/{dist-BKdXTi2f.js → dist-Bo7ZdXT8.js} +3 -3
- package/dist/website/assets/{dist-7PipG_eL.js → dist-DlLKQSrv.js} +3 -3
- package/dist/website/assets/dist-ZKTSEBXW.js +1 -0
- package/dist/website/assets/{elliptic-j9CClrcl.js → elliptic-BdE4gFqn.js} +2 -2
- package/dist/website/assets/{esm-DVfwo40P.js → esm-BjyHrLEJ.js} +1 -1
- package/dist/website/assets/events-CMzhc0tf.js +1 -0
- package/dist/website/assets/{extrinsic-encoding-B3zynq2U.js → extrinsic-encoding-BIj1XBpl.js} +1 -1
- package/dist/website/assets/{features-LE43LGiF.js → features-Cy1CFK9a.js} +1 -1
- package/dist/website/assets/{fhevm-relayer-DXLb4mIw-bVmGMiQn.js → fhevm-relayer-DXLb4mIw-Bbrz0cha.js} +5 -3
- package/dist/website/assets/freighter.module-DsmrpiWT.js +1 -0
- package/dist/website/assets/index-7hHJ2eI5.js +558 -0
- package/dist/website/assets/index-zFAIWvcU.css +1 -0
- package/dist/website/assets/{index.es-D6B6PG3M.js → index.es-BGzDKZr_.js} +1 -1
- package/dist/website/assets/index.es-BHs2-Pa6.js +1 -0
- package/dist/website/assets/{index.es-wqX1ruQA.js → index.es-Bpga9r91.js} +5 -5
- package/dist/website/assets/{kms_lib-mPebVu09.js → kms_lib-BgnOy0xU.js} +1 -1
- package/dist/website/assets/{kms_lib-Bh_Z1nH6.js → kms_lib-w0jRi8cP.js} +1 -1
- package/dist/website/assets/{ledger-connector-BOOoTKx_.js → ledger-connector-CNNjVgC1.js} +3 -3
- package/dist/website/assets/{lib-es-5LFNYQ9J.js → lib-es-DmH9FYVZ.js} +1 -1
- package/dist/website/assets/lobstr.module-BUAItZUt.js +1 -0
- package/dist/website/assets/{nacl-fast-BI97gFtf.js → nacl-fast-B5R4wpqG.js} +1 -1
- package/dist/website/assets/{nacl-util-DCWJejqG.js → nacl-util-6167mj42.js} +1 -1
- package/dist/website/assets/{network-CEcIzsgc.js → network-BVzpe0Ii.js} +1 -1
- package/dist/website/assets/{polkadot-ledger-transaction-DaDP252u.js → polkadot-ledger-transaction-Dp6EFfyV.js} +1 -1
- package/dist/website/assets/registry-BgQw-qJW.js +1 -0
- package/dist/website/assets/{reward-rate-chart-COP_M115.js → reward-rate-chart-CO_yI4og.js} +4 -4
- package/dist/website/assets/{safe-buffer-Dz6e-rwu.js → safe-buffer-BUgQmBOp.js} +1 -1
- package/dist/website/assets/{safe-connector-DG2cXEO5.js → safe-connector-BObu9WgG.js} +2 -2
- package/dist/website/assets/{solana-connector-DSpWnxwA.js → solana-connector-CVuV_EKp.js} +1 -1
- package/dist/website/assets/{src-Zq1Jw-Sn.js → src-DbdC_Alu.js} +1 -1
- package/dist/website/assets/{src-hSPfFTzN.js → src-Dl7INWvU.js} +1 -1
- package/dist/website/assets/state-D5Nw1L4F.js +1 -0
- package/dist/website/assets/{stellar-connector-BAbbdkSK.js → stellar-connector-Ba7Jcrbg.js} +1 -1
- package/dist/website/assets/styles.css-NtRiu07M.js +1 -0
- package/dist/website/assets/substrate-connector-hQ3vc47X.js +2 -0
- package/dist/website/assets/tfhe-BACovsAk.js +1 -0
- package/dist/website/assets/{tfhe-DuWT_ao1.js → tfhe-BSAXrnM6.js} +1 -1
- package/dist/website/assets/ton-connector-CU1xiP2u.js +2264 -0
- package/dist/website/assets/tracking-variants-CtfEiKNR.js +93 -0
- package/dist/website/assets/{transaction-BH4ssPh3.js → transaction-B5hUD0AE.js} +1 -1
- package/dist/website/assets/{transaction-BVuftLt1.js → transaction-BWEzzOww.js} +1 -1
- package/dist/website/assets/transaction-BmFUkzQv.js +2 -0
- package/dist/website/assets/{transaction-1KdJeqcp.js → transaction-C_iyacpP.js} +1 -1
- package/dist/website/assets/{tron-connector-CJURHEQe.js → tron-connector-gXtlAAuG.js} +7 -7
- package/dist/website/assets/{tx-Bkou_ALe.js → tx-Cosvp39i.js} +1 -1
- package/dist/website/assets/{utils-CH0e59XB.js → utils-meUBO1X1.js} +1 -1
- package/dist/website/assets/{viem-BQ_7aeKB.js → viem-8-EtcU49.js} +1 -1
- package/dist/website/assets/{w3m-modal-BLY--NNS.js → w3m-modal-HS9RLkN8.js} +2 -2
- package/dist/website/assets/wallet-manager-BQrZx180.js +5 -0
- package/dist/website/assets/{web-4qAQ-Ymk.js → web-azgm2Psf.js} +1 -1
- package/dist/website/assets/{wui-list-item-1gzb5UQJ.js → wui-list-item-CfZ1WQql.js} +1 -1
- package/dist/website/assets/{xbull.module-B4N1LGQD.js → xbull.module-DQx6rh7x.js} +1 -1
- package/dist/website/index.html +19 -19
- package/package.json +3 -2
- package/dist/website/assets/AlertController-CH5fpr36.js +0 -1
- package/dist/website/assets/DateTime-DR7XeJxF.js +0 -1
- package/dist/website/assets/ModalController-CWwEAkfw.js +0 -5
- package/dist/website/assets/assets-Dk5ppLtc.js +0 -2
- package/dist/website/assets/bignumber-CziKLYjt.js +0 -1
- package/dist/website/assets/blakejs-Dx-Zt5zT.js +0 -3
- package/dist/website/assets/bn-CJG5j3KW.js +0 -1
- package/dist/website/assets/core-uatW2d6Y.js +0 -2
- package/dist/website/assets/dist-CELdgNh9.js +0 -1
- package/dist/website/assets/dist-omv2KNC4.js +0 -5
- package/dist/website/assets/events-D2w4OsQJ.js +0 -1
- package/dist/website/assets/freighter.module-CaBNS6Y-.js +0 -1
- package/dist/website/assets/index-3l3n0-cX.js +0 -540
- package/dist/website/assets/index-Dpi1HuAK.css +0 -1
- package/dist/website/assets/index.es-DCi2xZ1b.js +0 -1
- package/dist/website/assets/lobstr.module-GQjJAf8P.js +0 -1
- package/dist/website/assets/registry-DVfYVrCY.js +0 -1
- package/dist/website/assets/state-B8Vu3fYx.js +0 -1
- package/dist/website/assets/styles.css-BK5OO2Hh.js +0 -1
- package/dist/website/assets/substrate-connector-CwnGlD2K.js +0 -2
- package/dist/website/assets/tfhe-PDJAG8Bv.js +0 -1
- package/dist/website/assets/ton-connector-DMNOeieX.js +0 -2264
- package/dist/website/assets/tracking-variants-CuRpr0B_.js +0 -85
- package/dist/website/assets/transaction-CbxrIerN.js +0 -2
- package/dist/website/assets/wallet-manager-D8tOJ1jy.js +0 -5
- package/dist/website/mockServiceWorker.js +0 -460
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/utils-meUBO1X1.js","assets/rolldown-runtime-BcKkbAw3.js","assets/axios-rFNl7rAx.js","assets/dist-Cuadm9-o.js","assets/dist-D6L6gF64.js","assets/dist-ZKTSEBXW.js","assets/build-TBrHU398.js","assets/has-property-descriptors-BgbN2I7Y.js","assets/build-ClRxYQRR.js","assets/sha2-BFtsLUMi.js","assets/legacy-SCZKmXJI.js","assets/tx-Cosvp39i.js","assets/build-Tl3I8dhV.js","assets/name-service-Ddo3B_30.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,n as t,o as n,r,s as i,t as a}from"./rolldown-runtime-BcKkbAw3.js";import{n as o,t as s}from"./dist-Cuadm9-o.js";import{Oi as c,Si as l,Vr as u,bi as d,di as f,hi as p,wi as m}from"./Cause-1VWVIQY3.js";import{A as h,L as g,Q as _,T as v,Y as y,_ as b,a as x,c as S,k as C,o as w,r as T,t as E,tt as D}from"./assets-DXO6qW6R.js";import{c as O,n as k,q as A,s as j,t as M}from"./wagmi-connect-result-ChkXAqK2.js";import{$ as N,Gt as P,L as F,Q as I,U as L,Wt as R,a as ee,j as te,mt as ne,nt as re,v as ie}from"./Effect-Cu_VlOsF.js";import{t as z}from"./preload-helper-BLdHbfdN.js";import{n as B,t as V}from"./dist-D6L6gF64.js";import{t as ae,u as oe}from"./cosmos-connector-meta-DRTieEt0.js";import{r as se,t as H}from"./dist-ZKTSEBXW.js";import{t as ce}from"./current-value-stream-B0d3-tpK.js";import{n as le,t as ue}from"./bn-Ck4DeaX2.js";import{t as de}from"./safe-buffer-BUgQmBOp.js";import{t as fe}from"./bs58-gzsgdke5.js";import{t as pe}from"./events-CMzhc0tf.js";import{a as me,i as U,o as he,r as ge,s as _e,t as ve}from"./elliptic-BdE4gFqn.js";import{t as ye}from"./browser-ponyfill-lHyeX8iJ.js";import{a as be,o as xe,t as Se}from"./build-ClRxYQRR.js";import{t as Ce}from"./tx-Cosvp39i.js";import{a as we,c as Te,i as W,l as Ee,n as De,o as Oe,r as ke,s as Ae}from"./utils-meUBO1X1.js";import{n as je,t as Me}from"./src-Dl7INWvU.js";import{n as Ne}from"./bignumber-FohbSRh0.js";import{t as Pe}from"./wagmi-connector-events-uWDzb_Wq.js";import{cosmosAssets as Fe,registryIdsToSKCosmosNetworks as Ie}from"./chain-registry-Cug5LLv6.js";import{t as Le}from"./cjs-TfqE20ol.js";function Re(e,t,n,r,i,a){let o=typeof e==`string`?e:e.chain_name,s=t.find(e=>e.chain_name===o),c={...r,isLazy:Ee(i,r?.isLazy,void 0,void 0,a)};return{name:o,chain:typeof e==`string`?void 0:e,assetList:s,clientOptions:{stargate:n?.stargate?.(e),signingStargate:n?.signingStargate?.(e),signingCosmwasm:n?.signingCosmwasm?.(e),preferredSignType:n?.preferredSignType?.(e)||`amino`},preferredEndpoints:c}}function ze(e,t){switch(e){case`ERROR`:return[`%c${e} -`,`color: Red;`,t];case`WARN`:return[`%c${e} -`,`color: Orange;`,t];case`INFO`:return[`%c${e} -`,`color: Blue;`,t];case`DEBUG`:return[`%c${e} -`,`color: Purple;`,t];case`TRACE`:return[`%c${e} -`,`color: Brown;`,t]}}var Be=class{logger;level;levelOrder=[`TRACE`,`DEBUG`,`INFO`,`WARN`,`ERROR`,`NONE`];constructor(e=`INFO`){this.logger=console,this.level=e}compare(e,t){let n=this.levelOrder.indexOf(e),r=this.levelOrder.indexOf(t);return n>r?1:n<r?-1:0}trace(e,...t){this.compare(`TRACE`,this.level)>=0&&this.logger.trace(...ze(`TRACE`,e),...t)}debug(e,...t){this.compare(`DEBUG`,this.level)>=0&&this.logger.debug(...ze(`DEBUG`,e),...t)}info(e,...t){this.compare(`INFO`,this.level)>=0&&this.logger.info(...ze(`INFO`,e),...t)}warn(e,...t){this.compare(`WARN`,this.level)>=0&&this.logger.warn(...ze(`WARN`,e),...t)}error(e,...t){this.compare(`ERROR`,this.level)>=0&&this.logger.error(...ze(`ERROR`,e),...t)}},Ve=class{sessionOptions;timeoutId;constructor(e){this.sessionOptions=e}update(){this.timeoutId!==void 0&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.sessionOptions.callback?.()},this.sessionOptions.duration)}},He=a(((e,t)=>{var n=fe(),r=de().Buffer;t.exports=function(e){function t(t){var i=e(t);return n.encode(r.concat([t,i],t.length+4))}function i(t){var n=t.slice(0,-4),r=t.slice(-4),i=e(n);if(!(r[0]^i[0]|r[1]^i[1]|r[2]^i[2]|r[3]^i[3]))return n}function a(e){var t=n.decodeUnsafe(e);if(t)return i(t)}function o(t){var r=i(n.decode(t),e);if(!r)throw Error(`Invalid checksum`);return r}return{encode:t,decode:o,decodeUnsafe:a}}})),Ue=a(((e,t)=>{var n=me(),r=He();function i(e){var t=n(`sha256`).update(e).digest();return n(`sha256`).update(t).digest()}t.exports=r(i)})),We,Ge=new Uint8Array(16);function Ke(){if(!We&&(We=typeof crypto<`u`&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!We))throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);return We(Ge)}var qe=[];for(let e=0;e<256;++e)qe.push((e+256).toString(16).slice(1));function Je(e,t=0){return qe[e[t+0]]+qe[e[t+1]]+qe[e[t+2]]+qe[e[t+3]]+`-`+qe[e[t+4]]+qe[e[t+5]]+`-`+qe[e[t+6]]+qe[e[t+7]]+`-`+qe[e[t+8]]+qe[e[t+9]]+`-`+qe[e[t+10]]+qe[e[t+11]]+qe[e[t+12]]+qe[e[t+13]]+qe[e[t+14]]+qe[e[t+15]]}var Ye={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(e,t,n){if(Ye.randomUUID&&!t&&!e)return Ye.randomUUID();e||={};let r=e.random||(e.rng||Ke)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n||=0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Je(r)}var G=a(((t,n)=>{B(),(function(e,r){typeof t==`object`?n.exports=t=r():typeof define==`function`&&define.amd?define([],r):e.CryptoJS=r()})(t,function(){var t=t||function(t,n){var r;if(typeof window<`u`&&window.crypto&&(r=window.crypto),typeof self<`u`&&self.crypto&&(r=self.crypto),typeof globalThis<`u`&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<`u`&&window.msCrypto&&(r=window.msCrypto),!r&&V!==void 0&&V.crypto&&(r=V.crypto),!r&&typeof e==`function`)try{r=ge()}catch{}var i=function(){if(r){if(typeof r.getRandomValues==`function`)try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes==`function`)try{return r.randomBytes(4).readInt32LE()}catch{}}throw Error(`Native crypto module could not be used to get secure random number.`)},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},c=s.Base=function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),(!t.hasOwnProperty(`init`)||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(`toString`)&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=s.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t==n?e.length*4:t},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new l.init(t,e)}}),u=o.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((a&15).toString(16))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new l.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch{throw Error(`Malformed UTF-8 data`)}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){typeof e==`string`&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(o*4);s=e?t.ceil(s):t.max((s|0)-this._minBufferSize,0);var c=s*o,u=t.min(c*4,a);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(i,d);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=m.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=o.algo={};return o}(Math);return t})})),Ze=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=n.x64={};o.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n==t?e.length*8:n},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})})(),e})})),Qe=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(){if(typeof ArrayBuffer==`function`){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||typeof Uint8ClampedArray<`u`&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}})(),e.lib.WordArray})})),$e=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var a=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(a))}return r.join(``)},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,t*2)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],a=0;a<n;a+=2){var o=i(t[a>>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(o))}return r.join(``)},parse:function(e){for(var t=e.length,r=[],a=0;a<t;a++)r[a>>>1]|=i(e.charCodeAt(a)<<16-a%2*16);return n.create(r,t*2)}};function i(e){return e<<8&4278255360|e>>>8&16711935}})(),e.enc.Utf16})})),et=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=t[a>>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,c=t[a+2>>>2]>>>24-(a+2)%4*8&255,l=o<<16|s<<8|c,u=0;u<4&&a+u*.75<n;u++)i.push(r.charAt(l>>>6*(3-u)&63));var d=r.charAt(64);if(d)for(;i.length%4;)i.push(d);return i.join(``)},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<n.length;a++)r[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=e.indexOf(o);s!==-1&&(t=s)}return i(e,t,r)},_map:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`};function i(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}})(),e.enc.Base64})})),tt=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Base64url={stringify:function(e,t){t===void 0&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var a=[],o=0;o<r;o+=3)for(var s=n[o>>>2]>>>24-o%4*8&255,c=n[o+1>>>2]>>>24-(o+1)%4*8&255,l=n[o+2>>>2]>>>24-(o+2)%4*8&255,u=s<<16|c<<8|l,d=0;d<4&&o+d*.75<r;d++)a.push(i.charAt(u>>>6*(3-d)&63));var f=i.charAt(64);if(f)for(;a.length%4;)a.push(f);return a.join(``)},parse:function(e,t){t===void 0&&(t=!0);var n=e.length,r=t?this._safe_map:this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var o=0;o<r.length;o++)a[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var c=e.indexOf(s);c!==-1&&(n=c)}return i(e,n,a)},_map:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,_safe_map:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`};function i(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}})(),e.enc.Base64url})})),nt=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=t.abs(t.sin(e+1))*4294967296|0})();var c=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],m=e[t+3],h=e[t+4],g=e[t+5],_=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],x=e[t+10],S=e[t+11],C=e[t+12],w=e[t+13],T=e[t+14],E=e[t+15],D=a[0],O=a[1],k=a[2],A=a[3];D=l(D,O,k,A,o,7,s[0]),A=l(A,D,O,k,c,12,s[1]),k=l(k,A,D,O,p,17,s[2]),O=l(O,k,A,D,m,22,s[3]),D=l(D,O,k,A,h,7,s[4]),A=l(A,D,O,k,g,12,s[5]),k=l(k,A,D,O,_,17,s[6]),O=l(O,k,A,D,v,22,s[7]),D=l(D,O,k,A,y,7,s[8]),A=l(A,D,O,k,b,12,s[9]),k=l(k,A,D,O,x,17,s[10]),O=l(O,k,A,D,S,22,s[11]),D=l(D,O,k,A,C,7,s[12]),A=l(A,D,O,k,w,12,s[13]),k=l(k,A,D,O,T,17,s[14]),O=l(O,k,A,D,E,22,s[15]),D=u(D,O,k,A,c,5,s[16]),A=u(A,D,O,k,_,9,s[17]),k=u(k,A,D,O,S,14,s[18]),O=u(O,k,A,D,o,20,s[19]),D=u(D,O,k,A,g,5,s[20]),A=u(A,D,O,k,x,9,s[21]),k=u(k,A,D,O,E,14,s[22]),O=u(O,k,A,D,h,20,s[23]),D=u(D,O,k,A,b,5,s[24]),A=u(A,D,O,k,T,9,s[25]),k=u(k,A,D,O,m,14,s[26]),O=u(O,k,A,D,y,20,s[27]),D=u(D,O,k,A,w,5,s[28]),A=u(A,D,O,k,p,9,s[29]),k=u(k,A,D,O,v,14,s[30]),O=u(O,k,A,D,C,20,s[31]),D=d(D,O,k,A,g,4,s[32]),A=d(A,D,O,k,y,11,s[33]),k=d(k,A,D,O,S,16,s[34]),O=d(O,k,A,D,T,23,s[35]),D=d(D,O,k,A,c,4,s[36]),A=d(A,D,O,k,h,11,s[37]),k=d(k,A,D,O,v,16,s[38]),O=d(O,k,A,D,x,23,s[39]),D=d(D,O,k,A,w,4,s[40]),A=d(A,D,O,k,o,11,s[41]),k=d(k,A,D,O,m,16,s[42]),O=d(O,k,A,D,_,23,s[43]),D=d(D,O,k,A,b,4,s[44]),A=d(A,D,O,k,C,11,s[45]),k=d(k,A,D,O,E,16,s[46]),O=d(O,k,A,D,p,23,s[47]),D=f(D,O,k,A,o,6,s[48]),A=f(A,D,O,k,v,10,s[49]),k=f(k,A,D,O,T,15,s[50]),O=f(O,k,A,D,g,21,s[51]),D=f(D,O,k,A,C,6,s[52]),A=f(A,D,O,k,m,10,s[53]),k=f(k,A,D,O,x,15,s[54]),O=f(O,k,A,D,c,21,s[55]),D=f(D,O,k,A,y,6,s[56]),A=f(A,D,O,k,E,10,s[57]),k=f(k,A,D,O,_,15,s[58]),O=f(O,k,A,D,w,21,s[59]),D=f(D,O,k,A,h,6,s[60]),A=f(A,D,O,k,S,10,s[61]),k=f(k,A,D,O,p,15,s[62]),O=f(O,k,A,D,b,21,s[63]),a[0]=a[0]+D|0,a[1]=a[1]+O|0,a[2]=a[2]+k|0,a[3]=a[3]+A|0},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[(i+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,n[(i+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,e.sigBytes=(n.length+1)*4,this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<<a|s>>>32-a)+t}function u(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<<a|s>>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<<a|s>>>32-a)+t}n.MD5=a._createHelper(c),n.HmacMD5=a._createHmacHelper(c)})(Math),e.MD5})})),rt=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.algo,o=[],s=a.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],c=n[4],l=0;l<80;l++){if(l<16)o[l]=e[t+l]|0;else{var u=o[l-3]^o[l-8]^o[l-14]^o[l-16];o[l]=u<<1|u>>>31}var d=(r<<5|r>>>27)+c+o[l];d+=l<20?(i&a|~i&s)+1518500249:l<40?(i^a^s)+1859775393:l<60?(i&a|i&s|a&s)-1894007588:(i^a^s)-899497514,c=s,s=a,a=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),t[(r+64>>>9<<4)+15]=n,e.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)})(),e.SHA1})})),it=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],c=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return(e-(e|0))*4294967296|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,1/2))),c[i]=n(t.pow(r,1/3)),i++),r++})();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)l[p]=e[t+p]|0;else{var m=l[p-15],h=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,g=l[p-2],_=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=h+l[p-7]+_+l[p-16]}var v=s&u^~s&d,y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),S=f+x+v+c[p]+l[p],C=b+y;f=d,d=u,u=s,s=o+S|0,o=a,a=i,i=r,r=S+C|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=t.floor(r/4294967296),n[(i+64>>>9<<4)+15]=r,e.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(u),n.HmacSHA256=a._createHmacHelper(u)})(Math),e.SHA256})})),at=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),it()):typeof define==`function`&&define.amd?define([`./core`,`./sha256`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.algo,i=r.SHA256,a=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(a),t.HmacSHA224=i._createHmacHelper(a)})(),e.SHA224})})),ot=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),Ze()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=t.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];(function(){for(var e=0;e<80;e++)l[e]=s()})();var u=o.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=r.high,m=r.low,h=i.high,g=i.low,_=a.high,v=a.low,y=o.high,b=o.low,x=s.high,S=s.low,C=u.high,w=u.low,T=d.high,E=d.low,D=f.high,O=f.low,k=p,A=m,j=h,M=g,N=_,P=v,F=y,I=b,L=x,R=S,ee=C,te=w,ne=T,re=E,ie=D,z=O,B=0;B<80;B++){var V,ae,oe=l[B];if(B<16)ae=oe.high=e[t+B*2]|0,V=oe.low=e[t+B*2+1]|0;else{var se=l[B-15],H=se.high,ce=se.low,le=(H>>>1|ce<<31)^(H>>>8|ce<<24)^H>>>7,ue=(ce>>>1|H<<31)^(ce>>>8|H<<24)^(ce>>>7|H<<25),de=l[B-2],fe=de.high,pe=de.low,me=(fe>>>19|pe<<13)^(fe<<3|pe>>>29)^fe>>>6,U=(pe>>>19|fe<<13)^(pe<<3|fe>>>29)^(pe>>>6|fe<<26),he=l[B-7],ge=he.high,_e=he.low,ve=l[B-16],ye=ve.high,be=ve.low;V=ue+_e,ae=le+ge+ +(V>>>0<ue>>>0),V+=U,ae=ae+me+ +(V>>>0<U>>>0),V+=be,ae=ae+ye+ +(V>>>0<be>>>0),oe.high=ae,oe.low=V}var xe=L&ee^~L&ne,Se=R&te^~R&re,Ce=k&j^k&N^j&N,we=A&M^A&P^M&P,Te=(k>>>28|A<<4)^(k<<30|A>>>2)^(k<<25|A>>>7),W=(A>>>28|k<<4)^(A<<30|k>>>2)^(A<<25|k>>>7),Ee=(L>>>14|R<<18)^(L>>>18|R<<14)^(L<<23|R>>>9),De=(R>>>14|L<<18)^(R>>>18|L<<14)^(R<<23|L>>>9),Oe=c[B],ke=Oe.high,Ae=Oe.low,je=z+De,Me=ie+Ee+ +(je>>>0<z>>>0),je=je+Se,Me=Me+xe+ +(je>>>0<Se>>>0),je=je+Ae,Me=Me+ke+ +(je>>>0<Ae>>>0),je=je+V,Me=Me+ae+ +(je>>>0<V>>>0),Ne=W+we,Pe=Te+Ce+ +(Ne>>>0<W>>>0);ie=ne,z=re,ne=ee,re=te,ee=L,te=R,R=I+je|0,L=F+Me+ +(R>>>0<I>>>0)|0,F=N,I=P,N=j,P=M,j=k,M=A,A=je+Ne|0,k=Me+Pe+ +(A>>>0<je>>>0)|0}m=r.low=m+A,r.high=p+k+ +(m>>>0<A>>>0),g=i.low=g+M,i.high=h+j+ +(g>>>0<M>>>0),v=a.low=v+P,a.high=_+N+ +(v>>>0<P>>>0),b=o.low=b+I,o.high=y+F+ +(b>>>0<I>>>0),S=s.low=S+R,s.high=x+L+ +(S>>>0<R>>>0),w=u.low=w+te,u.high=C+ee+ +(w>>>0<te>>>0),E=d.low=E+re,d.high=T+ne+ +(E>>>0<re>>>0),O=f.low=O+z,f.high=D+ie+ +(O>>>0<z>>>0)},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;return t[r>>>5]|=128<<24-r%32,t[(r+128>>>10<<5)+30]=Math.floor(n/4294967296),t[(r+128>>>10<<5)+31]=n,e.sigBytes=t.length*4,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)})(),e.SHA512})})),st=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),Ze(),ot()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`,`./sha512`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.x64,r=n.Word,i=n.WordArray,a=t.algo,o=a.SHA512,s=a.SHA384=o.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=o._createHelper(s),t.HmacSHA384=o._createHmacHelper(s)})(),e.SHA384})})),ct=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),Ze()):typeof define==`function`&&define.amd?define([`./core`,`./x64-core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.x64.Word,s=n.algo,c=[],l=[],u=[];(function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,i=(2*e+3*t)%5;e=r,t=i}for(var e=0;e<5;e++)for(var t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,s=0;s<24;s++){for(var d=0,f=0,p=0;p<7;p++){if(a&1){var m=(1<<p)-1;m<32?f^=1<<m:d^=1<<m-32}a&128?a=a<<1^113:a<<=1}u[s]=o.create(d,f)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=o.create()})();var f=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var a=e[t+2*i],o=e[t+2*i+1];a=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var s=n[i];s.high^=o,s.low^=a}for(var f=0;f<24;f++){for(var p=0;p<5;p++){for(var m=0,h=0,g=0;g<5;g++){var s=n[p+5*g];m^=s.high,h^=s.low}var _=d[p];_.high=m,_.low=h}for(var p=0;p<5;p++)for(var v=d[(p+4)%5],y=d[(p+1)%5],b=y.high,x=y.low,m=v.high^(b<<1|x>>>31),h=v.low^(x<<1|b>>>31),g=0;g<5;g++){var s=n[p+5*g];s.high^=m,s.low^=h}for(var S=1;S<25;S++){var m,h,s=n[S],C=s.high,w=s.low,T=c[S];T<32?(m=C<<T|w>>>32-T,h=w<<T|C>>>32-T):(m=w<<T-32|C>>>64-T,h=C<<T-32|w>>>64-T);var E=d[l[S]];E.high=m,E.low=h}var D=d[0],O=n[0];D.high=O.high,D.low=O.low;for(var p=0;p<5;p++)for(var g=0;g<5;g++){var S=p+5*g,s=n[S],k=d[S],A=d[(p+1)%5+5*g],j=d[(p+2)%5+5*g];s.high=k.high^~A.high&j.high,s.low=k.low^~A.low&j.low}var s=n[0],M=u[f];s.high^=M.high,s.low^=M.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes*8;var r=e.sigBytes*8,a=this.blockSize*32;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/a)*a>>>5)-1]|=128,e.sigBytes=n.length*4,this._process();for(var o=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var d=o[u],f=d.high,p=d.low;f=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,p=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,l.push(p),l.push(f)}return new i.init(l,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=a._createHelper(f),n.HmacSHA3=a._createHmacHelper(f)})(Math),e.SHA3})})),lt=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=i.create([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]),c=i.create([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]),l=i.create([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=i.create([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]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=o.RIPEMD160=a.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}for(var a=this._hash.words,o=d.words,p=f.words,b=s.words,x=c.words,S=l.words,C=u.words,w,T,E,D,O,k=w=a[0],A=T=a[1],j=E=a[2],M=D=a[3],N=O=a[4],P,n=0;n<80;n+=1)P=w+e[t+b[n]]|0,P+=n<16?m(T,E,D)+o[0]:n<32?h(T,E,D)+o[1]:n<48?g(T,E,D)+o[2]:n<64?_(T,E,D)+o[3]:v(T,E,D)+o[4],P|=0,P=y(P,S[n]),P=P+O|0,w=O,O=D,D=y(E,10),E=T,T=P,P=k+e[t+x[n]]|0,P+=n<16?v(A,j,M)+p[0]:n<32?_(A,j,M)+p[1]:n<48?g(A,j,M)+p[2]:n<64?h(A,j,M)+p[3]:m(A,j,M)+p[4],P|=0,P=y(P,C[n]),P=P+N|0,k=N,N=M,M=y(j,10),j=A,A=P;P=a[1]+E+M|0,a[1]=a[2]+D+N|0,a[2]=a[3]+O+k|0,a[3]=a[4]+w+A|0,a[4]=a[0]+T+j|0,a[0]=P},_doFinalize:function(){var e=this._data,t=e.words,n=this._nDataBytes*8,r=e.sigBytes*8;t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,e.sigBytes=(t.length+1)*4,this._process();for(var i=this._hash,a=i.words,o=0;o<5;o++){var s=a[o];a[o]=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360}return i},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function _(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}n.RIPEMD160=a._createHelper(p),n.HmacRIPEMD160=a._createHmacHelper(p)})(Math),e.RIPEMD160})})),ut=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(G()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){(function(){var t=e,n=t.lib.Base,r=t.enc.Utf8,i=t.algo;i.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,typeof t==`string`&&(t=r.parse(t));var n=e.blockSize,i=n*4;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,l=0;l<n;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})})()})})),dt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),it(),ut()):typeof define==`function`&&define.amd?define([`./core`,`./sha256`,`./hmac`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.SHA256,s=a.HMAC,c=a.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),a=i.create(),o=i.create([1]),c=a.words,l=o.words,u=n.keySize,d=n.iterations;c.length<u;){var f=r.update(t).finalize(o);r.reset();for(var p=f.words,m=p.length,h=f,g=1;g<d;g++){h=r.finalize(h),r.reset();for(var _=h.words,v=0;v<m;v++)p[v]^=_[v]}a.concat(f),l[0]++}return a.sigBytes=u*4,a}});t.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}})(),e.PBKDF2})})),ft=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),rt(),ut()):typeof define==`function`&&define.amd?define([`./core`,`./sha1`,`./hmac`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib,r=n.Base,i=n.WordArray,a=t.algo,o=a.MD5,s=a.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:o,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,a=r.hasher.create(),o=i.create(),s=o.words,c=r.keySize,l=r.iterations;s.length<c;){n&&a.update(n),n=a.update(e).finalize(t),a.reset();for(var u=1;u<l;u++)n=a.finalize(n),a.reset();o.concat(n)}return o.sigBytes=c*4,o}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}})(),e.EvpKDF})})),pt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),ft()):typeof define==`function`&&define.amd?define([`./core`,`./evpkdf`],r):r(n.CryptoJS)})(e,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,a=r.WordArray,o=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var c=s.Base64,l=n.algo.EvpKDF,u=r.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return typeof e==`string`?S:y}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},f=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=f.extend();e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,a=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=a}});function n(e,n,r){var i,a=this._iv;a?(i=a,this._iv=t):i=this._prevBlock;for(var o=0;o<r;o++)e[n+o]^=i[o]}return e}(),m=n.pad={},h=m.Pkcs7={pad:function(e,t){for(var n=t*4,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],s=0;s<r;s+=4)o.push(i);var c=a.create(o,r);e.concat(c)},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:h}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),_=n.format={},v=_.OpenSSL={stringify:function(e){var t,n=e.ciphertext,r=e.salt;return t=r?a.create([1398893684,1701076831]).concat(r).concat(n):n,t.toString(c)},parse:function(e){var t,n=c.parse(e),r=n.words;return r[0]==1398893684&&r[1]==1701076831&&(t=a.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},y=r.SerializableCipher=i.extend({cfg:i.extend({format:v}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),a=i.finalize(t),o=i.cfg;return g.create({ciphertext:a,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return typeof e==`string`?t.parse(e,this):e}}),b=n.kdf={},x=b.OpenSSL={execute:function(e,t,n,r,i){if(r||=a.random(8),i)var o=l.create({keySize:t+n,hasher:i}).compute(e,r);else var o=l.create({keySize:t+n}).compute(e,r);var s=a.create(o.words.slice(t),n*4);return o.sigBytes=t*4,g.create({key:o,iv:s,salt:r})}},S=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:x}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=r.kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var a=y.encrypt.call(this,e,t,i.key,r);return a.mixIn(i),a},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,y.decrypt.call(this,e,t,i.key,r)}})}()})})),mt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,a=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=a}});function n(e,t,n,r){var i,a=this._iv;a?(i=a.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var o=0;o<n;o++)e[t+o]^=i[o]}return t}(),e.mode.CFB})})),ht=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend();return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0);var o=a.slice(0);n.encryptBlock(o,0),a[r-1]=a[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=o[s]}}),t}(),e.mode.CTR})})),gt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if((e>>24&255)==255){var t=e>>16&255,n=e>>8&255,r=e&255;t===255?(t=0,n===255?(n=0,r===255?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function r(e){return(e[0]=n(e[0]))===0&&(e[1]=n(e[1])),e}return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var c=0;c<i;c++)e[t+c]^=s[c]}}),t}(),e.mode.CTRGladman})})),_t=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend();return t.Decryptor=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)e[t+o]^=a[o]}}),t}(),e.mode.OFB})})),vt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})})),yt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=t*4,i=r-n%r,a=n+i-1;e.clamp(),e.words[a>>>2]|=i<<24-a%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},e.pad.Ansix923})})),bt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.pad.Iso10126={pad:function(t,n){var r=n*4,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},e.pad.Iso10126})})),xt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})})),St=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding})})),Ct=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})})),wt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib.CipherParams,i=n.enc.Hex,a=n.format;a.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return r.create({ciphertext:t})}}})(),e.format.Hex})})),Tt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),et(),nt(),ft(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],c=[],l=[],u=[],d=[],f=[],p=[];(function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var m=r^r<<1^r<<2^r<<3^r<<4;m=m>>>8^m&255^99,i[n]=m,a[m]=n;var h=e[n],g=e[h],_=e[g],v=e[m]*257^m*16843008;o[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,l[n]=v;var v=_*16843009^g*65537^h*257^n*16843008;u[m]=v<<24|v>>>8,d[m]=v<<16|v>>>16,f[m]=v<<8|v>>>24,p[m]=v,n?(n=h^e[e[e[_^h]]],r^=e[e[r]]):n=r=1}})();var m=[0,1,2,4,8,16,32,64,128,27,54],h=r.AES=n.extend({_doReset:function(){var e;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var t=this._keyPriorReset=this._key,n=t.words,r=t.sigBytes/4,a=((this._nRounds=r+6)+1)*4,o=this._keySchedule=[],s=0;s<a;s++)s<r?o[s]=n[s]:(e=o[s-1],s%r?r>6&&s%r==4&&(e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[e&255]):(e=e<<8|e>>>24,e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[e&255],e^=m[s/r|0]<<24),o[s]=o[s-r]^e);for(var c=this._invKeySchedule=[],l=0;l<a;l++){var s=a-l;if(l%4)var e=o[s];else var e=o[s-4];l<4||s<=4?c[l]=e:c[l]=u[i[e>>>24]]^d[i[e>>>16&255]]^f[i[e>>>8&255]]^p[i[e&255]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,s,c,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,f,p,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,m=1;m<c;m++){var h=r[l>>>24]^i[u>>>16&255]^a[d>>>8&255]^o[f&255]^n[p++],g=r[u>>>24]^i[d>>>16&255]^a[f>>>8&255]^o[l&255]^n[p++],_=r[d>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[u&255]^n[p++],v=r[f>>>24]^i[l>>>16&255]^a[u>>>8&255]^o[d&255]^n[p++];l=h,u=g,d=_,f=v}var h=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[f&255])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[l&255])^n[p++],_=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[u&255])^n[p++],v=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[d&255])^n[p++];e[t]=h,e[t+1]=g,e[t+2]=_,e[t+3]=v},keySize:8});t.AES=n._createHelper(h)})(),e.AES})})),Et=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),et(),nt(),ft(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=o[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){for(var l=i[a]=[],u=c[a],n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(var n=1;n<7;n++)l[n]=l[n]>>>(n-1)*4+3;l[7]=l[7]<<5|l[7]>>>27}for(var d=this._invSubKeys=[],n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((o^i[c])&u[c])>>>0];this._lBlock=o,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,f.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=i._createHelper(d);var m=a.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(e.length!==2&&e.length!==4&&e.length<6)throw Error(`Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.`);var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(m)})(),e.TripleDES})})),Dt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),et(),nt(),ft(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;for(var i=0,a=0;i<256;i++){var o=i%n,s=t[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var c=r[i];r[i]=r[a],r[a]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){t=(t+1)%256,n=(n+e[t])%256;var a=e[t];e[t]=e[n],e[n]=a,r|=e[(e[t]+e[n])%256]<<24-i*8}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=n._createHelper(o)})(),e.RC4})})),Ot=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),et(),nt(),ft(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=(e[n]<<8|e[n]>>>24)&16711935|(e[n]<<24|e[n]>>>8)&4278255360;var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=l>>>16|u&4294901760,f=u<<16|l&65535;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=f,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=f;for(var n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=(i[r]<<8|i[r]>>>24)&16711935|(i[r]<<24|i[r]>>>8)&4278255360,e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+ +(t[0]>>>0<a[0]>>>0)|0,t[2]=t[2]+886263092+ +(t[1]>>>0<a[1]>>>0)|0,t[3]=t[3]+1295307597+ +(t[2]>>>0<a[2]>>>0)|0,t[4]=t[4]+3545052371+ +(t[3]>>>0<a[3]>>>0)|0,t[5]=t[5]+886263092+ +(t[4]>>>0<a[4]>>>0)|0,t[6]=t[6]+1295307597+ +(t[5]>>>0<a[5]>>>0)|0,t[7]=t[7]+3545052371+ +(t[6]>>>0<a[6]>>>0)|0,this._b=+(t[7]>>>0<a[7]>>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],i=r&65535,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((r&4294901760)*r|0)+((r&65535)*r|0);o[n]=c^l}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=n._createHelper(s)})(),e.Rabbit})})),kt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),et(),nt(),ft(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];this._b=0;for(var i=0;i<4;i++)c.call(this);for(var i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var a=t.words,o=a[0],s=a[1],l=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,u=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,d=l>>>16|u&4294901760,f=u<<16|l&65535;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=f,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=f;for(var i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=(i[r]<<8|i[r]>>>24)&16711935|(i[r]<<24|i[r]>>>8)&4278255360,e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+ +(t[0]>>>0<a[0]>>>0)|0,t[2]=t[2]+886263092+ +(t[1]>>>0<a[1]>>>0)|0,t[3]=t[3]+1295307597+ +(t[2]>>>0<a[2]>>>0)|0,t[4]=t[4]+3545052371+ +(t[3]>>>0<a[3]>>>0)|0,t[5]=t[5]+886263092+ +(t[4]>>>0<a[4]>>>0)|0,t[6]=t[6]+1295307597+ +(t[5]>>>0<a[5]>>>0)|0,t[7]=t[7]+3545052371+ +(t[6]>>>0<a[6]>>>0)|0,this._b=+(t[7]>>>0<a[7]>>>0);for(var n=0;n<8;n++){var r=e[n]+t[n],i=r&65535,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((r&4294901760)*r|0)+((r&65535)*r|0);o[n]=c^l}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=n._createHelper(s)})(),e.RabbitLegacy})})),At=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),et(),nt(),ft(),pt()):typeof define==`function`&&define.amd?define([`./core`,`./enc-base64`,`./md5`,`./evpkdf`,`./cipher-core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.BlockCipher,r=t.algo;let i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function s(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,a=t&255,o=e.sbox[0][n]+e.sbox[1][r];return o^=e.sbox[2][i],o+=e.sbox[3][a],o}function c(e,t,n){let r=t,i=n,a;for(let t=0;t<16;++t)r^=e.pbox[t],i=s(e,r)^i,a=r,r=i,i=a;return a=r,r=i,i=a,i^=e.pbox[16],r^=e.pbox[17],{left:r,right:i}}function l(e,t,n){let r=t,i=n,a;for(let t=17;t>1;--t)r^=e.pbox[t],i=s(e,r)^i,a=r,r=i,i=a;return a=r,r=i,i=a,i^=e.pbox[1],r^=e.pbox[0],{left:r,right:i}}function u(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=a[t][n]}let r=0;for(let a=0;a<18;a++)e.pbox[a]=i[a]^t[r],r++,r>=n&&(r=0);let o=0,s=0,l=0;for(let t=0;t<18;t+=2)l=c(e,o,s),o=l.left,s=l.right,e.pbox[t]=o,e.pbox[t+1]=s;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)l=c(e,o,s),o=l.left,s=l.right,e.sbox[t][n]=o,e.sbox[t][n+1]=s;return!0}var d=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words;u(o,t,e.sigBytes/4)}},encryptBlock:function(e,t){var n=c(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=l(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(d)})(),e.Blowfish})})),jt=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(G(),Ze(),Qe(),$e(),et(),tt(),nt(),rt(),it(),at(),ot(),st(),ct(),lt(),ut(),dt(),ft(),pt(),mt(),ht(),gt(),_t(),vt(),yt(),bt(),xt(),St(),Ct(),wt(),Tt(),Et(),Dt(),Ot(),kt(),At()):typeof define==`function`&&define.amd?define(`./core,./x64-core,./lib-typedarrays,./enc-utf16,./enc-base64,./enc-base64url,./md5,./sha1,./sha256,./sha224,./sha512,./sha384,./sha3,./ripemd160,./hmac,./pbkdf2,./evpkdf,./cipher-core,./mode-cfb,./mode-ctr,./mode-ctr-gladman,./mode-ofb,./mode-ecb,./pad-ansix923,./pad-iso10126,./pad-iso97971,./pad-zeropadding,./pad-nopadding,./format-hex,./aes,./tripledes,./rc4,./rabbit,./rabbit-legacy,./blowfish`.split(`,`),r):n.CryptoJS=r(n.CryptoJS)})(e,function(e){return e})})),Mt=a(((e,t)=>{t.exports=n;function n(e,t){for(var n=Array(arguments.length-1),r=0,i=2,a=!0;i<arguments.length;)n[r++]=arguments[i++];return new Promise(function(i,o){n[r]=function(e){if(a){if(a=!1,e)o(e);else{for(var t=Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}}};try{e.apply(t||null,n)}catch(e){a&&(a=!1,o(e))}})}})),Nt=a((e=>{var t=e;t.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&e.charAt(t)===`=`;)++n;return Math.ceil(e.length*3)/4-n};for(var n=Array(64),r=Array(123),i=0;i<64;)r[n[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;t.encode=function(e,t,r){for(var i=null,a=[],o=0,s=0,c;t<r;){var l=e[t++];switch(s){case 0:a[o++]=n[l>>2],c=(l&3)<<4,s=1;break;case 1:a[o++]=n[c|l>>4],c=(l&15)<<2,s=2;break;case 2:a[o++]=n[c|l>>6],a[o++]=n[l&63],s=0}o>8191&&((i||=[]).push(String.fromCharCode.apply(String,a)),o=0)}return s&&(a[o++]=n[c],a[o++]=61,s===1&&(a[o++]=61)),i?(o&&i.push(String.fromCharCode.apply(String,a.slice(0,o))),i.join(``)):String.fromCharCode.apply(String,a.slice(0,o))};var a=`invalid encoding`;t.decode=function(e,t,n){for(var i=n,o=0,s,c=0;c<e.length;){var l=e.charCodeAt(c++);if(l===61&&o>1)break;if((l=r[l])===void 0)throw Error(a);switch(o){case 0:s=l,o=1;break;case 1:t[n++]=s<<2|(l&48)>>4,s=l,o=2;break;case 2:t[n++]=(s&15)<<4|(l&60)>>2,s=l,o=3;break;case 3:t[n++]=(s&3)<<6|l,o=0}}if(o===1)throw Error(a);return n-i},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}})),Pt=a(((e,t)=>{t.exports=n;function n(){this._listeners={}}n.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}})),Ft=a(((e,t)=>{t.exports=n(n);function n(e){return typeof Float32Array<`u`?(function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=n[3]===128;function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function a(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}e.writeFloatLE=r?i:a,e.writeFloatBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.readFloatLE=r?o:s,e.readFloatBE=r?s:o})():(function(){function t(e,t,n,r){var i=+(t<0);if(i&&(t=-t),t===0)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var a=Math.floor(Math.log(t)/Math.LN2),o=Math.round(t*2**-a*8388608)&8388607;e((i<<31|a+127<<23|o)>>>0,n,r)}}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i);function n(e,t,n){var r=e(t,n),i=(r>>31)*2+1,a=r>>>23&255,o=r&8388607;return a===255?o?NaN:i*(1/0):a===0?i*1401298464324817e-60*o:i*2**(a-150)*(o+8388608)}e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,o)})(),typeof Float64Array<`u`?(function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=n[7]===128;function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function a(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}e.writeDoubleLE=r?i:a,e.writeDoubleBE=r?a:i;function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.readDoubleLE=r?o:s,e.readDoubleBE=r?s:o})():(function(){function t(e,t,n,r,i,a){var o=+(r<0);if(o&&(r=-r),r===0)e(0,i,a+t),e(1/r>0?0:2147483648,i,a+n);else if(isNaN(r))e(0,i,a+t),e(2146959360,i,a+n);else if(r>17976931348623157e292)e(0,i,a+t),e((o<<31|2146435072)>>>0,i,a+n);else{var s;if(r<22250738585072014e-324)s=r/5e-324,e(s>>>0,i,a+t),e((o<<31|s/4294967296)>>>0,i,a+n);else{var c=Math.floor(Math.log(r)/Math.LN2);c===1024&&(c=1023),s=r*2**-c,e(s*4503599627370496>>>0,i,a+t),e((o<<31|c+1023<<20|s*1048576&1048575)>>>0,i,a+n)}}}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0);function n(e,t,n,r,i){var a=e(r,i+t),o=e(r,i+n),s=(o>>31)*2+1,c=o>>>20&2047,l=4294967296*(o&1048575)+a;return c===2047?l?NaN:s*(1/0):c===0?s*5e-324*l:s*2**(c-1075)*(l+4503599627370496)}e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,o,4,0)})(),e}function r(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function i(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=e&255}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}})),It=a(((t,n)=>{n.exports=r;function r(t){try{if(typeof e!=`function`)return null;var n=e(t);return n&&(n.length||Object.keys(n).length)?n:null}catch{return null}}})),Lt=a((e=>{var t=e,n=`�`;t.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)n=e.charCodeAt(r),n<128?t+=1:n<2048?t+=2:(n&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320?(++r,t+=4):t+=3;return t},t.read=function(e,t,r){if(r-t<1)return``;for(var i=``,a=t;a<r;){var o=e[a++];if(o<=127)i+=String.fromCharCode(o);else if(o>=192&&o<224){var s=(o&31)<<6|e[a++]&63;i+=s>=128?String.fromCharCode(s):n}else if(o>=224&&o<240){var c=(o&15)<<12|(e[a++]&63)<<6|e[a++]&63;i+=c>=2048?String.fromCharCode(c):n}else if(o>=240){var l=(o&7)<<18|(e[a++]&63)<<12|(e[a++]&63)<<6|e[a++]&63;l<65536||l>1114111?i+=n:(l-=65536,i+=String.fromCharCode(55296+(l>>10)),i+=String.fromCharCode(56320+(l&1023)))}}return i},t.write=function(e,t,n){for(var r=n,i,a,o=0;o<e.length;++o)i=e.charCodeAt(o),i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&((a=e.charCodeAt(o+1))&64512)==56320?(i=65536+((i&1023)<<10)+(a&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-r}})),Rt=a(((e,t)=>{t.exports=n;function n(e,t,n){var r=n||8192,i=r>>>1,a=null,o=r;return function(n){if(n<1||n>i)return e(n);o+n>r&&(a=e(r),o=0);var s=t.call(a,o,o+=n);return o&7&&(o=(o|7)+1),s}}})),zt=`cosmiframe`,Bt=`cosmiframe_keystorechange`,Vt=class{_mutable;actions;_env;logger;constructor(){this._mutable={state:W.Init}}get env(){return this._env}setEnv(e){this._env=e}setActions=e=>{this.actions=e};get isMobile(){return this.env?.device===`mobile`}get mutable(){return this._mutable}get state(){return this.mutable.state}get isInit(){return this.state===`Init`}get isDone(){return this.state===`Done`}get isError(){return this.state===`Error`}get isPending(){return this.state===`Pending`}get data(){return this.mutable.data}get message(){return this.mutable.message}setState(e){this.logger?.debug(`[State Change] ${this.state} (${this.walletStatus}) -> ${e} (${this.chainName}/${this.walletName})`),this._mutable.state=e,this.actions?.state?.(e)}setData(e){this._mutable.data=e,this.actions?.data?.(e)}setMessage(e){this.logger?.debug(`[Message Set] ${e} (${this.chainName}/${this.walletName})`),this._mutable.message=e,this.actions?.message?.(e)}reset(){this.setData(void 0),this.setMessage(void 0),this.setState(W.Init)}get walletStatus(){return De(this.state,this.message)}get isWalletOnceConnect(){return this.isWalletConnected||this.isWalletError}get isWalletConnecting(){return this.walletStatus===`Connecting`}get isWalletConnected(){return this.walletStatus===`Connected`}get isWalletDisconnected(){return this.walletStatus===`Disconnected`}get isWalletRejected(){return this.walletStatus===`Rejected`}get isWalletNotExist(){return this.walletStatus===`NotExist`}get isWalletError(){return this.walletStatus===`Error`}},Ht=class extends Vt{clientMutable={state:W.Init};emitter;_walletInfo;callbacks;session;walletConnectOptions;isActive=!1;throwErrors=!1;constructor(e){super(),this._walletInfo=e}get appUrl(){return this.client?.appUrl}get qrUrl(){return this.client?.qrUrl}activate(){this.isActive=!0}inactivate(){this.isActive=!1}get client(){return this.clientMutable?.data}initingClient(){this.clientMutable.state=W.Pending,this.clientMutable.message=void 0,this.clientMutable.data=void 0}initClientDone(e){this.clientMutable.data=e,this.clientMutable.state=W.Done,this.clientMutable.message=void 0}initClientError(e){this.logger?.error(`${this.walletPrettyName} initClientError: ${e?.message}`),this.clientMutable.message=e?.message,this.clientMutable.state=W.Error,this.isModeExtension?this.setClientNotExist():this.setError(`InitClientError: ${e.message}`)}get walletInfo(){return this._walletInfo}get isModeExtension(){return this.walletInfo.mode===`extension`}get isModeWalletConnect(){return this.walletInfo.mode===`wallet-connect`}get downloadInfo(){let e=this.walletInfo.downloads||[];return e=e.filter(e=>e.device===this.env?.device||!e.device),e.length===1||(e=e.filter(e=>e.os===this.env?.os||!e.os),e.length===1)||(e=e.filter(e=>e.browser===this.env?.browser||!e.browser)),e[0]}get walletName(){return this.walletInfo.name}get walletPrettyName(){return this.walletInfo.prettyName}get rejectMessageSource(){return typeof this.walletInfo.rejectMessage==`string`?this.walletInfo.rejectMessage:this.walletInfo.rejectMessage?.source}get rejectMessageTarget(){if(typeof this.walletInfo.rejectMessage!=`string`)return this.walletInfo.rejectMessage?.target}get rejectCode(){return this.walletInfo.rejectCode}rejectMatched(e){return this.rejectMessageSource&&e.message===this.rejectMessageSource||this.rejectCode&&e.code===this.rejectCode}updateCallbacks(e){this.callbacks={...this.callbacks,...e}}_disconnect=async(e,t)=>{await this.callbacks?.beforeDisconnect?.(),await this.client?.disconnect?.(t),this.clientMutable.state!==W.Error&&this.reset(),this.walletName!==`cosmiframe`&&window.localStorage.removeItem(`cosmos-kit@2:core//current-wallet`),e&&(this.emitter?.emit(`sync_disconnect`,this.chainName),this.logger?.debug("[WALLET EVENT] Emit `sync_disconnect`")),await this.callbacks?.afterDisconnect?.()};disconnect=async(e,t)=>{await this._disconnect(e,t)};setClientNotExist(e){let t=e===void 0?Error():e;t.message=we.message,this.setError(t)}setRejected(e){let t=e===void 0?Error():e;t.message=Ae.message,this.setError(t)}setError(e){let t=typeof e==`string`||e===void 0?Error(e):e;if(this.setState(W.Error),this.setMessage(t.message),this.throwErrors===!0||this.throwErrors===`connect_only`&&t.name===`ConnectError`)throw t}connect=async e=>{await this.callbacks?.beforeConnect?.();let t=typeof this.walletInfo.mobileDisabled==`boolean`?this.walletInfo.mobileDisabled:this.walletInfo.mobileDisabled();if(this.isMobile&&t){this.setError(new Oe(`This wallet is not supported on mobile, please use desktop browsers.`));return}e&&(this.emitter?.emit(`sync_connect`,this.chainName),this.logger?.debug(`[Event Emit] \`sync_connect\` (${this.chainName}/${this.walletName})`));try{if(!this.client&&(this.setState(W.Pending),this.setMessage(`InitClient`),await this.initClient(this.walletInfo.mode===`wallet-connect`?this.walletConnectOptions:void 0),this.emitter?.emit(`broadcast_client`,this.client),this.logger?.debug("[WALLET EVENT] Emit `broadcast_client`"),!this.client)){this.setClientNotExist(new Oe);return}await this.update()}catch(e){this.setError(new Oe(e.message))}await this.callbacks?.afterConnect?.()}},Ut=class extends Ht{mainWallet;chainRecord;_rpcEndpoint;_restEndpoint;connectChains;offlineSigner;namespace=`cosmos`;preferredSignType;constructor(e,t){super(e),this.chainRecord=t,this.preferredSignType=t.clientOptions?.preferredSignType||`amino`}get chain(){return this.chainRecord.chain}get assetList(){return this.chainRecord.assetList}get isTestNet(){return this.chainName.includes(`testnet`)}get preferredEndpoints(){return this.chainRecord.preferredEndpoints}get rpcEndpoints(){return this.preferredEndpoints?.rpc||[]}get restEndpoints(){return this.preferredEndpoints?.rest||[]}get isLazy(){return this.preferredEndpoints.isLazy}addEndpoints(e){this.chainRecord.preferredEndpoints={isLazy:e?.isLazy??this.preferredEndpoints?.isLazy,rpc:[...e?.rpc||[],...this.preferredEndpoints?.rpc||[]],rest:[...e?.rest||[],...this.preferredEndpoints?.rest||[]]}}get chainName(){return this.chainRecord.name}get chainLogoUrl(){return this.assetList?.assets[0]?.logo_URIs?.svg||this.assetList?.assets[0]?.logo_URIs?.png||void 0}get stargateOptions(){return this.chainRecord.clientOptions?.stargate}get signingStargateOptions(){return this.chainRecord.clientOptions?.signingStargate||this.chainRecord.clientOptions?.stargate}get signingCosmwasmOptions(){return this.chainRecord.clientOptions?.signingCosmwasm}get assets(){return this.assetList?.assets}get chainId(){return this.chain?.chain_id}get cosmwasmEnabled(){return this.chain?.codebase?.cosmwasm_enabled}get username(){return this.data?.username}get address(){return this.data?.address}setData(e){this.logger?.debug(`[Data Change] ${JSON.stringify(this.data)} -> ${JSON.stringify(e)} (${this.chainName}/${this.walletName})`),this._mutable.data=e,this.actions?.data?.(e);let t=window.localStorage.getItem(`cosmos-kit@2:core//accounts`),n=t?JSON.parse(t):[];e===void 0?n=n.filter(e=>e.chainId!==this.chainId||e.namespace!==this.namespace):(n=n.filter(e=>e.chainId!==this.chainId||e.namespace!==this.namespace),n.push(e)),window?.localStorage.setItem(`cosmos-kit@2:core//accounts`,JSON.stringify(n)),this.session?.update()}initClient(e){throw Error(`initClient not implemented`)}async update(e={connect:!0}){this.setState(W.Pending),this.setMessage(void 0);try{e.connect&&(this.connectChains?await this.connectChains():await this?.client?.connect?.(this.chainId));let t;try{this.logger?.debug(`Fetching ${this.walletName} ${this.chainId} account.`),t=await this?.client?.getSimpleAccount(this.chainId)}catch(e){if(this.rejectMatched(e)){this.logger?.debug(`Fetching rejected.`),this.setRejected(new Oe);return}if(this.client&&this?.client?.addChain)this.logger?.debug(`Going to add chain ${this.chainId}`),await this.client.addChain(this.chainRecord),t=await this.client.getSimpleAccount(this.chainId);else throw e}this.setData(t),this.setState(W.Done),this.setMessage(void 0)}catch(e){e&&this.rejectMatched(e)?this.setRejected(new Oe):this.setError(new Oe(e.message))}!this.isWalletRejected&&this.walletName!==`cosmiframe`&&window?.localStorage.setItem(`cosmos-kit@2:core//current-wallet`,this.walletName)}getRpcEndpoint=async e=>{let{getIsLazy:t}=await z(async()=>{let{getIsLazy:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{getIsLazy:e}},__vite__mapDeps([0,1,2,3,4,5])),n=t(void 0,this.isLazy,this._rpcEndpoint?.isLazy,e,this.logger);if(n)return this._rpcEndpoint||this.rpcEndpoints[0]||Promise.reject(`No endpoint available.`);let{isValidEndpoint:r}=await z(async()=>{let{isValidEndpoint:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{isValidEndpoint:e}},__vite__mapDeps([0,1,2,3,4,5]));if(this._rpcEndpoint&&await r(this._rpcEndpoint,`rpc`,n,this.logger))return this._rpcEndpoint;let{getFastestEndpoint:i}=await z(async()=>{let{getFastestEndpoint:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{getFastestEndpoint:e}},__vite__mapDeps([0,1,2,3,4,5]));return this._rpcEndpoint=await i(this.rpcEndpoints,`rpc`,this.logger),this._rpcEndpoint};getRestEndpoint=async e=>{let{getIsLazy:t}=await z(async()=>{let{getIsLazy:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{getIsLazy:e}},__vite__mapDeps([0,1,2,3,4,5])),n=t(void 0,this.isLazy,this._restEndpoint?.isLazy,e,this.logger);if(n)return this._restEndpoint||this.restEndpoints[0]||Promise.reject(`No endpoint available.`);let r=`rest`,{isValidEndpoint:i}=await z(async()=>{let{isValidEndpoint:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{isValidEndpoint:e}},__vite__mapDeps([0,1,2,3,4,5]));if(this._restEndpoint&&await i(this._restEndpoint,r,n,this.logger))return this._restEndpoint;let{getFastestEndpoint:a}=await z(async()=>{let{getFastestEndpoint:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{getFastestEndpoint:e}},__vite__mapDeps([0,1,2,3,4,5]));return this._restEndpoint=await a(this.restEndpoints,r,this.logger),this._restEndpoint};getStargateClient=async()=>{let e=await this.getRpcEndpoint(),{StargateClient:t}=await z(async()=>{let{StargateClient:e}=await import(`./build-TBrHU398.js`).then(e=>i(e.t()));return{StargateClient:e}},__vite__mapDeps([6,1,3,4,5,7,8,9,10,11]));return t.connect(e,this.stargateOptions)};getCosmWasmClient=async()=>{let e=await this.getRpcEndpoint(),{CosmWasmClient:t}=await z(async()=>{let{CosmWasmClient:e}=await import(`./build-Tl3I8dhV.js`).then(e=>i(e.default));return{CosmWasmClient:e}},__vite__mapDeps([12,1,8,4,5,9,10,11,6,3,7]));return t.connect(e)};getNameService=async()=>{let e=await this.getCosmWasmClient(),{getNameServiceRegistryFromChainName:t}=await z(async()=>{let{getNameServiceRegistryFromChainName:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{getNameServiceRegistryFromChainName:e}},__vite__mapDeps([0,1,2,3,4,5])),n=t(this.chainName),{NameService:r}=await z(async()=>{let{NameService:e}=await import(`./name-service-Ddo3B_30.js`).then(e=>e.t);return{NameService:e}},__vite__mapDeps([13,1]));return new r(e,n)};async initOfflineSigner(e){if(this.client===void 0)throw Error(`WalletClient is not initialized`);e&&(this.preferredSignType=e),this.offlineSigner=await this.client.getOfflineSigner(this.chainId,this.preferredSignType)}getSigningStargateClient=async()=>{let e=await this.getRpcEndpoint();this.offlineSigner||await this.initOfflineSigner();let{SigningStargateClient:t}=await z(async()=>{let{SigningStargateClient:e}=await import(`./build-TBrHU398.js`).then(e=>i(e.t()));return{SigningStargateClient:e}},__vite__mapDeps([6,1,3,4,5,7,8,9,10,11]));return t.connectWithSigner(e,this.offlineSigner,this.signingStargateOptions)};getSigningCosmWasmClient=async()=>{let e=await this.getRpcEndpoint();this.offlineSigner||await this.initOfflineSigner();let{SigningCosmWasmClient:t}=await z(async()=>{let{SigningCosmWasmClient:e}=await import(`./build-Tl3I8dhV.js`).then(e=>i(e.default));return{SigningCosmWasmClient:e}},__vite__mapDeps([12,1,8,4,5,9,10,11,6,3,7]));return t.connectWithSigner(e,this.offlineSigner,this.signingCosmwasmOptions)};getSigningClient=async e=>{switch(e){case`stargate`:return await this.getSigningStargateClient();case`cosmwasm`:return await this.getSigningCosmWasmClient();default:return this.getSigningStargateClient()}};estimateFee=async(e,t,n,r)=>{if(!this.address)throw Error(`Address is required to estimate fee. Try connect to fetch address.`);let a;switch(t){case`stargate`:a=this.signingStargateOptions?.gasPrice;break;case`cosmwasm`:a=this.signingCosmwasmOptions?.gasPrice;break;default:a=this.signingStargateOptions?.gasPrice}if(!a)throw Error(`Gas price must be set in the client options when auto gas is used.`);let o=await(await this.getSigningClient(t)).simulate(this.address,e,n),{calculateFee:s}=await z(async()=>{let{calculateFee:e}=await import(`./build-TBrHU398.js`).then(e=>i(e.t()));return{calculateFee:e}},__vite__mapDeps([6,1,3,4,5,7,8,9,10,11]));return s(Math.round(o*(r||1.4)),a)};sign=async(e,t,n,r)=>{if(!this.address)throw Error(`Address is required to estimate fee. Try connect to fetch address.`);let i=await this.getSigningClient(r),a;return a=t===void 0||typeof t==`number`?await this.estimateFee(e,r,n,t):t,await i.sign(this.address,e,a,n||``)};broadcast=async(e,t)=>{let n=await this.getSigningClient(t),{TxRaw:r}=await z(async()=>{let{TxRaw:e}=await import(`./tx-Cosvp39i.js`).then(e=>i(e.t()));return{TxRaw:e}},__vite__mapDeps([11,1,4,5])),a=r.encode(e).finish(),o,s;switch(t){case`stargate`:o=this.signingStargateOptions?.broadcastTimeoutMs,s=this.signingStargateOptions?.broadcastPollIntervalMs;break;case`cosmwasm`:o=this.signingCosmwasmOptions?.broadcastTimeoutMs,s=this.signingCosmwasmOptions?.broadcastPollIntervalMs;break;default:o=this.signingStargateOptions?.broadcastTimeoutMs,s=this.signingStargateOptions?.broadcastPollIntervalMs}return n.broadcastTx(a,o,s)};signAndBroadcast=async(e,t,n,r)=>{let i=await this.sign(e,t,n,r);return this.broadcast(i,r)}},Wt=i(pe()),Gt=class extends Ht{_chainWalletMap;preferredEndpoints;ChainWallet;constructor(e,t){super(e),this.ChainWallet=t,this.emitter=new Wt.default,this.emitter.on(`broadcast_client`,e=>{this.logger?.debug(`[Event Fired] \`broadcast_client\` (${this.walletName})`),this.chainWalletMap?.forEach(t=>{t.initClientDone(e)})}),this.emitter.on(`broadcast_env`,e=>{this.logger?.debug(`[Event Fired] \`broadcast_env\` (${this.walletName})`),this.chainWalletMap?.forEach(t=>{t.setEnv(e)})}),this.emitter.on(`sync_connect`,async e=>{this.logger?.debug(`[Event Fired] \`sync_connect\` (${this.walletName})`),await this.connectAll(!0,e),this.update()}),this.emitter.on(`sync_disconnect`,async e=>{this.logger?.debug(`[Event Fired] \`sync_disconnect\` (${this.walletName})`),await this.disconnectAll(!0,e),this.reset()}),this.emitter.on(`reset`,e=>{this.logger?.debug(`[Event Fired] \`reset\` (${this.walletName})`),e.forEach(e=>Array.from(this.chainWalletMap.values()).find(t=>t.chainId===e)?.reset())})}initingClient(){this.clientMutable.state=W.Pending,this.clientMutable.message=void 0,this.clientMutable.data=void 0,this.actions?.clientState?.(W.Pending),this.actions?.clientMessage?.(void 0),this.chainWalletMap?.forEach(e=>{e.initingClient()})}initClientDone(e){this.clientMutable.data=e,this.clientMutable.state=W.Done,this.clientMutable.message=void 0,this.actions?.clientState?.(W.Done),this.actions?.clientMessage?.(void 0),this.chainWalletMap?.forEach(t=>{t.initClientDone(e)})}initClientError(e){if(this.clientMutable.message=e?.message,this.clientMutable.state=W.Error,this.actions?.clientState?.(W.Error),this.actions?.clientMessage?.(e?.message),this.chainWalletMap?.forEach(t=>{t.initClientError(e)}),this.throwErrors===!0)throw Error(this.clientMutable.message)}onSetChainsDone(){}makeFinalEndpoints(e){let t=e.name.includes(`testnet`);return{isLazy:e.preferredEndpoints?.isLazy,rpc:[...e.preferredEndpoints?.rpc||[],...this.preferredEndpoints?.[e.name]?.rpc||[],...e.chain?.apis?.rpc?.map(e=>e.address)||[],t?`https://rpc.testcosmos.directory/${e.name}`:`https://rpc.cosmos.directory/${e.name}`],rest:[...e.preferredEndpoints?.rest||[],...this.preferredEndpoints?.[e.name]?.rest||[],...e.chain?.apis?.rest?.map(e=>e.address)||[],t?`https://rest.testcosmos.directory/${e.name}`:`https://rest.cosmos.directory/${e.name}`]}}addEnpoints(e){this.getChainWalletList(!1).forEach(t=>{t.addEndpoints(e[t.chainName])})}setChains(e,t=!0){(t||!this._chainWalletMap)&&(this._chainWalletMap=new Map),e.forEach(e=>{let t=new this.ChainWallet(this.walletInfo,{...e,preferredEndpoints:this.makeFinalEndpoints(e)});t.mainWallet=this,t.emitter=this.emitter,t.logger=this.logger,t.throwErrors=this.throwErrors,t.session=this.session,t.walletConnectOptions=this.walletConnectOptions,t.initClient=this.initClient,this._chainWalletMap.set(e.name,t)}),this.onSetChainsDone()}get chainWalletMap(){return this._chainWalletMap}getChainWallet=e=>this.chainWalletMap?.get(e);getChainWalletList=(e=!0)=>{let t=Array.from(this.chainWalletMap.values());return e?t.filter(e=>e.isActive):t};getGlobalStatusAndMessage=(e=!0)=>{let t=this.getChainWalletList(e),n=t.find(e=>e.isWalletNotExist);return n?[n.walletStatus,n.message]:(n=t.find(e=>e.isWalletConnecting),n?[ke.Connecting,void 0]:(n=t.find(e=>e.isWalletDisconnected),n?[ke.Disconnected,`Exist disconnected wallets`]:(n=t.find(e=>e.isError||e.isWalletRejected),n?[n.walletStatus,n.message]:[ke.Connected,void 0])))};async update(){if(this.walletStatus===`NotExist`)return window.localStorage.removeItem(`cosmos-kit@2:core//current-wallet`);this.setData(void 0),this.setMessage(void 0),this.setState(W.Done),this.activate(),this.walletName!==`cosmiframe`&&window?.localStorage.setItem(`cosmos-kit@2:core//current-wallet`,this.walletName)}reset(){this.setData(void 0),this.setMessage(void 0),this.setState(W.Init),this.inactivate()}async connectAll(e=!0,t){let n=this.getChainWalletList(e);if(!(n.length>0&&n.every(e=>e.isModeWalletConnect&&e.connectChains)))for(let e of n)e.chainName!==t&&await e.connect()}async disconnectAll(e=!0,t,n){let r=this.getChainWalletList(e);for(let e of r)e.chainName!==t&&await e.disconnect(!1,n)}},Kt=class extends Ut{constructor(e,t){super(e,t)}},qt=class{cosmiframe;constructor(e){this.cosmiframe=e}async getSimpleAccount(...e){return await this.cosmiframe.p.getSimpleAccount(...e)}async connect(...e){return await this.cosmiframe.p.connect(...e)}async enable(...e){await this.cosmiframe.p.enable(...e)}async suggestToken(...e){await this.cosmiframe.p.suggestToken(...e)}async addChain(...e){let t=e[0];t&&`clientOptions`in t&&(t={...t,clientOptions:{}},e[0]=t),await this.cosmiframe.p.addChain(...e)}async getAccount(...e){return await this.cosmiframe.p.getAccount(...e)}getOfflineSigner(e,t){return t===`direct`?this.getOfflineSignerDirect(e):this.getOfflineSignerAmino(e)}getOfflineSignerAmino(e){return this.cosmiframe.getOfflineSignerAmino(e)}getOfflineSignerDirect(e){return this.cosmiframe.getOfflineSignerDirect(e)}async sign(...e){return await this.cosmiframe.p.sign(...e)}async signAmino(...e){return await this.cosmiframe.p.signAmino(...e)}async signDirect(...e){return await this.cosmiframe.p.signDirect(...e)}async signArbitrary(...e){return await this.cosmiframe.p.signArbitrary(...e)}async getEnigmaPubKey(...e){return await this.cosmiframe.p.getEnigmaPubKey(...e)}async getEnigmaTxEncryptionKey(...e){return await this.cosmiframe.p.getEnigmaTxEncryptionKey(...e)}async enigmaEncrypt(...e){return await this.cosmiframe.p.enigmaEncrypt(...e)}async enigmaDecrypt(...e){return await this.cosmiframe.p.enigmaDecrypt(...e)}async sendTx(...e){return await this.cosmiframe.p.sendTx(...e)}},Jt=Object.defineProperty,Yt=(e,t,n)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xt=(e,t)=>Jt(e,`name`,{value:t,configurable:!0}),Zt=(e,t,n)=>(Yt(e,typeof t==`symbol`?t:t+``,n),n),Qt=(e,t,n)=>{if(!t.has(e))throw TypeError(`Cannot `+n)},$t=(e,t,n)=>(Qt(e,t,`read from private field`),n?n.call(e):t.get(e)),en=(e,t,n)=>{if(t.has(e))throw TypeError(`Cannot add the same private member more than once`);t instanceof WeakSet?t.add(e):t.set(e,n)},tn=(e,t,n,r)=>(Qt(e,t,`write to private field`),r?r.call(e,n):t.set(e,n),n),nn=class extends Error{constructor(e){super(e),this.name=`CosmiframeTimeoutError`}};Xt(nn,`CosmiframeTimeoutError`);var rn=nn,an=Xt((e,t,n)=>new Promise((r,i)=>{let a=null,o=Xe(),s=Xt(({origin:e,source:n,data:c})=>{!cn(t,e)||n!==window.parent||c.id!==o||(window.removeEventListener(`message`,s),a!==null&&clearTimeout(a),c.type===`success`?r({result:c.response,origin:e}):i(Error(c.error)))},`listener`);window.addEventListener(`message`,s);try{let t={...e,id:o};window.parent.postMessage(t,`*`)}catch(e){window.removeEventListener(`message`,s),i(e)}n&&(a=setTimeout(()=>{window.removeEventListener(`message`,s),i(new rn(`Timed out after ${n}ms waiting for parent to respond.`))},n))}),`callParentMethod`),on=Xt(e=>{if(!e||e.type===`error`)return{type:`error`,error:e&&e.type===`error`&&e.error||`Handled by outer wallet.`};if(e.type===`success`)return{type:`success`,response:e.value}},`processOverrideHandler`),sn=Xt(()=>typeof window<`u`&&window.self!==window.parent,`isInIframe`),cn=Xt((e,t)=>e.some(e=>e===`*`||typeof e==`string`&&t===e||e instanceof RegExp&&e.test(t)),`isOriginAllowed`),ln,un=class{constructor(e,t){Zt(this,`chainId`),en(this,ln,void 0),this.chainId=e,tn(this,ln,t)}async getAccounts(){return(await an({method:`getAccounts`,params:[],chainId:this.chainId,signerType:`direct`},$t(this,ln))).result}async signDirect(e,t){return(await an({method:`signDirect`,params:[e,t],chainId:this.chainId,signerType:`direct`},$t(this,ln))).result}};ln=new WeakMap,Xt(un,`CosmiframeDirectSigner`);var dn=un,fn,pn=class{constructor(e,t){Zt(this,`chainId`),en(this,fn,void 0),this.chainId=e,tn(this,fn,t)}async getAccounts(){return(await an({method:`getAccounts`,params:[],chainId:this.chainId,signerType:`amino`},$t(this,fn))).result}async signAmino(e,t){return(await an({method:`signAmino`,params:[e,t],chainId:this.chainId,signerType:`amino`},$t(this,fn))).result}};fn=new WeakMap,Xt(pn,`CosmiframeAminoSigner`);var mn=pn,hn,gn=class{constructor(e,t){Zt(this,`chainId`),en(this,hn,void 0),this.chainId=e,tn(this,hn,t)}async getAccounts(){try{return(await an({method:`getAccounts`,params:[],chainId:this.chainId,signerType:`amino`},$t(this,hn))).result}catch{return(await an({method:`getAccounts`,params:[],chainId:this.chainId,signerType:`direct`},$t(this,hn))).result}}async signDirect(e,t){return(await an({method:`signDirect`,params:[e,t],chainId:this.chainId,signerType:`direct`},$t(this,hn))).result}async signAmino(e,t){return(await an({method:`signAmino`,params:[e,t],chainId:this.chainId,signerType:`amino`},$t(this,hn))).result}};hn=new WeakMap,Xt(gn,`CosmiframeEitherSigner`);var _n=gn,vn;(function(e){e.IsCosmiframe=`isCosmiframe`,e.GetMetadata=`getMetadata`})(vn||={});var yn,bn=class{constructor(e){if(en(this,yn,void 0),Zt(this,`p`),!e.length)throw Error(`You must explicitly allow parent origins.`);if(e.includes(`*`))throw Error("It is very unsafe to allow all origins because a controlling app has the power to manipulate messages before they are signed. If you really want to do this, pass in `UNSAFE_ALLOW_ANY_ORIGIN`.");tn(this,yn,e.includes(`UNSAFE_ALLOW_ANY_ORIGIN`)?[`*`]:[...e]),this.p=new Proxy({getEnigmaUtils:e=>({getPubkey:()=>this.p.getEnigmaPubKey(e),decrypt:(...t)=>this.p.enigmaDecrypt(e,...t),encrypt:(...t)=>this.p.enigmaEncrypt(e,...t),getTxEncryptionKey:(...t)=>this.p.getEnigmaTxEncryptionKey(e,...t)})},{get:(e,t)=>t in e&&typeof e[t]!=`function`?e[t]:(...n)=>t in e&&typeof e[t]==`function`?e[t](...n):this.callParentMethod({method:t.toString(),params:n}).then(({result:e})=>e)})}callParentMethod(e,t){return an(e,$t(this,yn),t)}async isReady(){if(!sn())return!1;try{let{origin:e,result:t}=await this.callParentMethod({internal:!0,method:vn.IsCosmiframe,params:[]},500);return e||t}catch(e){if(e instanceof rn)return!1;throw e}}async getMetadata(){return(await this.callParentMethod({internal:!0,method:vn.GetMetadata,params:[]},500)).result}getKeplrClient(){let e=new Proxy({version:`cosmiframe`,mode:`extension`,defaultOptions:{},getOfflineSigner:this.getOfflineSigner.bind(this),getOfflineSignerOnlyAmino:this.getOfflineSignerAmino.bind(this),getOfflineSignerAuto:e=>Promise.resolve(this.getOfflineSigner(e)),getEnigmaUtils:t=>({getPubkey:()=>e.getEnigmaPubKey(t),decrypt:(...n)=>e.enigmaDecrypt(t,...n),encrypt:(...n)=>e.enigmaEncrypt(t,...n),getTxEncryptionKey:(...n)=>e.getEnigmaTxEncryptionKey(t,...n)})},{get:(e,t)=>t in e&&typeof e[t]!=`function`?e[t]:(...n)=>t in e&&typeof e[t]==`function`?e[t](...n):this.callParentMethod({method:t.toString(),params:n}).then(({result:e})=>e)});return e}getOfflineSigner(e){return new _n(e,$t(this,yn))}getOfflineSignerAmino(e){return new mn(e,$t(this,yn))}getOfflineSignerDirect(e){return new dn(e,$t(this,yn))}static listen(e){let{iframe:t,target:n,getOfflineSignerDirect:r,getOfflineSignerAmino:i,nonSignerOverrides:a,signerOverrides:o,origins:s,metadata:c}=e,l=s?.length?s:[`*`],u={[vn.IsCosmiframe]:()=>!0,[vn.GetMetadata]:()=>c||null},d=Xt(async({source:e,origin:s,data:c})=>{if(!t.contentWindow)throw Error(`Iframe contentWindow does not exist.`);if(e!==t.contentWindow||!cn(l,s)||!c||typeof c!=`object`||!(`id`in c)||!(`method`in c)||!(`params`in c))return;let{id:d,params:f,chainId:p,signType:m,internal:h}=c,{method:g,signerType:_}=c;_||=m,g=g.replace(/^signer:/,``);let v;try{if(h){if(typeof u[g]!=`function`)throw Error(`Unknown internal method: ${g}`);v={type:`success`,response:await u[g](...f)}}else if(_){if(!p)throw Error(`Missing chainId in signer message request`);let e=typeof o==`function`?await o(p):o;if(e&&g in e){let t=on(await e[g](...f));t&&(v=t)}if(!v){let e=_===`direct`?await r(p):await i(p);if(!(g in e)||typeof e[g]!=`function`)throw Error(`No ${_} signer method '${g}' for chain ID '${p}'.`);v={type:`success`,response:await e[g](...f)}}}else{let e=typeof a==`function`?await a():a;if(e&&g in e){let t=on(await e[g](...f));t&&(v=t)}if(!v){if(!(g in n)||typeof n[g]!=`function`)throw Error(`No method '${g}' on target.`);v={type:`success`,response:await n[g](...f)}}}}catch(e){v={type:`error`,error:e instanceof Error?e.message:`${e}`}}t.contentWindow?.postMessage({...v,id:d},s)},`listener`);return window.addEventListener(`message`,d),()=>window.removeEventListener(`message`,d)}};yn=new WeakMap,Xt(bn,`Cosmiframe`);var xn=bn,Sn=class extends Gt{constructor(e){super(e,Kt)}get walletInfo(){return this._walletInfo}async initClient(){this.initingClient();let e=new xn(this.walletInfo.allowedParentOrigins);if(!await e.isReady()){this.initClientError(Error(`Failed to detect Cosmiframe parent of allowed origin wrapping this app in an iframe.`));return}let t=await e.getMetadata();t?.name&&typeof t.name==`string`&&(this.walletInfo.prettyName=t.name),t?.imageUrl&&typeof t.imageUrl==`string`&&(this.walletInfo.logo=t.imageUrl),this.initClientDone(new qt(e))}},Cn={name:zt,prettyName:`Cosmiframe`,logo:`data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGgKICAgIGZpbGw9IiM5MzkzOTMiCiAgICBkPSJNOC4xNCAxMC45NmMtLjA5LjMzLS4xNC42OC0uMTQgMS4wNCAwIDEuMS40NSAyLjEgMS4xNyAyLjgzbC0xLjQyIDEuNDJDNi42NyAxNS4xNiA2IDEzLjY2IDYgMTJjMC0uOTMuMjEtMS44LjU4LTIuNTlMNS4xMSA3Ljk0QzQuNCA5LjEzIDQgMTAuNTIgNCAxMmMwIDIuMjEuOSA0LjIxIDIuMzUgNS42NWwtMS40MiAxLjQyQzMuMTIgMTcuMjYgMiAxNC43NiAyIDEyYzAtMi4wNC42MS0zLjkzIDEuNjYtNS41MUwxLjM5IDQuMjIgMi44IDIuODFsMTguMzggMTguMzgtMS40MSAxLjQxTDguMTQgMTAuOTZ6bTkuMjggMy42M2MuMzctLjc5LjU4LTEuNjYuNTgtMi41OSAwLTEuNjYtLjY3LTMuMTYtMS43Ni00LjI0bC0xLjQyIDEuNDJDMTUuNTUgOS45IDE2IDEwLjkgMTYgMTJjMCAuMzYtLjA1LjcxLS4xNCAxLjA0bDEuNTYgMS41NXpNMjAgMTJjMCAxLjQ4LS40IDIuODctMS4xMSA0LjA2bDEuNDUgMS40NUMyMS4zOSAxNS45MyAyMiAxNC4wNCAyMiAxMmMwLTIuNzYtMS4xMi01LjI2LTIuOTMtNy4wN2wtMS40MiAxLjQyQzE5LjEgNy43OSAyMCA5Ljc5IDIwIDEyeiI+PC9wYXRoPgo8L3N2Zz4=`,mode:`extension`,mobileDisabled:!1,rejectMessage:{source:`Request rejected`},connectEventNamesOnWindow:[Bt],allowedParentOrigins:[]},wn=e=>new Sn({...Cn,allowedParentOrigins:e}),Tn=i(a(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.bowser=r():n.bowser=r()})(e,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=90)}({17:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=n(18);t.default=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||``},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||``},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case`NT`:return`NT`;case`XP`:return`XP`;case`NT 5.0`:return`2000`;case`NT 5.1`:return`XP`;case`NT 5.2`:return`2003`;case`NT 6.0`:return`Vista`;case`NT 6.1`:return`7`;case`NT 6.2`:return`8`;case`NT 6.3`:return`8.1`;case`NT 10.0`:return`10`;default:return}},e.getMacOSVersionName=function(e){var t=e.split(`.`).splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),t[0]===10)switch(t[1]){case 5:return`Leopard`;case 6:return`Snow Leopard`;case 7:return`Lion`;case 8:return`Mountain Lion`;case 9:return`Mavericks`;case 10:return`Yosemite`;case 11:return`El Capitan`;case 12:return`Sierra`;case 13:return`High Sierra`;case 14:return`Mojave`;case 15:return`Catalina`;default:return}},e.getAndroidVersionName=function(e){var t=e.split(`.`).splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(t[0]===1&&t[1]<5))return t[0]===1&&t[1]<6?`Cupcake`:t[0]===1&&t[1]>=6?`Donut`:t[0]===2&&t[1]<2?`Eclair`:t[0]===2&&t[1]===2?`Froyo`:t[0]===2&&t[1]>2?`Gingerbread`:t[0]===3?`Honeycomb`:t[0]===4&&t[1]<1?`Ice Cream Sandwich`:t[0]===4&&t[1]<4?`Jelly Bean`:t[0]===4&&t[1]>=4?`KitKat`:t[0]===5?`Lollipop`:t[0]===6?`Marshmallow`:t[0]===7?`Nougat`:t[0]===8?`Oreo`:t[0]===9?`Pie`:void 0},e.getVersionPrecision=function(e){return e.split(`.`).length},e.compareVersions=function(t,n,r){r===void 0&&(r=!1);var i=e.getVersionPrecision(t),a=e.getVersionPrecision(n),o=Math.max(i,a),s=0,c=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+Array(n+1).join(`.0`);return e.map(r.split(`.`),(function(e){return Array(20-e.length).join(`0`)+e})).reverse()}));for(r&&(s=o-Math.min(i,a)),--o;o>=s;){if(c[0][o]>c[1][o])return 1;if(c[0][o]===c[1][o]){if(o===s)return 0;--o}else if(c[0][o]<c[1][o])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,a=Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(a));var s=function(){var e=a[t];typeof e==`object`&&e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=a.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||``},e}(),e.exports=t.default},18:function(e,t,n){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":`amazon_silk`,"Android Browser":`android`,Bada:`bada`,BlackBerry:`blackberry`,Chrome:`chrome`,Chromium:`chromium`,Electron:`electron`,Epiphany:`epiphany`,Firefox:`firefox`,Focus:`focus`,Generic:`generic`,"Google Search":`google_search`,Googlebot:`googlebot`,"Internet Explorer":`ie`,"K-Meleon":`k_meleon`,Maxthon:`maxthon`,"Microsoft Edge":`edge`,"MZ Browser":`mz`,"NAVER Whale Browser":`naver`,Opera:`opera`,"Opera Coast":`opera_coast`,PhantomJS:`phantomjs`,Puffin:`puffin`,QupZilla:`qupzilla`,QQ:`qq`,QQLite:`qqlite`,Safari:`safari`,Sailfish:`sailfish`,"Samsung Internet for Android":`samsung_internet`,SeaMonkey:`seamonkey`,Sleipnir:`sleipnir`,Swing:`swing`,Tizen:`tizen`,"UC Browser":`uc`,Vivaldi:`vivaldi`,"WebOS Browser":`webos`,WeChat:`wechat`,"Yandex Browser":`yandex`,Roku:`roku`},t.BROWSER_MAP={amazon_silk:`Amazon Silk`,android:`Android Browser`,bada:`Bada`,blackberry:`BlackBerry`,chrome:`Chrome`,chromium:`Chromium`,electron:`Electron`,epiphany:`Epiphany`,firefox:`Firefox`,focus:`Focus`,generic:`Generic`,googlebot:`Googlebot`,google_search:`Google Search`,ie:`Internet Explorer`,k_meleon:`K-Meleon`,maxthon:`Maxthon`,edge:`Microsoft Edge`,mz:`MZ Browser`,naver:`NAVER Whale Browser`,opera:`Opera`,opera_coast:`Opera Coast`,phantomjs:`PhantomJS`,puffin:`Puffin`,qupzilla:`QupZilla`,qq:`QQ Browser`,qqlite:`QQ Browser Lite`,safari:`Safari`,sailfish:`Sailfish`,samsung_internet:`Samsung Internet for Android`,seamonkey:`SeaMonkey`,sleipnir:`Sleipnir`,swing:`Swing`,tizen:`Tizen`,uc:`UC Browser`,vivaldi:`Vivaldi`,webos:`WebOS Browser`,wechat:`WeChat`,yandex:`Yandex Browser`},t.PLATFORMS_MAP={tablet:`tablet`,mobile:`mobile`,desktop:`desktop`,tv:`tv`},t.OS_MAP={WindowsPhone:`Windows Phone`,Windows:`Windows`,MacOS:`macOS`,iOS:`iOS`,Android:`Android`,WebOS:`WebOS`,BlackBerry:`BlackBerry`,Bada:`Bada`,Tizen:`Tizen`,Linux:`Linux`,ChromeOS:`Chrome OS`,PlayStation4:`PlayStation 4`,Roku:`Roku`},t.ENGINE_MAP={EdgeHTML:`EdgeHTML`,Blink:`Blink`,Trident:`Trident`,Presto:`Presto`,Gecko:`Gecko`,WebKit:`WebKit`}},90:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},a=n(18);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}t.default=function(){function e(){}var t,n,r;return e.getParser=function(e,t){if(t===void 0&&(t=!1),typeof e!=`string`)throw Error(`UserAgent should be a string`);return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,r=[{key:`BROWSER_MAP`,get:function(){return a.BROWSER_MAP}},{key:`ENGINE_MAP`,get:function(){return a.ENGINE_MAP}},{key:`OS_MAP`,get:function(){return a.OS_MAP}},{key:`PLATFORMS_MAP`,get:function(){return a.PLATFORMS_MAP}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}(),e.exports=t.default},91:function(e,t,n){t.__esModule=!0,t.default=void 0;var r=c(n(92)),i=c(n(93)),a=c(n(94)),o=c(n(95)),s=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(){function e(e,t){if(t===void 0&&(t=!1),e==null||e===``)throw Error(`UserAgent parameter can't be empty`);this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if(typeof t.test==`function`)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw Error(`Browser's test function is not valid`)}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||``:this.getBrowser().name||``},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if(typeof t.test==`function`)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw Error(`Browser's test function is not valid`)}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||``:t||``},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){e===void 0&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||``:t||``},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(a.default,(function(t){if(typeof t.test==`function`)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw Error(`Browser's test function is not valid`)}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||``:this.getEngine().name||``},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(o.default,(function(t){if(typeof t.test==`function`)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw Error(`Browser's test function is not valid`)}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},a=0;if(Object.keys(e).forEach((function(t){var o=e[t];typeof o==`string`?(i[t]=o,a+=1):typeof o==`object`&&(n[t]=o,r+=1)})),r>0){var o=Object.keys(n),c=s.default.find(o,(function(e){return t.isOS(e)}));if(c){var l=this.satisfies(n[c]);if(l!==void 0)return l}var u=s.default.find(o,(function(e){return t.isPlatform(e)}));if(u){var d=this.satisfies(n[u]);if(d!==void 0)return d}}if(a>0){var f=Object.keys(i),p=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(p!==void 0)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){t===void 0&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if(typeof i==`string`)return e[0]===`>`||e[0]===`<`?(n=e.substr(1),e[1]===`=`?(r=!0,n=e.substr(2)):t=[],e[0]===`>`?t.push(1):t.push(-1)):e[0]===`=`?n=e.substr(1):e[0]===`~`&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return t===void 0&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return e===void 0&&(e=[]),e.some((function(e){return t.is(e)}))},e}(),e.exports=t.default},92:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=/version\/(\d+(\.?_?\d+)+)/i;t.default=[{test:[/googlebot/i],describe:function(e){var t={name:`Googlebot`},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:`Opera`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:`Opera`},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:`Samsung Internet for Android`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:`NAVER Whale Browser`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:`MZ Browser`},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:`Focus`},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:`Swing`},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:`Opera Coast`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:`Opera Touch`},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:`Yandex Browser`},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:`UC Browser`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:`Maxthon`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:`Epiphany`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:`Puffin`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:`Sleipnir`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:`K-Meleon`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:`WeChat`},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?`QQ Browser Lite`:`QQ Browser`},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:`Internet Explorer`},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:`Microsoft Edge`},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:`Microsoft Edge`},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:`Vivaldi`},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:`SeaMonkey`},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:`Sailfish`},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:`Amazon Silk`},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:`PhantomJS`},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:`SlimerJS`},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:`BlackBerry`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:`WebOS Browser`},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:`Bada`},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:`Tizen`},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:`QupZilla`},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:`Firefox`},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:`Electron`},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:`Miui`},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:`Chromium`},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:`Chrome`},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:`Google Search`},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:`Android Browser`},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:`PlayStation 4`},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:`Safari`},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=e.search(`\\(`)===-1?/^(.*)\/(.*) /:/^(.*)\/(.*)[ \t]\((.*)/;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}],e.exports=t.default},93:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18);t.default=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:a.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:a.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:a.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,`.`),n=i.default.getMacOSVersionName(t),r={name:a.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,`.`);return{name:a.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:a.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:a.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:a.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.PlayStation4,version:t}}}],e.exports=t.default},94:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18);t.default=[{test:[/googlebot/i],describe:function(){return{type:`bot`,vendor:`Google`}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&`Nova`,n={type:a.PLATFORMS_MAP.mobile,vendor:`Huawei`};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Nexus`}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Apple`,model:`iPad`}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Apple`,model:`iPad`}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Amazon`,model:`Kindle Fire HD 7`}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:`Amazon`}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:a.PLATFORMS_MAP.mobile,vendor:`Apple`,model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:`Nexus`}}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName(!0)===`blackberry`},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:`BlackBerry`}}},{test:function(e){return e.getBrowserName(!0)===`bada`},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getBrowserName()===`windows phone`},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:`Microsoft`}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(`.`)[0]);return e.getOSName(!0)===`android`&&t>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){return e.getOSName(!0)===`android`},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return e.getOSName(!0)===`macos`},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:`Apple`}}},{test:function(e){return e.getOSName(!0)===`windows`},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)===`linux`},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return e.getOSName(!0)===`playstation 4`},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(e){return e.getOSName(!0)===`roku`},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}],e.exports=t.default},95:function(e,t,n){t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18);t.default=[{test:function(e){return e.getBrowserName(!0)===`microsoft edge`},describe:function(e){if(/\sedg\//i.test(e))return{name:a.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:a.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:a.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:a.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:a.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:a.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],e.exports=t.default}})}))}))());se();var En=he(),Dn=(e,t)=>{let n=[];for(let t of e)n.push(`${t.port_id}/${t.channel_id}`);let r=`${n.join(`/`)}/${t}`;return`ibc/`+H.from(new Uint8Array(new En.sha256().update(H.from(r)).digest())).toString(`hex`).toUpperCase()},On=(e,t,n)=>e.find(e=>e.chain_1.chain_name===n&&e.chain_2.chain_name===t),kn=(e,t,n)=>On(e,t,n)||On(e,n,t),An=e=>e.channels.find(e=>e.chain_1.port_id===`transfer`&&e.chain_2.port_id===`transfer`),jn=e=>e.channels.find(e=>e.chain_1.port_id.startsWith(`wasm.`)&&e.chain_2.port_id===`transfer`||e.chain_1.port_id===`transfer`&&e.chain_2.port_id.startsWith(`wasm`)),Mn=(e,t,n,r,i)=>{let a=kn(e,t,n);if(!a)return[];let o=i.startsWith(`cw20:`)?jn(a):An(a);if(!o)return[];let s;s=a.chain_1.chain_name===t?o.chain_1:o.chain_2;let c=[s],l=r.find(({chain_name:e})=>e===n);if(!l)return c;let u=l.assets.find(e=>e.base===i);if(!u)return console.log(`no ${i} found in ${n}`),c;let d=u.traces?.filter?.(e=>e.type===`ibc`||e.type===`ibc-cw20`)??[];if(!d.length)return c;d.length>1&&(console.log(d),console.warn(`contact maintainers: multi-hop not yet supported`));let[f]=d;return[...c,...Mn(e,n,f.counterparty.chain_name,r,f.counterparty.base_denom)]},Nn=(e,t,n,r,i)=>{let a=kn(e,t,n);if(a){if(!(i.startsWith(`cw20:`)?jn(a):An(a)))return;let o=Mn(e,t,n,r,i),s=r.find(({chain_name:e})=>e===n);if(!s)return console.warn(`missing asset list for ${n}`),Dn(o,i);let c=s.assets.find(e=>e.base===i);return c?Dn(o,(c.traces?.find?.(e=>e.type===`ibc`))?.counterparty?.base_denom??c.base):(console.warn(`no ${i} found in ${n}`),Dn(o,i))}},Pn=(e,t,n)=>{let r=t.filter(t=>t.chain_1.chain_name===e||t.chain_2.chain_name===e).map(r=>{let i=r.chain_1.chain_name===e?`chain_2`:`chain_1`,a=r.chain_1.chain_name===e?`chain_1`:`chain_2`,o=r[i].chain_name,s=r[i],c=r[a],l=n.find(e=>e.chain_name===o);if(!l)return;let u={...l,assets:l.assets.filter(e=>!(l.chain_name===`carbon`&&e.base.startsWith(`ibc/`)))}.assets.filter(e=>!e.base.startsWith(`cw20:`)).map(r=>{let i=Nn(t,e,o,n,r.base),a={...r};return a.base=i,a.denom_units=a.denom_units.map(e=>{if(e.denom===r.base){let t={...e};return t.denom=i,t.aliases=[e.denom],t}return e}),a}),d=An(r);if(d)return{chain:{...c,...d[a]},counterparty:{...s,...d[i]},assets:u}}).filter(Boolean).reduce((e,t)=>{e[t.chain.chain_name]=e[t.chain.chain_name]||[];let n=t.assets.map(e=>{try{return{...e,traces:[{type:`ibc`,counterparty:{channel_id:t.counterparty.channel_id,base_denom:e.denom_units[0]?.aliases?.[0]??e.denom_units[0].denom,chain_name:t.counterparty.chain_name},chain:{channel_id:t.chain.channel_id}}]}}catch{console.log(`problem creating assets:`),console.log(e)}}).filter(Boolean),r={...t,assets:n};return e[t.chain.chain_name].push(r),e},{});return Object.keys(r).map(e=>({chain_name:e,assets:r[e].reduce((e,t)=>[...e,...t.assets],[])}))},Fn=(e,t,n)=>{let r=t.filter(t=>t.chain_1.chain_name===e||t.chain_2.chain_name===e).map(r=>{let i=r.chain_1.chain_name===e?`chain_2`:`chain_1`,a=r.chain_1.chain_name===e?`chain_1`:`chain_2`,o=r[i].chain_name,s=r[i],c=r[a],l=n.find(e=>e.chain_name===o);if(!l)return;let u=l.assets.filter(e=>e.base.startsWith(`cw20:`)).map(r=>{let i=Nn(t,e,o,n,r.base),a={...r};return a.base=i,a.denom_units=a.denom_units.map(e=>{if(e.denom===r.base){let t={...e};return t.denom=i,t.aliases=[e.denom],t}return e}),a});if(!u.length)return;let d=jn(r);if(d)return{chain:{...c,...d[a]},counterparty:{...s,...d[i]},assets:u}}).filter(Boolean).reduce((e,t)=>{let n=t;e[n.chain.chain_name]=e[n.chain.chain_name]||[];let r=n.assets.map(e=>{try{return{...e,traces:[{type:`ibc-cw20`,counterparty:{port:t.counterparty.port_id,channel_id:t.counterparty.channel_id,base_denom:e.denom_units[0]?.aliases?.[0]??e.denom_units[0].denom,chain_name:t.counterparty.chain_name},chain:{port:t.chain.port_id,channel_id:t.chain.channel_id}}]}}catch{console.log(`problem creating cw20 assets`),console.log(e)}}).filter(Boolean),i={...t,assets:r};return e[t.chain.chain_name].push(i),e},{});return Object.keys(r).map(e=>({chain_name:e,assets:r[e].reduce((e,t)=>[...e,...t.assets],[])}))},In=(e,t,n)=>{let r=Pn(e,t,n),i=Fn(e,t,n);return r.reduce((e,t)=>{let n=t.chain_name,r=[...t.assets],a=i.find(e=>e.chain_name===n);return a&&[].push.apply(r,a.assets),[{chain_name:n,assets:r},...e]},[])},Ln=class{chainName;fetcher;_chain;_assetList;_assetLists;_ibcData=[];constructor(e){this.chainName=e.chainName,this.fetcher=e.fetcher,this.refresh()}refresh(){this._assetList=this.fetcher.getChainAssetList(this.chainName),this._ibcData=this.fetcher.getChainIbcData(this.chainName),this._chain=this.fetcher.getChain(this.chainName);let e=this._ibcData.reduce((e,t)=>(e.includes(t.chain_1.chain_name)||e.push(t.chain_1.chain_name),e.includes(t.chain_2.chain_name)||e.push(t.chain_2.chain_name),e),[]);this._assetLists=this.fetcher.assetLists.filter(t=>e.includes(t.chain_name))}get chain(){return this._chain}get nativeAssetList(){return this._assetList}get assetLists(){return In(this.chainName,this._ibcData,this._assetLists)}};s();function Rn(e){e===``&&(e=`.`);var t=e.charAt(0)===`/`;e=Vn(e);for(var n=e.split(`/`),r=[],i=0;i<n.length;i++){var a=n[i];a!==`.`&&(a===`..`&&(t||!t&&r.length>0&&r[0]!==`..`)?r.pop():r.push(a))}if(!t&&r.length<2)switch(r.length){case 1:r[0]===``&&r.unshift(`.`);break;default:r.push(`.`)}return e=r.join(`/`),t&&e.charAt(0)!==`/`&&(e=`/`+e),e}function zn(e,t=``){if(e===``)return e;e=Rn(e);var n=e.split(`/`),r=n[n.length-1];return r===``&&n.length>1?n[n.length-2]:t.length>0&&r.substr(r.length-t.length)===t?r.substr(0,r.length-t.length):r}var Bn=RegExp(`//+`,`g`);function Vn(e){return e=e.replace(Bn,`/`),e}var Hn=i(ye()),Un=e=>(0,Hn.default)(e).then(e=>{if(e.status>=400)throw Error(`Bad response`);return e.json()}),Wn=class{urls=[];_assetLists=[];_chains=[];_ibcData=[];chainInfoList=[];constructor(e={}){e.chains&&(this._chains=e.chains),e.assetLists&&(this._assetLists=e.assetLists),e.ibcData&&(this._ibcData=e.ibcData),e.urls&&(this.urls=e.urls)}get chains(){return this._chains}get assetLists(){return this._assetLists}get ibcData(){return this._ibcData}getChain(e){return this._chains.find(t=>t.chain_name===e)}getChainAssetList(e){return this._assetLists.find(t=>t.chain_name===e)}getGeneratedAssetLists(e){return In(e,this._ibcData,this._assetLists)}getChainIbcData(e){return this._ibcData.filter(t=>t.chain_1.chain_name===e||t.chain_2.chain_name===e)}getChainInfo(e){let t=this.chainInfoList.find(t=>t.chainName===e);return t||(t=new Ln({chainName:e,fetcher:this}),this.chainInfoList.push(t)),t}upsertChain(e){if(!this._chains.find(t=>t.chain_name===e.chain_name&&t.network_type===e.network_type)){this._chains.push(e);return}this._chains=this._chains.map(t=>t.chain_name===e.chain_name&&t.network_type===e.network_type?e:t)}updateAssetList(e){if(!this._assetLists.find(t=>t.chain_name===e.chain_name)){this._assetLists.push(e);return}this._assetLists=this._assetLists.map(t=>t.chain_name===e.chain_name?e:t)}upsertIbcData(e){if(!this._ibcData.find(t=>t.chain_1.chain_name===e.chain_1.chain_name&&t.chain_2.chain_name===e.chain_2.chain_name)){this._ibcData.push(e);return}this._ibcData=this._ibcData.map(t=>t.chain_1.chain_name===e.chain_1.chain_name&&t.chain_2.chain_name===e.chain_2.chain_name?e:t)}update(e){if(!e.$schema)throw Error(`not a registered JSON schema type`);switch(zn(e.$schema,`.schema.json`)){case`chain`:this.upsertChain(e);break;case`assetlist`:this.updateAssetList(e);break;case`ibc_data`:this.upsertIbcData(e);break;default:throw Error(`unknown schema type`)}this.chainInfoList.forEach(e=>{e.refresh()})}async fetch(e){let t=await Un(e);this.update(t)}async fetchUrls(){return Promise.all(this.urls.map(e=>this.fetch(e)))}},Gn=class extends Vt{isActive=!1;chainRecord;_wallets;namespace=`cosmos`;session;repelWallet=!0;callbackOptions;fetchInfo=!1;constructor(e,t=[]){if(super(),this.chainRecord=e,this._wallets=t,this.repelWallet&&this.wallets.forEach(e=>{e.updateCallbacks({...e.callbacks,beforeConnect:async()=>{this.wallets.forEach(async t=>{!t.isWalletDisconnected&&t!==e&&await t.disconnect(!1,this.callbackOptions?.beforeConnect?.disconnect)})}})}),!this.chainRecord.chain){this.fetchInfo=!0;let t=new Wn({urls:[`https://raw.githubusercontent.com/cosmos/chain-registry/master/${e.name}/chain.json`]});t.fetchUrls().then(()=>{this.chainRecord.chain=t.getChain(e.name),this.actions?.render?.(e=>e+1)}).catch(t=>{this.chainRecord.chain=null,this.logger?.warn(`Failed to fetch chain info for chain ${e.name}: [${t.name}] ${t.message}`)})}if(!this.chainRecord.assetList){this.fetchInfo=!0;let t=new Wn({urls:[`https://raw.githubusercontent.com/cosmos/chain-registry/master/${e.name}/assetlist.json`]});t.fetchUrls().then(()=>{this.chainRecord.assetList=t.getChainAssetList(e.name)}).catch(t=>{this.chainRecord.assetList=null,this.logger?.warn(`Failed to fetch assetList info for chain ${e.name}: [${t.name}] ${t.message}`)})}this.fetchInfo&&this._wallets.forEach(e=>e.chainRecord=this.chainRecord)}setCallbackOptions(e){this.callbackOptions=e}setEnv(e){this._env=e,this.wallets.forEach(t=>t.setEnv(e))}activate(){this.isActive=!0,this.wallets.forEach(e=>e.activate())}get chainName(){return this.chainRecord.name}get chainLogo(){return this.chainRecord.assetList?.assets[0]?.logo_URIs?.svg||this.chainRecord.assetList?.assets[0]?.logo_URIs?.png||void 0}get wallets(){return this._wallets}get platformEnabledWallets(){return this.isMobile?this._wallets.filter(e=>typeof e.walletInfo.mobileDisabled==`boolean`?!e.walletInfo.mobileDisabled:!e.walletInfo.mobileDisabled()):this._wallets}get isSingleWallet(){return this.wallets.length===1}get current(){if(!this.repelWallet){this.logger.warn("when `repelWallet` is set false, `current` is always undefined.");return}return this.wallets.find(e=>!e.isWalletNotExist&&!e.isWalletDisconnected)}getWallet=e=>this.wallets.find(t=>t.walletName===e);openView=()=>{this.actions?.viewWalletRepo?.(this),this.actions?.viewOpen?.(!0)};closeView=()=>{this.actions?.viewOpen?.(!1)};connect=async(e,t=!0)=>{e?await this.getWallet(e)?.connect(t):this.openView()};disconnect=async(e,t=!0,n)=>{e?await this.getWallet(e)?.disconnect(t,n):await this.current.disconnect(t,n)};getRpcEndpoint=async e=>{for(let t of this.wallets)try{return await t.getRpcEndpoint(e)}catch(e){this.logger?.debug(`${e.name}: ${e.message}`)}return Promise.reject(`No valid RPC endpoint for chain ${this.chainName}!`)};getRestEndpoint=async e=>{for(let t of this.wallets)try{return await t.getRestEndpoint(e)}catch(e){this.logger?.debug(`${e.name}: ${e.message}`)}return Promise.reject(`No valid REST endpoint for chain ${this.chainName}!`)};getStargateClient=async()=>{for(let e of this.wallets)try{return await e.getStargateClient()}catch(e){this.logger?.debug(`${e.name}: ${e.message}`)}return Promise.reject(`Something wrong! Probably no valid RPC endpoint for chain ${this.chainName}.`)};getCosmWasmClient=async()=>{for(let e of this.wallets)try{return await e.getCosmWasmClient()}catch(e){this.logger?.debug(`${e.name}: ${e.message}`)}return Promise.reject(`Something wrong! Probably no valid RPC endpoint for chain ${this.chainName}.`)};getNameService=async()=>{for(let e of this.wallets)try{return await e.getNameService()}catch(e){this.logger?.debug(`${e.name}: ${e.message}`)}return Promise.reject(`Something wrong! Probably no valid RPC endpoint or name service is not registered for chain ${this.chainName}.`)}},Kn=class extends Vt{chainRecords=[];walletRepos=[];defaultNameService=`icns`;mainWallets=[];coreEmitter;walletConnectOptions;session;repelWallet=!0;isLazy;throwErrors;subscribeConnectEvents;cosmiframeEnabled;_reconnectMap={};constructor(e,t,n,r,i=!0,a=[/^https?:\/\/localhost(:\d+)?/,/^https:\/\/(.+\.)?osmosis\.zone/,/^https:\/\/(.+\.)?daodao\.zone/,/^https:\/\/.+-da0da0\.vercel\.app/,/^https:\/\/(.+\.)?abstract\.money/],o,s,c,l,u,d){super(),this.throwErrors=r,this.subscribeConnectEvents=i,this.coreEmitter=new Wt.default,this.logger=n,s&&(this.defaultNameService=s),this.session=new Ve({duration:18e5,callback:()=>{this.mainWallets.forEach(e=>e.disconnectAll(!1)),window?.localStorage.removeItem(`cosmos-kit@2:core//accounts`),window?.localStorage.removeItem(`cosmos-kit@2:core//current-wallet`)},...d}),this.walletConnectOptions=c,this.cosmiframeEnabled=sn()&&!!a?.length,t=[...this.cosmiframeEnabled?[wn(a)]:[],...t],t.forEach(({walletName:e})=>this._reconnectMap[e]=()=>this._reconnect(e,!0)),this.init(e,o,t,c,l,u)}init(e,t,n,r,i,a){this.logger.info(`${e.length} chains and ${n.length} wallets are provided!`),this.isLazy=a?.isLazy,this.chainRecords=e.map(e=>{let n=typeof e==`string`?e:e.chain_name;return Re(e,t,i,a?.endpoints?.[n],this.isLazy,this.logger)}),this.mainWallets=n.map(e=>(e.logger=this.logger,e.throwErrors=this.throwErrors,e.session=this.session,e.walletConnectOptions=this.walletConnectOptions,e?.setChains(this.chainRecords),e)),this.chainRecords.forEach((e,t)=>{let r=new Gn(e,n.map(({getChainWallet:t})=>t(e.name)));r.logger=this.logger,r.repelWallet=this.repelWallet,r.session=this.session,this.walletRepos.push(r),r.fetchInfo&&(this.chainRecords[t]=r.chainRecord)}),this.checkEndpoints(a?.endpoints)}checkEndpoints(e){Object.keys(e||{}).map(e=>{this.chainRecords.findIndex(t=>t.name===e)===-1&&this.logger?.warn(`You are providing endpointOptions with unrecognized chain NAME ${e} (NOT found such chain in ChainProvider property "chains")`)})}setWalletRepel(e){this.repelWallet=e,this.walletRepos.forEach(t=>t.repelWallet=e),window?.localStorage.setItem(`cosmos-kit@2:core//repel-wallet`,e.toString())}addEndpoints=e=>{this.mainWallets.forEach(t=>{t.addEnpoints(e)})};addChains=(e,t,n,r)=>{let i=e.map(e=>{let i=typeof e==`string`?e:e.chain_name;return Re(e,t,n,r?.[i],this.isLazy,this.logger)});i.forEach(e=>{let t=this.chainRecords.findIndex(t=>t.name===e.name);t==-1?this.chainRecords.push(e):this.chainRecords[t]=e}),this.checkEndpoints(r),this.mainWallets.forEach(e=>{e.setChains(i,!1)}),i.forEach((e,t)=>{let n=new Gn(e,this.mainWallets.map(({getChainWallet:t})=>t(e.name)));n.setActions({viewOpen:this.actions?.viewOpen,viewWalletRepo:this.actions?.viewWalletRepo}),n.wallets.forEach(e=>{e.setActions({data:this.actions?.data,state:this.actions?.state,message:this.actions?.message})}),n.logger=this.logger,n.repelWallet=this.repelWallet,n.session=this.session,n.fetchInfo&&(this.chainRecords[t]=n.chainRecord);let r=this.walletRepos.findIndex(e=>e.chainName===n.chainName);r==-1?this.walletRepos.push(n):this.walletRepos[r]=n})};on=(e,t)=>{this.coreEmitter.on(e,t)};off=(e,t)=>{this.coreEmitter.off(e,t)};get activeRepos(){return this.walletRepos.filter(e=>e.isActive===!0)}getMainWallet=e=>{let t=this.mainWallets.find(t=>t.walletName===e);if(!t)throw new Te(e);return t};getWalletRepo=e=>{let t=this.walletRepos.find(t=>t.chainName===e);if(!t)throw Error(`Chain ${e} is not provided.`);return t};getChainWallet=(e,t)=>{let n=this.getMainWallet(t).getChainWallet(e);if(!n)throw Error(`${e} is not provided!`);return n};getChainRecord=e=>{let t=this.chainRecords.find(t=>t.name===e);if(!t)throw Error(`${e} is not provided!`);return t};getChainLogo=e=>{let t=this.getChainRecord(e);return t?.assetList?.assets[0]?.logo_URIs?.svg||t?.assetList?.assets[0]?.logo_URIs?.png||void 0};getNameService=async e=>{let t;if(e)t=e;else{if(!this.defaultNameService)throw Error(`defaultNameService is undefined`);let{getNameServiceRegistryFromName:e}=await z(async()=>{let{getNameServiceRegistryFromName:e}=await import(`./utils-meUBO1X1.js`).then(e=>e.t);return{getNameServiceRegistryFromName:e}},__vite__mapDeps([0,1,2,3,4,5])),n=e(this.defaultNameService);if(!n)throw Error(`Unknown defaultNameService `+this.defaultNameService);t=n.chainName}return await this.getWalletRepo(t).getNameService()};_reconnect=async(e,t=!1,n)=>{t&&this.getMainWallet(e)?.isWalletDisconnected||(this.logger?.debug("[Event Emit] `refresh_connection` (manager)"),this.coreEmitter.emit(`refresh_connection`),await this.getMainWallet(e).connect(),await Promise.all(this.getMainWallet(e).getChainWalletList(!0).map((e,t)=>n?n.includes(e.chainName)?e.connect(!1):void 0:t===0?e.connect(!0):void 0)))};_restoreAccounts=async()=>{let e=this.cosmiframeEnabled?zt:window.localStorage.getItem(`cosmos-kit@2:core//current-wallet`);if(e)try{let t=this.getMainWallet(e);t.activate();let n;if(t.clientMutable.state===W.Done){let e=window.localStorage.getItem(`cosmos-kit@2:core//accounts`);if(e&&e!==`[]`){let r=JSON.parse(e).flatMap(e=>{let n=t.getChainWalletList(!1).find(t=>t.chainRecord.chain?.chain_id===e.chainId&&t.namespace===e.namespace);return n?.activate(),t.walletInfo.mode===`wallet-connect`&&(n?.setData(e),n?.setState(W.Done)),n||[]});t.setState(W.Done);let i=r.flatMap(e=>{try{let t=this.getWalletRepo(e.chainName);return t.activate(),t.chainRecord}catch{return[]}}),a=async()=>{try{return await t.client?.enable?.(i.map(e=>e.chain.chain_id)),!0}catch(e){if(e instanceof Error&&t.rejectMatched(e))return this.logger?.error(`Failed to connect to stored chains: ${e.message}`),!1;throw e}};try{if(!await a())return}catch{for(let e of i)await t.client?.addChain?.(e);if(!await a())return}n=i.map(e=>e.name)}}t.walletInfo.mode!==`wallet-connect`&&await this._reconnect(e,void 0,n)}catch(e){if(e instanceof Te)this.logger?.warn(e.message);else throw e}};_handleCosmiframeKeystoreChangeEvent=e=>{typeof e.data==`object`&&`event`in e.data&&e.data.event===`cosmiframe_keystorechange`&&(window.dispatchEvent(new Event(Bt)),this._reconnect(zt))};onMounted=async()=>{if(typeof window>`u`)return;this.cosmiframeEnabled&&window.addEventListener(`message`,this._handleCosmiframeKeystoreChangeEvent);let e=Tn.default.getParser(window.navigator.userAgent),t={browser:e.getBrowserName(!0),device:e.getPlatform().type||`desktop`,os:e.getOSName(!0)};this.setEnv(t),this.walletRepos.forEach(e=>e.setEnv(t)),await Promise.all(this.mainWallets.map(async e=>{e.setEnv(t),e.emitter?.emit(`broadcast_env`,t),this.subscribeConnectEvents&&(e.walletInfo.connectEventNamesOnWindow?.forEach(t=>{window.addEventListener(t,this._reconnectMap[e.walletName]),this.logger?.debug(`Add "${t}" event listener to window`)}),e.walletInfo.connectEventNamesOnClient?.forEach(async t=>{e.client?.on?.(t,this._reconnectMap[e.walletName]),this.logger?.debug(`Add "${t}" event listener to wallet client ${e.walletPrettyName}`)})),e.walletInfo.mode===`wallet-connect`?await e.initClient(this.walletConnectOptions):await e.initClient()})),await this._restoreAccounts()};onUnmounted=()=>{typeof window<`u`&&(this.cosmiframeEnabled&&window.removeEventListener(`message`,this._handleCosmiframeKeystoreChangeEvent),this.mainWallets.forEach(e=>{e.walletInfo.connectEventNamesOnWindow?.forEach(t=>{window.removeEventListener(t,this._reconnectMap[e.walletName])}),e.walletInfo.connectEventNamesOnClient?.forEach(async t=>{e.client?.off?.(t,this._reconnectMap[e.walletName])})}))}},qn={osmosis:{rpc:[`https://rpc-osmosis.keplr.app/`],rest:[`https://lcd-osmosis.keplr.app/`]},osmosistestnet:{rpc:[`https://rpc-test.osmosis.zone/`],rest:[`https://lcd-test.osmosis.zone/`]},cosmoshub:{rpc:[`https://rpc-cosmoshub.keplr.app`],rest:[`https://lcd-cosmoshub.keplr.app`]},terra:{rpc:[`https://rpc-columbus.keplr.app`],rest:[`https://lcd-columbus.keplr.app`]},secretnetwork:{rpc:[`https://rpc-secret.keplr.app`],rest:[`https://lcd-secret.keplr.app`]},akash:{rpc:[`https://rpc-akash.keplr.app`],rest:[`https://lcd-akash.keplr.app`]},regen:{rpc:[`https://rpc-regen.keplr.app`],rest:[`https://lcd-regen.keplr.app`]},sentinel:{rpc:[`https://rpc-sentinel.keplr.app`],rest:[`https://lcd-sentinel.keplr.app`]},persistence:{rpc:[`https://rpc-persistence.keplr.app`],rest:[`https://lcd-persistence.keplr.app`]},irisnet:{rpc:[`https://rpc-iris.keplr.app`],rest:[`https://lcd-iris.keplr.app`]},cryptoorgchain:{rpc:[`https://rpc-crypto-org.keplr.app/`],rest:[`https://lcd-crypto-org.keplr.app/`]},starname:{rpc:[`https://rpc-iov.keplr.app`],rest:[`https://lcd-iov.keplr.app`]},emoney:{rpc:[`https://rpc-emoney.keplr.app`],rest:[`https://lcd-emoney.keplr.app`]},juno:{rpc:[`https://rpc-juno.itastakers.com`],rest:[`https://lcd-juno.itastakers.com`]},microtick:{rpc:[`https://rpc-microtick.keplr.app`],rest:[`https://lcd-microtick.keplr.app`]},likecoin:{rpc:[`https://mainnet-node.like.co/rpc`],rest:[`https://mainnet-node.like.co`]},impacthub:{rpc:[`https://rpc-impacthub.keplr.app`],rest:[`https://lcd-impacthub.keplr.app`]},bitcanna:{rpc:[`https://rpc.bitcanna.io`],rest:[`https://lcd.bitcanna.io`]},bitsong:{rpc:[`https://rpc.explorebitsong.com`],rest:[`https://lcd.explorebitsong.com`]},kichain:{rpc:[`https://rpc-mainnet.blockchain.ki`],rest:[`https://api-mainnet.blockchain.ki`]},panacea:{rpc:[`https://rpc.gopanacea.org`],rest:[`https://api.gopanacea.org`]},bostrom:{rpc:[`https://rpc.bostrom.cybernode.ai`],rest:[`https://lcd.bostrom.cybernode.ai`]},comdex:{rpc:[`https://rpc.comdex.one`],rest:[`https://rest.comdex.one`]},cheqd:{rpc:[`https://rpc.cheqd.net`],rest:[`https://api.cheqd.net`]},stargaze:{rpc:[`https://rpc.stargaze-apis.com`],rest:[`https://rest.stargaze-apis.com`]},chihuahua:{rpc:[`https://rpc.chihuahua.wtf`],rest:[`https://api.chihuahua.wtf`]},lumnetwork:{rpc:[`https://node0.mainnet.lum.network/rpc`],rest:[`https://node0.mainnet.lum.network/rest`]},vidulum:{rpc:[`https://mainnet-rpc.vidulum.app`],rest:[`https://mainnet-lcd.vidulum.app`]},desmos:{rpc:[`https://rpc.mainnet.desmos.network`],rest:[`https://api.mainnet.desmos.network`]},dig:{rpc:[`https://rpc-1-dig.notional.ventures`],rest:[`https://api-1-dig.notional.ventures`]},sommelier:{rpc:[`https://rpc-sommelier.keplr.app`],rest:[`https://lcd-sommelier.keplr.app`]},sifchain:{rpc:[`https://rpc.sifchain.finance`],rest:[`https://api-int.sifchain.finance`]},bandchain:{rpc:[`https://rpc.laozi3.bandchain.org`],rest:[`https://laozi1.bandchain.org/api`]},konstellation:{rpc:[`https://node1.konstellation.tech:26657`],rest:[`https://node1.konstellation.tech:1318`]},umee:{rpc:[`https://rpc.aphrodite.main.network.umee.cc`],rest:[`https://api.aphrodite.main.network.umee.cc`]},gravitybridge:{rpc:[`https://gravitychain.io:26657`],rest:[`https://gravitychain.io:1317`]},decentr:{rpc:[`https://poseidon.mainnet.decentr.xyz`],rest:[`https://rest.mainnet.decentr.xyz`]},shentu:{rpc:[`https://shenturpc.certikpowered.info`],rest:[`https://azuredragon.noopsbycertik.com`]},carbon:{rpc:[`https://tm-api.carbon.network`],rest:[`https://api.carbon.network`]},injective:{rpc:[`https://public.api.injective.network`],rest:[`https://public.lcd.injective.network`]},cerberus:{rpc:[`https://rpc.cerberus.zone:26657`],rest:[`https://api.cerberus.zone:1317`]},fetchhub:{rpc:[`https://rpc-fetchhub.fetch.ai:443`],rest:[`https://rest-fetchhub.fetch.ai`]},assetmantle:{rpc:[`https://rpc.assetmantle.one/`],rest:[`https://rest.assetmantle.one/`]},provenance:{rpc:[`https://rpc.provenance.io/`],rest:[`https://api.provenance.io`]},galaxy:{rpc:[`https://rpc.galaxychain.zone`],rest:[`https://rest.galaxychain.zone`]},meme:{rpc:[`https://rpc-meme-1.meme.sx:443`],rest:[`https://api-meme-1.meme.sx:443`]},evmos:{rpc:[`https://rpc-evmos.keplr.app/`],rest:[`https://lcd-evmos.keplr.app/`]},terra2:{rpc:[`https://rpc.terrav2.ccvalidators.com/`],rest:[`https://phoenix-lcd.terra.dev/`]},rizon:{rpc:[`https://rpcapi.rizon.world/`],rest:[`https://restapi.rizon.world/`]},kava:{rpc:[`https://rpc-kava.keplr.app`],rest:[`https://lcd-kava.keplr.app`]},genesisl1:{rpc:[`https://26657.genesisl1.org`],rest:[`https://api.genesisl1.org`]}},Jn=class extends Ut{constructor(e,t){super(e,t)}},Yn=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Xn=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Zn=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Qn=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),$n=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),er=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EIP6963EventNames=void 0,(function(e){e.Announce=`eip6963:announceProvider`,e.Request=`eip6963:requestProvider`})(e.EIP6963EventNames||={})})),tr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),nr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),rr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CHAIN_TYPE_TO_GENESIS_HASH=e.GENESIS_HASH_TO_CHAIN_TYPE=e.NETWORK_TO_GENESIS_HASH=e.GENESIS_HASH_TO_NETWORK=e.ChainType=e.Network=e.GenesisHash=e.BitcoinSignMessageType=void 0,(function(e){e.ECDSA=`ecdsa`,e.BIP322_SIMPLE=`bip322-simple`})(e.BitcoinSignMessageType||={});var t;(function(e){e.MAINNET=`000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f`,e.TESTNET=`000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943`,e.SIGNET=`00000008819873e925422c1ff0f99f7cc9bbb232af63a077a480a3633bee1ef6`})(t=e.GenesisHash||={});var n;(function(e){e.MAINNET=`mainnet`,e.LIVENET=`livenet`,e.TESTNET=`testnet`,e.SIGNET=`signet`})(n=e.Network||={});var r;(function(e){e.BITCOIN_MAINNET=`BITCOIN_MAINNET`,e.BITCOIN_TESTNET=`BITCOIN_TESTNET`,e.BITCOIN_SIGNET=`BITCOIN_SIGNET`})(r=e.ChainType||={}),e.GENESIS_HASH_TO_NETWORK={[t.MAINNET]:n.MAINNET,[t.TESTNET]:n.TESTNET,[t.SIGNET]:n.SIGNET},e.NETWORK_TO_GENESIS_HASH={[n.MAINNET]:t.MAINNET,[n.LIVENET]:t.MAINNET,[n.TESTNET]:t.TESTNET,[n.SIGNET]:t.SIGNET},e.GENESIS_HASH_TO_CHAIN_TYPE={[t.MAINNET]:r.BITCOIN_MAINNET,[t.TESTNET]:r.BITCOIN_TESTNET,[t.SIGNET]:r.BITCOIN_SIGNET},e.CHAIN_TYPE_TO_GENESIS_HASH={[r.BITCOIN_MAINNET]:t.MAINNET,[r.BITCOIN_TESTNET]:t.TESTNET,[r.BITCOIN_SIGNET]:t.SIGNET}})),ir=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n($n(),e),n(er(),e),n(tr(),e),n(nr(),e),n(rr(),e)})),ar=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),or=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EthTxStatus=e.EthSignType=void 0,(function(e){e.MESSAGE=`message`,e.TRANSACTION=`transaction`,e.EIP712=`eip-712`})(e.EthSignType||={}),(function(e){e.Success=`0x1`,e.Failure=`0x0`})(e.EthTxStatus||={})})),sr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),cr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),lr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),ur=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),dr=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Yn(),e),n(Xn(),e),n(Zn(),e),n(Qn(),e),n(ir(),e),n(ar(),e),n(or(),e),n(sr(),e),n(cr(),e),n(lr(),e),n(ur(),e)})),fr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.fromHex=e.toHex=void 0;function t(e){let t=``;for(let n of e)t+=(`0`+n.toString(16)).slice(-2);return t}e.toHex=t;function n(e){if(e.length%2!=0)throw Error(`hex string length must be a multiple of 2`);let t=[];for(let n=0;n<e.length;n+=2){let r=e.substr(n,2);if(!r.match(/[0-9a-f]{2}/i))throw Error(`hex string contains invalid characters`);t.push(parseInt(r,16))}return new Uint8Array(t)}e.fromHex=n})),pr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.JSONUint8Array=void 0;var t=fr();e.JSONUint8Array=class e{static parse(e){return JSON.parse(e,(e,n)=>{if(e===`__proto__`)throw Error(`__proto__ is disallowed`);return n&&typeof n==`string`&&n.startsWith(`__uint8array__`)?(0,t.fromHex)(n.replace(`__uint8array__`,``)):typeof BigInt<`u`&&n&&typeof n==`string`&&n.startsWith(`__bigint__`)?BigInt(n.replace(`__bigint__`,``)):n})}static stringify(e){return JSON.stringify(e,(e,n)=>{if(e===`__proto__`)throw Error(`__proto__ is disallowed`);if(n&&(n instanceof Uint8Array||typeof n==`object`&&`type`in n&&`data`in n&&n.type===`Buffer`&&Array.isArray(n.data))){let e=n instanceof Uint8Array?n:new Uint8Array(n.data);return`__uint8array__${(0,t.toHex)(e)}`}return typeof n==`bigint`?`__bigint__${n.toString()}`:n})}static wrap(t){if(t!==void 0)return JSON.parse(e.stringify(t))}static unwrap(t){if(t!==void 0)return e.parse(e.stringify(t))}}})),K=a(((e,t)=>{t.exports=r;var n=null;try{n=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 r(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0});function i(e){return(e&&e.__isLong__)===!0}r.isLong=i;var a={},o={};function s(e,t){var n,r,i;return t?(e>>>=0,(i=0<=e&&e<256)&&(r=o[e],r)?r:(n=l(e,(e|0)<0?-1:0,!0),i&&(o[e]=n),n)):(e|=0,(i=-128<=e&&e<128)&&(r=a[e],r)?r:(n=l(e,e<0?-1:0,!1),i&&(a[e]=n),n))}r.fromInt=s;function c(e,t){if(isNaN(e))return t?b:y;if(t){if(e<0)return b;if(e>=g)return T}else{if(e<=-_)return E;if(e+1>=_)return w}return e<0?c(-e,t).neg():l(e%h|0,e/h|0,t)}r.fromNumber=c;function l(e,t,n){return new r(e,t,n)}r.fromBits=l;var u=Math.pow;function d(e,t,n){if(e.length===0)throw Error(`empty string`);if(e===`NaN`||e===`Infinity`||e===`+Infinity`||e===`-Infinity`)return y;if(typeof t==`number`?(n=t,t=!1):t=!!t,n||=10,n<2||36<n)throw RangeError(`radix`);var r;if((r=e.indexOf(`-`))>0)throw Error(`interior hyphen`);if(r===0)return d(e.substring(1),t,n).neg();for(var i=c(u(n,8)),a=y,o=0;o<e.length;o+=8){var s=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+s),n);if(s<8){var f=c(u(n,s));a=a.mul(f).add(c(l))}else a=a.mul(i),a=a.add(c(l))}return a.unsigned=t,a}r.fromString=d;function f(e,t){return typeof e==`number`?c(e,t):typeof e==`string`?d(e,t):l(e.low,e.high,typeof t==`boolean`?t:e.unsigned)}r.fromValue=f;var p=65536,m=1<<24,h=p*p,g=h*h,_=g/2,v=s(m),y=s(0);r.ZERO=y;var b=s(0,!0);r.UZERO=b;var x=s(1);r.ONE=x;var S=s(1,!0);r.UONE=S;var C=s(-1);r.NEG_ONE=C;var w=l(-1,2147483647,!1);r.MAX_VALUE=w;var T=l(-1,-1,!0);r.MAX_UNSIGNED_VALUE=T;var E=l(0,-2147483648,!1);r.MIN_VALUE=E;var D=r.prototype;D.toInt=function(){return this.unsigned?this.low>>>0:this.low},D.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},D.toString=function(e){if(e||=10,e<2||36<e)throw RangeError(`radix`);if(this.isZero())return`0`;if(this.isNegative()){if(this.eq(E)){var t=c(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return`-`+this.neg().toString(e)}for(var i=c(u(e,6),this.unsigned),a=this,o=``;;){var s=a.div(i),l=(a.sub(s.mul(i)).toInt()>>>0).toString(e);if(a=s,a.isZero())return l+o;for(;l.length<6;)l=`0`+l;o=``+l+o}},D.getHighBits=function(){return this.high},D.getHighBitsUnsigned=function(){return this.high>>>0},D.getLowBits=function(){return this.low},D.getLowBitsUnsigned=function(){return this.low>>>0},D.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=this.high==0?this.low:this.high,t=31;t>0&&!(e&1<<t);t--);return this.high==0?t+1:t+33},D.isZero=function(){return this.high===0&&this.low===0},D.eqz=D.isZero,D.isNegative=function(){return!this.unsigned&&this.high<0},D.isPositive=function(){return this.unsigned||this.high>=0},D.isOdd=function(){return(this.low&1)==1},D.isEven=function(){return!(this.low&1)},D.equals=function(e){return i(e)||(e=f(e)),this.unsigned!==e.unsigned&&this.high>>>31==1&&e.high>>>31==1?!1:this.high===e.high&&this.low===e.low},D.eq=D.equals,D.notEquals=function(e){return!this.eq(e)},D.neq=D.notEquals,D.ne=D.notEquals,D.lessThan=function(e){return this.comp(e)<0},D.lt=D.lessThan,D.lessThanOrEqual=function(e){return this.comp(e)<=0},D.lte=D.lessThanOrEqual,D.le=D.lessThanOrEqual,D.greaterThan=function(e){return this.comp(e)>0},D.gt=D.greaterThan,D.greaterThanOrEqual=function(e){return this.comp(e)>=0},D.gte=D.greaterThanOrEqual,D.ge=D.greaterThanOrEqual,D.compare=function(e){if(i(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},D.comp=D.compare,D.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(x)},D.neg=D.negate,D.add=function(e){i(e)||(e=f(e));var t=this.high>>>16,n=this.high&65535,r=this.low>>>16,a=this.low&65535,o=e.high>>>16,s=e.high&65535,c=e.low>>>16,u=e.low&65535,d=0,p=0,m=0,h=0;return h+=a+u,m+=h>>>16,h&=65535,m+=r+c,p+=m>>>16,m&=65535,p+=n+s,d+=p>>>16,p&=65535,d+=t+o,d&=65535,l(m<<16|h,d<<16|p,this.unsigned)},D.subtract=function(e){return i(e)||(e=f(e)),this.add(e.neg())},D.sub=D.subtract,D.multiply=function(e){if(this.isZero())return y;if(i(e)||(e=f(e)),n)return l(n.mul(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(e.isZero())return y;if(this.eq(E))return e.isOdd()?E:y;if(e.eq(E))return this.isOdd()?E:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return c(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=this.high&65535,a=this.low>>>16,o=this.low&65535,s=e.high>>>16,u=e.high&65535,d=e.low>>>16,p=e.low&65535,m=0,h=0,g=0,_=0;return _+=o*p,g+=_>>>16,_&=65535,g+=a*p,h+=g>>>16,g&=65535,g+=o*d,h+=g>>>16,g&=65535,h+=r*p,m+=h>>>16,h&=65535,h+=a*d,m+=h>>>16,h&=65535,h+=o*u,m+=h>>>16,h&=65535,m+=t*p+r*d+a*u+o*s,m&=65535,l(g<<16|_,m<<16|h,this.unsigned)},D.mul=D.multiply,D.divide=function(e){if(i(e)||(e=f(e)),e.isZero())throw Error(`division by zero`);if(n)return!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1?this:l((this.unsigned?n.div_u:n.div_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(this.isZero())return this.unsigned?b:y;var t,r,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return S;a=b}else{if(this.eq(E))return e.eq(x)||e.eq(C)?E:e.eq(E)?x:(t=this.shr(1).div(e).shl(1),t.eq(y)?e.isNegative()?x:C:(r=this.sub(e.mul(t)),a=t.add(r.div(e)),a));if(e.eq(E))return this.unsigned?b:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=y}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(t)/Math.LN2),s=o<=48?1:u(2,o-48),d=c(t),p=d.mul(e);p.isNegative()||p.gt(r);)t-=s,d=c(t,this.unsigned),p=d.mul(e);d.isZero()&&(d=x),a=a.add(d),r=r.sub(p)}return a},D.div=D.divide,D.modulo=function(e){return i(e)||(e=f(e)),n?l((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},D.mod=D.modulo,D.rem=D.modulo,D.not=function(){return l(~this.low,~this.high,this.unsigned)},D.and=function(e){return i(e)||(e=f(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},D.or=function(e){return i(e)||(e=f(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},D.xor=function(e){return i(e)||(e=f(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},D.shiftLeft=function(e){return i(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},D.shl=D.shiftLeft,D.shiftRight=function(e){return i(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},D.shr=D.shiftRight,D.shiftRightUnsigned=function(e){if(i(e)&&(e=e.toInt()),e&=63,e===0)return this;var t=this.high;if(e<32){var n=this.low;return l(n>>>e|t<<32-e,t>>>e,this.unsigned)}return l(e===32?t:t>>>e-32,0,this.unsigned)},D.shru=D.shiftRightUnsigned,D.shr_u=D.shiftRightUnsigned,D.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},D.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},D.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},D.toBytesLE=function(){var e=this.high,t=this.low;return[t&255,t>>>8&255,t>>>16&255,t>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]},D.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}})),mr=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.CosmJSOfflineSigner=e.CosmJSOfflineSignerOnlyAmino=void 0;var n=class{constructor(e,t,n){this.chainId=e,this.keplr=t,this.signOptions=n}getAccounts(){return t(this,void 0,void 0,function*(){let e=yield this.keplr.getKey(this.chainId);return[{address:e.bech32Address,algo:`secp256k1`,pubkey:e.pubKey}]})}signAmino(e,n){return t(this,void 0,void 0,function*(){if(this.chainId!==n.chain_id)throw Error(`Unmatched chain id with the offline signer`);if((yield this.keplr.getKey(n.chain_id)).bech32Address!==e)throw Error(`Unknown signer address`);return yield this.keplr.signAmino(this.chainId,e,n,this.signOptions)})}sign(e,n){return t(this,void 0,void 0,function*(){return yield this.signAmino(e,n)})}};e.CosmJSOfflineSignerOnlyAmino=n,e.CosmJSOfflineSigner=class extends n{constructor(e,t,n){super(e,t,n)}signDirect(e,n){return t(this,void 0,void 0,function*(){if(this.chainId!==n.chainId)throw Error(`Unmatched chain id with the offline signer`);if((yield this.keplr.getKey(n.chainId)).bech32Address!==e)throw Error(`Unknown signer address`);return yield this.keplr.signDirect(this.chainId,e,n,this.signOptions)})}}})),hr=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.KeplrEnigmaUtils=void 0,e.KeplrEnigmaUtils=class{constructor(e,t){this.chainId=e,this.keplr=t}getPubkey(){return t(this,void 0,void 0,function*(){return yield this.keplr.getEnigmaPubKey(this.chainId)})}getTxEncryptionKey(e){return t(this,void 0,void 0,function*(){return yield this.keplr.getEnigmaTxEncryptionKey(this.chainId,e)})}encrypt(e,n){return t(this,void 0,void 0,function*(){return yield this.keplr.enigmaEncrypt(this.chainId,e,n)})}decrypt(e,n){return t(this,void 0,void 0,function*(){return yield this.keplr.enigmaDecrypt(this.chainId,e,n)})}}})),gr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BUILD_VERSION=void 0,e.BUILD_VERSION=`0.12.313`})),_r=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.metaId=e.KeplrLogoBase64=void 0,e.KeplrLogoBase64=`iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACPfSURBVHgBzV0L0B9VdT9nvy/vB6nVOg4GEx/VER3A1iqo9aMzFgWtoOhgsYaHYNV2lNEqxAdfmKHTakuDTge1FJK2tqOtGqoWFWti8TFSxGDriFSbIK+qgB95h+Tb09397+49r3t3/99/LT0zm//e9917fud3zr27SRB+EbKd1gAcOhFg/kSYmjoBiJ4JhMsB6LHFJetS+wfoAowOQOKnumGVUfSX+23Ba0uRfFaGsh6pNKDqP2PzQN5TbNxqjAeqi2CuWLuvAuU74eT1O+AXIAhDSaX0g+fBFL6ymHShfFhT5RvdknNLzsTIb+cChmzb2OJqJY8aQG9gaAUXaXLbOH0gL4mXmXHC/HYUv1thEWyDk9bPwQAyOQC2H1wHGb29uNtQdLcmFJBv2AsFAPVQJDQPlFBYFACpso7+kFm17g/9sUgr3QFWNI3VtQWO0KaCGXbDBLJwAFSKz2cLjtvglhNFGmr6NomgxEQdT1kYK8N0uzBwH3bosHJo3EKkD1ZG0X6ctAFEW6cAAiwYCAsDwM2HL4e8tHpa45a7NN2UUaxBmFAPmpdt+rGDq0zdrpP2I6yRig06ANHNHuAwjxlzFp67fhOMKeMBoLT6Kby+GHMGmklySVosJAO+ajK9LX6Uxl51eyqZp/tYvVcPbRklynQ7au913aaeBwLRz+6CDU4dhw2yvhVh++EzIcPvBOXXc+SXJz3LMVYeEblOYxKZMx/kF4V70aZPv+q+7ceUmaivHTu0hDSWqzwRWa4rAsTtcOuuM6Gn9APAzYfeVszsM8UAazoVCgDj1DELneqrBgrq/ilyKUFwFE2R8cX8UABD1OmaOx87pkw137gxoP9ssq91xfUZ+Pddl0MP6QbAVwt/Pw+boY+MCQzsquNY6VhCHUoGNeY4fUKjVLR9JdIC8IkxkTrqkerVPsNsHxCk17RUPtFstJw6tE2RfNAPl35Cs7XrSHcGhWPHADBWIJj25XJ8ipbJcUmlZR01Fs+bh0vg+eujBhwHQOnzoaD9pFAi25ZhD2XzPKmHNAAQyC/zHbCelFNGicBPpxP8jZFA0El37xyaHA8oqm8uBGfB89Zv84p8AJTRPuD24m4dpKSLAdhPPGKv8wx4+1l8dO/vtVWL1PvQKMIIxOtFo3VKKy9y4JNmkboflef2N5K5gglO8nYHfgxAhfJHwQQkL9EmXgfHqNcnLkBSwWAPEUFfrG3Xs6k8b+dg66N6RpS7DNMvAp+vwTXrB2Lt7dqugWm4HhyxANhe+P2U5fcBQy0mYh+nntOmL0BcoMREK8vNr8uiCgnKkAEixIO5Zo41IOKKrgPNWFvw1liuVDWHvNi+f/NHs6BErmdJ/Tnugt5Clhl5mVPdUnCkLnMhfVwC8hUz5c69qifm4vYBLrWT285Jq7aUdAOM4ut02ycAkLECilgGb1+1naNcugLJAPPF1iFlid7FxmjH6VO3R99d2zdOwa2k+gNpNVGGcObc5vPRExZvKFwxjahLil1olGf7qd0DgWIXjM+5Hbusg2syxMvVU9RSWv/R/tbvWyUflMZoQ9YwE6vfhxHK1ensy3HC6FlypG56ixZnBDJ1bf/2OwPeU8Qyeh6n5kDrGxZoGSA7CrMiqPEubjFdF5tTnzbGkrkoy+L5HgslGSbyPG4QR85YTp7PABi10sbqTTBIym8T2jnpvsV8EEwQ6EhG8Ha+ZtXHHHjk8M+hr1D7R1TQK1ftumIAtI1Nuo+Vpw+GAHod8rR5qXSqX5mOWzixcpanrIM8RhL9yP6UzM0fLljg1PVzIwY4cujMTovuQBVQD2tnc+zy2ynG6NoGdjJBbO5QWxdoa4aoj9fHwl46jIMBX6Tqt8+j/DwEixcswNsTJNYSwxVkzaIlcF55UwEAc9wwFgA8ZUQnYOt2AcN1b4mybvCh7IN6UH8zLx2ggVcnnY66BqpnxdcILDCaZ3Dn3/RK/nNJAGN7EUy9slkTwBsPeXZhJE3JuoicNn47jJhllwvoVe5RuaJ5Mz7avgCHTZutnBqzy0U0eXblKGIlRuaOHMnXT8ONB2d6Bo+9JeaeTJ2By9pyXslbQ8RRAUU6oI68sdOlpkikkSQIRxoPL4dadmgUSqHzURH5ukaOiqQS1kxPw4nTWfkFL/WDTEr6xR5xBY6v9NGqoFeJEu08BdcrHoDLFr7KQ9np2Glv/EKRSAYoCJQED0GDX2Q5wOYKajAuoW55N5UXAKA8m1mI+jvbUL+6CwGEKFdKQlHDmYRrNWBAgYMzAbZWG5IIZIASGpGTZ+eFdXEPGsf6yZs1wEUnTBeJYzrbmZyOwWgMBRZy7YlL4A1rp2Eh8m8PzsNp39yfrOMqE5i76FK0l1d0+tHjV8Hrj10KQ8h39x2Bk2/5WRisZCQ2HrXKU7GCmKDM6SpCmC9cQA7rus25n3TFEgMNY8U8mErEXIK2UOZvEdK0vvEpKwZT/l2H5uGc2x8S7KDHQzFPaDOC21LlvDCqF1xTmt06sX1JAMk0h8nqDAaICOOgp2BWiB20GZvfZU9bARufuhyGkFL5p9/6INx9KHdezTb7EwfhdQxAKV9LXqaQddOdf3Uu0ndKMIEet58eYIsKBeuIWT7P8sow0UazxGW/unw45R8slP/tB+HHxW87mAoMUbOBmZ4T/Y4h0ykAjSPj+Pxx23aOrQOvUmKgAMdVeaxXBwicJc5duwQ2Pm0Y5T98lODlheXfUyi/sXxyqF9s/2KULgJhgLRPlDKNOSxIJqJ/VGUTMIDxgaQsGsaZq7Q03u7Zx0zDNSesgiGkVP4ZtxSWfyAHHnsYP68WBhNl4NQEVZMzc3M3PZSv71O3nYAecxIXULdHM5Zfry1DVpHS8z5u+RR8/uTOzVJvOffbP4fv7Tka37K2WU5+m9Of+jFxNz3pKeBCqX9S2hd9eXSfGqu1NpTbKrS3xy2fhs+dshqOWTTMjN/63T3w9QcfsSwIvrI9RWOPOn3FBoEdgj0QM57SaTIwELjbz9Y1CDfgLzKKotFN2efaFVPwuResLkDQ/2/QpWTj9/bCP9x9UG4x7UwgrsT+9E88Va0DgbfJmx4jXpAt3WETZThem7HEYYCkwgnc7TLPO2YxwudeOJzy//TO/fDRXQeqIcLcmoHNDE0ZueWx9s7alm8BHYabyAXELDpeFmk3qRsa0wWkqLdRzmdfdMxgyv/AD/bDBwsA8LDDzmYhjFDXEeBN1FUgL2V6nMVfqL+vymI0HWPDvlK6gJx3qG4JBPLdOSj5y+euLKL+KRhCKuXfsb+eQ+phVZlQFgoqT0vsYcnNMjFAWslxIupL8UNbP+/DuoDE+CY+GMm7j18Gr3vSYhhCPvajg/Bn39+/YIvXRI9Obuvr2fOknILGz1guIAkOitdDb2ToZpQ+gqxrFJEPq2OsyVJ++QDvKpT/rmcugyHkE3cdgvfdvq+w/BBUsgFHWzyMW7ws8IHbMoMoGy+oFgzQ2/r1AkdamMlBhDUmdQEx9xJJe2UXP31pBYAh5BsPHIG33bqX+fwI9VcgAIguQKVQC4aktH0mK7V3CwsCo0EXQ2sPl4A0iebNsGYMce9F/rWc8+QlcOVJwxzxfm9uHs7/+sMOKBNb0Ja71cKaJrVyqWMr1rms4el7BoHUL6p3wJqyxDZvoF2ATuvAS4OgzH72L0/Blc8ZxvLv3p/Dq3fMwd4jsfUKGvLjIzU5cpuCH9WS2vz3k+4gMNKZmx1jBow9sGy3YMnB3eM2/jIGwrUrM9j6opWweoBTvlL5Z29/GPYeptbvV2M5oAuTJVtu6tQZ3ikOF17f61MUBul2AWQjUlccJccUjBEqXpDUMYAOsqIgqBf3uJUIn3nJquK0b/K9fqn813zlYbh3/zx7nsaeO/bwVRWKzlvWg3jMYILM2GgouhrvbWDKr8diRHTyqudldDEBA3Dl60+/YiA4rrD8T79k5WDKf+2/KuXrSL2OzsEtr6HClIuReiEvZjYUtf5Yi44YgEwSI/Vic9KBHjpbtElZoF1bh/Kb8Zo6q4sj3utnVlT0P6nsKXz9a7/8MNyzb/RaF1Nb3fYolsRcRb0u6mfZsnM1mhc7RCTxMigR+EWsWhUn66EpmEB4n6RcDFusMvtDL1wOz3rM5Kd8lfJvKix/b171G+iVfV6uwc7+hORxjZ/y2k26hNYFJIIC36ezQxVj3Y5FMCsQljuBYP1dBbbjgutTr3j+MnjpcYtgCLlo+174/oPz7nd8Md9vlOvRvicC1F3BHiWTuotpo8y+lBz17baOuCWHIYaIATzLZ+l3PGcpXHT8EhhC3vn1/fCt+4+MLF8xdgAitidzdcpnBU37VP+BDnNG1lNm9tAea1MwQI/V96iM2j9kFTYzTET/VXpCy9f9mMOeOv8dv7a0AsAQcsUtB+BT/3UYmtM9d0wBCt/3G8OJWQ7PoQ7r9PrukM6DID53t8wJUPSzSLTKv7SZ6r+XlG35OQDJeV307MUVAIaQq79zELb85yFBx9jhkxF4XT5pv36b79I7hngnsRGId2wXeox3AayOg2jZ3qe9NOoXLsiBxeZ52vpFsOmUYU75rr7tYAWACtA84FV/d6/ZiiaftfmXP7hleOuRUmaXtWtdu9ba4xzAt/IIgiMTEqDRwdoA4sUAzyqOeDfPDKf8D912cOTzXcrn/5SL3RLz8wkNDLHArnVTXNkOQHoDopZ+L4NUoOi5q0AK4UmNFXj5zQNOIDoGWLsqg2tftgJWL5mcYq7/j8Pw4VsPyrknAk7sEfwhv0kCo+4PIK3sCbbWvT8KxWYkPQEFDr5Ioh6SzUfmRhYq5ZB5mFep/E+eWZzyrZpc+Z/6wSNw5TcOmICPK5UrQdO8LjfH5R7tq/VzrR57Wjp248EFAEZHBp+2sQuNZA5kmroY67OntBZZXE88plD+WYXyV0+u/HKPf+lX9tf/hg60IBBKM0qH5FYU2bt6Ga+Q7ENXaOqxcUU+RMSNA6TEXYBAIEVHCdbAKK8pY/my7uhmcjXV/RYgXr0U4dozVgym/Ndv2xuOqVvF1kzAx3Zjgjgz+FtVBxie23DcgJOMZzq69oNAdFpRpLhRpqH80BxVQ5zAZxmprf+q314Gxz9u8vP98mj39z69F/YVr3UzV3HsX/5Cct2BOYl0QCHSAO62D2MKj+QDqDFNphX/HIBsD+gkRgMpCxeKl44sgITES5pJdwOXzyyF054y+RHvvXtq5R+i4JoSikT2Sdc4ls/7AkgDw+tL5IsOrIi+HVExgKVx25NUZJXWflDeKP9PJg8mAMDJa6eqa1Iplf+GT+2F+/bkYlGxy7qhiQ9AKCpm+e5a6TYAFgiNLaWAwCcVEV083ee7PI9SxL+pKw291a4J/PjHJej3+2hIpfx/rJWP2u+Dq1hUAPHKYuWectHz95ohmnyAxOt3nQFJSW4DvUFa6zZ5jdhPoMVJnWEFGuxAaCGyp/D1Gz7JLF9t9bjiW4tnrBVYQIqXj2OUJ9Ns/FT9UC+OgvRBkLZstRuwL3sUMJyI37iDR1v5nyiUP1e/0/don8Ac77b1HIYw7Vm5Trf16zw3Jqg7cllAVJaCrJ5fOJL4OUCkN49iWlZwJsb/QUSJ9kS88X8k77nxAPzgJ/PGvyOApG6eX2Y0ZcyHx2IFnQaQykHzKhj6uwMAP45ICgpg9NoGJg9/qP3D+RKHVD0Ir0b5xB8FFii/3r3jf45WZwiefxfWD5D09a2ylQFYJkD/lbhj+bFX596HIcbae4Oh/MeiSwCoC+ehOl4dXaq83raN8qm6qkWkum19VS9F2nqhHa/flj8KAFhVvCfY8rpVcOzqrJpDVs8nq+fE58fvm3q6LMtZ+ypd/8PMObtYm0zUleNnTV7RJiN5NX1lug/TNugCKX6FD0I0XLR/Nwl1IoaqTPh6aJnC97OPAgIKObY4Ov7wq1bCBX8/2vsLyua/nrU7ZdzCOXUbt8AeV7AF4Ni7gSrfNXXGEInlzaqOaut1Lb2x3PaqmYFknbYNYw3OAMgYAdu6MGIEePTk6Y+fgut+d1X15jBlKfwKLIDqitfNTFsYWXRj2YRifQwLGUu2rICCLSRDGJZoruiDardQKT0ovqH7AJYRMCTdw0jBRKG+6P/R3QI2UoLg2nNXVZ+Me/Ru6D8HV+GZqhdLY94oXbqczOmrAUqj6Ky9wKX+Biyesl2AejGAVToJpQsrdhTfx+pFjPD/BARXnb0y6ddDmVQAt9A4CLiF2jqZUlxbt7LuiDUbhTuxQtclqZ7EFVN6UHRQPHDFp6zeAwUsXO64fx6+f/88DCG//qRpmH3FingQSMFydVnMelv3kPt1Mt13zkDCrTfX1uwFh77VZ6kL60geGmW2SrRKh1ZxdX2+EMzqgS2Asfq2HiubgAH2FMHbH358P9z78xyGkFecsBhmf2eFQ//oAEJZsirLcnQZRLKDVbi2+Ma6W4t2ACKAwi8OQkIDnGgMwJXeBnQ0UiJnAREcEsn8PFg9VzaqsknjgPsemofzrt07GAheXoDg8lesgNjauL7U/MYBwxnFA4Z2N0gWSJnDKC1QuILreIFfgrmiMYB4QMkQyJQIudoViLYUKJ9NPjBFzQiTSN3vfQ/lcP6AIDjjxMXwxt9c5isuB0PPoUzuCDKKW73IF+5EKY8snTcMk+UIOr7IHHCaqwEEKL/fXto1kKN4kooP9yRcBOigESQoJpEqfqjHvv/BHC74WHG2PxAI3jizFN744hoE4ARtpC8UytTKDb4bbKDYKLTD/4vtn1Kmr/AI9bcuIMEAMuADq/hcKr5hA7sbgPb8AEw+THwQxK3y/oIJLhwQBBcWILhwZpmlaQDDbD6FB+WiVm4uleqCh7T/t0wQ+mt2DfJswmOFpAuoJj8PMuBzjoa14jkbiLgh4iJaMMEE4ix6yQSX/M0+2Nvvf8PrlAsKEJRXbHdQLS4gWKrnQZhVbuMyLBMEV4COq8hUfCAOkhQr6CNhuwtw6B+aq6Z/swVkwDCgYFRv3EDbnkLw1/Q7gQj3U4995z1H4eKP7B0MBOefurS6hPVQ3OJH1tVY97juAMUOQlpveMfgsgCrZ+g+V+8mmnMA7xI+us3jAJFlwbrDwZBemPZUkEAywaQAaINNuRO5896j8KZr9gwGgvMKAJw3sxQs7aNRBDr5zfsDz2K5xWdkAWb8PmmLtkfBaOo4l97zy32+WlhB7aBiAgpRPXGrp+BCCMwZwKT/VFz7QiaXTNMo6M575+GqGw7AULLht5bC2ScvERQe/LwCgYkDwFV8AIV1IXrHIGMIeXCURRSOFGeF6DeB3jvm8L6awLwbbxO1IpDi79Rrv88/rVqwKOtqxuFf4Hz+lsNV3vvPWQFDyFtOXwb7DxLcdNsjclwIz1jFBM380CsPec1bRPkmEsX3EqFMfQdQj1Gl1bcCqdiqKRt9ENIRhYlPt7gy63RYeFIgYACpG9h8GMAFKCWwqxnjXwoQlD75vQOB4I9evbwa98u3HbEgYArwlOoqGqSSuUq08k1Z8wdZVXaotvx7ARRVgPtRaGPFlYRTPPcLWoKAFNbOWsGEboDCLyI4ChldJRM84ZcyuPC0Yf7W8DvPXl6A6iB8+duP+B+PAgchGoYSytfMIfItSMI9CmPUdUDUtyVj/YcRozIydc1XsvyvSCtAhIVijDCJ/gmES0GS8x39/f2Qvu4Lo7/pe8FAIHjTy5fCrvvmYdf981bxag58vaq/VAJ6DR2GwKBgzRyhTp0v1hE7rb8sN+8C+Nl+CN5U9C+2exBe9DSBIIA5OWy2Z+L7AD7egoVE0Kd3MPyVdpN3/Y0H4fovHoQhZMVShD+5eAU85QlTIZKv14ef3aMO3kgHfF4gh87BUNgpiLMBE+SpMckPDjPgR778DEAp0L4QIrGft9E/2F0EA5moN4FUFuPswVGN1cydg2DLF4YDwR9ftAKe3IIAROQtlQRW+Y1CnQMgpLB70DsFAYhcbTnNhe6VgTr4QXbxMv5CSCyuOCCSdTWrCOXzwyeYQJwxtNXJvADaLQUItt44EAiWIVx5cQCBVnQzPn9LGBSrLdwHiGYC8W0Ce2bzIanaRsqTQHVUKA6EnPyWEbhbiB3wcErWboIrblIhClSfx6xf543qlwD44i2PwBBSguDSDcvgV4pAs6F1CQKb1m8BAzBip4XOsS8HRf1hiKdwvRajgyClcO9wJ5z1M0bglt+Ape2HjJsQ4NBtJwSBfDAC8ckZgXNULK8P/N0++NJAICiVf8XvL69+o0xAMYrW1oxuHXtSKNmAuxOPETgzRF4Hg/kuwGUEQanE3AUYyvfoH5irmESQHMYhAP1No11gaOf7wb/dBzd9azgQbHrzcni8AAE6vtuCI+4KGDu0v5HXx8S/J9Ag0i6gUaa6+CLqKF+k2Y7A+9QLybbnjDGY8sm3LB6feGXBHQB85J/2w3/fM8z3hY8rlH/5m2NM4LgCBxwyKPR3ArZfZweQg/92MHd2AeaNoFIoGAVDS/tim9fSv1YEmLyJ4wBHuT4o1GtrVbb/AMG7rt4zHAgeg/D+N6fdgWUCT9mJdC4BYdmAMYL7QQhJWnQ/BqnuLUBQvDACNx7gfr/px7y9m1AaBRrQUowVKFJGcKAAwaWbhwXBe9/CQeBTsssE0AUGSCievx2044W3gWLhyFI8W9SUu/B//X5MX0NI2SfUDwksluFj1L8tG2hg1HXKFz1Xfmwv/OShHIaQEgTveesyWLlMWXvzbsADI3QEgDCqk0HcDRhXQDYYzbQC2rNzT8kqyPKULH99cBhWmEQobukcCLbMAUEe8n76QA7v+Ys98NMHhwHBYwsQXFaAoDw0atY46grAugV7VuDFDd5BkWQY831g6xdzbalkYwLQ0T65jBC7tCsRY00g2DGmPgrWtN+CEzgQAH5WgOC9m4cDwXHHZnDpHywdgUAoawSKkVVbKpdWa1nD21FkAhTy7IAbo38OIBTmpzllBn9PCTYg8W2gYJIJpH351GHt0IJPPhN/Bg2KBgTvK5jgZwOC4N0tCOxcpc9mbAGS8vl2L27pum/rCvxPwtj+3rNYewIYgjmP8mOAGWQXQBHaB3DB5oOEDGB4+oECBO+/au9gIFhbgOCcVy1ulZUBRIErlaqVz+YLUMcUGJgEAngyVSfUjVI+WMv3joUTlwSBBdEg7wIgNhc+jlIsOCAweSSA8ECh/A9cs6/aJQwhp/zGFJx/7hJB+RiNA/wj5fBMXf4fAWPvBLQFxZSoF9ZjBzfqhyYPJO3za0JxT/rEAkllgqNgrvSYm7jr7nnYVDDBUCA4+XlTsOHcxc6cOX2jejaUVk/xj0hjShduwQv8YoEaZwYc81fcK2VMJFx5RBBnJRJj6zwNertLGN2XILjiz/fCUFKC4DWvXhQUCRbEbkxAUvkcIPotoa3DyooH3u1ZPTp5niLdxQa58CiYILKrmFTacSnQOTgWLhSsqB+00lUf9f2PCxB8dMtwXxqfOjMNp58+zeicWzFjBYi4AbIuhFt9iAVQX7vLfyZubqTRkbDP/UIe+xYJeT7VeaoMdV/8vv58zC1boAhKbC8KH03Vcxt9ikWj7/NI1eV56PTJ84o/bv7GI1X64vOH+V/HGwB88fPzzazDuoJe28AEIVXfI69X35G/xsVT7y6Cw/nbMWL1bcPmXm8RAaJM4ZWjYgnk/S9YSLKO+vXdQqQNYxFxD4xB2P3XChB8/JPDfFBSyssKELz0jGlh8dbaI+cCAGaL6AWGgiHy/OGseKW406VwABsQ6bRSZnpRWT1w6i5QAm0z5bDf0RheGdk0gOMinGdjc/7STYdh22cPw1Dy0tOnAgj0BZHL1LUHQ55rAMId0zngzoyU1slShvnyl6Vj4rkCYBNvZM/+HO776Xy0fUr27a8nQe0foAiwnjuNbuqfoHRFp8hA1bqFhIso/rjhnw9V9y84ZbEaPS6YSD/1aRncRPVXxsjmRz71hzz2J/rz4HmLpvKduG5m15psesmuIr3Gq9Tmad+CctHMwOoX0VlkZGlWnqGth6pepTjeDmsKFG0w5LM8Xcek2X1m8oMSwj3KOl66XYtYHQBQ9SUArLLl3yaSoOe/tsZINl2TYbZ7x/q5Auw7Y9G/jgOi9B6heoz1BX7fyPLRqR/GIvC3dqB2IHo8SrsCfWYAcm7YsQayL5AuVdM58XroUH1sO4c9KV+eBag2O8o5jf5PJMpvcM8DYLSlEucAwO75r8oX5wcQ+gvbNCetFRgBA0/LQyevPjlgIqU4smNqcLC2QnnqXgNDKpqxB0HEv7vKkuWij0h9J1+u7fzWFgB5fmRLkTmnAxyMKMSz+CgLEFtQ3Z/pvwnmNIiYYsAfpwGDzzAeOLwzgcAC4OQZxUMcCEbJntJArrWsLykf1TomlQ8g3IB3wdKpbdAAYOQG8q3tbBxlcaoW9M7y3bYAUQWio0itqFGaAiM5fcrfUE8zhQUPBwaFcfXYoMbQz9z2EQGCkzdqg37dpr+YwgEiSsZ2HVNXcQC0ZXYzzpV12/9mK4fpzRA5yxcW2Ty5dgcgT/hSCtMg8KzaWnejFP4iSS2+AA654IjRLweB159v5WT6cEHi5MVo35ajVTQHQ9sO3efyrnmETc10WgDs3vGE3QUMtoIW9RDIHyhxL3wmB4UBiV3wuHWrcYAilg2tQtH0TfLZmOW3z8jrseqBtkkCBdSCewpI5ZEcW5eDUqqpp0ACrL1mkuJ4ecvsR3B380ziP9qbh/lZ5LEAG7BdDAUE9PIBXEsWymFWaRgF4sxh5iP6CGNxANq5BK0KyoUwL48BWrCQbMfn4wJB5RlWaMvQdRVCycz6gXwlx/sAODIVrL8UAYAiFthdLObVYmYeGNRDg14MDwzk1ImAJSjOWSmlKM/ivb5QK1gwB5m6fLymHJ3n5n256+PVB3BZIZRhWDOSoNd169rmAgDDMDnRJm79AMqgGnnqi+/eXjSYMf9tCWvRDtKkEUUdrMsWknYPfrC2glRdVi+L5MfSmXfAg/WHGTwPMHIwNHrDljoQAq8viNeXOwFO8+weffp39LZ7419l61URuP/X6jQePb/4Ea6glZYOQ3r0GywWDa3ruvIXY1Zt6vboUyccJmiExwg8NhCflEFiTvwZmoS2fgLr35Xlo1fGWFNavQoKHRfguITdeARPBUdcANxRuALK6Hyehx4Q2H0zIVB5DTVDT1Dwh5V9gPXtjrjBHuhFjIHYWg9XgrwnoTTpEqxitSEZZXvP0tZBoVT3eVQ7nl/M9JLLtkjqbyT6vy3/aMdx24jwEr3OGEO/p8iExQswgO3Tt2w2XlUWwKTHG6XJmQdZVmjmq8qE8kDuNjQQBUCbbK1wXYc/k2KF6DMDuFs/DyB15U0b/xq3QUSS/932D29+4uZiDTeBY/3Jew8kGkg8EWMHSPQtWIHMYsu+nc7IB2mUaUi2bccin/lilg9OHjplmkUA4pauJew0aNNl107NQkI6/7/1H35t7SyWINCKid0n8jymAFL5dabew7t9eQN6IHRcDjptkfz+uFW7lqyUjo5yXZ9f5aFsCw6LJIwHI78EdMll16WVX0onAEq5swBBcUpwVtHtbnM6qBYee1ovn2y8rnr6SD+h3BschOLCHC3di04pbX1cXJB6Fh5bm4iSfdqHliF0//XvHOV41sbrpjZDD+kFgFLuvHn9tmxq/tQRCEA+gHgKiitIC7N+jNVXykqCBqQ7kP6QlKJ5G9uXl5e8F2mPUfw2xuJTcwMHyBwQ5SveHE/auCXu87v67yXPeOFds8XG+fK2E2STQp7HPoRo6tS/sX08r8t/Rx9moO3D1BmN2/ccoK0H3pkAqnbe3r9Jh7Lmr3G19I7+fj9jtXg5APoflMTv54qA9+rLtnRTvpbeDMDljq89qQDA/PoCclurjJTlQsQ3R9jBixMMPZtxpBWhx0LuL7kW6QpnmQgbua5Al3fWw7Y8ZZ2BBXDLI4QnLUT5vJ8FyzNmdq3DPJstrOaVxZzX8M/DpNWjYgeInvjpOpmyWvAYAsPiZq61g3P6J63bsoG1/Axi+d5p3uhhsohFC+aA0IanQbSDJrf8imvrPGSbZyP7+74yMQAaKb8tXA5TZxYdbiiumapzAQAIx8WuYiDqBlpqb8vRAoClFwYApSg256BYHwCZUOSkAJC/DAAFzcPO4u6Go5BtKRQ/BwPIYADQ8qyZXTMZZCcW+4UXF6OsyZDWFQ+8DqKKWTgAMhcI4wHAKLatE+wuCoC6LK5cDwCoACbKdxd9FgrGncUrnNtHv9M7h1I6l/8FAVO2ym5DPSIAAAAASUVORK5CYII=`,e.metaId=`d_2hxd99brRo`})),vr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=`ffffffff-ffff-ffff-ffff-ffffffffffff`})),yr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=`00000000-0000-0000-0000-000000000000`})),br=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i})),xr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=br();function n(e){return typeof e==`string`&&t.default.test(e)}e.default=n})),Sr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=xr();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);let n;return Uint8Array.of((n=parseInt(e.slice(0,8),16))>>>24,n>>>16&255,n>>>8&255,n&255,(n=parseInt(e.slice(9,13),16))>>>8,n&255,(n=parseInt(e.slice(14,18),16))>>>8,n&255,(n=parseInt(e.slice(19,23),16))>>>8,n&255,(n=parseInt(e.slice(24,36),16))/1099511627776&255,n/4294967296&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255)}e.default=n})),Cr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unsafeStringify=void 0;var t=xr(),n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function r(e,t=0){return(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+`-`+n[e[t+4]]+n[e[t+5]]+`-`+n[e[t+6]]+n[e[t+7]]+`-`+n[e[t+8]]+n[e[t+9]]+`-`+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase()}e.unsafeStringify=r;function i(e,n=0){let i=r(e,n);if(!(0,t.default)(i))throw TypeError(`Stringified UUID is invalid`);return i}e.default=i})),wr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t,n=new Uint8Array(16);function r(){if(!t){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);t=crypto.getRandomValues.bind(crypto)}return t(n)}e.default=r})),Tr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateV1State=void 0;var t=wr(),n=Cr(),r={};function i(e,i,s){let c,l=e?._v6??!1;if(e){let t=Object.keys(e);t.length===1&&t[0]===`_v6`&&(e=void 0)}if(e)c=o(e.random??e.rng?.()??(0,t.default)(),e.msecs,e.nsecs,e.clockseq,e.node,i,s);else{let e=Date.now(),n=(0,t.default)();a(r,e,n),c=o(n,r.msecs,r.nsecs,l?void 0:r.clockseq,l?void 0:r.node,i,s)}return i??(0,n.unsafeStringify)(c)}function a(e,t,n){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=(n[8]<<8|n[9])&16383),e.msecs=t,e}e.updateV1State=a;function o(e,t,n,r,i,a,o=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!a)a=new Uint8Array(16),o=0;else if(o<0||o+16>a.length)throw RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);t??=Date.now(),n??=0,r??=(e[8]<<8|e[9])&16383,i??=e.slice(10,16),t+=0xb1d069b5400;let s=((t&268435455)*1e4+n)%4294967296;a[o++]=s>>>24&255,a[o++]=s>>>16&255,a[o++]=s>>>8&255,a[o++]=s&255;let c=t/4294967296*1e4&268435455;a[o++]=c>>>8&255,a[o++]=c&255,a[o++]=c>>>24&15|16,a[o++]=c>>>16&255,a[o++]=r>>>8|128,a[o++]=r&255;for(let e=0;e<6;++e)a[o++]=i[e];return a}e.default=i})),Er=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Sr(),n=Cr();function r(e){let r=i(typeof e==`string`?(0,t.default)(e):e);return typeof e==`string`?(0,n.unsafeStringify)(r):r}e.default=r;function i(e){return Uint8Array.of((e[6]&15)<<4|e[7]>>4&15,(e[7]&15)<<4|(e[4]&240)>>4,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,(e[1]&15)<<4|(e[2]&240)>>4,96|e[2]&15,e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}})),Dr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){return n(i(a(e),e.length*8))}function n(e){let t=new Uint8Array(e.length*4);for(let n=0;n<e.length*4;n++)t[n]=e[n>>2]>>>n%4*8&255;return t}function r(e){return(e+64>>>9<<4)+14+1}function i(e,t){let n=new Uint32Array(r(t)).fill(0);n.set(e),n[t>>5]|=128<<t%32,n[n.length-1]=t,e=n;let i=1732584193,a=-271733879,s=-1732584194,c=271733878;for(let t=0;t<e.length;t+=16){let n=i,r=a,p=s,m=c;i=l(i,a,s,c,e[t],7,-680876936),c=l(c,i,a,s,e[t+1],12,-389564586),s=l(s,c,i,a,e[t+2],17,606105819),a=l(a,s,c,i,e[t+3],22,-1044525330),i=l(i,a,s,c,e[t+4],7,-176418897),c=l(c,i,a,s,e[t+5],12,1200080426),s=l(s,c,i,a,e[t+6],17,-1473231341),a=l(a,s,c,i,e[t+7],22,-45705983),i=l(i,a,s,c,e[t+8],7,1770035416),c=l(c,i,a,s,e[t+9],12,-1958414417),s=l(s,c,i,a,e[t+10],17,-42063),a=l(a,s,c,i,e[t+11],22,-1990404162),i=l(i,a,s,c,e[t+12],7,1804603682),c=l(c,i,a,s,e[t+13],12,-40341101),s=l(s,c,i,a,e[t+14],17,-1502002290),a=l(a,s,c,i,e[t+15],22,1236535329),i=u(i,a,s,c,e[t+1],5,-165796510),c=u(c,i,a,s,e[t+6],9,-1069501632),s=u(s,c,i,a,e[t+11],14,643717713),a=u(a,s,c,i,e[t],20,-373897302),i=u(i,a,s,c,e[t+5],5,-701558691),c=u(c,i,a,s,e[t+10],9,38016083),s=u(s,c,i,a,e[t+15],14,-660478335),a=u(a,s,c,i,e[t+4],20,-405537848),i=u(i,a,s,c,e[t+9],5,568446438),c=u(c,i,a,s,e[t+14],9,-1019803690),s=u(s,c,i,a,e[t+3],14,-187363961),a=u(a,s,c,i,e[t+8],20,1163531501),i=u(i,a,s,c,e[t+13],5,-1444681467),c=u(c,i,a,s,e[t+2],9,-51403784),s=u(s,c,i,a,e[t+7],14,1735328473),a=u(a,s,c,i,e[t+12],20,-1926607734),i=d(i,a,s,c,e[t+5],4,-378558),c=d(c,i,a,s,e[t+8],11,-2022574463),s=d(s,c,i,a,e[t+11],16,1839030562),a=d(a,s,c,i,e[t+14],23,-35309556),i=d(i,a,s,c,e[t+1],4,-1530992060),c=d(c,i,a,s,e[t+4],11,1272893353),s=d(s,c,i,a,e[t+7],16,-155497632),a=d(a,s,c,i,e[t+10],23,-1094730640),i=d(i,a,s,c,e[t+13],4,681279174),c=d(c,i,a,s,e[t],11,-358537222),s=d(s,c,i,a,e[t+3],16,-722521979),a=d(a,s,c,i,e[t+6],23,76029189),i=d(i,a,s,c,e[t+9],4,-640364487),c=d(c,i,a,s,e[t+12],11,-421815835),s=d(s,c,i,a,e[t+15],16,530742520),a=d(a,s,c,i,e[t+2],23,-995338651),i=f(i,a,s,c,e[t],6,-198630844),c=f(c,i,a,s,e[t+7],10,1126891415),s=f(s,c,i,a,e[t+14],15,-1416354905),a=f(a,s,c,i,e[t+5],21,-57434055),i=f(i,a,s,c,e[t+12],6,1700485571),c=f(c,i,a,s,e[t+3],10,-1894986606),s=f(s,c,i,a,e[t+10],15,-1051523),a=f(a,s,c,i,e[t+1],21,-2054922799),i=f(i,a,s,c,e[t+8],6,1873313359),c=f(c,i,a,s,e[t+15],10,-30611744),s=f(s,c,i,a,e[t+6],15,-1560198380),a=f(a,s,c,i,e[t+13],21,1309151649),i=f(i,a,s,c,e[t+4],6,-145523070),c=f(c,i,a,s,e[t+11],10,-1120210379),s=f(s,c,i,a,e[t+2],15,718787259),a=f(a,s,c,i,e[t+9],21,-343485551),i=o(i,n),a=o(a,r),s=o(s,p),c=o(c,m)}return Uint32Array.of(i,a,s,c)}function a(e){if(e.length===0)return new Uint32Array;let t=new Uint32Array(r(e.length*8)).fill(0);for(let n=0;n<e.length;n++)t[n>>2]|=(e[n]&255)<<n%4*8;return t}function o(e,t){let n=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(n>>16)<<16|n&65535}function s(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,i,a){return o(s(o(o(t,e),o(r,a)),i),n)}function l(e,t,n,r,i,a,o){return c(t&n|~t&r,e,t,i,a,o)}function u(e,t,n,r,i,a,o){return c(t&r|n&~r,e,t,i,a,o)}function d(e,t,n,r,i,a,o){return c(t^n^r,e,t,i,a,o)}function f(e,t,n,r,i,a,o){return c(n^(t|~r),e,t,i,a,o)}e.default=t})),Or=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=e.stringToBytes=void 0;var t=Sr(),n=Cr();function r(e){e=unescape(encodeURIComponent(e));let t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}e.stringToBytes=r,e.DNS=`6ba7b810-9dad-11d1-80b4-00c04fd430c8`,e.URL=`6ba7b811-9dad-11d1-80b4-00c04fd430c8`;function i(e,i,a,o,s,c){let l=typeof a==`string`?r(a):a,u=typeof o==`string`?(0,t.default)(o):o;if(typeof o==`string`&&(o=(0,t.default)(o)),o?.length!==16)throw TypeError(`Namespace must be array-like (16 iterable integer values, 0-255)`);let d=new Uint8Array(16+l.length);if(d.set(u),d.set(l,u.length),d=i(d),d[6]=d[6]&15|e,d[8]=d[8]&63|128,s){if(c||=0,c<0||c+16>s.length)throw RangeError(`UUID byte range ${c}:${c+15} is out of buffer bounds`);for(let e=0;e<16;++e)s[c+e]=d[e];return s}return(0,n.unsafeStringify)(d)}e.default=i})),kr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;var t=Dr(),n=Or(),r=Or();Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(e,r,i,a){return(0,n.default)(48,t.default,e,r,i,a)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})),Ar=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)}})),jr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Ar(),n=wr(),r=Cr();function i(e,i,a){if(t.default.randomUUID&&!i&&!e)return t.default.randomUUID();e||={};let o=e.random??e.rng?.()??(0,n.default)();if(o.length<16)throw Error(`Random bytes length must be >= 16`);if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,i){if(a||=0,a<0||a+16>i.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[a+e]=o[e];return i}return(0,r.unsafeStringify)(o)}e.default=i})),Mr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function n(e,t){return e<<t|e>>>32-t}function r(e){let r=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520],a=new Uint8Array(e.length+1);a.set(e),a[e.length]=128,e=a;let o=e.length/4+2,s=Math.ceil(o/16),c=Array(s);for(let t=0;t<s;++t){let n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[t*64+r*4]<<24|e[t*64+r*4+1]<<16|e[t*64+r*4+2]<<8|e[t*64+r*4+3];c[t]=n}c[s-1][14]=(e.length-1)*8/2**32,c[s-1][14]=Math.floor(c[s-1][14]),c[s-1][15]=(e.length-1)*8&4294967295;for(let e=0;e<s;++e){let a=new Uint32Array(80);for(let t=0;t<16;++t)a[t]=c[e][t];for(let e=16;e<80;++e)a[e]=n(a[e-3]^a[e-8]^a[e-14]^a[e-16],1);let o=i[0],s=i[1],l=i[2],u=i[3],d=i[4];for(let e=0;e<80;++e){let i=Math.floor(e/20),c=n(o,5)+t(i,s,l,u)+d+r[i]+a[e]>>>0;d=u,u=l,l=n(s,30)>>>0,s=o,o=c}i[0]=i[0]+o>>>0,i[1]=i[1]+s>>>0,i[2]=i[2]+l>>>0,i[3]=i[3]+u>>>0,i[4]=i[4]+d>>>0}return Uint8Array.of(i[0]>>24,i[0]>>16,i[0]>>8,i[0],i[1]>>24,i[1]>>16,i[1]>>8,i[1],i[2]>>24,i[2]>>16,i[2]>>8,i[2],i[3]>>24,i[3]>>16,i[3]>>8,i[3],i[4]>>24,i[4]>>16,i[4]>>8,i[4])}e.default=r})),Nr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.DNS=void 0;var t=Mr(),n=Or(),r=Or();Object.defineProperty(e,"DNS",{enumerable:!0,get:function(){return r.DNS}}),Object.defineProperty(e,"URL",{enumerable:!0,get:function(){return r.URL}});function i(e,r,i,a){return(0,n.default)(80,t.default,e,r,i,a)}i.DNS=n.DNS,i.URL=n.URL,e.default=i})),Pr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Cr(),n=Tr(),r=Er();function i(e,i,a){e??={},a??=0;let o=(0,n.default)({...e,_v6:!0},new Uint8Array(16));if(o=(0,r.default)(o),i){if(a<0||a+16>i.length)throw RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`);for(let e=0;e<16;e++)i[a+e]=o[e];return i}return(0,t.unsafeStringify)(o)}e.default=i})),Fr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Sr(),n=Cr();function r(e){let r=i(typeof e==`string`?(0,t.default)(e):e);return typeof e==`string`?(0,n.unsafeStringify)(r):r}e.default=r;function i(e){return Uint8Array.of((e[3]&15)<<4|e[4]>>4&15,(e[4]&15)<<4|(e[5]&240)>>4,(e[5]&15)<<4|e[6]&15,e[7],(e[1]&15)<<4|(e[2]&240)>>4,(e[2]&15)<<4|(e[3]&240)>>4,16|(e[0]&240)>>4,(e[0]&15)<<4|(e[1]&240)>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}})),Ir=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.updateV7State=void 0;var t=wr(),n=Cr(),r={};function i(e,i,s){let c;if(e)c=o(e.random??e.rng?.()??(0,t.default)(),e.msecs,e.seq,i,s);else{let e=Date.now(),n=(0,t.default)();a(r,e,n),c=o(n,r.msecs,r.seq,i,s)}return i??(0,n.unsafeStringify)(c)}function a(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}e.updateV7State=a;function o(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}e.default=i})),Lr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=xr();function n(e){if(!(0,t.default)(e))throw TypeError(`Invalid UUID`);return parseInt(e.slice(14,15),16)}e.default=n})),Rr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.validate=e.v7=e.v6ToV1=e.v6=e.v5=e.v4=e.v3=e.v1ToV6=e.v1=e.stringify=e.parse=e.NIL=e.MAX=void 0;var t=vr();Object.defineProperty(e,"MAX",{enumerable:!0,get:function(){return t.default}});var n=yr();Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return n.default}});var r=Sr();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return r.default}});var i=Cr();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.default}});var a=Tr();Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return a.default}});var o=Er();Object.defineProperty(e,"v1ToV6",{enumerable:!0,get:function(){return o.default}});var s=kr();Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return s.default}});var c=jr();Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return c.default}});var l=Nr();Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return l.default}});var u=Pr();Object.defineProperty(e,"v6",{enumerable:!0,get:function(){return u.default}});var d=Fr();Object.defineProperty(e,"v6ToV1",{enumerable:!0,get:function(){return d.default}});var f=Ir();Object.defineProperty(e,"v7",{enumerable:!0,get:function(){return f.default}});var p=xr();Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return p.default}});var m=Lr();Object.defineProperty(e,"version",{enumerable:!0,get:function(){return m.default}})})),zr=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.BitcoinProvider=e.Keplr=e.EthereumProviderRpcError=void 0;var r=dr(),i=pr(),a=n(Le()),o=n(K()),s=mr(),c=hr(),l=gr(),u=n(pe()),d=_r(),f=Rr(),p=class e extends Error{constructor(t,n,r){super(n),this.code=t,this.data=r,Object.setPrototypeOf(this,e.prototype)}};e.EthereumProviderRpcError=p,e.Keplr=class e{constructor(){this.enigmaUtils=new Map,this.version=l.BUILD_VERSION,this.mode=`extension`,this.defaultOptions={},this.ethereum=new h(this),this.starknet=void 0,this.bitcoin=new g(this)}static staticRequestMethod(e,t){let n=`ReactNativeWebView`in window,r=n?e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))}:e=>{window.postMessage(e,window.location.origin)},a=n?e=>{if(e&&typeof e==`string`)try{return JSON.parse(e)}catch{}return e}:e=>e,o=new Uint8Array(8),s=Array.from(crypto.getRandomValues(o)).map(e=>e.toString(16)).join(``),c={type:window.keplrRequestMetaIdSupport?`proxy-request${d.metaId?`-${d.metaId}`:``}`:`proxy-request`,id:s,method:e,args:i.JSONUint8Array.wrap(t)};return new Promise((e,t)=>{let n=r=>{let o=a(r.data);if(!o||o.type!==`proxy-request-response`||o.id!==s)return;window.removeEventListener(`message`,n);let c=i.JSONUint8Array.unwrap(o.result);if(!c){t(Error(`Result is null`));return}if(c.error){t(Error(c.error));return}e(c.return)};window.addEventListener(`message`,n),r(c)})}requestMethod(t,n){return e.staticRequestMethod(t,n)}static getKeplr(n=1500){return t(this,void 0,void 0,function*(){yield m();let t=`ReactNativeWebView`in window,r=typeof navigator<`u`&&`userAgent`in navigator&&navigator.userAgent.includes(`Firefox`);if(t||r||window.keplrRequestMetaIdSupport!=null)return new Promise((t,r)=>{let i=setTimeout(()=>{t(void 0)},n);e.staticRequestMethod(`ping`,[]).then(()=>{clearTimeout(i),t(new e)}).catch(n=>{(n?.message)?.includes(`Invalid method: ping`)?(clearTimeout(i),t(new e)):r(n)})})})}ping(){return t(this,void 0,void 0,function*(){yield this.requestMethod(`ping`,[])})}enable(e){return t(this,void 0,void 0,function*(){yield this.requestMethod(`enable`,[e])})}disable(e){return t(this,void 0,void 0,function*(){yield this.requestMethod(`disable`,[e])})}experimentalSuggestChain(e){return t(this,void 0,void 0,function*(){if(e.hideInUI)throw Error(`hideInUI is not allowed`);(e.features?.includes(`stargate`)||e.features?.includes(`no-legacy-stdTx`))&&console.warn(`“stargate”, “no-legacy-stdTx” feature has been deprecated. The launchpad is no longer supported, thus works without the two features. We would keep the aforementioned two feature for a while, but the upcoming update would potentially cause errors. Remove the two feature.`),yield this.requestMethod(`experimentalSuggestChain`,[e])})}getKey(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getKey`,[e])})}getKeysSettled(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getKeysSettled`,[e])})}sendTx(e,n,r){return t(this,void 0,void 0,function*(){return`length`in n||console.warn("Do not send legacy std tx via `sendTx` API. We now only support protobuf tx. The usage of legeacy std tx would throw an error in the near future."),yield this.requestMethod(`sendTx`,[e,n,r])})}signAmino(e,n,r,i={}){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`signAmino`,[e,n,r,(0,a.default)(this.defaultOptions.sign??{},i)])})}signDirect(e,n,r,i={}){return t(this,void 0,void 0,function*(){let t=yield this.requestMethod(`signDirect`,[e,n,{bodyBytes:r.bodyBytes,authInfoBytes:r.authInfoBytes,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null},(0,a.default)(this.defaultOptions.sign??{},i)]),s=t.signed;return{signed:{bodyBytes:s.bodyBytes,authInfoBytes:s.authInfoBytes,chainId:s.chainId,accountNumber:o.default.fromString(s.accountNumber)},signature:t.signature}})}signDirectAux(e,n,r,i={}){return t(this,void 0,void 0,function*(){let t=yield this.requestMethod(`signDirectAux`,[e,n,{bodyBytes:r.bodyBytes,publicKey:r.publicKey,chainId:r.chainId,accountNumber:r.accountNumber?r.accountNumber.toString():null,sequence:r.sequence?r.sequence.toString():null},(0,a.default)({preferNoSetMemo:this.defaultOptions.sign?.preferNoSetMemo},i)]),s=t.signed;return{signed:{bodyBytes:s.bodyBytes,publicKey:s.publicKey||void 0,chainId:s.chainId,accountNumber:o.default.fromString(s.accountNumber),sequence:o.default.fromString(s.sequence)},signature:t.signature}})}signArbitrary(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`signArbitrary`,[e,n,r])})}signICNSAdr36(e,t,n,r,i){return this.requestMethod(`signICNSAdr36`,[e,t,n,r,i])}verifyArbitrary(e,n,r,i){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`verifyArbitrary`,[e,n,r,i])})}signEthereum(e,n,r,i){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`signEthereum`,[e,n,r,i])})}getOfflineSigner(e,t){return new s.CosmJSOfflineSigner(e,this,t)}getOfflineSignerOnlyAmino(e,t){return new s.CosmJSOfflineSignerOnlyAmino(e,this,t)}getOfflineSignerAuto(e,n){return t(this,void 0,void 0,function*(){return(yield this.getKey(e)).isNanoLedger?new s.CosmJSOfflineSignerOnlyAmino(e,this,n):new s.CosmJSOfflineSigner(e,this,n)})}suggestToken(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`suggestToken`,[e,n,r])})}getSecret20ViewingKey(e,n){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getSecret20ViewingKey`,[e,n])})}getEnigmaPubKey(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getEnigmaPubKey`,[e])})}getEnigmaTxEncryptionKey(e,n){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getEnigmaTxEncryptionKey`,[e,n])})}enigmaEncrypt(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`enigmaEncrypt`,[e,n,r])})}enigmaDecrypt(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`enigmaDecrypt`,[e,n,r])})}getEnigmaUtils(e){if(this.enigmaUtils.has(e))return this.enigmaUtils.get(e);let t=new c.KeplrEnigmaUtils(e,this);return this.enigmaUtils.set(e,t),t}experimentalSignEIP712CosmosTx_v0(e,n,r,i,o={}){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`experimentalSignEIP712CosmosTx_v0`,[e,n,r,i,(0,a.default)(this.defaultOptions.sign??{},o)])})}getChainInfosWithoutEndpoints(){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getChainInfosWithoutEndpoints`,[])})}changeKeyRingName({defaultName:e,editable:n=!0}){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`changeKeyRingName`,[{defaultName:e,editable:n}])})}sendEthereumTx(e,n){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`sendEthereumTx`,[e,n])})}suggestERC20(e,n){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`suggestERC20`,[e,n])})}getChainInfoWithoutEndpoints(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getChainInfoWithoutEndpoints`,[e])})}getStarknetKey(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getStarknetKey`,[e])})}getStarknetKeysSettled(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getStarknetKeysSettled`,[e])})}signStarknetTx(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`signStarknetTx`,[e,n,r])})}signStarknetDeployAccountTransaction(e,n){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`signStarknetDeployAccountTransaction`,[e,n])})}getBitcoinKey(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getBitcoinKey`,[e])})}getBitcoinKeysSettled(e){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`getBitcoinKeysSettled`,[e])})}signPsbt(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`signPsbt`,[e,n,r])})}signPsbts(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`signPsbts`,[e,n,r])})}__core__getAnalyticsId(){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`__core__getAnalyticsId`,[])})}__core__privilageSignAminoWithdrawRewards(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`__core__privilageSignAminoWithdrawRewards`,[e,n,r])})}__core__privilageSignAminoDelegate(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`__core__privilageSignAminoDelegate`,[e,n,r])})}__core__privilageSignAminoExecuteCosmWasm(e,n,r){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`__core__privilageSignAminoExecuteCosmWasm`,[e,n,r])})}__core__webpageClosed(){return t(this,void 0,void 0,function*(){return yield this.requestMethod(`__core__webpageClosed`,[])})}};var m=()=>document.readyState===`complete`?Promise.resolve():new Promise(e=>{let t=n=>{n.target&&n.target.readyState===`complete`&&(e(),document.removeEventListener(`readystatechange`,t))};document.addEventListener(`readystatechange`,t)}),h=class e extends u.default{constructor(n){if(super(),this.keplr=n,this.eip6963ProviderInfo={uuid:(0,f.v4)(),name:`Keplr`,rdns:`app.keplr`,icon:`data:image/png;base64,${d.KeplrLogoBase64}`},this.chainId=null,this.networkVersion=null,this.selectedAddress=null,this.isKeplr=!0,this.isMetaMask=!0,this._isConnected=!1,this._currentChainId=null,this._initProviderState=()=>t(this,void 0,void 0,function*(){let t=yield e.requestMethod(`request`,{method:`keplr_initProviderState`});if(t){let{currentEvmChainId:e,currentChainId:n,selectedAddress:r}=t;n!=null&&e!=null&&r!=null&&(this._handleConnect(e),this._handleChainChanged(e),this._currentChainId=n,this._handleAccountsChanged(r))}}),this._initProviderState(),window.addEventListener(`keplr_keystorechange`,()=>t(this,void 0,void 0,function*(){if(this._currentChainId&&(yield n.getChainInfoWithoutEndpoints(this._currentChainId))){let e=null;try{e=(yield n.getKey(this._currentChainId)).ethereumHexAddress}catch(e){e?.message.includes(`on Ledger by selecting the chain in the extension`)||console.error(`Failed to get key for keystorechange event: ${e.message}`)}this._handleAccountsChanged(e)}})),window.addEventListener(`keplr_chainChanged`,e=>{if(e.detail.origin===window.location.origin){let t=e.detail.evmChainId;this._handleChainChanged(t)}}),window.addEventListener(`keplr_ethSubscription`,e=>{let t=e.detail.origin,n=e.detail.providerId;if(t===window.location.origin&&n===this.eip6963ProviderInfo?.uuid){let t=e.detail.data;this.emit(`message`,{type:`eth_subscription`,data:t})}}),this.eip6963ProviderInfo){let e=new CustomEvent(r.EIP6963EventNames.Announce,{detail:Object.freeze({info:this.eip6963ProviderInfo,provider:this})});window.addEventListener(r.EIP6963EventNames.Request,()=>window.dispatchEvent(e)),window.dispatchEvent(e)}}static requestMethod(e,n){return t(this,void 0,void 0,function*(){let t=`ReactNativeWebView`in window,r=t?e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))}:e=>{window.postMessage(e,window.location.origin)},a=t?e=>{if(e&&typeof e==`string`)try{return JSON.parse(e)}catch{}return e}:e=>e,o=new Uint8Array(8),s=Array.from(crypto.getRandomValues(o)).map(e=>e.toString(16)).join(``),c={type:window.keplrRequestMetaIdSupport?`proxy-request${d.metaId?`-${d.metaId}`:``}`:`proxy-request`,id:s,method:`ethereum`,args:i.JSONUint8Array.wrap(n),ethereumProviderMethod:e};return new Promise((e,t)=>{let n=r=>{let o=a(r.data);if(!o||o.type!==`proxy-request-response`||o.id!==s)return;window.removeEventListener(`message`,n);let c=i.JSONUint8Array.unwrap(o.result);if(!c){t(Error(`Result is null`));return}if(c.error){let e=c.error;t(e.code&&!e.module?new p(e.code,e.message,e.data):Error(e));return}e(c.return)};window.addEventListener(`message`,n),r(c)})})}_handleConnect(e){return t(this,void 0,void 0,function*(){if(!this._isConnected){this._isConnected=!0;let t=`0x${e.toString(16)}`;this.emit(`connect`,{chainId:t})}})}_handleDisconnect(){return t(this,void 0,void 0,function*(){this._isConnected&&(yield e.requestMethod(`request`,{method:`keplr_disconnect`}),this._isConnected=!1,this.chainId=null,this.selectedAddress=null,this.networkVersion=null,this.emit(`disconnect`))})}_handleChainChanged(e){return t(this,void 0,void 0,function*(){let t=`0x${e.toString(16)}`;t!==this.chainId&&(this.chainId=t,this.networkVersion=e.toString(10),this.emit(`chainChanged`,t))})}_handleAccountsChanged(e){return t(this,void 0,void 0,function*(){this.selectedAddress!==e&&(this.selectedAddress=e,e?this.emit(`accountsChanged`,[e]):this.emit(`accountsChanged`,[]))})}isConnected(){return this._isConnected}request({method:n,params:r,chainId:i}){return t(this,void 0,void 0,function*(){if(typeof n!=`string`)throw Error("Invalid paramater: `method` must be a string");return this._isConnected||(yield this._initProviderState()),yield e.requestMethod(`request`,{method:n,params:r,providerId:this.eip6963ProviderInfo?.uuid,chainId:i})})}enable(){return t(this,void 0,void 0,function*(){return yield e.requestMethod(`request`,{method:`eth_requestAccounts`})})}net_version(){return t(this,void 0,void 0,function*(){return yield e.requestMethod(`request`,{method:`net_version`})})}},g=class e extends u.default{constructor(e){super(),this.keplr=e,this._handleNetworkChanged=e=>t(this,void 0,void 0,function*(){this.emit(`networkChanged`,e)}),this._handleAccountsChanged=e=>t(this,void 0,void 0,function*(){e&&e.length>0?(this.emit(`accountChanged`,e),this.emit(`accountsChanged`,e)):(this.emit(`accountChanged`,[``]),this.emit(`accountsChanged`,[``]))}),window.addEventListener(`keplr_keystorechange`,()=>t(this,void 0,void 0,function*(){let e=null;try{e=yield this.getAccounts()}catch(e){e?.message.includes(`on Ledger by selecting the chain in the extension`)||console.error(`Failed to get key for keystorechange event: ${e.message}`)}this._handleAccountsChanged(e)})),window.addEventListener(`keplr_bitcoinChainChanged`,e=>t(this,void 0,void 0,function*(){if(e.detail.origin===window.location.origin){let t=e.detail.network,n=null;try{n=yield this.getAccounts()}catch(e){e?.message.includes(`on Ledger by selecting the chain in the extension`)||console.error(`Failed to get key for keystorechange event: ${e.message}`)}this._handleNetworkChanged(t),this._handleAccountsChanged(n)}})),window.addEventListener(`keplr_bitcoinAccountsChanged`,()=>t(this,void 0,void 0,function*(){let e=null;try{e=yield this.getAccounts()}catch(e){e?.message.includes(`on Ledger by selecting the chain in the extension`)||console.error(`Failed to get key for keystorechange event: ${e.message}`)}this._handleAccountsChanged(e)}))}static _requestMethod(e,n){return t(this,void 0,void 0,function*(){let t=`ReactNativeWebView`in window,r=t?e=>{window.ReactNativeWebView.postMessage(JSON.stringify(e))}:e=>{window.postMessage(e,window.location.origin)},a=t?e=>{if(e&&typeof e==`string`)try{return JSON.parse(e)}catch{}return e}:e=>e,o=new Uint8Array(8),s=Array.from(crypto.getRandomValues(o)).map(e=>e.toString(16)).join(``),c={type:window.keplrRequestMetaIdSupport?`proxy-request${d.metaId?`-${d.metaId}`:``}`:`proxy-request`,id:s,method:`bitcoin`,args:i.JSONUint8Array.wrap(n),bitcoinProviderMethod:e};return new Promise((e,t)=>{let n=r=>{let o=a(r.data);if(!o||o.type!==`proxy-request-response`||o.id!==s)return;window.removeEventListener(`message`,n);let c=i.JSONUint8Array.unwrap(o.result);if(!c){t(Error(`Result is null`));return}if(c.error){t(Error(c.error));return}e(c.return)};window.addEventListener(`message`,n),r(c)})})}getAccounts(){return e._requestMethod(`getAccounts`,[])}requestAccounts(){return t(this,void 0,void 0,function*(){return e._requestMethod(`requestAccounts`,[])})}disconnect(){return t(this,void 0,void 0,function*(){return e._requestMethod(`disconnect`,[])})}getNetwork(){return t(this,void 0,void 0,function*(){return e._requestMethod(`getNetwork`,[])})}switchNetwork(n){return t(this,void 0,void 0,function*(){return e._requestMethod(`switchNetwork`,[n])})}getChain(){return t(this,void 0,void 0,function*(){return e._requestMethod(`getChain`,[])})}switchChain(n){return t(this,void 0,void 0,function*(){return e._requestMethod(`switchChain`,[n])})}getPublicKey(){return t(this,void 0,void 0,function*(){return e._requestMethod(`getPublicKey`,[])})}getBalance(){return t(this,void 0,void 0,function*(){return e._requestMethod(`getBalance`,[])})}getInscriptions(n,r){return t(this,void 0,void 0,function*(){return e._requestMethod(`getInscriptions`,[n,r])})}signMessage(n,r){return t(this,void 0,void 0,function*(){return e._requestMethod(`signMessage`,[n,r])})}sendBitcoin(n,r){return t(this,void 0,void 0,function*(){return e._requestMethod(`sendBitcoin`,[n,r])})}pushTx(n){return t(this,void 0,void 0,function*(){return e._requestMethod(`pushTx`,[n])})}pushPsbt(n){return t(this,void 0,void 0,function*(){return e._requestMethod(`pushPsbt`,[n])})}signPsbt(n,r){return t(this,void 0,void 0,function*(){return e._requestMethod(`signPsbt`,[n,r])})}signPsbts(n,r){return t(this,void 0,void 0,function*(){return e._requestMethod(`signPsbts`,[n,r])})}getAddress(){return t(this,void 0,void 0,function*(){return(yield this.getAccounts())[0]})}connectWallet(){return t(this,void 0,void 0,function*(){return this.requestAccounts()})}};e.BitcoinProvider=g})),Br=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.KeplrFallback=void 0;var n=zr();e.KeplrFallback=class extends n.Keplr{constructor(e){super(),this.onKeplrNotDetected=e,this.isKeplrDetected=null,this.onKeplrNotDetected&&n.Keplr.getKeplr(500).then(e=>{var t;e||(t=this.onKeplrNotDetected)==null||t.call(this)})}requestMethod(e,r){return t(this,void 0,void 0,function*(){if(this.isKeplrDetected??=!!(yield n.Keplr.getKeplr(500)),this.isKeplrDetected)return n.Keplr.staticRequestMethod(e,r);{let t=window.keplr;if(t)return t[e](...r);throw Error(`Can't detect keplr fallback`)}})}}})),Vr=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(zr(),e),n(Br(),e)})),Hr=a(((e,t)=>{var n=(function(e){var t=1e7,r=9007199254740992,i=f(r),a=`0123456789abcdefghijklmnopqrstuvwxyz`,o=typeof BigInt==`function`;function s(e,t,n,r){return e===void 0?s[0]:t===void 0||+t==10&&!n?U(e):ce(e,t,n,r)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}c.prototype=Object.create(s.prototype);function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}l.prototype=Object.create(s.prototype);function u(e){this.value=e}u.prototype=Object.create(s.prototype);function d(e){return-r<e&&e<r}function f(e){return e<1e7?[e]:e<0x5af3107a4000?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/0x5af3107a4000)]}function p(e){m(e);var n=e.length;if(n<4&&P(e,i)<0)switch(n){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function m(e){for(var t=e.length;e[--t]===0;);e.length=t+1}function h(e){for(var t=Array(e),n=-1;++n<e;)t[n]=0;return t}function g(e){return e>0?Math.floor(e):Math.ceil(e)}function _(e,n){for(var r=e.length,i=n.length,a=Array(r),o=0,s=t,c,l=0;l<i;l++)c=e[l]+n[l]+o,o=+(c>=s),a[l]=c-o*s;for(;l<r;)c=e[l]+o,o=+(c===s),a[l++]=c-o*s;return o>0&&a.push(o),a}function v(e,t){return e.length>=t.length?_(e,t):_(t,e)}function y(e,n){for(var r=e.length,i=Array(r),a=t,o,s=0;s<r;s++)o=e[s]-a+n,n=Math.floor(o/a),i[s]=o-n*a,n+=1;for(;n>0;)i[s++]=n%a,n=Math.floor(n/a);return i}c.prototype.add=function(e){var t=U(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(y(n,Math.abs(r)),this.sign):new c(v(n,r),this.sign)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){var t=U(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(d(n+r))return new l(n+r);r=f(Math.abs(r))}return new c(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,u.prototype.add=function(e){return new u(this.value+U(e).value)},u.prototype.plus=u.prototype.add;function b(e,n){for(var r=e.length,i=n.length,a=Array(r),o=0,s=t,c=0,l;c<i;c++)l=e[c]-o-n[c],l<0?(l+=s,o=1):o=0,a[c]=l;for(c=i;c<r;c++){if(l=e[c]-o,l<0)l+=s;else{a[c++]=l;break}a[c]=l}for(;c<r;c++)a[c]=e[c];return m(a),a}function x(e,t,n){var r;return P(e,t)>=0?r=b(e,t):(r=b(t,e),n=!n),r=p(r),typeof r==`number`?(n&&(r=-r),new l(r)):new c(r,n)}function S(e,n,r){for(var i=e.length,a=Array(i),o=-n,s=t,u=0,d;u<i;u++)d=e[u]+o,o=Math.floor(d/s),d%=s,a[u]=d<0?d+s:d;return a=p(a),typeof a==`number`?(r&&(a=-a),new l(a)):new c(a,r)}c.prototype.subtract=function(e){var t=U(e);if(this.sign!==t.sign)return this.add(t.negate());var n=this.value,r=t.value;return t.isSmall?S(n,Math.abs(r),this.sign):x(n,r,this.sign)},c.prototype.minus=c.prototype.subtract,l.prototype.subtract=function(e){var t=U(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var r=t.value;return t.isSmall?new l(n-r):S(r,Math.abs(n),n>=0)},l.prototype.minus=l.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-U(e).value)},u.prototype.minus=u.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function C(e,n){for(var r=e.length,i=n.length,a=h(r+i),o=t,s,c,l=0,u,d;l<r;++l){u=e[l];for(var f=0;f<i;++f)d=n[f],s=u*d+a[l+f],c=Math.floor(s/o),a[l+f]=s-c*o,a[l+f+1]+=c}return m(a),a}function w(e,n){for(var r=e.length,i=Array(r),a=t,o=0,s,c=0;c<r;c++)s=e[c]*n+o,o=Math.floor(s/a),i[c]=s-o*a;for(;o>0;)i[c++]=o%a,o=Math.floor(o/a);return i}function T(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return C(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),c=E(r,a),l=v(v(s,T(b(b(E(v(i,r),v(o,a)),s),c),n)),T(c,2*n));return m(l),l}function D(e,t){return-.012*e-.012*t+15e-6*e*t>0}c.prototype.multiply=function(e){var n=U(e),r=this.value,i=n.value,a=this.sign!==n.sign,o;if(n.isSmall){if(i===0)return s[0];if(i===1)return this;if(i===-1)return this.negate();if(o=Math.abs(i),o<t)return new c(w(r,o),a);i=f(o)}return D(r.length,i.length)?new c(E(r,i),a):new c(C(r,i),a)},c.prototype.times=c.prototype.multiply;function O(e,n,r){return e<t?new c(w(n,e),r):new c(C(n,f(e)),r)}l.prototype._multiplyBySmall=function(e){return d(e.value*this.value)?new l(e.value*this.value):O(Math.abs(e.value),f(Math.abs(this.value)),this.sign!==e.sign)},c.prototype._multiplyBySmall=function(e){return e.value===0?s[0]:e.value===1?this:e.value===-1?this.negate():O(Math.abs(e.value),this.value,this.sign!==e.sign)},l.prototype.multiply=function(e){return U(e)._multiplyBySmall(this)},l.prototype.times=l.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*U(e).value)},u.prototype.times=u.prototype.multiply;function k(e){for(var n=e.length,r=h(n+n),i=t,a,o,s=0,c,l;s<n;s++){c=e[s],o=0-c*c;for(var u=s;u<n;u++)l=e[u],a=c*l*2+r[s+u]+o,o=Math.floor(a/i),r[s+u]=a-o*i;r[s+n]=o}return m(r),r}c.prototype.square=function(){return new c(k(this.value),!1)},l.prototype.square=function(){var e=this.value*this.value;return d(e)?new l(e):new c(k(f(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)};function A(e,n){var r=e.length,i=n.length,a=t,o=h(n.length),s=n[i-1],c=Math.ceil(a/(2*s)),l=w(e,c),u=w(n,c),d,f,m,g,_,v,y;for(l.length<=r&&l.push(0),u.push(0),s=u[i-1],f=r-i;f>=0;f--){for(d=a-1,l[f+i]!==s&&(d=Math.floor((l[f+i]*a+l[f+i-1])/s)),m=0,g=0,v=u.length,_=0;_<v;_++)m+=d*u[_],y=Math.floor(m/a),g+=l[f+_]-(m-y*a),m=y,g<0?(l[f+_]=g+a,g=-1):(l[f+_]=g,g=0);for(;g!==0;){for(--d,m=0,_=0;_<v;_++)m+=l[f+_]-a+u[_],m<0?(l[f+_]=m+a,m=0):(l[f+_]=m,m=1);g+=m}o[f]=d}return l=M(l,c)[0],[p(o),p(l)]}function j(e,n){for(var r=e.length,i=n.length,a=[],o=[],s=t,c,l,u,d,f;r;){if(o.unshift(e[--r]),m(o),P(o,n)<0){a.push(0);continue}l=o.length,u=o[l-1]*s+o[l-2],d=n[i-1]*s+n[i-2],l>i&&(u=(u+1)*s),c=Math.ceil(u/d);do{if(f=w(n,c),P(f,o)<=0)break;c--}while(c);a.push(c),o=b(o,f)}return a.reverse(),[p(a),p(o)]}function M(e,n){var r=e.length,i=h(r),a=t,o,s,c=0,l;for(o=r-1;o>=0;--o)l=c*a+e[o],s=g(l/n),c=l-s*n,i[o]=s|0;return[i,c|0]}function N(e,n){var r,i=U(n);if(o)return[new u(e.value/i.value),new u(e.value%i.value)];var a=e.value,d=i.value,m;if(d===0)throw Error(`Cannot divide by zero`);if(e.isSmall)return i.isSmall?[new l(g(a/d)),new l(a%d)]:[s[0],e];if(i.isSmall){if(d===1)return[e,s[0]];if(d==-1)return[e.negate(),s[0]];var h=Math.abs(d);if(h<t){r=M(a,h),m=p(r[0]);var _=r[1];return e.sign&&(_=-_),typeof m==`number`?(e.sign!==i.sign&&(m=-m),[new l(m),new l(_)]):[new c(m,e.sign!==i.sign),new l(_)]}d=f(h)}var v=P(a,d);if(v===-1)return[s[0],e];if(v===0)return[s[e.sign===i.sign?1:-1],s[0]];r=a.length+d.length<=200?A(a,d):j(a,d),m=r[0];var y=e.sign!==i.sign,b=r[1],x=e.sign;return typeof m==`number`?(y&&(m=-m),m=new l(m)):m=new c(m,y),typeof b==`number`?(x&&(b=-b),b=new l(b)):b=new c(b,x),[m,b]}c.prototype.divmod=function(e){var t=N(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=l.prototype.divmod=c.prototype.divmod,c.prototype.divide=function(e){return N(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/U(e).value)},l.prototype.over=l.prototype.divide=c.prototype.over=c.prototype.divide,c.prototype.mod=function(e){return N(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%U(e).value)},l.prototype.remainder=l.prototype.mod=c.prototype.remainder=c.prototype.mod,c.prototype.pow=function(e){var t=U(e),n=this.value,r=t.value,i,a,o;if(r===0)return s[1];if(n===0)return s[0];if(n===1)return s[1];if(n===-1)return t.isEven()?s[1]:s[-1];if(t.sign)return s[0];if(!t.isSmall)throw Error(`The exponent `+t.toString()+` is too large.`);if(this.isSmall&&d(i=n**+r))return new l(g(i));for(a=this,o=s[1];r&!0&&(o=o.times(a),--r),r!==0;)r/=2,a=a.square();return o},l.prototype.pow=c.prototype.pow,u.prototype.pow=function(e){var t=U(e),n=this.value,r=t.value,i=BigInt(0),a=BigInt(1),o=BigInt(2);if(r===i)return s[1];if(n===i)return s[0];if(n===a)return s[1];if(n===BigInt(-1))return t.isEven()?s[1]:s[-1];if(t.isNegative())return new u(i);for(var c=this,l=s[1];(r&a)===a&&(l=l.times(c),--r),r!==i;)r/=o,c=c.square();return l},c.prototype.modPow=function(e,t){if(e=U(e),t=U(t),t.isZero())throw Error(`Cannot take modPow with modulus 0`);var n=s[1],r=this.mod(t);for(e.isNegative()&&(e=e.multiply(s[-1]),r=r.modInv(t));e.isPositive();){if(r.isZero())return s[0];e.isOdd()&&(n=n.multiply(r).mod(t)),e=e.divide(2),r=r.square().mod(t)}return n},u.prototype.modPow=l.prototype.modPow=c.prototype.modPow;function P(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}c.prototype.compareAbs=function(e){var t=U(e),n=this.value,r=t.value;return t.isSmall?1:P(n,r)},l.prototype.compareAbs=function(e){var t=U(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},u.prototype.compareAbs=function(e){var t=this.value,n=U(e).value;return t=t>=0?t:-t,n=n>=0?n:-n,t===n?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=U(e),n=this.value,r=t.value;return this.sign===t.sign?t.isSmall?this.sign?-1:1:P(n,r)*(this.sign?-1:1):t.sign?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=U(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0===t.sign?n<0?1:-1:n<0?-1:1},l.prototype.compareTo=l.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=U(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,c.prototype.equals=function(e){return this.compare(e)===0},u.prototype.eq=u.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return this.compare(e)!==0},u.prototype.neq=u.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return!(this.value[0]&1)},l.prototype.isEven=function(){return!(this.value&1)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return(this.value[0]&1)==1},l.prototype.isOdd=function(){return(this.value&1)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=l.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=l.prototype.isNegative,c.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return Math.abs(this.value)===1},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return this.value===0},u.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=U(e);return t.isZero()?!1:t.isUnit()?!0:t.compareAbs(2)===0?this.isEven():this.mod(t).isZero()},u.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function F(e){var t=e.abs();if(t.isUnit())return!1;if(t.equals(2)||t.equals(3)||t.equals(5))return!0;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return!1;if(t.lesser(49))return!0}function I(e,t){for(var r=e.prev(),i=r,a=0,o,s,c;i.isEven();)i=i.divide(2),a++;next:for(s=0;s<t.length;s++)if(!e.lesser(t[s])&&(c=n(t[s]).modPow(i,e),!(c.isUnit()||c.equals(r)))){for(o=a-1;o!=0;o--){if(c=c.square().mod(e),c.isUnit())return!1;if(c.equals(r))continue next}return!1}return!0}c.prototype.isPrime=function(t){var r=F(this);if(r!==e)return r;var i=this.abs(),a=i.bitLength();if(a<=64)return I(i,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*a.toJSNumber(),s=Math.ceil(t===!0?2*o**2:o),c=[],l=0;l<s;l++)c.push(n(l+2));return I(i,c)},u.prototype.isPrime=l.prototype.isPrime=c.prototype.isPrime,c.prototype.isProbablePrime=function(t,r){var i=F(this);if(i!==e)return i;for(var a=this.abs(),o=t===e?5:t,s=[],c=0;c<o;c++)s.push(n.randBetween(2,a.minus(2),r));return I(a,s)},u.prototype.isProbablePrime=l.prototype.isProbablePrime=c.prototype.isProbablePrime,c.prototype.modInv=function(e){for(var t=n.zero,r=n.one,i=U(e),a=this.abs(),o,s,c;!a.isZero();)o=i.divide(a),s=t,c=i,t=r,i=a,r=s.subtract(o.multiply(r)),a=c.subtract(o.multiply(a));if(!i.isUnit())throw Error(this.toString()+` and `+e.toString()+` are not co-prime`);return t.compare(0)===-1&&(t=t.add(e)),this.isNegative()?t.negate():t},u.prototype.modInv=l.prototype.modInv=c.prototype.modInv,c.prototype.next=function(){var e=this.value;return this.sign?S(e,1,this.sign):new c(y(e,1),this.sign)},l.prototype.next=function(){var e=this.value;return e+1<r?new l(e+1):new c(i,!1)},u.prototype.next=function(){return new u(this.value+BigInt(1))},c.prototype.prev=function(){var e=this.value;return this.sign?new c(y(e,1),!0):S(e,1,this.sign)},l.prototype.prev=function(){var e=this.value;return e-1>-r?new l(e-1):new c(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var L=[1];2*L[L.length-1]<=t;)L.push(2*L[L.length-1]);var R=L.length,ee=L[R-1];function te(e){return Math.abs(e)<=t}c.prototype.shiftLeft=function(e){var t=U(e).toJSNumber();if(!te(t))throw Error(String(t)+` is too large for shifting.`);if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=R;)n=n.multiply(ee),t-=R-1;return n.multiply(L[t])},u.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=U(e).toJSNumber();if(!te(n))throw Error(String(n)+` is too large for shifting.`);if(n<0)return this.shiftLeft(-n);for(var r=this;n>=R;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;t=N(r,ee),r=t[1].isNegative()?t[0].prev():t[0],n-=R-1}return t=N(r,L[n]),t[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function ne(e,t,r){t=U(t);for(var i=e.isNegative(),a=t.isNegative(),o=i?e.not():e,s=a?t.not():t,c=0,l=0,u=null,d=null,f=[];!o.isZero()||!s.isZero();)u=N(o,ee),c=u[1].toJSNumber(),i&&(c=ee-1-c),d=N(s,ee),l=d[1].toJSNumber(),a&&(l=ee-1-l),o=u[0],s=d[0],f.push(r(c,l));for(var p=r(+!!i,+!!a)===0?n(0):n(-1),m=f.length-1;m>=0;--m)p=p.multiply(ee).add(n(f[m]));return p}c.prototype.not=function(){return this.negate().prev()},u.prototype.not=l.prototype.not=c.prototype.not,c.prototype.and=function(e){return ne(this,e,function(e,t){return e&t})},u.prototype.and=l.prototype.and=c.prototype.and,c.prototype.or=function(e){return ne(this,e,function(e,t){return e|t})},u.prototype.or=l.prototype.or=c.prototype.or,c.prototype.xor=function(e){return ne(this,e,function(e,t){return e^t})},u.prototype.xor=l.prototype.xor=c.prototype.xor;var re=1<<30,ie=(t&-t)*(t&-t)|re;function z(e){var n=e.value,r=typeof n==`number`?n|re:typeof n==`bigint`?n|BigInt(re):n[0]+n[1]*t|ie;return r&-r}function B(e,t){if(t.compareTo(e)<=0){var r=B(e,t.square(t)),i=r.p,a=r.e,o=i.multiply(t);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:n(1),e:0}}c.prototype.bitLength=function(){var e=this;return e.compareTo(n(0))<0&&(e=e.negate().subtract(n(1))),e.compareTo(n(0))===0?n(0):n(B(e,n(2)).e).add(n(1))},u.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function V(e,t){return e=U(e),t=U(t),e.greater(t)?e:t}function ae(e,t){return e=U(e),t=U(t),e.lesser(t)?e:t}function oe(e,t){if(e=U(e).abs(),t=U(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n=s[1],r,i;e.isEven()&&t.isEven();)r=ae(z(e),z(t)),e=e.divide(r),t=t.divide(r),n=n.multiply(r);for(;e.isEven();)e=e.divide(z(e));do{for(;t.isEven();)t=t.divide(z(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return n.isUnit()?e:e.multiply(n)}function se(e,t){return e=U(e).abs(),t=U(t).abs(),e.divide(oe(e,t)).multiply(t)}function H(e,n,r){e=U(e),n=U(n);var i=r||Math.random,a=ae(e,n),o=V(e,n).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var c=de(o,t).value,l=[],u=!0,d=0;d<c.length;d++){var f=u?c[d]+(d+1<c.length?c[d+1]/t:0):t,p=g(i()*f);l.push(p),p<c[d]&&(u=!1)}return a.add(s.fromArray(l,t,!1))}var ce=function(e,t,n,r){n||=a,e=String(e),r||(e=e.toLowerCase(),n=n.toLowerCase());var i=e.length,o,s=Math.abs(t),c={};for(o=0;o<n.length;o++)c[n[o]]=o;for(o=0;o<i;o++){var l=e[o];if(l!==`-`&&l in c&&c[l]>=s){if(l===`1`&&s===1)continue;throw Error(l+` is not a valid digit in base `+t+`.`)}}t=U(t);var u=[],d=e[0]===`-`;for(o=+!!d;o<e.length;o++){var l=e[o];if(l in c)u.push(U(c[l]));else if(l===`<`){var f=o;do o++;while(e[o]!==`>`&&o<e.length);u.push(U(e.slice(f+1,o)))}else throw Error(l+` is not a valid character`)}return le(u,t,d)};function le(e,t,n){for(var r=s[0],i=s[1],a=e.length-1;a>=0;a--)r=r.add(e[a].times(i)),i=i.times(t);return n?r.negate():r}function ue(e,t){return t||=a,e<t.length?t[e]:`<`+e+`>`}function de(e,t){if(t=n(t),t.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error(`Cannot convert nonzero numbers to base 0.`)}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(e.isNegative()&&t.isPositive()&&(i=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a=[],o=e,s;o.isNegative()||o.compareAbs(t)>=0;){s=o.divmod(t),o=s.quotient;var c=s.remainder;c.isNegative()&&(c=t.minus(c).abs(),o=o.next()),a.push(c.toJSNumber())}return a.push(o.toJSNumber()),{value:a.reverse(),isNegative:i}}function fe(e,t,n){var r=de(e,t);return(r.isNegative?`-`:``)+r.value.map(function(e){return ue(e,n)}).join(``)}c.prototype.toArray=function(e){return de(this,e)},l.prototype.toArray=function(e){return de(this,e)},u.prototype.toArray=function(e){return de(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),t!==10||n)return fe(this,t,n);for(var r=this.value,i=r.length,a=String(r[--i]),o=`0000000`,s;--i>=0;)s=String(r[i]),a+=o.slice(s.length)+s;return(this.sign?`-`:``)+a},l.prototype.toString=function(t,n){return t===e&&(t=10),t!=10||n?fe(this,t,n):String(this.value)},u.prototype.toString=l.prototype.toString,u.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function pe(e){if(d(+e)){var t=+e;if(t===g(t))return o?new u(BigInt(t)):new l(t);throw Error(`Invalid integer: `+e)}var n=e[0]===`-`;n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw Error(`Invalid integer: `+r.join(`e`));if(r.length===2){var i=r[1];if(i[0]===`+`&&(i=i.slice(1)),i=+i,i!==g(i)||!d(i))throw Error(`Invalid integer: `+i+` is not a valid exponent.`);var a=r[0],s=a.indexOf(`.`);if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw Error(`Cannot include negative exponent part for integers`);a+=Array(i+1).join(`0`),e=a}if(!/^([0-9][0-9]*)$/.test(e))throw Error(`Invalid integer: `+e);if(o)return new u(BigInt(n?`-`+e:e));for(var f=[],p=e.length,h=7,_=p-h;p>0;)f.push(+e.slice(_,p)),_-=h,_<0&&(_=0),p-=h;return m(f),new c(f,n)}function me(e){if(o)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw Error(e+` is not an integer.`);return new l(e)}return pe(e.toString())}function U(e){return typeof e==`number`?me(e):typeof e==`string`?pe(e):typeof e==`bigint`?new u(e):e}for(var he=0;he<1e3;he++)s[he]=U(he),he>0&&(s[-he]=U(-he));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=V,s.min=ae,s.gcd=oe,s.lcm=se,s.isInstance=function(e){return e instanceof c||e instanceof l||e instanceof u},s.randBetween=H,s.fromArray=function(e,t,n){return le(e.map(U),U(t||10),n)},s})();t!==void 0&&t.hasOwnProperty(`exports`)&&(t.exports=n),typeof define==`function`&&define.amd&&define(function(){return n})})),Ur=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.exponentDecStringToDecString=e.isExponentDecString=e.isValidDecimalString=e.isValidIntegerString=void 0;var t=/^-?\d+$/,n=/^-?\d+.?\d*$/,r=/^(-?)([\d.]+)e([-+])([\d]+)$/;function i(e){return t.test(e)}e.isValidIntegerString=i;function a(e){return n.test(e)}e.isValidDecimalString=a;function o(e){return r.test(e)}e.isExponentDecString=o;function s(e){let t=``;for(let n=0;n<e;n++)t+=`0`;return t}function c(e){for(;e.length>0&&e[0]===`0`;)e=e.slice(1);return e.length===0||e[0]===`.`?`0`+e:e}function l(e){let t=e.split(r);if(t.length!==6)return e;let n=t[1]===`-`,i=t[2],a=i.indexOf(`.`),o=t[4],l=parseInt(o)*(t[3]===`-`?-1:1);if(a>=0){let e=i.length-a-1;l-=e,i=c(i.replace(`.`,``))}let u=n?`-`:``;if(l<0){if(i.length>-l){let e=i.length+l;return u+(i.slice(0,e)+`.`+i.slice(e))}return u+`0.`+s(-(i.length+l))+i}return u+i+s(l)}e.exponentDecStringToDecString=l})),Wr=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Uint=e.Int=void 0;var n=t(Hr()),r=Ur(),i=class e{constructor(e){if(typeof e==`number`&&(e=e.toString()),typeof e==`string`){if(!(0,r.isValidIntegerString)(e)){if((0,r.isExponentDecString)(e))e=(0,r.exponentDecStringToDecString)(e);else throw Error(`invalid integer: ${e}`)}this.int=(0,n.default)(e)}else this.int=(0,n.default)(e);this.checkBitLen()}checkBitLen(){if(this.int.abs().gt(e.maxInt))throw Error(`Integer out of range ${this.int.toString()}`)}toString(){return this.int.toString(10)}isNegative(){return this.int.isNegative()}isPositive(){return this.int.isPositive()}isZero(){return this.int.eq((0,n.default)(0))}equals(e){return this.int.equals(e.int)}gt(e){return this.int.gt(e.int)}gte(e){return this.int.greaterOrEquals(e.int)}lt(e){return this.int.lt(e.int)}lte(e){return this.int.lesserOrEquals(e.int)}abs(){return new e(this.int.abs())}absUInt(){return new a(this.int.abs())}add(t){return new e(this.int.add(t.int))}sub(t){return new e(this.int.subtract(t.int))}mul(t){return new e(this.int.multiply(t.int))}div(t){return new e(this.int.divide(t.int))}mod(t){return new e(this.int.mod(t.int))}neg(){return new e(this.int.negate())}pow(t){return new e(this.int.pow(t.toBigNumber()))}toBigNumber(){return this.int}};e.Int=i,i.maxInt=(0,n.default)(`115792089237316195423570985008687907853269984665640564039457584007913129639935`);var a=class e{constructor(e){if(typeof e==`number`&&(e=e.toString()),typeof e==`string`){if(!(0,r.isValidIntegerString)(e)){if((0,r.isExponentDecString)(e))e=(0,r.exponentDecStringToDecString)(e);else throw Error(`invalid integer: ${e}`)}this.uint=(0,n.default)(e)}else this.uint=(0,n.default)(e);if(this.uint.isNegative())throw TypeError(`Uint should not be negative`);this.checkBitLen()}checkBitLen(){if(this.uint.abs().bitLength().gt(256))throw Error(`Integer out of range ${this.uint.toString()}`)}toString(){return this.uint.toString(10)}isZero(){return this.uint.eq((0,n.default)(0))}equals(e){return this.uint.equals(e.uint)}gt(e){return this.uint.gt(e.uint)}gte(e){return this.uint.greaterOrEquals(e.uint)}lt(e){return this.uint.lt(e.uint)}lte(e){return this.uint.lesserOrEquals(e.uint)}add(t){return new e(this.uint.add(t.uint))}sub(t){return new e(this.uint.subtract(t.uint))}mul(t){return new e(this.uint.multiply(t.uint))}div(t){return new e(this.uint.divide(t.uint))}mod(t){return new e(this.uint.mod(t.uint))}pow(t){return new e(this.uint.pow(t.toBigNumber()))}toBigNumber(){return this.uint}};e.Uint=a})),Gr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.integerStringToUSLocaleString=void 0;function t(e){if(e.indexOf(`.`)>=0)throw Error(`${e} is not integer`);if(typeof BigInt<`u`)return BigInt(e).toLocaleString(`en-US`);let t=e,n=[];for(let e=t.length;e>0;e-=3)n.push(t.slice(Math.max(0,e-3),e));return n.reverse().join(`,`)}e.integerStringToUSLocaleString=t})),Kr=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Dec=void 0;var n=t(Hr()),r=Wr(),i=Ur(),a=Gr(),o=class e{static calcPrecisionMultiplier(t){if(t<0)throw Error(`Invalid prec`);if(t>e.precision)throw Error(`Too much precision`);let r=t.toString(),i=e.precisionMultipliers.get(r);if(i)return i;let a=e.precision-t,o=(0,n.default)(10).pow(a);return e.precisionMultipliers.set(r,o),o}static reduceDecimalsFromString(t){let n=t.indexOf(`.`);if(n<0)return{res:t,isDownToZero:!1};let r=t.length-1-n-e.precision;if(r<=0)return{res:t,isDownToZero:!1};let i=t.slice(0,t.length-r);return{res:i,isDownToZero:/^[0.]*$/.test(i)}}constructor(t,a=0){if(typeof t==`number`&&(t=t.toString()),typeof t==`string`){if(t.length===0)throw Error(`empty string`);if(!(0,i.isValidDecimalString)(t)){if((0,i.isExponentDecString)(t))t=(0,i.exponentDecStringToDecString)(t);else throw Error(`invalid decimal: ${t}`)}let r=e.reduceDecimalsFromString(t);r.isDownToZero&&console.log(`WARNING: Got ${t}. Dec can only handle up to 18 decimals. However, since the decimal point of the input exceeds 18 digits, the remainder is discarded. As a result, input becomes 0.`),t=r.res,t.indexOf(`.`)>=0&&(a=t.length-t.indexOf(`.`)-1,t=t.replace(`.`,``)),this.int=(0,n.default)(t)}else this.int=t instanceof r.Int||t instanceof r.Uint?(0,n.default)(t.toString()):(0,n.default)(t);this.int=this.int.multiply(e.calcPrecisionMultiplier(a)),this.checkBitLen()}checkBitLen(){if(this.int.abs().gt(e.maxDec))throw Error(`Integer out of range ${this.int.toString()}`)}isZero(){return this.int.eq((0,n.default)(0))}isNegative(){return this.int.isNegative()}isPositive(){return this.int.isPositive()}equals(e){return this.int.eq(e.int)}gt(e){return this.int.gt(e.int)}gte(e){return this.int.geq(e.int)}lt(e){return this.int.lt(e.int)}lte(e){return this.int.leq(e.int)}neg(){return new e(this.int.negate(),e.precision)}abs(){return new e(this.int.abs(),e.precision)}add(t){return new e(this.int.add(t.int),e.precision)}sub(t){return new e(this.int.subtract(t.int),e.precision)}pow(t){if(t.isZero())return new e(1);if(t.isNegative())return new e(1).quo(this.pow(t.abs()));let n=new e(this.int,e.precision),i=new e(1);for(let e=t;e.gt(new r.Int(1));e=e.div(new r.Int(2)))e.mod(new r.Int(2)).isZero()||(i=i.mul(n)),n=n.mul(n);return n.mul(i)}approxSqrt(){return this.approxRoot(2)}approxRoot(t,n=300){if(this.isNegative())return this.neg().approxRoot(t).neg();if(t===1||this.isZero()||this.equals(e.one))return this;if(t===0)return e.one;let[i,a]=[e.one,e.one];for(let o=0;a.abs().gt(e.smallestDec)&&o<n;o++){let n=i.pow(new r.Int(t-1));n.isZero()&&(n=e.smallestDec),a=this.quo(n),a=a.sub(i),a=a.quoTruncate(new e(t)),i=i.add(a)}return i}mul(t){return new e(this.mulRaw(t).chopPrecisionAndRound(),e.precision)}mulTruncate(t){return new e(this.mulRaw(t).chopPrecisionAndTruncate(),e.precision)}mulRoundUp(t){return new e(this.mulRaw(t).chopPrecisionAndRoundUp(),e.precision)}mulRaw(t){return new e(this.int.multiply(t.int),e.precision)}quo(t){return new e(this.quoRaw(t).chopPrecisionAndRound(),e.precision)}quoTruncate(t){return new e(this.quoRaw(t).chopPrecisionAndTruncate(),e.precision)}quoRoundUp(t){return new e(this.quoRaw(t).chopPrecisionAndRoundUp(),e.precision)}quoRaw(t){let n=e.calcPrecisionMultiplier(0),r=this.int.multiply(n).multiply(n);return new e(r.divide(t.int),e.precision)}isInteger(){let t=e.calcPrecisionMultiplier(0);return this.int.remainder(t).equals((0,n.default)(0))}chopPrecisionAndRound(){if(this.isNegative())return this.abs().chopPrecisionAndRound().negate();let t=e.calcPrecisionMultiplier(0),r=t.divide((0,n.default)(2)),{quotient:i,remainder:a}=this.int.divmod(t);return a.equals((0,n.default)(0))||a.lt(r)?i:a.gt(r)?i.add((0,n.default)(1)):i.divide((0,n.default)(2)).equals((0,n.default)(0))?i:i.add((0,n.default)(1))}chopPrecisionAndRoundUp(){if(this.isNegative())return this.abs().chopPrecisionAndTruncate().negate();let t=e.calcPrecisionMultiplier(0),{quotient:r,remainder:i}=this.int.divmod(t);return i.equals((0,n.default)(0))?r:r.add((0,n.default)(1))}chopPrecisionAndTruncate(){let t=e.calcPrecisionMultiplier(0);return this.int.divide(t)}toString(t=e.precision,r=!1){let i=e.calcPrecisionMultiplier(0),{quotient:o,remainder:s}=this.int.abs().divmod(i),c=s.toString(10);for(let t=0,n=c.length;t<e.precision-n;t++)c=`0`+c;c=c.substring(0,t);let l=this.isNegative()&&!(o.eq((0,n.default)(0))&&c.length===0),u=r?(0,a.integerStringToUSLocaleString)(o.toString()):o.toString();return`${l?`-`:``}${u}${c.length>0?`.`+c:``}`}round(){return new r.Int(this.chopPrecisionAndRound())}roundUp(){return new r.Int(this.chopPrecisionAndRoundUp())}truncate(){return new r.Int(this.chopPrecisionAndTruncate())}roundDec(){return new e(this.chopPrecisionAndRound(),0)}roundUpDec(){return new e(this.chopPrecisionAndRoundUp(),0)}truncateDec(){return new e(this.chopPrecisionAndTruncate(),0)}};e.Dec=o,o.precision=18,o.decimalPrecisionBits=60,o.maxDec=(0,n.default)(`133499189745056880149688856635597007162669032647290798121690100488888732861290034376435130433535`),o.precisionMultipliers=new Map,o.zero=new o(0),o.smallestDec=new o(`1`,o.precision),o.one=new o(1),r.Int.prototype.toDec=function(){return new o(this)},r.Uint.prototype.toDec=function(){return new o(this)}})),qr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DecUtils=void 0;var t=Kr(),n=Wr(),r=class e{static trim(e){let t=typeof e==`string`?e:e.toString();if(t.indexOf(`.`)<0)return t;for(let e=t.length-1;e>=0&&t[e]===`0`;e--)t=t.slice(0,e);return t.length>0&&t[t.length-1]===`.`&&(t=t.slice(0,t.length-1)),t}static getTenExponentN(r){if(r<-t.Dec.precision)throw Error(`Too little precision`);if(e.tenExponentNs[r.toString()])return e.tenExponentNs[r.toString()];let i=new t.Dec(10).pow(new n.Int(r));return e.tenExponentNs[r.toString()]=i,i}static getTenExponentNInPrecisionRange(n){if(n>t.Dec.precision)throw Error(`Too much precision`);return e.getTenExponentN(n)}static getPrecisionDec(t){return e.getTenExponentNInPrecisionRange(t)}};e.DecUtils=r,r.tenExponentNs={}})),Jr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Coin=void 0;var t=Wr();e.Coin=class e{static parse(t){let n=RegExp(`([0-9]+)[ ]*([a-zA-Z]+)$`).exec(t);if(!n||n.length!==3)throw Error(`Invalid coin str`);let r=n[2],i=n[1];return new e(r,i)}constructor(e,n){this.denom=e,this.amount=n instanceof t.Int?n:new t.Int(n)}toString(){return`${this.amount.toString()}${this.denom}`}}})),Yr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CoinUtils=void 0;var t=Jr(),n=Wr(),r=Kr(),i=qr(),a=Gr(),o=class e{static createCoinsFromPrimitives(e){return e.map(e=>new t.Coin(e.denom,e.amount))}static amountOf(e,t){let r=e.find(e=>e.denom===t);return r?r.amount:new n.Int(0)}static exclude(e,t){return e.filter(e=>t.indexOf(e.denom)===0)}static concat(...e){return e.length===0?[]:e.slice().reduce((e,n)=>{let r=e.find(e=>e.denom===n.denom);if(r){let i=new t.Coin(r.denom,r.amount.add(n.amount));e.push(i)}else{let r=new t.Coin(n.denom,n.amount);e.push(r)}return e},[])}static getCoinFromDecimals(e,n,i){let a=e.find(e=>e.coinDenom===i);if(!a)throw Error(`Invalid currency`);let o=new r.Dec(1);for(let e=0;e<a.coinDecimals;e++)o=o.mul(new r.Dec(10));let s=new r.Dec(n);if(s=s.mul(o),!new r.Dec(s.truncate()).equals(s))throw Error(`Can't divide anymore`);return new t.Coin(a.coinMinimalDenom,s.truncate())}static parseDecAndDenomFromCoin(e,t){let n=e.find(e=>e.coinMinimalDenom===t.denom);n||={coinDecimals:0,coinDenom:t.denom,coinMinimalDenom:t.denom};let i=new r.Dec(1);for(let e=0;e<n.coinDecimals;e++)i=i.mul(new r.Dec(10));return{amount:new r.Dec(t.amount).quoTruncate(i).toString(n.coinDecimals),denom:n.coinDenom}}static shrinkDecimals(t,n,i,a=!1){if(t.equals(new r.Dec(0)))return`0`;let o=t.isNegative(),s=t.abs().truncate(),c=t.abs().sub(new r.Dec(s)),l=Math.max(i-s.toString().length+1,n),u=l===0?``:c.toString(l).replace(`0.`,``),d=a?e.integerStringToUSLocaleString(s.toString()):s.toString();return(o?`-`:``)+d+(u.length>0?`.`:``)+u}static coinToTrimmedString(e,t,n=` `){let a=new r.Dec(e.amount).quoTruncate(i.DecUtils.getPrecisionDec(t.coinDecimals));return`${i.DecUtils.trim(a)}${n}${t.coinDenom}`}};e.CoinUtils=o,o.integerStringToUSLocaleString=a.integerStringToUSLocaleString})),Xr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.IntPretty=void 0;var t=Wr(),n=Kr(),r=qr(),i=Yr();e.IntPretty=class e{constructor(e){if(this.floatingDecimalPointRight=0,this._options={maxDecimals:0,trim:!1,shrink:!1,ready:!0,locale:!0,inequalitySymbol:!1,inequalitySymbolSeparator:` `},typeof e==`object`&&`toDec`in e?e=e.toDec():e instanceof n.Dec||(e=new n.Dec(e)),e.isZero()){this.dec=e;return}let r=e,i=0;for(let e=0;e<18&&(r.truncate().equals(new t.Int(0))||!r.equals(new n.Dec(r.truncate())));e++)r=r.mul(new n.Dec(10)),i++;this.dec=e,this._options.maxDecimals=i}get options(){return this._options}moveDecimalPointLeft(e){let t=this.clone();return t.floatingDecimalPointRight+=-e,t}moveDecimalPointRight(e){let t=this.clone();return t.floatingDecimalPointRight+=e,t}increasePrecision(e){return this.moveDecimalPointLeft(e)}decreasePrecision(e){return this.moveDecimalPointRight(e)}maxDecimals(e){let t=this.clone();return t._options.maxDecimals=e,t}inequalitySymbol(e){let t=this.clone();return t._options.inequalitySymbol=e,t}inequalitySymbolSeparator(e){let t=this.clone();return t._options.inequalitySymbolSeparator=e,t}trim(e){let t=this.clone();return t._options.trim=e,t}shrink(e){let t=this.clone();return t._options.shrink=e,t}locale(e){let t=this.clone();return t._options.locale=e,t}ready(e){let t=this.clone();return t._options.ready=e,t}get isReady(){return this._options.ready}add(t){t instanceof n.Dec||(t=t.toDec());let r=new e(this.toDec().add(t));return r._options=Object.assign({},this._options),r}sub(t){t instanceof n.Dec||(t=t.toDec());let r=new e(this.toDec().sub(t));return r._options=Object.assign({},this._options),r}mul(t){t instanceof n.Dec||(t=t.toDec());let r=new e(this.toDec().mul(t));return r._options=Object.assign({},this._options),r}quo(t){t instanceof n.Dec||(t=t.toDec());let r=new e(this.toDec().quo(t));return r._options=Object.assign({},this._options),r}toDec(){if(this.floatingDecimalPointRight===0)return this.dec;if(this.floatingDecimalPointRight>0)return this.dec.mulTruncate(r.DecUtils.getTenExponentN(this.floatingDecimalPointRight));{let e=-this.floatingDecimalPointRight,t=this.dec;for(;e>0;)if(e>=n.Dec.precision)t=t.mulTruncate(r.DecUtils.getTenExponentN(-n.Dec.precision)),e-=n.Dec.precision;else{t=t.mulTruncate(r.DecUtils.getTenExponentN(-(e%n.Dec.precision)));break}return t}}toString(){return this.toStringWithSymbols(``,``)}toStringWithSymbols(e,t){let n=this.toDec();if(this._options.inequalitySymbol&&!n.isZero()&&n.abs().lt(r.DecUtils.getTenExponentN(-this._options.maxDecimals))){let i=n.isNegative();return`${i?`>`:`<`}${this._options.inequalitySymbolSeparator}${i?`-`:``}${e}${r.DecUtils.getTenExponentN(-this._options.maxDecimals).toString(this._options.maxDecimals,this._options.locale)}${t}`}let a;a=this._options.shrink?i.CoinUtils.shrinkDecimals(n,0,this._options.maxDecimals,this._options.locale):n.toString(this._options.maxDecimals,this._options.locale),this._options.trim&&(a=r.DecUtils.trim(a));let o=a.charAt(0)===`-`;return o&&(a=a.slice(1)),`${o?`-`:``}${e}${a}${t}`}clone(){let t=new e(this.dec);return t.dec=this.dec,t.floatingDecimalPointRight=this.floatingDecimalPointRight,t._options=Object.assign({},this._options),t}}})),Zr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CoinPretty=void 0;var t=Xr(),n=Kr(),r=qr();e.CoinPretty=class e{constructor(e,i){this._currency=e,this._options={separator:` `,upperCase:!1,lowerCase:!1,hideDenom:!1,hideIBCMetadata:!1},typeof i==`object`&&`toDec`in i?i=i.toDec():i instanceof n.Dec||(i=new n.Dec(i)),this.intPretty=new t.IntPretty(i.quoTruncate(r.DecUtils.getTenExponentNInPrecisionRange(e.coinDecimals))).maxDecimals(e.coinDecimals)}get options(){return Object.assign(Object.assign({},this._options),this.intPretty.options)}get denom(){return this.currency.coinDenom}get currency(){return this._currency}setCurrency(e){let t=this.clone();return t.intPretty=this.intPretty.moveDecimalPointRight(this._currency.coinDecimals-e.coinDecimals),t._currency=e,t}separator(e){let t=this.clone();return t._options.separator=e,t}upperCase(e){let t=this.clone();return t._options.upperCase=e,t._options.lowerCase=!e,t}lowerCase(e){let t=this.clone();return t._options.lowerCase=e,t._options.upperCase=!e,t}hideDenom(e){let t=this.clone();return t._options.hideDenom=e,t}hideIBCMetadata(e){let t=this.clone();return t._options.hideIBCMetadata=e,t}moveDecimalPointLeft(e){let t=this.clone();return t.intPretty=t.intPretty.moveDecimalPointLeft(e),t}moveDecimalPointRight(e){let t=this.clone();return t.intPretty=t.intPretty.moveDecimalPointRight(e),t}increasePrecision(e){return this.moveDecimalPointLeft(e)}decreasePrecision(e){return this.moveDecimalPointRight(e)}maxDecimals(e){let t=this.clone();return t.intPretty=t.intPretty.maxDecimals(e),t}inequalitySymbol(e){let t=this.clone();return t.intPretty=t.intPretty.inequalitySymbol(e),t}inequalitySymbolSeparator(e){let t=this.clone();return t.intPretty=t.intPretty.inequalitySymbolSeparator(e),t}trim(e){let t=this.clone();return t.intPretty=t.intPretty.trim(e),t}shrink(e){let t=this.clone();return t.intPretty=t.intPretty.shrink(e),t}locale(e){let t=this.clone();return t.intPretty=t.intPretty.locale(e),t}ready(e){let t=this.clone();return t.intPretty=t.intPretty.ready(e),t}get isReady(){return this.intPretty.isReady}add(t){let n=t instanceof e;if(n&&`currency`in t&&this.currency.coinMinimalDenom!==t.currency.coinMinimalDenom)return this.clone();`toDec`in t&&(t=t.toDec());let i=this.clone();return i.intPretty=i.intPretty.add(n?t:t.mul(r.DecUtils.getTenExponentNInPrecisionRange(-this._currency.coinDecimals))),i}sub(t){let n=t instanceof e;if(n&&`currency`in t&&this.currency.coinMinimalDenom!==t.currency.coinMinimalDenom)return this.clone();`toDec`in t&&(t=t.toDec());let i=this.clone();return i.intPretty=i.intPretty.sub(n?t:t.mul(r.DecUtils.getTenExponentNInPrecisionRange(-this._currency.coinDecimals))),i}mul(e){let t=this.clone();return t.intPretty=t.intPretty.mul(e),t}quo(e){let t=this.clone();return t.intPretty=t.intPretty.quo(e),t}toDec(){return this.intPretty.toDec()}toCoin(){let e=this.toDec().mulTruncate(r.DecUtils.getTenExponentNInPrecisionRange(this.currency.coinDecimals)).truncate();return{denom:this.currency.coinMinimalDenom,amount:e.toString()}}toString(){let e=this.denom;this._options.hideIBCMetadata&&`originCurrency`in this.currency&&this.currency.originCurrency&&(e=this.currency.originCurrency.coinDenom),this._options.upperCase&&(e=e.toUpperCase()),this._options.lowerCase&&(e=e.toLowerCase());let t=this._options.separator;return this._options.hideDenom&&(e=``,t=``),this.intPretty.toStringWithSymbols(``,`${t}${e}`)}clone(){let t=new e(this._currency,0);return t._options=Object.assign({},this._options),t.intPretty=this.intPretty.clone(),t}}})),Qr=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PricePretty=void 0;var t=Xr(),n=qr();e.PricePretty=class e{constructor(e,n){this._fiatCurrency=e,this._options={separator:``,upperCase:!1,lowerCase:!1,locale:`en-US`},this.intPretty=new t.IntPretty(n).maxDecimals(e.maxDecimals).shrink(!0).trim(!0).locale(!1).inequalitySymbol(!0),this._options.locale=e.locale}get options(){return Object.assign(Object.assign({},this.intPretty.options),this._options)}get symbol(){return this._fiatCurrency.symbol}get fiatCurrency(){return this._fiatCurrency}separator(e){let t=this.clone();return t._options.separator=e,t}upperCase(e){let t=this.clone();return t._options.upperCase=e,t._options.lowerCase=!e,t}lowerCase(e){let t=this.clone();return t._options.lowerCase=e,t._options.upperCase=!e,t}moveDecimalPointLeft(e){let t=this.clone();return t.intPretty=t.intPretty.moveDecimalPointLeft(e),t}moveDecimalPointRight(e){let t=this.clone();return t.intPretty=t.intPretty.moveDecimalPointRight(e),t}increasePrecision(e){return this.moveDecimalPointLeft(e)}decreasePrecision(e){return this.moveDecimalPointRight(e)}maxDecimals(e){let t=this.clone();return t.intPretty=t.intPretty.maxDecimals(e),t}inequalitySymbol(e){let t=this.clone();return t.intPretty=t.intPretty.inequalitySymbol(e),t}inequalitySymbolSeparator(e){let t=this.clone();return t.intPretty=t.intPretty.inequalitySymbolSeparator(e),t}trim(e){let t=this.clone();return t.intPretty=t.intPretty.trim(e),t}shrink(e){let t=this.clone();return t.intPretty=t.intPretty.shrink(e),t}locale(e){let t=this.clone();return t._options.locale=e,t}ready(e){let t=this.clone();return t.intPretty=t.intPretty.ready(e),t}get isReady(){return this.intPretty.isReady}add(e){let t=this.clone();return t.intPretty=t.intPretty.add(e),t}sub(e){let t=this.clone();return t.intPretty=t.intPretty.sub(e),t}mul(e){let t=this.clone();return t.intPretty=t.intPretty.mul(e),t}quo(e){let t=this.clone();return t.intPretty=t.intPretty.quo(e),t}toDec(){return this.intPretty.toDec()}toString(){let e=this.symbol;this._options.upperCase&&(e=e.toUpperCase()),this._options.lowerCase&&(e=e.toLowerCase());let t=this.toDec(),r=this.options;if(r.inequalitySymbol&&!t.isZero()&&t.abs().lt(n.DecUtils.getTenExponentN(-r.maxDecimals)))return this.intPretty.toStringWithSymbols(`${e}${this._options.separator}`,``);let i=parseFloat(this.intPretty.toString()).toLocaleString(r.locale,{maximumFractionDigits:r.maxDecimals}),a=i.charAt(0)===`-`;return a&&(i=i.slice(1)),`${a?`-`:``}${e}${this._options.separator}${i}`}clone(){let t=new e(this._fiatCurrency,0);return t._options=Object.assign({},this._options),t.intPretty=this.intPretty.clone(),t}}})),$r=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RatePretty=void 0;var t=Xr();e.RatePretty=class e{constructor(e){this._options={separator:``,symbol:`%`},this.intPretty=new t.IntPretty(e),this.intPretty=this.intPretty.maxDecimals(3).shrink(!1).trim(!0).locale(!0).inequalitySymbol(!0)}get options(){return Object.assign(Object.assign({},this.intPretty.options),this._options)}separator(e){let t=this.clone();return t._options.separator=e,t}symbol(e){let t=this.clone();return t._options.symbol=e,t}moveDecimalPointLeft(e){let t=this.clone();return t.intPretty=t.intPretty.moveDecimalPointLeft(e),t}moveDecimalPointRight(e){let t=this.clone();return t.intPretty=t.intPretty.moveDecimalPointRight(e),t}maxDecimals(e){let t=this.clone();return t.intPretty=t.intPretty.maxDecimals(e),t}inequalitySymbol(e){let t=this.clone();return t.intPretty=t.intPretty.inequalitySymbol(e),t}inequalitySymbolSeparator(e){let t=this.clone();return t.intPretty=t.intPretty.inequalitySymbolSeparator(e),t}trim(e){let t=this.clone();return t.intPretty=t.intPretty.trim(e),t}shrink(e){let t=this.clone();return t.intPretty=t.intPretty.shrink(e),t}locale(e){let t=this.clone();return t.intPretty=t.intPretty.locale(e),t}ready(e){let t=this.clone();return t.intPretty=t.intPretty.ready(e),t}get isReady(){return this.intPretty.isReady}add(e){let t=this.clone();return t.intPretty=t.intPretty.add(e),t}sub(e){let t=this.clone();return t.intPretty=t.intPretty.sub(e),t}mul(e){let t=this.clone();return t.intPretty=t.intPretty.mul(e),t}quo(e){let t=this.clone();return t.intPretty=t.intPretty.quo(e),t}toDec(){return this.intPretty.toDec()}toString(){return this.intPretty.moveDecimalPointRight(2).toStringWithSymbols(``,`${this._options.separator}${this._options.symbol}`)}clone(){let t=new e(0);return t._options=Object.assign({},this._options),t.intPretty=this.intPretty.clone(),t}}})),ei=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Xr(),e),n(Zr(),e),n(Jr(),e),n(Wr(),e),n(Kr(),e),n(Yr(),e),n(qr(),e),n(Qr(),e),n($r(),e)})),ti=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isSimpleFetchError=e.SimpleFetchError=void 0;var t=class e extends Error{constructor(t,n,r){super(`Failed to get response from ${new URL(n,t).toString()}`),this.baseURL=t,this.url=n,this.response=r,Object.setPrototypeOf(this,e.prototype)}};e.SimpleFetchError=t;function n(e){return e instanceof t}e.isSimpleFetchError=n})),ni=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};Object.defineProperty(e,"__esModule",{value:!0}),e.simpleFetch=e.makeURL=void 0;var r=ti();function i(e,t){let n=new URL(e);return e=o(n.origin),t=o(n.pathname)+`/`+a(t),o(e+`/`+a(t))}e.makeURL=i;function a(e){return e.length>0&&e[0]===`/`?e.slice(1):e}function o(e){return e.length>0&&e[e.length-1]===`/`?e.slice(0,e.length-1):e}function s(e,a,o){return t(this,void 0,void 0,function*(){typeof a!=`string`&&(a&&(o=a),a=``),a===`/`&&(a=``);let t=i(e,a),s=o||{},{headers:l}=s,u=n(s,[`headers`]),d=yield fetch(t,Object.assign({headers:Object.assign({accept:`application/json, text/plain, */*`},l)},u)),f;if((d.headers.get(`content-type`)||``).startsWith(`application/json`))f=yield d.json();else{let e=yield d.text(),t=e.trim();f=t.startsWith(`{`)&&t.endsWith(`}`)?JSON.parse(t):e}let p={url:t,data:f,headers:d.headers,status:d.status,statusText:d.statusText};if(!(o?.validateStatus||c)(d.status))throw new r.SimpleFetchError(e,a,p);return p})}e.simpleFetch=s;function c(e){return e===200}})),ri=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),ii=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ni(),e),n(ti(),e),n(ri(),e)})),ai=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseAccount=void 0;var n=ei(),r=ii();e.BaseAccount=class e{static fetchFromRest(n,i,a=!1){return t(this,void 0,void 0,function*(){let t=yield(0,r.simpleFetch)(n,`/cosmos/auth/v1beta1/accounts/${i}`,{validateStatus:function(e){return e>=200&&e<300||e===404}});return e.fromProtoJSON(t.data,a?i:``)})}static fromProtoJSON(t,r=``){if(!t.account){if(!r)throw Error(`Account's address is unknown: ${JSON.stringify(t)}`);return new e(``,r,new n.Int(0),new n.Int(0))}let i=t.account,a=i[`@type`]||``,o=i.BaseAccount||i.baseAccount||i.base_account;o&&(i=o);let s=i.account;s&&(i=s);let c=i.BaseVestingAccount||i.baseVestingAccount||i.base_vesting_account;if(c){i=c;let e=i.BaseAccount||i.baseAccount||i.base_account;e&&(i=e)}let l=i.address;if(!l){if(!r)throw Error(`Account's address is unknown: ${JSON.stringify(t)}`);l=r}let u=i.account_number,d=i.sequence;return new e(a,l,new n.Int(u||`0`),new n.Int(d||`0`))}constructor(e,t,n,r){this.type=e,this.address=t,this.accountNumber=n,this.sequence=r}getType(){return this.type}getAddress(){return this.address}getAccountNumber(){return this.accountNumber}getSequence(){return this.sequence}}})),oi,si=t((()=>{oi=`logger/5.8.0`}));function ci(){try{let e=[];if([`NFD`,`NFC`,`NFKD`,`NFKC`].forEach(t=>{try{if(`test`.normalize(t)!==`test`)throw Error(`bad normalize`)}catch{e.push(t)}}),e.length)throw Error(`missing `+e.join(`, `));if(`é`.normalize(`NFD`)!==`é`)throw Error(`broken implementation`)}catch(e){return e.message}return null}var li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi=t((()=>{si(),li=!1,ui=!1,di={debug:1,default:2,info:2,warning:3,error:4,off:5},fi=di.default,pi=null,mi=ci(),(function(e){e.DEBUG=`DEBUG`,e.INFO=`INFO`,e.WARNING=`WARNING`,e.ERROR=`ERROR`,e.OFF=`OFF`})(hi||={}),(function(e){e.UNKNOWN_ERROR=`UNKNOWN_ERROR`,e.NOT_IMPLEMENTED=`NOT_IMPLEMENTED`,e.UNSUPPORTED_OPERATION=`UNSUPPORTED_OPERATION`,e.NETWORK_ERROR=`NETWORK_ERROR`,e.SERVER_ERROR=`SERVER_ERROR`,e.TIMEOUT=`TIMEOUT`,e.BUFFER_OVERRUN=`BUFFER_OVERRUN`,e.NUMERIC_FAULT=`NUMERIC_FAULT`,e.MISSING_NEW=`MISSING_NEW`,e.INVALID_ARGUMENT=`INVALID_ARGUMENT`,e.MISSING_ARGUMENT=`MISSING_ARGUMENT`,e.UNEXPECTED_ARGUMENT=`UNEXPECTED_ARGUMENT`,e.CALL_EXCEPTION=`CALL_EXCEPTION`,e.INSUFFICIENT_FUNDS=`INSUFFICIENT_FUNDS`,e.NONCE_EXPIRED=`NONCE_EXPIRED`,e.REPLACEMENT_UNDERPRICED=`REPLACEMENT_UNDERPRICED`,e.UNPREDICTABLE_GAS_LIMIT=`UNPREDICTABLE_GAS_LIMIT`,e.TRANSACTION_REPLACED=`TRANSACTION_REPLACED`,e.ACTION_REJECTED=`ACTION_REJECTED`})(gi||={}),_i=`0123456789abcdef`,vi=class e{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let n=e.toLowerCase();di[n]??this.throwArgumentError(`invalid log level name`,`logLevel`,e),!(fi>di[n])&&console.log.apply(console,t)}debug(...t){this._log(e.levels.DEBUG,t)}info(...t){this._log(e.levels.INFO,t)}warn(...t){this._log(e.levels.WARNING,t)}makeError(t,n,r){if(ui)return this.makeError(`censored error`,n,{});n||=e.errors.UNKNOWN_ERROR,r||={};let i=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let n=``;for(let e=0;e<t.length;e++)n+=_i[t[e]>>4],n+=_i[t[e]&15];i.push(e+`=Uint8Array(0x`+n+`)`)}else i.push(e+`=`+JSON.stringify(t))}catch{i.push(e+`=`+JSON.stringify(r[e].toString()))}}),i.push(`code=${n}`),i.push(`version=${this.version}`);let a=t,o=``;switch(n){case gi.NUMERIC_FAULT:{o=`NUMERIC_FAULT`;let e=t;switch(e){case`overflow`:case`underflow`:case`division-by-zero`:o+=`-`+e;break;case`negative-power`:case`negative-width`:o+=`-unsupported`;break;case`unbound-bitwise-result`:o+=`-unbound-result`}break}case gi.CALL_EXCEPTION:case gi.INSUFFICIENT_FUNDS:case gi.MISSING_NEW:case gi.NONCE_EXPIRED:case gi.REPLACEMENT_UNDERPRICED:case gi.TRANSACTION_REPLACED:case gi.UNPREDICTABLE_GAS_LIMIT:o=n}o&&(t+=` [ See: https://links.ethers.org/v5-errors-`+o+` ]`),i.length&&(t+=` (`+i.join(`, `)+`)`);let s=Error(t);return s.reason=a,s.code=n,Object.keys(r).forEach(function(e){s[e]=r[e]}),s}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(t,n,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:n,value:r})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(t){t??=`platform missing String.prototype.normalize`,mi&&this.throwError(`platform missing String.prototype.normalize`,e.errors.UNSUPPORTED_OPERATION,{operation:`String.prototype.normalize`,form:mi})}checkSafeUint53(t,n){typeof t==`number`&&(n??=`value not safe`,(t<0||t>=9007199254740991)&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:`checkSafeInteger`,fault:`out-of-safe-range`,value:t}),t%1&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:`checkSafeInteger`,fault:`non-integer`,value:t}))}checkArgumentCount(t,n,r){r=r?`: `+r:``,t<n&&this.throwError(`missing argument`+r,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:n}),t>n&&this.throwError(`too many arguments`+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}checkNew(t,n){(t===Object||t==null)&&this.throwError(`missing new`,e.errors.MISSING_NEW,{name:n.name})}checkAbstract(t,n){t===n?this.throwError(`cannot instantiate abstract class `+JSON.stringify(n.name)+` directly; use a sub-class`,e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:`new`}):(t===Object||t==null)&&this.throwError(`missing new`,e.errors.MISSING_NEW,{name:n.name})}static globalLogger(){return pi||=new e(oi),pi}static setCensorship(t,n){if(!t&&n&&this.globalLogger().throwError(`cannot permanently disable censorship`,e.errors.UNSUPPORTED_OPERATION,{operation:`setCensorship`}),li){if(!t)return;this.globalLogger().throwError(`error censorship permanent`,e.errors.UNSUPPORTED_OPERATION,{operation:`setCensorship`})}ui=!!t,li=!!n}static setLogLevel(t){let n=di[t.toLowerCase()];if(n==null){e.globalLogger().warn(`invalid log level - `+t);return}fi=n}static from(t){return new e(t)}},vi.errors=gi,vi.levels=hi})),bi,xi=t((()=>{bi=`bytes/5.8.0`}));function Si(e){return!!e.toHexString}function Ci(e){return e.slice||=function(){let t=Array.prototype.slice.call(arguments);return Ci(new Uint8Array(Array.prototype.slice.apply(e,t)))},e}function wi(e){return Ai(e)&&!(e.length%2)||Ei(e)}function Ti(e){return typeof e==`number`&&e==e&&e%1==0}function Ei(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e==`string`||!Ti(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let n=e[t];if(!Ti(n)||n<0||n>=256)return!1}return!0}function Di(e,t){if(t||={},typeof e==`number`){Pi.checkSafeUint53(e,`invalid arrayify value`);let t=[];for(;e;)t.unshift(e&255),e=parseInt(String(e/256));return t.length===0&&t.push(0),Ci(new Uint8Array(t))}if(t.allowMissingPrefix&&typeof e==`string`&&e.substring(0,2)!==`0x`&&(e=`0x`+e),Si(e)&&(e=e.toHexString()),Ai(e)){let n=e.substring(2);n.length%2&&(t.hexPad===`left`?n=`0`+n:t.hexPad===`right`?n+=`0`:Pi.throwArgumentError(`hex data is odd-length`,`value`,e));let r=[];for(let e=0;e<n.length;e+=2)r.push(parseInt(n.substring(e,e+2),16));return Ci(new Uint8Array(r))}return Ei(e)?Ci(new Uint8Array(e)):Pi.throwArgumentError(`invalid arrayify value`,`value`,e)}function Oi(e){let t=e.map(e=>Di(e)),n=t.reduce((e,t)=>e+t.length,0),r=new Uint8Array(n);return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),Ci(r)}function ki(e){let t=Di(e);if(t.length===0)return t;let n=0;for(;n<t.length&&t[n]===0;)n++;return n&&(t=t.slice(n)),t}function Ai(e,t){return!(typeof e!=`string`||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function ji(e,t){if(t||={},typeof e==`number`){Pi.checkSafeUint53(e,`invalid hexlify value`);let t=``;for(;e;)t=Fi[e&15]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t=`0`+t),`0x`+t):`0x00`}if(typeof e==`bigint`)return e=e.toString(16),e.length%2?`0x0`+e:`0x`+e;if(t.allowMissingPrefix&&typeof e==`string`&&e.substring(0,2)!==`0x`&&(e=`0x`+e),Si(e))return e.toHexString();if(Ai(e))return e.length%2&&(t.hexPad===`left`?e=`0x0`+e.substring(2):t.hexPad===`right`?e+=`0`:Pi.throwArgumentError(`hex data is odd-length`,`value`,e)),e.toLowerCase();if(Ei(e)){let t=`0x`;for(let n=0;n<e.length;n++){let r=e[n];t+=Fi[(r&240)>>4]+Fi[r&15]}return t}return Pi.throwArgumentError(`invalid hexlify value`,`value`,e)}function Mi(e){if(typeof e!=`string`)e=ji(e);else if(!Ai(e)||e.length%2)return null;return(e.length-2)/2}function Ni(e,t,n){return typeof e==`string`?(!Ai(e)||e.length%2)&&Pi.throwArgumentError(`invalid hexData`,`value`,e):e=ji(e),t=2+2*t,n==null?`0x`+e.substring(t):`0x`+e.substring(t,2+2*n)}var Pi,Fi,Ii=t((()=>{yi(),xi(),Pi=new vi(bi),Fi=`0123456789abcdef`})),Li,Ri=t((()=>{Li=`bignumber/5.8.0`}));function zi(e){if(typeof e!=`string`)return zi(e.toString(16));if(e[0]===`-`)return e=e.substring(1),e[0]===`-`&&Ki.throwArgumentError(`invalid hex`,`value`,e),e=zi(e),e===`0x00`?e:`-`+e;if(e.substring(0,2)!==`0x`&&(e=`0x`+e),e===`0x`)return`0x00`;for(e.length%2&&(e=`0x0`+e.substring(2));e.length>4&&e.substring(0,4)===`0x00`;)e=`0x`+e.substring(4);return e}function Bi(e){return Xi.from(zi(e))}function q(e){let t=Xi.from(e).toHexString();return t[0]===`-`?new Gi(`-`+t.substring(3),16):new Gi(t.substring(2),16)}function Vi(e,t,n){let r={fault:e,operation:t};return n!=null&&(r.value=n),Ki.throwError(e,vi.errors.NUMERIC_FAULT,r)}function Hi(e){return new Gi(e,36).toString(16)}function Ui(e){return new Gi(e,16).toString(36)}var Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi=t((()=>{Wi=i(ue()),Ii(),yi(),Ri(),Gi=Wi.default.BN,Ki=new vi(Li),qi={},Ji=9007199254740991,Yi=!1,Xi=class e{constructor(e,t){e!==qi&&Ki.throwError(`cannot call constructor directly; use BigNumber.from`,vi.errors.UNSUPPORTED_OPERATION,{operation:`new (BigNumber)`}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Bi(q(this).fromTwos(e))}toTwos(e){return Bi(q(this).toTwos(e))}abs(){return this._hex[0]===`-`?e.from(this._hex.substring(1)):this}add(e){return Bi(q(this).add(q(e)))}sub(e){return Bi(q(this).sub(q(e)))}div(t){return e.from(t).isZero()&&Vi(`division-by-zero`,`div`),Bi(q(this).div(q(t)))}mul(e){return Bi(q(this).mul(q(e)))}mod(e){let t=q(e);return t.isNeg()&&Vi(`division-by-zero`,`mod`),Bi(q(this).umod(t))}pow(e){let t=q(e);return t.isNeg()&&Vi(`negative-power`,`pow`),Bi(q(this).pow(t))}and(e){let t=q(e);return(this.isNegative()||t.isNeg())&&Vi(`unbound-bitwise-result`,`and`),Bi(q(this).and(t))}or(e){let t=q(e);return(this.isNegative()||t.isNeg())&&Vi(`unbound-bitwise-result`,`or`),Bi(q(this).or(t))}xor(e){let t=q(e);return(this.isNegative()||t.isNeg())&&Vi(`unbound-bitwise-result`,`xor`),Bi(q(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&Vi(`negative-width`,`mask`),Bi(q(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&Vi(`negative-width`,`shl`),Bi(q(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&Vi(`negative-width`,`shr`),Bi(q(this).shrn(e))}eq(e){return q(this).eq(q(e))}lt(e){return q(this).lt(q(e))}lte(e){return q(this).lte(q(e))}gt(e){return q(this).gt(q(e))}gte(e){return q(this).gte(q(e))}isNegative(){return this._hex[0]===`-`}isZero(){return q(this).isZero()}toNumber(){try{return q(this).toNumber()}catch{Vi(`overflow`,`toNumber`,this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return Ki.throwError(`this platform does not support BigInt`,vi.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?Yi||(Yi=!0,Ki.warn(`BigNumber.toString does not accept any parameters; base-10 is assumed`)):arguments[0]===16?Ki.throwError(`BigNumber.toString does not accept any parameters; use bigNumber.toHexString()`,vi.errors.UNEXPECTED_ARGUMENT,{}):Ki.throwError(`BigNumber.toString does not accept parameters`,vi.errors.UNEXPECTED_ARGUMENT,{})),q(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:`BigNumber`,hex:this.toHexString()}}static from(t){if(t instanceof e)return t;if(typeof t==`string`)return t.match(/^-?0x[0-9a-f]+$/i)?new e(qi,zi(t)):t.match(/^-?[0-9]+$/)?new e(qi,zi(new Gi(t))):Ki.throwArgumentError(`invalid BigNumber string`,`value`,t);if(typeof t==`number`)return t%1&&Vi(`underflow`,`BigNumber.from`,t),(t>=Ji||t<=-9007199254740991)&&Vi(`overflow`,`BigNumber.from`,t),e.from(String(t));let n=t;if(typeof n==`bigint`)return e.from(n.toString());if(Ei(n))return e.from(ji(n));if(n){if(n.toHexString){let t=n.toHexString();if(typeof t==`string`)return e.from(t)}else{let t=n._hex;if(t==null&&n.type===`BigNumber`&&(t=n.hex),typeof t==`string`&&(Ai(t)||t[0]===`-`&&Ai(t.substring(1))))return e.from(t)}}return Ki.throwArgumentError(`invalid BigNumber value`,`value`,t)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}})),Qi=t((()=>{Zi(),Ii(),yi(),Ri()})),$i=a(((e,t)=>{B(),s(),(function(){var e=`input is invalid type`,n=typeof window==`object`,r=n?window:{};r.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&typeof self==`object`;!r.JS_SHA3_NO_NODE_JS&&typeof o==`object`&&o.versions&&o.versions.node?r=V:i&&(r=self);var a=!r.JS_SHA3_NO_COMMON_JS&&typeof t==`object`&&t.exports,s=typeof define==`function`&&define.amd,c=!r.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<`u`,l=`0123456789abcdef`.split(``),u=[31,7936,2031616,520093696],d=[4,1024,262144,67108864],f=[1,256,65536,16777216],p=[6,1536,393216,100663296],m=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],g=[224,256,384,512],_=[128,256],v=[`hex`,`buffer`,`arrayBuffer`,`array`,`digest`],y={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return Object.prototype.toString.call(e)===`[object Array]`}),c&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return typeof e==`object`&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var b=function(e,t,n){return function(r){return new F(e,t,e).update(r)[n]()}},x=function(e,t,n){return function(r,i){return new F(e,t,i).update(r)[n]()}},S=function(e,t,n){return function(t,r,i,a){return D[`cshake`+e].update(t,r,i,a)[n]()}},C=function(e,t,n){return function(t,r,i,a){return D[`kmac`+e].update(t,r,i,a)[n]()}},w=function(e,t,n,r){for(var i=0;i<v.length;++i){var a=v[i];e[a]=t(n,r,a)}return e},T=function(e,t){var n=b(e,t,`hex`);return n.create=function(){return new F(e,t,e)},n.update=function(e){return n.create().update(e)},w(n,b,e,t)},E=[{name:`keccak`,padding:f,bits:g,createMethod:T},{name:`sha3`,padding:p,bits:g,createMethod:T},{name:`shake`,padding:u,bits:_,createMethod:function(e,t){var n=x(e,t,`hex`);return n.create=function(n){return new F(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},w(n,x,e,t)}},{name:`cshake`,padding:d,bits:_,createMethod:function(e,t){var n=y[e],r=S(e,t,`hex`);return r.create=function(r,i,a){return!i&&!a?D[`shake`+e].create(r):new F(e,t,r).bytepad([i,a],n)},r.update=function(e,t,n,i){return r.create(t,n,i).update(e)},w(r,S,e,t)}},{name:`kmac`,padding:d,bits:_,createMethod:function(e,t){var n=y[e],r=C(e,t,`hex`);return r.create=function(r,i,a){return new I(e,t,i).bytepad([`KMAC`,a],n).bytepad([r],n)},r.update=function(e,t,n,i){return r.create(e,n,i).update(t)},w(r,C,e,t)}}],D={},O=[],k=0;k<E.length;++k)for(var A=E[k],j=A.bits,M=0;M<j.length;++M){var N=A.name+`_`+j[M];if(O.push(N),D[N]=A.createMethod(j[M],A.padding),A.name!==`sha3`){var P=A.name+j[M];O.push(P),D[P]=D[N]}}function F(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(n&31)>>3;for(var r=0;r<50;++r)this.s[r]=0}F.prototype.update=function(t){if(this.finalized)throw Error(`finalize already called`);var n,r=typeof t;if(r!==`string`){if(r===`object`){if(t===null)throw Error(e);if(c&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!c||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);n=!0}for(var i=this.blocks,a=this.byteCount,o=t.length,s=this.blockCount,l=0,u=this.s,d,f;l<o;){if(this.reset)for(this.reset=!1,i[0]=this.block,d=1;d<s+1;++d)i[d]=0;if(n)for(d=this.start;l<o&&d<a;++l)i[d>>2]|=t[l]<<m[d++&3];else for(d=this.start;l<o&&d<a;++l)f=t.charCodeAt(l),f<128?i[d>>2]|=f<<m[d++&3]:f<2048?(i[d>>2]|=(192|f>>6)<<m[d++&3],i[d>>2]|=(128|f&63)<<m[d++&3]):f<55296||f>=57344?(i[d>>2]|=(224|f>>12)<<m[d++&3],i[d>>2]|=(128|f>>6&63)<<m[d++&3],i[d>>2]|=(128|f&63)<<m[d++&3]):(f=65536+((f&1023)<<10|t.charCodeAt(++l)&1023),i[d>>2]|=(240|f>>18)<<m[d++&3],i[d>>2]|=(128|f>>12&63)<<m[d++&3],i[d>>2]|=(128|f>>6&63)<<m[d++&3],i[d>>2]|=(128|f&63)<<m[d++&3]);if(this.lastByteIndex=d,d>=a){for(this.start=d-a,this.block=i[s],d=0;d<s;++d)u[d]^=i[d];L(u),this.reset=!0}else this.start=d}return this},F.prototype.encode=function(e,t){var n=e&255,r=1,i=[n];for(e>>=8,n=e&255;n>0;)i.unshift(n),e>>=8,n=e&255,++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},F.prototype.encodeString=function(t){var n,r=typeof t;if(r!==`string`){if(r===`object`){if(t===null)throw Error(e);if(c&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!c||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);n=!0}var i=0,a=t.length;if(n)i=a;else for(var o=0;o<t.length;++o){var s=t.charCodeAt(o);s<128?i+=1:s<2048?i+=2:s<55296||s>=57344?i+=3:(s=65536+((s&1023)<<10|t.charCodeAt(++o)&1023),i+=4)}return i+=this.encode(i*8),this.update(t),i},F.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var i=t-n%t,a=[];return a.length=i,this.update(a),this},F.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[t&3],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];L(r)}},F.prototype.toString=F.prototype.hex=function(){this.finalize();for(var e=this.blockCount,t=this.s,n=this.outputBlocks,r=this.extraBytes,i=0,a=0,o=``,s;a<n;){for(i=0;i<e&&a<n;++i,++a)s=t[i],o+=l[s>>4&15]+l[s&15]+l[s>>12&15]+l[s>>8&15]+l[s>>20&15]+l[s>>16&15]+l[s>>28&15]+l[s>>24&15];a%e===0&&(L(t),i=0)}return r&&(s=t[i],o+=l[s>>4&15]+l[s&15],r>1&&(o+=l[s>>12&15]+l[s>>8&15]),r>2&&(o+=l[s>>20&15]+l[s>>16&15])),o},F.prototype.arrayBuffer=function(){this.finalize();for(var e=this.blockCount,t=this.s,n=this.outputBlocks,r=this.extraBytes,i=0,a=0,o=this.outputBits>>3,s=r?new ArrayBuffer(n+1<<2):new ArrayBuffer(o),c=new Uint32Array(s);a<n;){for(i=0;i<e&&a<n;++i,++a)c[a]=t[i];a%e===0&&L(t)}return r&&(c[i]=t[i],s=s.slice(0,o)),s},F.prototype.buffer=F.prototype.arrayBuffer,F.prototype.digest=F.prototype.array=function(){this.finalize();for(var e=this.blockCount,t=this.s,n=this.outputBlocks,r=this.extraBytes,i=0,a=0,o=[],s,c;a<n;){for(i=0;i<e&&a<n;++i,++a)s=a<<2,c=t[i],o[s]=c&255,o[s+1]=c>>8&255,o[s+2]=c>>16&255,o[s+3]=c>>24&255;a%e===0&&L(t)}return r&&(s=a<<2,c=t[i],o[s]=c&255,r>1&&(o[s+1]=c>>8&255),r>2&&(o[s+2]=c>>16&255)),o};function I(e,t,n){F.call(this,e,t,n)}I.prototype=new F,I.prototype.finalize=function(){return this.encode(this.outputBits,!0),F.prototype.finalize.call(this)};var L=function(e){for(var t,n,r=0,i,a,o,s,c,l,u,d,f,p,m,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,ee,te,ne,re,ie,z,B,V,ae,oe,se,H,ce,le,ue,de,fe,pe,me,U,he,ge,_e,ve,ye,be;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=f^(o<<1|s>>>31),n=p^(s<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|l>>>31),n=a^(l<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(u<<1|d>>>31),n=s^(d<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(f<<1|p>>>31),n=l^(p<<1|f>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|a>>>31),n=d^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],g=e[1],ae=e[11]<<4|e[10]>>>28,oe=e[10]<<4|e[11]>>>28,k=e[20]<<3|e[21]>>>29,A=e[21]<<3|e[20]>>>29,_e=e[31]<<9|e[30]>>>23,ve=e[30]<<9|e[31]>>>23,ie=e[40]<<18|e[41]>>>14,z=e[41]<<18|e[40]>>>14,F=e[2]<<1|e[3]>>>31,I=e[3]<<1|e[2]>>>31,_=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,se=e[22]<<10|e[23]>>>22,H=e[23]<<10|e[22]>>>22,j=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ye=e[42]<<2|e[43]>>>30,be=e[43]<<2|e[42]>>>30,fe=e[5]<<30|e[4]>>>2,pe=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,R=e[15]<<6|e[14]>>>26,y=e[25]<<11|e[24]>>>21,b=e[24]<<11|e[25]>>>21,ce=e[34]<<15|e[35]>>>17,le=e[35]<<15|e[34]>>>17,N=e[45]<<29|e[44]>>>3,P=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,me=e[17]<<23|e[16]>>>9,U=e[16]<<23|e[17]>>>9,ee=e[26]<<25|e[27]>>>7,te=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,ue=e[47]<<24|e[46]>>>8,de=e[46]<<24|e[47]>>>8,B=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,D=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,he=e[29]<<7|e[28]>>>25,ge=e[28]<<7|e[29]>>>25,ne=e[38]<<8|e[39]>>>24,re=e[39]<<8|e[38]>>>24,C=e[48]<<14|e[49]>>>18,w=e[49]<<14|e[48]>>>18,e[0]=m^~_&y,e[1]=g^~v&b,e[10]=T^~D&k,e[11]=E^~O&A,e[20]=F^~L&ee,e[21]=I^~R&te,e[30]=B^~ae&se,e[31]=V^~oe&H,e[40]=fe^~me&he,e[41]=pe^~U&ge,e[2]=_^~y&x,e[3]=v^~b&S,e[12]=D^~k&j,e[13]=O^~A&M,e[22]=L^~ee&ne,e[23]=R^~te&re,e[32]=ae^~se&ce,e[33]=oe^~H&le,e[42]=me^~he&_e,e[43]=U^~ge&ve,e[4]=y^~x&C,e[5]=b^~S&w,e[14]=k^~j&N,e[15]=A^~M&P,e[24]=ee^~ne&ie,e[25]=te^~re&z,e[34]=se^~ce&ue,e[35]=H^~le&de,e[44]=he^~_e&ye,e[45]=ge^~ve&be,e[6]=x^~C&m,e[7]=S^~w&g,e[16]=j^~N&T,e[17]=M^~P&E,e[26]=ne^~ie&F,e[27]=re^~z&I,e[36]=ce^~ue&B,e[37]=le^~de&V,e[46]=_e^~ye&fe,e[47]=ve^~be&pe,e[8]=C^~m&_,e[9]=w^~g&v,e[18]=N^~T&D,e[19]=P^~E&O,e[28]=ie^~F&L,e[29]=z^~I&R,e[38]=ue^~B&ae,e[39]=de^~V&oe,e[48]=ye^~fe&me,e[49]=be^~pe&U,e[0]^=h[r],e[1]^=h[r+1]};if(a)t.exports=D;else{for(k=0;k<O.length;++k)r[O[k]]=D[O[k]];s&&define(function(){return D})}})()})),ea=r({keccak256:()=>ta});function ta(e){return`0x`+na.default.keccak_256(Di(e))}var na,ra=t((()=>{na=i($i()),Ii()})),ia,aa=t((()=>{ia=`rlp/5.8.0`}));function oa(e){let t=[];for(;e;)t.unshift(e&255),e>>=8;return t}function sa(e){if(Array.isArray(e)){let t=[];if(e.forEach(function(e){t=t.concat(sa(e))}),t.length<=55)return t.unshift(192+t.length),t;let n=oa(t.length);return n.unshift(247+n.length),n.concat(t)}wi(e)||la.throwArgumentError(`RLP object must be BytesLike`,`object`,e);let t=Array.prototype.slice.call(Di(e));if(t.length===1&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;let n=oa(t.length);return n.unshift(183+n.length),n.concat(t)}function ca(e){return ji(sa(e))}var la,ua=t((()=>{Ii(),yi(),aa(),la=new vi(ia)})),da,fa=t((()=>{da=`address/5.8.0`})),pa=r({getAddress:()=>_a,getContractAddress:()=>ba,getCreate2Address:()=>xa,getIcapAddress:()=>ya,isAddress:()=>va});function ma(e){Ai(e,20)||Sa.throwArgumentError(`invalid address`,`address`,e),e=e.toLowerCase();let t=e.substring(2).split(``),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);let r=Di(ta(n));for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(r[e>>1]&15)>=8&&(t[e+1]=t[e+1].toUpperCase());return`0x`+t.join(``)}function ha(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}function ga(e){e=e.toUpperCase(),e=e.substring(4)+e.substring(0,2)+`00`;let t=e.split(``).map(e=>wa[e]).join(``);for(;t.length>=Ta;){let e=t.substring(0,Ta);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n=`0`+n;return n}function _a(e){let t=null;if(typeof e!=`string`&&Sa.throwArgumentError(`invalid address`,`address`,e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))e.substring(0,2)!==`0x`&&(e=`0x`+e),t=ma(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&Sa.throwArgumentError(`bad address checksum`,`address`,e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==ga(e)&&Sa.throwArgumentError(`bad icap checksum`,`address`,e),t=Hi(e.substring(4));t.length<40;)t=`0`+t;t=ma(`0x`+t)}else Sa.throwArgumentError(`invalid address`,`address`,e);return t}function va(e){try{return _a(e),!0}catch{}return!1}function ya(e){let t=Ui(_a(e).substring(2)).toUpperCase();for(;t.length<30;)t=`0`+t;return`XE`+ga(`XE00`+t)+t}function ba(e){let t=null;try{t=_a(e.from)}catch{Sa.throwArgumentError(`missing from address`,`transaction`,e)}let n=ki(Di(Xi.from(e.nonce).toHexString()));return _a(Ni(ta(ca([t,n])),12))}function xa(e,t,n){return Mi(t)!==32&&Sa.throwArgumentError(`salt must be 32 bytes`,`salt`,t),Mi(n)!==32&&Sa.throwArgumentError(`initCodeHash must be 32 bytes`,`initCodeHash`,n),_a(Ni(ta(Oi([`0xff`,_a(e),t,n])),12))}var Sa,Ca,wa,Ta,Ea=t((()=>{Ii(),Qi(),ra(),ua(),yi(),fa(),Sa=new vi(da),Ca=9007199254740991,wa={};for(let e=0;e<10;e++)wa[String(e)]=String(e);for(let e=0;e<26;e++)wa[String.fromCharCode(65+e)]=String(10+e);Ta=Math.floor(ha(Ca))})),Da=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),r=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),i=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(n,e,i);return r(n,e),n};Object.defineProperty(e,"__esModule",{value:!0}),e.Bech32Address=void 0;var a=i(xe()),o=le(),s=(Ea(),n(pa));e.Bech32Address=class e{static shortenAddress(e,t){if(t>=e.length)return e;let n=e.indexOf(`1`),r=e.slice(0,n),i=e.slice(n+1);if(t-=r.length,t-=3,--t,t<=0)return``;let a=Math.floor(i.length/2),o=i.slice(0,a),s=i.slice(a);for(;t<o.length+s.length;)(o.length+s.length)%2==1&&o.length>0?o=o.slice(0,o.length-1):s=s.slice(1);return r+`1`+o+`...`+s}static fromBech32(t,n){let r=a.default.decode(t);if(n&&r.prefix!==n)throw Error(`Unmatched prefix`);return new e(new Uint8Array((0,a.fromWords)(r.words)))}static validate(e,t){let{prefix:n}=a.default.decode(e);if(t&&t!==n)throw Error(`Unexpected prefix (expected: ${t}, actual: ${n})`)}static defaultBech32Config(e,t=`val`,n=`cons`,r=`pub`,i=`oper`){return{bech32PrefixAccAddr:e,bech32PrefixAccPub:e+r,bech32PrefixValAddr:e+t+i,bech32PrefixValPub:e+t+i+r,bech32PrefixConsAddr:e+t+n,bech32PrefixConsPub:e+t+n+r}}constructor(e){this.address=e}toBech32(e){let t=a.default.toWords(this.address);return a.default.encode(e,t)}toHex(e=!0){let t=o.Buffer.from(this.address).toString(`hex`);if(t.length===0)throw Error(`Empty address`);return e?(0,s.getAddress)(`0x`+t):`0x`+t}}})),Oa=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ChainIdHelper=void 0;var t=class e{static parse(t){if(t===`injective-777`||t===`injective-888`)return{identifier:t,version:0};let n=t.split(e.VersionFormatRegExp).filter(Boolean);return n.length===2?{identifier:n[0],version:parseInt(n[1])}:{identifier:t,version:0}}static hasChainVersion(t){return e.parse(t).identifier!==t}};e.ChainIdHelper=t,t.VersionFormatRegExp=/(.+)-([\d]+)/})),ka=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.EthermintChainIdHelper=void 0;var t=Oa();e.EthermintChainIdHelper=class{static parse(e){let n=t.ChainIdHelper.parse(e);if(e.startsWith(`injective`))return[`injective-777`,`injective-888`].includes(e)?Object.assign({ethChainId:5},n):Object.assign({ethChainId:1},n);let r=e.match(`^([a-z]{1,})_{1}([1-9][0-9]*)-{1}([1-9][0-9]*)$`);if(!r||r.length!==4||r[1]===``||Number.isNaN(parseFloat(r[2]))||!Number.isInteger(parseFloat(r[2])))throw Error(`Invalid chainId for ethermint: ${e}`);return Object.assign(Object.assign({},n),{ethChainId:parseFloat(r[2])})}}})),Aa=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Oa(),e),n(ka(),e)})),ja=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WsReadyState=void 0,(function(e){e[e.CONNECTING=0]=`CONNECTING`,e[e.OPEN=1]=`OPEN`,e[e.CLOSING=2]=`CLOSING`,e[e.CLOSED=3]=`CLOSED`,e[e.NONE=4]=`NONE`})(e.WsReadyState||={})})),Ma=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TendermintTxTracer=void 0;var t=ja(),n=le();e.TendermintTxTracer=class{constructor(e,t,n={}){this.url=e,this.wsEndpoint=t,this.options=n,this.newBlockSubscribes=[],this.txSubscribes=new Map,this.pendingQueries=new Map,this.listeners={},this.onOpen=e=>{this.newBlockSubscribes.length>0&&this.sendSubscribeBlockRpc();for(let[e,t]of this.txSubscribes)this.sendSubscribeTxRpc(e,t.params);for(let[e,t]of this.pendingQueries)this.sendQueryRpc(e,t.method,t.params);for(let t of this.listeners.open??[])t(e)},this.onMessage=e=>{for(let t of this.listeners.message??[])t(e);if(e.data)try{let t=JSON.parse(e.data);if(t?.id&&this.pendingQueries.has(t.id)&&(t.error?this.pendingQueries.get(t.id).rejector(Error(t.error.data||t.error.message)):t.result?.tx_result?this.pendingQueries.get(t.id).resolver(t.result.tx_result):this.pendingQueries.get(t.id).resolver(t.result),this.pendingQueries.delete(t.id)),t?.result?.data?.type===`tendermint/event/NewBlock`)for(let e of this.newBlockSubscribes)e.handler(t.result.data.value);t?.result?.data?.type===`tendermint/event/Tx`&&t?.id&&this.txSubscribes.has(t.id)&&(t.error?this.txSubscribes.get(t.id).rejector(Error(t.error.data||t.error.message)):this.txSubscribes.get(t.id).resolver(t.result.data.value.TxResult.result),this.txSubscribes.delete(t.id))}catch(e){console.log(`Tendermint websocket jsonrpc response is not JSON: ${e.message||e.toString()}`)}},this.onClose=e=>{for(let t of this.listeners.close??[])t(e)},this.ws=this.options.wsObject?new this.options.wsObject(this.getWsEndpoint()):new WebSocket(this.getWsEndpoint()),this.ws.onopen=this.onOpen,this.ws.onmessage=this.onMessage,this.ws.onclose=this.onClose}getWsEndpoint(){let e=this.url;if(e.startsWith(`http`)&&(e=e.replace(`http`,`ws`)),!e.endsWith(this.wsEndpoint)){let t=this.wsEndpoint.startsWith(`/`)?this.wsEndpoint:`/`+this.wsEndpoint;e=e.endsWith(`/`)?e+t.slice(1):e+t}return e}close(){this.ws.close()}get readyState(){switch(this.ws.readyState){case 0:return t.WsReadyState.CONNECTING;case 1:return t.WsReadyState.OPEN;case 2:return t.WsReadyState.CLOSING;case 3:return t.WsReadyState.CLOSED;default:return t.WsReadyState.NONE}}addEventListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}subscribeBlock(e){return this.newBlockSubscribes.push({handler:e}),this.newBlockSubscribes.length===1&&this.sendSubscribeBlockRpc(),()=>{this.newBlockSubscribes=this.newBlockSubscribes.filter(t=>t.handler!==e)}}sendSubscribeBlockRpc(){this.readyState===t.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:`2.0`,method:`subscribe`,params:[`tm.event='NewBlock'`],id:1}))}traceTx(e){return new Promise(t=>{this.queryTx(e).then(n=>{if(e instanceof Uint8Array){t(n);return}if(n?.total_count!==`0`){t(n);return}}).catch(()=>{}),this.subscribeTx(e).then(t)}).then(e=>new Promise(t=>{setTimeout(()=>t(e),100)}))}subscribeTx(e){if(e instanceof Uint8Array){let t=this.createRandomId(),r={query:`tm.event='Tx' AND tx.hash='${n.Buffer.from(e).toString(`hex`).toUpperCase()}'`};return new Promise((e,n)=>{this.txSubscribes.set(t,{params:r,resolver:e,rejector:n}),this.sendSubscribeTxRpc(t,r)})}{let t=this.createRandomId(),n={query:`tm.event='Tx' and `+Object.keys(e).map(t=>({key:t,value:e[t]})).map(e=>`${e.key}=${typeof e.value==`string`?`'${e.value}'`:e.value}`).join(` and `),page:`1`,per_page:`1`,order_by:`desc`};return new Promise((e,r)=>{this.txSubscribes.set(t,{params:n,resolver:e,rejector:r}),this.sendSubscribeTxRpc(t,n)})}}sendSubscribeTxRpc(e,n){this.readyState===t.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:`2.0`,method:`subscribe`,params:n,id:e}))}queryTx(e){if(e instanceof Uint8Array)return this.query(`tx`,{hash:n.Buffer.from(e).toString(`base64`),prove:!1});{let t={query:Object.keys(e).map(t=>({key:t,value:e[t]})).map(e=>`${e.key}=${typeof e.value==`string`?`'${e.value}'`:e.value}`).join(` and `),page:`1`,per_page:`1`,order_by:`desc`};return this.query(`tx_search`,t)}}query(e,t){let n=this.createRandomId();return new Promise((r,i)=>{this.pendingQueries.set(n,{method:e,params:t,resolver:r,rejector:i}),this.sendQueryRpc(n,e,t)})}sendQueryRpc(e,n,r){this.readyState===t.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:`2.0`,method:n,params:r,id:e}))}createRandomId(){return parseInt(Array.from({length:6}).map(()=>Math.floor(Math.random()*100)).join(``))}}})),Na=a(((e,t)=>{t.exports=r;var n=Pa();function r(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=r.zero=new r(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var a=r.zeroHash=`\0\0\0\0\0\0\0\0`;r.fromNumber=function(e){if(e===0)return i;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new r(n,a)},r.from=function(e){if(typeof e==`number`)return r.fromNumber(e);if(n.isString(e)){if(n.Long)e=n.Long.fromString(e);else return r.fromNumber(parseInt(e,10))}return e.low||e.high?new r(e.low>>>0,e.high>>>0):i},r.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296},r.prototype.toLong=function(e){return n.Long?new n.Long(this.lo|0,this.hi|0,!!e):{low:this.lo|0,high:this.hi|0,unsigned:!!e}};var o=String.prototype.charCodeAt;r.fromHash=function(e){return e===a?i:new r((o.call(e,0)|o.call(e,1)<<8|o.call(e,2)<<16|o.call(e,3)<<24)>>>0,(o.call(e,4)|o.call(e,5)<<8|o.call(e,6)<<16|o.call(e,7)<<24)>>>0)},r.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},r.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},r.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},r.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}})),Pa=a((e=>{B();var t=e;t.asPromise=Mt(),t.base64=Nt(),t.EventEmitter=Pt(),t.float=Ft(),t.inquire=It(),t.utf8=Lt(),t.pool=Rt(),t.LongBits=Na(),t.isNode=!!(V!==void 0&&V&&V.process&&V.process.versions&&V.process.versions.node),t.global=t.isNode&&V||typeof window<`u`&&window||typeof self<`u`&&self||e,t.emptyArray=Object.freeze?Object.freeze([]):[],t.emptyObject=Object.freeze?Object.freeze({}):{},t.isInteger=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e},t.isString=function(e){return typeof e==`string`||e instanceof String},t.isObject=function(e){return e&&typeof e==`object`},t.isset=t.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!=`object`||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1},t.Buffer=(function(){try{var e=t.inquire(`buffer`).Buffer;return e.prototype.utf8Write?e:null}catch{return null}})(),t._Buffer_from=null,t._Buffer_allocUnsafe=null,t.newBuffer=function(e){return typeof e==`number`?t.Buffer?t._Buffer_allocUnsafe(e):new t.Array(e):t.Buffer?t._Buffer_from(e):typeof Uint8Array>`u`?e:new Uint8Array(e)},t.Array=typeof Uint8Array<`u`?Uint8Array:Array,t.Long=t.global.dcodeIO&&t.global.dcodeIO.Long||t.global.Long||t.inquire(`long`),t.key2Re=/^true|false|0|1$/,t.key32Re=/^-?(?:0|[1-9][0-9]*)$/,t.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,t.longToHash=function(e){return e?t.LongBits.from(e).toHash():t.LongBits.zeroHash},t.longFromHash=function(e,n){var r=t.LongBits.fromHash(e);return t.Long?t.Long.fromBits(r.lo,r.hi,n):r.toNumber(!!n)};function n(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;++i)(e[r[i]]===void 0||!n)&&(e[r[i]]=t[r[i]]);return e}t.merge=n,t.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)};function r(e){function t(e,r){if(!(this instanceof t))return new t(e,r);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:Error().stack||``}),r&&n(this,r)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+`: `+this.message},t}t.newError=r,t.ProtocolError=r(`ProtocolError`),t.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(t[e[n]]===1&&this[e[n]]!==void 0&&this[e[n]]!==null)return e[n]}},t.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},t.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},t._configure=function(){var e=t.Buffer;if(!e){t._Buffer_from=t._Buffer_allocUnsafe=null;return}t._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},t._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}}})),Fa=a(((e,t)=>{t.exports=u;var n=Pa(),r,i=n.LongBits,a=n.base64,o=n.utf8;function s(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function c(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function u(){this.len=0,this.head=new s(c,0,0),this.tail=this.head,this.states=null}var d=function(){return n.Buffer?function(){return(u.create=function(){return new r})()}:function(){return new u}};u.create=d(),u.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(u.alloc=n.pool(u.alloc,n.Array.prototype.subarray)),u.prototype._push=function(e,t,n){return this.tail=this.tail.next=new s(e,t,n),this.len+=t,this};function f(e,t,n){t[n]=e&255}function p(e,t,n){for(;e>127;)t[n++]=e&127|128,e>>>=7;t[n]=e}function m(e,t){this.len=e,this.next=void 0,this.val=t}m.prototype=Object.create(s.prototype),m.prototype.fn=p,u.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new m((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},u.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},u.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function h(e,t,n){for(;e.hi;)t[n++]=e.lo&127|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=e.lo&127|128,e.lo>>>=7;t[n++]=e.lo}u.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},u.prototype.int64=u.prototype.uint64,u.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},u.prototype.bool=function(e){return this._push(f,1,+!!e)};function g(e,t,n){t[n]=e&255,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}u.prototype.fixed32=function(e){return this._push(g,4,e>>>0)},u.prototype.sfixed32=u.prototype.fixed32,u.prototype.fixed64=function(e){var t=i.from(e);return this._push(g,4,t.lo)._push(g,4,t.hi)},u.prototype.sfixed64=u.prototype.fixed64,u.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},u.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var _=n.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};u.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(f,1,0);if(n.isString(e)){var r=u.alloc(t=a.length(e));a.decode(e,r,0),e=r}return this.uint32(t)._push(_,t,e)},u.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(o.write,t,e):this._push(f,1,0)},u.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new s(c,0,0),this.len=0,this},u.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 s(c,0,0),this.len=0),this},u.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},u.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},u._configure=function(e){r=e,u.create=d(),r._configure()}})),Ia=a(((e,t)=>{t.exports=i;var n=Fa();(i.prototype=Object.create(n.prototype)).constructor=i;var r=Pa();function i(){n.call(this)}i._configure=function(){i.alloc=r._Buffer_allocUnsafe,i.writeBytesBuffer=r.Buffer&&r.Buffer.prototype instanceof Uint8Array&&r.Buffer.prototype.set.name===`set`?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},i.prototype.bytes=function(e){r.isString(e)&&(e=r._Buffer_from(e,`base64`));var t=e.length>>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this};function a(e,t,n){e.length<40?r.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i.prototype.string=function(e){var t=r.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},i._configure()})),La=a(((e,t)=>{t.exports=s;var n=Pa(),r,i=n.LongBits,a=n.utf8;function o(e,t){return RangeError(`index out of range: `+e.pos+` + `+(t||1)+` > `+e.len)}function s(e){this.buf=e,this.pos=0,this.len=e.length}var c=typeof Uint8Array<`u`?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new s(e);throw Error(`illegal buffer`)}:function(e){if(Array.isArray(e))return new s(e);throw Error(`illegal buffer`)},l=function(){return n.Buffer?function(e){return(s.create=function(e){return n.Buffer.isBuffer(e)?new r(e):c(e)})(e)}:c};s.create=l(),s.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,s.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}})(),s.prototype.int32=function(){return this.uint32()|0},s.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function u(){var e=new i(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(this.buf[this.pos]&127)<<28)>>>0,e.hi=(e.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(this.buf[this.pos]&127)<<t*7)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(this.buf[this.pos++]&127)<<t*7)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw o(this);if(e.hi=(e.hi|(this.buf[this.pos]&127)<<t*7+3)>>>0,this.buf[this.pos++]<128)return e}throw Error(`invalid varint encoding`)}s.prototype.bool=function(){return this.uint32()!==0};function d(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}s.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)},s.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return d(this.buf,this.pos+=4)|0};function f(){if(this.pos+8>this.len)throw o(this,8);return new i(d(this.buf,this.pos+=4),d(this.buf,this.pos+=4))}s.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},s.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},s.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},s.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},s.prototype.skip=function(e){if(typeof e==`number`){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},s.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(e=this.uint32()&7)!=4;)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(`invalid wire type `+e+` at offset `+this.pos)}return this},s._configure=function(e){r=e,s.create=l(),r._configure();var t=n.Long?`toLong`:`toNumber`;n.merge(s.prototype,{int64:function(){return u.call(this)[t](!1)},uint64:function(){return u.call(this)[t](!0)},sint64:function(){return u.call(this).zzDecode()[t](!1)},fixed64:function(){return f.call(this)[t](!0)},sfixed64:function(){return f.call(this)[t](!1)}})}})),Ra=a(((e,t)=>{t.exports=i;var n=La();(i.prototype=Object.create(n.prototype)).constructor=i;var r=Pa();function i(e){n.call(this,e)}i._configure=function(){r.Buffer&&(i.prototype._slice=r.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString(`utf-8`,this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()})),za=a(((e,t)=>{t.exports=r;var n=Pa();(r.prototype=Object.create(n.EventEmitter.prototype)).constructor=r;function r(e,t,r){if(typeof e!=`function`)throw TypeError(`rpcImpl must be a function`);n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!r}r.prototype.rpcCall=function e(t,r,i,a,o){if(!a)throw TypeError(`request must be specified`);var s=this;if(!o)return n.asPromise(e,s,t,r,i,a);if(!s.rpcImpl){setTimeout(function(){o(Error(`already ended`))},0);return}try{return s.rpcImpl(t,r[s.requestDelimited?`encodeDelimited`:`encode`](a).finish(),function(e,n){if(e)return s.emit(`error`,e,t),o(e);if(n===null){s.end(!0);return}if(!(n instanceof i))try{n=i[s.responseDelimited?`decodeDelimited`:`decode`](n)}catch(e){return s.emit(`error`,e,t),o(e)}return s.emit(`data`,n,t),o(null,n)})}catch(e){s.emit(`error`,e,t),setTimeout(function(){o(e)},0);return}},r.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit(`end`).off()),this}})),Ba=a((e=>{var t=e;t.Service=za()})),Va=a(((e,t)=>{t.exports={}})),Ha=a((e=>{var t=e;t.build=`minimal`,t.Writer=Fa(),t.BufferWriter=Ia(),t.Reader=La(),t.BufferReader=Ra(),t.util=Pa(),t.rpc=Ba(),t.roots=Va(),t.configure=n;function n(){t.util._configure(),t.Writer._configure(t.BufferWriter),t.Reader._configure(t.BufferReader)}n()})),J=a(((e,t)=>{t.exports=Ha()})),Ua=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgInstallBundleResponse=e.MsgInstallBundle=e.MsgProvisionResponse=e.MsgProvision=e.MsgWalletSpendActionResponse=e.MsgWalletSpendAction=e.MsgWalletActionResponse=e.MsgWalletAction=e.MsgDeliverInboundResponse=e.MsgDeliverInbound=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`agoric.swingset`;function i(){return{messages:[],nums:[],ack:`0`,submitter:new Uint8Array}}e.MsgDeliverInbound={encode(e,t=r.default.Writer.create()){for(let n of e.messages)t.uint32(10).string(n);t.uint32(18).fork();for(let n of e.nums)t.uint64(n);return t.ldelim(),e.ack!==`0`&&t.uint32(24).uint64(e.ack),e.submitter.length!==0&&t.uint32(34).bytes(e.submitter),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=i();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.messages.push(n.string());break;case 2:if((e&7)==2){let e=n.uint32()+n.pos;for(;n.pos<e;)o.nums.push(y(n.uint64()))}else o.nums.push(y(n.uint64()));break;case 3:o.ack=y(n.uint64());break;case 4:o.submitter=n.bytes();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{messages:Array.isArray(e?.messages)?e.messages.map(e=>String(e)):[],nums:Array.isArray(e?.nums)?e.nums.map(e=>String(e)):[],ack:b(e.ack)?String(e.ack):`0`,submitter:b(e.submitter)?g(e.submitter):new Uint8Array}},toJSON(e){let t={};return t.messages=e.messages?e.messages.map(e=>e):[],t.nums=e.nums?e.nums.map(e=>e):[],e.ack!==void 0&&(t.ack=e.ack),e.submitter!==void 0&&(t.submitter=v(e.submitter===void 0?new Uint8Array:e.submitter)),t},fromPartial(e){let t=i();return t.messages=e.messages?.map(e=>e)||[],t.nums=e.nums?.map(e=>e)||[],t.ack=e.ack??`0`,t.submitter=e.submitter??new Uint8Array,t}};function a(){return{}}e.MsgDeliverInboundResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=a();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return o},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return a()}};function o(){return{owner:new Uint8Array,action:``}}e.MsgWalletAction={encode(e,t=r.default.Writer.create()){return e.owner.length!==0&&t.uint32(10).bytes(e.owner),e.action!==``&&t.uint32(18).string(e.action),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=o();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.owner=n.bytes();break;case 2:a.action=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{owner:b(e.owner)?g(e.owner):new Uint8Array,action:b(e.action)?String(e.action):``}},toJSON(e){let t={};return e.owner!==void 0&&(t.owner=v(e.owner===void 0?new Uint8Array:e.owner)),e.action!==void 0&&(t.action=e.action),t},fromPartial(e){let t=o();return t.owner=e.owner??new Uint8Array,t.action=e.action??``,t}};function s(){return{}}e.MsgWalletActionResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return s()}};function c(){return{owner:new Uint8Array,spendAction:``}}e.MsgWalletSpendAction={encode(e,t=r.default.Writer.create()){return e.owner.length!==0&&t.uint32(10).bytes(e.owner),e.spendAction!==``&&t.uint32(18).string(e.spendAction),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.owner=n.bytes();break;case 2:a.spendAction=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{owner:b(e.owner)?g(e.owner):new Uint8Array,spendAction:b(e.spendAction)?String(e.spendAction):``}},toJSON(e){let t={};return e.owner!==void 0&&(t.owner=v(e.owner===void 0?new Uint8Array:e.owner)),e.spendAction!==void 0&&(t.spendAction=e.spendAction),t},fromPartial(e){let t=c();return t.owner=e.owner??new Uint8Array,t.spendAction=e.spendAction??``,t}};function l(){return{}}e.MsgWalletSpendActionResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return l()}};function u(){return{nickname:``,address:new Uint8Array,powerFlags:[],submitter:new Uint8Array}}e.MsgProvision={encode(e,t=r.default.Writer.create()){e.nickname!==``&&t.uint32(10).string(e.nickname),e.address.length!==0&&t.uint32(18).bytes(e.address);for(let n of e.powerFlags)t.uint32(26).string(n);return e.submitter.length!==0&&t.uint32(34).bytes(e.submitter),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.nickname=n.string();break;case 2:a.address=n.bytes();break;case 3:a.powerFlags.push(n.string());break;case 4:a.submitter=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{nickname:b(e.nickname)?String(e.nickname):``,address:b(e.address)?g(e.address):new Uint8Array,powerFlags:Array.isArray(e?.powerFlags)?e.powerFlags.map(e=>String(e)):[],submitter:b(e.submitter)?g(e.submitter):new Uint8Array}},toJSON(e){let t={};return e.nickname!==void 0&&(t.nickname=e.nickname),e.address!==void 0&&(t.address=v(e.address===void 0?new Uint8Array:e.address)),t.powerFlags=e.powerFlags?e.powerFlags.map(e=>e):[],e.submitter!==void 0&&(t.submitter=v(e.submitter===void 0?new Uint8Array:e.submitter)),t},fromPartial(e){let t=u();return t.nickname=e.nickname??``,t.address=e.address??new Uint8Array,t.powerFlags=e.powerFlags?.map(e=>e)||[],t.submitter=e.submitter??new Uint8Array,t}};function d(){return{}}e.MsgProvisionResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=d();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return d()}};function f(){return{bundle:``,submitter:new Uint8Array,compressedBundle:new Uint8Array,uncompressedSize:`0`}}e.MsgInstallBundle={encode(e,t=r.default.Writer.create()){return e.bundle!==``&&t.uint32(10).string(e.bundle),e.submitter.length!==0&&t.uint32(18).bytes(e.submitter),e.compressedBundle.length!==0&&t.uint32(26).bytes(e.compressedBundle),e.uncompressedSize!==`0`&&t.uint32(32).int64(e.uncompressedSize),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.bundle=n.string();break;case 2:a.submitter=n.bytes();break;case 3:a.compressedBundle=n.bytes();break;case 4:a.uncompressedSize=y(n.int64());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{bundle:b(e.bundle)?String(e.bundle):``,submitter:b(e.submitter)?g(e.submitter):new Uint8Array,compressedBundle:b(e.compressedBundle)?g(e.compressedBundle):new Uint8Array,uncompressedSize:b(e.uncompressedSize)?String(e.uncompressedSize):`0`}},toJSON(e){let t={};return e.bundle!==void 0&&(t.bundle=e.bundle),e.submitter!==void 0&&(t.submitter=v(e.submitter===void 0?new Uint8Array:e.submitter)),e.compressedBundle!==void 0&&(t.compressedBundle=v(e.compressedBundle===void 0?new Uint8Array:e.compressedBundle)),e.uncompressedSize!==void 0&&(t.uncompressedSize=e.uncompressedSize),t},fromPartial(e){let t=f();return t.bundle=e.bundle??``,t.submitter=e.submitter??new Uint8Array,t.compressedBundle=e.compressedBundle??new Uint8Array,t.uncompressedSize=e.uncompressedSize??`0`,t}};function p(){return{}}e.MsgInstallBundleResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=p();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return p()}};var m=(()=>{if(m!==void 0)return m;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),h=m.atob||(e=>m.Buffer.from(e,`base64`).toString(`binary`));function g(e){let t=h(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var _=m.btoa||(e=>m.Buffer.from(e,`binary`).toString(`base64`));function v(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return _(t.join(``))}function y(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function b(e){return e!=null}})),Wa=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.DecProto=e.IntProto=e.DecCoin=e.Coin=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`cosmos.base.v1beta1`;function i(){return{denom:``,amount:``}}e.Coin={encode(e,t=r.default.Writer.create()){return e.denom!==``&&t.uint32(10).string(e.denom),e.amount!==``&&t.uint32(18).string(e.amount),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=i();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.denom=n.string();break;case 2:o.amount=n.string();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{denom:c(e.denom)?String(e.denom):``,amount:c(e.amount)?String(e.amount):``}},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.amount!==void 0&&(t.amount=e.amount),t},fromPartial(e){let t=i();return t.denom=e.denom??``,t.amount=e.amount??``,t}};function a(){return{denom:``,amount:``}}e.DecCoin={encode(e,t=r.default.Writer.create()){return e.denom!==``&&t.uint32(10).string(e.denom),e.amount!==``&&t.uint32(18).string(e.amount),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=a();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.denom=n.string();break;case 2:o.amount=n.string();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{denom:c(e.denom)?String(e.denom):``,amount:c(e.amount)?String(e.amount):``}},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.amount!==void 0&&(t.amount=e.amount),t},fromPartial(e){let t=a();return t.denom=e.denom??``,t.amount=e.amount??``,t}};function o(){return{int:``}}e.IntProto={encode(e,t=r.default.Writer.create()){return e.int!==``&&t.uint32(10).string(e.int),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=o();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.int=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{int:c(e.int)?String(e.int):``}},toJSON(e){let t={};return e.int!==void 0&&(t.int=e.int),t},fromPartial(e){let t=o();return t.int=e.int??``,t}};function s(){return{dec:``}}e.DecProto={encode(e,t=r.default.Writer.create()){return e.dec!==``&&t.uint32(10).string(e.dec),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.dec=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{dec:c(e.dec)?String(e.dec):``}},toJSON(e){let t={};return e.dec!==void 0&&(t.dec=e.dec),t},fromPartial(e){let t=s();return t.dec=e.dec??``,t}},r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function c(e){return e!=null}})),Ga=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=e.DenomUnit=e.Supply=e.Output=e.Input=e.SendEnabled=e.Params=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=Wa();e.protobufPackage=`cosmos.bank.v1beta1`;function a(){return{sendEnabled:[],defaultSendEnabled:!1}}e.Params={encode(t,n=r.default.Writer.create()){for(let r of t.sendEnabled)e.SendEnabled.encode(r,n.uint32(10).fork()).ldelim();return t.defaultSendEnabled===!0&&n.uint32(16).bool(t.defaultSendEnabled),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?i.len:i.pos+n,s=a();for(;i.pos<o;){let t=i.uint32();switch(t>>>3){case 1:s.sendEnabled.push(e.SendEnabled.decode(i,i.uint32()));break;case 2:s.defaultSendEnabled=i.bool();break;default:i.skipType(t&7)}}return s},fromJSON(t){return{sendEnabled:Array.isArray(t?.sendEnabled)?t.sendEnabled.map(t=>e.SendEnabled.fromJSON(t)):[],defaultSendEnabled:f(t.defaultSendEnabled)?!!t.defaultSendEnabled:!1}},toJSON(t){let n={};return n.sendEnabled=t.sendEnabled?t.sendEnabled.map(t=>t?e.SendEnabled.toJSON(t):void 0):[],t.defaultSendEnabled!==void 0&&(n.defaultSendEnabled=t.defaultSendEnabled),n},fromPartial(t){let n=a();return n.sendEnabled=t.sendEnabled?.map(t=>e.SendEnabled.fromPartial(t))||[],n.defaultSendEnabled=t.defaultSendEnabled??!1,n}};function o(){return{denom:``,enabled:!1}}e.SendEnabled={encode(e,t=r.default.Writer.create()){return e.denom!==``&&t.uint32(10).string(e.denom),e.enabled===!0&&t.uint32(16).bool(e.enabled),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=o();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.denom=n.string();break;case 2:a.enabled=n.bool();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{denom:f(e.denom)?String(e.denom):``,enabled:f(e.enabled)?!!e.enabled:!1}},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.enabled!==void 0&&(t.enabled=e.enabled),t},fromPartial(e){let t=o();return t.denom=e.denom??``,t.enabled=e.enabled??!1,t}};function s(){return{address:``,coins:[]}}e.Input={encode(e,t=r.default.Writer.create()){e.address!==``&&t.uint32(10).string(e.address);for(let n of e.coins)i.Coin.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=s();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.address=n.string();break;case 2:o.coins.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{address:f(e.address)?String(e.address):``,coins:Array.isArray(e?.coins)?e.coins.map(e=>i.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),t.coins=e.coins?e.coins.map(e=>e?i.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=s();return t.address=e.address??``,t.coins=e.coins?.map(e=>i.Coin.fromPartial(e))||[],t}};function c(){return{address:``,coins:[]}}e.Output={encode(e,t=r.default.Writer.create()){e.address!==``&&t.uint32(10).string(e.address);for(let n of e.coins)i.Coin.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=c();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.address=n.string();break;case 2:o.coins.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{address:f(e.address)?String(e.address):``,coins:Array.isArray(e?.coins)?e.coins.map(e=>i.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),t.coins=e.coins?e.coins.map(e=>e?i.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=c();return t.address=e.address??``,t.coins=e.coins?.map(e=>i.Coin.fromPartial(e))||[],t}};function l(){return{total:[]}}e.Supply={encode(e,t=r.default.Writer.create()){for(let n of e.total)i.Coin.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=l();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.total.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{total:Array.isArray(e?.total)?e.total.map(e=>i.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return t.total=e.total?e.total.map(e=>e?i.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=l();return t.total=e.total?.map(e=>i.Coin.fromPartial(e))||[],t}};function u(){return{denom:``,exponent:0,aliases:[]}}e.DenomUnit={encode(e,t=r.default.Writer.create()){e.denom!==``&&t.uint32(10).string(e.denom),e.exponent!==0&&t.uint32(16).uint32(e.exponent);for(let n of e.aliases)t.uint32(26).string(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.denom=n.string();break;case 2:a.exponent=n.uint32();break;case 3:a.aliases.push(n.string());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{denom:f(e.denom)?String(e.denom):``,exponent:f(e.exponent)?Number(e.exponent):0,aliases:Array.isArray(e?.aliases)?e.aliases.map(e=>String(e)):[]}},toJSON(e){let t={};return e.denom!==void 0&&(t.denom=e.denom),e.exponent!==void 0&&(t.exponent=Math.round(e.exponent)),t.aliases=e.aliases?e.aliases.map(e=>e):[],t},fromPartial(e){let t=u();return t.denom=e.denom??``,t.exponent=e.exponent??0,t.aliases=e.aliases?.map(e=>e)||[],t}};function d(){return{description:``,denomUnits:[],base:``,display:``,name:``,symbol:``}}e.Metadata={encode(t,n=r.default.Writer.create()){t.description!==``&&n.uint32(10).string(t.description);for(let r of t.denomUnits)e.DenomUnit.encode(r,n.uint32(18).fork()).ldelim();return t.base!==``&&n.uint32(26).string(t.base),t.display!==``&&n.uint32(34).string(t.display),t.name!==``&&n.uint32(42).string(t.name),t.symbol!==``&&n.uint32(50).string(t.symbol),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=d();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.description=i.string();break;case 2:o.denomUnits.push(e.DenomUnit.decode(i,i.uint32()));break;case 3:o.base=i.string();break;case 4:o.display=i.string();break;case 5:o.name=i.string();break;case 6:o.symbol=i.string();break;default:i.skipType(t&7)}}return o},fromJSON(t){return{description:f(t.description)?String(t.description):``,denomUnits:Array.isArray(t?.denomUnits)?t.denomUnits.map(t=>e.DenomUnit.fromJSON(t)):[],base:f(t.base)?String(t.base):``,display:f(t.display)?String(t.display):``,name:f(t.name)?String(t.name):``,symbol:f(t.symbol)?String(t.symbol):``}},toJSON(t){let n={};return t.description!==void 0&&(n.description=t.description),n.denomUnits=t.denomUnits?t.denomUnits.map(t=>t?e.DenomUnit.toJSON(t):void 0):[],t.base!==void 0&&(n.base=t.base),t.display!==void 0&&(n.display=t.display),t.name!==void 0&&(n.name=t.name),t.symbol!==void 0&&(n.symbol=t.symbol),n},fromPartial(t){let n=d();return n.description=t.description??``,n.denomUnits=t.denomUnits?.map(t=>e.DenomUnit.fromPartial(t))||[],n.base=t.base??``,n.display=t.display??``,n.name=t.name??``,n.symbol=t.symbol??``,n}},r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function f(e){return e!=null}})),Ka=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgMultiSendResponse=e.MsgMultiSend=e.MsgSendResponse=e.MsgSend=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=Wa(),a=Ga();e.protobufPackage=`cosmos.bank.v1beta1`;function o(){return{fromAddress:``,toAddress:``,amount:[]}}e.MsgSend={encode(e,t=r.default.Writer.create()){e.fromAddress!==``&&t.uint32(10).string(e.fromAddress),e.toAddress!==``&&t.uint32(18).string(e.toAddress);for(let n of e.amount)i.Coin.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,s=o();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:s.fromAddress=n.string();break;case 2:s.toAddress=n.string();break;case 3:s.amount.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return s},fromJSON(e){return{fromAddress:u(e.fromAddress)?String(e.fromAddress):``,toAddress:u(e.toAddress)?String(e.toAddress):``,amount:Array.isArray(e?.amount)?e.amount.map(e=>i.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return e.fromAddress!==void 0&&(t.fromAddress=e.fromAddress),e.toAddress!==void 0&&(t.toAddress=e.toAddress),t.amount=e.amount?e.amount.map(e=>e?i.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=o();return t.fromAddress=e.fromAddress??``,t.toAddress=e.toAddress??``,t.amount=e.amount?.map(e=>i.Coin.fromPartial(e))||[],t}};function s(){return{}}e.MsgSendResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return s()}};function c(){return{inputs:[],outputs:[]}}e.MsgMultiSend={encode(e,t=r.default.Writer.create()){for(let n of e.inputs)a.Input.encode(n,t.uint32(10).fork()).ldelim();for(let n of e.outputs)a.Output.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.inputs.push(a.Input.decode(n,n.uint32()));break;case 2:o.outputs.push(a.Output.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{inputs:Array.isArray(e?.inputs)?e.inputs.map(e=>a.Input.fromJSON(e)):[],outputs:Array.isArray(e?.outputs)?e.outputs.map(e=>a.Output.fromJSON(e)):[]}},toJSON(e){let t={};return t.inputs=e.inputs?e.inputs.map(e=>e?a.Input.toJSON(e):void 0):[],t.outputs=e.outputs?e.outputs.map(e=>e?a.Output.toJSON(e):void 0):[],t},fromPartial(e){let t=c();return t.inputs=e.inputs?.map(e=>a.Input.fromPartial(e))||[],t.outputs=e.outputs?.map(e=>a.Output.fromPartial(e))||[],t}};function l(){return{}}e.MsgMultiSendResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return l()}},r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function u(e){return e!=null}})),qa=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`google.protobuf`;function i(){return{seconds:`0`,nanos:0}}e.Timestamp={encode(e,t=r.default.Writer.create()){return e.seconds!==`0`&&t.uint32(8).int64(e.seconds),e.nanos!==0&&t.uint32(16).int32(e.nanos),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),o=t===void 0?n.len:n.pos+t,s=i();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.seconds=a(n.int64());break;case 2:s.nanos=n.int32();break;default:n.skipType(e&7)}}return s},fromJSON(e){return{seconds:o(e.seconds)?String(e.seconds):`0`,nanos:o(e.nanos)?Number(e.nanos):0}},toJSON(e){let t={};return e.seconds!==void 0&&(t.seconds=e.seconds),e.nanos!==void 0&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){let t=i();return t.seconds=e.seconds??`0`,t.nanos=e.nanos??0,t}};function a(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function o(e){return e!=null}})),Ja=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProofOps=e.ProofOp=e.DominoOp=e.ValueOp=e.Proof=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`tendermint.crypto`;function i(){return{total:`0`,index:`0`,leafHash:new Uint8Array,aunts:[]}}e.Proof={encode(e,t=r.default.Writer.create()){e.total!==`0`&&t.uint32(8).int64(e.total),e.index!==`0`&&t.uint32(16).int64(e.index),e.leafHash.length!==0&&t.uint32(26).bytes(e.leafHash);for(let n of e.aunts)t.uint32(34).bytes(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=i();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.total=m(n.int64());break;case 2:o.index=m(n.int64());break;case 3:o.leafHash=n.bytes();break;case 4:o.aunts.push(n.bytes());break;default:n.skipType(e&7)}}return o},fromJSON(e){return{total:h(e.total)?String(e.total):`0`,index:h(e.index)?String(e.index):`0`,leafHash:h(e.leafHash)?d(e.leafHash):new Uint8Array,aunts:Array.isArray(e?.aunts)?e.aunts.map(e=>d(e)):[]}},toJSON(e){let t={};return e.total!==void 0&&(t.total=e.total),e.index!==void 0&&(t.index=e.index),e.leafHash!==void 0&&(t.leafHash=p(e.leafHash===void 0?new Uint8Array:e.leafHash)),t.aunts=e.aunts?e.aunts.map(e=>p(e===void 0?new Uint8Array:e)):[],t},fromPartial(e){let t=i();return t.total=e.total??`0`,t.index=e.index??`0`,t.leafHash=e.leafHash??new Uint8Array,t.aunts=e.aunts?.map(e=>e)||[],t}};function a(){return{key:new Uint8Array,proof:void 0}}e.ValueOp={encode(t,n=r.default.Writer.create()){return t.key.length!==0&&n.uint32(10).bytes(t.key),t.proof!==void 0&&e.Proof.encode(t.proof,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?i.len:i.pos+n,s=a();for(;i.pos<o;){let t=i.uint32();switch(t>>>3){case 1:s.key=i.bytes();break;case 2:s.proof=e.Proof.decode(i,i.uint32());break;default:i.skipType(t&7)}}return s},fromJSON(t){return{key:h(t.key)?d(t.key):new Uint8Array,proof:h(t.proof)?e.Proof.fromJSON(t.proof):void 0}},toJSON(t){let n={};return t.key!==void 0&&(n.key=p(t.key===void 0?new Uint8Array:t.key)),t.proof!==void 0&&(n.proof=t.proof?e.Proof.toJSON(t.proof):void 0),n},fromPartial(t){let n=a();return n.key=t.key??new Uint8Array,n.proof=t.proof!==void 0&&t.proof!==null?e.Proof.fromPartial(t.proof):void 0,n}};function o(){return{key:``,input:``,output:``}}e.DominoOp={encode(e,t=r.default.Writer.create()){return e.key!==``&&t.uint32(10).string(e.key),e.input!==``&&t.uint32(18).string(e.input),e.output!==``&&t.uint32(26).string(e.output),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=o();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.key=n.string();break;case 2:a.input=n.string();break;case 3:a.output=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{key:h(e.key)?String(e.key):``,input:h(e.input)?String(e.input):``,output:h(e.output)?String(e.output):``}},toJSON(e){let t={};return e.key!==void 0&&(t.key=e.key),e.input!==void 0&&(t.input=e.input),e.output!==void 0&&(t.output=e.output),t},fromPartial(e){let t=o();return t.key=e.key??``,t.input=e.input??``,t.output=e.output??``,t}};function s(){return{type:``,key:new Uint8Array,data:new Uint8Array}}e.ProofOp={encode(e,t=r.default.Writer.create()){return e.type!==``&&t.uint32(10).string(e.type),e.key.length!==0&&t.uint32(18).bytes(e.key),e.data.length!==0&&t.uint32(26).bytes(e.data),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.type=n.string();break;case 2:a.key=n.bytes();break;case 3:a.data=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{type:h(e.type)?String(e.type):``,key:h(e.key)?d(e.key):new Uint8Array,data:h(e.data)?d(e.data):new Uint8Array}},toJSON(e){let t={};return e.type!==void 0&&(t.type=e.type),e.key!==void 0&&(t.key=p(e.key===void 0?new Uint8Array:e.key)),e.data!==void 0&&(t.data=p(e.data===void 0?new Uint8Array:e.data)),t},fromPartial(e){let t=s();return t.type=e.type??``,t.key=e.key??new Uint8Array,t.data=e.data??new Uint8Array,t}};function c(){return{ops:[]}}e.ProofOps={encode(t,n=r.default.Writer.create()){for(let r of t.ops)e.ProofOp.encode(r,n.uint32(10).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=c();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.ops.push(e.ProofOp.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{ops:Array.isArray(t?.ops)?t.ops.map(t=>e.ProofOp.fromJSON(t)):[]}},toJSON(t){let n={};return n.ops=t.ops?t.ops.map(t=>t?e.ProofOp.toJSON(t):void 0):[],n},fromPartial(t){let n=c();return n.ops=t.ops?.map(t=>e.ProofOp.fromPartial(t))||[],n}};var l=(()=>{if(l!==void 0)return l;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),u=l.atob||(e=>l.Buffer.from(e,`base64`).toString(`binary`));function d(e){let t=u(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var f=l.btoa||(e=>l.Buffer.from(e,`binary`).toString(`base64`));function p(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return f(t.join(``))}function m(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function h(e){return e!=null}})),Ya=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Consensus=e.App=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`tendermint.version`;function i(){return{protocol:`0`,software:``}}e.App={encode(e,t=r.default.Writer.create()){return e.protocol!==`0`&&t.uint32(8).uint64(e.protocol),e.software!==``&&t.uint32(18).string(e.software),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,s=i();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:s.protocol=o(n.uint64());break;case 2:s.software=n.string();break;default:n.skipType(e&7)}}return s},fromJSON(e){return{protocol:s(e.protocol)?String(e.protocol):`0`,software:s(e.software)?String(e.software):``}},toJSON(e){let t={};return e.protocol!==void 0&&(t.protocol=e.protocol),e.software!==void 0&&(t.software=e.software),t},fromPartial(e){let t=i();return t.protocol=e.protocol??`0`,t.software=e.software??``,t}};function a(){return{block:`0`,app:`0`}}e.Consensus={encode(e,t=r.default.Writer.create()){return e.block!==`0`&&t.uint32(8).uint64(e.block),e.app!==`0`&&t.uint32(16).uint64(e.app),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,s=a();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:s.block=o(n.uint64());break;case 2:s.app=o(n.uint64());break;default:n.skipType(e&7)}}return s},fromJSON(e){return{block:s(e.block)?String(e.block):`0`,app:s(e.app)?String(e.app):`0`}},toJSON(e){let t={};return e.block!==void 0&&(t.block=e.block),e.app!==void 0&&(t.app=e.app),t},fromPartial(e){let t=a();return t.block=e.block??`0`,t.app=e.app??`0`,t}};function o(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function s(e){return e!=null}})),Xa=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.PublicKey=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`tendermint.crypto`;function i(){return{ed25519:void 0,secp256k1:void 0}}e.PublicKey={encode(e,t=r.default.Writer.create()){return e.ed25519!==void 0&&t.uint32(10).bytes(e.ed25519),e.secp256k1!==void 0&&t.uint32(18).bytes(e.secp256k1),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=i();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.ed25519=n.bytes();break;case 2:o.secp256k1=n.bytes();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{ed25519:u(e.ed25519)?s(e.ed25519):void 0,secp256k1:u(e.secp256k1)?s(e.secp256k1):void 0}},toJSON(e){let t={};return e.ed25519!==void 0&&(t.ed25519=e.ed25519===void 0?void 0:l(e.ed25519)),e.secp256k1!==void 0&&(t.secp256k1=e.secp256k1===void 0?void 0:l(e.secp256k1)),t},fromPartial(e){let t=i();return t.ed25519=e.ed25519??void 0,t.secp256k1=e.secp256k1??void 0,t}};var a=(()=>{if(a!==void 0)return a;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),o=a.atob||(e=>a.Buffer.from(e,`base64`).toString(`binary`));function s(e){let t=o(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var c=a.btoa||(e=>a.Buffer.from(e,`binary`).toString(`base64`));function l(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return c(t.join(``))}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function u(e){return e!=null}})),Za=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleValidator=e.Validator=e.ValidatorSet=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=Xa();e.protobufPackage=`tendermint.types`;function a(){return{validators:[],proposer:void 0,totalVotingPower:`0`}}e.ValidatorSet={encode(t,n=r.default.Writer.create()){for(let r of t.validators)e.Validator.encode(r,n.uint32(10).fork()).ldelim();return t.proposer!==void 0&&e.Validator.encode(t.proposer,n.uint32(18).fork()).ldelim(),t.totalVotingPower!==`0`&&n.uint32(24).int64(t.totalVotingPower),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?i.len:i.pos+n,s=a();for(;i.pos<o;){let t=i.uint32();switch(t>>>3){case 1:s.validators.push(e.Validator.decode(i,i.uint32()));break;case 2:s.proposer=e.Validator.decode(i,i.uint32());break;case 3:s.totalVotingPower=p(i.int64());break;default:i.skipType(t&7)}}return s},fromJSON(t){return{validators:Array.isArray(t?.validators)?t.validators.map(t=>e.Validator.fromJSON(t)):[],proposer:m(t.proposer)?e.Validator.fromJSON(t.proposer):void 0,totalVotingPower:m(t.totalVotingPower)?String(t.totalVotingPower):`0`}},toJSON(t){let n={};return n.validators=t.validators?t.validators.map(t=>t?e.Validator.toJSON(t):void 0):[],t.proposer!==void 0&&(n.proposer=t.proposer?e.Validator.toJSON(t.proposer):void 0),t.totalVotingPower!==void 0&&(n.totalVotingPower=t.totalVotingPower),n},fromPartial(t){let n=a();return n.validators=t.validators?.map(t=>e.Validator.fromPartial(t))||[],n.proposer=t.proposer!==void 0&&t.proposer!==null?e.Validator.fromPartial(t.proposer):void 0,n.totalVotingPower=t.totalVotingPower??`0`,n}};function o(){return{address:new Uint8Array,pubKey:void 0,votingPower:`0`,proposerPriority:`0`}}e.Validator={encode(e,t=r.default.Writer.create()){return e.address.length!==0&&t.uint32(10).bytes(e.address),e.pubKey!==void 0&&i.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.votingPower!==`0`&&t.uint32(24).int64(e.votingPower),e.proposerPriority!==`0`&&t.uint32(32).int64(e.proposerPriority),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,s=o();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:s.address=n.bytes();break;case 2:s.pubKey=i.PublicKey.decode(n,n.uint32());break;case 3:s.votingPower=p(n.int64());break;case 4:s.proposerPriority=p(n.int64());break;default:n.skipType(e&7)}}return s},fromJSON(e){return{address:m(e.address)?u(e.address):new Uint8Array,pubKey:m(e.pubKey)?i.PublicKey.fromJSON(e.pubKey):void 0,votingPower:m(e.votingPower)?String(e.votingPower):`0`,proposerPriority:m(e.proposerPriority)?String(e.proposerPriority):`0`}},toJSON(e){let t={};return e.address!==void 0&&(t.address=f(e.address===void 0?new Uint8Array:e.address)),e.pubKey!==void 0&&(t.pubKey=e.pubKey?i.PublicKey.toJSON(e.pubKey):void 0),e.votingPower!==void 0&&(t.votingPower=e.votingPower),e.proposerPriority!==void 0&&(t.proposerPriority=e.proposerPriority),t},fromPartial(e){let t=o();return t.address=e.address??new Uint8Array,t.pubKey=e.pubKey!==void 0&&e.pubKey!==null?i.PublicKey.fromPartial(e.pubKey):void 0,t.votingPower=e.votingPower??`0`,t.proposerPriority=e.proposerPriority??`0`,t}};function s(){return{pubKey:void 0,votingPower:`0`}}e.SimpleValidator={encode(e,t=r.default.Writer.create()){return e.pubKey!==void 0&&i.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.votingPower!==`0`&&t.uint32(16).int64(e.votingPower),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=s();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.pubKey=i.PublicKey.decode(n,n.uint32());break;case 2:o.votingPower=p(n.int64());break;default:n.skipType(e&7)}}return o},fromJSON(e){return{pubKey:m(e.pubKey)?i.PublicKey.fromJSON(e.pubKey):void 0,votingPower:m(e.votingPower)?String(e.votingPower):`0`}},toJSON(e){let t={};return e.pubKey!==void 0&&(t.pubKey=e.pubKey?i.PublicKey.toJSON(e.pubKey):void 0),e.votingPower!==void 0&&(t.votingPower=e.votingPower),t},fromPartial(e){let t=s();return t.pubKey=e.pubKey!==void 0&&e.pubKey!==null?i.PublicKey.fromPartial(e.pubKey):void 0,t.votingPower=e.votingPower??`0`,t}};var c=(()=>{if(c!==void 0)return c;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),l=c.atob||(e=>c.Buffer.from(e,`base64`).toString(`binary`));function u(e){let t=l(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var d=c.btoa||(e=>c.Buffer.from(e,`binary`).toString(`base64`));function f(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return d(t.join(``))}function p(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function m(e){return e!=null}})),Qa=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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.Header=e.BlockID=e.Part=e.PartSetHeader=e.signedMsgTypeToJSON=e.signedMsgTypeFromJSON=e.SignedMsgType=e.blockIDFlagToJSON=e.blockIDFlagFromJSON=e.BlockIDFlag=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=qa(),a=Ja(),o=Ya(),s=Za();e.protobufPackage=`tendermint.types`;var c;(function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]=`BLOCK_ID_FLAG_UNKNOWN`,e[e.BLOCK_ID_FLAG_ABSENT=1]=`BLOCK_ID_FLAG_ABSENT`,e[e.BLOCK_ID_FLAG_COMMIT=2]=`BLOCK_ID_FLAG_COMMIT`,e[e.BLOCK_ID_FLAG_NIL=3]=`BLOCK_ID_FLAG_NIL`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(c=e.BlockIDFlag||={});function l(e){switch(e){case 0:case`BLOCK_ID_FLAG_UNKNOWN`:return c.BLOCK_ID_FLAG_UNKNOWN;case 1:case`BLOCK_ID_FLAG_ABSENT`:return c.BLOCK_ID_FLAG_ABSENT;case 2:case`BLOCK_ID_FLAG_COMMIT`:return c.BLOCK_ID_FLAG_COMMIT;case 3:case`BLOCK_ID_FLAG_NIL`:return c.BLOCK_ID_FLAG_NIL;default:return c.UNRECOGNIZED}}e.blockIDFlagFromJSON=l;function u(e){switch(e){case c.BLOCK_ID_FLAG_UNKNOWN:return`BLOCK_ID_FLAG_UNKNOWN`;case c.BLOCK_ID_FLAG_ABSENT:return`BLOCK_ID_FLAG_ABSENT`;case c.BLOCK_ID_FLAG_COMMIT:return`BLOCK_ID_FLAG_COMMIT`;case c.BLOCK_ID_FLAG_NIL:return`BLOCK_ID_FLAG_NIL`;default:return`UNKNOWN`}}e.blockIDFlagToJSON=u;var d;(function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]=`SIGNED_MSG_TYPE_UNKNOWN`,e[e.SIGNED_MSG_TYPE_PREVOTE=1]=`SIGNED_MSG_TYPE_PREVOTE`,e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]=`SIGNED_MSG_TYPE_PRECOMMIT`,e[e.SIGNED_MSG_TYPE_PROPOSAL=32]=`SIGNED_MSG_TYPE_PROPOSAL`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(d=e.SignedMsgType||={});function f(e){switch(e){case 0:case`SIGNED_MSG_TYPE_UNKNOWN`:return d.SIGNED_MSG_TYPE_UNKNOWN;case 1:case`SIGNED_MSG_TYPE_PREVOTE`:return d.SIGNED_MSG_TYPE_PREVOTE;case 2:case`SIGNED_MSG_TYPE_PRECOMMIT`:return d.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case`SIGNED_MSG_TYPE_PROPOSAL`:return d.SIGNED_MSG_TYPE_PROPOSAL;default:return d.UNRECOGNIZED}}e.signedMsgTypeFromJSON=f;function p(e){switch(e){case d.SIGNED_MSG_TYPE_UNKNOWN:return`SIGNED_MSG_TYPE_UNKNOWN`;case d.SIGNED_MSG_TYPE_PREVOTE:return`SIGNED_MSG_TYPE_PREVOTE`;case d.SIGNED_MSG_TYPE_PRECOMMIT:return`SIGNED_MSG_TYPE_PRECOMMIT`;case d.SIGNED_MSG_TYPE_PROPOSAL:return`SIGNED_MSG_TYPE_PROPOSAL`;default:return`UNKNOWN`}}e.signedMsgTypeToJSON=p;function m(){return{total:0,hash:new Uint8Array}}e.PartSetHeader={encode(e,t=r.default.Writer.create()){return e.total!==0&&t.uint32(8).uint32(e.total),e.hash.length!==0&&t.uint32(18).bytes(e.hash),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=m();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.total=n.uint32();break;case 2:a.hash=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{total:I(e.total)?Number(e.total):0,hash:I(e.hash)?k(e.hash):new Uint8Array}},toJSON(e){let t={};return e.total!==void 0&&(t.total=Math.round(e.total)),e.hash!==void 0&&(t.hash=j(e.hash===void 0?new Uint8Array:e.hash)),t},fromPartial(e){let t=m();return t.total=e.total??0,t.hash=e.hash??new Uint8Array,t}};function h(){return{index:0,bytes:new Uint8Array,proof:void 0}}e.Part={encode(e,t=r.default.Writer.create()){return e.index!==0&&t.uint32(8).uint32(e.index),e.bytes.length!==0&&t.uint32(18).bytes(e.bytes),e.proof!==void 0&&a.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=h();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.index=n.uint32();break;case 2:o.bytes=n.bytes();break;case 3:o.proof=a.Proof.decode(n,n.uint32());break;default:n.skipType(e&7)}}return o},fromJSON(e){return{index:I(e.index)?Number(e.index):0,bytes:I(e.bytes)?k(e.bytes):new Uint8Array,proof:I(e.proof)?a.Proof.fromJSON(e.proof):void 0}},toJSON(e){let t={};return e.index!==void 0&&(t.index=Math.round(e.index)),e.bytes!==void 0&&(t.bytes=j(e.bytes===void 0?new Uint8Array:e.bytes)),e.proof!==void 0&&(t.proof=e.proof?a.Proof.toJSON(e.proof):void 0),t},fromPartial(e){let t=h();return t.index=e.index??0,t.bytes=e.bytes??new Uint8Array,t.proof=e.proof!==void 0&&e.proof!==null?a.Proof.fromPartial(e.proof):void 0,t}};function g(){return{hash:new Uint8Array,partSetHeader:void 0}}e.BlockID={encode(t,n=r.default.Writer.create()){return t.hash.length!==0&&n.uint32(10).bytes(t.hash),t.partSetHeader!==void 0&&e.PartSetHeader.encode(t.partSetHeader,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=g();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.hash=i.bytes();break;case 2:o.partSetHeader=e.PartSetHeader.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{hash:I(t.hash)?k(t.hash):new Uint8Array,partSetHeader:I(t.partSetHeader)?e.PartSetHeader.fromJSON(t.partSetHeader):void 0}},toJSON(t){let n={};return t.hash!==void 0&&(n.hash=j(t.hash===void 0?new Uint8Array:t.hash)),t.partSetHeader!==void 0&&(n.partSetHeader=t.partSetHeader?e.PartSetHeader.toJSON(t.partSetHeader):void 0),n},fromPartial(t){let n=g();return n.hash=t.hash??new Uint8Array,n.partSetHeader=t.partSetHeader!==void 0&&t.partSetHeader!==null?e.PartSetHeader.fromPartial(t.partSetHeader):void 0,n}};function _(){return{version:void 0,chainId:``,height:`0`,time:void 0,lastBlockId:void 0,lastCommitHash:new Uint8Array,dataHash:new Uint8Array,validatorsHash:new Uint8Array,nextValidatorsHash:new Uint8Array,consensusHash:new Uint8Array,appHash:new Uint8Array,lastResultsHash:new Uint8Array,evidenceHash:new Uint8Array,proposerAddress:new Uint8Array}}e.Header={encode(t,n=r.default.Writer.create()){return t.version!==void 0&&o.Consensus.encode(t.version,n.uint32(10).fork()).ldelim(),t.chainId!==``&&n.uint32(18).string(t.chainId),t.height!==`0`&&n.uint32(24).int64(t.height),t.time!==void 0&&i.Timestamp.encode(M(t.time),n.uint32(34).fork()).ldelim(),t.lastBlockId!==void 0&&e.BlockID.encode(t.lastBlockId,n.uint32(42).fork()).ldelim(),t.lastCommitHash.length!==0&&n.uint32(50).bytes(t.lastCommitHash),t.dataHash.length!==0&&n.uint32(58).bytes(t.dataHash),t.validatorsHash.length!==0&&n.uint32(66).bytes(t.validatorsHash),t.nextValidatorsHash.length!==0&&n.uint32(74).bytes(t.nextValidatorsHash),t.consensusHash.length!==0&&n.uint32(82).bytes(t.consensusHash),t.appHash.length!==0&&n.uint32(90).bytes(t.appHash),t.lastResultsHash.length!==0&&n.uint32(98).bytes(t.lastResultsHash),t.evidenceHash.length!==0&&n.uint32(106).bytes(t.evidenceHash),t.proposerAddress.length!==0&&n.uint32(114).bytes(t.proposerAddress),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),s=n===void 0?a.len:a.pos+n,c=_();for(;a.pos<s;){let t=a.uint32();switch(t>>>3){case 1:c.version=o.Consensus.decode(a,a.uint32());break;case 2:c.chainId=a.string();break;case 3:c.height=F(a.int64());break;case 4:c.time=N(i.Timestamp.decode(a,a.uint32()));break;case 5:c.lastBlockId=e.BlockID.decode(a,a.uint32());break;case 6:c.lastCommitHash=a.bytes();break;case 7:c.dataHash=a.bytes();break;case 8:c.validatorsHash=a.bytes();break;case 9:c.nextValidatorsHash=a.bytes();break;case 10:c.consensusHash=a.bytes();break;case 11:c.appHash=a.bytes();break;case 12:c.lastResultsHash=a.bytes();break;case 13:c.evidenceHash=a.bytes();break;case 14:c.proposerAddress=a.bytes();break;default:a.skipType(t&7)}}return c},fromJSON(t){return{version:I(t.version)?o.Consensus.fromJSON(t.version):void 0,chainId:I(t.chainId)?String(t.chainId):``,height:I(t.height)?String(t.height):`0`,time:I(t.time)?P(t.time):void 0,lastBlockId:I(t.lastBlockId)?e.BlockID.fromJSON(t.lastBlockId):void 0,lastCommitHash:I(t.lastCommitHash)?k(t.lastCommitHash):new Uint8Array,dataHash:I(t.dataHash)?k(t.dataHash):new Uint8Array,validatorsHash:I(t.validatorsHash)?k(t.validatorsHash):new Uint8Array,nextValidatorsHash:I(t.nextValidatorsHash)?k(t.nextValidatorsHash):new Uint8Array,consensusHash:I(t.consensusHash)?k(t.consensusHash):new Uint8Array,appHash:I(t.appHash)?k(t.appHash):new Uint8Array,lastResultsHash:I(t.lastResultsHash)?k(t.lastResultsHash):new Uint8Array,evidenceHash:I(t.evidenceHash)?k(t.evidenceHash):new Uint8Array,proposerAddress:I(t.proposerAddress)?k(t.proposerAddress):new Uint8Array}},toJSON(t){let n={};return t.version!==void 0&&(n.version=t.version?o.Consensus.toJSON(t.version):void 0),t.chainId!==void 0&&(n.chainId=t.chainId),t.height!==void 0&&(n.height=t.height),t.time!==void 0&&(n.time=t.time.toISOString()),t.lastBlockId!==void 0&&(n.lastBlockId=t.lastBlockId?e.BlockID.toJSON(t.lastBlockId):void 0),t.lastCommitHash!==void 0&&(n.lastCommitHash=j(t.lastCommitHash===void 0?new Uint8Array:t.lastCommitHash)),t.dataHash!==void 0&&(n.dataHash=j(t.dataHash===void 0?new Uint8Array:t.dataHash)),t.validatorsHash!==void 0&&(n.validatorsHash=j(t.validatorsHash===void 0?new Uint8Array:t.validatorsHash)),t.nextValidatorsHash!==void 0&&(n.nextValidatorsHash=j(t.nextValidatorsHash===void 0?new Uint8Array:t.nextValidatorsHash)),t.consensusHash!==void 0&&(n.consensusHash=j(t.consensusHash===void 0?new Uint8Array:t.consensusHash)),t.appHash!==void 0&&(n.appHash=j(t.appHash===void 0?new Uint8Array:t.appHash)),t.lastResultsHash!==void 0&&(n.lastResultsHash=j(t.lastResultsHash===void 0?new Uint8Array:t.lastResultsHash)),t.evidenceHash!==void 0&&(n.evidenceHash=j(t.evidenceHash===void 0?new Uint8Array:t.evidenceHash)),t.proposerAddress!==void 0&&(n.proposerAddress=j(t.proposerAddress===void 0?new Uint8Array:t.proposerAddress)),n},fromPartial(t){let n=_();return n.version=t.version!==void 0&&t.version!==null?o.Consensus.fromPartial(t.version):void 0,n.chainId=t.chainId??``,n.height=t.height??`0`,n.time=t.time??void 0,n.lastBlockId=t.lastBlockId!==void 0&&t.lastBlockId!==null?e.BlockID.fromPartial(t.lastBlockId):void 0,n.lastCommitHash=t.lastCommitHash??new Uint8Array,n.dataHash=t.dataHash??new Uint8Array,n.validatorsHash=t.validatorsHash??new Uint8Array,n.nextValidatorsHash=t.nextValidatorsHash??new Uint8Array,n.consensusHash=t.consensusHash??new Uint8Array,n.appHash=t.appHash??new Uint8Array,n.lastResultsHash=t.lastResultsHash??new Uint8Array,n.evidenceHash=t.evidenceHash??new Uint8Array,n.proposerAddress=t.proposerAddress??new Uint8Array,n}};function v(){return{txs:[]}}e.Data={encode(e,t=r.default.Writer.create()){for(let n of e.txs)t.uint32(10).bytes(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.txs.push(n.bytes());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{txs:Array.isArray(e?.txs)?e.txs.map(e=>k(e)):[]}},toJSON(e){let t={};return t.txs=e.txs?e.txs.map(e=>j(e===void 0?new Uint8Array:e)):[],t},fromPartial(e){let t=v();return t.txs=e.txs?.map(e=>e)||[],t}};function y(){return{type:0,height:`0`,round:0,blockId:void 0,timestamp:void 0,validatorAddress:new Uint8Array,validatorIndex:0,signature:new Uint8Array}}e.Vote={encode(t,n=r.default.Writer.create()){return t.type!==0&&n.uint32(8).int32(t.type),t.height!==`0`&&n.uint32(16).int64(t.height),t.round!==0&&n.uint32(24).int32(t.round),t.blockId!==void 0&&e.BlockID.encode(t.blockId,n.uint32(34).fork()).ldelim(),t.timestamp!==void 0&&i.Timestamp.encode(M(t.timestamp),n.uint32(42).fork()).ldelim(),t.validatorAddress.length!==0&&n.uint32(50).bytes(t.validatorAddress),t.validatorIndex!==0&&n.uint32(56).int32(t.validatorIndex),t.signature.length!==0&&n.uint32(66).bytes(t.signature),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?a.len:a.pos+n,s=y();for(;a.pos<o;){let t=a.uint32();switch(t>>>3){case 1:s.type=a.int32();break;case 2:s.height=F(a.int64());break;case 3:s.round=a.int32();break;case 4:s.blockId=e.BlockID.decode(a,a.uint32());break;case 5:s.timestamp=N(i.Timestamp.decode(a,a.uint32()));break;case 6:s.validatorAddress=a.bytes();break;case 7:s.validatorIndex=a.int32();break;case 8:s.signature=a.bytes();break;default:a.skipType(t&7)}}return s},fromJSON(t){return{type:I(t.type)?f(t.type):0,height:I(t.height)?String(t.height):`0`,round:I(t.round)?Number(t.round):0,blockId:I(t.blockId)?e.BlockID.fromJSON(t.blockId):void 0,timestamp:I(t.timestamp)?P(t.timestamp):void 0,validatorAddress:I(t.validatorAddress)?k(t.validatorAddress):new Uint8Array,validatorIndex:I(t.validatorIndex)?Number(t.validatorIndex):0,signature:I(t.signature)?k(t.signature):new Uint8Array}},toJSON(t){let n={};return t.type!==void 0&&(n.type=p(t.type)),t.height!==void 0&&(n.height=t.height),t.round!==void 0&&(n.round=Math.round(t.round)),t.blockId!==void 0&&(n.blockId=t.blockId?e.BlockID.toJSON(t.blockId):void 0),t.timestamp!==void 0&&(n.timestamp=t.timestamp.toISOString()),t.validatorAddress!==void 0&&(n.validatorAddress=j(t.validatorAddress===void 0?new Uint8Array:t.validatorAddress)),t.validatorIndex!==void 0&&(n.validatorIndex=Math.round(t.validatorIndex)),t.signature!==void 0&&(n.signature=j(t.signature===void 0?new Uint8Array:t.signature)),n},fromPartial(t){let n=y();return n.type=t.type??0,n.height=t.height??`0`,n.round=t.round??0,n.blockId=t.blockId!==void 0&&t.blockId!==null?e.BlockID.fromPartial(t.blockId):void 0,n.timestamp=t.timestamp??void 0,n.validatorAddress=t.validatorAddress??new Uint8Array,n.validatorIndex=t.validatorIndex??0,n.signature=t.signature??new Uint8Array,n}};function b(){return{height:`0`,round:0,blockId:void 0,signatures:[]}}e.Commit={encode(t,n=r.default.Writer.create()){t.height!==`0`&&n.uint32(8).int64(t.height),t.round!==0&&n.uint32(16).int32(t.round),t.blockId!==void 0&&e.BlockID.encode(t.blockId,n.uint32(26).fork()).ldelim();for(let r of t.signatures)e.CommitSig.encode(r,n.uint32(34).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=b();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.height=F(i.int64());break;case 2:o.round=i.int32();break;case 3:o.blockId=e.BlockID.decode(i,i.uint32());break;case 4:o.signatures.push(e.CommitSig.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{height:I(t.height)?String(t.height):`0`,round:I(t.round)?Number(t.round):0,blockId:I(t.blockId)?e.BlockID.fromJSON(t.blockId):void 0,signatures:Array.isArray(t?.signatures)?t.signatures.map(t=>e.CommitSig.fromJSON(t)):[]}},toJSON(t){let n={};return t.height!==void 0&&(n.height=t.height),t.round!==void 0&&(n.round=Math.round(t.round)),t.blockId!==void 0&&(n.blockId=t.blockId?e.BlockID.toJSON(t.blockId):void 0),n.signatures=t.signatures?t.signatures.map(t=>t?e.CommitSig.toJSON(t):void 0):[],n},fromPartial(t){let n=b();return n.height=t.height??`0`,n.round=t.round??0,n.blockId=t.blockId!==void 0&&t.blockId!==null?e.BlockID.fromPartial(t.blockId):void 0,n.signatures=t.signatures?.map(t=>e.CommitSig.fromPartial(t))||[],n}};function x(){return{blockIdFlag:0,validatorAddress:new Uint8Array,timestamp:void 0,signature:new Uint8Array}}e.CommitSig={encode(e,t=r.default.Writer.create()){return e.blockIdFlag!==0&&t.uint32(8).int32(e.blockIdFlag),e.validatorAddress.length!==0&&t.uint32(18).bytes(e.validatorAddress),e.timestamp!==void 0&&i.Timestamp.encode(M(e.timestamp),t.uint32(26).fork()).ldelim(),e.signature.length!==0&&t.uint32(34).bytes(e.signature),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=x();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.blockIdFlag=n.int32();break;case 2:o.validatorAddress=n.bytes();break;case 3:o.timestamp=N(i.Timestamp.decode(n,n.uint32()));break;case 4:o.signature=n.bytes();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{blockIdFlag:I(e.blockIdFlag)?l(e.blockIdFlag):0,validatorAddress:I(e.validatorAddress)?k(e.validatorAddress):new Uint8Array,timestamp:I(e.timestamp)?P(e.timestamp):void 0,signature:I(e.signature)?k(e.signature):new Uint8Array}},toJSON(e){let t={};return e.blockIdFlag!==void 0&&(t.blockIdFlag=u(e.blockIdFlag)),e.validatorAddress!==void 0&&(t.validatorAddress=j(e.validatorAddress===void 0?new Uint8Array:e.validatorAddress)),e.timestamp!==void 0&&(t.timestamp=e.timestamp.toISOString()),e.signature!==void 0&&(t.signature=j(e.signature===void 0?new Uint8Array:e.signature)),t},fromPartial(e){let t=x();return t.blockIdFlag=e.blockIdFlag??0,t.validatorAddress=e.validatorAddress??new Uint8Array,t.timestamp=e.timestamp??void 0,t.signature=e.signature??new Uint8Array,t}};function S(){return{type:0,height:`0`,round:0,polRound:0,blockId:void 0,timestamp:void 0,signature:new Uint8Array}}e.Proposal={encode(t,n=r.default.Writer.create()){return t.type!==0&&n.uint32(8).int32(t.type),t.height!==`0`&&n.uint32(16).int64(t.height),t.round!==0&&n.uint32(24).int32(t.round),t.polRound!==0&&n.uint32(32).int32(t.polRound),t.blockId!==void 0&&e.BlockID.encode(t.blockId,n.uint32(42).fork()).ldelim(),t.timestamp!==void 0&&i.Timestamp.encode(M(t.timestamp),n.uint32(50).fork()).ldelim(),t.signature.length!==0&&n.uint32(58).bytes(t.signature),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?a.len:a.pos+n,s=S();for(;a.pos<o;){let t=a.uint32();switch(t>>>3){case 1:s.type=a.int32();break;case 2:s.height=F(a.int64());break;case 3:s.round=a.int32();break;case 4:s.polRound=a.int32();break;case 5:s.blockId=e.BlockID.decode(a,a.uint32());break;case 6:s.timestamp=N(i.Timestamp.decode(a,a.uint32()));break;case 7:s.signature=a.bytes();break;default:a.skipType(t&7)}}return s},fromJSON(t){return{type:I(t.type)?f(t.type):0,height:I(t.height)?String(t.height):`0`,round:I(t.round)?Number(t.round):0,polRound:I(t.polRound)?Number(t.polRound):0,blockId:I(t.blockId)?e.BlockID.fromJSON(t.blockId):void 0,timestamp:I(t.timestamp)?P(t.timestamp):void 0,signature:I(t.signature)?k(t.signature):new Uint8Array}},toJSON(t){let n={};return t.type!==void 0&&(n.type=p(t.type)),t.height!==void 0&&(n.height=t.height),t.round!==void 0&&(n.round=Math.round(t.round)),t.polRound!==void 0&&(n.polRound=Math.round(t.polRound)),t.blockId!==void 0&&(n.blockId=t.blockId?e.BlockID.toJSON(t.blockId):void 0),t.timestamp!==void 0&&(n.timestamp=t.timestamp.toISOString()),t.signature!==void 0&&(n.signature=j(t.signature===void 0?new Uint8Array:t.signature)),n},fromPartial(t){let n=S();return n.type=t.type??0,n.height=t.height??`0`,n.round=t.round??0,n.polRound=t.polRound??0,n.blockId=t.blockId!==void 0&&t.blockId!==null?e.BlockID.fromPartial(t.blockId):void 0,n.timestamp=t.timestamp??void 0,n.signature=t.signature??new Uint8Array,n}};function C(){return{header:void 0,commit:void 0}}e.SignedHeader={encode(t,n=r.default.Writer.create()){return t.header!==void 0&&e.Header.encode(t.header,n.uint32(10).fork()).ldelim(),t.commit!==void 0&&e.Commit.encode(t.commit,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=C();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.header=e.Header.decode(i,i.uint32());break;case 2:o.commit=e.Commit.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{header:I(t.header)?e.Header.fromJSON(t.header):void 0,commit:I(t.commit)?e.Commit.fromJSON(t.commit):void 0}},toJSON(t){let n={};return t.header!==void 0&&(n.header=t.header?e.Header.toJSON(t.header):void 0),t.commit!==void 0&&(n.commit=t.commit?e.Commit.toJSON(t.commit):void 0),n},fromPartial(t){let n=C();return n.header=t.header!==void 0&&t.header!==null?e.Header.fromPartial(t.header):void 0,n.commit=t.commit!==void 0&&t.commit!==null?e.Commit.fromPartial(t.commit):void 0,n}};function w(){return{signedHeader:void 0,validatorSet:void 0}}e.LightBlock={encode(t,n=r.default.Writer.create()){return t.signedHeader!==void 0&&e.SignedHeader.encode(t.signedHeader,n.uint32(10).fork()).ldelim(),t.validatorSet!==void 0&&s.ValidatorSet.encode(t.validatorSet,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=w();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.signedHeader=e.SignedHeader.decode(i,i.uint32());break;case 2:o.validatorSet=s.ValidatorSet.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{signedHeader:I(t.signedHeader)?e.SignedHeader.fromJSON(t.signedHeader):void 0,validatorSet:I(t.validatorSet)?s.ValidatorSet.fromJSON(t.validatorSet):void 0}},toJSON(t){let n={};return t.signedHeader!==void 0&&(n.signedHeader=t.signedHeader?e.SignedHeader.toJSON(t.signedHeader):void 0),t.validatorSet!==void 0&&(n.validatorSet=t.validatorSet?s.ValidatorSet.toJSON(t.validatorSet):void 0),n},fromPartial(t){let n=w();return n.signedHeader=t.signedHeader!==void 0&&t.signedHeader!==null?e.SignedHeader.fromPartial(t.signedHeader):void 0,n.validatorSet=t.validatorSet!==void 0&&t.validatorSet!==null?s.ValidatorSet.fromPartial(t.validatorSet):void 0,n}};function T(){return{blockId:void 0,blockSize:`0`,header:void 0,numTxs:`0`}}e.BlockMeta={encode(t,n=r.default.Writer.create()){return t.blockId!==void 0&&e.BlockID.encode(t.blockId,n.uint32(10).fork()).ldelim(),t.blockSize!==`0`&&n.uint32(16).int64(t.blockSize),t.header!==void 0&&e.Header.encode(t.header,n.uint32(26).fork()).ldelim(),t.numTxs!==`0`&&n.uint32(32).int64(t.numTxs),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=T();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.blockId=e.BlockID.decode(i,i.uint32());break;case 2:o.blockSize=F(i.int64());break;case 3:o.header=e.Header.decode(i,i.uint32());break;case 4:o.numTxs=F(i.int64());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{blockId:I(t.blockId)?e.BlockID.fromJSON(t.blockId):void 0,blockSize:I(t.blockSize)?String(t.blockSize):`0`,header:I(t.header)?e.Header.fromJSON(t.header):void 0,numTxs:I(t.numTxs)?String(t.numTxs):`0`}},toJSON(t){let n={};return t.blockId!==void 0&&(n.blockId=t.blockId?e.BlockID.toJSON(t.blockId):void 0),t.blockSize!==void 0&&(n.blockSize=t.blockSize),t.header!==void 0&&(n.header=t.header?e.Header.toJSON(t.header):void 0),t.numTxs!==void 0&&(n.numTxs=t.numTxs),n},fromPartial(t){let n=T();return n.blockId=t.blockId!==void 0&&t.blockId!==null?e.BlockID.fromPartial(t.blockId):void 0,n.blockSize=t.blockSize??`0`,n.header=t.header!==void 0&&t.header!==null?e.Header.fromPartial(t.header):void 0,n.numTxs=t.numTxs??`0`,n}};function E(){return{rootHash:new Uint8Array,data:new Uint8Array,proof:void 0}}e.TxProof={encode(e,t=r.default.Writer.create()){return e.rootHash.length!==0&&t.uint32(10).bytes(e.rootHash),e.data.length!==0&&t.uint32(18).bytes(e.data),e.proof!==void 0&&a.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=E();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.rootHash=n.bytes();break;case 2:o.data=n.bytes();break;case 3:o.proof=a.Proof.decode(n,n.uint32());break;default:n.skipType(e&7)}}return o},fromJSON(e){return{rootHash:I(e.rootHash)?k(e.rootHash):new Uint8Array,data:I(e.data)?k(e.data):new Uint8Array,proof:I(e.proof)?a.Proof.fromJSON(e.proof):void 0}},toJSON(e){let t={};return e.rootHash!==void 0&&(t.rootHash=j(e.rootHash===void 0?new Uint8Array:e.rootHash)),e.data!==void 0&&(t.data=j(e.data===void 0?new Uint8Array:e.data)),e.proof!==void 0&&(t.proof=e.proof?a.Proof.toJSON(e.proof):void 0),t},fromPartial(e){let t=E();return t.rootHash=e.rootHash??new Uint8Array,t.data=e.data??new Uint8Array,t.proof=e.proof!==void 0&&e.proof!==null?a.Proof.fromPartial(e.proof):void 0,t}};var D=(()=>{if(D!==void 0)return D;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),O=D.atob||(e=>D.Buffer.from(e,`base64`).toString(`binary`));function k(e){let t=O(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var A=D.btoa||(e=>D.Buffer.from(e,`binary`).toString(`base64`));function j(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return A(t.join(``))}function M(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function N(e){let t=Number(e.seconds)*1e3;return t+=e.nanos/1e6,new Date(t)}function P(e){return e instanceof Date?e:typeof e==`string`?new Date(e):N(i.Timestamp.fromJSON(e))}function F(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function I(e){return e!=null}})),$a=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Any=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`google.protobuf`;function i(){return{typeUrl:``,value:new Uint8Array}}e.Any={encode(e,t=r.default.Writer.create()){return e.typeUrl!==``&&t.uint32(10).string(e.typeUrl),e.value.length!==0&&t.uint32(18).bytes(e.value),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=i();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.typeUrl=n.string();break;case 2:o.value=n.bytes();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{typeUrl:u(e.typeUrl)?String(e.typeUrl):``,value:u(e.value)?s(e.value):new Uint8Array}},toJSON(e){let t={};return e.typeUrl!==void 0&&(t.typeUrl=e.typeUrl),e.value!==void 0&&(t.value=l(e.value===void 0?new Uint8Array:e.value)),t},fromPartial(e){let t=i();return t.typeUrl=e.typeUrl??``,t.value=e.value??new Uint8Array,t}};var a=(()=>{if(a!==void 0)return a;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),o=a.atob||(e=>a.Buffer.from(e,`base64`).toString(`binary`));function s(e){let t=o(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var c=a.btoa||(e=>a.Buffer.from(e,`binary`).toString(`base64`));function l(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return c(t.join(``))}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function u(e){return e!=null}})),eo=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Duration=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`google.protobuf`;function i(){return{seconds:`0`,nanos:0}}e.Duration={encode(e,t=r.default.Writer.create()){return e.seconds!==`0`&&t.uint32(8).int64(e.seconds),e.nanos!==0&&t.uint32(16).int32(e.nanos),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),o=t===void 0?n.len:n.pos+t,s=i();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.seconds=a(n.int64());break;case 2:s.nanos=n.int32();break;default:n.skipType(e&7)}}return s},fromJSON(e){return{seconds:o(e.seconds)?String(e.seconds):`0`,nanos:o(e.nanos)?Number(e.nanos):0}},toJSON(e){let t={};return e.seconds!==void 0&&(t.seconds=e.seconds),e.nanos!==void 0&&(t.nanos=Math.round(e.nanos)),t},fromPartial(e){let t=i();return t.seconds=e.seconds??`0`,t.nanos=e.nanos??0,t}};function a(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function o(e){return e!=null}})),to=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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;var n=t(K()),r=t(J()),i=qa(),a=Qa(),o=$a(),s=eo(),c=Wa();e.protobufPackage=`cosmos.staking.v1beta1`;var l;(function(e){e[e.BOND_STATUS_UNSPECIFIED=0]=`BOND_STATUS_UNSPECIFIED`,e[e.BOND_STATUS_UNBONDED=1]=`BOND_STATUS_UNBONDED`,e[e.BOND_STATUS_UNBONDING=2]=`BOND_STATUS_UNBONDING`,e[e.BOND_STATUS_BONDED=3]=`BOND_STATUS_BONDED`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(l=e.BondStatus||={});function u(e){switch(e){case 0:case`BOND_STATUS_UNSPECIFIED`:return l.BOND_STATUS_UNSPECIFIED;case 1:case`BOND_STATUS_UNBONDED`:return l.BOND_STATUS_UNBONDED;case 2:case`BOND_STATUS_UNBONDING`:return l.BOND_STATUS_UNBONDING;case 3:case`BOND_STATUS_BONDED`:return l.BOND_STATUS_BONDED;default:return l.UNRECOGNIZED}}e.bondStatusFromJSON=u;function d(e){switch(e){case l.BOND_STATUS_UNSPECIFIED:return`BOND_STATUS_UNSPECIFIED`;case l.BOND_STATUS_UNBONDED:return`BOND_STATUS_UNBONDED`;case l.BOND_STATUS_UNBONDING:return`BOND_STATUS_UNBONDING`;case l.BOND_STATUS_BONDED:return`BOND_STATUS_BONDED`;default:return`UNKNOWN`}}e.bondStatusToJSON=d;function f(){return{header:void 0,valset:[]}}e.HistoricalInfo={encode(t,n=r.default.Writer.create()){t.header!==void 0&&a.Header.encode(t.header,n.uint32(10).fork()).ldelim();for(let r of t.valset)e.Validator.encode(r,n.uint32(18).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?i.len:i.pos+n,s=f();for(;i.pos<o;){let t=i.uint32();switch(t>>>3){case 1:s.header=a.Header.decode(i,i.uint32());break;case 2:s.valset.push(e.Validator.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return s},fromJSON(t){return{header:I(t.header)?a.Header.fromJSON(t.header):void 0,valset:Array.isArray(t?.valset)?t.valset.map(t=>e.Validator.fromJSON(t)):[]}},toJSON(t){let n={};return t.header!==void 0&&(n.header=t.header?a.Header.toJSON(t.header):void 0),n.valset=t.valset?t.valset.map(t=>t?e.Validator.toJSON(t):void 0):[],n},fromPartial(t){let n=f();return n.header=t.header!==void 0&&t.header!==null?a.Header.fromPartial(t.header):void 0,n.valset=t.valset?.map(t=>e.Validator.fromPartial(t))||[],n}};function p(){return{rate:``,maxRate:``,maxChangeRate:``}}e.CommissionRates={encode(e,t=r.default.Writer.create()){return e.rate!==``&&t.uint32(10).string(e.rate),e.maxRate!==``&&t.uint32(18).string(e.maxRate),e.maxChangeRate!==``&&t.uint32(26).string(e.maxChangeRate),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=p();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.rate=n.string();break;case 2:a.maxRate=n.string();break;case 3:a.maxChangeRate=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{rate:I(e.rate)?String(e.rate):``,maxRate:I(e.maxRate)?String(e.maxRate):``,maxChangeRate:I(e.maxChangeRate)?String(e.maxChangeRate):``}},toJSON(e){let t={};return e.rate!==void 0&&(t.rate=e.rate),e.maxRate!==void 0&&(t.maxRate=e.maxRate),e.maxChangeRate!==void 0&&(t.maxChangeRate=e.maxChangeRate),t},fromPartial(e){let t=p();return t.rate=e.rate??``,t.maxRate=e.maxRate??``,t.maxChangeRate=e.maxChangeRate??``,t}};function m(){return{commissionRates:void 0,updateTime:void 0}}e.Commission={encode(t,n=r.default.Writer.create()){return t.commissionRates!==void 0&&e.CommissionRates.encode(t.commissionRates,n.uint32(10).fork()).ldelim(),t.updateTime!==void 0&&i.Timestamp.encode(M(t.updateTime),n.uint32(18).fork()).ldelim(),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?a.len:a.pos+n,s=m();for(;a.pos<o;){let t=a.uint32();switch(t>>>3){case 1:s.commissionRates=e.CommissionRates.decode(a,a.uint32());break;case 2:s.updateTime=N(i.Timestamp.decode(a,a.uint32()));break;default:a.skipType(t&7)}}return s},fromJSON(t){return{commissionRates:I(t.commissionRates)?e.CommissionRates.fromJSON(t.commissionRates):void 0,updateTime:I(t.updateTime)?P(t.updateTime):void 0}},toJSON(t){let n={};return t.commissionRates!==void 0&&(n.commissionRates=t.commissionRates?e.CommissionRates.toJSON(t.commissionRates):void 0),t.updateTime!==void 0&&(n.updateTime=t.updateTime.toISOString()),n},fromPartial(t){let n=m();return n.commissionRates=t.commissionRates!==void 0&&t.commissionRates!==null?e.CommissionRates.fromPartial(t.commissionRates):void 0,n.updateTime=t.updateTime??void 0,n}};function h(){return{moniker:``,identity:``,website:``,securityContact:``,details:``}}e.Description={encode(e,t=r.default.Writer.create()){return e.moniker!==``&&t.uint32(10).string(e.moniker),e.identity!==``&&t.uint32(18).string(e.identity),e.website!==``&&t.uint32(26).string(e.website),e.securityContact!==``&&t.uint32(34).string(e.securityContact),e.details!==``&&t.uint32(42).string(e.details),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=h();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.moniker=n.string();break;case 2:a.identity=n.string();break;case 3:a.website=n.string();break;case 4:a.securityContact=n.string();break;case 5:a.details=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{moniker:I(e.moniker)?String(e.moniker):``,identity:I(e.identity)?String(e.identity):``,website:I(e.website)?String(e.website):``,securityContact:I(e.securityContact)?String(e.securityContact):``,details:I(e.details)?String(e.details):``}},toJSON(e){let t={};return e.moniker!==void 0&&(t.moniker=e.moniker),e.identity!==void 0&&(t.identity=e.identity),e.website!==void 0&&(t.website=e.website),e.securityContact!==void 0&&(t.securityContact=e.securityContact),e.details!==void 0&&(t.details=e.details),t},fromPartial(e){let t=h();return t.moniker=e.moniker??``,t.identity=e.identity??``,t.website=e.website??``,t.securityContact=e.securityContact??``,t.details=e.details??``,t}};function g(){return{operatorAddress:``,consensusPubkey:void 0,jailed:!1,status:0,tokens:``,delegatorShares:``,description:void 0,unbondingHeight:`0`,unbondingTime:void 0,commission:void 0,minSelfDelegation:``}}e.Validator={encode(t,n=r.default.Writer.create()){return t.operatorAddress!==``&&n.uint32(10).string(t.operatorAddress),t.consensusPubkey!==void 0&&o.Any.encode(t.consensusPubkey,n.uint32(18).fork()).ldelim(),t.jailed===!0&&n.uint32(24).bool(t.jailed),t.status!==0&&n.uint32(32).int32(t.status),t.tokens!==``&&n.uint32(42).string(t.tokens),t.delegatorShares!==``&&n.uint32(50).string(t.delegatorShares),t.description!==void 0&&e.Description.encode(t.description,n.uint32(58).fork()).ldelim(),t.unbondingHeight!==`0`&&n.uint32(64).int64(t.unbondingHeight),t.unbondingTime!==void 0&&i.Timestamp.encode(M(t.unbondingTime),n.uint32(74).fork()).ldelim(),t.commission!==void 0&&e.Commission.encode(t.commission,n.uint32(82).fork()).ldelim(),t.minSelfDelegation!==``&&n.uint32(90).string(t.minSelfDelegation),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),s=n===void 0?a.len:a.pos+n,c=g();for(;a.pos<s;){let t=a.uint32();switch(t>>>3){case 1:c.operatorAddress=a.string();break;case 2:c.consensusPubkey=o.Any.decode(a,a.uint32());break;case 3:c.jailed=a.bool();break;case 4:c.status=a.int32();break;case 5:c.tokens=a.string();break;case 6:c.delegatorShares=a.string();break;case 7:c.description=e.Description.decode(a,a.uint32());break;case 8:c.unbondingHeight=F(a.int64());break;case 9:c.unbondingTime=N(i.Timestamp.decode(a,a.uint32()));break;case 10:c.commission=e.Commission.decode(a,a.uint32());break;case 11:c.minSelfDelegation=a.string();break;default:a.skipType(t&7)}}return c},fromJSON(t){return{operatorAddress:I(t.operatorAddress)?String(t.operatorAddress):``,consensusPubkey:I(t.consensusPubkey)?o.Any.fromJSON(t.consensusPubkey):void 0,jailed:I(t.jailed)?!!t.jailed:!1,status:I(t.status)?u(t.status):0,tokens:I(t.tokens)?String(t.tokens):``,delegatorShares:I(t.delegatorShares)?String(t.delegatorShares):``,description:I(t.description)?e.Description.fromJSON(t.description):void 0,unbondingHeight:I(t.unbondingHeight)?String(t.unbondingHeight):`0`,unbondingTime:I(t.unbondingTime)?P(t.unbondingTime):void 0,commission:I(t.commission)?e.Commission.fromJSON(t.commission):void 0,minSelfDelegation:I(t.minSelfDelegation)?String(t.minSelfDelegation):``}},toJSON(t){let n={};return t.operatorAddress!==void 0&&(n.operatorAddress=t.operatorAddress),t.consensusPubkey!==void 0&&(n.consensusPubkey=t.consensusPubkey?o.Any.toJSON(t.consensusPubkey):void 0),t.jailed!==void 0&&(n.jailed=t.jailed),t.status!==void 0&&(n.status=d(t.status)),t.tokens!==void 0&&(n.tokens=t.tokens),t.delegatorShares!==void 0&&(n.delegatorShares=t.delegatorShares),t.description!==void 0&&(n.description=t.description?e.Description.toJSON(t.description):void 0),t.unbondingHeight!==void 0&&(n.unbondingHeight=t.unbondingHeight),t.unbondingTime!==void 0&&(n.unbondingTime=t.unbondingTime.toISOString()),t.commission!==void 0&&(n.commission=t.commission?e.Commission.toJSON(t.commission):void 0),t.minSelfDelegation!==void 0&&(n.minSelfDelegation=t.minSelfDelegation),n},fromPartial(t){let n=g();return n.operatorAddress=t.operatorAddress??``,n.consensusPubkey=t.consensusPubkey!==void 0&&t.consensusPubkey!==null?o.Any.fromPartial(t.consensusPubkey):void 0,n.jailed=t.jailed??!1,n.status=t.status??0,n.tokens=t.tokens??``,n.delegatorShares=t.delegatorShares??``,n.description=t.description!==void 0&&t.description!==null?e.Description.fromPartial(t.description):void 0,n.unbondingHeight=t.unbondingHeight??`0`,n.unbondingTime=t.unbondingTime??void 0,n.commission=t.commission!==void 0&&t.commission!==null?e.Commission.fromPartial(t.commission):void 0,n.minSelfDelegation=t.minSelfDelegation??``,n}};function _(){return{addresses:[]}}e.ValAddresses={encode(e,t=r.default.Writer.create()){for(let n of e.addresses)t.uint32(10).string(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=_();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.addresses.push(n.string());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{addresses:Array.isArray(e?.addresses)?e.addresses.map(e=>String(e)):[]}},toJSON(e){let t={};return t.addresses=e.addresses?e.addresses.map(e=>e):[],t},fromPartial(e){let t=_();return t.addresses=e.addresses?.map(e=>e)||[],t}};function v(){return{delegatorAddress:``,validatorAddress:``}}e.DVPair={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==``&&t.uint32(18).string(e.validatorAddress),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{delegatorAddress:I(e.delegatorAddress)?String(e.delegatorAddress):``,validatorAddress:I(e.validatorAddress)?String(e.validatorAddress):``}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=v();return t.delegatorAddress=e.delegatorAddress??``,t.validatorAddress=e.validatorAddress??``,t}};function y(){return{pairs:[]}}e.DVPairs={encode(t,n=r.default.Writer.create()){for(let r of t.pairs)e.DVPair.encode(r,n.uint32(10).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=y();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.pairs.push(e.DVPair.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{pairs:Array.isArray(t?.pairs)?t.pairs.map(t=>e.DVPair.fromJSON(t)):[]}},toJSON(t){let n={};return n.pairs=t.pairs?t.pairs.map(t=>t?e.DVPair.toJSON(t):void 0):[],n},fromPartial(t){let n=y();return n.pairs=t.pairs?.map(t=>e.DVPair.fromPartial(t))||[],n}};function b(){return{delegatorAddress:``,validatorSrcAddress:``,validatorDstAddress:``}}e.DVVTriplet={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.validatorSrcAddress!==``&&t.uint32(18).string(e.validatorSrcAddress),e.validatorDstAddress!==``&&t.uint32(26).string(e.validatorDstAddress),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=b();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorSrcAddress=n.string();break;case 3:a.validatorDstAddress=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{delegatorAddress:I(e.delegatorAddress)?String(e.delegatorAddress):``,validatorSrcAddress:I(e.validatorSrcAddress)?String(e.validatorSrcAddress):``,validatorDstAddress:I(e.validatorDstAddress)?String(e.validatorDstAddress):``}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorSrcAddress!==void 0&&(t.validatorSrcAddress=e.validatorSrcAddress),e.validatorDstAddress!==void 0&&(t.validatorDstAddress=e.validatorDstAddress),t},fromPartial(e){let t=b();return t.delegatorAddress=e.delegatorAddress??``,t.validatorSrcAddress=e.validatorSrcAddress??``,t.validatorDstAddress=e.validatorDstAddress??``,t}};function x(){return{triplets:[]}}e.DVVTriplets={encode(t,n=r.default.Writer.create()){for(let r of t.triplets)e.DVVTriplet.encode(r,n.uint32(10).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=x();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.triplets.push(e.DVVTriplet.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{triplets:Array.isArray(t?.triplets)?t.triplets.map(t=>e.DVVTriplet.fromJSON(t)):[]}},toJSON(t){let n={};return n.triplets=t.triplets?t.triplets.map(t=>t?e.DVVTriplet.toJSON(t):void 0):[],n},fromPartial(t){let n=x();return n.triplets=t.triplets?.map(t=>e.DVVTriplet.fromPartial(t))||[],n}};function S(){return{delegatorAddress:``,validatorAddress:``,shares:``}}e.Delegation={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==``&&t.uint32(18).string(e.validatorAddress),e.shares!==``&&t.uint32(26).string(e.shares),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=S();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.shares=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{delegatorAddress:I(e.delegatorAddress)?String(e.delegatorAddress):``,validatorAddress:I(e.validatorAddress)?String(e.validatorAddress):``,shares:I(e.shares)?String(e.shares):``}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.shares!==void 0&&(t.shares=e.shares),t},fromPartial(e){let t=S();return t.delegatorAddress=e.delegatorAddress??``,t.validatorAddress=e.validatorAddress??``,t.shares=e.shares??``,t}};function C(){return{delegatorAddress:``,validatorAddress:``,entries:[]}}e.UnbondingDelegation={encode(t,n=r.default.Writer.create()){t.delegatorAddress!==``&&n.uint32(10).string(t.delegatorAddress),t.validatorAddress!==``&&n.uint32(18).string(t.validatorAddress);for(let r of t.entries)e.UnbondingDelegationEntry.encode(r,n.uint32(26).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=C();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.delegatorAddress=i.string();break;case 2:o.validatorAddress=i.string();break;case 3:o.entries.push(e.UnbondingDelegationEntry.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{delegatorAddress:I(t.delegatorAddress)?String(t.delegatorAddress):``,validatorAddress:I(t.validatorAddress)?String(t.validatorAddress):``,entries:Array.isArray(t?.entries)?t.entries.map(t=>e.UnbondingDelegationEntry.fromJSON(t)):[]}},toJSON(t){let n={};return t.delegatorAddress!==void 0&&(n.delegatorAddress=t.delegatorAddress),t.validatorAddress!==void 0&&(n.validatorAddress=t.validatorAddress),n.entries=t.entries?t.entries.map(t=>t?e.UnbondingDelegationEntry.toJSON(t):void 0):[],n},fromPartial(t){let n=C();return n.delegatorAddress=t.delegatorAddress??``,n.validatorAddress=t.validatorAddress??``,n.entries=t.entries?.map(t=>e.UnbondingDelegationEntry.fromPartial(t))||[],n}};function w(){return{creationHeight:`0`,completionTime:void 0,initialBalance:``,balance:``}}e.UnbondingDelegationEntry={encode(e,t=r.default.Writer.create()){return e.creationHeight!==`0`&&t.uint32(8).int64(e.creationHeight),e.completionTime!==void 0&&i.Timestamp.encode(M(e.completionTime),t.uint32(18).fork()).ldelim(),e.initialBalance!==``&&t.uint32(26).string(e.initialBalance),e.balance!==``&&t.uint32(34).string(e.balance),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=w();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.creationHeight=F(n.int64());break;case 2:o.completionTime=N(i.Timestamp.decode(n,n.uint32()));break;case 3:o.initialBalance=n.string();break;case 4:o.balance=n.string();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{creationHeight:I(e.creationHeight)?String(e.creationHeight):`0`,completionTime:I(e.completionTime)?P(e.completionTime):void 0,initialBalance:I(e.initialBalance)?String(e.initialBalance):``,balance:I(e.balance)?String(e.balance):``}},toJSON(e){let t={};return e.creationHeight!==void 0&&(t.creationHeight=e.creationHeight),e.completionTime!==void 0&&(t.completionTime=e.completionTime.toISOString()),e.initialBalance!==void 0&&(t.initialBalance=e.initialBalance),e.balance!==void 0&&(t.balance=e.balance),t},fromPartial(e){let t=w();return t.creationHeight=e.creationHeight??`0`,t.completionTime=e.completionTime??void 0,t.initialBalance=e.initialBalance??``,t.balance=e.balance??``,t}};function T(){return{creationHeight:`0`,completionTime:void 0,initialBalance:``,sharesDst:``}}e.RedelegationEntry={encode(e,t=r.default.Writer.create()){return e.creationHeight!==`0`&&t.uint32(8).int64(e.creationHeight),e.completionTime!==void 0&&i.Timestamp.encode(M(e.completionTime),t.uint32(18).fork()).ldelim(),e.initialBalance!==``&&t.uint32(26).string(e.initialBalance),e.sharesDst!==``&&t.uint32(34).string(e.sharesDst),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=T();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.creationHeight=F(n.int64());break;case 2:o.completionTime=N(i.Timestamp.decode(n,n.uint32()));break;case 3:o.initialBalance=n.string();break;case 4:o.sharesDst=n.string();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{creationHeight:I(e.creationHeight)?String(e.creationHeight):`0`,completionTime:I(e.completionTime)?P(e.completionTime):void 0,initialBalance:I(e.initialBalance)?String(e.initialBalance):``,sharesDst:I(e.sharesDst)?String(e.sharesDst):``}},toJSON(e){let t={};return e.creationHeight!==void 0&&(t.creationHeight=e.creationHeight),e.completionTime!==void 0&&(t.completionTime=e.completionTime.toISOString()),e.initialBalance!==void 0&&(t.initialBalance=e.initialBalance),e.sharesDst!==void 0&&(t.sharesDst=e.sharesDst),t},fromPartial(e){let t=T();return t.creationHeight=e.creationHeight??`0`,t.completionTime=e.completionTime??void 0,t.initialBalance=e.initialBalance??``,t.sharesDst=e.sharesDst??``,t}};function E(){return{delegatorAddress:``,validatorSrcAddress:``,validatorDstAddress:``,entries:[]}}e.Redelegation={encode(t,n=r.default.Writer.create()){t.delegatorAddress!==``&&n.uint32(10).string(t.delegatorAddress),t.validatorSrcAddress!==``&&n.uint32(18).string(t.validatorSrcAddress),t.validatorDstAddress!==``&&n.uint32(26).string(t.validatorDstAddress);for(let r of t.entries)e.RedelegationEntry.encode(r,n.uint32(34).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=E();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.delegatorAddress=i.string();break;case 2:o.validatorSrcAddress=i.string();break;case 3:o.validatorDstAddress=i.string();break;case 4:o.entries.push(e.RedelegationEntry.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{delegatorAddress:I(t.delegatorAddress)?String(t.delegatorAddress):``,validatorSrcAddress:I(t.validatorSrcAddress)?String(t.validatorSrcAddress):``,validatorDstAddress:I(t.validatorDstAddress)?String(t.validatorDstAddress):``,entries:Array.isArray(t?.entries)?t.entries.map(t=>e.RedelegationEntry.fromJSON(t)):[]}},toJSON(t){let n={};return t.delegatorAddress!==void 0&&(n.delegatorAddress=t.delegatorAddress),t.validatorSrcAddress!==void 0&&(n.validatorSrcAddress=t.validatorSrcAddress),t.validatorDstAddress!==void 0&&(n.validatorDstAddress=t.validatorDstAddress),n.entries=t.entries?t.entries.map(t=>t?e.RedelegationEntry.toJSON(t):void 0):[],n},fromPartial(t){let n=E();return n.delegatorAddress=t.delegatorAddress??``,n.validatorSrcAddress=t.validatorSrcAddress??``,n.validatorDstAddress=t.validatorDstAddress??``,n.entries=t.entries?.map(t=>e.RedelegationEntry.fromPartial(t))||[],n}};function D(){return{unbondingTime:void 0,maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:``}}e.Params={encode(e,t=r.default.Writer.create()){return e.unbondingTime!==void 0&&s.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),e.maxValidators!==0&&t.uint32(16).uint32(e.maxValidators),e.maxEntries!==0&&t.uint32(24).uint32(e.maxEntries),e.historicalEntries!==0&&t.uint32(32).uint32(e.historicalEntries),e.bondDenom!==``&&t.uint32(42).string(e.bondDenom),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=D();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.unbondingTime=s.Duration.decode(n,n.uint32());break;case 2:a.maxValidators=n.uint32();break;case 3:a.maxEntries=n.uint32();break;case 4:a.historicalEntries=n.uint32();break;case 5:a.bondDenom=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{unbondingTime:I(e.unbondingTime)?s.Duration.fromJSON(e.unbondingTime):void 0,maxValidators:I(e.maxValidators)?Number(e.maxValidators):0,maxEntries:I(e.maxEntries)?Number(e.maxEntries):0,historicalEntries:I(e.historicalEntries)?Number(e.historicalEntries):0,bondDenom:I(e.bondDenom)?String(e.bondDenom):``}},toJSON(e){let t={};return e.unbondingTime!==void 0&&(t.unbondingTime=e.unbondingTime?s.Duration.toJSON(e.unbondingTime):void 0),e.maxValidators!==void 0&&(t.maxValidators=Math.round(e.maxValidators)),e.maxEntries!==void 0&&(t.maxEntries=Math.round(e.maxEntries)),e.historicalEntries!==void 0&&(t.historicalEntries=Math.round(e.historicalEntries)),e.bondDenom!==void 0&&(t.bondDenom=e.bondDenom),t},fromPartial(e){let t=D();return t.unbondingTime=e.unbondingTime!==void 0&&e.unbondingTime!==null?s.Duration.fromPartial(e.unbondingTime):void 0,t.maxValidators=e.maxValidators??0,t.maxEntries=e.maxEntries??0,t.historicalEntries=e.historicalEntries??0,t.bondDenom=e.bondDenom??``,t}};function O(){return{delegation:void 0,balance:void 0}}e.DelegationResponse={encode(t,n=r.default.Writer.create()){return t.delegation!==void 0&&e.Delegation.encode(t.delegation,n.uint32(10).fork()).ldelim(),t.balance!==void 0&&c.Coin.encode(t.balance,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=O();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.delegation=e.Delegation.decode(i,i.uint32());break;case 2:o.balance=c.Coin.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{delegation:I(t.delegation)?e.Delegation.fromJSON(t.delegation):void 0,balance:I(t.balance)?c.Coin.fromJSON(t.balance):void 0}},toJSON(t){let n={};return t.delegation!==void 0&&(n.delegation=t.delegation?e.Delegation.toJSON(t.delegation):void 0),t.balance!==void 0&&(n.balance=t.balance?c.Coin.toJSON(t.balance):void 0),n},fromPartial(t){let n=O();return n.delegation=t.delegation!==void 0&&t.delegation!==null?e.Delegation.fromPartial(t.delegation):void 0,n.balance=t.balance!==void 0&&t.balance!==null?c.Coin.fromPartial(t.balance):void 0,n}};function k(){return{redelegationEntry:void 0,balance:``}}e.RedelegationEntryResponse={encode(t,n=r.default.Writer.create()){return t.redelegationEntry!==void 0&&e.RedelegationEntry.encode(t.redelegationEntry,n.uint32(10).fork()).ldelim(),t.balance!==``&&n.uint32(34).string(t.balance),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=k();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.redelegationEntry=e.RedelegationEntry.decode(i,i.uint32());break;case 4:o.balance=i.string();break;default:i.skipType(t&7)}}return o},fromJSON(t){return{redelegationEntry:I(t.redelegationEntry)?e.RedelegationEntry.fromJSON(t.redelegationEntry):void 0,balance:I(t.balance)?String(t.balance):``}},toJSON(t){let n={};return t.redelegationEntry!==void 0&&(n.redelegationEntry=t.redelegationEntry?e.RedelegationEntry.toJSON(t.redelegationEntry):void 0),t.balance!==void 0&&(n.balance=t.balance),n},fromPartial(t){let n=k();return n.redelegationEntry=t.redelegationEntry!==void 0&&t.redelegationEntry!==null?e.RedelegationEntry.fromPartial(t.redelegationEntry):void 0,n.balance=t.balance??``,n}};function A(){return{redelegation:void 0,entries:[]}}e.RedelegationResponse={encode(t,n=r.default.Writer.create()){t.redelegation!==void 0&&e.Redelegation.encode(t.redelegation,n.uint32(10).fork()).ldelim();for(let r of t.entries)e.RedelegationEntryResponse.encode(r,n.uint32(18).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=A();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.redelegation=e.Redelegation.decode(i,i.uint32());break;case 2:o.entries.push(e.RedelegationEntryResponse.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{redelegation:I(t.redelegation)?e.Redelegation.fromJSON(t.redelegation):void 0,entries:Array.isArray(t?.entries)?t.entries.map(t=>e.RedelegationEntryResponse.fromJSON(t)):[]}},toJSON(t){let n={};return t.redelegation!==void 0&&(n.redelegation=t.redelegation?e.Redelegation.toJSON(t.redelegation):void 0),n.entries=t.entries?t.entries.map(t=>t?e.RedelegationEntryResponse.toJSON(t):void 0):[],n},fromPartial(t){let n=A();return n.redelegation=t.redelegation!==void 0&&t.redelegation!==null?e.Redelegation.fromPartial(t.redelegation):void 0,n.entries=t.entries?.map(t=>e.RedelegationEntryResponse.fromPartial(t))||[],n}};function j(){return{notBondedTokens:``,bondedTokens:``}}e.Pool={encode(e,t=r.default.Writer.create()){return e.notBondedTokens!==``&&t.uint32(10).string(e.notBondedTokens),e.bondedTokens!==``&&t.uint32(18).string(e.bondedTokens),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=j();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.notBondedTokens=n.string();break;case 2:a.bondedTokens=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{notBondedTokens:I(e.notBondedTokens)?String(e.notBondedTokens):``,bondedTokens:I(e.bondedTokens)?String(e.bondedTokens):``}},toJSON(e){let t={};return e.notBondedTokens!==void 0&&(t.notBondedTokens=e.notBondedTokens),e.bondedTokens!==void 0&&(t.bondedTokens=e.bondedTokens),t},fromPartial(e){let t=j();return t.notBondedTokens=e.notBondedTokens??``,t.bondedTokens=e.bondedTokens??``,t}};function M(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function N(e){let t=Number(e.seconds)*1e3;return t+=e.nanos/1e6,new Date(t)}function P(e){return e instanceof Date?e:typeof e==`string`?new Date(e):N(i.Timestamp.fromJSON(e))}function F(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function I(e){return e!=null}})),no=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgUndelegateResponse=e.MsgUndelegate=e.MsgBeginRedelegateResponse=e.MsgBeginRedelegate=e.MsgDelegateResponse=e.MsgDelegate=e.MsgEditValidatorResponse=e.MsgEditValidator=e.MsgCreateValidatorResponse=e.MsgCreateValidator=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=qa(),a=to(),o=$a(),s=Wa();e.protobufPackage=`cosmos.staking.v1beta1`;function c(){return{description:void 0,commission:void 0,minSelfDelegation:``,delegatorAddress:``,validatorAddress:``,pubkey:void 0,value:void 0}}e.MsgCreateValidator={encode(e,t=r.default.Writer.create()){return e.description!==void 0&&a.Description.encode(e.description,t.uint32(10).fork()).ldelim(),e.commission!==void 0&&a.CommissionRates.encode(e.commission,t.uint32(18).fork()).ldelim(),e.minSelfDelegation!==``&&t.uint32(26).string(e.minSelfDelegation),e.delegatorAddress!==``&&t.uint32(34).string(e.delegatorAddress),e.validatorAddress!==``&&t.uint32(42).string(e.validatorAddress),e.pubkey!==void 0&&o.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),e.value!==void 0&&s.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,l=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:l.description=a.Description.decode(n,n.uint32());break;case 2:l.commission=a.CommissionRates.decode(n,n.uint32());break;case 3:l.minSelfDelegation=n.string();break;case 4:l.delegatorAddress=n.string();break;case 5:l.validatorAddress=n.string();break;case 6:l.pubkey=o.Any.decode(n,n.uint32());break;case 7:l.value=s.Coin.decode(n,n.uint32());break;default:n.skipType(e&7)}}return l},fromJSON(e){return{description:x(e.description)?a.Description.fromJSON(e.description):void 0,commission:x(e.commission)?a.CommissionRates.fromJSON(e.commission):void 0,minSelfDelegation:x(e.minSelfDelegation)?String(e.minSelfDelegation):``,delegatorAddress:x(e.delegatorAddress)?String(e.delegatorAddress):``,validatorAddress:x(e.validatorAddress)?String(e.validatorAddress):``,pubkey:x(e.pubkey)?o.Any.fromJSON(e.pubkey):void 0,value:x(e.value)?s.Coin.fromJSON(e.value):void 0}},toJSON(e){let t={};return e.description!==void 0&&(t.description=e.description?a.Description.toJSON(e.description):void 0),e.commission!==void 0&&(t.commission=e.commission?a.CommissionRates.toJSON(e.commission):void 0),e.minSelfDelegation!==void 0&&(t.minSelfDelegation=e.minSelfDelegation),e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.pubkey!==void 0&&(t.pubkey=e.pubkey?o.Any.toJSON(e.pubkey):void 0),e.value!==void 0&&(t.value=e.value?s.Coin.toJSON(e.value):void 0),t},fromPartial(e){let t=c();return t.description=e.description!==void 0&&e.description!==null?a.Description.fromPartial(e.description):void 0,t.commission=e.commission!==void 0&&e.commission!==null?a.CommissionRates.fromPartial(e.commission):void 0,t.minSelfDelegation=e.minSelfDelegation??``,t.delegatorAddress=e.delegatorAddress??``,t.validatorAddress=e.validatorAddress??``,t.pubkey=e.pubkey!==void 0&&e.pubkey!==null?o.Any.fromPartial(e.pubkey):void 0,t.value=e.value!==void 0&&e.value!==null?s.Coin.fromPartial(e.value):void 0,t}};function l(){return{}}e.MsgCreateValidatorResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return l()}};function u(){return{description:void 0,validatorAddress:``,commissionRate:``,minSelfDelegation:``}}e.MsgEditValidator={encode(e,t=r.default.Writer.create()){return e.description!==void 0&&a.Description.encode(e.description,t.uint32(10).fork()).ldelim(),e.validatorAddress!==``&&t.uint32(18).string(e.validatorAddress),e.commissionRate!==``&&t.uint32(26).string(e.commissionRate),e.minSelfDelegation!==``&&t.uint32(34).string(e.minSelfDelegation),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.description=a.Description.decode(n,n.uint32());break;case 2:o.validatorAddress=n.string();break;case 3:o.commissionRate=n.string();break;case 4:o.minSelfDelegation=n.string();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{description:x(e.description)?a.Description.fromJSON(e.description):void 0,validatorAddress:x(e.validatorAddress)?String(e.validatorAddress):``,commissionRate:x(e.commissionRate)?String(e.commissionRate):``,minSelfDelegation:x(e.minSelfDelegation)?String(e.minSelfDelegation):``}},toJSON(e){let t={};return e.description!==void 0&&(t.description=e.description?a.Description.toJSON(e.description):void 0),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.commissionRate!==void 0&&(t.commissionRate=e.commissionRate),e.minSelfDelegation!==void 0&&(t.minSelfDelegation=e.minSelfDelegation),t},fromPartial(e){let t=u();return t.description=e.description!==void 0&&e.description!==null?a.Description.fromPartial(e.description):void 0,t.validatorAddress=e.validatorAddress??``,t.commissionRate=e.commissionRate??``,t.minSelfDelegation=e.minSelfDelegation??``,t}};function d(){return{}}e.MsgEditValidatorResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=d();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return d()}};function f(){return{delegatorAddress:``,validatorAddress:``,amount:void 0}}e.MsgDelegate={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==``&&t.uint32(18).string(e.validatorAddress),e.amount!==void 0&&s.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.amount=s.Coin.decode(n,n.uint32());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{delegatorAddress:x(e.delegatorAddress)?String(e.delegatorAddress):``,validatorAddress:x(e.validatorAddress)?String(e.validatorAddress):``,amount:x(e.amount)?s.Coin.fromJSON(e.amount):void 0}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.amount!==void 0&&(t.amount=e.amount?s.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=f();return t.delegatorAddress=e.delegatorAddress??``,t.validatorAddress=e.validatorAddress??``,t.amount=e.amount!==void 0&&e.amount!==null?s.Coin.fromPartial(e.amount):void 0,t}};function p(){return{}}e.MsgDelegateResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=p();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return p()}};function m(){return{delegatorAddress:``,validatorSrcAddress:``,validatorDstAddress:``,amount:void 0}}e.MsgBeginRedelegate={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.validatorSrcAddress!==``&&t.uint32(18).string(e.validatorSrcAddress),e.validatorDstAddress!==``&&t.uint32(26).string(e.validatorDstAddress),e.amount!==void 0&&s.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=m();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorSrcAddress=n.string();break;case 3:a.validatorDstAddress=n.string();break;case 4:a.amount=s.Coin.decode(n,n.uint32());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{delegatorAddress:x(e.delegatorAddress)?String(e.delegatorAddress):``,validatorSrcAddress:x(e.validatorSrcAddress)?String(e.validatorSrcAddress):``,validatorDstAddress:x(e.validatorDstAddress)?String(e.validatorDstAddress):``,amount:x(e.amount)?s.Coin.fromJSON(e.amount):void 0}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorSrcAddress!==void 0&&(t.validatorSrcAddress=e.validatorSrcAddress),e.validatorDstAddress!==void 0&&(t.validatorDstAddress=e.validatorDstAddress),e.amount!==void 0&&(t.amount=e.amount?s.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=m();return t.delegatorAddress=e.delegatorAddress??``,t.validatorSrcAddress=e.validatorSrcAddress??``,t.validatorDstAddress=e.validatorDstAddress??``,t.amount=e.amount!==void 0&&e.amount!==null?s.Coin.fromPartial(e.amount):void 0,t}};function h(){return{completionTime:void 0}}e.MsgBeginRedelegateResponse={encode(e,t=r.default.Writer.create()){return e.completionTime!==void 0&&i.Timestamp.encode(v(e.completionTime),t.uint32(10).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=h();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.completionTime=y(i.Timestamp.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{completionTime:x(e.completionTime)?b(e.completionTime):void 0}},toJSON(e){let t={};return e.completionTime!==void 0&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial(e){let t=h();return t.completionTime=e.completionTime??void 0,t}};function g(){return{delegatorAddress:``,validatorAddress:``,amount:void 0}}e.MsgUndelegate={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==``&&t.uint32(18).string(e.validatorAddress),e.amount!==void 0&&s.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=g();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.amount=s.Coin.decode(n,n.uint32());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{delegatorAddress:x(e.delegatorAddress)?String(e.delegatorAddress):``,validatorAddress:x(e.validatorAddress)?String(e.validatorAddress):``,amount:x(e.amount)?s.Coin.fromJSON(e.amount):void 0}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),e.amount!==void 0&&(t.amount=e.amount?s.Coin.toJSON(e.amount):void 0),t},fromPartial(e){let t=g();return t.delegatorAddress=e.delegatorAddress??``,t.validatorAddress=e.validatorAddress??``,t.amount=e.amount!==void 0&&e.amount!==null?s.Coin.fromPartial(e.amount):void 0,t}};function _(){return{completionTime:void 0}}e.MsgUndelegateResponse={encode(e,t=r.default.Writer.create()){return e.completionTime!==void 0&&i.Timestamp.encode(v(e.completionTime),t.uint32(10).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=_();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.completionTime=y(i.Timestamp.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{completionTime:x(e.completionTime)?b(e.completionTime):void 0}},toJSON(e){let t={};return e.completionTime!==void 0&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial(e){let t=_();return t.completionTime=e.completionTime??void 0,t}};function v(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function y(e){let t=Number(e.seconds)*1e3;return t+=e.nanos/1e6,new Date(t)}function b(e){return e instanceof Date?e:typeof e==`string`?new Date(e):y(i.Timestamp.fromJSON(e))}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function x(e){return e!=null}})),ro=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Grant=e.GenericAuthorization=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=qa(),a=$a();e.protobufPackage=`cosmos.authz.v1beta1`;function o(){return{msg:``}}e.GenericAuthorization={encode(e,t=r.default.Writer.create()){return e.msg!==``&&t.uint32(10).string(e.msg),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=o();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.msg=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{msg:d(e.msg)?String(e.msg):``}},toJSON(e){let t={};return e.msg!==void 0&&(t.msg=e.msg),t},fromPartial(e){let t=o();return t.msg=e.msg??``,t}};function s(){return{authorization:void 0,expiration:void 0}}e.Grant={encode(e,t=r.default.Writer.create()){return e.authorization!==void 0&&a.Any.encode(e.authorization,t.uint32(10).fork()).ldelim(),e.expiration!==void 0&&i.Timestamp.encode(c(e.expiration),t.uint32(18).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),o=t===void 0?n.len:n.pos+t,c=s();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:c.authorization=a.Any.decode(n,n.uint32());break;case 2:c.expiration=l(i.Timestamp.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return c},fromJSON(e){return{authorization:d(e.authorization)?a.Any.fromJSON(e.authorization):void 0,expiration:d(e.expiration)?u(e.expiration):void 0}},toJSON(e){let t={};return e.authorization!==void 0&&(t.authorization=e.authorization?a.Any.toJSON(e.authorization):void 0),e.expiration!==void 0&&(t.expiration=e.expiration.toISOString()),t},fromPartial(e){let t=s();return t.authorization=e.authorization!==void 0&&e.authorization!==null?a.Any.fromPartial(e.authorization):void 0,t.expiration=e.expiration??void 0,t}};function c(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function l(e){let t=Number(e.seconds)*1e3;return t+=e.nanos/1e6,new Date(t)}function u(e){return e instanceof Date?e:typeof e==`string`?new Date(e):l(i.Timestamp.fromJSON(e))}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function d(e){return e!=null}})),io=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgRevokeResponse=e.MsgRevoke=e.MsgGrantResponse=e.MsgExec=e.MsgExecResponse=e.MsgGrant=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=ro(),a=$a();e.protobufPackage=`cosmos.authz.v1beta1`;function o(){return{granter:``,grantee:``,grant:void 0}}e.MsgGrant={encode(e,t=r.default.Writer.create()){return e.granter!==``&&t.uint32(10).string(e.granter),e.grantee!==``&&t.uint32(18).string(e.grantee),e.grant!==void 0&&i.Grant.encode(e.grant,t.uint32(26).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,s=o();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:s.granter=n.string();break;case 2:s.grantee=n.string();break;case 3:s.grant=i.Grant.decode(n,n.uint32());break;default:n.skipType(e&7)}}return s},fromJSON(e){return{granter:_(e.granter)?String(e.granter):``,grantee:_(e.grantee)?String(e.grantee):``,grant:_(e.grant)?i.Grant.fromJSON(e.grant):void 0}},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.grant!==void 0&&(t.grant=e.grant?i.Grant.toJSON(e.grant):void 0),t},fromPartial(e){let t=o();return t.granter=e.granter??``,t.grantee=e.grantee??``,t.grant=e.grant!==void 0&&e.grant!==null?i.Grant.fromPartial(e.grant):void 0,t}};function s(){return{results:[]}}e.MsgExecResponse={encode(e,t=r.default.Writer.create()){for(let n of e.results)t.uint32(10).bytes(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.results.push(n.bytes());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{results:Array.isArray(e?.results)?e.results.map(e=>m(e)):[]}},toJSON(e){let t={};return t.results=e.results?e.results.map(e=>g(e===void 0?new Uint8Array:e)):[],t},fromPartial(e){let t=s();return t.results=e.results?.map(e=>e)||[],t}};function c(){return{grantee:``,msgs:[]}}e.MsgExec={encode(e,t=r.default.Writer.create()){e.grantee!==``&&t.uint32(10).string(e.grantee);for(let n of e.msgs)a.Any.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.grantee=n.string();break;case 2:o.msgs.push(a.Any.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{grantee:_(e.grantee)?String(e.grantee):``,msgs:Array.isArray(e?.msgs)?e.msgs.map(e=>a.Any.fromJSON(e)):[]}},toJSON(e){let t={};return e.grantee!==void 0&&(t.grantee=e.grantee),t.msgs=e.msgs?e.msgs.map(e=>e?a.Any.toJSON(e):void 0):[],t},fromPartial(e){let t=c();return t.grantee=e.grantee??``,t.msgs=e.msgs?.map(e=>a.Any.fromPartial(e))||[],t}};function l(){return{}}e.MsgGrantResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return l()}};function u(){return{granter:``,grantee:``,msgTypeUrl:``}}e.MsgRevoke={encode(e,t=r.default.Writer.create()){return e.granter!==``&&t.uint32(10).string(e.granter),e.grantee!==``&&t.uint32(18).string(e.grantee),e.msgTypeUrl!==``&&t.uint32(26).string(e.msgTypeUrl),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.msgTypeUrl=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{granter:_(e.granter)?String(e.granter):``,grantee:_(e.grantee)?String(e.grantee):``,msgTypeUrl:_(e.msgTypeUrl)?String(e.msgTypeUrl):``}},toJSON(e){let t={};return e.granter!==void 0&&(t.granter=e.granter),e.grantee!==void 0&&(t.grantee=e.grantee),e.msgTypeUrl!==void 0&&(t.msgTypeUrl=e.msgTypeUrl),t},fromPartial(e){let t=u();return t.granter=e.granter??``,t.grantee=e.grantee??``,t.msgTypeUrl=e.msgTypeUrl??``,t}};function d(){return{}}e.MsgRevokeResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=d();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return d()}};var f=(()=>{if(f!==void 0)return f;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),p=f.atob||(e=>f.Buffer.from(e,`base64`).toString(`binary`));function m(e){let t=p(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var h=f.btoa||(e=>f.Buffer.from(e,`binary`).toString(`base64`));function g(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return h(t.join(``))}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function _(e){return e!=null}})),ao=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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;var n=t(K()),r=t(J()),i=qa(),a=Wa(),o=$a(),s=eo();e.protobufPackage=`cosmos.gov.v1beta1`;var c;(function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]=`VOTE_OPTION_UNSPECIFIED`,e[e.VOTE_OPTION_YES=1]=`VOTE_OPTION_YES`,e[e.VOTE_OPTION_ABSTAIN=2]=`VOTE_OPTION_ABSTAIN`,e[e.VOTE_OPTION_NO=3]=`VOTE_OPTION_NO`,e[e.VOTE_OPTION_NO_WITH_VETO=4]=`VOTE_OPTION_NO_WITH_VETO`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(c=e.VoteOption||={});function l(e){switch(e){case 0:case`VOTE_OPTION_UNSPECIFIED`:return c.VOTE_OPTION_UNSPECIFIED;case 1:case`VOTE_OPTION_YES`:return c.VOTE_OPTION_YES;case 2:case`VOTE_OPTION_ABSTAIN`:return c.VOTE_OPTION_ABSTAIN;case 3:case`VOTE_OPTION_NO`:return c.VOTE_OPTION_NO;case 4:case`VOTE_OPTION_NO_WITH_VETO`:return c.VOTE_OPTION_NO_WITH_VETO;default:return c.UNRECOGNIZED}}e.voteOptionFromJSON=l;function u(e){switch(e){case c.VOTE_OPTION_UNSPECIFIED:return`VOTE_OPTION_UNSPECIFIED`;case c.VOTE_OPTION_YES:return`VOTE_OPTION_YES`;case c.VOTE_OPTION_ABSTAIN:return`VOTE_OPTION_ABSTAIN`;case c.VOTE_OPTION_NO:return`VOTE_OPTION_NO`;case c.VOTE_OPTION_NO_WITH_VETO:return`VOTE_OPTION_NO_WITH_VETO`;default:return`UNKNOWN`}}e.voteOptionToJSON=u;var d;(function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]=`PROPOSAL_STATUS_UNSPECIFIED`,e[e.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]=`PROPOSAL_STATUS_DEPOSIT_PERIOD`,e[e.PROPOSAL_STATUS_VOTING_PERIOD=2]=`PROPOSAL_STATUS_VOTING_PERIOD`,e[e.PROPOSAL_STATUS_PASSED=3]=`PROPOSAL_STATUS_PASSED`,e[e.PROPOSAL_STATUS_REJECTED=4]=`PROPOSAL_STATUS_REJECTED`,e[e.PROPOSAL_STATUS_FAILED=5]=`PROPOSAL_STATUS_FAILED`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(d=e.ProposalStatus||={});function f(e){switch(e){case 0:case`PROPOSAL_STATUS_UNSPECIFIED`:return d.PROPOSAL_STATUS_UNSPECIFIED;case 1:case`PROPOSAL_STATUS_DEPOSIT_PERIOD`:return d.PROPOSAL_STATUS_DEPOSIT_PERIOD;case 2:case`PROPOSAL_STATUS_VOTING_PERIOD`:return d.PROPOSAL_STATUS_VOTING_PERIOD;case 3:case`PROPOSAL_STATUS_PASSED`:return d.PROPOSAL_STATUS_PASSED;case 4:case`PROPOSAL_STATUS_REJECTED`:return d.PROPOSAL_STATUS_REJECTED;case 5:case`PROPOSAL_STATUS_FAILED`:return d.PROPOSAL_STATUS_FAILED;default:return d.UNRECOGNIZED}}e.proposalStatusFromJSON=f;function p(e){switch(e){case d.PROPOSAL_STATUS_UNSPECIFIED:return`PROPOSAL_STATUS_UNSPECIFIED`;case d.PROPOSAL_STATUS_DEPOSIT_PERIOD:return`PROPOSAL_STATUS_DEPOSIT_PERIOD`;case d.PROPOSAL_STATUS_VOTING_PERIOD:return`PROPOSAL_STATUS_VOTING_PERIOD`;case d.PROPOSAL_STATUS_PASSED:return`PROPOSAL_STATUS_PASSED`;case d.PROPOSAL_STATUS_REJECTED:return`PROPOSAL_STATUS_REJECTED`;case d.PROPOSAL_STATUS_FAILED:return`PROPOSAL_STATUS_FAILED`;default:return`UNKNOWN`}}e.proposalStatusToJSON=p;function m(){return{option:0,weight:``}}e.WeightedVoteOption={encode(e,t=r.default.Writer.create()){return e.option!==0&&t.uint32(8).int32(e.option),e.weight!==``&&t.uint32(18).string(e.weight),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=m();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.option=n.int32();break;case 2:a.weight=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{option:M(e.option)?l(e.option):0,weight:M(e.weight)?String(e.weight):``}},toJSON(e){let t={};return e.option!==void 0&&(t.option=u(e.option)),e.weight!==void 0&&(t.weight=e.weight),t},fromPartial(e){let t=m();return t.option=e.option??0,t.weight=e.weight??``,t}};function h(){return{title:``,description:``}}e.TextProposal={encode(e,t=r.default.Writer.create()){return e.title!==``&&t.uint32(10).string(e.title),e.description!==``&&t.uint32(18).string(e.description),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=h();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{title:M(e.title)?String(e.title):``,description:M(e.description)?String(e.description):``}},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),t},fromPartial(e){let t=h();return t.title=e.title??``,t.description=e.description??``,t}};function g(){return{proposalId:`0`,depositor:``,amount:[]}}e.Deposit={encode(e,t=r.default.Writer.create()){e.proposalId!==`0`&&t.uint32(8).uint64(e.proposalId),e.depositor!==``&&t.uint32(18).string(e.depositor);for(let n of e.amount)a.Coin.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=g();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.proposalId=j(n.uint64());break;case 2:o.depositor=n.string();break;case 3:o.amount.push(a.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{proposalId:M(e.proposalId)?String(e.proposalId):`0`,depositor:M(e.depositor)?String(e.depositor):``,amount:Array.isArray(e?.amount)?e.amount.map(e=>a.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=e.proposalId),e.depositor!==void 0&&(t.depositor=e.depositor),t.amount=e.amount?e.amount.map(e=>e?a.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=g();return t.proposalId=e.proposalId??`0`,t.depositor=e.depositor??``,t.amount=e.amount?.map(e=>a.Coin.fromPartial(e))||[],t}};function _(){return{proposalId:`0`,content:void 0,status:0,finalTallyResult:void 0,submitTime:void 0,depositEndTime:void 0,totalDeposit:[],votingStartTime:void 0,votingEndTime:void 0}}e.Proposal={encode(t,n=r.default.Writer.create()){t.proposalId!==`0`&&n.uint32(8).uint64(t.proposalId),t.content!==void 0&&o.Any.encode(t.content,n.uint32(18).fork()).ldelim(),t.status!==0&&n.uint32(24).int32(t.status),t.finalTallyResult!==void 0&&e.TallyResult.encode(t.finalTallyResult,n.uint32(34).fork()).ldelim(),t.submitTime!==void 0&&i.Timestamp.encode(O(t.submitTime),n.uint32(42).fork()).ldelim(),t.depositEndTime!==void 0&&i.Timestamp.encode(O(t.depositEndTime),n.uint32(50).fork()).ldelim();for(let e of t.totalDeposit)a.Coin.encode(e,n.uint32(58).fork()).ldelim();return t.votingStartTime!==void 0&&i.Timestamp.encode(O(t.votingStartTime),n.uint32(66).fork()).ldelim(),t.votingEndTime!==void 0&&i.Timestamp.encode(O(t.votingEndTime),n.uint32(74).fork()).ldelim(),n},decode(t,n){let s=t instanceof r.default.Reader?t:new r.default.Reader(t),c=n===void 0?s.len:s.pos+n,l=_();for(;s.pos<c;){let t=s.uint32();switch(t>>>3){case 1:l.proposalId=j(s.uint64());break;case 2:l.content=o.Any.decode(s,s.uint32());break;case 3:l.status=s.int32();break;case 4:l.finalTallyResult=e.TallyResult.decode(s,s.uint32());break;case 5:l.submitTime=k(i.Timestamp.decode(s,s.uint32()));break;case 6:l.depositEndTime=k(i.Timestamp.decode(s,s.uint32()));break;case 7:l.totalDeposit.push(a.Coin.decode(s,s.uint32()));break;case 8:l.votingStartTime=k(i.Timestamp.decode(s,s.uint32()));break;case 9:l.votingEndTime=k(i.Timestamp.decode(s,s.uint32()));break;default:s.skipType(t&7)}}return l},fromJSON(t){return{proposalId:M(t.proposalId)?String(t.proposalId):`0`,content:M(t.content)?o.Any.fromJSON(t.content):void 0,status:M(t.status)?f(t.status):0,finalTallyResult:M(t.finalTallyResult)?e.TallyResult.fromJSON(t.finalTallyResult):void 0,submitTime:M(t.submitTime)?A(t.submitTime):void 0,depositEndTime:M(t.depositEndTime)?A(t.depositEndTime):void 0,totalDeposit:Array.isArray(t?.totalDeposit)?t.totalDeposit.map(e=>a.Coin.fromJSON(e)):[],votingStartTime:M(t.votingStartTime)?A(t.votingStartTime):void 0,votingEndTime:M(t.votingEndTime)?A(t.votingEndTime):void 0}},toJSON(t){let n={};return t.proposalId!==void 0&&(n.proposalId=t.proposalId),t.content!==void 0&&(n.content=t.content?o.Any.toJSON(t.content):void 0),t.status!==void 0&&(n.status=p(t.status)),t.finalTallyResult!==void 0&&(n.finalTallyResult=t.finalTallyResult?e.TallyResult.toJSON(t.finalTallyResult):void 0),t.submitTime!==void 0&&(n.submitTime=t.submitTime.toISOString()),t.depositEndTime!==void 0&&(n.depositEndTime=t.depositEndTime.toISOString()),n.totalDeposit=t.totalDeposit?t.totalDeposit.map(e=>e?a.Coin.toJSON(e):void 0):[],t.votingStartTime!==void 0&&(n.votingStartTime=t.votingStartTime.toISOString()),t.votingEndTime!==void 0&&(n.votingEndTime=t.votingEndTime.toISOString()),n},fromPartial(t){let n=_();return n.proposalId=t.proposalId??`0`,n.content=t.content!==void 0&&t.content!==null?o.Any.fromPartial(t.content):void 0,n.status=t.status??0,n.finalTallyResult=t.finalTallyResult!==void 0&&t.finalTallyResult!==null?e.TallyResult.fromPartial(t.finalTallyResult):void 0,n.submitTime=t.submitTime??void 0,n.depositEndTime=t.depositEndTime??void 0,n.totalDeposit=t.totalDeposit?.map(e=>a.Coin.fromPartial(e))||[],n.votingStartTime=t.votingStartTime??void 0,n.votingEndTime=t.votingEndTime??void 0,n}};function v(){return{yes:``,abstain:``,no:``,noWithVeto:``}}e.TallyResult={encode(e,t=r.default.Writer.create()){return e.yes!==``&&t.uint32(10).string(e.yes),e.abstain!==``&&t.uint32(18).string(e.abstain),e.no!==``&&t.uint32(26).string(e.no),e.noWithVeto!==``&&t.uint32(34).string(e.noWithVeto),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.yes=n.string();break;case 2:a.abstain=n.string();break;case 3:a.no=n.string();break;case 4:a.noWithVeto=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{yes:M(e.yes)?String(e.yes):``,abstain:M(e.abstain)?String(e.abstain):``,no:M(e.no)?String(e.no):``,noWithVeto:M(e.noWithVeto)?String(e.noWithVeto):``}},toJSON(e){let t={};return e.yes!==void 0&&(t.yes=e.yes),e.abstain!==void 0&&(t.abstain=e.abstain),e.no!==void 0&&(t.no=e.no),e.noWithVeto!==void 0&&(t.noWithVeto=e.noWithVeto),t},fromPartial(e){let t=v();return t.yes=e.yes??``,t.abstain=e.abstain??``,t.no=e.no??``,t.noWithVeto=e.noWithVeto??``,t}};function y(){return{proposalId:`0`,voter:``,option:0,options:[]}}e.Vote={encode(t,n=r.default.Writer.create()){t.proposalId!==`0`&&n.uint32(8).uint64(t.proposalId),t.voter!==``&&n.uint32(18).string(t.voter),t.option!==0&&n.uint32(24).int32(t.option);for(let r of t.options)e.WeightedVoteOption.encode(r,n.uint32(34).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=y();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.proposalId=j(i.uint64());break;case 2:o.voter=i.string();break;case 3:o.option=i.int32();break;case 4:o.options.push(e.WeightedVoteOption.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{proposalId:M(t.proposalId)?String(t.proposalId):`0`,voter:M(t.voter)?String(t.voter):``,option:M(t.option)?l(t.option):0,options:Array.isArray(t?.options)?t.options.map(t=>e.WeightedVoteOption.fromJSON(t)):[]}},toJSON(t){let n={};return t.proposalId!==void 0&&(n.proposalId=t.proposalId),t.voter!==void 0&&(n.voter=t.voter),t.option!==void 0&&(n.option=u(t.option)),n.options=t.options?t.options.map(t=>t?e.WeightedVoteOption.toJSON(t):void 0):[],n},fromPartial(t){let n=y();return n.proposalId=t.proposalId??`0`,n.voter=t.voter??``,n.option=t.option??0,n.options=t.options?.map(t=>e.WeightedVoteOption.fromPartial(t))||[],n}};function b(){return{minDeposit:[],maxDepositPeriod:void 0}}e.DepositParams={encode(e,t=r.default.Writer.create()){for(let n of e.minDeposit)a.Coin.encode(n,t.uint32(10).fork()).ldelim();return e.maxDepositPeriod!==void 0&&s.Duration.encode(e.maxDepositPeriod,t.uint32(18).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=b();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.minDeposit.push(a.Coin.decode(n,n.uint32()));break;case 2:o.maxDepositPeriod=s.Duration.decode(n,n.uint32());break;default:n.skipType(e&7)}}return o},fromJSON(e){return{minDeposit:Array.isArray(e?.minDeposit)?e.minDeposit.map(e=>a.Coin.fromJSON(e)):[],maxDepositPeriod:M(e.maxDepositPeriod)?s.Duration.fromJSON(e.maxDepositPeriod):void 0}},toJSON(e){let t={};return t.minDeposit=e.minDeposit?e.minDeposit.map(e=>e?a.Coin.toJSON(e):void 0):[],e.maxDepositPeriod!==void 0&&(t.maxDepositPeriod=e.maxDepositPeriod?s.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial(e){let t=b();return t.minDeposit=e.minDeposit?.map(e=>a.Coin.fromPartial(e))||[],t.maxDepositPeriod=e.maxDepositPeriod!==void 0&&e.maxDepositPeriod!==null?s.Duration.fromPartial(e.maxDepositPeriod):void 0,t}};function x(){return{votingPeriod:void 0}}e.VotingParams={encode(e,t=r.default.Writer.create()){return e.votingPeriod!==void 0&&s.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=x();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.votingPeriod=s.Duration.decode(n,n.uint32());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{votingPeriod:M(e.votingPeriod)?s.Duration.fromJSON(e.votingPeriod):void 0}},toJSON(e){let t={};return e.votingPeriod!==void 0&&(t.votingPeriod=e.votingPeriod?s.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial(e){let t=x();return t.votingPeriod=e.votingPeriod!==void 0&&e.votingPeriod!==null?s.Duration.fromPartial(e.votingPeriod):void 0,t}};function S(){return{quorum:new Uint8Array,threshold:new Uint8Array,vetoThreshold:new Uint8Array}}e.TallyParams={encode(e,t=r.default.Writer.create()){return e.quorum.length!==0&&t.uint32(10).bytes(e.quorum),e.threshold.length!==0&&t.uint32(18).bytes(e.threshold),e.vetoThreshold.length!==0&&t.uint32(26).bytes(e.vetoThreshold),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=S();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.quorum=n.bytes();break;case 2:a.threshold=n.bytes();break;case 3:a.vetoThreshold=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{quorum:M(e.quorum)?T(e.quorum):new Uint8Array,threshold:M(e.threshold)?T(e.threshold):new Uint8Array,vetoThreshold:M(e.vetoThreshold)?T(e.vetoThreshold):new Uint8Array}},toJSON(e){let t={};return e.quorum!==void 0&&(t.quorum=D(e.quorum===void 0?new Uint8Array:e.quorum)),e.threshold!==void 0&&(t.threshold=D(e.threshold===void 0?new Uint8Array:e.threshold)),e.vetoThreshold!==void 0&&(t.vetoThreshold=D(e.vetoThreshold===void 0?new Uint8Array:e.vetoThreshold)),t},fromPartial(e){let t=S();return t.quorum=e.quorum??new Uint8Array,t.threshold=e.threshold??new Uint8Array,t.vetoThreshold=e.vetoThreshold??new Uint8Array,t}};var C=(()=>{if(C!==void 0)return C;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),w=C.atob||(e=>C.Buffer.from(e,`base64`).toString(`binary`));function T(e){let t=w(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var E=C.btoa||(e=>C.Buffer.from(e,`binary`).toString(`base64`));function D(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return E(t.join(``))}function O(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function k(e){let t=Number(e.seconds)*1e3;return t+=e.nanos/1e6,new Date(t)}function A(e){return e instanceof Date?e:typeof e==`string`?new Date(e):k(i.Timestamp.fromJSON(e))}function j(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function M(e){return e!=null}})),oo=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgDepositResponse=e.MsgDeposit=e.MsgVoteWeightedResponse=e.MsgVoteWeighted=e.MsgVoteResponse=e.MsgVote=e.MsgSubmitProposalResponse=e.MsgSubmitProposal=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=ao(),a=$a(),o=Wa();e.protobufPackage=`cosmos.gov.v1beta1`;function s(){return{content:void 0,initialDeposit:[],proposer:``}}e.MsgSubmitProposal={encode(e,t=r.default.Writer.create()){e.content!==void 0&&a.Any.encode(e.content,t.uint32(10).fork()).ldelim();for(let n of e.initialDeposit)o.Coin.encode(n,t.uint32(18).fork()).ldelim();return e.proposer!==``&&t.uint32(26).string(e.proposer),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,c=s();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:c.content=a.Any.decode(n,n.uint32());break;case 2:c.initialDeposit.push(o.Coin.decode(n,n.uint32()));break;case 3:c.proposer=n.string();break;default:n.skipType(e&7)}}return c},fromJSON(e){return{content:g(e.content)?a.Any.fromJSON(e.content):void 0,initialDeposit:Array.isArray(e?.initialDeposit)?e.initialDeposit.map(e=>o.Coin.fromJSON(e)):[],proposer:g(e.proposer)?String(e.proposer):``}},toJSON(e){let t={};return e.content!==void 0&&(t.content=e.content?a.Any.toJSON(e.content):void 0),t.initialDeposit=e.initialDeposit?e.initialDeposit.map(e=>e?o.Coin.toJSON(e):void 0):[],e.proposer!==void 0&&(t.proposer=e.proposer),t},fromPartial(e){let t=s();return t.content=e.content!==void 0&&e.content!==null?a.Any.fromPartial(e.content):void 0,t.initialDeposit=e.initialDeposit?.map(e=>o.Coin.fromPartial(e))||[],t.proposer=e.proposer??``,t}};function c(){return{proposalId:`0`}}e.MsgSubmitProposalResponse={encode(e,t=r.default.Writer.create()){return e.proposalId!==`0`&&t.uint32(8).uint64(e.proposalId),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.proposalId=h(n.uint64());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{proposalId:g(e.proposalId)?String(e.proposalId):`0`}},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=e.proposalId),t},fromPartial(e){let t=c();return t.proposalId=e.proposalId??`0`,t}};function l(){return{proposalId:`0`,voter:``,option:0}}e.MsgVote={encode(e,t=r.default.Writer.create()){return e.proposalId!==`0`&&t.uint32(8).uint64(e.proposalId),e.voter!==``&&t.uint32(18).string(e.voter),e.option!==0&&t.uint32(24).int32(e.option),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.proposalId=h(n.uint64());break;case 2:a.voter=n.string();break;case 3:a.option=n.int32();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{proposalId:g(e.proposalId)?String(e.proposalId):`0`,voter:g(e.voter)?String(e.voter):``,option:g(e.option)?(0,i.voteOptionFromJSON)(e.option):0}},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=e.proposalId),e.voter!==void 0&&(t.voter=e.voter),e.option!==void 0&&(t.option=(0,i.voteOptionToJSON)(e.option)),t},fromPartial(e){let t=l();return t.proposalId=e.proposalId??`0`,t.voter=e.voter??``,t.option=e.option??0,t}};function u(){return{}}e.MsgVoteResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=u();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return u()}};function d(){return{proposalId:`0`,voter:``,options:[]}}e.MsgVoteWeighted={encode(e,t=r.default.Writer.create()){e.proposalId!==`0`&&t.uint32(8).uint64(e.proposalId),e.voter!==``&&t.uint32(18).string(e.voter);for(let n of e.options)i.WeightedVoteOption.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=d();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.proposalId=h(n.uint64());break;case 2:o.voter=n.string();break;case 3:o.options.push(i.WeightedVoteOption.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{proposalId:g(e.proposalId)?String(e.proposalId):`0`,voter:g(e.voter)?String(e.voter):``,options:Array.isArray(e?.options)?e.options.map(e=>i.WeightedVoteOption.fromJSON(e)):[]}},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=e.proposalId),e.voter!==void 0&&(t.voter=e.voter),t.options=e.options?e.options.map(e=>e?i.WeightedVoteOption.toJSON(e):void 0):[],t},fromPartial(e){let t=d();return t.proposalId=e.proposalId??`0`,t.voter=e.voter??``,t.options=e.options?.map(e=>i.WeightedVoteOption.fromPartial(e))||[],t}};function f(){return{}}e.MsgVoteWeightedResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return f()}};function p(){return{proposalId:`0`,depositor:``,amount:[]}}e.MsgDeposit={encode(e,t=r.default.Writer.create()){e.proposalId!==`0`&&t.uint32(8).uint64(e.proposalId),e.depositor!==``&&t.uint32(18).string(e.depositor);for(let n of e.amount)o.Coin.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=p();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.proposalId=h(n.uint64());break;case 2:a.depositor=n.string();break;case 3:a.amount.push(o.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return a},fromJSON(e){return{proposalId:g(e.proposalId)?String(e.proposalId):`0`,depositor:g(e.depositor)?String(e.depositor):``,amount:Array.isArray(e?.amount)?e.amount.map(e=>o.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return e.proposalId!==void 0&&(t.proposalId=e.proposalId),e.depositor!==void 0&&(t.depositor=e.depositor),t.amount=e.amount?e.amount.map(e=>e?o.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=p();return t.proposalId=e.proposalId??`0`,t.depositor=e.depositor??``,t.amount=e.amount?.map(e=>o.Coin.fromPartial(e))||[],t}};function m(){return{}}e.MsgDepositResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=m();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return m()}};function h(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function g(e){return e!=null}})),so=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgFundCommunityPoolResponse=e.MsgFundCommunityPool=e.MsgWithdrawValidatorCommissionResponse=e.MsgWithdrawValidatorCommission=e.MsgWithdrawDelegatorRewardResponse=e.MsgWithdrawDelegatorReward=e.MsgSetWithdrawAddressResponse=e.MsgSetWithdrawAddress=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=Wa();e.protobufPackage=`cosmos.distribution.v1beta1`;function a(){return{delegatorAddress:``,withdrawAddress:``}}e.MsgSetWithdrawAddress={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.withdrawAddress!==``&&t.uint32(18).string(e.withdrawAddress),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=a();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.delegatorAddress=n.string();break;case 2:o.withdrawAddress=n.string();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{delegatorAddress:p(e.delegatorAddress)?String(e.delegatorAddress):``,withdrawAddress:p(e.withdrawAddress)?String(e.withdrawAddress):``}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.withdrawAddress!==void 0&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial(e){let t=a();return t.delegatorAddress=e.delegatorAddress??``,t.withdrawAddress=e.withdrawAddress??``,t}};function o(){return{}}e.MsgSetWithdrawAddressResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=o();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return o()}};function s(){return{delegatorAddress:``,validatorAddress:``}}e.MsgWithdrawDelegatorReward={encode(e,t=r.default.Writer.create()){return e.delegatorAddress!==``&&t.uint32(10).string(e.delegatorAddress),e.validatorAddress!==``&&t.uint32(18).string(e.validatorAddress),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{delegatorAddress:p(e.delegatorAddress)?String(e.delegatorAddress):``,validatorAddress:p(e.validatorAddress)?String(e.validatorAddress):``}},toJSON(e){let t={};return e.delegatorAddress!==void 0&&(t.delegatorAddress=e.delegatorAddress),e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=s();return t.delegatorAddress=e.delegatorAddress??``,t.validatorAddress=e.validatorAddress??``,t}};function c(){return{}}e.MsgWithdrawDelegatorRewardResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=c();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return c()}};function l(){return{validatorAddress:``}}e.MsgWithdrawValidatorCommission={encode(e,t=r.default.Writer.create()){return e.validatorAddress!==``&&t.uint32(10).string(e.validatorAddress),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.validatorAddress=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{validatorAddress:p(e.validatorAddress)?String(e.validatorAddress):``}},toJSON(e){let t={};return e.validatorAddress!==void 0&&(t.validatorAddress=e.validatorAddress),t},fromPartial(e){let t=l();return t.validatorAddress=e.validatorAddress??``,t}};function u(){return{}}e.MsgWithdrawValidatorCommissionResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=u();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return u()}};function d(){return{amount:[],depositor:``}}e.MsgFundCommunityPool={encode(e,t=r.default.Writer.create()){for(let n of e.amount)i.Coin.encode(n,t.uint32(10).fork()).ldelim();return e.depositor!==``&&t.uint32(18).string(e.depositor),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=d();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.amount.push(i.Coin.decode(n,n.uint32()));break;case 2:o.depositor=n.string();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{amount:Array.isArray(e?.amount)?e.amount.map(e=>i.Coin.fromJSON(e)):[],depositor:p(e.depositor)?String(e.depositor):``}},toJSON(e){let t={};return t.amount=e.amount?e.amount.map(e=>e?i.Coin.toJSON(e):void 0):[],e.depositor!==void 0&&(t.depositor=e.depositor),t},fromPartial(e){let t=d();return t.amount=e.amount?.map(e=>i.Coin.fromPartial(e))||[],t.depositor=e.depositor??``,t}};function f(){return{}}e.MsgFundCommunityPoolResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return f()}},r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function p(e){return e!=null}})),co=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.AbsoluteTxPosition=e.ContractCodeHistoryEntry=e.ContractInfo=e.CodeInfo=e.Params=e.AccessConfig=e.AccessTypeParam=e.contractCodeHistoryOperationTypeToJSON=e.contractCodeHistoryOperationTypeFromJSON=e.ContractCodeHistoryOperationType=e.accessTypeToJSON=e.accessTypeFromJSON=e.AccessType=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=$a();e.protobufPackage=`cosmwasm.wasm.v1`;var a;(function(e){e[e.ACCESS_TYPE_UNSPECIFIED=0]=`ACCESS_TYPE_UNSPECIFIED`,e[e.ACCESS_TYPE_NOBODY=1]=`ACCESS_TYPE_NOBODY`,e[e.ACCESS_TYPE_ONLY_ADDRESS=2]=`ACCESS_TYPE_ONLY_ADDRESS`,e[e.ACCESS_TYPE_EVERYBODY=3]=`ACCESS_TYPE_EVERYBODY`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(a=e.AccessType||={});function o(e){switch(e){case 0:case`ACCESS_TYPE_UNSPECIFIED`:return a.ACCESS_TYPE_UNSPECIFIED;case 1:case`ACCESS_TYPE_NOBODY`:return a.ACCESS_TYPE_NOBODY;case 2:case`ACCESS_TYPE_ONLY_ADDRESS`:return a.ACCESS_TYPE_ONLY_ADDRESS;case 3:case`ACCESS_TYPE_EVERYBODY`:return a.ACCESS_TYPE_EVERYBODY;default:return a.UNRECOGNIZED}}e.accessTypeFromJSON=o;function s(e){switch(e){case a.ACCESS_TYPE_UNSPECIFIED:return`ACCESS_TYPE_UNSPECIFIED`;case a.ACCESS_TYPE_NOBODY:return`ACCESS_TYPE_NOBODY`;case a.ACCESS_TYPE_ONLY_ADDRESS:return`ACCESS_TYPE_ONLY_ADDRESS`;case a.ACCESS_TYPE_EVERYBODY:return`ACCESS_TYPE_EVERYBODY`;default:return`UNKNOWN`}}e.accessTypeToJSON=s;var c;(function(e){e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]=`CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED`,e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]=`CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT`,e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]=`CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE`,e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]=`CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(c=e.ContractCodeHistoryOperationType||={});function l(e){switch(e){case 0:case`CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED`:return c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED;case 1:case`CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT`:return c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT;case 2:case`CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE`:return c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE;case 3:case`CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS`:return c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS;default:return c.UNRECOGNIZED}}e.contractCodeHistoryOperationTypeFromJSON=l;function u(e){switch(e){case c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED:return`CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED`;case c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT:return`CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT`;case c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE:return`CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE`;case c.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS:return`CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS`;default:return`UNKNOWN`}}e.contractCodeHistoryOperationTypeToJSON=u;function d(){return{value:0}}e.AccessTypeParam={encode(e,t=r.default.Writer.create()){return e.value!==0&&t.uint32(8).int32(e.value),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.value=n.int32();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{value:T(e.value)?o(e.value):0}},toJSON(e){let t={};return e.value!==void 0&&(t.value=s(e.value)),t},fromPartial(e){let t=d();return t.value=e.value??0,t}};function f(){return{permission:0,address:``}}e.AccessConfig={encode(e,t=r.default.Writer.create()){return e.permission!==0&&t.uint32(8).int32(e.permission),e.address!==``&&t.uint32(18).string(e.address),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.permission=n.int32();break;case 2:a.address=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{permission:T(e.permission)?o(e.permission):0,address:T(e.address)?String(e.address):``}},toJSON(e){let t={};return e.permission!==void 0&&(t.permission=s(e.permission)),e.address!==void 0&&(t.address=e.address),t},fromPartial(e){let t=f();return t.permission=e.permission??0,t.address=e.address??``,t}};function p(){return{codeUploadAccess:void 0,instantiateDefaultPermission:0,maxWasmCodeSize:`0`}}e.Params={encode(t,n=r.default.Writer.create()){return t.codeUploadAccess!==void 0&&e.AccessConfig.encode(t.codeUploadAccess,n.uint32(10).fork()).ldelim(),t.instantiateDefaultPermission!==0&&n.uint32(16).int32(t.instantiateDefaultPermission),t.maxWasmCodeSize!==`0`&&n.uint32(24).uint64(t.maxWasmCodeSize),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=p();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.codeUploadAccess=e.AccessConfig.decode(i,i.uint32());break;case 2:o.instantiateDefaultPermission=i.int32();break;case 3:o.maxWasmCodeSize=w(i.uint64());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{codeUploadAccess:T(t.codeUploadAccess)?e.AccessConfig.fromJSON(t.codeUploadAccess):void 0,instantiateDefaultPermission:T(t.instantiateDefaultPermission)?o(t.instantiateDefaultPermission):0,maxWasmCodeSize:T(t.maxWasmCodeSize)?String(t.maxWasmCodeSize):`0`}},toJSON(t){let n={};return t.codeUploadAccess!==void 0&&(n.codeUploadAccess=t.codeUploadAccess?e.AccessConfig.toJSON(t.codeUploadAccess):void 0),t.instantiateDefaultPermission!==void 0&&(n.instantiateDefaultPermission=s(t.instantiateDefaultPermission)),t.maxWasmCodeSize!==void 0&&(n.maxWasmCodeSize=t.maxWasmCodeSize),n},fromPartial(t){let n=p();return n.codeUploadAccess=t.codeUploadAccess!==void 0&&t.codeUploadAccess!==null?e.AccessConfig.fromPartial(t.codeUploadAccess):void 0,n.instantiateDefaultPermission=t.instantiateDefaultPermission??0,n.maxWasmCodeSize=t.maxWasmCodeSize??`0`,n}};function m(){return{codeHash:new Uint8Array,creator:``,instantiateConfig:void 0}}e.CodeInfo={encode(t,n=r.default.Writer.create()){return t.codeHash.length!==0&&n.uint32(10).bytes(t.codeHash),t.creator!==``&&n.uint32(18).string(t.creator),t.instantiateConfig!==void 0&&e.AccessConfig.encode(t.instantiateConfig,n.uint32(42).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=m();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.codeHash=i.bytes();break;case 2:o.creator=i.string();break;case 5:o.instantiateConfig=e.AccessConfig.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{codeHash:T(t.codeHash)?x(t.codeHash):new Uint8Array,creator:T(t.creator)?String(t.creator):``,instantiateConfig:T(t.instantiateConfig)?e.AccessConfig.fromJSON(t.instantiateConfig):void 0}},toJSON(t){let n={};return t.codeHash!==void 0&&(n.codeHash=C(t.codeHash===void 0?new Uint8Array:t.codeHash)),t.creator!==void 0&&(n.creator=t.creator),t.instantiateConfig!==void 0&&(n.instantiateConfig=t.instantiateConfig?e.AccessConfig.toJSON(t.instantiateConfig):void 0),n},fromPartial(t){let n=m();return n.codeHash=t.codeHash??new Uint8Array,n.creator=t.creator??``,n.instantiateConfig=t.instantiateConfig!==void 0&&t.instantiateConfig!==null?e.AccessConfig.fromPartial(t.instantiateConfig):void 0,n}};function h(){return{codeId:`0`,creator:``,admin:``,label:``,created:void 0,ibcPortId:``,extension:void 0}}e.ContractInfo={encode(t,n=r.default.Writer.create()){return t.codeId!==`0`&&n.uint32(8).uint64(t.codeId),t.creator!==``&&n.uint32(18).string(t.creator),t.admin!==``&&n.uint32(26).string(t.admin),t.label!==``&&n.uint32(34).string(t.label),t.created!==void 0&&e.AbsoluteTxPosition.encode(t.created,n.uint32(42).fork()).ldelim(),t.ibcPortId!==``&&n.uint32(50).string(t.ibcPortId),t.extension!==void 0&&i.Any.encode(t.extension,n.uint32(58).fork()).ldelim(),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?a.len:a.pos+n,s=h();for(;a.pos<o;){let t=a.uint32();switch(t>>>3){case 1:s.codeId=w(a.uint64());break;case 2:s.creator=a.string();break;case 3:s.admin=a.string();break;case 4:s.label=a.string();break;case 5:s.created=e.AbsoluteTxPosition.decode(a,a.uint32());break;case 6:s.ibcPortId=a.string();break;case 7:s.extension=i.Any.decode(a,a.uint32());break;default:a.skipType(t&7)}}return s},fromJSON(t){return{codeId:T(t.codeId)?String(t.codeId):`0`,creator:T(t.creator)?String(t.creator):``,admin:T(t.admin)?String(t.admin):``,label:T(t.label)?String(t.label):``,created:T(t.created)?e.AbsoluteTxPosition.fromJSON(t.created):void 0,ibcPortId:T(t.ibcPortId)?String(t.ibcPortId):``,extension:T(t.extension)?i.Any.fromJSON(t.extension):void 0}},toJSON(t){let n={};return t.codeId!==void 0&&(n.codeId=t.codeId),t.creator!==void 0&&(n.creator=t.creator),t.admin!==void 0&&(n.admin=t.admin),t.label!==void 0&&(n.label=t.label),t.created!==void 0&&(n.created=t.created?e.AbsoluteTxPosition.toJSON(t.created):void 0),t.ibcPortId!==void 0&&(n.ibcPortId=t.ibcPortId),t.extension!==void 0&&(n.extension=t.extension?i.Any.toJSON(t.extension):void 0),n},fromPartial(t){let n=h();return n.codeId=t.codeId??`0`,n.creator=t.creator??``,n.admin=t.admin??``,n.label=t.label??``,n.created=t.created!==void 0&&t.created!==null?e.AbsoluteTxPosition.fromPartial(t.created):void 0,n.ibcPortId=t.ibcPortId??``,n.extension=t.extension!==void 0&&t.extension!==null?i.Any.fromPartial(t.extension):void 0,n}};function g(){return{operation:0,codeId:`0`,updated:void 0,msg:new Uint8Array}}e.ContractCodeHistoryEntry={encode(t,n=r.default.Writer.create()){return t.operation!==0&&n.uint32(8).int32(t.operation),t.codeId!==`0`&&n.uint32(16).uint64(t.codeId),t.updated!==void 0&&e.AbsoluteTxPosition.encode(t.updated,n.uint32(26).fork()).ldelim(),t.msg.length!==0&&n.uint32(34).bytes(t.msg),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=g();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.operation=i.int32();break;case 2:o.codeId=w(i.uint64());break;case 3:o.updated=e.AbsoluteTxPosition.decode(i,i.uint32());break;case 4:o.msg=i.bytes();break;default:i.skipType(t&7)}}return o},fromJSON(t){return{operation:T(t.operation)?l(t.operation):0,codeId:T(t.codeId)?String(t.codeId):`0`,updated:T(t.updated)?e.AbsoluteTxPosition.fromJSON(t.updated):void 0,msg:T(t.msg)?x(t.msg):new Uint8Array}},toJSON(t){let n={};return t.operation!==void 0&&(n.operation=u(t.operation)),t.codeId!==void 0&&(n.codeId=t.codeId),t.updated!==void 0&&(n.updated=t.updated?e.AbsoluteTxPosition.toJSON(t.updated):void 0),t.msg!==void 0&&(n.msg=C(t.msg===void 0?new Uint8Array:t.msg)),n},fromPartial(t){let n=g();return n.operation=t.operation??0,n.codeId=t.codeId??`0`,n.updated=t.updated!==void 0&&t.updated!==null?e.AbsoluteTxPosition.fromPartial(t.updated):void 0,n.msg=t.msg??new Uint8Array,n}};function _(){return{blockHeight:`0`,txIndex:`0`}}e.AbsoluteTxPosition={encode(e,t=r.default.Writer.create()){return e.blockHeight!==`0`&&t.uint32(8).uint64(e.blockHeight),e.txIndex!==`0`&&t.uint32(16).uint64(e.txIndex),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=_();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.blockHeight=w(n.uint64());break;case 2:a.txIndex=w(n.uint64());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{blockHeight:T(e.blockHeight)?String(e.blockHeight):`0`,txIndex:T(e.txIndex)?String(e.txIndex):`0`}},toJSON(e){let t={};return e.blockHeight!==void 0&&(t.blockHeight=e.blockHeight),e.txIndex!==void 0&&(t.txIndex=e.txIndex),t},fromPartial(e){let t=_();return t.blockHeight=e.blockHeight??`0`,t.txIndex=e.txIndex??`0`,t}};function v(){return{key:new Uint8Array,value:new Uint8Array}}e.Model={encode(e,t=r.default.Writer.create()){return e.key.length!==0&&t.uint32(10).bytes(e.key),e.value.length!==0&&t.uint32(18).bytes(e.value),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=v();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{key:T(e.key)?x(e.key):new Uint8Array,value:T(e.value)?x(e.value):new Uint8Array}},toJSON(e){let t={};return e.key!==void 0&&(t.key=C(e.key===void 0?new Uint8Array:e.key)),e.value!==void 0&&(t.value=C(e.value===void 0?new Uint8Array:e.value)),t},fromPartial(e){let t=v();return t.key=e.key??new Uint8Array,t.value=e.value??new Uint8Array,t}};var y=(()=>{if(y!==void 0)return y;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),b=y.atob||(e=>y.Buffer.from(e,`base64`).toString(`binary`));function x(e){let t=b(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var S=y.btoa||(e=>y.Buffer.from(e,`binary`).toString(`base64`));function C(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return S(t.join(``))}function w(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function T(e){return e!=null}})),lo=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),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;var n=t(K()),r=t(J()),i=co(),a=Wa();e.protobufPackage=`cosmwasm.wasm.v1`;function o(){return{sender:``,wasmByteCode:new Uint8Array,instantiatePermission:void 0}}e.MsgStoreCode={encode(e,t=r.default.Writer.create()){return e.sender!==``&&t.uint32(10).string(e.sender),e.wasmByteCode.length!==0&&t.uint32(18).bytes(e.wasmByteCode),e.instantiatePermission!==void 0&&i.AccessConfig.encode(e.instantiatePermission,t.uint32(42).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,s=o();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:s.sender=n.string();break;case 2:s.wasmByteCode=n.bytes();break;case 5:s.instantiatePermission=i.AccessConfig.decode(n,n.uint32());break;default:n.skipType(e&7)}}return s},fromJSON(e){return{sender:w(e.sender)?String(e.sender):``,wasmByteCode:w(e.wasmByteCode)?b(e.wasmByteCode):new Uint8Array,instantiatePermission:w(e.instantiatePermission)?i.AccessConfig.fromJSON(e.instantiatePermission):void 0}},toJSON(e){let t={};return e.sender!==void 0&&(t.sender=e.sender),e.wasmByteCode!==void 0&&(t.wasmByteCode=S(e.wasmByteCode===void 0?new Uint8Array:e.wasmByteCode)),e.instantiatePermission!==void 0&&(t.instantiatePermission=e.instantiatePermission?i.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial(e){let t=o();return t.sender=e.sender??``,t.wasmByteCode=e.wasmByteCode??new Uint8Array,t.instantiatePermission=e.instantiatePermission!==void 0&&e.instantiatePermission!==null?i.AccessConfig.fromPartial(e.instantiatePermission):void 0,t}};function s(){return{codeId:`0`}}e.MsgStoreCodeResponse={encode(e,t=r.default.Writer.create()){return e.codeId!==`0`&&t.uint32(8).uint64(e.codeId),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.codeId=C(n.uint64());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{codeId:w(e.codeId)?String(e.codeId):`0`}},toJSON(e){let t={};return e.codeId!==void 0&&(t.codeId=e.codeId),t},fromPartial(e){let t=s();return t.codeId=e.codeId??`0`,t}};function c(){return{sender:``,admin:``,codeId:`0`,label:``,msg:new Uint8Array,funds:[]}}e.MsgInstantiateContract={encode(e,t=r.default.Writer.create()){e.sender!==``&&t.uint32(10).string(e.sender),e.admin!==``&&t.uint32(18).string(e.admin),e.codeId!==`0`&&t.uint32(24).uint64(e.codeId),e.label!==``&&t.uint32(34).string(e.label),e.msg.length!==0&&t.uint32(42).bytes(e.msg);for(let n of e.funds)a.Coin.encode(n,t.uint32(50).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.sender=n.string();break;case 2:o.admin=n.string();break;case 3:o.codeId=C(n.uint64());break;case 4:o.label=n.string();break;case 5:o.msg=n.bytes();break;case 6:o.funds.push(a.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{sender:w(e.sender)?String(e.sender):``,admin:w(e.admin)?String(e.admin):``,codeId:w(e.codeId)?String(e.codeId):`0`,label:w(e.label)?String(e.label):``,msg:w(e.msg)?b(e.msg):new Uint8Array,funds:Array.isArray(e?.funds)?e.funds.map(e=>a.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return e.sender!==void 0&&(t.sender=e.sender),e.admin!==void 0&&(t.admin=e.admin),e.codeId!==void 0&&(t.codeId=e.codeId),e.label!==void 0&&(t.label=e.label),e.msg!==void 0&&(t.msg=S(e.msg===void 0?new Uint8Array:e.msg)),t.funds=e.funds?e.funds.map(e=>e?a.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=c();return t.sender=e.sender??``,t.admin=e.admin??``,t.codeId=e.codeId??`0`,t.label=e.label??``,t.msg=e.msg??new Uint8Array,t.funds=e.funds?.map(e=>a.Coin.fromPartial(e))||[],t}};function l(){return{address:``,data:new Uint8Array}}e.MsgInstantiateContractResponse={encode(e,t=r.default.Writer.create()){return e.address!==``&&t.uint32(10).string(e.address),e.data.length!==0&&t.uint32(18).bytes(e.data),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.address=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{address:w(e.address)?String(e.address):``,data:w(e.data)?b(e.data):new Uint8Array}},toJSON(e){let t={};return e.address!==void 0&&(t.address=e.address),e.data!==void 0&&(t.data=S(e.data===void 0?new Uint8Array:e.data)),t},fromPartial(e){let t=l();return t.address=e.address??``,t.data=e.data??new Uint8Array,t}};function u(){return{sender:``,contract:``,msg:new Uint8Array,funds:[]}}e.MsgExecuteContract={encode(e,t=r.default.Writer.create()){e.sender!==``&&t.uint32(10).string(e.sender),e.contract!==``&&t.uint32(18).string(e.contract),e.msg.length!==0&&t.uint32(26).bytes(e.msg);for(let n of e.funds)a.Coin.encode(n,t.uint32(42).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.sender=n.string();break;case 2:o.contract=n.string();break;case 3:o.msg=n.bytes();break;case 5:o.funds.push(a.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{sender:w(e.sender)?String(e.sender):``,contract:w(e.contract)?String(e.contract):``,msg:w(e.msg)?b(e.msg):new Uint8Array,funds:Array.isArray(e?.funds)?e.funds.map(e=>a.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return e.sender!==void 0&&(t.sender=e.sender),e.contract!==void 0&&(t.contract=e.contract),e.msg!==void 0&&(t.msg=S(e.msg===void 0?new Uint8Array:e.msg)),t.funds=e.funds?e.funds.map(e=>e?a.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=u();return t.sender=e.sender??``,t.contract=e.contract??``,t.msg=e.msg??new Uint8Array,t.funds=e.funds?.map(e=>a.Coin.fromPartial(e))||[],t}};function d(){return{data:new Uint8Array}}e.MsgExecuteContractResponse={encode(e,t=r.default.Writer.create()){return e.data.length!==0&&t.uint32(10).bytes(e.data),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.data=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{data:w(e.data)?b(e.data):new Uint8Array}},toJSON(e){let t={};return e.data!==void 0&&(t.data=S(e.data===void 0?new Uint8Array:e.data)),t},fromPartial(e){let t=d();return t.data=e.data??new Uint8Array,t}};function f(){return{sender:``,contract:``,codeId:`0`,msg:new Uint8Array}}e.MsgMigrateContract={encode(e,t=r.default.Writer.create()){return e.sender!==``&&t.uint32(10).string(e.sender),e.contract!==``&&t.uint32(18).string(e.contract),e.codeId!==`0`&&t.uint32(24).uint64(e.codeId),e.msg.length!==0&&t.uint32(34).bytes(e.msg),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.codeId=C(n.uint64());break;case 4:a.msg=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{sender:w(e.sender)?String(e.sender):``,contract:w(e.contract)?String(e.contract):``,codeId:w(e.codeId)?String(e.codeId):`0`,msg:w(e.msg)?b(e.msg):new Uint8Array}},toJSON(e){let t={};return e.sender!==void 0&&(t.sender=e.sender),e.contract!==void 0&&(t.contract=e.contract),e.codeId!==void 0&&(t.codeId=e.codeId),e.msg!==void 0&&(t.msg=S(e.msg===void 0?new Uint8Array:e.msg)),t},fromPartial(e){let t=f();return t.sender=e.sender??``,t.contract=e.contract??``,t.codeId=e.codeId??`0`,t.msg=e.msg??new Uint8Array,t}};function p(){return{data:new Uint8Array}}e.MsgMigrateContractResponse={encode(e,t=r.default.Writer.create()){return e.data.length!==0&&t.uint32(10).bytes(e.data),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=p();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.data=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{data:w(e.data)?b(e.data):new Uint8Array}},toJSON(e){let t={};return e.data!==void 0&&(t.data=S(e.data===void 0?new Uint8Array:e.data)),t},fromPartial(e){let t=p();return t.data=e.data??new Uint8Array,t}};function m(){return{sender:``,newAdmin:``,contract:``}}e.MsgUpdateAdmin={encode(e,t=r.default.Writer.create()){return e.sender!==``&&t.uint32(10).string(e.sender),e.newAdmin!==``&&t.uint32(18).string(e.newAdmin),e.contract!==``&&t.uint32(26).string(e.contract),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=m();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.sender=n.string();break;case 2:a.newAdmin=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{sender:w(e.sender)?String(e.sender):``,newAdmin:w(e.newAdmin)?String(e.newAdmin):``,contract:w(e.contract)?String(e.contract):``}},toJSON(e){let t={};return e.sender!==void 0&&(t.sender=e.sender),e.newAdmin!==void 0&&(t.newAdmin=e.newAdmin),e.contract!==void 0&&(t.contract=e.contract),t},fromPartial(e){let t=m();return t.sender=e.sender??``,t.newAdmin=e.newAdmin??``,t.contract=e.contract??``,t}};function h(){return{}}e.MsgUpdateAdminResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=h();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return h()}};function g(){return{sender:``,contract:``}}e.MsgClearAdmin={encode(e,t=r.default.Writer.create()){return e.sender!==``&&t.uint32(10).string(e.sender),e.contract!==``&&t.uint32(26).string(e.contract),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=g();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.sender=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{sender:w(e.sender)?String(e.sender):``,contract:w(e.contract)?String(e.contract):``}},toJSON(e){let t={};return e.sender!==void 0&&(t.sender=e.sender),e.contract!==void 0&&(t.contract=e.contract),t},fromPartial(e){let t=g();return t.sender=e.sender??``,t.contract=e.contract??``,t}};function _(){return{}}e.MsgClearAdminResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=_();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return _()}};var v=(()=>{if(v!==void 0)return v;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),y=v.atob||(e=>v.Buffer.from(e,`base64`).toString(`binary`));function b(e){let t=y(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var x=v.btoa||(e=>v.Buffer.from(e,`binary`).toString(`base64`));function S(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return x(t.join(``))}function C(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function w(e){return e!=null}})),uo=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.ModuleVersion=e.CancelSoftwareUpgradeProposal=e.SoftwareUpgradeProposal=e.Plan=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=qa(),a=$a();e.protobufPackage=`cosmos.upgrade.v1beta1`;function o(){return{name:``,time:void 0,height:`0`,info:``,upgradedClientState:void 0}}e.Plan={encode(e,t=r.default.Writer.create()){return e.name!==``&&t.uint32(10).string(e.name),e.time!==void 0&&i.Timestamp.encode(u(e.time),t.uint32(18).fork()).ldelim(),e.height!==`0`&&t.uint32(24).int64(e.height),e.info!==``&&t.uint32(34).string(e.info),e.upgradedClientState!==void 0&&a.Any.encode(e.upgradedClientState,t.uint32(42).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),s=t===void 0?n.len:n.pos+t,c=o();for(;n.pos<s;){let e=n.uint32();switch(e>>>3){case 1:c.name=n.string();break;case 2:c.time=d(i.Timestamp.decode(n,n.uint32()));break;case 3:c.height=p(n.int64());break;case 4:c.info=n.string();break;case 5:c.upgradedClientState=a.Any.decode(n,n.uint32());break;default:n.skipType(e&7)}}return c},fromJSON(e){return{name:m(e.name)?String(e.name):``,time:m(e.time)?f(e.time):void 0,height:m(e.height)?String(e.height):`0`,info:m(e.info)?String(e.info):``,upgradedClientState:m(e.upgradedClientState)?a.Any.fromJSON(e.upgradedClientState):void 0}},toJSON(e){let t={};return e.name!==void 0&&(t.name=e.name),e.time!==void 0&&(t.time=e.time.toISOString()),e.height!==void 0&&(t.height=e.height),e.info!==void 0&&(t.info=e.info),e.upgradedClientState!==void 0&&(t.upgradedClientState=e.upgradedClientState?a.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=o();return t.name=e.name??``,t.time=e.time??void 0,t.height=e.height??`0`,t.info=e.info??``,t.upgradedClientState=e.upgradedClientState!==void 0&&e.upgradedClientState!==null?a.Any.fromPartial(e.upgradedClientState):void 0,t}};function s(){return{title:``,description:``,plan:void 0}}e.SoftwareUpgradeProposal={encode(t,n=r.default.Writer.create()){return t.title!==``&&n.uint32(10).string(t.title),t.description!==``&&n.uint32(18).string(t.description),t.plan!==void 0&&e.Plan.encode(t.plan,n.uint32(26).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=s();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.title=i.string();break;case 2:o.description=i.string();break;case 3:o.plan=e.Plan.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{title:m(t.title)?String(t.title):``,description:m(t.description)?String(t.description):``,plan:m(t.plan)?e.Plan.fromJSON(t.plan):void 0}},toJSON(t){let n={};return t.title!==void 0&&(n.title=t.title),t.description!==void 0&&(n.description=t.description),t.plan!==void 0&&(n.plan=t.plan?e.Plan.toJSON(t.plan):void 0),n},fromPartial(t){let n=s();return n.title=t.title??``,n.description=t.description??``,n.plan=t.plan!==void 0&&t.plan!==null?e.Plan.fromPartial(t.plan):void 0,n}};function c(){return{title:``,description:``}}e.CancelSoftwareUpgradeProposal={encode(e,t=r.default.Writer.create()){return e.title!==``&&t.uint32(10).string(e.title),e.description!==``&&t.uint32(18).string(e.description),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=c();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{title:m(e.title)?String(e.title):``,description:m(e.description)?String(e.description):``}},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),t},fromPartial(e){let t=c();return t.title=e.title??``,t.description=e.description??``,t}};function l(){return{name:``,version:`0`}}e.ModuleVersion={encode(e,t=r.default.Writer.create()){return e.name!==``&&t.uint32(10).string(e.name),e.version!==`0`&&t.uint32(16).uint64(e.version),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.name=n.string();break;case 2:a.version=p(n.uint64());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{name:m(e.name)?String(e.name):``,version:m(e.version)?String(e.version):`0`}},toJSON(e){let t={};return e.name!==void 0&&(t.name=e.name),e.version!==void 0&&(t.version=e.version),t},fromPartial(e){let t=l();return t.name=e.name??``,t.version=e.version??`0`,t}};function u(e){return{seconds:Math.trunc(e.getTime()/1e3).toString(),nanos:e.getTime()%1e3*1e6}}function d(e){let t=Number(e.seconds)*1e3;return t+=e.nanos/1e6,new Date(t)}function f(e){return e instanceof Date?e:typeof e==`string`?new Date(e):d(i.Timestamp.fromJSON(e))}function p(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function m(e){return e!=null}})),fo=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.Params=e.Height=e.UpgradeProposal=e.ClientUpdateProposal=e.ClientConsensusStates=e.ConsensusStateWithHeight=e.IdentifiedClientState=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=$a(),a=uo();e.protobufPackage=`ibc.core.client.v1`;function o(){return{clientId:``,clientState:void 0}}e.IdentifiedClientState={encode(e,t=r.default.Writer.create()){return e.clientId!==``&&t.uint32(10).string(e.clientId),e.clientState!==void 0&&i.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,s=o();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:s.clientId=n.string();break;case 2:s.clientState=i.Any.decode(n,n.uint32());break;default:n.skipType(e&7)}}return s},fromJSON(e){return{clientId:m(e.clientId)?String(e.clientId):``,clientState:m(e.clientState)?i.Any.fromJSON(e.clientState):void 0}},toJSON(e){let t={};return e.clientId!==void 0&&(t.clientId=e.clientId),e.clientState!==void 0&&(t.clientState=e.clientState?i.Any.toJSON(e.clientState):void 0),t},fromPartial(e){let t=o();return t.clientId=e.clientId??``,t.clientState=e.clientState!==void 0&&e.clientState!==null?i.Any.fromPartial(e.clientState):void 0,t}};function s(){return{height:void 0,consensusState:void 0}}e.ConsensusStateWithHeight={encode(t,n=r.default.Writer.create()){return t.height!==void 0&&e.Height.encode(t.height,n.uint32(10).fork()).ldelim(),t.consensusState!==void 0&&i.Any.encode(t.consensusState,n.uint32(18).fork()).ldelim(),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?a.len:a.pos+n,c=s();for(;a.pos<o;){let t=a.uint32();switch(t>>>3){case 1:c.height=e.Height.decode(a,a.uint32());break;case 2:c.consensusState=i.Any.decode(a,a.uint32());break;default:a.skipType(t&7)}}return c},fromJSON(t){return{height:m(t.height)?e.Height.fromJSON(t.height):void 0,consensusState:m(t.consensusState)?i.Any.fromJSON(t.consensusState):void 0}},toJSON(t){let n={};return t.height!==void 0&&(n.height=t.height?e.Height.toJSON(t.height):void 0),t.consensusState!==void 0&&(n.consensusState=t.consensusState?i.Any.toJSON(t.consensusState):void 0),n},fromPartial(t){let n=s();return n.height=t.height!==void 0&&t.height!==null?e.Height.fromPartial(t.height):void 0,n.consensusState=t.consensusState!==void 0&&t.consensusState!==null?i.Any.fromPartial(t.consensusState):void 0,n}};function c(){return{clientId:``,consensusStates:[]}}e.ClientConsensusStates={encode(t,n=r.default.Writer.create()){t.clientId!==``&&n.uint32(10).string(t.clientId);for(let r of t.consensusStates)e.ConsensusStateWithHeight.encode(r,n.uint32(18).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=c();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.clientId=i.string();break;case 2:o.consensusStates.push(e.ConsensusStateWithHeight.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{clientId:m(t.clientId)?String(t.clientId):``,consensusStates:Array.isArray(t?.consensusStates)?t.consensusStates.map(t=>e.ConsensusStateWithHeight.fromJSON(t)):[]}},toJSON(t){let n={};return t.clientId!==void 0&&(n.clientId=t.clientId),n.consensusStates=t.consensusStates?t.consensusStates.map(t=>t?e.ConsensusStateWithHeight.toJSON(t):void 0):[],n},fromPartial(t){let n=c();return n.clientId=t.clientId??``,n.consensusStates=t.consensusStates?.map(t=>e.ConsensusStateWithHeight.fromPartial(t))||[],n}};function l(){return{title:``,description:``,subjectClientId:``,substituteClientId:``}}e.ClientUpdateProposal={encode(e,t=r.default.Writer.create()){return e.title!==``&&t.uint32(10).string(e.title),e.description!==``&&t.uint32(18).string(e.description),e.subjectClientId!==``&&t.uint32(26).string(e.subjectClientId),e.substituteClientId!==``&&t.uint32(34).string(e.substituteClientId),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.subjectClientId=n.string();break;case 4:a.substituteClientId=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{title:m(e.title)?String(e.title):``,description:m(e.description)?String(e.description):``,subjectClientId:m(e.subjectClientId)?String(e.subjectClientId):``,substituteClientId:m(e.substituteClientId)?String(e.substituteClientId):``}},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.subjectClientId!==void 0&&(t.subjectClientId=e.subjectClientId),e.substituteClientId!==void 0&&(t.substituteClientId=e.substituteClientId),t},fromPartial(e){let t=l();return t.title=e.title??``,t.description=e.description??``,t.subjectClientId=e.subjectClientId??``,t.substituteClientId=e.substituteClientId??``,t}};function u(){return{title:``,description:``,plan:void 0,upgradedClientState:void 0}}e.UpgradeProposal={encode(e,t=r.default.Writer.create()){return e.title!==``&&t.uint32(10).string(e.title),e.description!==``&&t.uint32(18).string(e.description),e.plan!==void 0&&a.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),e.upgradedClientState!==void 0&&i.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),o=t===void 0?n.len:n.pos+t,s=u();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.title=n.string();break;case 2:s.description=n.string();break;case 3:s.plan=a.Plan.decode(n,n.uint32());break;case 4:s.upgradedClientState=i.Any.decode(n,n.uint32());break;default:n.skipType(e&7)}}return s},fromJSON(e){return{title:m(e.title)?String(e.title):``,description:m(e.description)?String(e.description):``,plan:m(e.plan)?a.Plan.fromJSON(e.plan):void 0,upgradedClientState:m(e.upgradedClientState)?i.Any.fromJSON(e.upgradedClientState):void 0}},toJSON(e){let t={};return e.title!==void 0&&(t.title=e.title),e.description!==void 0&&(t.description=e.description),e.plan!==void 0&&(t.plan=e.plan?a.Plan.toJSON(e.plan):void 0),e.upgradedClientState!==void 0&&(t.upgradedClientState=e.upgradedClientState?i.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial(e){let t=u();return t.title=e.title??``,t.description=e.description??``,t.plan=e.plan!==void 0&&e.plan!==null?a.Plan.fromPartial(e.plan):void 0,t.upgradedClientState=e.upgradedClientState!==void 0&&e.upgradedClientState!==null?i.Any.fromPartial(e.upgradedClientState):void 0,t}};function d(){return{revisionNumber:`0`,revisionHeight:`0`}}e.Height={encode(e,t=r.default.Writer.create()){return e.revisionNumber!==`0`&&t.uint32(8).uint64(e.revisionNumber),e.revisionHeight!==`0`&&t.uint32(16).uint64(e.revisionHeight),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.revisionNumber=p(n.uint64());break;case 2:a.revisionHeight=p(n.uint64());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{revisionNumber:m(e.revisionNumber)?String(e.revisionNumber):`0`,revisionHeight:m(e.revisionHeight)?String(e.revisionHeight):`0`}},toJSON(e){let t={};return e.revisionNumber!==void 0&&(t.revisionNumber=e.revisionNumber),e.revisionHeight!==void 0&&(t.revisionHeight=e.revisionHeight),t},fromPartial(e){let t=d();return t.revisionNumber=e.revisionNumber??`0`,t.revisionHeight=e.revisionHeight??`0`,t}};function f(){return{allowedClients:[]}}e.Params={encode(e,t=r.default.Writer.create()){for(let n of e.allowedClients)t.uint32(10).string(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.allowedClients.push(n.string());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{allowedClients:Array.isArray(e?.allowedClients)?e.allowedClients.map(e=>String(e)):[]}},toJSON(e){let t={};return t.allowedClients=e.allowedClients?e.allowedClients.map(e=>e):[],t},fromPartial(e){let t=f();return t.allowedClients=e.allowedClients?.map(e=>e)||[],t}};function p(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function m(e){return e!=null}})),po=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.MsgTransferResponse=e.MsgTransfer=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=Wa(),a=fo();e.protobufPackage=`ibc.applications.transfer.v1`;function o(){return{sourcePort:``,sourceChannel:``,token:void 0,sender:``,receiver:``,timeoutHeight:void 0,timeoutTimestamp:`0`,memo:``}}e.MsgTransfer={encode(e,t=r.default.Writer.create()){return e.sourcePort!==``&&t.uint32(10).string(e.sourcePort),e.sourceChannel!==``&&t.uint32(18).string(e.sourceChannel),e.token!==void 0&&i.Coin.encode(e.token,t.uint32(26).fork()).ldelim(),e.sender!==``&&t.uint32(34).string(e.sender),e.receiver!==``&&t.uint32(42).string(e.receiver),e.timeoutHeight!==void 0&&a.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),e.timeoutTimestamp!==`0`&&t.uint32(56).uint64(e.timeoutTimestamp),e.memo!==``&&t.uint32(66).string(e.memo),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),s=t===void 0?n.len:n.pos+t,l=o();for(;n.pos<s;){let e=n.uint32();switch(e>>>3){case 1:l.sourcePort=n.string();break;case 2:l.sourceChannel=n.string();break;case 3:l.token=i.Coin.decode(n,n.uint32());break;case 4:l.sender=n.string();break;case 5:l.receiver=n.string();break;case 6:l.timeoutHeight=a.Height.decode(n,n.uint32());break;case 7:l.timeoutTimestamp=c(n.uint64());break;case 8:l.memo=n.string();break;default:n.skipType(e&7)}}return l},fromJSON(e){return{sourcePort:l(e.sourcePort)?String(e.sourcePort):``,sourceChannel:l(e.sourceChannel)?String(e.sourceChannel):``,token:l(e.token)?i.Coin.fromJSON(e.token):void 0,sender:l(e.sender)?String(e.sender):``,receiver:l(e.receiver)?String(e.receiver):``,timeoutHeight:l(e.timeoutHeight)?a.Height.fromJSON(e.timeoutHeight):void 0,timeoutTimestamp:l(e.timeoutTimestamp)?String(e.timeoutTimestamp):`0`,memo:l(e.memo)?String(e.memo):``}},toJSON(e){let t={};return e.sourcePort!==void 0&&(t.sourcePort=e.sourcePort),e.sourceChannel!==void 0&&(t.sourceChannel=e.sourceChannel),e.token!==void 0&&(t.token=e.token?i.Coin.toJSON(e.token):void 0),e.sender!==void 0&&(t.sender=e.sender),e.receiver!==void 0&&(t.receiver=e.receiver),e.timeoutHeight!==void 0&&(t.timeoutHeight=e.timeoutHeight?a.Height.toJSON(e.timeoutHeight):void 0),e.timeoutTimestamp!==void 0&&(t.timeoutTimestamp=e.timeoutTimestamp),e.memo!==void 0&&(t.memo=e.memo),t},fromPartial(e){let t=o();return t.sourcePort=e.sourcePort??``,t.sourceChannel=e.sourceChannel??``,t.token=e.token!==void 0&&e.token!==null?i.Coin.fromPartial(e.token):void 0,t.sender=e.sender??``,t.receiver=e.receiver??``,t.timeoutHeight=e.timeoutHeight!==void 0&&e.timeoutHeight!==null?a.Height.fromPartial(e.timeoutHeight):void 0,t.timeoutTimestamp=e.timeoutTimestamp??`0`,t.memo=e.memo??``,t}};function s(){return{}}e.MsgTransferResponse={encode(e,t=r.default.Writer.create()){return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=s();for(;n.pos<i;){let e=n.uint32();e>>>3,n.skipType(e&7)}return a},fromJSON(e){return{}},toJSON(e){return{}},fromPartial(e){return s()}};function c(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function l(e){return e!=null}})),mo=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UnknownMessage=void 0;var t=le();e.UnknownMessage=class{constructor(e,t){this._typeUrl=e,this._value=t}get typeUrl(){return this._typeUrl}get value(){return this._value}toJSON(){return{typeUrl:this._typeUrl,value:t.Buffer.from(this._value).toString(`base64`)}}}})),ho=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.StakeAuthorization_Validators=e.StakeAuthorization=e.authorizationTypeToJSON=e.authorizationTypeFromJSON=e.AuthorizationType=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=Wa();e.protobufPackage=`cosmos.staking.v1beta1`;var a;(function(e){e[e.AUTHORIZATION_TYPE_UNSPECIFIED=0]=`AUTHORIZATION_TYPE_UNSPECIFIED`,e[e.AUTHORIZATION_TYPE_DELEGATE=1]=`AUTHORIZATION_TYPE_DELEGATE`,e[e.AUTHORIZATION_TYPE_UNDELEGATE=2]=`AUTHORIZATION_TYPE_UNDELEGATE`,e[e.AUTHORIZATION_TYPE_REDELEGATE=3]=`AUTHORIZATION_TYPE_REDELEGATE`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(a=e.AuthorizationType||={});function o(e){switch(e){case 0:case`AUTHORIZATION_TYPE_UNSPECIFIED`:return a.AUTHORIZATION_TYPE_UNSPECIFIED;case 1:case`AUTHORIZATION_TYPE_DELEGATE`:return a.AUTHORIZATION_TYPE_DELEGATE;case 2:case`AUTHORIZATION_TYPE_UNDELEGATE`:return a.AUTHORIZATION_TYPE_UNDELEGATE;case 3:case`AUTHORIZATION_TYPE_REDELEGATE`:return a.AUTHORIZATION_TYPE_REDELEGATE;default:return a.UNRECOGNIZED}}e.authorizationTypeFromJSON=o;function s(e){switch(e){case a.AUTHORIZATION_TYPE_UNSPECIFIED:return`AUTHORIZATION_TYPE_UNSPECIFIED`;case a.AUTHORIZATION_TYPE_DELEGATE:return`AUTHORIZATION_TYPE_DELEGATE`;case a.AUTHORIZATION_TYPE_UNDELEGATE:return`AUTHORIZATION_TYPE_UNDELEGATE`;case a.AUTHORIZATION_TYPE_REDELEGATE:return`AUTHORIZATION_TYPE_REDELEGATE`;default:return`UNKNOWN`}}e.authorizationTypeToJSON=s;function c(){return{maxTokens:void 0,allowList:void 0,denyList:void 0,authorizationType:0}}e.StakeAuthorization={encode(t,n=r.default.Writer.create()){return t.maxTokens!==void 0&&i.Coin.encode(t.maxTokens,n.uint32(10).fork()).ldelim(),t.allowList!==void 0&&e.StakeAuthorization_Validators.encode(t.allowList,n.uint32(18).fork()).ldelim(),t.denyList!==void 0&&e.StakeAuthorization_Validators.encode(t.denyList,n.uint32(26).fork()).ldelim(),t.authorizationType!==0&&n.uint32(32).int32(t.authorizationType),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?a.len:a.pos+n,s=c();for(;a.pos<o;){let t=a.uint32();switch(t>>>3){case 1:s.maxTokens=i.Coin.decode(a,a.uint32());break;case 2:s.allowList=e.StakeAuthorization_Validators.decode(a,a.uint32());break;case 3:s.denyList=e.StakeAuthorization_Validators.decode(a,a.uint32());break;case 4:s.authorizationType=a.int32();break;default:a.skipType(t&7)}}return s},fromJSON(t){return{maxTokens:u(t.maxTokens)?i.Coin.fromJSON(t.maxTokens):void 0,allowList:u(t.allowList)?e.StakeAuthorization_Validators.fromJSON(t.allowList):void 0,denyList:u(t.denyList)?e.StakeAuthorization_Validators.fromJSON(t.denyList):void 0,authorizationType:u(t.authorizationType)?o(t.authorizationType):0}},toJSON(t){let n={};return t.maxTokens!==void 0&&(n.maxTokens=t.maxTokens?i.Coin.toJSON(t.maxTokens):void 0),t.allowList!==void 0&&(n.allowList=t.allowList?e.StakeAuthorization_Validators.toJSON(t.allowList):void 0),t.denyList!==void 0&&(n.denyList=t.denyList?e.StakeAuthorization_Validators.toJSON(t.denyList):void 0),t.authorizationType!==void 0&&(n.authorizationType=s(t.authorizationType)),n},fromPartial(t){let n=c();return n.maxTokens=t.maxTokens!==void 0&&t.maxTokens!==null?i.Coin.fromPartial(t.maxTokens):void 0,n.allowList=t.allowList!==void 0&&t.allowList!==null?e.StakeAuthorization_Validators.fromPartial(t.allowList):void 0,n.denyList=t.denyList!==void 0&&t.denyList!==null?e.StakeAuthorization_Validators.fromPartial(t.denyList):void 0,n.authorizationType=t.authorizationType??0,n}};function l(){return{address:[]}}e.StakeAuthorization_Validators={encode(e,t=r.default.Writer.create()){for(let n of e.address)t.uint32(10).string(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.address.push(n.string());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{address:Array.isArray(e?.address)?e.address.map(e=>String(e)):[]}},toJSON(e){let t={};return t.address=e.address?e.address.map(e=>e):[],t},fromPartial(e){let t=l();return t.address=e.address?.map(e=>e)||[],t}},r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function u(e){return e!=null}})),go=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.SendAuthorization=e.protobufPackage=void 0;var n=t(K()),r=t(J()),i=Wa();e.protobufPackage=`cosmos.bank.v1beta1`;function a(){return{spendLimit:[]}}e.SendAuthorization={encode(e,t=r.default.Writer.create()){for(let n of e.spendLimit)i.Coin.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),o=t===void 0?n.len:n.pos+t,s=a();for(;n.pos<o;){let e=n.uint32();switch(e>>>3){case 1:s.spendLimit.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return s},fromJSON(e){return{spendLimit:Array.isArray(e?.spendLimit)?e.spendLimit.map(e=>i.Coin.fromJSON(e)):[]}},toJSON(e){let t={};return t.spendLimit=e.spendLimit?e.spendLimit.map(e=>e?i.Coin.toJSON(e):void 0):[],t},fromPartial(e){let t=a();return t.spendLimit=e.spendLimit?.map(e=>i.Coin.fromPartial(e))||[],t}},r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure())})),_o=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultProtoCodec=e.ProtoCodec=void 0;var r=Ua(),i=Ka(),a=no(),o=io(),s=oo(),c=so(),l=lo(),u=po(),d=mo(),f=ro(),p=ho(),m=go(),h=le();n(mo(),e);var g=class{constructor(){this.typeUrlMap=new Map}unpackAnyFactory(e){if(this.typeUrlMap.has(e))return this.typeUrlMap.get(e)}unpackAny(e){let t=this.unpackAnyFactory(e.typeUrl);if(!t)return new d.UnknownMessage(e.typeUrl,e.value);let n=t.decode(e.value);return Object.assign(Object.assign({},e),{unpacked:n})}unpackedAnyToJSONRecursive(e){if(e instanceof d.UnknownMessage)return e.toJSON();let t=this.unpackAnyFactory(e.typeUrl);if(t&&`unpacked`in e&&e.unpacked){let n=e=>{let t=typeof e==`object`&&!(e instanceof d.UnknownMessage)&&`typeUrl`in e&&e.typeUrl&&typeof e.typeUrl==`string`&&`value`in e&&e.value&&typeof e.value==`string`;if(t)try{h.Buffer.from(e.value,`base64`)}catch{return!1}return t},r=e=>{let t=this.unpackAnyFactory(e.typeUrl),n=h.Buffer.from(e.value,`base64`);if(!t)return new d.UnknownMessage(e.typeUrl,n).toJSON();let r=t.decode(n);return{typeUrl:e.typeUrl,value:t.toJSON(r)}},i=e=>{if(Array.isArray(e))for(let t=0;t<e.length;t++){let a=e[t];n(a)?e[t]=r(a):typeof a==`object`&&(e[t]=i(a))}else for(let t in e){let a=e[t];n(a)?e[t]=r(a):typeof a==`object`&&(e[t]=i(a))}return e},a=t.toJSON(e.unpacked);if(a&&typeof a==`object`)return a=i(a),{typeUrl:e.typeUrl,value:a}}return new d.UnknownMessage(e.typeUrl,e.value).toJSON()}registerAny(e,t){this.typeUrlMap.set(e,t)}};e.ProtoCodec=g,e.defaultProtoCodec=new g,e.defaultProtoCodec.registerAny(`/agoric.swingset.MsgWalletSpendAction`,r.MsgWalletSpendAction),e.defaultProtoCodec.registerAny(`/agoric.swingset.MsgProvision`,r.MsgProvision),e.defaultProtoCodec.registerAny(`/cosmos.bank.v1beta1.MsgSend`,i.MsgSend),e.defaultProtoCodec.registerAny(`/cosmos.bank.v1beta1.MsgMultiSend`,i.MsgMultiSend),e.defaultProtoCodec.registerAny(`/cosmos.staking.v1beta1.MsgDelegate`,a.MsgDelegate),e.defaultProtoCodec.registerAny(`/cosmos.staking.v1beta1.MsgUndelegate`,a.MsgUndelegate),e.defaultProtoCodec.registerAny(`/cosmos.staking.v1beta1.MsgBeginRedelegate`,a.MsgBeginRedelegate),e.defaultProtoCodec.registerAny(`/cosmwasm.wasm.v1.MsgExecuteContract`,l.MsgExecuteContract),e.defaultProtoCodec.registerAny(`/cosmwasm.wasm.v1.MsgInstantiateContract`,l.MsgInstantiateContract),e.defaultProtoCodec.registerAny(`/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward`,c.MsgWithdrawDelegatorReward),e.defaultProtoCodec.registerAny(`/cosmos.distribution.v1beta1.MsgSetWithdrawAddress`,c.MsgSetWithdrawAddress),e.defaultProtoCodec.registerAny(`/ibc.applications.transfer.v1.MsgTransfer`,u.MsgTransfer),e.defaultProtoCodec.registerAny(`/cosmos.gov.v1beta1.MsgVote`,s.MsgVote),e.defaultProtoCodec.registerAny(`/cosmos.authz.v1beta1.MsgGrant`,o.MsgGrant),e.defaultProtoCodec.registerAny(`/cosmos.authz.v1beta1.GenericAuthorization`,f.GenericAuthorization),e.defaultProtoCodec.registerAny(`/cosmos.staking.v1beta1.StakeAuthorization`,p.StakeAuthorization),e.defaultProtoCodec.registerAny(`/cosmos.bank.v1beta1.SendAuthorization`,m.SendAuthorization),e.defaultProtoCodec.registerAny(`/cosmos.authz.v1beta1.MsgRevoke`,o.MsgRevoke),e.defaultProtoCodec.registerAny(`/cosmos.authz.v1beta1.MsgExec`,o.MsgExec)})),vo=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.CompactBitArray=e.MultiSignature=e.protobufPackage=void 0;var n=t(K()),r=t(J());e.protobufPackage=`cosmos.crypto.multisig.v1beta1`;function i(){return{signatures:[]}}e.MultiSignature={encode(e,t=r.default.Writer.create()){for(let n of e.signatures)t.uint32(10).bytes(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),a=t===void 0?n.len:n.pos+t,o=i();for(;n.pos<a;){let e=n.uint32();switch(e>>>3){case 1:o.signatures.push(n.bytes());break;default:n.skipType(e&7)}}return o},fromJSON(e){return{signatures:Array.isArray(e?.signatures)?e.signatures.map(e=>c(e)):[]}},toJSON(e){let t={};return t.signatures=e.signatures?e.signatures.map(e=>u(e===void 0?new Uint8Array:e)):[],t},fromPartial(e){let t=i();return t.signatures=e.signatures?.map(e=>e)||[],t}};function a(){return{extraBitsStored:0,elems:new Uint8Array}}e.CompactBitArray={encode(e,t=r.default.Writer.create()){return e.extraBitsStored!==0&&t.uint32(8).uint32(e.extraBitsStored),e.elems.length!==0&&t.uint32(18).bytes(e.elems),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=a();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.extraBitsStored=n.uint32();break;case 2:o.elems=n.bytes();break;default:n.skipType(e&7)}}return o},fromJSON(e){return{extraBitsStored:d(e.extraBitsStored)?Number(e.extraBitsStored):0,elems:d(e.elems)?c(e.elems):new Uint8Array}},toJSON(e){let t={};return e.extraBitsStored!==void 0&&(t.extraBitsStored=Math.round(e.extraBitsStored)),e.elems!==void 0&&(t.elems=u(e.elems===void 0?new Uint8Array:e.elems)),t},fromPartial(e){let t=a();return t.extraBitsStored=e.extraBitsStored??0,t.elems=e.elems??new Uint8Array,t}};var o=(()=>{if(o!==void 0)return o;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),s=o.atob||(e=>o.Buffer.from(e,`base64`).toString(`binary`));function c(e){let t=s(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var l=o.btoa||(e=>o.Buffer.from(e,`binary`).toString(`base64`));function u(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return l(t.join(``))}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function d(e){return e!=null}})),yo=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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;var n=t(K()),r=t(J()),i=$a(),a=vo();e.protobufPackage=`cosmos.tx.signing.v1beta1`;var o;(function(e){e[e.SIGN_MODE_UNSPECIFIED=0]=`SIGN_MODE_UNSPECIFIED`,e[e.SIGN_MODE_DIRECT=1]=`SIGN_MODE_DIRECT`,e[e.SIGN_MODE_TEXTUAL=2]=`SIGN_MODE_TEXTUAL`,e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]=`SIGN_MODE_LEGACY_AMINO_JSON`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`})(o=e.SignMode||={});function s(e){switch(e){case 0:case`SIGN_MODE_UNSPECIFIED`:return o.SIGN_MODE_UNSPECIFIED;case 1:case`SIGN_MODE_DIRECT`:return o.SIGN_MODE_DIRECT;case 2:case`SIGN_MODE_TEXTUAL`:return o.SIGN_MODE_TEXTUAL;case 127:case`SIGN_MODE_LEGACY_AMINO_JSON`:return o.SIGN_MODE_LEGACY_AMINO_JSON;default:return o.UNRECOGNIZED}}e.signModeFromJSON=s;function c(e){switch(e){case o.SIGN_MODE_UNSPECIFIED:return`SIGN_MODE_UNSPECIFIED`;case o.SIGN_MODE_DIRECT:return`SIGN_MODE_DIRECT`;case o.SIGN_MODE_TEXTUAL:return`SIGN_MODE_TEXTUAL`;case o.SIGN_MODE_LEGACY_AMINO_JSON:return`SIGN_MODE_LEGACY_AMINO_JSON`;default:return`UNKNOWN`}}e.signModeToJSON=c;function l(){return{signatures:[]}}e.SignatureDescriptors={encode(t,n=r.default.Writer.create()){for(let r of t.signatures)e.SignatureDescriptor.encode(r,n.uint32(10).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=l();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.signatures.push(e.SignatureDescriptor.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return o},fromJSON(t){return{signatures:Array.isArray(t?.signatures)?t.signatures.map(t=>e.SignatureDescriptor.fromJSON(t)):[]}},toJSON(t){let n={};return n.signatures=t.signatures?t.signatures.map(t=>t?e.SignatureDescriptor.toJSON(t):void 0):[],n},fromPartial(t){let n=l();return n.signatures=t.signatures?.map(t=>e.SignatureDescriptor.fromPartial(t))||[],n}};function u(){return{publicKey:void 0,data:void 0,sequence:`0`}}e.SignatureDescriptor={encode(t,n=r.default.Writer.create()){return t.publicKey!==void 0&&i.Any.encode(t.publicKey,n.uint32(10).fork()).ldelim(),t.data!==void 0&&e.SignatureDescriptor_Data.encode(t.data,n.uint32(18).fork()).ldelim(),t.sequence!==`0`&&n.uint32(24).uint64(t.sequence),n},decode(t,n){let a=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?a.len:a.pos+n,s=u();for(;a.pos<o;){let t=a.uint32();switch(t>>>3){case 1:s.publicKey=i.Any.decode(a,a.uint32());break;case 2:s.data=e.SignatureDescriptor_Data.decode(a,a.uint32());break;case 3:s.sequence=y(a.uint64());break;default:a.skipType(t&7)}}return s},fromJSON(t){return{publicKey:b(t.publicKey)?i.Any.fromJSON(t.publicKey):void 0,data:b(t.data)?e.SignatureDescriptor_Data.fromJSON(t.data):void 0,sequence:b(t.sequence)?String(t.sequence):`0`}},toJSON(t){let n={};return t.publicKey!==void 0&&(n.publicKey=t.publicKey?i.Any.toJSON(t.publicKey):void 0),t.data!==void 0&&(n.data=t.data?e.SignatureDescriptor_Data.toJSON(t.data):void 0),t.sequence!==void 0&&(n.sequence=t.sequence),n},fromPartial(t){let n=u();return n.publicKey=t.publicKey!==void 0&&t.publicKey!==null?i.Any.fromPartial(t.publicKey):void 0,n.data=t.data!==void 0&&t.data!==null?e.SignatureDescriptor_Data.fromPartial(t.data):void 0,n.sequence=t.sequence??`0`,n}};function d(){return{single:void 0,multi:void 0}}e.SignatureDescriptor_Data={encode(t,n=r.default.Writer.create()){return t.single!==void 0&&e.SignatureDescriptor_Data_Single.encode(t.single,n.uint32(10).fork()).ldelim(),t.multi!==void 0&&e.SignatureDescriptor_Data_Multi.encode(t.multi,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=d();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.single=e.SignatureDescriptor_Data_Single.decode(i,i.uint32());break;case 2:o.multi=e.SignatureDescriptor_Data_Multi.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{single:b(t.single)?e.SignatureDescriptor_Data_Single.fromJSON(t.single):void 0,multi:b(t.multi)?e.SignatureDescriptor_Data_Multi.fromJSON(t.multi):void 0}},toJSON(t){let n={};return t.single!==void 0&&(n.single=t.single?e.SignatureDescriptor_Data_Single.toJSON(t.single):void 0),t.multi!==void 0&&(n.multi=t.multi?e.SignatureDescriptor_Data_Multi.toJSON(t.multi):void 0),n},fromPartial(t){let n=d();return n.single=t.single!==void 0&&t.single!==null?e.SignatureDescriptor_Data_Single.fromPartial(t.single):void 0,n.multi=t.multi!==void 0&&t.multi!==null?e.SignatureDescriptor_Data_Multi.fromPartial(t.multi):void 0,n}};function f(){return{mode:0,signature:new Uint8Array}}e.SignatureDescriptor_Data_Single={encode(e,t=r.default.Writer.create()){return e.mode!==0&&t.uint32(8).int32(e.mode),e.signature.length!==0&&t.uint32(18).bytes(e.signature),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=f();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.mode=n.int32();break;case 2:a.signature=n.bytes();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{mode:b(e.mode)?s(e.mode):0,signature:b(e.signature)?g(e.signature):new Uint8Array}},toJSON(e){let t={};return e.mode!==void 0&&(t.mode=c(e.mode)),e.signature!==void 0&&(t.signature=v(e.signature===void 0?new Uint8Array:e.signature)),t},fromPartial(e){let t=f();return t.mode=e.mode??0,t.signature=e.signature??new Uint8Array,t}};function p(){return{bitarray:void 0,signatures:[]}}e.SignatureDescriptor_Data_Multi={encode(t,n=r.default.Writer.create()){t.bitarray!==void 0&&a.CompactBitArray.encode(t.bitarray,n.uint32(10).fork()).ldelim();for(let r of t.signatures)e.SignatureDescriptor_Data.encode(r,n.uint32(18).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?i.len:i.pos+n,s=p();for(;i.pos<o;){let t=i.uint32();switch(t>>>3){case 1:s.bitarray=a.CompactBitArray.decode(i,i.uint32());break;case 2:s.signatures.push(e.SignatureDescriptor_Data.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return s},fromJSON(t){return{bitarray:b(t.bitarray)?a.CompactBitArray.fromJSON(t.bitarray):void 0,signatures:Array.isArray(t?.signatures)?t.signatures.map(t=>e.SignatureDescriptor_Data.fromJSON(t)):[]}},toJSON(t){let n={};return t.bitarray!==void 0&&(n.bitarray=t.bitarray?a.CompactBitArray.toJSON(t.bitarray):void 0),n.signatures=t.signatures?t.signatures.map(t=>t?e.SignatureDescriptor_Data.toJSON(t):void 0):[],n},fromPartial(t){let n=p();return n.bitarray=t.bitarray!==void 0&&t.bitarray!==null?a.CompactBitArray.fromPartial(t.bitarray):void 0,n.signatures=t.signatures?.map(t=>e.SignatureDescriptor_Data.fromPartial(t))||[],n}};var m=(()=>{if(m!==void 0)return m;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),h=m.atob||(e=>m.Buffer.from(e,`base64`).toString(`binary`));function g(e){let t=h(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var _=m.btoa||(e=>m.Buffer.from(e,`binary`).toString(`base64`));function v(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return _(t.join(``))}function y(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function b(e){return e!=null}})),bo=a((e=>{B();var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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.protobufPackage=void 0;var n=t(K()),r=t(J()),i=yo(),a=$a(),o=vo(),s=Wa();e.protobufPackage=`cosmos.tx.v1beta1`;function c(){return{body:void 0,authInfo:void 0,signatures:[]}}e.Tx={encode(t,n=r.default.Writer.create()){t.body!==void 0&&e.TxBody.encode(t.body,n.uint32(10).fork()).ldelim(),t.authInfo!==void 0&&e.AuthInfo.encode(t.authInfo,n.uint32(18).fork()).ldelim();for(let e of t.signatures)n.uint32(26).bytes(e);return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=c();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.body=e.TxBody.decode(i,i.uint32());break;case 2:o.authInfo=e.AuthInfo.decode(i,i.uint32());break;case 3:o.signatures.push(i.bytes());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{body:w(t.body)?e.TxBody.fromJSON(t.body):void 0,authInfo:w(t.authInfo)?e.AuthInfo.fromJSON(t.authInfo):void 0,signatures:Array.isArray(t?.signatures)?t.signatures.map(e=>b(e)):[]}},toJSON(t){let n={};return t.body!==void 0&&(n.body=t.body?e.TxBody.toJSON(t.body):void 0),t.authInfo!==void 0&&(n.authInfo=t.authInfo?e.AuthInfo.toJSON(t.authInfo):void 0),n.signatures=t.signatures?t.signatures.map(e=>S(e===void 0?new Uint8Array:e)):[],n},fromPartial(t){let n=c();return n.body=t.body!==void 0&&t.body!==null?e.TxBody.fromPartial(t.body):void 0,n.authInfo=t.authInfo!==void 0&&t.authInfo!==null?e.AuthInfo.fromPartial(t.authInfo):void 0,n.signatures=t.signatures?.map(e=>e)||[],n}};function l(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}e.TxRaw={encode(e,t=r.default.Writer.create()){e.bodyBytes.length!==0&&t.uint32(10).bytes(e.bodyBytes),e.authInfoBytes.length!==0&&t.uint32(18).bytes(e.authInfoBytes);for(let n of e.signatures)t.uint32(26).bytes(n);return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=l();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.signatures.push(n.bytes());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{bodyBytes:w(e.bodyBytes)?b(e.bodyBytes):new Uint8Array,authInfoBytes:w(e.authInfoBytes)?b(e.authInfoBytes):new Uint8Array,signatures:Array.isArray(e?.signatures)?e.signatures.map(e=>b(e)):[]}},toJSON(e){let t={};return e.bodyBytes!==void 0&&(t.bodyBytes=S(e.bodyBytes===void 0?new Uint8Array:e.bodyBytes)),e.authInfoBytes!==void 0&&(t.authInfoBytes=S(e.authInfoBytes===void 0?new Uint8Array:e.authInfoBytes)),t.signatures=e.signatures?e.signatures.map(e=>S(e===void 0?new Uint8Array:e)):[],t},fromPartial(e){let t=l();return t.bodyBytes=e.bodyBytes??new Uint8Array,t.authInfoBytes=e.authInfoBytes??new Uint8Array,t.signatures=e.signatures?.map(e=>e)||[],t}};function u(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:``,accountNumber:`0`}}e.SignDoc={encode(e,t=r.default.Writer.create()){return e.bodyBytes.length!==0&&t.uint32(10).bytes(e.bodyBytes),e.authInfoBytes.length!==0&&t.uint32(18).bytes(e.authInfoBytes),e.chainId!==``&&t.uint32(26).string(e.chainId),e.accountNumber!==`0`&&t.uint32(32).uint64(e.accountNumber),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=u();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.chainId=n.string();break;case 4:a.accountNumber=C(n.uint64());break;default:n.skipType(e&7)}}return a},fromJSON(e){return{bodyBytes:w(e.bodyBytes)?b(e.bodyBytes):new Uint8Array,authInfoBytes:w(e.authInfoBytes)?b(e.authInfoBytes):new Uint8Array,chainId:w(e.chainId)?String(e.chainId):``,accountNumber:w(e.accountNumber)?String(e.accountNumber):`0`}},toJSON(e){let t={};return e.bodyBytes!==void 0&&(t.bodyBytes=S(e.bodyBytes===void 0?new Uint8Array:e.bodyBytes)),e.authInfoBytes!==void 0&&(t.authInfoBytes=S(e.authInfoBytes===void 0?new Uint8Array:e.authInfoBytes)),e.chainId!==void 0&&(t.chainId=e.chainId),e.accountNumber!==void 0&&(t.accountNumber=e.accountNumber),t},fromPartial(e){let t=u();return t.bodyBytes=e.bodyBytes??new Uint8Array,t.authInfoBytes=e.authInfoBytes??new Uint8Array,t.chainId=e.chainId??``,t.accountNumber=e.accountNumber??`0`,t}};function d(){return{messages:[],memo:``,timeoutHeight:`0`,extensionOptions:[],nonCriticalExtensionOptions:[]}}e.TxBody={encode(e,t=r.default.Writer.create()){for(let n of e.messages)a.Any.encode(n,t.uint32(10).fork()).ldelim();e.memo!==``&&t.uint32(18).string(e.memo),e.timeoutHeight!==`0`&&t.uint32(24).uint64(e.timeoutHeight);for(let n of e.extensionOptions)a.Any.encode(n,t.uint32(8186).fork()).ldelim();for(let n of e.nonCriticalExtensionOptions)a.Any.encode(n,t.uint32(16378).fork()).ldelim();return t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,o=d();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:o.messages.push(a.Any.decode(n,n.uint32()));break;case 2:o.memo=n.string();break;case 3:o.timeoutHeight=C(n.uint64());break;case 1023:o.extensionOptions.push(a.Any.decode(n,n.uint32()));break;case 2047:o.nonCriticalExtensionOptions.push(a.Any.decode(n,n.uint32()));break;default:n.skipType(e&7)}}return o},fromJSON(e){return{messages:Array.isArray(e?.messages)?e.messages.map(e=>a.Any.fromJSON(e)):[],memo:w(e.memo)?String(e.memo):``,timeoutHeight:w(e.timeoutHeight)?String(e.timeoutHeight):`0`,extensionOptions:Array.isArray(e?.extensionOptions)?e.extensionOptions.map(e=>a.Any.fromJSON(e)):[],nonCriticalExtensionOptions:Array.isArray(e?.nonCriticalExtensionOptions)?e.nonCriticalExtensionOptions.map(e=>a.Any.fromJSON(e)):[]}},toJSON(e){let t={};return t.messages=e.messages?e.messages.map(e=>e?a.Any.toJSON(e):void 0):[],e.memo!==void 0&&(t.memo=e.memo),e.timeoutHeight!==void 0&&(t.timeoutHeight=e.timeoutHeight),t.extensionOptions=e.extensionOptions?e.extensionOptions.map(e=>e?a.Any.toJSON(e):void 0):[],t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions?e.nonCriticalExtensionOptions.map(e=>e?a.Any.toJSON(e):void 0):[],t},fromPartial(e){let t=d();return t.messages=e.messages?.map(e=>a.Any.fromPartial(e))||[],t.memo=e.memo??``,t.timeoutHeight=e.timeoutHeight??`0`,t.extensionOptions=e.extensionOptions?.map(e=>a.Any.fromPartial(e))||[],t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions?.map(e=>a.Any.fromPartial(e))||[],t}};function f(){return{signerInfos:[],fee:void 0}}e.AuthInfo={encode(t,n=r.default.Writer.create()){for(let r of t.signerInfos)e.SignerInfo.encode(r,n.uint32(10).fork()).ldelim();return t.fee!==void 0&&e.Fee.encode(t.fee,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=f();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.signerInfos.push(e.SignerInfo.decode(i,i.uint32()));break;case 2:o.fee=e.Fee.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{signerInfos:Array.isArray(t?.signerInfos)?t.signerInfos.map(t=>e.SignerInfo.fromJSON(t)):[],fee:w(t.fee)?e.Fee.fromJSON(t.fee):void 0}},toJSON(t){let n={};return n.signerInfos=t.signerInfos?t.signerInfos.map(t=>t?e.SignerInfo.toJSON(t):void 0):[],t.fee!==void 0&&(n.fee=t.fee?e.Fee.toJSON(t.fee):void 0),n},fromPartial(t){let n=f();return n.signerInfos=t.signerInfos?.map(t=>e.SignerInfo.fromPartial(t))||[],n.fee=t.fee!==void 0&&t.fee!==null?e.Fee.fromPartial(t.fee):void 0,n}};function p(){return{publicKey:void 0,modeInfo:void 0,sequence:`0`}}e.SignerInfo={encode(t,n=r.default.Writer.create()){return t.publicKey!==void 0&&a.Any.encode(t.publicKey,n.uint32(10).fork()).ldelim(),t.modeInfo!==void 0&&e.ModeInfo.encode(t.modeInfo,n.uint32(18).fork()).ldelim(),t.sequence!==`0`&&n.uint32(24).uint64(t.sequence),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),o=n===void 0?i.len:i.pos+n,s=p();for(;i.pos<o;){let t=i.uint32();switch(t>>>3){case 1:s.publicKey=a.Any.decode(i,i.uint32());break;case 2:s.modeInfo=e.ModeInfo.decode(i,i.uint32());break;case 3:s.sequence=C(i.uint64());break;default:i.skipType(t&7)}}return s},fromJSON(t){return{publicKey:w(t.publicKey)?a.Any.fromJSON(t.publicKey):void 0,modeInfo:w(t.modeInfo)?e.ModeInfo.fromJSON(t.modeInfo):void 0,sequence:w(t.sequence)?String(t.sequence):`0`}},toJSON(t){let n={};return t.publicKey!==void 0&&(n.publicKey=t.publicKey?a.Any.toJSON(t.publicKey):void 0),t.modeInfo!==void 0&&(n.modeInfo=t.modeInfo?e.ModeInfo.toJSON(t.modeInfo):void 0),t.sequence!==void 0&&(n.sequence=t.sequence),n},fromPartial(t){let n=p();return n.publicKey=t.publicKey!==void 0&&t.publicKey!==null?a.Any.fromPartial(t.publicKey):void 0,n.modeInfo=t.modeInfo!==void 0&&t.modeInfo!==null?e.ModeInfo.fromPartial(t.modeInfo):void 0,n.sequence=t.sequence??`0`,n}};function m(){return{single:void 0,multi:void 0}}e.ModeInfo={encode(t,n=r.default.Writer.create()){return t.single!==void 0&&e.ModeInfo_Single.encode(t.single,n.uint32(10).fork()).ldelim(),t.multi!==void 0&&e.ModeInfo_Multi.encode(t.multi,n.uint32(18).fork()).ldelim(),n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,o=m();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:o.single=e.ModeInfo_Single.decode(i,i.uint32());break;case 2:o.multi=e.ModeInfo_Multi.decode(i,i.uint32());break;default:i.skipType(t&7)}}return o},fromJSON(t){return{single:w(t.single)?e.ModeInfo_Single.fromJSON(t.single):void 0,multi:w(t.multi)?e.ModeInfo_Multi.fromJSON(t.multi):void 0}},toJSON(t){let n={};return t.single!==void 0&&(n.single=t.single?e.ModeInfo_Single.toJSON(t.single):void 0),t.multi!==void 0&&(n.multi=t.multi?e.ModeInfo_Multi.toJSON(t.multi):void 0),n},fromPartial(t){let n=m();return n.single=t.single!==void 0&&t.single!==null?e.ModeInfo_Single.fromPartial(t.single):void 0,n.multi=t.multi!==void 0&&t.multi!==null?e.ModeInfo_Multi.fromPartial(t.multi):void 0,n}};function h(){return{mode:0}}e.ModeInfo_Single={encode(e,t=r.default.Writer.create()){return e.mode!==0&&t.uint32(8).int32(e.mode),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=h();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.mode=n.int32();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{mode:w(e.mode)?(0,i.signModeFromJSON)(e.mode):0}},toJSON(e){let t={};return e.mode!==void 0&&(t.mode=(0,i.signModeToJSON)(e.mode)),t},fromPartial(e){let t=h();return t.mode=e.mode??0,t}};function g(){return{bitarray:void 0,modeInfos:[]}}e.ModeInfo_Multi={encode(t,n=r.default.Writer.create()){t.bitarray!==void 0&&o.CompactBitArray.encode(t.bitarray,n.uint32(10).fork()).ldelim();for(let r of t.modeInfos)e.ModeInfo.encode(r,n.uint32(18).fork()).ldelim();return n},decode(t,n){let i=t instanceof r.default.Reader?t:new r.default.Reader(t),a=n===void 0?i.len:i.pos+n,s=g();for(;i.pos<a;){let t=i.uint32();switch(t>>>3){case 1:s.bitarray=o.CompactBitArray.decode(i,i.uint32());break;case 2:s.modeInfos.push(e.ModeInfo.decode(i,i.uint32()));break;default:i.skipType(t&7)}}return s},fromJSON(t){return{bitarray:w(t.bitarray)?o.CompactBitArray.fromJSON(t.bitarray):void 0,modeInfos:Array.isArray(t?.modeInfos)?t.modeInfos.map(t=>e.ModeInfo.fromJSON(t)):[]}},toJSON(t){let n={};return t.bitarray!==void 0&&(n.bitarray=t.bitarray?o.CompactBitArray.toJSON(t.bitarray):void 0),n.modeInfos=t.modeInfos?t.modeInfos.map(t=>t?e.ModeInfo.toJSON(t):void 0):[],n},fromPartial(t){let n=g();return n.bitarray=t.bitarray!==void 0&&t.bitarray!==null?o.CompactBitArray.fromPartial(t.bitarray):void 0,n.modeInfos=t.modeInfos?.map(t=>e.ModeInfo.fromPartial(t))||[],n}};function _(){return{amount:[],gasLimit:`0`,payer:``,granter:``}}e.Fee={encode(e,t=r.default.Writer.create()){for(let n of e.amount)s.Coin.encode(n,t.uint32(10).fork()).ldelim();return e.gasLimit!==`0`&&t.uint32(16).uint64(e.gasLimit),e.payer!==``&&t.uint32(26).string(e.payer),e.granter!==``&&t.uint32(34).string(e.granter),t},decode(e,t){let n=e instanceof r.default.Reader?e:new r.default.Reader(e),i=t===void 0?n.len:n.pos+t,a=_();for(;n.pos<i;){let e=n.uint32();switch(e>>>3){case 1:a.amount.push(s.Coin.decode(n,n.uint32()));break;case 2:a.gasLimit=C(n.uint64());break;case 3:a.payer=n.string();break;case 4:a.granter=n.string();break;default:n.skipType(e&7)}}return a},fromJSON(e){return{amount:Array.isArray(e?.amount)?e.amount.map(e=>s.Coin.fromJSON(e)):[],gasLimit:w(e.gasLimit)?String(e.gasLimit):`0`,payer:w(e.payer)?String(e.payer):``,granter:w(e.granter)?String(e.granter):``}},toJSON(e){let t={};return t.amount=e.amount?e.amount.map(e=>e?s.Coin.toJSON(e):void 0):[],e.gasLimit!==void 0&&(t.gasLimit=e.gasLimit),e.payer!==void 0&&(t.payer=e.payer),e.granter!==void 0&&(t.granter=e.granter),t},fromPartial(e){let t=_();return t.amount=e.amount?.map(e=>s.Coin.fromPartial(e))||[],t.gasLimit=e.gasLimit??`0`,t.payer=e.payer??``,t.granter=e.granter??``,t}};var v=(()=>{if(v!==void 0)return v;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(V!==void 0)return V;throw`Unable to locate global object`})(),y=v.atob||(e=>v.Buffer.from(e,`base64`).toString(`binary`));function b(e){let t=y(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}var x=v.btoa||(e=>v.Buffer.from(e,`binary`).toString(`base64`));function S(e){let t=[];for(let n of e)t.push(String.fromCharCode(n));return x(t.join(``))}function C(e){return e.toString()}r.default.util.Long!==n.default&&(r.default.util.Long=n.default,r.default.configure());function w(e){return e!=null}})),xo=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ProtoSignDocDecoder=void 0;var t=bo(),n=_o();e.ProtoSignDocDecoder=class e{static decode(n){return new e(t.SignDoc.decode(n))}constructor(e,t=n.defaultProtoCodec){this.signDoc=e,this.protoCodec=t}get txBody(){return this._txBody||=t.TxBody.decode(this.signDoc.bodyBytes),this._txBody}get txMsgs(){let e=[];for(let t of this.txBody.messages)e.push(this.protoCodec.unpackAny(t));return e}get authInfo(){return this._authInfo||=t.AuthInfo.decode(this.signDoc.authInfoBytes),this._authInfo}get chainId(){return this.signDoc.chainId}get accountNumber(){return this.signDoc.accountNumber.toString()}toBytes(){return t.SignDoc.encode(this.signDoc).finish()}toJSON(){return{txBody:Object.assign(Object.assign({},t.TxBody.toJSON(this.txBody)),{messages:this.txMsgs.map(e=>this.protoCodec.unpackedAnyToJSONRecursive(e))}),authInfo:t.AuthInfo.toJSON(this.authInfo),chainId:this.chainId,accountNumber:this.accountNumber}}}})),So=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Co=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseKVStore=void 0,e.BaseKVStore=class{constructor(e,t){this.provider=e,this._prefix=t}get(e){return t(this,void 0,void 0,function*(){let t=this.prefix()+`/`+e;return(yield this.provider.get())[t]})}set(e,t){let n=this.prefix()+`/`+e;return this.provider.set({[n]:t})}prefix(){return this._prefix}}})),wo=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionKVStore=void 0;var n=Co();e.ExtensionKVStore=class e extends n.BaseKVStore{constructor(t){if(e.KVStoreProvider||(typeof browser>`u`?console.log(`You should use ExtensionKVStore on the extension environment.`):!browser.storage||!browser.storage.local?console.log(`The 'browser' exists, but it doesn't seem to be an extension environment. This can happen in Safari browser.`):e.KVStoreProvider={get:browser.storage.local.get,set:browser.storage.local.set,multiGet:browser.storage.local.get}),!e.KVStoreProvider)throw Error(`Can't initialize kv store for browser extension`);super(e.KVStoreProvider,t)}multiGet(n){return t(this,void 0,void 0,function*(){n=Array.from(new Set(n));let t=(yield e.KVStoreProvider.multiGet(n.map(e=>this.prefix()+`/`+e)))??{},r=Object.keys(t);for(let e of r){let n=e.slice(this.prefix().length+1);t[n]=t[e],delete t[e]}return t})}}})),To=a((e=>{s(),Object.defineProperty(e,"__esModule",{value:!0}),e.MemoryKVStore=void 0;var t=Co(),n=class{constructor(){this.store={}}get(){return Promise.resolve(this.store)}set(e){return this.store=Object.assign(Object.assign({},this.store),e),Promise.resolve()}checkNotPrimitiveField(e){Object.keys(e).forEach(t=>{let n=e[t];if(typeof n==`object`&&n){if(n.constructor!==Object&&n.constructor!==Array)throw Error(`${t} may not be serializable: ${n.constructor.name}`);this.checkNotPrimitiveField(n)}})}};e.MemoryKVStore=class extends t.BaseKVStore{constructor(e){super(new n,e)}}})),Eo=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LocalKVStore=void 0,e.LocalKVStore=class{constructor(e){this._prefix=e}get(e){let t=this.prefix()+`/`+e,n=localStorage.getItem(t);return n===null?Promise.resolve(void 0):Promise.resolve(JSON.parse(n))}set(e,t){let n=this.prefix()+`/`+e;return t===null?Promise.resolve(localStorage.removeItem(n)):Promise.resolve(localStorage.setItem(n,JSON.stringify(t)))}prefix(){return this._prefix}}})),Do=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.IndexedDBKVStore=void 0,e.IndexedDBKVStore=class{constructor(e){this._prefix=e}get(e){return t(this,void 0,void 0,function*(){let t=(yield this.getDB()).transaction([this.prefix()],`readonly`).objectStore(this.prefix());return new Promise((n,r)=>{let i=t.get(e);i.onerror=e=>{e.stopPropagation(),r(e.target)},i.onsuccess=()=>{i.result?n(i.result.data):n(void 0)}})})}set(e,n){return t(this,void 0,void 0,function*(){if(n===null){let t=(yield this.getDB()).transaction([this.prefix()],`readwrite`).objectStore(this.prefix());return new Promise((n,r)=>{let i=t.delete(e);i.onerror=e=>{e.stopPropagation(),r(e.target)},i.onsuccess=()=>{n()}})}{let t=(yield this.getDB()).transaction([this.prefix()],`readwrite`).objectStore(this.prefix());return new Promise((r,i)=>{let a=t.put({key:e,data:n});a.onerror=e=>{e.stopPropagation(),i(e.target)},a.onsuccess=()=>{r()}})}})}prefix(){return this._prefix}getDB(){return t(this,void 0,void 0,function*(){return this.cachedDB?this.cachedDB:new Promise((e,t)=>{let n=window.indexedDB.open(this.prefix());n.onerror=e=>{e.stopPropagation(),t(e.target)},n.onupgradeneeded=e=>{e.target.result.createObjectStore(this.prefix(),{keyPath:`key`})},n.onsuccess=()=>{this.cachedDB=n.result,e(n.result)}})})}}})),Oo=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.PrefixKVStore=void 0,e.PrefixKVStore=class{constructor(e,t){this.kvStore=e,this._prefix=t}prefix(){return this._prefix}get(e){return t(this,void 0,void 0,function*(){let t=this.prefix()+`/`+e;return yield this.kvStore.get(t)})}set(e,n){return t(this,void 0,void 0,function*(){let t=this.prefix()+`/`+e;return yield this.kvStore.set(t,n)})}}})),ko=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.WrapMultiGetKVStore=void 0,e.WrapMultiGetKVStore=class{constructor(e){this.kvStore=e}multiGet(e){return t(this,void 0,void 0,function*(){e=Array.from(new Set(e));let n={},r=[];for(let i of e)r.push(t(this,void 0,void 0,function*(){n[i]=yield this.kvStore.get(i)}));return yield Promise.all(r),n})}}})),Ao=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(So(),e),n(wo(),e),n(Co(),e),n(To(),e),n(Eo(),e),n(Do(),e),n(Oo(),e),n(ko(),e)})),jo=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=me(),n=U();function r(e){let n=t(`sha256`).update(e).digest();try{return t(`rmd160`).update(n).digest()}catch{return t(`ripemd160`).update(n).digest()}}e.hash160=r;function i(e,t){return n(`sha512`,e).update(t).digest()}e.hmacSHA512=i})),Mo=a(((e,t)=>{se();var n=U(),r=H.alloc(1,1),i=H.alloc(1,0);function a(e,t,a,o,s){let c=H.alloc(32,0),l=H.alloc(32,1);c=n(`sha256`,c).update(l).update(i).update(t).update(e).update(s||``).digest(),l=n(`sha256`,c).update(l).digest(),c=n(`sha256`,c).update(l).update(r).update(t).update(e).update(s||``).digest(),l=n(`sha256`,c).update(l).digest(),l=n(`sha256`,c).update(l).digest();let u=l;for(;!o(u)||!a(u);)c=n(`sha256`,c).update(l).update(i).digest(),l=n(`sha256`,c).update(l).digest(),l=n(`sha256`,c).update(l).digest(),u=l;return u}t.exports=a})),No=a(((e,t)=>{se();var n=_e(),r=ve().ec,i=new r(`secp256k1`),a=Mo(),o=H.alloc(32,0),s=H.from(`fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141`,`hex`),c=H.from(`fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f`,`hex`),l=i.curve.n,u=l.shrn(1),d=i.curve.g,f=`Expected Private`,p=`Expected Point`,m=`Expected Tweak`,h=`Expected Hash`,g=`Expected Signature`,_=`Expected Extra Data (32 bytes)`;function v(e){return e instanceof Uint8Array&&e.length===32}function y(e){return v(e)?s.compare(e)>0:!1}function b(e){if(!(e instanceof Uint8Array)||e.length<33)return!1;let t=e[0],n=e.subarray(1,33);if(o.compare(n)===0||c.compare(n)<=0)return!1;if((t===2||t===3)&&e.length===33){try{O(e)}catch{return!1}return!0}let r=e.subarray(33);return o.compare(r)===0||c.compare(r)<=0?!1:t===4&&e.length===65}function x(e){return e[0]!==4}function S(e){return b(e)?x(e):!1}function C(e){return v(e)?o.compare(e)<0&&s.compare(e)>0:!1}function w(e){let t=e.subarray(0,32),n=e.subarray(32,64);return e instanceof Uint8Array&&e.length===64&&s.compare(t)>0&&s.compare(n)>0}function T(e,t){return e===void 0&&t!==void 0?x(t):e===void 0||e}function E(e){return new n(e)}function D(e){return e.toArrayLike(H,`be`,32)}function O(e){return i.curve.decodePoint(e)}function k(e,t){return H.from(e._encode(t))}function A(e,t,n){if(!b(e)||!b(t))throw TypeError(p);let r=O(e),i=O(t),a=r.add(i);return a.isInfinity()?null:k(a,T(n,e))}function j(e,t,n){if(!b(e))throw TypeError(p);if(!y(t))throw TypeError(m);let r=T(n,e),i=O(e);if(o.compare(t)===0)return k(i,r);let a=E(t),s=d.mul(a),c=i.add(s);return c.isInfinity()?null:k(c,r)}function M(e,t){if(!b(e))throw TypeError(p);let n=O(e);if(n.isInfinity())throw TypeError(p);return k(n,T(t,e))}function N(e,t){if(!C(e))throw TypeError(f);let n=E(e),r=d.mul(n);return r.isInfinity()?null:k(r,T(t))}function P(e,t,n){if(!b(e))throw TypeError(p);if(!y(t))throw TypeError(m);let r=T(n,e),i=O(e),a=E(t),o=i.mul(a);return o.isInfinity()?null:k(o,r)}function F(e,t){if(!C(e))throw TypeError(f);if(!y(t))throw TypeError(m);let n=E(e),r=E(t),i=D(n.add(r).umod(l));return C(i)?i:null}function I(e,t){if(!C(e))throw TypeError(f);if(!y(t))throw TypeError(m);let n=E(e),r=E(t),i=D(n.sub(r).umod(l));return C(i)?i:null}function L(e,t){return ee(e,t)}function R(e,t,n){return ee(e,t,n)}function ee(e,t,n){if(!v(e))throw TypeError(h);if(!C(t))throw TypeError(f);if(n!==void 0&&!v(n))throw TypeError(_);let r=E(t),i=E(e),o,s;a(e,t,function(e){let t=E(e),n=d.mul(t);return!(n.isInfinity()||(o=n.x.umod(l),o.isZero()===0)||(s=t.invm(l).mul(i.add(r.mul(o))).umod(l),s.isZero()===0))},C,n),s.cmp(u)>0&&(s=l.sub(s));let c=H.allocUnsafe(64);return D(o).copy(c,0),D(s).copy(c,32),c}function te(e,t,n,r){if(!v(e))throw TypeError(h);if(!b(t))throw TypeError(p);if(!w(n))throw TypeError(g);let i=O(t),a=E(n.subarray(0,32)),o=E(n.subarray(32,64));if(r&&o.cmp(u)>0||a.gtn(0)<=0||o.gtn(0)<=0)return!1;let s=E(e),c=o.invm(l),f=s.mul(c).umod(l),m=a.mul(c).umod(l),_=d.mulAdd(f,i,m);return!_.isInfinity()&&_.x.umod(l).eq(a)}t.exports={isPoint:b,isPointCompressed:S,isPrivate:C,pointAdd:A,pointAddScalar:j,pointCompress:M,pointFromScalar:N,pointMultiply:P,privateAdd:F,privateSub:I,sign:L,signWithEntropy:R,verify:te}})),Po=a(((e,t)=>{var n={Array:function(e){return e!=null&&e.constructor===Array},Boolean:function(e){return typeof e==`boolean`},Function:function(e){return typeof e==`function`},Nil:function(e){return e==null},Number:function(e){return typeof e==`number`},Object:function(e){return typeof e==`object`},String:function(e){return typeof e==`string`},"":function(){return!0}};for(var r in n.Null=n.Nil,n)n[r].toJSON=function(e){return e}.bind(null,r);t.exports=n})),Fo=a(((e,t)=>{var n=Po();function r(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function i(e){return n.Nil(e)?``:r(e.constructor)}function a(e){return n.Function(e)?``:n.String(e)?JSON.stringify(e):e&&n.Object(e)?``:e}function o(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function s(e){return n.Function(e)?e.toJSON?e.toJSON():r(e):n.Array(e)?`Array`:e&&n.Object(e)?`Object`:e===void 0?``:e}function c(e,t,n){var r=a(t);return`Expected `+s(e)+`, got`+(n===``?``:` `+n)+(r===``?``:` `+r)}function l(e,t,n){n||=i(t),this.message=c(e,t,n),o(this,l),this.__type=e,this.__value=t,this.__valueTypeName=n}l.prototype=Object.create(Error.prototype),l.prototype.constructor=l;function u(e,t,n,r,i){var a=`" of type `;return t===`key`&&(a=`" with key type `),c(`property "`+s(n)+a+s(e),r,i)}function d(e,t,n,r,a){e?(a||=i(r),this.message=u(e,n,t,r,a)):this.message=`Unexpected property "`+t+`"`,o(this,l),this.__label=n,this.__property=t,this.__type=e,this.__value=r,this.__valueTypeName=a}d.prototype=Object.create(Error.prototype),d.prototype.constructor=l;function f(e,t){return new l(e,{},t)}function p(e,t,n){return e instanceof d?(t=t+`.`+e.__property,e=new d(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof l&&(e=new d(e.__type,t,n,e.__value,e.__valueTypeName)),o(e),e}t.exports={TfTypeError:l,TfPropertyTypeError:d,tfCustomError:f,tfSubError:p,tfJSON:s,getValueTypeName:i}})),Io=a(((e,t)=>{se();var n=Po(),r=Fo();function i(e){return H.isBuffer(e)}function a(e){return typeof e==`string`&&/^([0-9a-f]{2})+$/i.test(e)}function o(e,t){var n=e.toJSON();function i(i){if(!e(i))return!1;if(i.length===t)return!0;throw r.tfCustomError(n+`(Length: `+t+`)`,n+`(Length: `+i.length+`)`)}return i.toJSON=function(){return n},i}var s=o.bind(null,n.Array),c=o.bind(null,i),l=o.bind(null,a),u=o.bind(null,n.String);function d(e,t,r){r||=n.Number;function i(n,i){return r(n,i)&&n>e&&n<t}return i.toJSON=function(){return`${r.toJSON()} between [${e}, ${t}]`},i}var f=2**53-1;function p(e){return typeof e==`number`&&isFinite(e)}function m(e){return e<<24>>24===e}function h(e){return e<<16>>16===e}function g(e){return(e|0)===e}function _(e){return typeof e==`number`&&e>=-f&&e<=f&&Math.floor(e)===e}function v(e){return(e&255)===e}function y(e){return(e&65535)===e}function b(e){return e>>>0===e}function x(e){return typeof e==`number`&&e>=0&&e<=f&&Math.floor(e)===e}var S={ArrayN:s,Buffer:i,BufferN:c,Finite:p,Hex:a,HexN:l,Int8:m,Int16:h,Int32:g,Int53:_,Range:d,StringN:u,UInt8:v,UInt16:y,UInt32:b,UInt53:x};for(var C in S)S[C].toJSON=function(e){return e}.bind(null,C);t.exports=S})),Lo=a(((e,t)=>{var n=Fo(),r=Po(),i=n.tfJSON,a=n.TfTypeError,o=n.TfPropertyTypeError,s=n.tfSubError,c=n.getValueTypeName,l={arrayOf:function(e,t){e=u(e),t||={};function n(n,i){return!r.Array(n)||r.Nil(n)||t.minLength!==void 0&&n.length<t.minLength||t.maxLength!==void 0&&n.length>t.maxLength||t.length!==void 0&&n.length!==t.length?!1:n.every(function(t,n){try{return d(e,t,i)}catch(e){throw s(e,n)}})}return n.toJSON=function(){var n=`[`+i(e)+`]`;return t.length===void 0?(t.minLength!==void 0||t.maxLength!==void 0)&&(n+=`{`+(t.minLength===void 0?0:t.minLength)+`,`+(t.maxLength===void 0?1/0:t.maxLength)+`}`):n+=`{`+t.length+`}`,n},n},maybe:function e(t){t=u(t);function n(n,i){return r.Nil(n)||t(n,i,e)}return n.toJSON=function(){return`?`+i(t)},n},map:function(e,t){e=u(e),t&&=u(t);function n(n,i){if(!r.Object(n)||r.Nil(n))return!1;for(var a in n){try{t&&d(t,a,i)}catch(e){throw s(e,a,`key`)}try{var o=n[a];d(e,o,i)}catch(e){throw s(e,a)}}return!0}return n.toJSON=t?function(){return`{`+i(t)+`: `+i(e)+`}`}:function(){return`{`+i(e)+`}`},n},object:function(e){var t={};for(var n in e)t[n]=u(e[n]);function a(e,n){if(!r.Object(e)||r.Nil(e))return!1;var i;try{for(i in t){var a=t[i],c=e[i];d(a,c,n)}}catch(e){throw s(e,i)}if(n){for(i in e)if(!t[i])throw new o(void 0,i)}return!0}return a.toJSON=function(){return i(t)},a},anyOf:function(){var e=[].slice.call(arguments).map(u);function t(t,n){return e.some(function(e){try{return d(e,t,n)}catch{return!1}})}return t.toJSON=function(){return e.map(i).join(`|`)},t},allOf:function(){var e=[].slice.call(arguments).map(u);function t(t,n){return e.every(function(e){try{return d(e,t,n)}catch{return!1}})}return t.toJSON=function(){return e.map(i).join(` & `)},t},quacksLike:function(e){function t(t){return e===c(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(u);function t(t,n){return r.Nil(t)||r.Nil(t.length)||n&&t.length!==e.length?!1:e.every(function(e,r){try{return d(e,t[r],n)}catch(e){throw s(e,r)}})}return t.toJSON=function(){return`(`+e.map(i).join(`, `)+`)`},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};l.oneOf=l.anyOf;function u(e){if(r.String(e))return e[0]===`?`?l.maybe(e.slice(1)):r[e]||l.quacksLike(e);if(e&&r.Object(e)){if(r.Array(e)){if(e.length!==1)throw TypeError(`Expected compile() parameter of type Array of length 1`);return l.arrayOf(e[0])}return l.object(e)}return r.Function(e)?e:l.value(e)}function d(e,t,n,i){if(r.Function(e)){if(e(t,n))return!0;throw new a(i||e,t)}return d(u(e),t,n)}for(var f in r)d[f]=r[f];for(f in l)d[f]=l[f];var p=Io();for(f in p)d[f]=p[f];d.compile=u,d.TfTypeError=a,d.TfPropertyTypeError=o,t.exports=d})),Ro=a(((e,t)=>{se();var n=Ue();function r(e,t){if(t!==void 0&&e[0]!==t)throw Error(`Invalid network version`);if(e.length===33)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(e.length!==34)throw Error(`Invalid WIF length`);if(e[33]!==1)throw Error(`Invalid compression flag`);return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function i(e,t,n){var r=new H(n?34:33);return r.writeUInt8(e,0),t.copy(r,1),n&&(r[33]=1),r}function a(e,t){return r(n.decode(e),t)}function o(e,t,r){return typeof e==`number`?n.encode(i(e,t,r)):n.encode(i(e.version,e.privateKey,e.compressed))}t.exports={decode:a,decodeRaw:r,encode:o,encodeRaw:i}})),zo=a((e=>{se(),Object.defineProperty(e,"__esModule",{value:!0});var t=jo(),n=Ue(),r=No(),i=Lo(),a=Ro(),o=i.BufferN(32),s=i.compile({wif:i.UInt8,bip32:{public:i.UInt32,private:i.UInt32}}),c={messagePrefix:`Bitcoin Signed Message:
|
|
3
|
+
`,bech32:`bc`,bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},l=2147483648,u=2**31-1;function d(e){return i.String(e)&&e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)!==null}function f(e){return i.UInt32(e)&&e<=u}var p=class{constructor(e,t,n,r,a=0,o=0,c=0){this.__D=e,this.__Q=t,this.chainCode=n,this.network=r,this.__DEPTH=a,this.__INDEX=o,this.__PARENT_FINGERPRINT=c,i(s,r),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=r.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return t.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return this.__D===void 0}neutered(){return v(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){let e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,r=H.allocUnsafe(78);return r.writeUInt32BE(t,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),n.encode(r)}toWIF(){if(!this.privateKey)throw TypeError(`Missing private key`);return a.encode(this.network.wif,this.privateKey,!0)}derive(e){i(i.UInt32,e);let n=e>=l,a=H.allocUnsafe(37);if(n){if(this.isNeutered())throw TypeError(`Missing private key for hardened child key`);a[0]=0,this.privateKey.copy(a,1),a.writeUInt32BE(e,33)}else this.publicKey.copy(a,0),a.writeUInt32BE(e,33);let o=t.hmacSHA512(this.chainCode,a),s=o.slice(0,32),c=o.slice(32);if(!r.isPrivate(s))return this.derive(e+1);let u;if(this.isNeutered()){let t=r.pointAddScalar(this.publicKey,s,!0);if(t===null)return this.derive(e+1);u=v(t,c,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}else{let t=r.privateAdd(this.privateKey,s);if(t==null)return this.derive(e+1);u=g(t,c,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}return u}deriveHardened(e){return i(f,e),this.derive(e+l)}derivePath(e){i(d,e);let t=e.split(`/`);if(t[0]===`m`){if(this.parentFingerprint)throw TypeError(`Expected master, got child`);t=t.slice(1)}return t.reduce((e,t)=>{let n;return t.slice(-1)===`'`?(n=parseInt(t.slice(0,-1),10),e.deriveHardened(n)):(n=parseInt(t,10),e.derive(n))},this)}sign(e,t){if(!this.privateKey)throw Error(`Missing private key`);if(t===void 0&&(t=this.lowR),t===!1)return r.sign(e,this.privateKey);{let t=r.sign(e,this.privateKey),n=H.alloc(32,0),i=0;for(;t[0]>127;)i++,n.writeUIntLE(i,0,6),t=r.signWithEntropy(e,this.privateKey,n);return t}}verify(e,t){return r.verify(e,this.publicKey,t)}};function m(e,t){let r=n.decode(e);if(r.length!==78)throw TypeError(`Invalid buffer length`);t||=c;let i=r.readUInt32BE(0);if(i!==t.bip32.private&&i!==t.bip32.public)throw TypeError(`Invalid network version`);let a=r[4],o=r.readUInt32BE(5);if(a===0&&o!==0)throw TypeError(`Invalid parent fingerprint`);let s=r.readUInt32BE(9);if(a===0&&s!==0)throw TypeError(`Invalid index`);let l=r.slice(13,45),u;if(i===t.bip32.private){if(r.readUInt8(45)!==0)throw TypeError(`Invalid private key`);u=g(r.slice(46,78),l,t,a,s,o)}else u=v(r.slice(45,78),l,t,a,s,o);return u}e.fromBase58=m;function h(e,t,n){return g(e,t,n)}e.fromPrivateKey=h;function g(e,t,n,a,s,l){if(i({privateKey:o,chainCode:o},{privateKey:e,chainCode:t}),n||=c,!r.isPrivate(e))throw TypeError(`Private key not in range [1, n)`);return new p(e,void 0,t,n,a,s,l)}function _(e,t,n){return v(e,t,n)}e.fromPublicKey=_;function v(e,t,n,a,s,l){if(i({publicKey:i.BufferN(33),chainCode:o},{publicKey:e,chainCode:t}),n||=c,!r.isPoint(e))throw TypeError(`Point is not on the curve`);return new p(void 0,e,t,n,a,s,l)}function y(e,n){if(i(i.Buffer,e),e.length<16)throw TypeError(`Seed should be at least 128 bits`);if(e.length>64)throw TypeError(`Seed should be at most 512 bits`);n||=c;let r=t.hmacSHA512(H.from(`Bitcoin seed`,`utf8`),e);return h(r.slice(0,32),r.slice(32),n)}e.fromSeed=y})),Bo=a((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=zo();e.fromSeed=t.fromSeed,e.fromBase58=t.fromBase58,e.fromPublicKey=t.fromPublicKey,e.fromPrivateKey=t.fromPrivateKey})),Vo=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Mnemonic=void 0;var n=Me(),r=Bo(),i=Ue(),a=le();e.Mnemonic=class e{static generateWallet(n,r=`m/44'/118'/0'/0/0`,i=``,a=256){return t(this,void 0,void 0,function*(){let t=yield e.generateSeed(n,a);return{privKey:e.generateWalletFromMnemonic(t,r,i),mnemonic:t}})}static validateMnemonic(e){return n.validateMnemonic(e)}static generateSeed(e,r=128){return t(this,void 0,void 0,function*(){if(r%32!=0)throw TypeError(`invalid entropy`);let t=new Uint8Array(r/8);return t=yield e(t),n.entropyToMnemonic(a.Buffer.from(t).toString(`hex`))})}static generateWalletFromMnemonic(e,t=`m/44'/118'/0'/0/0`,i=``){let a=n.mnemonicToSeedSync(e,i),o=r.fromSeed(a).derivePath(t).privateKey;if(!o)throw Error(`null hd key`);return o}static generateMasterSeedFromMnemonic(e,t=``){let o=n.mnemonicToSeedSync(e,t),s=r.fromSeed(o);return a.Buffer.from(i.decode(s.toBase58()))}static generatePrivateKeyFromMasterSeed(e,t=`m/44'/118'/0'/0/0`){let n=r.fromBase58(i.encode(e)).derivePath(t).privateKey;if(!n)throw Error(`null hd key`);return n}}})),Ho=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Hash=void 0;var t=he(),r=(ra(),n(ea)),i=le();e.Hash=class{static sha256(e){return new Uint8Array(new t.sha256().update(e).digest())}static keccak256(e){return i.Buffer.from((0,r.keccak256)(e).replace(`0x`,``),`hex`)}static truncHashPortion(e,t=e.length,n=0){return e.substring(0,t)+`…`+e.substring(e.length-n,e.length)}}})),Uo=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.PubKeySecp256k1=e.PrivKeySecp256k1=void 0;var n=ve(),r=t(jt()),i=le(),a=Ho();e.PrivKeySecp256k1=class e{static generateRandomKey(){let t=new n.ec(`secp256k1`);return new e(i.Buffer.from(t.genKeyPair().getPrivate().toArray()))}constructor(e){this.privKey=e}toBytes(){return new Uint8Array(this.privKey)}getPubKey(){let e=new n.ec(`secp256k1`).keyFromPrivate(this.privKey);return new o(new Uint8Array(e.getPublic().encodeCompressed(`array`)))}signDigest32(e){if(e.length!==32)throw Error(`Invalid length of digest to sign: ${e.length}`);let t=new n.ec(`secp256k1`).keyFromPrivate(this.privKey).sign(e,{canonical:!0});return{r:new Uint8Array(t.r.toArray(`be`,32)),s:new Uint8Array(t.s.toArray(`be`,32)),v:t.recoveryParam}}};var o=class{constructor(e){if(this.pubKey=e,e.length!==33&&e.length!==65)throw Error(`Invalid length of public key: ${e.length}`)}toBytes(e){if(e&&this.pubKey.length===65||!e&&this.pubKey.length===33)return this.pubKey;let t=this.toKeyPair();return e?new Uint8Array(i.Buffer.from(t.getPublic().encode(`hex`,!1),`hex`)):new Uint8Array(i.Buffer.from(t.getPublic().encodeCompressed(`hex`),`hex`))}getAddress(){return this.getCosmosAddress()}getCosmosAddress(){let e=r.default.SHA256(r.default.lib.WordArray.create(this.toBytes(!1))).toString();return e=r.default.RIPEMD160(r.default.enc.Hex.parse(e)).toString(),new Uint8Array(i.Buffer.from(e,`hex`))}getEthAddress(){return a.Hash.keccak256(this.toBytes(!0).slice(1)).slice(-20)}toKeyPair(){return new n.ec(`secp256k1`).keyFromPublic(i.Buffer.from(this.pubKey).toString(`hex`),`hex`)}verifyDigest32(e,t){if(e.length!==32)throw Error(`Invalid length of digest to verify: ${e.length}`);if(t.length!==64)throw Error(`Invalid length of signature: ${t.length}`);let r=new n.ec(`secp256k1`),a=t.slice(0,32),o=t.slice(32);return r.verify(e,{r:i.Buffer.from(a).toString(`hex`),s:i.Buffer.from(o).toString(`hex`)},this.toKeyPair())}};e.PubKeySecp256k1=o})),Wo=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Vo(),e),n(Uo(),e),n(Ho(),e)})),Go=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DenomHelper=void 0;var t=le(),n=Wo();e.DenomHelper=class{static ibcDenom(e,r){let i=[];for(let t of e)i.push(`${t.portId}/${t.channelId}`);let a=`${i.join(`/`)}/${r}`;return`ibc/`+t.Buffer.from(n.Hash.sha256(t.Buffer.from(a))).toString(`hex`).toUpperCase()}constructor(e){this._denom=e;let t=this.denom.split(/(\w+):(\w+):(.+)/).filter(Boolean);if(t.length!==1&&t.length!==3)throw Error(`Invalid denom: ${this.denom}`);this._type=t.length===3?t[0]:``,this._contractAddress=t.length===3?t[1]:``}get denom(){return this._denom}get type(){return this._type||`native`}get contractAddress(){return this._contractAddress}}})),Ko=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.toGenerator=void 0;function*t(e){return yield e}e.toGenerator=t})),qo=r({$mobx:()=>Z,FlowCancellationError:()=>of,ObservableMap:()=>Sf,ObservableSet:()=>Tf,Reaction:()=>Ld,_allowStateChanges:()=>Ec,_allowStateChangesInsideComputed:()=>cl,_allowStateReadsEnd:()=>zc,_allowStateReadsStart:()=>Rc,_autoAction:()=>Zd,_endAction:()=>Tc,_getAdministration:()=>Mu,_getGlobalState:()=>Hc,_interceptReads:()=>Ol,_isComputingDerivation:()=>jc,_resetGlobalState:()=>Uc,_startAction:()=>wc,action:()=>Xd,autorun:()=>ul,comparer:()=>nd,computed:()=>Sd,configure:()=>_l,createAtom:()=>Ms,defineProperty:()=>Gl,entries:()=>Bl,extendObservable:()=>vl,flow:()=>lf,flowResult:()=>El,get:()=>Wl,getAtom:()=>ju,getDebugName:()=>Nu,getDependencyTree:()=>yl,getObserverTree:()=>xl,has:()=>Ul,intercept:()=>kl,isAction:()=>ll,isBoxedObservable:()=>Od,isComputed:()=>Nl,isComputedProp:()=>Pl,isFlow:()=>Dl,isFlowCancellationError:()=>wl,isObservable:()=>Il,isObservableArray:()=>vu,isObservableMap:()=>Cf,isObservableObject:()=>wu,isObservableProp:()=>Ll,isObservableSet:()=>Ef,keys:()=>Rl,makeAutoObservable:()=>pu,makeObservable:()=>fu,observable:()=>_d,observe:()=>ql,onBecomeObserved:()=>ml,onBecomeUnobserved:()=>hl,onReactionError:()=>tl,override:()=>id,ownKeys:()=>Kl,reaction:()=>fl,remove:()=>Hl,runInAction:()=>cl,set:()=>Vl,spy:()=>ol,toJS:()=>Ql,trace:()=>$l,transaction:()=>eu,untracked:()=>Fc,values:()=>zl,when:()=>tu});function Y(e){var t=[...arguments].slice(1);throw Error(typeof e==`number`?`[MobX] minified error nr: `+e+(t.length?` `+t.map(String).join(`,`):``)+`. Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts`:`[MobX] `+e)}function Jo(){return typeof globalThis<`u`?globalThis:typeof window<`u`?window:V===void 0?typeof self<`u`?self:Bu:V}function Yo(){qu||Y(`Proxy not available`)}function Xo(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}function Zo(e){return typeof e==`function`}function Qo(e){switch(typeof e){case`string`:case`symbol`:case`number`:return!0}return!1}function $o(e){return typeof e==`object`&&!!e}function es(e){if(!$o(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n.toString()===Ju}function ts(e){var t=e?.constructor;return t?t.name===`GeneratorFunction`||t.displayName===`GeneratorFunction`:!1}function ns(e,t,n){Uu(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function rs(e,t,n){Uu(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function is(e,t){var n=`isMobX`+e;return t.prototype[n]=!0,function(e){return $o(e)&&e[n]===!0}}function as(e){return e!=null&&Object.prototype.toString.call(e)===`[object Map]`}function os(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===null}function ss(e){return e!=null&&Object.prototype.toString.call(e)===`[object Set]`}function cs(e){var t=Object.keys(e);if(!Xu)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(t){return Wu.propertyIsEnumerable.call(e,t)})):t}function ls(e){return e===null?null:typeof e==`object`?``+e:e}function us(e,t){return Wu.hasOwnProperty.call(e,t)}function ds(e,t){return!!(e&t)}function fs(e,t,n){return n?e|=t:e&=~t,e}function ps(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ms(e,t,n){if(Ss())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Cs(i,n.prototype),i}function hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ts(r.key),r)}}function gs(e,t,n){return t&&hs(e.prototype,t),n&&hs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _s(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Es(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vs(){return vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vs.apply(null,arguments)}function ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ys(e)}function bs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cs(e,t)}function xs(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function Ss(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ss=function(){return!!e})()}function Cs(e,t){return Cs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cs(e,t)}function ws(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ts(e){var t=ws(e,`string`);return typeof t==`symbol`?t:t+``}function Es(e,t){if(e){if(typeof e==`string`)return ps(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(e,t):void 0}}function Ds(e){var t=typeof Map==`function`?new Map:void 0;return Ds=function(e){if(e===null||!xs(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ms(e,arguments,ys(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Cs(n,e)},Ds(e)}function Os(e){function t(t,n){if(js(n))return e.decorate_20223_(t,n);ks(t,n,e)}return Object.assign(t,e)}function ks(e,t,n){us(e,$u)||ns(e,$u,vs({},e[$u])),Vs(n)||(e[$u][t]=n)}function As(e){return us(e,$u)||ns(e,$u,vs({},e[$u])),e[$u]}function js(e){return typeof e==`object`&&typeof e.kind==`string`}function Ms(e,t,n){t===void 0&&(t=Yu),n===void 0&&(n=Yu);var r=new ed(e);return t!==Yu&&ml(r,t),n!==Yu&&hl(r,n),r}function Ns(e,t){return e===t}function Ps(e,t){return Fu(e,t)}function Fs(e,t){return Fu(e,t,1)}function Is(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e==1/t:e!==e&&t!==t}function Ls(e,t,n){return Il(e)?e:Array.isArray(e)?_d.array(e,{name:n}):es(e)?_d.object(e,void 0,{name:n}):as(e)?_d.map(e,{name:n}):ss(e)?_d.set(e,{name:n}):typeof e==`function`&&!ll(e)&&!Dl(e)?ts(e)?lf(e):Zd(n,e):e}function Rs(e,t,n){if(e==null||wu(e)||vu(e)||Cf(e)||Ef(e))return e;if(Array.isArray(e))return _d.array(e,{name:n,deep:!1});if(es(e))return _d.object(e,void 0,{name:n,deep:!1});if(as(e))return _d.map(e,{name:n,deep:!1});if(ss(e))return _d.set(e,{name:n,deep:!1})}function zs(e){return e}function Bs(e,t){return Fu(e,t)?t:e}function Vs(e){return e.annotationType_===rd}function Hs(e,t){return 0}function Us(e,t,n,r){Y(`'`+this.annotationType_+`' can only be used with 'makeObservable'`)}function Ws(e,t){console.warn(`'`+this.annotationType_+`' cannot be used with decorators - this is a no-op`)}function Gs(e,t){return{annotationType_:e,options_:t,make_:Ks,extend_:qs,decorate_20223_:Js}}function Ks(e,t,n,r){var i;return(i=this.options_)!=null&&i.bound?this.extend_(e,t,n,!1)===null?0:1:r===e.target_?this.extend_(e,t,n,!1)===null?0:2:ll(n.value)?1:(Uu(r,t,Xs(e,this,t,n,!1)),2)}function qs(e,t,n,r){var i=Xs(e,this,t,n);return e.defineProperty_(t,i,r)}function Js(e,t){var n=t.kind,r=t.name,i=t.addInitializer,a=this,o=function(e){return Sc(a.options_?.name??r.toString(),e,a.options_?.autoAction??!1)};if(n==`field`)return function(e){var t,n=e;return ll(n)||(n=o(n)),(t=a.options_)!=null&&t.bound&&(n=n.bind(this),n.isMobxAction=!0),n};if(n==`method`){var s;return ll(e)||(e=o(e)),(s=this.options_)!=null&&s.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobxAction=!0,e[r]=t}),e}Y(`Cannot apply '`+a.annotationType_+`' to '`+String(r)+`' (kind: `+n+`):`+(`
|
|
5
|
+
'`+a.annotationType_+`' can only be used on properties with a function value.`))}function Ys(e,t,n,r){t.annotationType_,r.value}function Xs(e,t,n,r,i){var a,o;i===void 0&&(i=$.safeDescriptors),Ys(e,t,n,r);var s=r.value;return(a=t.options_)!=null&&a.bound&&(s=s.bind(e.proxy_??e.target_)),{value:Sc(t.options_?.name??n.toString(),s,t.options_?.autoAction??!1,(o=t.options_)!=null&&o.bound?e.proxy_??e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Zs(e,t){return{annotationType_:e,options_:t,make_:Qs,extend_:$s,decorate_20223_:ec}}function Qs(e,t,n,r){var i;return r===e.target_?this.extend_(e,t,n,!1)===null?0:2:(i=this.options_)!=null&&i.bound&&(!us(e.target_,t)||!Dl(e.target_[t]))&&this.extend_(e,t,n,!1)===null?0:Dl(n.value)?1:(Uu(r,t,nc(e,this,t,n,!1,!1)),2)}function $s(e,t,n,r){var i=nc(e,this,t,n,this.options_?.bound);return e.defineProperty_(t,i,r)}function ec(e,t){var n,r=t.name,i=t.addInitializer;return Dl(e)||(e=lf(e)),(n=this.options_)!=null&&n.bound&&i(function(){var e=this,t=e[r].bind(e);t.isMobXFlow=!0,e[r]=t}),e}function tc(e,t,n,r){t.annotationType_,r.value}function nc(e,t,n,r,i,a){a===void 0&&(a=$.safeDescriptors),tc(e,t,n,r);var o=r.value;return Dl(o)||(o=lf(o)),i&&(o=o.bind(e.proxy_??e.target_),o.isMobXFlow=!0),{value:o,configurable:!a||e.isPlainObject_,enumerable:!1,writable:!a}}function rc(e,t){return{annotationType_:e,options_:t,make_:ic,extend_:ac,decorate_20223_:oc}}function ic(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function ac(e,t,n,r){return sc(e,this,t,n),e.defineComputedProperty_(t,vs({},this.options_,{get:n.get,set:n.set}),r)}function oc(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var t=Su(this)[Z],i=vs({},n.options_,{get:e,context:this});i.name||=`ObservableObject.`+r.toString(),t.values_.set(r,new kd(i))}),function(){return this[Z].getObservablePropValue_(r)}}function sc(e,t,n,r){t.annotationType_,r.get}function cc(e,t){return{annotationType_:e,options_:t,make_:lc,extend_:uc,decorate_20223_:dc}}function lc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function uc(e,t,n,r){return fc(e,this,t,n),e.defineObservableProperty_(t,n.value,this.options_?.enhancer??Ls,r)}function dc(e,t){var n=this,r=t.kind,i=t.name,a=new WeakSet;function o(e,t){var r=Su(e)[Z],o=new Dd(t,n.options_?.enhancer??Ls,`ObservableObject.`+i.toString(),!1);r.values_.set(i,o),a.add(e)}if(r==`accessor`)return{get:function(){return a.has(this)||o(this,e.get.call(this)),this[Z].getObservablePropValue_(i)},set:function(e){return a.has(this)||o(this,e),this[Z].setObservablePropValue_(i,e)},init:function(e){return a.has(this)||o(this,e),e}}}function fc(e,t,n,r){t.annotationType_}function pc(e){return{annotationType_:ad,options_:e,make_:mc,extend_:hc,decorate_20223_:gc}}function mc(e,t,n,r){var i;if(n.get)return Sd.make_(e,t,n,r);if(n.set){var a=ll(n.set)?n.set:Sc(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:!$.safeDescriptors||e.isPlainObject_,set:a})===null?0:2:(Uu(r,t,{configurable:!0,set:a}),2)}if(r!==e.target_&&typeof n.value==`function`){var o;if(ts(n.value)){var s;return((s=this.options_)!=null&&s.autoBind?lf.bound:lf).make_(e,t,n,r)}return((o=this.options_)!=null&&o.autoBind?Zd.bound:Zd).make_(e,t,n,r)}var c=this.options_?.deep===!1?_d.ref:_d;return typeof n.value==`function`&&(i=this.options_)!=null&&i.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),c.make_(e,t,n,r)}function hc(e,t,n,r){var i;return n.get?Sd.extend_(e,t,n,r):n.set?e.defineProperty_(t,{configurable:!$.safeDescriptors||e.isPlainObject_,set:Sc(t.toString(),n.set)},r):(typeof n.value==`function`&&(i=this.options_)!=null&&i.autoBind&&(n.value=n.value.bind(e.proxy_??e.target_)),(this.options_?.deep===!1?_d.ref:_d).extend_(e,t,n,r))}function gc(e,t){Y(`'`+this.annotationType_+`' cannot be used as a decorator`)}function _c(e){return e||dd}function vc(e){return e.deep===!0?Ls:e.deep===!1?zs:bc(e.defaultDecorator)}function yc(e){return e?e.defaultDecorator??pc(e):void 0}function bc(e){return e?e.options_?.enhancer??Ls:Ls}function xc(e,t,n){if(js(t))return fd.decorate_20223_(e,t);if(Qo(t)){ks(e,t,fd);return}return Il(e)?e:es(e)?_d.object(e,t,n):Array.isArray(e)?_d.array(e,t):as(e)?_d.map(e,t):ss(e)?_d.set(e,t):typeof e==`object`&&e?e:_d.box(e,t)}function Sc(e,t,n,r){n===void 0&&(n=!1);function i(){return Cc(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},Td&&(Ed.value=e,Uu(i,`name`,Ed)),i}function Cc(e,t,n,r,i){var a=wc(e,t,r,i);try{return n.apply(r,i)}catch(e){throw a.error_=e,e}finally{Tc(a)}}function wc(e,t,n,r){var i=!1,a=0,o=$.trackingDerivation,s=!t||!o;Yc();var c=$.allowStateChanges;s&&(Ic(),c=Dc(!0));var l=Rc(!0),u={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:c,prevAllowStateReads_:l,notifySpy_:i,startTime_:a,actionId_:wd++,parentActionId_:Cd};return Cd=u.actionId_,u}function Tc(e){Cd!==e.actionId_&&Y(30),Cd=e.parentActionId_,e.error_!==void 0&&($.suppressReactionErrors=!0),Oc(e.prevAllowStateChanges_),zc(e.prevAllowStateReads_),Xc(),e.runAsAction_&&Lc(e.prevDerivation_),$.suppressReactionErrors=!1}function Ec(e,t){var n=Dc(e);try{return t()}finally{Oc(n)}}function Dc(e){var t=$.allowStateChanges;return $.allowStateChanges=e,t}function Oc(e){$.allowStateChanges=e}function kc(e){return e instanceof Md}function Ac(e){switch(e.dependenciesState_){case Q.UP_TO_DATE_:return!1;case Q.NOT_TRACKING_:case Q.STALE_:return!0;case Q.POSSIBLY_STALE_:for(var t=Rc(!0),n=Ic(),r=e.observing_,i=r.length,a=0;a<i;a++){var o=r[a];if(Ad(o)){if($.disableErrorBoundaries)o.get();else try{o.get()}catch{return Lc(n),zc(t),!0}if(e.dependenciesState_===Q.STALE_)return Lc(n),zc(t),!0}}return Bc(e),Lc(n),zc(t),!1}}function jc(){return $.trackingDerivation!==null}function Mc(e,t,n){var r=Rc(!0);Bc(e),e.newObserving_=Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++$.runId;var i=$.trackingDerivation;$.trackingDerivation=e,$.inBatch++;var a;if($.disableErrorBoundaries===!0)a=t.call(n);else try{a=t.call(n)}catch(e){a=new Md(e)}return $.inBatch--,$.trackingDerivation=i,Nc(e),zc(r),a}function Nc(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=Q.UP_TO_DATE_,i=0,a=e.unboundDepsCount_,o=0;o<a;o++){var s=n[o];s.diffValue===0&&(s.diffValue=1,i!==o&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,a=t.length;a--;){var c=t[a];c.diffValue===0&&qc(c,e),c.diffValue=0}for(;i--;){var l=n[i];l.diffValue===1&&(l.diffValue=0,Kc(l,e))}r!==Q.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Pc(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)qc(t[n],e);e.dependenciesState_=Q.NOT_TRACKING_}function Fc(e){var t=Ic();try{return e()}finally{Lc(t)}}function Ic(){var e=$.trackingDerivation;return $.trackingDerivation=null,e}function Lc(e){$.trackingDerivation=e}function Rc(e){var t=$.allowStateReads;return $.allowStateReads=e,t}function zc(e){$.allowStateReads=e}function Bc(e){if(e.dependenciesState_!==Q.UP_TO_DATE_){e.dependenciesState_=Q.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=Q.UP_TO_DATE_}}function Vc(){if(($.pendingReactions.length||$.inBatch||$.isRunningReactions)&&Y(36),Id=!0,Fd){var e=Jo();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),$=new Pd}}function Hc(){return $}function Uc(){var e=new Pd;for(var t in e)Nd.indexOf(t)===-1&&($[t]=e[t]);$.allowStateChanges=!$.enforceActions}function Wc(e){return e.observers_&&e.observers_.size>0}function Gc(e){return e.observers_}function Kc(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function qc(e,t){e.observers_.delete(t),e.observers_.size===0&&Jc(e)}function Jc(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,$.pendingUnobservations.push(e))}function Yc(){$.inBatch++}function Xc(){if(--$.inBatch===0){nl();for(var e=$.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof kd&&n.suspend_())}$.pendingUnobservations=[]}}function Zc(e){var t=$.trackingDerivation;return t===null?(e.observers_.size===0&&$.inBatch>0&&Jc(e),!1):(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&$.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved)}function Qc(e){e.lowestObserverState_!==Q.STALE_&&(e.lowestObserverState_=Q.STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Q.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=Q.STALE_}))}function $c(e){e.lowestObserverState_!==Q.STALE_&&(e.lowestObserverState_=Q.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===Q.POSSIBLY_STALE_?t.dependenciesState_=Q.STALE_:t.dependenciesState_===Q.UP_TO_DATE_&&(e.lowestObserverState_=Q.UP_TO_DATE_)}))}function el(e){e.lowestObserverState_===Q.UP_TO_DATE_&&(e.lowestObserverState_=Q.POSSIBLY_STALE_,e.observers_.forEach(function(e){e.dependenciesState_===Q.UP_TO_DATE_&&(e.dependenciesState_=Q.POSSIBLY_STALE_,e.onBecomeStale_())}))}function tl(e){return $.globalReactionErrorHandlers.push(e),function(){var t=$.globalReactionErrorHandlers.indexOf(e);t>=0&&$.globalReactionErrorHandlers.splice(t,1)}}function nl(){$.inBatch>0||$.isRunningReactions||zd(rl)}function rl(){$.isRunningReactions=!0;for(var e=$.pendingReactions,t=0;e.length>0;){++t===Rd&&(console.error(`[mobx] cycle in reaction: `+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}$.isRunningReactions=!1}function il(e){var t=zd;zd=function(n){return e(function(){return t(n)})}}function al(){return!1}function ol(e){return console.warn(`[mobx.spy] Is a no-op in production builds`),function(){}}function sl(e){return function(t,n){if(Zo(t))return Sc(t.name||Gd,t,e);if(Zo(n))return Sc(t,n,e);if(js(n))return(e?Jd:Kd).decorate_20223_(t,n);if(Qo(n))return ks(t,n,e?Jd:Kd);if(Qo(t))return Os(Gs(e?Ud:Vd,{name:t,autoAction:e}))}}function cl(e){return Cc(e.name||Gd,!1,e,this,void 0)}function ll(e){return Zo(e)&&e.isMobxAction===!0}function ul(e,t){var n;t===void 0&&(t=Ku);var r=t?.name??`Autorun`,i=!t.scheduler&&!t.delay,a;if(i)a=new Ld(r,function(){this.track(c)},t.onError,t.requiresObservable);else{var o=dl(t),s=!1;a=new Ld(r,function(){s||(s=!0,o(function(){s=!1,a.isDisposed||a.track(c)}))},t.onError,t.requiresObservable)}function c(){e(a)}return(n=t)!=null&&(n=n.signal)!=null&&n.aborted||a.schedule_(),a.getDisposer_(t?.signal)}function dl(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Qd}function fl(e,t,n){var r;n===void 0&&(n=Ku);var i=n.name??`Reaction`,a=Xd(i,n.onError?pl(n.onError,t):t),o=!n.scheduler&&!n.delay,s=dl(n),c=!0,l=!1,u,d=n.compareStructural?nd.structural:n.equals||nd.default,f=new Ld(i,function(){c||o?p():l||(l=!0,s(p))},n.onError,n.requiresObservable);function p(){if(l=!1,!f.isDisposed){var t=!1,r=u;f.track(function(){var n=Ec(!1,function(){return e(f)});t=c||!d(u,n),u=n}),(c&&n.fireImmediately||!c&&t)&&a(u,r,f),c=!1}}return(r=n)!=null&&(r=r.signal)!=null&&r.aborted||f.schedule_(),f.getDisposer_(n?.signal)}function pl(e,t){return function(){try{return t.apply(this,arguments)}catch(t){e.call(this,t)}}}function ml(e,t,n){return gl($d,e,t,n)}function hl(e,t,n){return gl(ef,e,t,n)}function gl(e,t,n,r){var i=typeof r==`function`?ju(t,n):ju(t),a=Zo(r)?r:n,o=e+`L`;return i[o]?i[o].add(a):i[o]=new Set([a]),function(){var e=i[o];e&&(e.delete(a),e.size===0&&delete i[o])}}function _l(e){e.isolateGlobalState===!0&&Vc();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&($.useProxies=t===nf||t!==tf&&typeof Proxy<`u`),t===`ifavailable`&&($.verifyProxies=!0),n!==void 0){var r=n===nf?nf:n===rf;$.enforceActions=r,$.allowStateChanges=r!==!0&&r!==nf}[`computedRequiresReaction`,`reactionRequiresObservable`,`observableRequiresReaction`,`disableErrorBoundaries`,`safeDescriptors`].forEach(function(t){t in e&&($[t]=!!e[t])}),$.allowStateReads=!$.observableRequiresReaction,e.reactionScheduler&&il(e.reactionScheduler)}function vl(e,t,n,r){var i=Qu(t);return Pu(function(){var t=Su(e,r)[Z];Zu(i).forEach(function(e){t.extend_(e,i[e],n&&e in n?n[e]:!0)})}),e}function yl(e,t){return bl(ju(e,t))}function bl(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Cl(e.observing_).map(bl)),t}function xl(e,t){return Sl(ju(e,t))}function Sl(e){var t={name:e.name_};return Wc(e)&&(t.observers=Array.from(Gc(e)).map(Sl)),t}function Cl(e){return Array.from(new Set(e))}function wl(e){return e instanceof of}function Tl(e){Zo(e.cancel)&&e.cancel()}function El(e){return e}function Dl(e){return e?.isMobXFlow===!0}function Ol(e,t,n){var r;return Cf(e)||vu(e)||Od(e)?r=Mu(e):wu(e)&&(r=Mu(e,t)),r.dehancer=typeof t==`function`?t:n,function(){r.dehancer=void 0}}function kl(e,t,n){return Zo(n)?jl(e,t,n):Al(e,t)}function Al(e,t){return Mu(e).intercept_(t)}function jl(e,t,n){return Mu(e,t).intercept_(n)}function Ml(e,t){return t===void 0?Ad(e):wu(e)===!1||!e[Z].values_.has(t)?!1:Ad(ju(e,t))}function Nl(e){return Ml(e)}function Pl(e,t){return Ml(e,t)}function Fl(e,t){return e?t===void 0?wu(e)||!!e[Z]||td(e)||Bd(e)||Ad(e):wu(e)?e[Z].values_.has(t):!1:!1}function Il(e){return Fl(e)}function Ll(e,t){return Fl(e,t)}function Rl(e){if(wu(e))return e[Z].keys_();if(Cf(e)||Ef(e))return Array.from(e.keys());if(vu(e))return e.map(function(e,t){return t});Y(5)}function zl(e){if(wu(e))return Rl(e).map(function(t){return e[t]});if(Cf(e))return Rl(e).map(function(t){return e.get(t)});if(Ef(e))return Array.from(e.values());if(vu(e))return e.slice();Y(6)}function Bl(e){if(wu(e))return Rl(e).map(function(t){return[t,e[t]]});if(Cf(e))return Rl(e).map(function(t){return[t,e.get(t)]});if(Ef(e))return Array.from(e.entries());if(vu(e))return e.map(function(e,t){return[t,e]});Y(7)}function Vl(e,t,n){if(arguments.length===2&&!Ef(e)){Yc();var r=t;try{for(var i in r)Vl(e,i,r[i])}finally{Xc()}return}wu(e)?e[Z].set_(t,n):Cf(e)?e.set(t,n):Ef(e)?e.add(t):vu(e)?(typeof t!=`number`&&(t=parseInt(t,10)),t<0&&Y(`Invalid index: '`+t+`'`),Yc(),t>=e.length&&(e.length=t+1),e[t]=n,Xc()):Y(8)}function Hl(e,t){wu(e)?e[Z].delete_(t):Cf(e)||Ef(e)?e.delete(t):vu(e)?(typeof t!=`number`&&(t=parseInt(t,10)),e.splice(t,1)):Y(9)}function Ul(e,t){if(wu(e))return e[Z].has_(t);if(Cf(e)||Ef(e))return e.has(t);if(vu(e))return t>=0&&t<e.length;Y(10)}function Wl(e,t){if(Ul(e,t)){if(wu(e))return e[Z].get_(t);if(Cf(e))return e.get(t);if(vu(e))return e[t];Y(11)}}function Gl(e,t,n){if(wu(e))return e[Z].defineProperty_(t,n);Y(39)}function Kl(e){if(wu(e))return e[Z].ownKeys_();Y(38)}function ql(e,t,n,r){return Zo(n)?Yl(e,t,n,r):Jl(e,t,n)}function Jl(e,t,n){return Mu(e).observe_(t,n)}function Yl(e,t,n,r){return Mu(e,t).observe_(n,r)}function Xl(e,t,n){return e.set(t,n),n}function Zl(e,t){if(typeof e!=`object`||!e||e instanceof Date||!Il(e))return e;if(Od(e)||Ad(e))return Zl(e.get(),t);if(t.has(e))return t.get(e);if(vu(e)){var n=Xl(t,e,Array(e.length));return e.forEach(function(e,r){n[r]=Zl(e,t)}),n}if(Ef(e)){var r=Xl(t,e,new Set);return e.forEach(function(e){r.add(Zl(e,t))}),r}if(Cf(e)){var i=Xl(t,e,new Map);return e.forEach(function(e,n){i.set(n,Zl(e,t))}),i}var a=Xl(t,e,{});return Kl(e).forEach(function(n){Wu.propertyIsEnumerable.call(e,n)&&(a[n]=Zl(e[n],t))}),a}function Ql(e,t){return Zl(e,new Map)}function $l(){}function eu(e,t){t===void 0&&(t=void 0),Yc();try{return e.apply(t)}finally{Xc()}}function tu(e,t,n){return arguments.length===1||t&&typeof t==`object`?ru(e,t):nu(e,t,n||{})}function nu(e,t,n){var r;if(typeof n.timeout==`number`){var i=Error(`WHEN_TIMEOUT`);r=setTimeout(function(){if(!o[Z].isDisposed){if(o(),n.onError)n.onError(i);else throw i}},n.timeout)}n.name=`When`;var a=Sc(`When-effect`,t),o=ul(function(t){Ec(!1,e)&&(t.dispose(),r&&clearTimeout(r),a())},n);return o}function ru(e,t){var n;if(t!=null&&(n=t.signal)!=null&&n.aborted)return Object.assign(Promise.reject(Error(`WHEN_ABORTED`)),{cancel:function(){return null}});var r,i,a=new Promise(function(n,a){var o,s=nu(e,n,vs({},t,{onError:a}));r=function(){s(),a(Error(`WHEN_CANCELLED`))},i=function(){s(),a(Error(`WHEN_ABORTED`))},t==null||(o=t.signal)==null||o.addEventListener==null||o.addEventListener(`abort`,i)}).finally(function(){var e;return t==null||(e=t.signal)==null||e.removeEventListener==null?void 0:e.removeEventListener(`abort`,i)});return a.cancel=r,a}function iu(e){return e[Z]}function au(e,t){var n;return Yo(),e=Su(e,t),(n=e[Z]).proxy_??(n.proxy_=new Proxy(e,uf))}function ou(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function su(e,t){var n=e.interceptors_||=[];return n.push(t),Xo(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function cu(e,t){var n=Ic();try{for(var r=[].concat(e.interceptors_||[]),i=0,a=r.length;i<a&&(t=r[i](t),t&&!t.type&&Y(14),t);i++);return t}finally{Lc(n)}}function lu(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function uu(e,t){var n=e.changeListeners_||=[];return n.push(t),Xo(function(){var e=n.indexOf(t);e!==-1&&n.splice(e,1)})}function du(e,t){var n=Ic(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,a=r.length;i<a;i++)r[i](t);Lc(n)}}function fu(e,t,n){return Pu(function(){var r=Su(e,n)[Z];t??=As(e),Zu(t).forEach(function(e){return r.make_(e,t[e])})}),e}function pu(e,t,n){return es(e)?vl(e,e,t,n):(Pu(function(){var r=Su(e,n)[Z];if(!e[df]){var i=Object.getPrototypeOf(e),a=new Set([].concat(Zu(e),Zu(i)));a.delete(`constructor`),a.delete(Z),ns(i,df,a)}e[df].forEach(function(e){return r.make_(e,t&&e in t?t[e]:!0)})}),e)}function mu(e,t,n,r){return n===void 0&&(n=`ObservableArray`),r===void 0&&(r=!1),Yo(),Pu(function(){var i=new gf(n,t,r,!1);rs(i.values_,Z,i);var a=new Proxy(i.values_,hf);return i.proxy_=a,e&&e.length&&i.spliceWithArray_(0,0,e),a})}function X(e,t){typeof Array.prototype[e]==`function`&&(_f[e]=t(e))}function hu(e){return function(){var t=this[Z];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function gu(e){return function(t,n){var r=this,i=this[Z];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e](function(e,i){return t.call(n,e,i,r)})}}function _u(e){return function(){var t=this,n=this[Z];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}function vu(e){return $o(e)&&vf(e[Z])}function yu(e){return e[Symbol.toStringTag]=`MapIterator`,Ru(e)}function bu(e){if(as(e)||Cf(e))return e;if(Array.isArray(e))return new Map(e);if(es(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return Y(21,e)}function xu(e){return e[Symbol.toStringTag]=`SetIterator`,Ru(e)}function Su(e,t){if(us(e,Z))return e;var n=t?.name??`ObservableObject`;return ns(e,Z,new kf(e,new Map,String(n),yc(t))),e}function Cu(e){return Df[e]||(Df[e]={get:function(){return this[Z].getObservablePropValue_(e)},set:function(t){return this[Z].setObservablePropValue_(e,t)}})}function wu(e){return $o(e)?Af(e[Z]):!1}function Tu(e,t,n){var r;(r=e.target_[$u])==null||delete r[n]}function Eu(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__===void 0?e.prototype=t:e.prototype.__proto__=t}function Du(e){return{enumerable:!1,configurable:!0,get:function(){return this[Z].get_(e)},set:function(t){this[Z].set_(e,t)}}}function Ou(e){Uu(Ff.prototype,``+e,Du(e))}function ku(e){if(e>Nf){for(var t=Nf;t<e+100;t++)Ou(t);Nf=e}}function Au(e,t,n){return new Ff(e,t,n)}function ju(e,t){if(typeof e==`object`&&e){if(vu(e))return t!==void 0&&Y(23),e[Z].atom_;if(Ef(e))return e.atom_;if(Cf(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||Y(25,t,Nu(e)),n}if(wu(e)){if(!t)return Y(26);var r=e[Z].values_.get(t);return r||Y(27,t,Nu(e)),r}if(td(e)||Ad(e)||Bd(e))return e}else if(Zo(e)&&Bd(e[Z]))return e[Z];Y(28)}function Mu(e,t){if(e||Y(29),t!==void 0)return Mu(ju(e,t));if(td(e)||Ad(e)||Bd(e)||Cf(e)||Ef(e))return e;if(e[Z])return e[Z];Y(24,e)}function Nu(e,t){var n;if(t!==void 0)n=ju(e,t);else if(ll(e))return e.name;else n=wu(e)||Cf(e)||Ef(e)?Mu(e):ju(e);return n.name_}function Pu(e){var t=Ic(),n=Dc(!0);Yc();try{return e()}finally{Xc(),Oc(n),Lc(t)}}function Fu(e,t,n){return n===void 0&&(n=-1),Iu(e,t,n)}function Iu(e,t,n,r,i){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var a=typeof e;if(a!==`function`&&a!==`object`&&typeof t!=`object`)return!1;var o=If.call(e);if(o!==If.call(t))return!1;switch(o){case`[object RegExp]`:case`[object String]`:return``+e==``+t;case`[object Number]`:return+e==+e?+e==0?1/e==1/t:+e==+t:+t!=+t;case`[object Date]`:case`[object Boolean]`:return+e==+t;case`[object Symbol]`:return typeof Symbol<`u`&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case`[object Map]`:case`[object Set]`:n>=0&&n++}e=Lu(e),t=Lu(t);var s=o===`[object Array]`;if(!s){if(typeof e!=`object`||typeof t!=`object`)return!1;var c=e.constructor,l=t.constructor;if(c!==l&&!(Zo(c)&&c instanceof c&&Zo(l)&&l instanceof l)&&`constructor`in e&&`constructor`in t)return!1}if(n===0)return!1;n<0&&(n=-1),r||=[],i||=[];for(var u=r.length;u--;)if(r[u]===e)return i[u]===t;if(r.push(e),i.push(t),s){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!Iu(e[u],t[u],n-1,r,i))return!1}else{var d=Object.keys(e),f=d.length;if(Object.keys(t).length!==f)return!1;for(var p=0;p<f;p++){var m=d[p];if(!(us(t,m)&&Iu(e[m],t[m],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function Lu(e){return vu(e)?e.slice():as(e)||Cf(e)||ss(e)||Ef(e)?Array.from(e.entries()):e}function Ru(e){return e[Symbol.iterator]=zu,Object.assign(Object.create(Lf),e)}function zu(){return this}var Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,Z,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,Od,kd,Ad,Q,jd,Md,Nd,Pd,Fd,Id,$,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf,af,of,sf,cf,lf,uf,df,ff,pf,mf,hf,gf,_f,vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Lf,Rf=t((()=>{B(),Bu={},Vu=Object.assign,Hu=Object.getOwnPropertyDescriptor,Uu=Object.defineProperty,Wu=Object.prototype,Gu=[],Object.freeze(Gu),Ku={},Object.freeze(Ku),qu=typeof Proxy<`u`,Ju=Object.toString(),Yu=function(){},Xu=Object.getOwnPropertySymbols!==void 0,Zu=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Xu?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Qu=Object.getOwnPropertyDescriptors||function(e){var t={};return Zu(e).forEach(function(n){t[n]=Hu(e,n)}),t},$u=Symbol(`mobx-stored-annotations`),Z=Symbol(`mobx administration`),ed=function(){function e(e){e===void 0&&(e=`Atom`),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=Q.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.reportObserved=function(){return Zc(this)},t.reportChanged=function(){Yc(),Qc(this),Xc()},t.toString=function(){return this.name_},gs(e,[{key:`isBeingObserved`,get:function(){return ds(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=fs(this.flags_,e.isBeingObservedMask_,t)}},{key:`isPendingUnobservation`,get:function(){return ds(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=fs(this.flags_,e.isPendingUnobservationMask_,t)}},{key:`diffValue`,get:function(){return+!!ds(this.flags_,e.diffValueMask_)},set:function(t){this.flags_=fs(this.flags_,e.diffValueMask_,t===1)}}])}(),ed.isBeingObservedMask_=1,ed.isPendingUnobservationMask_=2,ed.diffValueMask_=4,td=is(`Atom`,ed),nd={identity:Ns,structural:Ps,default:Is,shallow:Fs},rd=`override`,id=Os({annotationType_:rd,make_:Hs,extend_:Us,decorate_20223_:Ws}),ad=`true`,od=pc(),sd=`observable`,cd=`observable.ref`,ld=`observable.shallow`,ud=`observable.struct`,dd={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0},Object.freeze(dd),fd=cc(sd),pd=cc(cd,{enhancer:zs}),md=cc(ld,{enhancer:Rs}),hd=cc(ud,{enhancer:Bs}),gd=Os(fd),Vu(xc,gd),_d=Vu(xc,{box:function(e,t){var n=_c(t);return new Dd(e,vc(n),n.name,!0,n.equals)},array:function(e,t){var n=_c(t);return($.useProxies===!1||n.proxy===!1?Au:mu)(e,vc(n),n.name)},map:function(e,t){var n=_c(t);return new Sf(e,vc(n),n.name)},set:function(e,t){var n=_c(t);return new Tf(e,vc(n),n.name)},object:function(e,t,n){return Pu(function(){return vl($.useProxies===!1||n?.proxy===!1?Su({},n):au({},n),e,t)})},ref:Os(pd),shallow:Os(md),deep:gd,struct:Os(hd)}),vd=`computed`,yd=`computed.struct`,bd=rc(vd),xd=rc(yd,{equals:nd.structural}),Sd=function(e,t){if(js(t))return bd.decorate_20223_(e,t);if(Qo(t))return ks(e,t,bd);if(es(e))return Os(rc(vd,e));var n=es(t)?t:{};return n.get=e,n.name||=e.name||``,new kd(n)},Object.assign(Sd,bd),Sd.struct=Os(xd),Cd=0,wd=1,Td=Hu(function(){},`name`)?.configurable??!1,Ed={value:`action`,configurable:!0,writable:!1,enumerable:!1},Dd=function(e){function t(t,n,r,i,a){var o;return r===void 0&&(r=`ObservableValue`),i===void 0&&(i=!0),a===void 0&&(a=nd.default),o=e.call(this,r)||this,o.enhancer=void 0,o.name_=void 0,o.equals=void 0,o.hasUnreportedChange_=!1,o.interceptors_=void 0,o.changeListeners_=void 0,o.value_=void 0,o.dehancer=void 0,o.enhancer=n,o.name_=r,o.equals=a,o.value_=n(t,void 0,r),o}bs(t,e);var n=t.prototype;return n.dehanceValue=function(e){return this.dehancer===void 0?e:this.dehancer(e)},n.set=function(e){this.value_,e=this.prepareNewValue_(e),e!==$.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(ou(this)){var t=cu(this,{object:this,type:pf,newValue:e});if(!t)return $.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?$.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),lu(this)&&du(this,{type:pf,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return su(this,e)},n.observe_=function(e,t){return t&&e({observableKind:`value`,debugObjectName:this.name_,object:this,type:pf,newValue:this.value_,oldValue:void 0}),uu(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+`[`+this.value_+`]`},n.valueOf=function(){return ls(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(ed),Od=is(`ObservableValue`,Dd),kd=function(){function e(e){this.dependenciesState_=Q.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=Q.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Md(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=jd.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||Y(31),this.derivation=e.get,this.name_=e.name||`ComputedValue`,e.set&&(this.setter_=Sc(`ComputedValue-setter`,e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?nd.structural:nd.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){el(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(e){return e()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(e){return e()})},t.get=function(){if(this.isComputing&&Y(32,this.name_,this.derivation),$.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ac(this)&&(this.warnAboutUntrackedRead_(),Yc(),this.value_=this.computeValue_(!1),Xc());else if(Zc(this),Ac(this)){var e=$.trackingContext;this.keepAlive_&&!e&&($.trackingContext=this),this.trackAndCompute()&&$c(this),$.trackingContext=e}var t=this.value_;if(kc(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter&&Y(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter=!1}}else Y(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===Q.NOT_TRACKING_,n=this.computeValue_(!0),r=t||kc(e)||kc(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing=!0;var t=Dc(!1),n;if(e)n=Mc(this,this.derivation,this.scope_);else if($.disableErrorBoundaries===!0)n=this.derivation.call(this.scope_);else try{n=this.derivation.call(this.scope_)}catch(e){n=new Md(e)}return Oc(t),this.isComputing=!1,n},t.suspend_=function(){this.keepAlive_||(Pc(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return ul(function(){var a=n.get();if(!r||t){var o=Ic();e({observableKind:`computed`,debugObjectName:n.name_,type:pf,object:n,newValue:a,oldValue:i}),Lc(o)}r=!1,i=a})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+`[`+this.derivation.toString()+`]`},t.valueOf=function(){return ls(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},gs(e,[{key:`isComputing`,get:function(){return ds(this.flags_,e.isComputingMask_)},set:function(t){this.flags_=fs(this.flags_,e.isComputingMask_,t)}},{key:`isRunningSetter`,get:function(){return ds(this.flags_,e.isRunningSetterMask_)},set:function(t){this.flags_=fs(this.flags_,e.isRunningSetterMask_,t)}},{key:`isBeingObserved`,get:function(){return ds(this.flags_,e.isBeingObservedMask_)},set:function(t){this.flags_=fs(this.flags_,e.isBeingObservedMask_,t)}},{key:`isPendingUnobservation`,get:function(){return ds(this.flags_,e.isPendingUnobservationMask_)},set:function(t){this.flags_=fs(this.flags_,e.isPendingUnobservationMask_,t)}},{key:`diffValue`,get:function(){return+!!ds(this.flags_,e.diffValueMask_)},set:function(t){this.flags_=fs(this.flags_,e.diffValueMask_,t===1)}}])}(),kd.isComputingMask_=1,kd.isRunningSetterMask_=2,kd.isBeingObservedMask_=4,kd.isPendingUnobservationMask_=8,kd.diffValueMask_=16,Ad=is(`ComputedValue`,kd),(function(e){e[e.NOT_TRACKING_=-1]=`NOT_TRACKING_`,e[e.UP_TO_DATE_=0]=`UP_TO_DATE_`,e[e.POSSIBLY_STALE_=1]=`POSSIBLY_STALE_`,e[e.STALE_=2]=`STALE_`})(Q||={}),(function(e){e[e.NONE=0]=`NONE`,e[e.LOG=1]=`LOG`,e[e.BREAK=2]=`BREAK`})(jd||={}),Md=function(e){this.cause=void 0,this.cause=e},Nd=[`mobxGuid`,`spyListeners`,`enforceActions`,`computedRequiresReaction`,`reactionRequiresObservable`,`observableRequiresReaction`,`allowStateReads`,`disableErrorBoundaries`,`runId`,`UNCHANGED`,`useProxies`],Pd=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Fd=!0,Id=!1,$=function(){var e=Jo();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Fd=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Pd().version&&(Fd=!1),Fd?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Pd):(setTimeout(function(){Id||Y(35)},1),new Pd)}(),Ld=function(){function e(e,t,n,r){e===void 0&&(e=`Reaction`),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=Q.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=jd.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,$.pendingReactions.push(this),nl())},t.runReaction_=function(){if(!this.isDisposed){Yc(),this.isScheduled=!1;var e=$.trackingContext;if($.trackingContext=this,Ac(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}$.trackingContext=e,Xc()}},t.track=function(e){if(!this.isDisposed){Yc(),this.isRunning=!0;var t=$.trackingContext;$.trackingContext=this;var n=Mc(this,e,void 0);$.trackingContext=t,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Pc(this),kc(n)&&this.reportExceptionInDerivation_(n.cause),Xc()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_){this.errorHandler_(e,this);return}if($.disableErrorBoundaries)throw e;var n=`[mobx] uncaught error in '`+this+`'`;$.suppressReactionErrors||console.error(n,e),$.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Yc(),Pc(this),Xc()))},t.getDisposer_=function(e){var t=this,n=function n(){t.dispose(),e==null||e.removeEventListener==null||e.removeEventListener(`abort`,n)};return e==null||e.addEventListener==null||e.addEventListener(`abort`,n),n[Z]=this,`dispose`in Symbol&&typeof Symbol.dispose==`symbol`&&(n[Symbol.dispose]=n),n},t.toString=function(){return`Reaction[`+this.name_+`]`},t.trace=function(e){e===void 0&&(e=!1)},gs(e,[{key:`isDisposed`,get:function(){return ds(this.flags_,e.isDisposedMask_)},set:function(t){this.flags_=fs(this.flags_,e.isDisposedMask_,t)}},{key:`isScheduled`,get:function(){return ds(this.flags_,e.isScheduledMask_)},set:function(t){this.flags_=fs(this.flags_,e.isScheduledMask_,t)}},{key:`isTrackPending`,get:function(){return ds(this.flags_,e.isTrackPendingMask_)},set:function(t){this.flags_=fs(this.flags_,e.isTrackPendingMask_,t)}},{key:`isRunning`,get:function(){return ds(this.flags_,e.isRunningMask_)},set:function(t){this.flags_=fs(this.flags_,e.isRunningMask_,t)}},{key:`diffValue`,get:function(){return+!!ds(this.flags_,e.diffValueMask_)},set:function(t){this.flags_=fs(this.flags_,e.diffValueMask_,t===1)}}])}(),Ld.isDisposedMask_=1,Ld.isScheduledMask_=2,Ld.isTrackPendingMask_=4,Ld.isRunningMask_=8,Ld.diffValueMask_=16,Rd=100,zd=function(e){return e()},Bd=is(`Reaction`,Ld),Vd=`action`,Hd=`action.bound`,Ud=`autoAction`,Wd=`autoAction.bound`,Gd=`<unnamed action>`,Kd=Gs(Vd),qd=Gs(Hd,{bound:!0}),Jd=Gs(Ud,{autoAction:!0}),Yd=Gs(Wd,{autoAction:!0,bound:!0}),Xd=sl(!1),Object.assign(Xd,Kd),Zd=sl(!0),Object.assign(Zd,Jd),Xd.bound=Os(qd),Zd.bound=Os(Yd),Qd=function(e){return e()},$d=`onBO`,ef=`onBUO`,tf=`never`,nf=`always`,rf=`observed`,af=0,of=function(e){function t(){var n=e.call(this,`FLOW_CANCELLED`)||this;return Object.setPrototypeOf(n,(this instanceof t?this.constructor:void 0).prototype),n.name=`FlowCancellationError`,n}bs(t,e);var n=t.prototype;return n.toString=function(){return`Error: `+this.message},t}(Ds(Error)),sf=Zs(`flow`),cf=Zs(`flow.bound`,{bound:!0}),lf=Object.assign(function(e,t){if(js(t))return sf.decorate_20223_(e,t);if(Qo(t))return ks(e,t,sf);var n=e,r=n.name||`<unnamed flow>`,i=function(){var e=this,t=arguments,i=++af,a=Xd(r+` - runid: `+i+` - init`,n).apply(e,t),o,s=void 0,c=new Promise(function(e,t){var n=0;o=t;function c(e){s=void 0;var o;try{o=Xd(r+` - runid: `+i+` - yield `+n++,a.next).call(a,e)}catch(e){return t(e)}u(o)}function l(e){s=void 0;var o;try{o=Xd(r+` - runid: `+i+` - yield `+n++,a.throw).call(a,e)}catch(e){return t(e)}u(o)}function u(n){if(Zo(n?.then)){n.then(u,t);return}return n.done?e(n.value):(s=Promise.resolve(n.value),s.then(c,l))}c(void 0)});return c.cancel=Xd(r+` - runid: `+i+` - cancel`,function(){try{s&&Tl(s);var e=a.return(void 0),t=Promise.resolve(e.value);t.then(Yu,Yu),Tl(t),o(new of)}catch(e){o(e)}}),c};return i.isMobXFlow=!0,i},sf),lf.bound=Os(cf),uf={has:function(e,t){return iu(e).has_(t)},get:function(e,t){return iu(e).get_(t)},set:function(e,t,n){return Qo(t)?iu(e).set_(t,n,!0)??!0:!1},deleteProperty:function(e,t){return Qo(t)?iu(e).delete_(t,!0)??!0:!1},defineProperty:function(e,t,n){return iu(e).defineProperty_(t,n)??!0},ownKeys:function(e){return iu(e).ownKeys_()},preventExtensions:function(e){Y(13)}},df=Symbol(`mobx-keys`),ff=`splice`,pf=`update`,mf=1e4,hf={get:function(e,t){var n=e[Z];return t===Z?n:t===`length`?n.getArrayLength_():typeof t==`string`&&!isNaN(t)?n.get_(parseInt(t)):us(_f,t)?_f[t]:e[t]},set:function(e,t,n){var r=e[Z];return t===`length`&&r.setArrayLength_(n),typeof t==`symbol`||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){Y(15)}},gf=function(){function e(e,t,n,r){e===void 0&&(e=`ObservableArray`),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new ed(e),this.enhancer_=function(e,n){return t(e,n,`ObservableArray[..]`)}}var t=e.prototype;return t.dehanceValue_=function(e){return this.dehancer===void 0?e:this.dehancer(e)},t.dehanceValues_=function(e){return this.dehancer!==void 0&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return su(this,e)},t.observe_=function(e,t){return t===void 0&&(t=!1),t&&e({observableKind:`array`,object:this.proxy_,debugObjectName:this.atom_.name_,type:`splice`,index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),uu(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){(typeof e!=`number`||isNaN(e)||e<0)&&Y(`Out of range: `+e);var t=this.values_.length;if(e!==t){if(e>t){for(var n=Array(e-t),r=0;r<e-t;r++)n[r]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)}},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&Y(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&ku(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(e===void 0?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=arguments.length===1?i-e:t==null?0:Math.max(0,Math.min(t,i-e)),n===void 0&&(n=Gu),ou(this)){var a=cu(this,{object:this.proxy_,type:ff,index:e,removedCount:t,added:n});if(!a)return Gu;t=a.removedCount,n=a.added}if(n=n.length===0?n:n.map(function(e){return r.enhancer_(e,void 0)}),this.legacyMode_){var o=n.length-t;this.updateArrayLength_(i,o)}var s=this.spliceItemsIntoValues_(e,t,n);return(t!==0||n.length!==0)&&this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){if(n.length<mf){var r;return(r=this.values_).splice.apply(r,[e,t].concat(n))}var i=this.values_.slice(e,e+t),a=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var o=0;o<n.length;o++)this.values_[e+o]=n[o];for(var s=0;s<a.length;s++)this.values_[e+n.length+s]=a[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&al(),i=lu(this),a=i||r?{observableKind:`array`,object:this.proxy_,type:pf,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&du(this,a)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&al(),i=lu(this),a=i||r?{observableKind:`array`,object:this.proxy_,debugObjectName:this.atom_.name_,type:ff,index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&du(this,a)},t.get_=function(e){if(this.legacyMode_&&e>=this.values_.length){console.warn(`[mobx] Out of bounds read: `+e);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e])},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&Y(17,e,n.length),e<n.length){this.atom_;var r=n[e];if(ou(this)){var i=cu(this,{type:pf,object:this.proxy_,index:e,newValue:t});if(!i)return;t=i.newValue}t=this.enhancer_(t,r),t!==r&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,r))}else{for(var a=Array(e+1-n.length),o=0;o<a.length-1;o++)a[o]=void 0;a[a.length-1]=t,this.spliceWithArray_(n.length,0,a)}},e}(),_f={clear:function(){return this.splice(0)},replace:function(e){var t=this[Z];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){var n=[...arguments].slice(2),r=this[Z];switch(arguments.length){case 0:return[];case 1:return r.spliceWithArray_(e);case 2:return r.spliceWithArray_(e,t)}return r.spliceWithArray_(e,t,n)},spliceWithArray:function(e,t,n){return this[Z].spliceWithArray_(e,t,n)},push:function(){var e=this[Z],t=[...arguments];return e.spliceWithArray_(e.values_.length,0,t),e.values_.length},pop:function(){return this.splice(Math.max(this[Z].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){var e=this[Z],t=[...arguments];return e.spliceWithArray_(0,0,t),e.values_.length},reverse:function(){return $.trackingDerivation&&Y(37,`reverse`),this.replace(this.slice().reverse()),this},sort:function(){$.trackingDerivation&&Y(37,`sort`);var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[Z],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}},X(`at`,hu),X(`concat`,hu),X(`flat`,hu),X(`includes`,hu),X(`indexOf`,hu),X(`join`,hu),X(`lastIndexOf`,hu),X(`slice`,hu),X(`toString`,hu),X(`toLocaleString`,hu),X(`toSorted`,hu),X(`toSpliced`,hu),X(`with`,hu),X(`every`,gu),X(`filter`,gu),X(`find`,gu),X(`findIndex`,gu),X(`findLast`,gu),X(`findLastIndex`,gu),X(`flatMap`,gu),X(`forEach`,gu),X(`map`,gu),X(`some`,gu),X(`toReversed`,gu),X(`reduce`,_u),X(`reduceRight`,_u),vf=is(`ObservableArrayAdministration`,gf),yf={},bf=`add`,xf=`delete`,Sf=function(){function e(e,t,n){var r=this;t===void 0&&(t=Ls),n===void 0&&(n=`ObservableMap`),this.enhancer_=void 0,this.name_=void 0,this[Z]=yf,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,Zo(Map)||Y(18),Pu(function(){r.keysAtom_=Ms(`ObservableMap.keys()`),r.data_=new Map,r.hasMap_=new Map,e&&r.merge(e)})}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!$.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Dd(this.has_(e),zs,`ObservableMap.key?`,!1);this.hasMap_.set(e,r),hl(r,function(){return t.hasMap_.delete(e)})}return n.get()},t.set=function(e,t){var n=this.has_(e);if(ou(this)){var r=cu(this,{type:n?pf:bf,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,ou(this)&&!cu(this,{type:xf,object:this,name:e}))return!1;if(this.has_(e)){var n=al(),r=lu(this),i=r||n?{observableKind:`map`,debugObjectName:this.name_,type:xf,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return eu(function(){var n;t.keysAtom_.reportChanged(),(n=t.hasMap_.get(e))==null||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)}),r&&du(this,i),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if(t=n.prepareNewValue_(t),t!==$.UNCHANGED){var r=al(),i=lu(this),a=i||r?{observableKind:`map`,debugObjectName:this.name_,type:pf,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&du(this,a)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,eu(function(){var r,i=new Dd(t,n.enhancer_,`ObservableMap.key`,!1);n.data_.set(e,i),t=i.value_,(r=n.hasMap_.get(e))==null||r.setNewValue_(!0),n.keysAtom_.reportChanged()});var r=al(),i=lu(this),a=i||r?{observableKind:`map`,debugObjectName:this.name_,type:bf,object:this,name:e,newValue:t}:null;i&&du(this,a)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return this.dehancer===void 0?e:this.dehancer(e)},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return yu({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return yu({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(e,t){for(var n=_s(this),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];e.call(t,o,a,this)}},t.merge=function(e){var t=this;return Cf(e)&&(e=new Map(e)),eu(function(){es(e)?cs(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):as(e)?(os(e)||Y(19,e),e.forEach(function(e,n){return t.set(n,e)})):e!=null&&Y(20,e)}),this},t.clear=function(){var e=this;eu(function(){Fc(function(){for(var t=_s(e.keys()),n;!(n=t()).done;){var r=n.value;e.delete(r)}})})},t.replace=function(e){var t=this;return eu(function(){for(var n=bu(e),r=new Map,i=!1,a=_s(t.data_.keys()),o;!(o=a()).done;){var s=o.value;if(!n.has(s)){if(t.delete(s))i=!0;else{var c=t.data_.get(s);r.set(s,c)}}}for(var l=_s(n.entries()),u;!(u=l()).done;){var d=u.value,f=d[0],p=d[1],m=t.data_.has(f);if(t.set(f,p),t.data_.has(f)){var h=t.data_.get(f);r.set(f,h),m||(i=!0)}}if(!i){if(t.data_.size!==r.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),_=r.keys(),v=g.next(),y=_.next();!v.done;){if(v.value!==y.value){t.keysAtom_.reportChanged();break}v=g.next(),y=_.next()}}t.data_=r}),this},t.toString=function(){return`[object ObservableMap]`},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return uu(this,e)},t.intercept_=function(e){return su(this,e)},gs(e,[{key:`size`,get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return`Map`}}])}(),Cf=is(`ObservableMap`,Sf),wf={},Tf=function(){function e(e,t,n){var r=this;t===void 0&&(t=Ls),n===void 0&&(n=`ObservableSet`),this.name_=void 0,this[Z]=wf,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,Zo(Set)||Y(22),this.enhancer_=function(e,r){return t(e,r,n)},Pu(function(){r.atom_=Ms(r.name_),e&&r.replace(e)})}var t=e.prototype;return t.dehanceValue_=function(e){return this.dehancer===void 0?e:this.dehancer(e)},t.clear=function(){var e=this;eu(function(){Fc(function(){for(var t=_s(e.data_.values()),n;!(n=t()).done;){var r=n.value;e.delete(r)}})})},t.forEach=function(e,t){for(var n=_s(this),r;!(r=n()).done;){var i=r.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,ou(this)){var n=cu(this,{type:bf,object:this,newValue:e});if(!n)return this;e=n.newValue}if(!this.has(e)){eu(function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()});var r=lu(this),i=r?{observableKind:`set`,debugObjectName:this.name_,type:bf,object:this,newValue:e}:null;r&&du(this,i)}return this},t.delete=function(e){var t=this;if(ou(this)&&!cu(this,{type:xf,object:this,oldValue:e}))return!1;if(this.has(e)){var n=lu(this),r=n?{observableKind:`set`,debugObjectName:this.name_,type:xf,object:this,oldValue:e}:null;return eu(function(){t.atom_.reportChanged(),t.data_.delete(e)}),n&&du(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=this.values();return xu({next:function(){var t=e.next(),n=t.value,r=t.done;return r?{value:void 0,done:r}:{value:[n,n],done:r}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=this.data_.values();return xu({next:function(){var n=t.next(),r=n.value,i=n.done;return i?{value:void 0,done:i}:{value:e.dehanceValue_(r),done:i}}})},t.intersection=function(e){return ss(e)&&!Ef(e)?e.intersection(this):new Set(this).intersection(e)},t.union=function(e){return ss(e)&&!Ef(e)?e.union(this):new Set(this).union(e)},t.difference=function(e){return new Set(this).difference(e)},t.symmetricDifference=function(e){return ss(e)&&!Ef(e)?e.symmetricDifference(this):new Set(this).symmetricDifference(e)},t.isSubsetOf=function(e){return new Set(this).isSubsetOf(e)},t.isSupersetOf=function(e){return new Set(this).isSupersetOf(e)},t.isDisjointFrom=function(e){return ss(e)&&!Ef(e)?e.isDisjointFrom(this):new Set(this).isDisjointFrom(e)},t.replace=function(e){var t=this;return Ef(e)&&(e=new Set(e)),eu(function(){Array.isArray(e)||ss(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):e!=null&&Y(`Cannot initialize set from `+e)}),this},t.observe_=function(e,t){return uu(this,e)},t.intercept_=function(e){return su(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return`[object ObservableSet]`},t[Symbol.iterator]=function(){return this.values()},gs(e,[{key:`size`,get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return`Set`}}])}(),Ef=is(`ObservableSet`,Tf),Df=Object.create(null),Of=`remove`,kf=function(){function e(e,t,n,r){t===void 0&&(t=new Map),r===void 0&&(r=od),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new ed(`ObservableObject.keys`),this.isPlainObject_=es(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof kd)return n.set(t),!0;if(ou(this)){var r=cu(this,{type:pf,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if(t=n.prepareNewValue_(t),t!==$.UNCHANGED){var i=lu(this),a=i?{type:pf,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),i&&du(this,a)}return!0},t.get_=function(e){return $.trackingDerivation&&!us(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return n===void 0&&(n=!1),us(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!$.trackingDerivation)return e in this.target_;this.pendingKeys_||=new Map;var t=this.pendingKeys_.get(e);return t||(t=new Dd(e in this.target_,zs,`ObservableObject.key?`,!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(t===!0&&(t=this.defaultAnnotation_),t!==!1){if(!(e in this.target_)){var n;if((n=this.target_[$u])!=null&&n[e])return;Y(1,t.annotationType_,this.name_+`.`+e.toString())}for(var r=this.target_;r&&r!==Wu;){var i=Hu(r,e);if(i){var a=t.make_(this,e,i,r);if(a===0)return;if(a===1)break}r=Object.getPrototypeOf(r)}Tu(this,t,e)}},t.extend_=function(e,t,n,r){if(r===void 0&&(r=!1),n===!0&&(n=this.defaultAnnotation_),n===!1)return this.defineProperty_(e,t,r);var i=n.extend_(this,e,t,r);return i&&Tu(this,n,e),i},t.defineProperty_=function(e,t,n){n===void 0&&(n=!1),this.keysAtom_;try{Yc();var r=this.delete_(e);if(!r)return r;if(ou(this)){var i=cu(this,{object:this.proxy_||this.target_,name:e,type:bf,newValue:t.value});if(!i)return null;var a=i.newValue;t.value!==a&&(t=vs({},t,{value:a}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else Uu(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{Xc()}return!0},t.defineObservableProperty_=function(e,t,n,r){r===void 0&&(r=!1),this.keysAtom_;try{Yc();var i=this.delete_(e);if(!i)return i;if(ou(this)){var a=cu(this,{object:this.proxy_||this.target_,name:e,type:bf,newValue:t});if(!a)return null;t=a.newValue}var o=Cu(e),s={configurable:!$.safeDescriptors||this.isPlainObject_,enumerable:!0,get:o.get,set:o.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else Uu(this.target_,e,s);var c=new Dd(t,n,`ObservableObject.key`,!1);this.values_.set(e,c),this.notifyPropertyAddition_(e,c.value_)}finally{Xc()}return!0},t.defineComputedProperty_=function(e,t,n){n===void 0&&(n=!1),this.keysAtom_;try{Yc();var r=this.delete_(e);if(!r)return r;if(ou(this)&&!cu(this,{object:this.proxy_||this.target_,name:e,type:bf,newValue:void 0}))return null;t.name||=`ObservableObject.key`,t.context=this.proxy_||this.target_;var i=Cu(e),a={configurable:!$.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,a))return!1}else Uu(this.target_,e,a);this.values_.set(e,new kd(t)),this.notifyPropertyAddition_(e,void 0)}finally{Xc()}return!0},t.delete_=function(e,t){if(t===void 0&&(t=!1),this.keysAtom_,!us(this.target_,e))return!0;if(ou(this)&&!cu(this,{object:this.proxy_||this.target_,name:e,type:Of}))return null;try{var n;Yc();var r=lu(this),i=this.values_.get(e),a=void 0;if(!i&&r&&(a=Hu(this.target_,e)?.value),t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(i&&(this.values_.delete(e),i instanceof Dd&&(a=i.value_),Qc(i)),this.keysAtom_.reportChanged(),(n=this.pendingKeys_)==null||(n=n.get(e))==null||n.set(e in this.target_),r){var o={type:Of,observableKind:`object`,object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:a,name:e};r&&du(this,o)}}finally{Xc()}return!0},t.observe_=function(e,t){return uu(this,e)},t.intercept_=function(e){return su(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r=lu(this);if(r){var i=r?{type:bf,observableKind:`object`,debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;r&&du(this,i)}(n=this.pendingKeys_)==null||(n=n.get(e))==null||n.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Zu(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}(),Af=is(`ObservableObjectAdministration`,kf),jf=Du(0),Mf=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Nf=0,Pf=function(){},Eu(Pf,Array.prototype),Ff=function(e){function t(t,n,r,i){var a;return r===void 0&&(r=`ObservableArray`),i===void 0&&(i=!1),a=e.call(this)||this,Pu(function(){var e=new gf(r,n,i,!0);e.proxy_=a,rs(a,Z,e),t&&t.length&&a.spliceWithArray(0,0,t),Mf&&Object.defineProperty(a,"0",jf)}),a}bs(t,e);var n=t.prototype;return n.concat=function(){this[Z].atom_.reportObserved();var e=[...arguments];return Array.prototype.concat.apply(this.slice(),e.map(function(e){return vu(e)?e.slice():e}))},n[Symbol.iterator]=function(){var e=this,t=0;return Ru({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},gs(t,[{key:`length`,get:function(){return this[Z].getArrayLength_()},set:function(e){this[Z].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return`Array`}}])}(Pf),Object.entries(_f).forEach(function(e){var t=e[0],n=e[1];t!==`concat`&&ns(Ff.prototype,t,n)}),ku(1e3),If=Wu.toString,Lf=Jo().Iterator?.prototype||{},[`Symbol`,`Map`,`Set`].forEach(function(e){Jo()[e]===void 0&&Y(`MobX requires global '`+e+`' to be available or polyfilled`)}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__==`object`&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:ol,extras:{getDebugName:Nu},$mobx:Z})})),zf=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceActionTimer=void 0;var t=(Rf(),n(qo));e.DebounceActionTimer=class{constructor(e,n){this.debounceMs=e,this.handler=n,this.requests=[],this.startTime=0,this.tick=()=>{let e=this.debounceMs<=0;if(this.debounceMs>0&&Date.now()-this.startTime>=this.debounceMs&&(e=!0),e){let e=this.requests.slice(),t=this.handler(e);typeof t==`object`&&`then`in t?Promise.resolve(t).then(t=>{this.handleResponses(e,t)}):this.handleResponses(e,t),this.requests=[]}else this.nextTick(this.tick)},this.handleResponses=(e,n)=>{(0,t.runInAction)(()=>{for(let t=0;t<e.length;t++){let r=e[t],i=n[t];r.action(i)}});for(let t of e)t.resolver()}}call(e,t){return new Promise(n=>{let r=this.requests.length===0;this.requests.push({args:e,action:t,resolver:n}),r&&this.startTimer()})}startTimer(){this.startTime=Date.now(),this.nextTick(this.tick)}nextTick(e){if(this.debounceMs<=0){Promise.resolve().then(e);return}typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame(e):setTimeout(e,this.debounceMs)}}})),Bf=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ko(),e),n(zf(),e)})),Vf=a((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Debouncer=void 0,e.Debouncer=class{static promise(e){let n;return(...r)=>t(this,void 0,void 0,function*(){if(n)return n;try{return n=e.apply(this,r),yield n}finally{n=void 0}})}}})),Hf=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Vf(),e)})),Uf=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.unescapeHTML=e.escapeHTML=void 0;function t(e){return e.replace(/</g,`\\u003c`).replace(/>/g,`\\u003e`).replace(/&/g,`\\u0026`)}e.escapeHTML=t;function n(e){return e.replace(/\\u003c/g,`<`).replace(/\\u003e/g,`>`).replace(/\\u0026/g,`&`)}e.unescapeHTML=n})),Wf=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sortedJsonByKeyStringify=e.sortObjectByKey=void 0;function t(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return e.map(t);let n=Object.keys(e).sort(),r={};return n.forEach(n=>{r[n]=t(e[n])}),r}e.sortObjectByKey=t;function n(e){return JSON.stringify(t(e))}e.sortedJsonByKeyStringify=n})),Gf=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Wf(),e)})),Kf=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateICNSName=e.parseICNSName=void 0;function t(e){let t=e.split(`.`);if(t.length===2&&t[0].length>0&&t[1].length>0)return[t[0],t[1]]}e.parseICNSName=t;function n(e,n){let r=t(e);return r?r[1]===n:!1}e.validateICNSName=n})),qf=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ao(),e),n(Go(),e),n(Bf(),e),n(Hf(),e),n(Uf(),e),n(Gf(),e),n(Kf(),e)})),Jf=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.serializeSignDoc=e.encodeSecp256k1Signature=e.encodeSecp256k1Pubkey=void 0;var t=le(),n=qf();function r(e){if(e.length!==33||e[0]!==2&&e[0]!==3)throw Error(`Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03`);return{type:`tendermint/PubKeySecp256k1`,value:t.Buffer.from(e).toString(`base64`)}}e.encodeSecp256k1Pubkey=r;function i(e,n){if(n.length!==64)throw Error(`Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.`);return{pub_key:r(e),signature:t.Buffer.from(n).toString(`base64`)}}e.encodeSecp256k1Signature=i;function a(e){return t.Buffer.from((0,n.escapeHTML)((0,n.sortedJsonByKeyStringify)(e)))}e.serializeSignDoc=a})),Yf=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Jf(),e)})),Xf=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.verifyADR36Amino=e.verifyADR36AminoSignDoc=e.makeADR36AminoSignDoc=e.checkAndValidateADR36AminoSignDoc=void 0;var t=Yf(),n=Da(),r=le(),i=Wo();function a(e,t){if(!(e&&e.msgs&&Array.isArray(e.msgs)&&e.msgs.length===1&&e.msgs[0].type===`sign/MsgSignData`))return!1;if(e.chain_id!==``)throw Error(`Chain id should be empty string for ADR-36 signing`);if(e.memo!==``)throw Error(`Memo should be empty string for ADR-36 signing`);if(e.account_number!==`0`)throw Error(`Account number should be "0" for ADR-36 signing`);if(e.sequence!==`0`)throw Error(`Sequence should be "0" for ADR-36 signing`);if(e.fee.gas!==`0`)throw Error(`Gas should be "0" for ADR-36 signing`);if(e.fee.amount.length!==0)throw Error(`Fee amount should be empty array for ADR-36 signing`);let i=e.msgs[0];if(i.type!==`sign/MsgSignData`)throw Error(`Invalid type of ADR-36 sign msg: ${i.type}`);if(!i.value)throw Error(`Empty value in the msg`);let a=i.value.signer;if(!a)throw Error(`Empty signer in the ADR-36 msg`);n.Bech32Address.validate(a,t);let o=i.value.data;if(!o)throw Error(`Empty data in the ADR-36 msg`);let s=r.Buffer.from(o,`base64`);if(s.toString(`base64`)!==o)throw Error(`Data is not encoded by base64`);if(s.length===0)throw Error(`Empty data in the ADR-36 msg`);return!0}e.checkAndValidateADR36AminoSignDoc=a;function o(e,t){return t=r.Buffer.from(t).toString(`base64`),{chain_id:``,account_number:`0`,sequence:`0`,fee:{gas:`0`,amount:[]},msgs:[{type:`sign/MsgSignData`,value:{signer:e,data:t}}],memo:``}}e.makeADR36AminoSignDoc=o;function s(e,r,o,s,c=`secp256k1`){if(!a(r,e))throw Error(`Invalid sign doc for ADR-36`);let l=new i.PubKeySecp256k1(o);if((c===`ethsecp256k1`?new n.Bech32Address(l.getEthAddress()).toBech32(e):new n.Bech32Address(l.getCosmosAddress()).toBech32(e))!==r.msgs[0].value.signer)throw Error(`Unmatched signer`);let u=(0,t.serializeSignDoc)(r);return l.verifyDigest32(c===`ethsecp256k1`?i.Hash.keccak256(u):i.Hash.sha256(u),s)}e.verifyADR36AminoSignDoc=s;function c(e,t,n,r,i,a=`secp256k1`){return s(e,o(t,n),r,i,a)}e.verifyADR36Amino=c})),Zf=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Xf(),e)})),Qf=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SignDocWrapper=void 0;var t=xo(),n=bo(),r=Zf();e.SignDocWrapper=class e{constructor(e){this.signDoc=e,this.mode=`msgs`in e?`amino`:`direct`,this.isADR36SignDoc=this.mode===`amino`&&(0,r.checkAndValidateADR36AminoSignDoc)(this.aminoSignDoc)}static fromAminoSignDoc(t){return new e(t)}static fromDirectSignDoc(t){return new e(t)}static fromDirectSignDocBytes(t){return new e(n.SignDoc.decode(t))}clone(){return new e(this.signDoc)}get protoSignDoc(){if(this.mode===`amino`)throw Error(`Sign doc is encoded as Amino Json`);if(`msgs`in this.signDoc)throw Error(`Unexpected error`);return this._protoSignDoc||=new t.ProtoSignDocDecoder(this.signDoc),this._protoSignDoc}get aminoSignDoc(){if(this.mode===`direct`)throw Error(`Sign doc is encoded as Protobuf`);if(!(`msgs`in this.signDoc))throw Error(`Unexpected error`);return this.signDoc}get chainId(){return this.mode===`direct`?this.protoSignDoc.chainId:this.aminoSignDoc.chain_id}get memo(){return this.mode===`direct`?this.protoSignDoc.txBody.memo:this.aminoSignDoc.memo}get fees(){if(this.mode===`direct`){let e=[];for(let t of this.protoSignDoc.authInfo.fee?.amount??[]){if(t.denom==null||t.amount==null)throw Error(`Invalid fee`);e.push({denom:t.denom,amount:t.amount})}return e}return this.aminoSignDoc.fee.amount}get payer(){return this.mode===`direct`?this.protoSignDoc.authInfo.fee?.payer:this.aminoSignDoc.fee.payer}get granter(){return this.mode===`direct`?this.protoSignDoc.authInfo.fee?.granter:this.aminoSignDoc.fee.granter}get gas(){return this.mode===`direct`?this.protoSignDoc.authInfo.fee?.gasLimit?parseInt(this.protoSignDoc.authInfo.fee.gasLimit):0:parseInt(this.aminoSignDoc.fee.gas)}}})),$f=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(_o(),e),n(xo(),e),n(Qf(),e)})),ep=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ai(),e),n(Da(),e),n(Aa(),e),n(Ma(),e),n($f(),e),n(Zf(),e),n(Yf(),e)})),tp=Vr(),np=ep(),rp=i(Ne()),ip=e=>e.apis?.rpc?.[0]?.address??``,ap=e=>e.apis?.rest?.[0]?.address??``,op=e=>e.explorers?.[0]?.url??``,sp={fullSemver:/v?(\d+\.\d+\.\d+)(?=-[\w.-]+|$)/,partialSemver:/v?(\d+\.\d+)(?=(?:\.\d+)?(?=-[\w.-]+|$))/,basicVersion:/v?(\d+)(?=(?:\.\d+)?(?:\.\d+)?(?=-[\w.-]+|$))/,tagged:/@v(\d+\.\d+)(?:\.x)?(?=-[\w.-]+|$)/,embedded:/\/v(\d+\.\d+\.\d+)(?=-[\w.-]+|$)/,simple:/v?(\d+)(?:\.(\d+))?(?:\.(\d+))?$/,complexEmbedded:/[\w-]+\/[\w-]+ v(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-\d+[\w.-]*)/,taggedVersion:/[\w-]+\/[\w-]+ v(\d+)(?:\.(\d+))?(?:\.(\d+))?(?=-[\w.-]+|$)/};function cp(e){let t=null;return sp.fullSemver.test(e)?t=e.match(sp.fullSemver)?.[1]:sp.partialSemver.test(e)?t=e.match(sp.partialSemver)?.[1]:sp.basicVersion.test(e)?t=e.match(sp.basicVersion)?.[1]:sp.taggedVersion.test(e)?t=e.match(sp.taggedVersion)?.[1]:sp.complexEmbedded.test(e)?t=e.match(sp.complexEmbedded)?.[1]:sp.simple.test(e)?t=e.match(sp.simple)?.[1]:sp.tagged.test(e)?t=e.match(sp.tagged)?.[1]:sp.embedded.test(e)&&(t=e.match(sp.embedded)?.[1]),t?lp(t):null}function lp(e){let t=e.split(`.`);for(;t.length<3;)t.push(`0`);return t.join(`.`)}var up=(e,t,n={getRpcEndpoint:ip,getRestEndpoint:ap,getExplorer:op})=>{n.getRestEndpoint||=ap,n.getRpcEndpoint||=ip,n.getExplorer||=op;let r=[];if(e.codebase?.sdk?.type===`cosmos`||e.codebase?.cosmos_sdk_version){let t;if(t=e.codebase?.sdk?.type===`cosmos`&&e.codebase.sdk.version?cp(e.codebase.sdk.version):e.codebase?.cosmos_sdk_version?cp(e.codebase.cosmos_sdk_version):`0.40.0`,rp.default.satisfies(t,`>=0.40`)&&r.push(`stargate`),rp.default.satisfies(t,`>=0.43`)&&r.push(`no-legacy-stdTx`),r.push(`ibc-transfer`),rp.default.satisfies(t,`>=0.45`)&&r.push(`ibc-go`),e.codebase?.cosmwasm?.enabled??e.codebase?.cosmwasm_enabled??!1){r.push(`cosmwasm`);let t=cp(e.codebase?.cosmwasm?.version??e.codebase?.cosmwasm_version??`0.24.0`);rp.default.satisfies(t,`>=0.24.0`)&&r.push(`wasmd_0.24+`)}}let i=t.find(t=>t.chain_name===e.chain_name)?.assets||[],a=e.fees?.fee_tokens.map(e=>e.denom)||[],o=e.fees?.fee_tokens?.reduce((e,t)=>(e[t.denom]={low:t.low_gas_price??.01,average:t.average_gas_price??.025,high:t.high_gas_price??.04},e),{}),s=e.staking?.staking_tokens.map(e=>e.denom)||[],c=i.map(e=>({coinDenom:e.symbol,coinMinimalDenom:e.base,coinDecimals:e.denom_units.filter(t=>t.denom===e.display)[0]?.exponent,coinGeckoId:e.coingecko_id||void 0,coinImageUrl:e.logo_URIs?.svg??e.logo_URIs?.png})),l=c.find(e=>s.includes(e.coinDenom))??c[0],u=c.filter(e=>a.includes(e.coinMinimalDenom)).map(e=>{if(!(e.coinMinimalDenom in o))return e;let t=o[e.coinMinimalDenom];return{...e,gasPriceStep:t}}),d=c.filter(e=>l.coinDenom===e.coinDenom).map(e=>{if(!(e.coinMinimalDenom in o))return e;let t=o[e.coinMinimalDenom];return{...e,gasPriceStep:t}});return{rpc:n.getRpcEndpoint(e),rest:n.getRestEndpoint(e),chainId:e.chain_id,chainName:e.pretty_name,bip44:{coinType:e.slip44},bech32Config:np.Bech32Address.defaultBech32Config(e.bech32_prefix),currencies:c,stakeCurrency:l||c[0],feeCurrencies:u.length===0?d:u,features:r}},dp=i(K()),fp=class{static addItem(e,t,n){let r={value:t,expiry:new Date().getTime()+n},i=localStorage.getItem(e),a=i?JSON.parse(i):[];a.push(r),localStorage.setItem(e,JSON.stringify(a))}static getItems(e){let t=localStorage.getItem(e);if(!t)return[];let n=JSON.parse(t),r=new Date,i=[];for(let e of n)r.getTime()<=e.expiry&&i.push(e.value);return localStorage.setItem(e,JSON.stringify(i.map(e=>({value:e,expiry:n.find(t=>t.value===e).expiry})))),i}static removeItem(e,t){let n=localStorage.getItem(e);if(!n)return;let r=JSON.parse(n);r=r.filter(e=>e.value!==t),localStorage.setItem(e,JSON.stringify(r))}},pp=class{client;_defaultSignOptions={preferNoSetFee:!1,preferNoSetMemo:!0,disableBalanceCheck:!0};get defaultSignOptions(){return this._defaultSignOptions}setDefaultSignOptions(e){this._defaultSignOptions=e}constructor(e){this.client=e}async enable(e){await this.client.enable(e)}async suggestToken({chainId:e,tokens:t,type:n}){if(n===`cw20`)for(let{contractAddress:n,viewingKey:r}of t)await this.client.suggestToken(e,n,r)}async getSimpleAccount(e){let{address:t,username:n}=await this.getAccount(e);return{namespace:`cosmos`,chainId:e,address:t,username:n}}async getAccount(e){let t=await this.client.getKey(e);return{username:t.name,address:t.bech32Address,algo:t.algo,pubkey:t.pubKey,isNanoLedger:t.isNanoLedger}}getOfflineSigner(e,t){switch(t){case`amino`:return this.getOfflineSignerAmino(e);case`direct`:return this.getOfflineSignerDirect(e);default:return this.getOfflineSignerAmino(e)}}getOfflineSignerAmino(e){return{getAccounts:async()=>[await this.getAccount(e)],signAmino:async(t,n)=>this.signAmino(e,t,n,this.defaultSignOptions)}}getOfflineSignerDirect(e){return{getAccounts:async()=>[await this.getAccount(e)],signDirect:async(t,n)=>{let r=await this.signDirect(e,t,n,this.defaultSignOptions);return{...r,signed:{...r.signed,accountNumber:BigInt(r.signed.accountNumber.toString())}}}}}async addChain(e){let t=fp.getItems(`cosmos-kit@2:keplr/supported-chain`);if(t&&t.length>0&&t.includes(e.name))return;let n=up(e.chain,e.assetList?[e.assetList]:[]);e.preferredEndpoints?.rest?.[0]&&(n.rest=e.preferredEndpoints?.rest?.[0]),e.preferredEndpoints?.rpc?.[0]&&(n.rpc=e.preferredEndpoints?.rpc?.[0]);try{await this.client.experimentalSuggestChain(n),fp.addItem(`cosmos-kit@2:keplr/supported-chain`,e.name,6e4)}catch(e){throw console.log(`Error while adding chain`,e),e}}async signAmino(e,t,n,r){return await this.client.signAmino(e,t,n,r||this.defaultSignOptions)}async signArbitrary(e,t,n){return await this.client.signArbitrary(e,t,n)}async signDirect(e,t,n,r){let i=await this.client.signDirect(e,t,{...n,accountNumber:dp.default.fromString(n.accountNumber.toString())},r||this.defaultSignOptions);return{...i,signed:{...i.signed,accountNumber:BigInt(i.signed.accountNumber.toString())}}}async sendTx(e,t,n){return await this.client.sendTx(e,t,n)}},mp=[new class extends Gt{constructor(e,t){super(e,Jn),this.preferredEndpoints=t}async initClient(){this.initingClient();try{let e=await tp.Keplr.getKeplr();this.initClientDone(e?new pp(e):void 0)}catch(e){this.initClientError(e)}}}({name:`keplr-extension`,prettyName:`Keplr`,logo:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAB+ASURBVHgB7Z1NbFxVlsfPKzsfTUJc6baZjkTcFTELJLA6ySzQJJGwe9FSmAXxzAJ604QN9GJomgVsoEUi0RtY8NWLhg2kN8NqKlkMGbHARgpILDoYGSQ2KIWNFIQNKZskhNiu1/f/PpxyuapcH/e+e+595yc9XrnKuFKv3jn3fN+AhK4pla8Uq3SjuI0GiiEFxYCCUvpaSGH0OCAaqgVhMX0+CAM8Ltb/nSD6OSi2e68w+p2w7e/wJaiqz1ht/zthNWzyO2EQVtb/Shh8VfeS+pvx362p/xdPrNJqpUg7q5XJvVu8l9BIQMI6EOxrtFIiKhxUgqwEm34FIVY3YCkV8lTABa5AOYQVKBUokUIYQMF8VaCgAoWxmwZnRFHcIpcKoFi+XNpO2w6qG6KkbpJfq5tECXxQcnelFbojUAognKHY8vhUHdODNFj5ZnJvhXKG9woAq/pVWj2oHuK4X33kcRF0oTnriuEDdUwvTo5Mk+d4qQBGyt9iRR9XDx9UH/GgCLzQB9PqOKfciumFyTtmyDO8UQDD5YXxIBb4E+KnCyZQcaAKRQqh9qovysBpBZCY90+qhycoNvEFIRNiZVA7PUDbpl2OHTipANLVXpn5J8W8F2yjlMHbAzRw2kVF4JQCgOCr0/PqGCdBYIaLisAJBfDL8pXSKq2+RSL4ggO4pAhYK4DEx8eK/ycSBMdwQRGwVQAj5757MqyFp8THF1wmDRaqrMHbxBB2CkDMfcFHoAiUNTDBzRooECOw6q/S2ickwi94BmpT1MJ2SQWynydGsLAAZNUX8gQna8C6BSCrvpA3Emvgk+HyN9aD29YsAInwC0IkgK/sosHTtlqUrSgAmPxrtFoOpXxXEKy6BJkrgJHylYMhrU1Jek8QbpGkCyezbjLKNAbwi3OLj4TK9xHhF4SNIC4QUpB5XCAzBTB87rvng1r4NgmC0IaBl7NMFWbiAkD4qVY7RYIgdMqpxcmR02QY4wpAabOXSSL9gtALxpWAUQUwUl58S/k2J0kQhJ5AQ9HC5PCjZAhjMQCY/SL8gtAfkKGR2Io2ghEFID6/IOgjVC60qcCgdhdAhF8QjKE9JqBVAcQ9/LVXSBAEI4SF4OR3Dw6fIU1oUwBxhR+KfIR+2H9bgYa24Qho9LaB6Lk96jGO9PWU9PXGx41/rx/mr9c2Pbe0UlNHWPdzGD1X//vL6rnl5Pn49fhxs78ndEdA4SFdFYNaFEBc2782JfP4WwNBhJDiuFM9TgV9tE7gUyHPA1AEc9fXIsUwn5y/Tp7DIYqiLdVBGjyko3eg7zsu3lBz7RMR/ljIx4YG1Xkgeoxz/DOruSvO8NnSaqQYcIZCwDl9Lu8owZ3ZRYMT/XYRDlKfJC29JcoZEOpjw9vpnqEBulcJOQQ9Tyt4FuC6gqPD2zY8D9diNlEGHy2uKIshVg55Ap2012LZe4r6oK87Nk9BP9yEuCGPqPMxdYiw8wJK4YJSBlAIUAYfqnM+WHtqcfKXPctgz3dxPMZrzdvOPvjkD4/uFIF3lFQhnL98UymFm5GV4Cl9xQN6vqtHyouXfPP7U6E/vm/7JrNTcBtYBO/M/eSrMsBW5hPUAz0pAJ+KfUTo80eqDM5f/smjgGJvrkDXCiCZ4HuJHAf+/MOjO+h3SvjFvM8ncBPeVUrgpS+u+2AV9OQKdH3nu276Y5V/+u7bZLUXNvDO3I3IKnA8eNi1K9CVAhgpf3sypOAtchARfKEToAD+ePEHhy2C7lyBjhWAq9V+qLR77fDtIvhCV8AicNQ1qO6mwQOdFgh1XKKmhP9514QfK/7UxF4RfqFrEBj+x29/Ht1DjlFMCoQ6oiMLwLXAH6ryzty3R0pwBS2gDPnEhapT1oAKCB7oJCDYkYRg9SdHePyunfT+RFGEX9AG7iXXrIFkr80t2dICcGX1Rz4fq76Y+4JJ3r18k/48e9UVa2BCZQWm2/3ClsukC6s/An3i6wtZ8MC+7XT2WDG65xxgS9ltawG4sPrD3z97bEiKeYRMQVzg9x8vu9CF2NYKaKvGuK/+xyNtLMIvZA/iArj3YBFwJgjDE21fb/UC99Ufwv935fMLgm0eUZYAYgNMaVsX0NICWKOVcWIKzP6/Hr6dBIEDKDRLh5cwpHi1drPlzlwtLQCuNf+jkeklaT6OLCWDQGejsV3xANCvk2h54yDRRjArEa5cOkoNWR0I1ZAj7h0+22+mrrDMDmB82MLkyKEWr21mpPztQWxVTMwQ4ecDhPvC4k36fGktGuo5m8zt0w2UwlgyiSmdysRVKeDzT0xV1yckM6NpMLCF3VJ4Mpo6xowXxnaL8Fviw2TUFibsQNiXM+qjx/vgvXG8lDwHRZDOb+BkeuPePHPf7XTiwhJxIwkGTm96vtkvczT/n7n7Nhfrsp0Fqxl65bMW+G6B0GGmw0Pq4JKbf3b2Gr355Y/EiYCCysLk8IHNzzfA0fwfTUoxBbNA6NEFl664roGU3GN3/YxFQRhcAW41As02FNlkPynhHydmwO8XzIDgFVYrV4W+HqTicMAqgMWIjj5bIEV9+L3viROJbG9QAM1spgeJEfgixe/XD4Qdvuq//t939OIX170aow1L5omLVyMBtBWVxz3L0GXdJNubXIDh8gIbZ09Mf72kq/3f1MHVpzcBLAEIY9YxAoapwU1FQRuuiBL+cWKEBP30gNUd1Wrpap8n4QeIa6CfH+csQbryNV4Fa8WrtHqw/olGlThOTIC2tunD+UBq5uNgXKqaCalb8JyK0GeZpz+a1C8woq0CuJ+YwExzOkW94Odni6zOeEO5P4jQZ2mW87Jka+P1PzUqgIPEAIZa0wlE8DsjHfGVVZqO1/1c2LDIrysAdP+pE4t8GzbsEDpHBL97YiWQnWvEyAooFsuXS+kP6wpglVZLxADx/TsHUWb4tSL4vYHrh+AoNgQxDaey5e20bd3Sr3cBxokBEvnvDMysR54768i2jzxx8YdMLAEuC1utrsy/XgH8miyDtMlx5hNWbIOVHoKfx3SeSbAbkOmYAFzboW32i9rCIFiX9fp/jXX///g+HheII/Xm/jyfwhJvwPXFjD+T2QEscA8xiG8VwrCpC2A9AyDBv+bAzBdz3zxQrIgJmKwT4DBDUNmNpfRxpACK5StY/a1aAAj+SepvI3NJpBorv5j72QA34KUvzLXy4h5nYOUWS7HMxwpgsKE80AZHhsX3rwd9+BNTVyS6b4E3ku5IU3BwA67RSgnnSAGEFFj3/8X8j4EvinJV+KOy6tsDmQFTrgCPUeKFaNGPFEBgefqPmP8xmLyDVf8NZtNk8gjiAaZcAQ5uQEjhLRdAWQAlsoiY/zA7b9BvpqoS4WeESVfAthsQhPGiX4j/U7PqAhzfl9/VP07v/aDM/qsk8AMFVyawbfHWCoUhnFML4Fdkkbya/3PRGOkrmZSiCr1halSa7Xt+gwVAFlOATNIimZNG+cXk548JKwBFQTaVQEBBCedU8kpkiXuHBihvoIxXovzuYMoKuIdBc5B1C+BIzsx/pPhM+ZWCOUzM+bdpAaT7fgzGVYD25pfnxf9PW0+lsMdN0C2IugCd7qrtex/VgIWddMPa6g/zPw/+fxrsE+F3G93B2qFkM1RbVJXsF1ZpsESWwI6wvjOXjJ+SYJ/7nDcwM+CoxRqYbTRQtLr8+u7/p5V9Ivx+AAtO93dpc0oQWgAKNvsAOO3sqhsIPzr5JNLvF9gwVSc2s2BIBQ4qE6Bo6xb1NQUIX/HZWV4tvHG/RWfm5oeLNzntZsMKuAGP3/Uz0oXtRXAwbQrIGgRAfAwAQvhR2ssNjFp7YWx3R7+L+QNzMnykKbrHhqWBQFtuIiTQigLw0fznKvxgTxfKVjZjbQ3SubqzOWNDdmJhqAWw9k37Zv5zFn7QzcaYogDao9sKuNPi9bb2zvs9SgEi4Pcs826+bq63DGZtz2dLa6QTW+nwIAyLBVvDQHxxAVyJ9sPX7JQ81Gf0A4KkOrFlcaEl2Jqq7+aG5MpcMkXWhVRfNzeZD9+NSXQH7MYsLoYWYwBuWwCuVfgNSRBQKzq/d5vXu2BjGIjrN5hrwt/L9RYl0J7ZJb2ZABvXOwjX9lr5ll33MWH2u1Te28v1lkBge3S7fXZkwlIMwOUMAPr5s9pXXhe9+PQ+l2nrQHelpC2ZsKQA3FxdMMnHxZHdvUye2SOBwLYsr+hWAHZkwsq7uhhlRg24q5N8erMAJBXYDs0hAKsKIPNSYNcsAJh7/824ym8rejHnJQaQLTaut1oWUAiUfTuwSzcXar8R8Xe5rbcXC2BMYgBt0e0C2AkCBkXJAmwBgn6uD/ToxQKQNGB7ljQvCLbcYgkCtgFBv3ccb4vtx5cXJZAde/KkAFxgLtoc0v3x3f1YW0dlz8bMyI0F4MKqkvr9PtDP3EWpBWiNiby9DdnI/B1dSAFi5fdlkGc/QiypwGyxERy3oAB4WwDw+V0s9mnF0T4tAEkHNsfEEB8bi6NYAHXA73/Ro227+t15Bt+VWAHN2WNAMdooBy5kPRR0D+MVxSfTHzw8uoP65fi+/v+Gj4x6kCGB7GdeCTjEdC8QmP6up/wa0RHF16FEfMRE2s5CKjD7QiCOFoBvpj+A+a8jqmx7H3uumChmy0UMgCO+mf7gsbt2ki6evvs2EjbiS5FU5p+Cm++EbZ99M/1xjR/Q6LvDAhAr4BamNrXJRR0AN55jPs67F84e0x/WESvgFj4VSFmIAfBJA77ooen/jBJUEysJLIDHNO6J5zI+TU3ObSEQAn8+FfwAtPCaXKn/MrZLXAEyt629jS7Z3LoACPz5tHU3/P4z9+0h0+A9fMiB94O4AI6D1d+nwB8EEn5/FkEkmL94rzwrAZ+qI3NZCvxnjwJ/WQp/yv7kPfOoBCD8ptzYXLgAtmMA2NoZqT8fQJXe1MReK+kjvOf76r0fHtVXb+AC93ItZe2R3DV8+zDkA1YUgn2PW47K49/x+uHd0ar40hc/0tKKXxmVZhwd9ktkcmXDwe+HBeAyWHEv/vbn1oW/HvxbpiaKubAGfJuSlCsL4I0v3Qz8YaVFDv4P6uC6YQdcAlgDqENAevX85Z+0755jG8Q8fJuTmBsFgJXflS294j78QTq+b3t0din3DgF5YWxXdOB647pjUxU8XnI87XrEwxmJmSsAWxqUo++Pa4GgKAp47lF+NAZC4LEvqwyUF47UXYESgFWA89fqPHd9LTpcqcY8vs+sIrbxvefCAsBNl5Xvj9UbZjpSOmnTyJ2J6YjHo8k5jyO3Y4VA9MC+zSvpfKIQYCXMJ2coCQQW8RivoXDLphXhYxVkLhSAztUfNwFKQVNBz7tQ62J/F/51qixAvWL4f+VqzBpy86C0fJyP6L0C0F31h9x73nLf3KhXFkdp46psSgEc3+fnHgneL1m+NfwIdvB1kxTvFQDSUYLQDzD/fXXvvFYAMP196/cXssdX8x94rgBk9Rf6A8Fen2M+3iqALFN/gr/4vi+Ctwrgo0U/Ov4Eu/i+L4K3CsDVun+BD+hy9H0EmpcKIC03FYR+4NRxaQovFcB5TwZ+CPZAdWceCr68rAQ0Oe8PmQVYGM1q/qUUOBvmkx6BueSclgLrVPw+dv41wzsFYNr8R2ahXXYh7g/Y3AyEx/uT5/CaKIuNNAo1fm5sBsI5q0nOz+RkIxTvFIDt6P9ycpN2UoAEJQBlgANKAt1yo8nZR3BNUKuPbr/Pl9aix6mwcwKmf14UdOZ3Gr5skxf3/GV3cv+4Fjg+pI3/ZlgRY8lAEEShXVUI6RCW80mXniv7MNha/W0oQu+WGh+KfyAo9a7G/mSzT4wF4z6KG2b6m1/+SH9Th4sbr+Rp9QdeKQAIjI+TaeeTbcxw4AbFRGBuigCC/9zsNec3XMmL75/ilar7bGmNfAcC9pupK9EqywUUXR1+73vnhT9vqz/w6tPmpfUXq+2zarV94uJVqxYP/h1PXPwh2mLdh30W87b6A7EAHAYr7sRU1cr4bbznhLJEfOm45LD625h3mPknTme56QbCn4edaRpBfODEhWyVwFzynr7MWkBtBofV38b9640FYEqxuECqBLK4gXwTfoCa/7wWZnnzqfPe+w+BfOTjH8g0j3y87JXwI5vydA59/5TMFcC8oZX6c+n+i5QgUnGmePGL6951WXIS/lzEAEzh+rZTukCtgAlrCKa/Dzsr14Nhn5w6/iQG0AfS/38LE4IKv983XhjbTXnHQhZAv5bLW/pvK7bqWOyWdy/f9G66MqL+3AJ/Nq6xFxZAHtN/W6HTCuBUdaiDvAf+6slcASwbENY8pwBboasvwsfpymePFYkjtoKAmTp3SwbuJdn8ozk6qvR8m67M0fRPsVBOXS0EFDgf3ZEMQHN0jMjyaXMV7qZ/1goAsu9FHYAPjSgm+CyZuNMPPpn/XE3/lFykAU18yHmJATQFllE/GRKfhJ+z6Z+Si0IgMdezpZ/6CF/Sqxir5kLUPxcWgATssqUfIf7IAwsAfv/rh28nF8hNHYDk7bPjwz6i+D6kV1HtJyPYW2PlyizLpr2Z0c+q4np5Nfx+TFZ2AVuWsVgAOaCXm8t1/98Vvz/FlrVVCCnMvA5AKveyZbaH6iuXlbRLfn+KneB4WM28EhDozttj+y2hNb1cb1ctAIz3Qr7fNb/fhgsQohKQLKC7IxA76Qit6cWXd9UCwMrvYtDP1vW2cqXmRQFkSi/9F587aAG4FPRrJFdBQN2Ve9hcU2jNZzmIATx+106nW3xtVbNaiQHoDgLu2UZCG3oJMLkUqMWq7/p0H2tZgIDCJcoY3ebO2JBogHb0cr1dqdhExP+vjkX8m2ElCBgEFWvREp0fWCq9tqab6+1KvwaEHxF/12NANjMu1iRnVuNkEKR+RAm0pxuf3oXVPxV+H753m/GWQo0KVgaCiBuQLd34mNwDgD4JP7BlAQRh+BViAJYUgN4PfadYAG3pphiIcwDQN+EHNq+3FzEA8ICj+d+s6Kb4iqsL4KPwA5u7WmEmYIUsMKv5Q987NEhCa1wPAvoq/MBiELBqTWpwQ8LX1FXHj0AgOsDyvkloKzAX4MSFzjK+s8zagH0WfihbWzEXDAW1umxC8x0d1velHhEF0BIoXBenMfks/MDmzIUAzUAhhRWyhO4PDwtA8AffhR/YrAGooR3YVhYA6P7wUABSD+AHYyqm47vwA9tzFwsDtGZNAXxoYNcZTts9C70BRX722FAulLnNFOAqrVYKN2inNQWQBgJ18vhdPyPBXdDVB+HPQ4t3vG+DvRhAUcl+oTq51+rWYLqDdmk2QHAP9PO73tXXDbYD1hUl+5GNZasWAJjwgWTrZ7eA0sYkn7x9b5YVQLTwW3eyTERBYQGIFeAGcaR/SMVudlDe+NxuCrCCc6QAbKYCde1j34hYAfyBkp6a2JvLKk74/zYtgLDeAlCpwK/IIiYuhFgBvIG/n5dgXzNs+/8YBoJzpABstQSnmMqFihXAj3hs91Duv5vzl/WnwLuhUKtFdeGpBVAhi7wz9xOZABbAY5IWZENq8otlZqYGphs2WABoCiCLmPSHYGrKxiH2eWFsV26Ke7YC97rtvowC1SkA5QTMkGXOXzZjBcDkfO1wfnLL3ECUf2qiKAVadZiyeLuhlrQARApghbZVyDImLwqGhYgrkD2o6strlL8dts1/sJsGo0U/UgBJNaC3bgCAKyA3YjakuX1U9cmuTRvhYP4rqpWkArjeIauQZUy5AQCuwN/v2xPdnIIZcI0R3ZdAX2s4mP+KdZd/XRpUJuBTsgwujsnpKAhAnVFKQIKC+kkj/LC0ZNVvDqxc2+m/mNr6aKh1SQgpsB4IxAUyrSHhBrwwJvUBuoBFBctKIvxbAwuXx8j1wmYLILTYEFTPO3M3yDSYGfC6ZAb6ot7cd3VH3qx58YvrxITp9MF6VGwbrcyskv0gGZqDECgx7UNCCexRrsAfL151bidc2yC6/8zdu8TU7wIsbFxmMg7SaiV9vOEbHC4vXCHMCbBMOhEmCzCQ4ZGPl7uam59XoDTh44up3z2YyMxkYG11cXJkb/pD4zc5TQzAhcrqYt2bzJ6T7EBrUoUMt0mEv3uyvJ87YEOsr/Hb/ICY8FKG/hJu6n/89udSLNQAVvyL6rpA+CWt1ztPXPyBGLFBxhudfuuZgJRUa2Z54/1lbBeNDQ1EyievLgGCe1CEf1CH+Pj9w8n3T5iu/2HDN1wsXymqAMElYhAHAPuTOvKs8/b4whCxzSIjwQUoWkTzfxcFR0XwdXH4ve9ZKQDl/2/4cjdIVlISzMYKwIV788vshRCKB/4uzF+fTV+s9mjSgYmP43FZ9bWCRYTz6g+a5f3OqWOcmICL+JBalWwE6fYnNe1wReAW+LLtGJTaQ6M76D/27RCBNwRcyJf45P1TzjU+sUkBBBROh8TrpkCaDq6ALaLxYokiQKWia64BVnpkO8TEz44TF6z21jUFsr35uSaMlBcvhRSWiBEwTzFUggMw69DS+YZyTz5jtpNuCqyXB9QKD6HHNlsi9NkBq5Xb6o+pXwuTdxxofL5p6Z/yWs6p2+VJYsQbX/4Y3cwcfHIIF1JkOFJlAMsAygD9DLb+TceGt9O/Dw9GZ8nX2wHNPgxNf6UBCtNNn2725HB5YVydpogZMGXfn9jLumgHbgIUAQadwg/UbSHgGuy/bSBa1e9RKUuY9rLC8wDfN0x/jtuwKwvgkLIAZjY/3wKlBD5Rp4PEDFupwX5ILQNsBImbY1k9Xk4shfrNISHc6eeCQO+JhL0QPQelN6oEXwSdJ8yFv6n5D9p1/yBiyE4BzEcXellF593p608nER0lqabzESh3BKo5Cn/C6VYvtJSgVRp8hSyPCWsFVlR08QkCB1DqyzUYDAZobbrVay0VAIqCVDrwDDHlXRVsgdaVVl7BFlj5f6/uQR5TfpoTBMHb30zuq7R6va0NrXyHs8QYKAG4A9LKK2QNhB8tvpyFHwyEK6fbvd5WASxOjkwTkxbhVsD0QvBFlICQFbjXJqausDb7wVarP+gkinaamDOfRGDfZa6NBfdBmhfCzzjgt85Wqz/oKKekUoKoCRgnB8DEGtkUVDDBc7PXooI0F8Dqv3Bi+NEtf4864JflyyWVFbhEjhA38ciUH0EPMPkRcOZu8tczSKsHtjL/QUcSgj+kMgKvkiPAPPu3977nWZIpOAMCfbiHcC+5JPyd+P7rv0sdwm1YSKfAGoBbgLp9QegU+PrI77vg69eDqj+V95/QrgCAigX8SZ1eJgeJh3zcLrPthLa4PvtBKYBHFybveLvz3+8SlwKCzYACeHh0h1gEwgZ8GPrSrua/9f/TJUlAEI1CTrkCjaSuwfF9O6ImHCF/xFvR3Vhv5XadTgN/9fR057vsCjSC7joMzoBVIO5BPsAqjwq+/1HCv2xpfoN2arXTi//1L6eoS3pe+lx3BZoBq+Do8HZRBh7ipdAn9GL63/p/e8QXV6AVqTJIpxCJm+AWMO8h9BjM4qPQ11FVpv+hbk3/lL7uap9cga2AEkBf/xEMCBWFwI56gYc/78sE5w54anFy5BXqkb7v4l+UF19RJgir+YFZAGWASsMjiWLAIUohGyDsEHIcny+t0YXFm87l63UQhOGrC/95x5+oD/q+Y5MCIcQD2E0PyhoEFMcSZQAXIlUK6UQgoTsg1LNKyOeTUWo4xz9L5yf8/l107VBl8kBfQ3u0LFm+xwN0sD+Z6YfjzmjOXzzcE2c8l6cpvkvJTEQMc0GdPc4Q6q+v16IZiensRKE53Vb7tf9bmhgpf3swpOATEvoiHQIaDwiNh4SmA0LT10H6Oyn1A0Ub/14/tBLE+mGm9Y/T328cfLqUCLwIdv+0mvDb29/SiFICJ5USeIsEQTBFX0G/RrTanUkNMvsBIoLgJCj20Sj8wEjYWqUHT6nT8yQIgh56rPTbCmN5q7ymBwVBO4aEHxhNXI/877dvh0HwCAmC0BMq139G5fpPkiGM5p6Sf7jEBAShB5JCn5NkEOPJZxW0OEWiBAShO5TZ32+VXydkVrsqgUFB6BCDPn8jmRav56l5SBB6IaTw0e+6GOnVL5l3r6BiUJ3KIQUlEgQhpaqyZhO6Kvw6JfMCdHxA1DGjnpkEQUBp7wx6+rMWfmClAwVNDCu07ZBLew0IggkQ6d9F17Q09vT0/mSZJC6A4KB0Egp5Am282kt7u4XFBAu0E6/RwJTEBYScMK1M/kdtrfr1sBphI6lCwXNYrPr1sJthJdaA4ClsVv162A6xw2wBdXpeFIHgOOxW/XrYzqHCbIEkXXiGBMFBEOHfTVcPcBV+4MQY28QtOKWsAeksFFyApbnfDKfmWIsiEJgzTbG5P02O4OQge1EEAiNQwntG3YtnXRL8FKd3skgUwThJsFDIGCU4MyHROeXjv9LvbH6beLOVTdJkhKrC+0UZCCYIKKgQ1c65uto3w8u9rJI9CsbVwwfJsx2MhUzByo4GnXPKzJ+20axjmlxsZjdcXhinWBHcT/EWZtJ3IDSjqiRimkL6QD2eUeb9jMvmfSfkcjfLZCuzEkEpBPRr9YVDIYhiyA8Q6koYhDNBGHyqrMXKGq3MVB1I2+lGtrOto1S+VLxKu+E+FJXJV8JRC2hI3SQlipVDehaYEvvp0WQdCHilENISBFw9r4S+NrOLrlV8X9W7QRRAD0BRVGlncTC2IggKo6AUg7rpoBzWFYS6AX+VPk6USCNK0QRtFUrj33SMaix4rVGfD69v/J2AqsnzEYkQV+OXYgFP/l8l2GF1hdaqRbpRFcHunn8Cz9Ea2bs7Ut4AAAAASUVORK5CYII=`,mode:`extension`,mobileDisabled:()=>!(typeof document<`u`&&document.readyState===`complete`&&window.keplr&&window.keplr.mode===`mobile-web`),rejectMessage:{source:`Request rejected`},connectEventNamesOnWindow:[`keplr_keystorechange`],supportedChains:`agoric.akash.archway.axelar.bostrom.celestia.certik.comdex.cosmoshub.cryptoorgchain.dymension.emoney.evmos.gravitybridge.injective.irisnet.ixo.juno.kava.kujira.noble.nois.osmosis.persistence.quicksilver.regen.secretnetwork.sentinel.sifchain.sommelier.stargaze.starname.stride.terra2.tgrade.umee`.split(`.`),downloads:[{device:`desktop`,browser:`chrome`,link:`https://chrome.google.com/webstore/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap?hl=en`},{device:`desktop`,browser:`firefox`,link:`https://addons.mozilla.org/en-US/firefox/addon/keplr/`},{link:`https://www.keplr.app/download`}]},qn)],hp=class extends Ut{constructor(e,t){super(e,t)}},gp=class{client;_defaultSignOptions={preferNoSetFee:!1,preferNoSetMemo:!0,disableBalanceCheck:!0};get defaultSignOptions(){return this._defaultSignOptions}setDefaultSignOptions(e){this._defaultSignOptions=e}constructor(e){this.client=e}async enable(e){await this.client.enable(e)}async suggestToken({chainId:e,tokens:t,type:n}){if(n===`cw20`)for(let{contractAddress:n}of t)await this.client.suggestCW20Token(e,n)}async addChain(e){let t=up(e.chain,e.assetList?[e.assetList]:[]);e.preferredEndpoints?.rest?.[0]&&(t.rest=e.preferredEndpoints?.rest?.[0]),e.preferredEndpoints?.rpc?.[0]&&(t.rpc=e.preferredEndpoints?.rpc?.[0]),await this.client.experimentalSuggestChain(t)}async disconnect(){await this.client.disconnect()}async getSimpleAccount(e){let{address:t,username:n}=await this.getAccount(e);return{namespace:`cosmos`,chainId:e,address:t,username:n}}async getAccount(e){let t=await this.client.getKey(e);return{username:t.name,address:t.bech32Address,algo:t.algo,pubkey:t.pubKey,isNanoLedger:t.isNanoLedger}}getOfflineSigner(e,t){switch(t){case`amino`:return this.getOfflineSignerAmino(e);case`direct`:return this.getOfflineSignerDirect(e);default:return this.getOfflineSignerAmino(e)}}getOfflineSignerAmino(e){return this.client.getOfflineSignerOnlyAmino(e)}getOfflineSignerDirect(e){return this.client.getOfflineSigner(e)}async signAmino(e,t,n,r){return await this.client.signAmino(e,t,n,r||this.defaultSignOptions)}async signArbitrary(e,t,n){return await this.client.signArbitrary(e,t,n)}async signDirect(e,t,n,r){return await this.client.signDirect(e,t,{...n,accountNumber:dp.default.fromString(n.accountNumber.toString())},r||this.defaultSignOptions)}async sendTx(e,t,n){return await this.client.sendTx(e,t,n)}},_p=async()=>{if(typeof window>`u`)return;let e=window.leap;if(e)return e;if(document.readyState===`complete`){if(e)return e;throw we}return new Promise((t,n)=>{let r=i=>{i.target&&i.target.readyState===`complete`&&(e?t(e):n(we.message),document.removeEventListener(`readystatechange`,r))};document.addEventListener(`readystatechange`,r)})},vp=[new class extends Gt{constructor(e){super(e,hp)}async initClient(){this.initingClient();try{let e=await _p();this.initClientDone(e?new gp(e):void 0)}catch(e){this.initClientError(e)}}}({name:`leap-extension`,prettyName:`Leap`,logo:`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTY2IiBoZWlnaHQ9IjE2NiIgdmlld0JveD0iMCAwIDE2NiAxNjYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF83ODBfNjEwKSI+CjxyZWN0IHdpZHRoPSIxNjYiIGhlaWdodD0iMTY2IiBmaWxsPSIjQzVGRkNFIi8+CjxwYXRoIGQ9Ik0xMzguNjE0IDEwMC40NDVDMTM4LjYxNCAxMjAuMjE3IDExNC40ODMgMTI4LjI1MiA4NC41MjE2IDEyOC4yNTJDNTQuNTYwMyAxMjguMjUyIDMwLjA3ODQgMTIwLjIxNyAzMC4wNzg0IDEwMC40NDVDMzAuMDc4NCA4MC42NzI0IDU0LjM4NDYgNjQuNjczIDg0LjM0NiA2NC42NzNDMTE0LjMwNyA2NC42NzMgMTM4LjYxNCA4MC43MDc0IDEzOC42MTQgMTAwLjQ0NVoiIGZpbGw9IiMyNEE5NUEiLz4KPHBhdGggZD0iTTEzMy4xMDMgNTcuMzQ3MkMxMzMuMTAzIDQ2LjkzNyAxMjQuNjAzIDM4LjQ4MzIgMTE0LjEzNiAzOC40ODMyQzEwOC42OTMgMzguNDgzMiAxMDMuNzg3IDQwLjc3MTkgMTAwLjMzIDQ0LjQxNzFDOTkuNzk0NCA0NC45ODE4IDk5LjAxMTggNDUuMjU2OSA5OC4yNDkgNDUuMTAyOUM5My44NjkgNDQuMjE4NSA4OS4yMzU1IDQzLjcyMzIgODQuNDU1NSA0My43MjMyQzc5LjY3NiA0My43MjMyIDc1LjA0MyA0NC4xODkzIDcwLjY2MzQgNDUuMDk1QzY5Ljg5OTggNDUuMjUyOSA2OS4xMTM4IDQ0Ljk4MjMgNjguNTc1IDQ0LjQxODZDNjUuMDkgNDAuNzcyNSA2MC4xODY3IDM4LjQ4MzIgNTQuNzc1MiAzOC40ODMyQzQ0LjMwOCAzOC40ODMyIDM1LjgwNzkgNDYuOTM3IDM1LjgwNzkgNTcuMzQ3MkMzNS44MDc5IDYwLjM4MzQgMzYuNTI2MiA2My4yMjczIDM3Ljc5MTMgNjUuNzU3QzM4LjA5NDMgNjYuMzYyOCAzOC4xMjQ4IDY3LjA3MjEgMzcuODYyNyA2Ny42OTY2QzM2LjYzNTMgNzAuNjIxMiAzNS45ODM1IDczLjcwOTEgMzUuOTgzNSA3Ni45MDk4QzM1Ljk4MzUgOTUuMjQ5OCA1Ny42OTA1IDExMC4wOTYgODQuNDU1NSAxMTAuMDk2QzExMS4yMjEgMTEwLjA5NiAxMzIuOTI4IDk1LjI0OTggMTMyLjkyOCA3Ni45MDk4QzEzMi45MjggNzMuNzA5MSAxMzIuMjc2IDcwLjYyMTIgMTMxLjA0OCA2Ny42OTY2QzEzMC43ODYgNjcuMDcyMSAxMzAuODE3IDY2LjM2MjggMTMxLjEyIDY1Ljc1N0MxMzIuMzg1IDYzLjIyNzMgMTMzLjEwMyA2MC4zODM0IDEzMy4xMDMgNTcuMzQ3MloiIGZpbGw9IiMzMkRBNkQiLz4KPHBhdGggZD0iTTUzLjIyNzEgNjcuODExOUM1OS42Mjg3IDY3LjgxMTkgNjQuODE4MyA2Mi42NTA2IDY0LjgxODMgNTYuMjgzOUM2NC44MTgzIDQ5LjkxNzEgNTkuNjI4NyA0NC43NTU5IDUzLjIyNzEgNDQuNzU1OUM0Ni44MjU1IDQ0Ljc1NTkgNDEuNjM2IDQ5LjkxNzEgNDEuNjM2IDU2LjI4MzlDNDEuNjM2IDYyLjY1MDYgNDYuODI1NSA2Ny44MTE5IDUzLjIyNzEgNjcuODExOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMTUuMDY1IDY3LjgxMTlDMTIxLjQ2NiA2Ny44MTE5IDEyNi42NTYgNjIuNjUwNiAxMjYuNjU2IDU2LjI4MzlDMTI2LjY1NiA0OS45MTcxIDEyMS40NjYgNDQuNzU1OSAxMTUuMDY1IDQ0Ljc1NTlDMTA4LjY2MyA0NC43NTU5IDEwMy40NzQgNDkuOTE3MSAxMDMuNDc0IDU2LjI4MzlDMTAzLjQ3NCA2Mi42NTA2IDEwOC42NjMgNjcuODExOSAxMTUuMDY1IDY3LjgxMTlaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNDcuMDc1OSAxMjYuODI5QzQ5LjU2OTggMTI2LjgyOSA1MS41MzY4IDEyNC42NjMgNTEuMjU1OCAxMjIuMjE4QzUwLjIzNzIgMTEzLjU1NCA0NS45MTY4IDk0Ljc5NSAyNi45MTQ0IDgzLjUxMTVDNi4wODM2OCA3MS4xMzg3IDE1Ljk5NDEgMTA0LjAzNCAyMC4xMzY1IDExNi4wMTlDMjAuOTc0NCAxMTguNDQzIDIwLjAwMjcgMTIxLjEzNSAxNy43NzgzIDEyMi40MTFMMTYuNDEyMSAxMjMuMTk2QzE0LjY1NTkgMTI0LjIwOSAxNS4zOTM1IDEyNi44MjkgMTcuMzk1NiAxMjYuODI5SDQ3LjA3NTlaIiBmaWxsPSIjMzJEQTZEIi8+CjxwYXRoIGQ9Ik0xMjIuNTY2IDEyNi44MjlDMTIwLjMxOCAxMjYuODI5IDExOC41NjIgMTI0LjY2MyAxMTguODA4IDEyMi4yMThDMTE5LjY4NiAxMTMuNTg5IDEyMy42MiA5NC43OTUgMTQwLjc2MSA4My41MTE1QzE1OS43NDEgNzEuMDQyNiAxNTAuNTAzIDEwNC41NDcgMTQ2LjgxNSAxMTYuMjk0QzE0Ni4wOTIgMTE4LjU5OCAxNDYuOTgyIDEyMS4xMDYgMTQ5LjAyMiAxMjIuMzk5TDE1MC4yOCAxMjMuMTk2QzE1MS44NiAxMjQuMjA5IDE1MS4xOTMgMTI2LjgyOSAxNDkuNDAyIDEyNi44MjlIMTIyLjU2NloiIGZpbGw9IiMzMkRBNkQiLz4KPHBhdGggZD0iTTUzLjI0MjggNjMuMTc4N0M1Ny4wNjE3IDYzLjE3ODcgNjAuMTU3NiA2MC4wODI4IDYwLjE1NzYgNTYuMjYzOUM2MC4xNTc2IDUyLjQ0NSA1Ny4wNjE3IDQ5LjM0OTEgNTMuMjQyOCA0OS4zNDkxQzQ5LjQyMzkgNDkuMzQ5MSA0Ni4zMjggNTIuNDQ1IDQ2LjMyOCA1Ni4yNjM5QzQ2LjMyOCA2MC4wODI4IDQ5LjQyMzkgNjMuMTc4NyA1My4yNDI4IDYzLjE3ODdaIiBmaWxsPSIjMDkyNTExIi8+CjxwYXRoIGQ9Ik0xMTUuMDgxIDYzLjE3ODdDMTE4LjkgNjMuMTc4NyAxMjEuOTk1IDYwLjA4MjggMTIxLjk5NSA1Ni4yNjM5QzEyMS45OTUgNTIuNDQ1IDExOC45IDQ5LjM0OTEgMTE1LjA4MSA0OS4zNDkxQzExMS4yNjIgNDkuMzQ5MSAxMDguMTY2IDUyLjQ0NSAxMDguMTY2IDU2LjI2MzlDMTA4LjE2NiA2MC4wODI4IDExMS4yNjIgNjMuMTc4NyAxMTUuMDgxIDYzLjE3ODdaIiBmaWxsPSIjMDkyNTExIi8+CjxwYXRoIGQ9Ik05OS43OTk1IDgzLjAxNzZDMTAxLjUxNCA4My4xNjUxIDEwMi44MSA4NC42ODYyIDEwMi4zNzggODYuMzUxOEMxMDIuMDI5IDg3LjY5NzkgMTAxLjUyOSA4OS4wMDM5IDEwMC44ODYgOTAuMjQ0MkM5OS43NjMgOTIuNDA5IDk4LjIyNDYgOTQuMzMxNSA5Ni4zNTg2IDk1LjkwMThDOTQuNDkyNyA5Ny40NzIyIDkyLjMzNTcgOTguNjU5NiA5MC4wMTA4IDk5LjM5NjNDODcuNjg2IDEwMC4xMzMgODUuMjM4OCAxMDAuNDA1IDgyLjgwOSAxMDAuMTk2QzgwLjM3OTEgOTkuOTg2NiA3OC4wMTQzIDk5LjMwMSA3NS44NDk0IDk4LjE3OEM3My42ODQ2IDk3LjA1NTEgNzEuNzYyMSA5NS41MTY3IDcwLjE5MTcgOTMuNjUwN0M2OC42MjE0IDkxLjc4NDggNjcuNDM0IDg5LjYyNzggNjYuNjk3MiA4Ny4zMDI5QzY2LjE3MDEgODUuNjM5NiA2NS44ODExIDgzLjkxMzUgNjUuODM1OSA4Mi4xNzYxQzY1LjgwNiA4MS4wMjk0IDY2LjgyNDQgODAuMTgwOCA2Ny45NjczIDgwLjI3OTFMODQuNDAwNyA4MS42OTI4TDk5Ljc5OTUgODMuMDE3NloiIGZpbGw9IiMwOTI1MTEiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF83ODBfNjEwIj4KPHJlY3Qgd2lkdGg9IjE2NiIgaGVpZ2h0PSIxNjYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==`,mode:`extension`,mobileDisabled:()=>!(`leap`in window||/LeapCosmos/i.test(navigator.userAgent)),rejectMessage:{source:`Request rejected`},connectEventNamesOnWindow:[`leap_keystorechange`],downloads:[{device:`desktop`,browser:`chrome`,link:`https://chrome.google.com/webstore/detail/leap-cosmos-wallet/fcfcfllfndlomdhbehjjcoimbgofdncg`},{link:`https://chrome.google.com/webstore/detail/leap-cosmos-wallet/fcfcfllfndlomdhbehjjcoimbgofdncg`}]})],yp=class extends Ut{constructor(e,t){super(e,t)}},bp=a(((e,t)=>{(function(n,r){function i(e){return e.default||e}typeof define==`function`&&define.amd?define([],function(){var e={};return r(e),i(e)}):typeof e==`object`?(r(e),typeof t==`object`&&(t.exports=i(e))):(function(){var e={};r(e),n.Long=i(e)})()})(typeof globalThis<`u`?globalThis:typeof self<`u`?self:e,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null;try{t=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 n(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0});function r(e){return(e&&e.__isLong__)===!0}function i(e){var t=Math.clz32(e&-e);return e?31-t:t}n.isLong=r;var a={},o={};function s(e,t){var n,r,i;return t?(e>>>=0,(i=0<=e&&e<256)&&(r=o[e],r)?r:(n=l(e,0,!0),i&&(o[e]=n),n)):(e|=0,(i=-128<=e&&e<128)&&(r=a[e],r)?r:(n=l(e,e<0?-1:0,!1),i&&(a[e]=n),n))}n.fromInt=s;function c(e,t){if(isNaN(e))return t?b:y;if(t){if(e<0)return b;if(e>=g)return T}else{if(e<=-_)return E;if(e+1>=_)return w}return e<0?c(-e,t).neg():l(e%h|0,e/h|0,t)}n.fromNumber=c;function l(e,t,r){return new n(e,t,r)}n.fromBits=l;var u=Math.pow;function d(e,t,n){if(e.length===0)throw Error(`empty string`);if(typeof t==`number`?(n=t,t=!1):t=!!t,e===`NaN`||e===`Infinity`||e===`+Infinity`||e===`-Infinity`)return t?b:y;if(n||=10,n<2||36<n)throw RangeError(`radix`);var r;if((r=e.indexOf(`-`))>0)throw Error(`interior hyphen`);if(r===0)return d(e.substring(1),t,n).neg();for(var i=c(u(n,8)),a=y,o=0;o<e.length;o+=8){var s=Math.min(8,e.length-o),l=parseInt(e.substring(o,o+s),n);if(s<8){var f=c(u(n,s));a=a.mul(f).add(c(l))}else a=a.mul(i),a=a.add(c(l))}return a.unsigned=t,a}n.fromString=d;function f(e,t){return typeof e==`number`?c(e,t):typeof e==`string`?d(e,t):l(e.low,e.high,typeof t==`boolean`?t:e.unsigned)}n.fromValue=f;var p=65536,m=1<<24,h=p*p,g=h*h,_=g/2,v=s(m),y=s(0);n.ZERO=y;var b=s(0,!0);n.UZERO=b;var x=s(1);n.ONE=x;var S=s(1,!0);n.UONE=S;var C=s(-1);n.NEG_ONE=C;var w=l(-1,2147483647,!1);n.MAX_VALUE=w;var T=l(-1,-1,!0);n.MAX_UNSIGNED_VALUE=T;var E=l(0,-2147483648,!1);n.MIN_VALUE=E;var D=n.prototype;D.toInt=function(){return this.unsigned?this.low>>>0:this.low},D.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},D.toString=function(e){if(e||=10,e<2||36<e)throw RangeError(`radix`);if(this.isZero())return`0`;if(this.isNegative()){if(this.eq(E)){var t=c(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return`-`+this.neg().toString(e)}for(var i=c(u(e,6),this.unsigned),a=this,o=``;;){var s=a.div(i),l=(a.sub(s.mul(i)).toInt()>>>0).toString(e);if(a=s,a.isZero())return l+o;for(;l.length<6;)l=`0`+l;o=``+l+o}},D.getHighBits=function(){return this.high},D.getHighBitsUnsigned=function(){return this.high>>>0},D.getLowBits=function(){return this.low},D.getLowBitsUnsigned=function(){return this.low>>>0},D.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=this.high==0?this.low:this.high,t=31;t>0&&!(e&1<<t);t--);return this.high==0?t+1:t+33},D.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&e===-1&&(this.low!==0||this.high!==-2097152)},D.isZero=function(){return this.high===0&&this.low===0},D.eqz=D.isZero,D.isNegative=function(){return!this.unsigned&&this.high<0},D.isPositive=function(){return this.unsigned||this.high>=0},D.isOdd=function(){return(this.low&1)==1},D.isEven=function(){return!(this.low&1)},D.equals=function(e){return r(e)||(e=f(e)),this.unsigned!==e.unsigned&&this.high>>>31==1&&e.high>>>31==1?!1:this.high===e.high&&this.low===e.low},D.eq=D.equals,D.notEquals=function(e){return!this.eq(e)},D.neq=D.notEquals,D.ne=D.notEquals,D.lessThan=function(e){return this.comp(e)<0},D.lt=D.lessThan,D.lessThanOrEqual=function(e){return this.comp(e)<=0},D.lte=D.lessThanOrEqual,D.le=D.lessThanOrEqual,D.greaterThan=function(e){return this.comp(e)>0},D.gt=D.greaterThan,D.greaterThanOrEqual=function(e){return this.comp(e)>=0},D.gte=D.greaterThanOrEqual,D.ge=D.greaterThanOrEqual,D.compare=function(e){if(r(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},D.comp=D.compare,D.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(x)},D.neg=D.negate,D.add=function(e){r(e)||(e=f(e));var t=this.high>>>16,n=this.high&65535,i=this.low>>>16,a=this.low&65535,o=e.high>>>16,s=e.high&65535,c=e.low>>>16,u=e.low&65535,d=0,p=0,m=0,h=0;return h+=a+u,m+=h>>>16,h&=65535,m+=i+c,p+=m>>>16,m&=65535,p+=n+s,d+=p>>>16,p&=65535,d+=t+o,d&=65535,l(m<<16|h,d<<16|p,this.unsigned)},D.subtract=function(e){return r(e)||(e=f(e)),this.add(e.neg())},D.sub=D.subtract,D.multiply=function(e){if(this.isZero())return this;if(r(e)||(e=f(e)),t)return l(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?b:y;if(this.eq(E))return e.isOdd()?E:y;if(e.eq(E))return this.isOdd()?E:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(v)&&e.lt(v))return c(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,i=this.high&65535,a=this.low>>>16,o=this.low&65535,s=e.high>>>16,u=e.high&65535,d=e.low>>>16,p=e.low&65535,m=0,h=0,g=0,_=0;return _+=o*p,g+=_>>>16,_&=65535,g+=a*p,h+=g>>>16,g&=65535,g+=o*d,h+=g>>>16,g&=65535,h+=i*p,m+=h>>>16,h&=65535,h+=a*d,m+=h>>>16,h&=65535,h+=o*u,m+=h>>>16,h&=65535,m+=n*p+i*d+a*u+o*s,m&=65535,l(g<<16|_,m<<16|h,this.unsigned)},D.mul=D.multiply,D.divide=function(e){if(r(e)||(e=f(e)),e.isZero())throw Error(`division by zero`);if(t)return!this.unsigned&&this.high===-2147483648&&e.low===-1&&e.high===-1?this:l((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(this.isZero())return this.unsigned?b:y;var n,i,a;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return S;a=b}else{if(this.eq(E))return e.eq(x)||e.eq(C)?E:e.eq(E)?x:(n=this.shr(1).div(e).shl(1),n.eq(y)?e.isNegative()?x:C:(i=this.sub(e.mul(n)),a=n.add(i.div(e)),a));if(e.eq(E))return this.unsigned?b:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();a=y}for(i=this;i.gte(e);){n=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),s=o<=48?1:u(2,o-48),d=c(n),p=d.mul(e);p.isNegative()||p.gt(i);)n-=s,d=c(n,this.unsigned),p=d.mul(e);d.isZero()&&(d=x),a=a.add(d),i=i.sub(p)}return a},D.div=D.divide,D.modulo=function(e){return r(e)||(e=f(e)),t?l((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},D.mod=D.modulo,D.rem=D.modulo,D.not=function(){return l(~this.low,~this.high,this.unsigned)},D.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},D.clz=D.countLeadingZeros,D.countTrailingZeros=function(){return this.low?i(this.low):i(this.high)+32},D.ctz=D.countTrailingZeros,D.and=function(e){return r(e)||(e=f(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},D.or=function(e){return r(e)||(e=f(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},D.xor=function(e){return r(e)||(e=f(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},D.shiftLeft=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},D.shl=D.shiftLeft,D.shiftRight=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},D.shr=D.shiftRight,D.shiftRightUnsigned=function(e){return r(e)&&(e=e.toInt()),(e&=63)==0?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):l(e===32?this.high:this.high>>>e-32,0,this.unsigned)},D.shru=D.shiftRightUnsigned,D.shr_u=D.shiftRightUnsigned,D.rotateLeft=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(e-=32,t=32-e,l(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},D.rotl=D.rotateLeft,D.rotateRight=function(e){var t;return r(e)&&(e=e.toInt()),(e&=63)==0?this:e===32?l(this.high,this.low,this.unsigned):e<32?(t=32-e,l(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(e-=32,t=32-e,l(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},D.rotr=D.rotateRight,D.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},D.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},D.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},D.toBytesLE=function(){var e=this.high,t=this.low;return[t&255,t>>>8&255,t>>>16&255,t>>>24,e&255,e>>>8&255,e>>>16&255,e>>>24]},D.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,e&255,t>>>24,t>>>16&255,t>>>8&255,t&255]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},typeof BigInt==`function`&&(n.fromBigInt=function(e,t){return l(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},n.fromValue=function(e,t){return typeof e==`bigint`?n.fromBigInt(e,t):f(e,t)},D.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e}),e.default=n})})),xp=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSnapOrigin=void 0,e.defaultSnapOrigin={}.SNAP_ORIGIN??`npm:@leapwallet/metamask-cosmos-snap`})),Sp=a((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={"eightball-1":{chainId:`eightball-1`,chainName:`8ball`,bech32Config:{bech32PrefixAccAddr:`8ball`},bip44:{coinType:118},denom:`uebl`,decimals:6},"agoric-3":{chainId:`agoric-3`,chainName:`agoric`,bech32Config:{bech32PrefixAccAddr:`agoric`},bip44:{coinType:564},denom:`ubld`,decimals:6},"akashnet-2":{chainId:`akashnet-2`,chainName:`akash`,bech32Config:{bech32PrefixAccAddr:`akash`},bip44:{coinType:118},denom:`uakt`,decimals:6},"archway-1":{chainId:`archway-1`,chainName:`archway`,bech32Config:{bech32PrefixAccAddr:`archway`},bip44:{coinType:118},denom:`aarch`,decimals:18},arkh:{chainId:`arkh`,chainName:`arkh`,bech32Config:{bech32PrefixAccAddr:`arkh`},bip44:{coinType:118},denom:`arkh`,decimals:6},"xstaxy-1":{chainId:`xstaxy-1`,chainName:`aura`,bech32Config:{bech32PrefixAccAddr:`aura`},bip44:{coinType:118},denom:`uaura`,decimals:6},"axelar-dojo-1":{chainId:`axelar-dojo-1`,chainName:`axelar`,bech32Config:{bech32PrefixAccAddr:`axelar`},bip44:{coinType:118},denom:`uaxl`,decimals:6},"laozi-mainnet":{chainId:`laozi-mainnet`,chainName:`bandchain`,bech32Config:{bech32PrefixAccAddr:`band`},bip44:{coinType:494},denom:`uband`,decimals:6},"beezee-1":{chainId:`beezee-1`,chainName:`beezee`,bech32Config:{bech32PrefixAccAddr:`bze`},bip44:{coinType:118},denom:`ubze`,decimals:6},"bitcanna-1":{chainId:`bitcanna-1`,chainName:`bitcanna`,bech32Config:{bech32PrefixAccAddr:`bcna`},bip44:{coinType:118},denom:`ubcna`,decimals:6},"bitsong-2b":{chainId:`bitsong-2b`,chainName:`bitsong`,bech32Config:{bech32PrefixAccAddr:`bitsong`},bip44:{coinType:639},denom:`ubtsg`,decimals:6},"bluzelle-9":{chainId:`bluzelle-9`,chainName:`bluzelle`,bech32Config:{bech32PrefixAccAddr:`bluzelle`},bip44:{coinType:483},denom:`ubnt`,decimals:6},bostrom:{chainId:`bostrom`,chainName:`bostrom`,bech32Config:{bech32PrefixAccAddr:`bostrom`},bip44:{coinType:118},denom:`boot`,decimals:0},"carbon-1":{chainId:`carbon-1`,chainName:`carbon`,bech32Config:{bech32PrefixAccAddr:`swth`},bip44:{coinType:118},denom:`swth`,decimals:8},"perun-1":{chainId:`perun-1`,chainName:`chain4energy`,bech32Config:{bech32PrefixAccAddr:`c4e`},bip44:{coinType:4444},denom:`uc4e`,decimals:6},celestia:{chainId:`celestia`,chainName:`Celestia`,bech32Config:{bech32PrefixAccAddr:`celestia`},bip44:{coinType:118},denom:`utia`,decimals:6},"cheqd-mainnet-1":{chainId:`cheqd-mainnet-1`,chainName:`cheqd`,bech32Config:{bech32PrefixAccAddr:`cheqd`},bip44:{coinType:118},denom:`ncheq`,decimals:9},"comdex-1":{chainId:`comdex-1`,chainName:`comdex`,bech32Config:{bech32PrefixAccAddr:`comdex`},bip44:{coinType:118},denom:`ucmdx`,decimals:6},"commercio-3":{chainId:`commercio-3`,chainName:`commercionetwork`,bech32Config:{bech32PrefixAccAddr:`did:com:`},bip44:{coinType:701},denom:`ucommercio`,decimals:6},"centauri-1":{chainId:`centauri-1`,chainName:`composable`,bech32Config:{bech32PrefixAccAddr:`centauri`},bip44:{coinType:118},denom:`ppica`,decimals:12},"coreum-mainnet-1":{chainId:`coreum-mainnet-1`,chainName:`coreum`,bech32Config:{bech32PrefixAccAddr:`core`},bip44:{coinType:990},denom:`ucore`,decimals:6},"cosmoshub-4":{chainId:`cosmoshub-4`,chainName:`cosmoshub`,bech32Config:{bech32PrefixAccAddr:`cosmos`},bip44:{coinType:118},denom:`uatom`,decimals:6},"crescent-1":{chainId:`crescent-1`,chainName:`crescent`,bech32Config:{bech32PrefixAccAddr:`cre`},bip44:{coinType:118},denom:`ucre`,decimals:6},"crypto-org-chain-mainnet-1":{chainId:`crypto-org-chain-mainnet-1`,chainName:`cryptoorgchain`,bech32Config:{bech32PrefixAccAddr:`cro`},bip44:{coinType:394},denom:`basecro`,decimals:8},"cudos-1":{chainId:`cudos-1`,chainName:`cudos`,bech32Config:{bech32PrefixAccAddr:`cudos`},bip44:{coinType:118},denom:`acudos`,decimals:18},"mainnet-3":{chainId:`mainnet-3`,chainName:`decentr`,bech32Config:{bech32PrefixAccAddr:`decentr`},bip44:{coinType:118},denom:`udec`,decimals:6},"morocco-1":{chainId:`morocco-1`,chainName:`terpnetwork`,bech32Config:{bech32PrefixAccAddr:`terp`},bip44:{coinType:118},denom:`uterp`,decimals:6},"desmos-mainnet":{chainId:`desmos-mainnet`,chainName:`desmos`,bech32Config:{bech32PrefixAccAddr:`desmos`},bip44:{coinType:852},denom:`udsm`,decimals:6},"dig-1":{chainId:`dig-1`,chainName:`dig`,bech32Config:{bech32PrefixAccAddr:`dig`},bip44:{coinType:118},denom:`udig`,decimals:6},dydx:{chainId:`dydx-mainnet-1`,chainName:`dYdX Protocol`,bech32Config:{bech32PrefixAccAddr:`dydx`},bip44:{coinType:118},denom:`DYDX`,decimals:18},"dyson-mainnet-01":{chainId:`dyson-mainnet-01`,chainName:`dyson`,bech32Config:{bech32PrefixAccAddr:`dys`},bip44:{coinType:118},denom:`dys`,decimals:0},"emoney-3":{chainId:`emoney-3`,chainName:`emoney`,bech32Config:{bech32PrefixAccAddr:`emoney`},bip44:{coinType:118},denom:`ungm`,decimals:6},"empowerchain-1":{chainId:`empowerchain-1`,chainName:`empowerchain`,bech32Config:{bech32PrefixAccAddr:`empower`},bip44:{coinType:118},denom:`umpwr`,decimals:6},"fetchhub-4":{chainId:`fetchhub-4`,chainName:`fetchhub`,bech32Config:{bech32PrefixAccAddr:`fetch`},bip44:{coinType:118},denom:`afet`,decimals:18},"colosseum-1":{chainId:`colosseum-1`,chainName:`firmachain`,bech32Config:{bech32PrefixAccAddr:`firma`},bip44:{coinType:7777777},denom:`ufct`,decimals:6},"galaxy-1":{chainId:`galaxy-1`,chainName:`galaxy`,bech32Config:{bech32PrefixAccAddr:`galaxy`},bip44:{coinType:118},denom:`uglx`,decimals:6},"genesis_29-2":{chainId:`genesis_29-2`,chainName:`genesisl1`,bech32Config:{bech32PrefixAccAddr:`genesis`},bip44:{coinType:118},denom:`el1`,decimals:18},gitopia:{chainId:`gitopia`,chainName:`gitopia`,bech32Config:{bech32PrefixAccAddr:`gitopia`},bip44:{coinType:118},denom:`ulore`,decimals:6},"gravity-bridge-3":{chainId:`gravity-bridge-3`,chainName:`gravitybridge`,bech32Config:{bech32PrefixAccAddr:`gravity`},bip44:{coinType:118},denom:`ugraviton`,decimals:6},Antora:{chainId:`Antora`,chainName:`idep`,bech32Config:{bech32PrefixAccAddr:`idep`},bip44:{coinType:118},denom:`idep`,decimals:6},"ixo-5":{chainId:`ixo-5`,chainName:`impacthub`,bech32Config:{bech32PrefixAccAddr:`ixo`},bip44:{coinType:118},denom:`uixo`,decimals:6},"irishub-1":{chainId:`irishub-1`,chainName:`irisnet`,bech32Config:{bech32PrefixAccAddr:`iaa`},bip44:{coinType:118},denom:`uiris`,decimals:6},"jackal-1":{chainId:`jackal-1`,chainName:`jackal`,bech32Config:{bech32PrefixAccAddr:`jkl`},bip44:{coinType:118},denom:`ujkl`,decimals:6},"juno-1":{chainId:`juno-1`,chainName:`juno`,bech32Config:{bech32PrefixAccAddr:`juno`},bip44:{coinType:118},denom:`ujuno`,decimals:6},"kava_2222-10":{chainId:`kava_2222-10`,chainName:`kava`,bech32Config:{bech32PrefixAccAddr:`kava`},bip44:{coinType:459},denom:`ukava`,decimals:6},"kichain-2":{chainId:`kichain-2`,chainName:`kichain`,bech32Config:{bech32PrefixAccAddr:`ki`},bip44:{coinType:118},denom:`uxki`,decimals:6},"kaiyo-1":{chainId:`kaiyo-1`,chainName:`kujira`,bech32Config:{bech32PrefixAccAddr:`kujira`},bip44:{coinType:118},denom:`ukuji`,decimals:6},"kyve-1":{chainId:`kyve-1`,chainName:`kyve`,bech32Config:{bech32PrefixAccAddr:`kyve`},bip44:{coinType:118},denom:`ukyve`,decimals:6},"likecoin-mainnet-2":{chainId:`likecoin-mainnet-2`,chainName:`likecoin`,bech32Config:{bech32PrefixAccAddr:`like`},bip44:{coinType:118},denom:`nanolike`,decimals:9},"loyal-main-02":{chainId:`loyal-main-02`,chainName:`loyal`,bech32Config:{bech32PrefixAccAddr:`loyal`},bip44:{coinType:118},denom:`ulyl`,decimals:6},LumenX:{chainId:`LumenX`,chainName:`lumenx`,bech32Config:{bech32PrefixAccAddr:`lumen`},bip44:{coinType:118},denom:`ulumen`,decimals:6},"lum-network-1":{chainId:`lum-network-1`,chainName:`lumnetwork`,bech32Config:{bech32PrefixAccAddr:`lum`},bip44:{coinType:880},denom:`ulum`,decimals:6},"mars-1":{chainId:`mars-1`,chainName:`mars`,bech32Config:{bech32PrefixAccAddr:`mars`},bip44:{coinType:118},denom:`umars`,decimals:6},"mayachain-mainnet-v1":{chainId:`mayachain-mainnet-v1`,chainName:`mayachain`,bech32Config:{bech32PrefixAccAddr:`maya`},bip44:{coinType:931},denom:`cacao`,decimals:10},"meme-1":{chainId:`meme-1`,chainName:`meme`,bech32Config:{bech32PrefixAccAddr:`meme`},bip44:{coinType:118},denom:`umeme`,decimals:6},"migaloo-1":{chainId:`migaloo-1`,chainName:`migaloo`,bech32Config:{bech32PrefixAccAddr:`migaloo`},bip44:{coinType:118},denom:`uwhale`,decimals:6},mainnet:{chainId:`mainnet`,chainName:`mises`,bech32Config:{bech32PrefixAccAddr:`mises`},bip44:{coinType:118},denom:`umis`,decimals:6},"mun-1":{chainId:`mun-1`,chainName:`mun`,bech32Config:{bech32PrefixAccAddr:`mun`},bip44:{coinType:118},denom:`umun`,decimals:6},"neutron-1":{chainId:`neutron-1`,chainName:`neutron`,bech32Config:{bech32PrefixAccAddr:`neutron`},bip44:{coinType:118},denom:`untrn`,decimals:6},"noble-1":{chainId:`noble-1`,chainName:`noble`,bech32Config:{bech32PrefixAccAddr:`noble`},bip44:{coinType:118},denom:`ustake`,decimals:6},"nois-1":{chainId:`nois-1`,chainName:`nois`,bech32Config:{bech32PrefixAccAddr:`nois`},bip44:{coinType:118},denom:`unois`,decimals:6},"pirin-1":{chainId:`pirin-1`,chainName:`nolus`,bech32Config:{bech32PrefixAccAddr:`nolus`},bip44:{coinType:118},denom:`unls`,decimals:6},nyx:{chainId:`nyx`,chainName:`nyx`,bech32Config:{bech32PrefixAccAddr:`n`},bip44:{coinType:118},denom:`unyx`,decimals:6},octa:{chainId:`octa`,chainName:`octa`,bech32Config:{bech32PrefixAccAddr:`octa`},bip44:{coinType:118},denom:`uocta`,decimals:6},"odin-mainnet-freya":{chainId:`odin-mainnet-freya`,chainName:`odin`,bech32Config:{bech32PrefixAccAddr:`odin`},bip44:{coinType:118},denom:`loki`,decimals:6},"omniflixhub-1":{chainId:`omniflixhub-1`,chainName:`omniflixhub`,bech32Config:{bech32PrefixAccAddr:`omniflix`},bip44:{coinType:118},denom:`uflix`,decimals:6},"onomy-mainnet-1":{chainId:`onomy-mainnet-1`,chainName:`onomy`,bech32Config:{bech32PrefixAccAddr:`onomy`},bip44:{coinType:118},denom:`anom`,decimals:18},Oraichain:{chainId:`Oraichain`,chainName:`oraichain`,bech32Config:{bech32PrefixAccAddr:`orai`},bip44:{coinType:118},denom:`orai`,decimals:6},"osmosis-1":{chainId:`osmosis-1`,chainName:`osmosis`,bech32Config:{bech32PrefixAccAddr:`osmo`},bip44:{coinType:118},denom:`uosmo`,decimals:6},"panacea-3":{chainId:`panacea-3`,chainName:`panacea`,bech32Config:{bech32PrefixAccAddr:`panacea`},bip44:{coinType:371},denom:`umed`,decimals:6},"passage-2":{chainId:`passage-2`,chainName:`passage`,bech32Config:{bech32PrefixAccAddr:`pasg`},bip44:{coinType:118},denom:`upasg`,decimals:6},"passage-1":{chainId:`passage-1`,chainName:`passage1`,bech32Config:{bech32PrefixAccAddr:`pasg`},bip44:{coinType:118},denom:`upasg`,decimals:6},"core-1":{chainId:`core-1`,chainName:`persistence`,bech32Config:{bech32PrefixAccAddr:`persistence`},bip44:{coinType:118},denom:`uxprt`,decimals:6},"pio-mainnet-1":{chainId:`pio-mainnet-1`,chainName:`provenance`,bech32Config:{bech32PrefixAccAddr:`pb`},bip44:{coinType:505},denom:`nhash`,decimals:9},"quasar-1":{chainId:`quasar-1`,chainName:`quasar`,bech32Config:{bech32PrefixAccAddr:`quasar`},bip44:{coinType:118},denom:`uqsr`,decimals:6},"quicksilver-2":{chainId:`quicksilver-2`,chainName:`quicksilver`,bech32Config:{bech32PrefixAccAddr:`quick`},bip44:{coinType:118},denom:`uqck`,decimals:6},"qwoyn-1":{chainId:`qwoyn-1`,chainName:`qwoyn`,bech32Config:{bech32PrefixAccAddr:`qwoyn`},bip44:{coinType:118},denom:`uqwoyn`,decimals:6},"reb_1111-1":{chainId:`reb_1111-1`,chainName:`rebus`,bech32Config:{bech32PrefixAccAddr:`rebus`},bip44:{coinType:118},denom:`arebus`,decimals:18},"regen-1":{chainId:`regen-1`,chainName:`regen`,bech32Config:{bech32PrefixAccAddr:`regen`},bip44:{coinType:118},denom:`uregen`,decimals:6},"titan-1":{chainId:`titan-1`,chainName:`rizon`,bech32Config:{bech32PrefixAccAddr:`rizon`},bip44:{coinType:118},denom:`uatolo`,decimals:6},"secret-4":{chainId:`secret-4`,chainName:`secretnetwork`,bech32Config:{bech32PrefixAccAddr:`secret`},bip44:{coinType:529},denom:`uscrt`,decimals:6},"pacific-1":{chainId:`pacific-1`,chainName:`sei`,bech32Config:{bech32PrefixAccAddr:`sei`},bip44:{coinType:118},denom:`usei`,decimals:6},"sentinelhub-2":{chainId:`sentinelhub-2`,chainName:`sentinel`,bech32Config:{bech32PrefixAccAddr:`sent`},bip44:{coinType:118},denom:`udvpn`,decimals:6},"ShareRing-VoyagerNet":{chainId:`ShareRing-VoyagerNet`,chainName:`shareledger`,bech32Config:{bech32PrefixAccAddr:`shareledger`},bip44:{coinType:118},denom:`nshr`,decimals:9},"shentu-2.2":{chainId:`shentu-2.2`,chainName:`shentu`,bech32Config:{bech32PrefixAccAddr:`certik`},bip44:{coinType:118},denom:`uctk`,decimals:6},"sommelier-3":{chainId:`sommelier-3`,chainName:`sommelier`,bech32Config:{bech32PrefixAccAddr:`somm`},bip44:{coinType:118},denom:`usomm`,decimals:6},"stafihub-1":{chainId:`stafihub-1`,chainName:`stafihub`,bech32Config:{bech32PrefixAccAddr:`stafi`},bip44:{coinType:118},denom:`ufis`,decimals:6},"stargaze-1":{chainId:`stargaze-1`,chainName:`stargaze`,bech32Config:{bech32PrefixAccAddr:`stars`},bip44:{coinType:118},denom:`ustars`,decimals:6},"iov-mainnet-ibc":{chainId:`iov-mainnet-ibc`,chainName:`starname`,bech32Config:{bech32PrefixAccAddr:`star`},bip44:{coinType:234},denom:`uiov`,decimals:6},"stride-1":{chainId:`stride-1`,chainName:`stride`,bech32Config:{bech32PrefixAccAddr:`stride`},bip44:{coinType:118},denom:`ustrd`,decimals:6},"teritori-1":{chainId:`teritori-1`,chainName:`teritori`,bech32Config:{bech32PrefixAccAddr:`tori`},bip44:{coinType:118},denom:`utori`,decimals:6},"columbus-5":{chainId:`columbus-5`,chainName:`terra`,bech32Config:{bech32PrefixAccAddr:`terra`},bip44:{coinType:330},denom:`uluna`,decimals:6},"phoenix-1":{chainId:`phoenix-1`,chainName:`terra2`,bech32Config:{bech32PrefixAccAddr:`terra`},bip44:{coinType:330},denom:`uluna`,decimals:6},"tgrade-mainnet-1":{chainId:`tgrade-mainnet-1`,chainName:`tgrade`,bech32Config:{bech32PrefixAccAddr:`tgrade`},bip44:{coinType:118},denom:`utgd`,decimals:6},"umee-1":{chainId:`umee-1`,chainName:`umee`,bech32Config:{bech32PrefixAccAddr:`umee`},bip44:{coinType:118},denom:`uumee`,decimals:6},"FUND-MainNet-2":{chainId:`FUND-MainNet-2`,chainName:`unification`,bech32Config:{bech32PrefixAccAddr:`und`},bip44:{coinType:5555},denom:`nund`,decimals:9},"ununifi-beta-v1":{chainId:`ununifi-beta-v1`,chainName:`ununifi`,bech32Config:{bech32PrefixAccAddr:`ununifi`},bip44:{coinType:118},denom:`uguu`,decimals:6},"vidulum-1":{chainId:`vidulum-1`,chainName:`vidulum`,bech32Config:{bech32PrefixAccAddr:`vdl`},bip44:{coinType:370},denom:`uvdl`,decimals:6},"vota-ash":{chainId:`vota-ash`,chainName:`doravota`,bech32Config:{bech32PrefixAccAddr:`dora`},bip44:{coinType:118},denom:`peaka`,decimals:18}}})),Cp=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.toSmall=e.getGasPriceForChainName=void 0;var n=t(je()),r=6;e.getGasPriceForChainName=async(e,t=`average`)=>{let n=await fetch(`https://assets.leapwallet.io/cosmos-registry/v1/gas/gas-prices.json`);if(!n.ok)throw Error(`Failed to get Gas price ${n.status}`);let r=await n.json();return console.log(r,e,t),r?.[e]?.[t]};function i(e,t=r){return new n.default(e).times(10**t).toFixed().toString()}e.toSmall=i})),wp=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.experimentalSuggestChain=e.suggestChain=e.isLocalSnap=e.getKey=e.requestSignAmino=e.requestSignature=e.getSnap=e.connectSnap=e.getSnaps=void 0;var n=t(je()),r=t(bp()),i=xp(),a=t(Sp()),o=Cp(),s=async()=>{let e=!1;if(`detected`in window.ethereum)for(let t of window.ethereum.detected)try{return await t.request({method:`wallet_getSnaps`}),window.ethereum.setProvider(t),e=!0,t}catch{}if(!e&&`providers`in window.ethereum)for(let t of window.ethereum.providers)try{return await t.request({method:`wallet_getSnaps`}),window.ethereum=t,e=!0,t}catch{}return window.ethereum},c=async(e,t)=>(await s()).request({method:`wallet_invokeSnap`,params:{snapId:i.defaultSnapOrigin,request:{method:e,params:t}}});e.getSnaps=async()=>await(await s()).request({method:`wallet_getSnaps`}),e.connectSnap=async(e=i.defaultSnapOrigin,t={})=>(await s()).request({method:`wallet_requestSnaps`,params:{[e]:t}}),e.getSnap=async t=>{try{let n=await(0,e.getSnaps)();return Object.values(n).find(e=>e.id===i.defaultSnapOrigin&&(!t||e.version===t))}catch(e){console.log(`Failed to obtain installed snap`,e);return}},e.requestSignature=async(e,t,n)=>{let i=await c(`signDirect`,{chainId:e,signerAddress:t,signDoc:Object.assign(Object.assign({},n),{accountNumber:r.default.fromString(n.accountNumber.toString(),!0)})});return{signature:i.signature,signed:Object.assign(Object.assign({},i.signed),{accountNumber:n.accountNumber.toString(),authInfoBytes:new Uint8Array(Object.values(i.signed.authInfoBytes)),bodyBytes:new Uint8Array(Object.values(i.signed.bodyBytes))})}},e.requestSignAmino=async(e,t,r,i)=>{let{isADR36:s=!1,enableExtraEntropy:l=!1}=i||{};if(!s&&e!==r.chain_id)throw Error(`Chain ID does not match signer chain ID`);let u=a.default[e];if(!i?.preferNoSetFee&&u&&u.denom){let e=await(0,o.getGasPriceForChainName)(u.chainName),t=`gasLimit`in r.fee?r.fee.gasLimit:r.fee.gas;if(e){let i=[{amount:new n.default(e).multipliedBy(new n.default(t)).decimalPlaces(0,1).toString(),denom:u.denom}];r.fee.amount=i}}return await c(`signAmino`,{chainId:e,signerAddress:t,signDoc:r,isADR36:s,enableExtraEntropy:l})},e.getKey=async e=>{let t=await c(`getKey`,{chainId:e});if(!t)throw Error(`No account data found`);return t.pubkey=Uint8Array.from(Object.values(t.pubkey)),t},e.isLocalSnap=e=>e.startsWith(`local:`),e.suggestChain=async(e,t)=>t&&t.force?await c(`suggestChain`,{chainInfo:e}):(await c(`getSupportedChains`,{})||{})[e.chainId]?Promise.resolve({message:`Chain already added successfully`,chainInfo:e}):await c(`suggestChain`,{chainInfo:e}),e.experimentalSuggestChain=e.suggestChain})),Tp=a((e=>{Object.defineProperty(e,"__esModule",{value:!0})})),Ep=a((e=>{se(),Object.defineProperty(e,"__esModule",{value:!0}),e.signArbitrary=e.getOfflineSigner=e.CosmjsOfflineSigner=void 0;var t=wp(),n=class{constructor(e){this.chainId=e}async getAccounts(){let e=await(0,t.getKey)(this.chainId);return[{address:e.address,algo:`secp256k1`,pubkey:e.pubkey}]}async signDirect(e,n){if(this.chainId!==n.chainId)throw Error(`Chain ID does not match signer chain ID`);if((await this.getAccounts()).find(t=>t.address!==e))throw Error(`Signer address does not match wallet address`);return(0,t.requestSignature)(this.chainId,e,n)}async signAmino(e,n,r){if(this.chainId!==n.chain_id)throw Error(`Chain ID does not match signer chain ID`);if((await this.getAccounts()).find(t=>t.address!==e))throw Error(`Signer address does not match wallet address`);return(0,t.requestSignAmino)(this.chainId,e,n,r)}};e.CosmjsOfflineSigner=n;function r(e){return new n(e)}e.getOfflineSigner=r;async function i(e,n,r,i){let{signDoc:o}=a(n,r);return(await(0,t.requestSignAmino)(e,n,o,{isADR36:!0,preferNoSetFee:!0,enableExtraEntropy:i?.enableExtraEntropy})).signature}e.signArbitrary=i;function a(e,t){let n=!1,r=``;return typeof t==`string`?(r=H.from(t).toString(`base64`),n=!0):r=H.from(t).toString(`base64`),{signDoc:{chain_id:``,account_number:`0`,sequence:`0`,fee:{gas:`0`,amount:[]},msgs:[{type:`sign/MsgSignData`,value:{signer:e,b64Data:r}}],memo:``},isADR36WithString:n}}})),Dp=a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(wp(),e),n(Tp(),e),n(Ep(),e)}))(),Op=class{snapInstalled=!1;_defaultSignOptions={preferNoSetFee:!1,preferNoSetMemo:!0,disableBalanceCheck:!0};get defaultSignOptions(){return this._defaultSignOptions}setDefaultSignOptions(e){this._defaultSignOptions=e}constructor(){this.snapInstalled=localStorage.getItem(`snapInstalled`)===`true`}async getSimpleAccount(e){let{address:t,username:n}=await this.getAccount(e);return{namespace:`cosmos`,chainId:e,address:t,username:n}}async handleConnect(){await(0,Dp.getSnap)()||await(0,Dp.connectSnap)()}async getAccount(e){await this.handleConnect();let t=await(0,Dp.getKey)(e);return{username:t?.address,address:t.address,algo:t.algo,pubkey:t.pubkey}}getOfflineSigner(e,t){switch(t){case`amino`:return this.getOfflineSignerAmino(e);case`direct`:return this.getOfflineSignerDirect(e);default:return this.getOfflineSignerAmino(e)}}getOfflineSignerAmino(e){return new Dp.CosmjsOfflineSigner(e)}getOfflineSignerDirect(e){return{getAccounts:async()=>[await this.getAccount(e)],signDirect:(t,n)=>this.signDirect(e,t,n)}}async signAmino(e,t,n,r){return(0,Dp.requestSignAmino)(e,t,n)}async signDirect(e,t,n){let r=dp.default.fromString(n.accountNumber.toString()),i=await(0,Dp.requestSignature)(e,t,{...n,accountNumber:r}),a=new dp.default(r.low,r.high,r.unsigned);return{signature:i.signature,signed:{...i.signed,accountNumber:BigInt(a.toString()),authInfoBytes:new Uint8Array(Object.values(i.signed.authInfoBytes)),bodyBytes:new Uint8Array(Object.values(i.signed.bodyBytes))}}}async signArbitrary(e,t,n){return await(0,Dp.signArbitrary)(e,t,n)}async addChain(e){let t={chainId:e?.chain?.chain_id,chainName:e?.chain?.chain_name,bip44:{coinType:e?.chain?.slip44},bech32Config:{bech32PrefixAccAddr:e?.chain?.bech32_prefix}};await(0,Dp.experimentalSuggestChain)(t,{})}},kp=async()=>{if(typeof window>`u`)return!1;let e=window.ethereum;if(e?.isMetaMask)return!0;if(document.readyState===`complete`){if(e?.isMetaMask)return!0;throw we}return new Promise((t,n)=>{let r=i=>{i.target&&i.target.readyState===`complete`&&(e?.isMetaMask?t(!0):n(we.message),document.removeEventListener(`readystatechange`,r))};document.addEventListener(`readystatechange`,r)})},Ap=[new class extends Gt{constructor(e){super(e,yp)}async initClient(){this.initingClient();try{let e=await kp();this.initClientDone(e?new Op:void 0)}catch(e){this.initClientError(e)}}}({name:`leap-metamask-cosmos-snap`,description:`The Leap Cosmos MetaMask Snap allows signing of Cosmos transactions using MetaMask.`,prettyName:`Leap Cosmos MetaMask`,logo:{major:`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEwIiBoZWlnaHQ9IjIxMCIgdmlld0JveD0iMCAwIDIxMCAyMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNzguMzQ0IDE0Ljk2NDhMMTE0LjkzOSA2My41NTU4TDEyNi42NjQgMzQuODg3OEwxNzguMzQ0IDE0Ljk2NDhaIiBmaWxsPSIjRTI3NjFCIiBzdHJva2U9IiNFMjc2MUIiIHN0cm9rZS13aWR0aD0iMC42MzkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMzEuOTcxOCAxNC45NjQ4TDk0Ljg2NjggNjQuMDE2OEw4My43MTQ4IDM0Ljg4NzhMMzEuOTcxOCAxNC45NjQ4Wk0xNTUuNTMxIDEyNy42TDEzOC42NDQgMTU0LjI5NkwxNzQuNzc1IDE2NC41NTNMMTg1LjE2MiAxMjguMTkyTDE1NS41MzEgMTI3LjZaTTI1LjI4MDggMTI4LjE5MkwzNS42MDM4IDE2NC41NTNMNzEuNzM0OCAxNTQuMjk2TDU0Ljg0OTggMTI3LjZMMjUuMjgwOCAxMjguMTkyWiIgZmlsbD0iI0U0NzYxQiIgc3Ryb2tlPSIjRTQ3NjFCIiBzdHJva2Utd2lkdGg9IjAuNjM5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTY5LjY5NjkgODIuNDkxNEw1OS42Mjk5IDk4LjIwNjRMOTUuNTA1OSA5OS44NTA0TDk0LjIzMTkgNjAuMDcwNEw2OS42OTY5IDgyLjQ5MTRaTTE0MC42MjEgODIuNDkxNEwxMTUuNzY5IDU5LjYwOTRMMTE0Ljk0IDk5Ljg1MDRMMTUwLjc1MyA5OC4yMDY0TDE0MC42MjEgODIuNDkxNFpNNzEuNzM1OSAxNTQuMjk0TDkzLjI3NDkgMTQzLjQ0NEw3NC42NjY5IDEyOC40NTNMNzEuNzM1OSAxNTQuMjk0Wk0xMTcuMDQzIDE0My40NDRMMTM4LjY0NSAxNTQuMjk0TDEzNS42NSAxMjguNDUzTDExNy4wNDMgMTQzLjQ0NFoiIGZpbGw9IiNFNDc2MUIiIHN0cm9rZT0iI0U0NzYxQiIgc3Ryb2tlLXdpZHRoPSIwLjYzOSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMzguNjQzIDE1NC4yOTVMMTE3LjA0MSAxNDMuNDQ1TDExOC43NjIgMTU3Ljk3N0wxMTguNTcxIDE2NC4wOTJMMTM4LjY0MyAxNTQuMjk1Wk03MS43MzM5IDE1NC4yOTVMOTEuODA2OSAxNjQuMDkyTDkxLjY3OTkgMTU3Ljk3N0w5My4yNzI5IDE0My40NDVMNzEuNzMzOSAxNTQuMjk1WiIgZmlsbD0iI0Q3QzFCMyIgc3Ryb2tlPSIjRDdDMUIzIiBzdHJva2Utd2lkdGg9IjAuNjM5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTkyLjEyNTggMTE4Ljg1NUw3NC4xNTU4IDExMy4zOThMODYuODM2OCAxMDcuNDE0TDkyLjEyNTggMTE4Ljg1NVpNMTE4LjE4OSAxMTguODU1TDEyMy40NzggMTA3LjQxNEwxMzYuMjIyIDExMy4zOThMMTE4LjE4OSAxMTguODU1WiIgZmlsbD0iIzIzMzQ0NyIgc3Ryb2tlPSIjMjMzNDQ3IiBzdHJva2Utd2lkdGg9IjAuNjM5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTcxLjczNjEgMTU0LjI5NEw3NC43OTUxIDEyNy41OTlMNTQuODUwMSAxMjguMTlMNzEuNzM2MSAxNTQuMjk0Wk0xMzUuNTg3IDEyNy41OTlMMTM4LjY0NSAxNTQuMjk0TDE1NS41MzIgMTI4LjE5TDEzNS41ODcgMTI3LjU5OVpNMTUwLjc1MyA5OC4yMDdMMTE0Ljk0IDk5Ljg1MUwxMTguMjU0IDExOC44NTNMMTIzLjU0MyAxMDcuNDEyTDEzNi4yODggMTEzLjM5NkwxNTAuNzUzIDk4LjIwN1pNNzQuMTU4MSAxMTMuMzk2TDg2LjkwMjEgMTA3LjQxMkw5Mi4xMjcxIDExOC44NTNMOTUuNTA1MSA5OS44NTFMNTkuNjI5MSA5OC4yMDdMNzQuMTU4MSAxMTMuMzk2WiIgZmlsbD0iI0NENjExNiIgc3Ryb2tlPSIjQ0Q2MTE2IiBzdHJva2Utd2lkdGg9IjAuNjM5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTU5LjYyODkgOTguMjEwOUw3NC42Njc5IDEyOC40NTdMNzQuMTU3OSAxMTMuNEw1OS42Mjc5IDk4LjIxMDlINTkuNjI4OVpNMTM2LjI4OCAxMTMuNEwxMzUuNjUgMTI4LjQ1N0wxNTAuNzUzIDk4LjIxMDlMMTM2LjI4OCAxMTMuNFpNOTUuNTA0OSA5OS44NTQ5TDkyLjEyNzkgMTE4Ljg1N0w5Ni4zMzI5IDE0MS4yNzlMOTcuMjg4OSAxMTEuNzU2TDk1LjUwNDkgOTkuODU0OVpNMTE0Ljk0IDk5Ljg1NDlMMTEzLjIyIDExMS42OUwxMTMuOTg1IDE0MS4yNzlMMTE4LjI1NCAxMTguODU3TDExNC45NCA5OS44NTQ5WiIgZmlsbD0iI0U0NzUxRiIgc3Ryb2tlPSIjRTQ3NTFGIiBzdHJva2Utd2lkdGg9IjAuNjM5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTExOC4yNTMgMTE4Ljg1M0wxMTMuOTgzIDE0MS4yNzVMMTE3LjA0MiAxNDMuNDQ1TDEzNS42NDkgMTI4LjQ1M0wxMzYuMjg2IDExMy4zOTVMMTE4LjI1MyAxMTguODUzWk03NC4xNTU4IDExMy4zOTVMNzQuNjY1OCAxMjguNDUzTDkzLjI3MjggMTQzLjQ0NUw5Ni4zMzE4IDE0MS4yNzVMOTIuMTI1OCAxMTguODUzTDc0LjE1NTggMTEzLjM5NVoiIGZpbGw9IiNGNjg1MUIiIHN0cm9rZT0iI0Y2ODUxQiIgc3Ryb2tlLXdpZHRoPSIwLjYzOSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMTguNTcxIDE2NC4wOTRMMTE4Ljc2MiAxNTcuOTc5TDExNy4xNjkgMTU2LjUzMkg5My4xNDQ5TDkxLjY3OTkgMTU3Ljk3OUw5MS44MDY5IDE2NC4wOTRMNzEuNzMzOSAxNTQuMjk3TDc4Ljc0MzkgMTYwLjIxNUw5Mi45NTM5IDE3MC40MDZIMTE3LjM2TDEzMS42MzQgMTYwLjIxNUwxMzguNjQzIDE1NC4yOTdMMTE4LjU3MSAxNjQuMDk0WiIgZmlsbD0iI0MwQUQ5RSIgc3Ryb2tlPSIjQzBBRDlFIiBzdHJva2Utd2lkdGg9IjAuNjM5IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTExNy4wNDEgMTQzLjQ0N0wxMTMuOTgzIDE0MS4yNzdIOTYuMzMyMkw5My4yNzIyIDE0My40NDdMOTEuNjgwMiAxNTcuOTc5TDkzLjE0NTIgMTU2LjUzMkgxMTcuMTY5TDExOC43NjIgMTU3Ljk3OUwxMTcuMDQxIDE0My40NDdaIiBmaWxsPSIjMTYxNjE2IiBzdHJva2U9IiMxNjE2MTYiIHN0cm9rZS13aWR0aD0iMC42MzkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTgxLjAyIDY2LjcxMjhMMTg2LjQzNyAzOS44ODQ4TDE3OC4zNDQgMTQuOTY0OEwxMTcuMDQzIDYxLjkxMThMMTQwLjYyIDgyLjQ5MjhMMTczLjk0NyA5Mi41NTI4TDE4MS4zMzkgODMuNjc2OEwxNzguMTUzIDgxLjMwOThMMTgzLjI1MSA3Ni41MDk4TDE3OS4zIDczLjM1MzhMMTg0LjM5OCA2OS4zNDI4TDE4MS4wMiA2Ni43MTI4Wk0yMy45NDI5IDM5Ljg4NDhMMjkuMzU5OSA2Ni43MTI4TDI1LjkxODkgNjkuMzQyOEwzMS4wMTY5IDczLjM1MjhMMjcuMTI5OSA3Ni41MDk4TDMyLjIyNjkgODEuMzA5OEwyOS4wNDA5IDgzLjY3NjhMMzYuMzY4OSA5Mi41NTI4TDY5LjY5NTkgODIuNDkyOEw5My4yNzM5IDYxLjkxMjhMMzEuOTcxOSAxNC45NjQ4TDIzLjk0MjkgMzkuODg0OFoiIGZpbGw9IiM3NjNEMTYiIHN0cm9rZT0iIzc2M0QxNiIgc3Ryb2tlLXdpZHRoPSIwLjYzOSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xNzMuOTQ3IDkyLjU1MTdMMTQwLjYyIDgyLjQ5MTdMMTUwLjc1MiA5OC4yMDY3TDEzNS42NDkgMTI4LjQ1M0wxNTUuNTMxIDEyOC4xOUgxODUuMTYyTDE3My45NDcgOTIuNTUxN1pNNjkuNjk2OCA4Mi40OTE3TDM2LjM2ODggOTIuNTUxN0wyNS4yODA4IDEyOC4xOUg1NC44NDk4TDc0LjY2NzggMTI4LjQ1M0w1OS42Mjc4IDk4LjIwNjdMNjkuNjk2OCA4Mi40OTE3Wk0xMTQuOTM5IDk5Ljg1MDdMMTE3LjA0MiA2MS45MTA3TDEyNi43MjggMzQuODg2N0g4My43MTQ4TDkzLjI3MzggNjEuOTEwN0w5NS41MDM4IDk5Ljg1MDdMOTYuMjY4OCAxMTEuODE4TDk2LjMzMTggMTQxLjI3NUgxMTMuOTg0TDExNC4xMTEgMTExLjgxOEwxMTQuOTM5IDk5Ljg1MDdaIiBmaWxsPSIjRjY4NTFCIiBzdHJva2U9IiNGNjg1MUIiIHN0cm9rZS13aWR0aD0iMC42MzkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K`,minor:`data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQzIiBoZWlnaHQ9IjM0MyIgdmlld0JveD0iMCAwIDM0MyAzNDMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xNzEuNzUgMzQyLjc1QzI2Ni4xOTEgMzQyLjc1IDM0Mi43NSAyNjYuMTkxIDM0Mi43NSAxNzEuNzVDMzQyLjc1IDc3LjMwOTMgMjY2LjE5MSAwLjc1IDE3MS43NSAwLjc1Qzc3LjMwOTMgMC43NSAwLjc1IDc3LjMwOTMgMC43NSAxNzEuNzVDMC43NSAyNjYuMTkxIDc3LjMwOTMgMzQyLjc1IDE3MS43NSAzNDIuNzVaIiBmaWxsPSIjMDUzMzE4Ii8+CjxwYXRoIGQ9Ik0yNjUuNjU0IDIwMC42NjlDMjY1LjY1NCAyMzQuMjM3IDIyNC42OSAyNDcuODgyIDE3My44MjYgMjQ3Ljg4MkMxMjIuOTYyIDI0Ny44ODIgODEuMzk4NCAyMzQuMjM3IDgxLjM5ODQgMjAwLjY2OUM4MS4zOTg0IDE2Ny4xMDEgMTIyLjY2MiAxMzkuOTM4IDE3My41MjYgMTM5LjkzOEMyMjQuMzkgMTM5LjkzOCAyNjUuNjU0IDE2Ny4xNjEgMjY1LjY1NCAyMDAuNjY5WiIgZmlsbD0iIzI0QTk1QSIvPgo8cGF0aCBkPSJNMjU2LjMxNSAxMjcuNTA4QzI1Ni4zMTUgMTA5LjgzNiAyNDEuODg3IDk1LjQ4NDQgMjI0LjExNSA5NS40ODQ0QzIxNC44NzUgOTUuNDg0NCAyMDYuNTUxIDk5LjM2ODQgMjAwLjY4MyAxMDUuNTUyQzIwMC4yNCAxMDYuMDMyIDE5OS42ODIgMTA2LjM5MSAxOTkuMDYyIDEwNi41OTVDMTk4LjQ0MiAxMDYuOCAxOTcuNzggMTA2Ljg0MyAxOTcuMTM5IDEwNi43MkMxODkuNDMyIDEwNS4xNjYgMTgxLjU4OSAxMDQuMzgyIDE3My43MjcgMTA0LjM4QzE2NS44NjUgMTA0LjM1OCAxNTguMDIyIDEwNS4xMzggMTUwLjMxOSAxMDYuNzA4QzE0OS42NzcgMTA2LjgzMyAxNDkuMDE1IDEwNi43OTMgMTQ4LjM5NCAxMDYuNTkyQzE0Ny43NzIgMTA2LjM5IDE0Ny4yMTIgMTA2LjAzNCAxNDYuNzY3IDEwNS41NTZDMTQzLjc0OCAxMDIuMzc5IDE0MC4xMTUgOTkuODQ4IDEzNi4wODggOTguMTE2N0MxMzIuMDYyIDk2LjM4NTQgMTI3LjcyNSA5NS40ODk4IDEyMy4zNDMgOTUuNDg0NEMxMDUuNTcxIDk1LjQ4NDQgOTEuMTQyNiAxMDkuODM2IDkxLjE0MjYgMTI3LjUwOEM5MS4xMzQ4IDEzMi40NjQgOTIuMjg2OCAxMzcuMzUzIDk0LjUwNjYgMTQxLjc4NEM5NC43NjM2IDE0Mi4yOTMgOTQuOTA3NSAxNDIuODUyIDk0LjkyODIgMTQzLjQyMUM5NC45NDg5IDE0My45OTEgOTQuODQ2IDE0NC41NTggOTQuNjI2NiAxNDUuMDg0QzkyLjUzMDIgMTUwLjAzMyA5MS40NDYyIDE1NS4zNSA5MS40Mzg2IDE2MC43MjRDOTEuNDM4NiAxOTEuODYgMTI4LjI5MSAyMTcuMDY4IDE3My43MjcgMjE3LjA2OEMyMTkuMTY3IDIxNy4wNjggMjU2LjAxOSAxOTEuODYgMjU2LjAxOSAxNjAuNzI0QzI1Ni4wMTEgMTU1LjM1IDI1NC45MjcgMTUwLjAzMyAyNTIuODMxIDE0NS4wODRDMjUyLjYxMSAxNDQuNTU4IDI1Mi41MDggMTQzLjk5MSAyNTIuNTI5IDE0My40MjFDMjUyLjU1IDE0Mi44NTIgMjUyLjY5NCAxNDIuMjkzIDI1Mi45NTEgMTQxLjc4NEMyNTUuMTY5IDEzNy4zNTMgMjU2LjMyMSAxMzIuNDY0IDI1Ni4zMTUgMTI3LjUwOFoiIGZpbGw9IiMzMkRBNkQiLz4KPHBhdGggZD0iTTEyMC43MjcgMTQ1LjI2OUMxMzEuNTk1IDE0NS4yNjkgMTQwLjQwMyAxMzYuNTA1IDE0MC40MDMgMTI1LjY5N0MxNDAuNDAzIDExNC44ODUgMTMxLjU5NSAxMDYuMTI1IDEyMC43MjcgMTA2LjEyNUMxMDkuODU5IDEwNi4xMjUgMTAxLjA0NyAxMTQuODg1IDEwMS4wNDcgMTI1LjY5N0MxMDEuMDQ3IDEzNi41MDUgMTA5Ljg1OSAxNDUuMjY5IDEyMC43MjcgMTQ1LjI2OVpNMjI1LjY5NSAxNDUuMjY5QzIzNi41NjMgMTQ1LjI2OSAyNDUuMzcxIDEzNi41MDUgMjQ1LjM3MSAxMjUuNjk3QzI0NS4zNzEgMTE0Ljg4NSAyMzYuNTYzIDEwNi4xMjUgMjI1LjY5NSAxMDYuMTI1QzIxNC44MjcgMTA2LjEyNSAyMDYuMDE1IDExNC44ODUgMjA2LjAxNSAxMjUuNjk3QzIwNi4wMTUgMTM2LjUwNSAyMTQuODI3IDE0NS4yNjkgMjI1LjY5NSAxNDUuMjY5WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTExMC4yODEgMjQ1LjQ1N0MxMTQuNTE3IDI0NS40NTcgMTE3Ljg1NyAyNDEuNzc3IDExNy4zNzcgMjM3LjYyNUMxMTUuNjQ5IDIyMi45MTcgMTA4LjMxMyAxOTEuMDY5IDc2LjA1NzQgMTcxLjkxM0M0MC43MDE0IDE1MC45MTMgNTcuNTA5NCAyMDYuNzI1IDY0LjU0MTQgMjI3LjA4NUM2NS4yNDM5IDIyOS4wODIgNjUuMjI3NSAyMzEuMjYxIDY0LjQ5NTEgMjMzLjI0N0M2My43NjI3IDIzNS4yMzQgNjIuMzYwMiAyMzYuOTAyIDYwLjUyOTUgMjM3Ljk2NUw1OC4yMjU0IDIzOS4yODlDNTUuMjQ1NCAyNDEuMDA5IDU2LjQ5NzQgMjQ1LjQ1NyA1OS44OTc0IDI0NS40NTdIMTEwLjI4MVpNMjM4LjQxNyAyNDUuNDU3QzIzNC42MDEgMjQ1LjQ1NyAyMzEuNjIxIDI0MS43NzcgMjMyLjAzNyAyMzcuNjI1QzIzMy41MjkgMjIyLjk3NyAyNDAuMjA5IDE5MS4wNjkgMjY5LjMwNSAxNzEuOTEzQzMwMS41MjEgMTUwLjc0OSAyODUuODUzIDIwNy41OTcgMjc5LjU4OSAyMjcuNTUzQzI3OC45ODIgMjI5LjQ1NyAyNzkuMDIxIDIzMS41MDggMjc5LjcwMSAyMzMuMzg3QzI4MC4zOCAyMzUuMjY3IDI4MS42NjEgMjM2Ljg2OSAyODMuMzQ1IDIzNy45NDVMMjg1LjQ2NSAyMzkuMjg5QzI4OC4xNDkgMjQxLjAwOSAyODcuMDE3IDI0NS40NTcgMjgzLjk3NyAyNDUuNDU3SDIzOC40MTdaIiBmaWxsPSIjMzJEQTZEIi8+CjxwYXRoIGQ9Ik0xMjAuNzIyIDEzNy40MDJDMTIzLjgzNiAxMzcuNDAyIDEyNi44MjIgMTM2LjE2NSAxMjkuMDI0IDEzMy45NjNDMTMxLjIyNiAxMzEuNzYyIDEzMi40NjIgMTI4Ljc3NiAxMzIuNDYyIDEyNS42NjJDMTMyLjQ2MiAxMjIuNTQ4IDEzMS4yMjYgMTE5LjU2MiAxMjkuMDI0IDExNy4zNkMxMjYuODIyIDExNS4xNTkgMTIzLjgzNiAxMTMuOTIyIDEyMC43MjIgMTEzLjkyMkMxMTcuNjA5IDExMy45MjIgMTE0LjYyMyAxMTUuMTU5IDExMi40MjEgMTE3LjM2QzExMC4yMTkgMTE5LjU2MiAxMDguOTgyIDEyMi41NDggMTA4Ljk4MiAxMjUuNjYyQzEwOC45ODIgMTI4Ljc3NiAxMTAuMjE5IDEzMS43NjIgMTEyLjQyMSAxMzMuOTYzQzExNC42MjMgMTM2LjE2NSAxMTcuNjA5IDEzNy40MDIgMTIwLjcyMiAxMzcuNDAyWk0yMjUuNjk0IDEzNy40MDJDMjI3LjIzNiAxMzcuNDAyIDIyOC43NjMgMTM3LjA5OCAyMzAuMTg3IDEzNi41MDdDMjMxLjYxMSAxMzUuOTE3IDIzMi45MDUgMTM1LjA1MiAyMzMuOTk1IDEzMy45NjJDMjM1LjA4NSAxMzIuODcyIDIzNS45NSAxMzEuNTc3IDIzNi41NCAxMzAuMTUzQzIzNy4xMjkgMTI4LjcyOCAyMzcuNDMzIDEyNy4yMDIgMjM3LjQzMiAxMjUuNjZDMjM3LjQzMiAxMjQuMTE4IDIzNy4xMjggMTIyLjU5MiAyMzYuNTM4IDEyMS4xNjdDMjM1Ljk0OCAxMTkuNzQzIDIzNS4wODMgMTE4LjQ0OSAyMzMuOTkyIDExNy4zNTlDMjMyLjkwMiAxMTYuMjY5IDIzMS42MDggMTE1LjQwNSAyMzAuMTgzIDExNC44MTVDMjI4Ljc1OSAxMTQuMjI1IDIyNy4yMzIgMTEzLjkyMiAyMjUuNjkgMTEzLjkyMkMyMjIuNTc3IDExMy45MjIgMjE5LjU5MSAxMTUuMTYgMjE3LjM5IDExNy4zNjJDMjE1LjE4OCAxMTkuNTY0IDIxMy45NTIgMTIyLjU1IDIxMy45NTIgMTI1LjY2NEMyMTMuOTUzIDEyOC43NzggMjE1LjE5IDEzMS43NjMgMjE3LjM5MiAxMzMuOTY1QzIxOS41OTQgMTM2LjE2NiAyMjIuNTgxIDEzNy40MDIgMjI1LjY5NCAxMzcuNDAyWk0xOTkuMzQ2IDE3MC40OTRDMjAyLjI2MiAxNzAuNzQ2IDIwNC40NyAxNzMuMzM0IDIwMy43MzQgMTc2LjE3QzIwMi4wOTMgMTgyLjUyMSAxOTguNTEyIDE4OC4yMDIgMTkzLjQ5IDE5Mi40MjJDMTg3LjA3NiAxOTcuODE0IDE3OC43ODQgMjAwLjQ0MiAxNzAuNDM0IDE5OS43M0MxNjQuMjA2IDE5OS4xOTUgMTU4LjI3NyAxOTYuODI0IDE1My4zOTcgMTkyLjkxOEMxNDguNTE2IDE4OS4wMTIgMTQ0LjkwNSAxODMuNzQ2IDE0My4wMTggMTc3Ljc4NkMxNDIuMTIgMTc0Ljk2MiAxNDEuNjI2IDE3Mi4wMjUgMTQxLjU1IDE2OS4wNjJDMTQxLjQ5OCAxNjcuMTEgMTQzLjIzNCAxNjUuNjY2IDE0NS4xNzggMTY1LjgzNEwxNzMuMTQyIDE2OC4yNDJMMTk5LjM0NiAxNzAuNDk0WiIgZmlsbD0iIzA5MjUxMSIvPgo8L3N2Zz4K`},mode:`extension`,extends:`MetaMask`,mobileDisabled:()=>!(`ethereum`in window),rejectMessage:{source:`Request rejected`},downloads:[{device:`desktop`,browser:`chrome`,link:`https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn`},{link:`https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn`}]})],jp=Se(),Mp=be(),Np=Ce(),Pp=`cosmos.walletConnect`,Fp=h({connectorId:C,topic:C,chainId:C,address:C}),Ip=`cosmos.extensionChain`,Lp=h({connectorId:C,chainId:C}),Rp=e=>e,zp=({wallet:e,cosmosChainsMap:t,cosmosWagmiChains:n,persistPublicKey:r,runWalletEffect:i})=>({id:e.id,name:e.name,iconUrl:e.iconUrl,iconBackground:`transparent`,availability:e.availability,chainGroup:{iconUrl:E(`cosmos`),title:`Cosmos`,id:`cosmos`},createConnector:a=>k(o=>{let s=Object.values(t).map(({chain:e})=>e),c=t.cosmos?.chain??u(s).pipe(d);if(!c)throw Error(`Cosmos chain not found`);let l=c,f=null,p=ce(null),m=e=>{f=e,p.set(e?.wallet??null)},h=e.makeSession({connectorId:e.id,storage:o.storage,onEnded:()=>{m(null),o.emitter.emit(`disconnect`)}}),g=async e=>{let{address:t,pubkey:n}=await i(e.getAccount);await r({address:y(oe)(t),publicKey:(0,Mp.toBase64)(n)})},_=async e=>{o.emitter.emit(`message`,{type:`connecting`});let t=e?.isReconnecting?await h.restore():await h.connect(s.find(t=>Rp(t.chain_id)===e?.chainId)??l);return l=s.find(e=>e.chain_id===t.wallet.chainId)??l,m(t),e?.isReconnecting||await g(t.wallet),M(e?.withCapabilities,[t.address],Rp(t.wallet.chainId))},v=async({chainId:e})=>{let t=o.chains.find(t=>t.id===e),n=s.find(t=>Rp(t.chain_id)===e);if(!t||!n)throw Error(`Chain not found`);let r=await h.connect(n);return l=n,m(r),await g(r.wallet),x(e.toString()),b([r.address]),t},{onAccountsChanged:b,onChainChanged:x,onDisconnect:S}=Pe(o.emitter,Rp),C=({cw:e,tx:t})=>P({try:()=>Np.SignDoc.decode((0,Mp.fromHex)(t)),catch:e=>new j({cause:e,message:`Invalid Cosmos sign document`,operation:`cosmos-sign-direct`})}).pipe(te(e.signDirect),te(e=>P({try:()=>(0,Mp.toHex)(Np.TxRaw.encode({authInfoBytes:e.signed.authInfoBytes,bodyBytes:e.signed.bodyBytes,signatures:[(0,jp.decodeSignature)(e.signature).signature]}).finish()),catch:e=>new j({cause:e,message:`Invalid Cosmos signature`,operation:`cosmos-sign-direct`})})));return{...a,setup:()=>h.ready(),id:e.id,name:e.id,type:ae.type,$filteredChains:A(n),$chainWallet:p.changes,connect:_,switchChain:v,onAccountsChanged:b,onChainChanged:x,onDisconnect:S,getAccounts:async()=>f?[f.address]:[],isAuthorized:async()=>{try{return await h.isAuthorized()}catch{return!1}},getChainId:async()=>Rp(l.chain_id),getProvider:async()=>({}),disconnect:async()=>{m(null),await h.disconnect(l)},signTransaction:C,toBase64:Mp.toBase64}})}),Bp=e=>new Promise(t=>setTimeout(t,e)),Vp=e=>(typeof e==`string`?e:e?.major??e?.minor)??``,Hp=(e,t)=>new j({cause:t,message:`Cosmos extension wallet request failed`,operation:e}),Up=e=>({chainId:e.chainId,getAccount:R({try:async()=>{let t=e.client?.getAccount;if(!t)throw Error(`Wallet cannot read Cosmos accounts`);return t.call(e.client,e.chainId)},catch:e=>Hp(`cosmos-get-account`,e)}),signDirect:t=>R({try:async()=>{let n=e.client?.signDirect;if(!n||!e.address)throw Error(`Wallet cannot sign Cosmos transactions`);return n.call(e.client,e.chainId,e.address,t)},catch:e=>Hp(`cosmos-sign-direct`,e)})}),Wp=e=>{let t=_(e);return e=>l(t(e))},Gp={keplr:Wp(h({keplr:v})),leap:Wp(h({leap:v})),metaMask:Wp(h({ethereum:h({isMetaMask:b(!0)})}))},Kp=e=>typeof window<`u`&&Gp[e](window),qp=(e,t)=>{let{walletInfo:n}=e,r=()=>e.clientMutable.state===`Done`&&!!e.client,i=async()=>Kp(t)?(r()||await e.initClient(),r()):!1,a=new Map,o=e=>{if(!e.address)throw Error(e.message??`Cosmos wallet did not return an account`);let t=a.get(e)??Up(e);return a.set(e,t),{address:e.address,wallet:t}},s=async()=>{if(!await i())throw new O({walletId:n.name})};return{id:n.name,name:n.prettyName,iconUrl:Vp(n.logo),availability:{_tag:`Injected`,detect:R(i).pipe(ne(()=>!1)),installUrl:n.downloads?.find(e=>e.device===`desktop`)?.link},makeSession:({connectorId:t,storage:n})=>{let r=async()=>{let r=_(Lp)(await n?.getItem(Ip)).pipe(f(e=>e.connectorId===t),m(e=>e.chainId),d),i=e.getChainWalletList(!1).filter(e=>!!e.address);return i.find(e=>e.chainId===r)??i[0]};return{ready:async()=>{for(let t=0;t<=3;t++){let{state:t}=e.clientMutable;if(t===`Done`||t===`Error`)return;await Bp(1e3)}throw Error(`Cosmos wallet client did not initialize`)},connect:async r=>{await s();let i=e.getChainWallet(r.chain_name);if(!i)throw Error(`Chain wallet not found`);i.address||await i.connect();let a=o(i);return await n?.setItem(Ip,{connectorId:t,chainId:i.chainId}),a},restore:async()=>{await s();let e=await r();if(!e)throw Error(`No Cosmos wallet account to restore`);return o(e)},isAuthorized:async()=>await r()!==void 0,disconnect:async t=>{await n?.removeItem(Ip),await e.getChainWallet(t.chain_name)?.disconnect()}}}}},Jp=[`cosmos_getAccounts`,`cosmos_signDirect`,`cosmos_signAmino`],Yp=w(h({address:C,pubkey:g})),Xp=h({chainId:C,bodyBytes:g,authInfoBytes:g,accountNumber:S}),Zp=h({signed:Xp,signature:h({pub_key:h({type:C,value:C}),signature:C})}),Qp=(e,t,n)=>new j({cause:n,message:t,operation:e}),$p=(e,t)=>p(e.accounts.find(e=>e.startsWith(`cosmos:${t}:`))).pipe(m(e=>e.slice(`cosmos:${t}:`.length))),em=e=>Jp.every(t=>e.methods.includes(t)),tm=({address:e,chainId:t,protocol:n,topic:r})=>({chainId:t,getAccount:n.request({topic:r,chainId:`cosmos:${t}`,method:`cosmos_getAccounts`,params:{},response:Yp}).pipe(te(t=>L(t.find(t=>t.address===e)).pipe(re(()=>Qp(`cosmos-get-accounts`,`Wallet did not return the connected Cosmos account`))))),signDirect:i=>D(Xp)(i).pipe(re(e=>Qp(`cosmos-sign-direct`,`Invalid Cosmos sign document`,e)),te(i=>n.request({topic:r,chainId:`cosmos:${t}`,method:`cosmos_signDirect`,params:{signerAddress:e,signDoc:i},response:Zp})))}),nm=({connectorId:e,onEnded:t,protocol:n,runWalletEffect:r,storage:i})=>{let a=new Map,o,s=0,l=e=>{a.get(e)?.unsubscribe(),a.delete(e)},u=async({address:r,chainId:c,topic:u})=>{let d=++s;if(a.get(c)?.topic!==u&&(l(c),a.set(c,{topic:u,address:r,unsubscribe:n.subscribeEnded(u,()=>{l(c),o===c&&(o=void 0,i?.removeItem(Pp),t())})})),o=c,await i?.setItem(Pp,{connectorId:e,topic:u,chainId:c,address:r}),d!==s||a.get(c)?.topic!==u)throw d===s&&await i?.removeItem(Pp),Qp(`cosmos-connect`,`Cosmos WalletConnect session ended while connecting`);return{address:r,wallet:tm({address:r,chainId:c,protocol:n,topic:u})}},p=(e,t)=>n.sessions(`cosmos`).pipe(N(n=>n.some(n=>n.topic===e&&n.accounts.includes(t)&&em(n)))),h=async()=>{let t=_(Fp)(await i?.getItem(Pp)).pipe(f(t=>t.connectorId===e),d);if(t)return await r(p(t.topic,`cosmos:${t.chainId}:${t.address}`))?t:void 0};return{ready:async()=>{},connect:async e=>{let t=e.chain_id,i=(await r(n.sessions(`cosmos`))).flatMap(e=>em(e)?c(m($p(e,t),t=>({address:t,topic:e.topic}))):[]),o=i.find(({topic:e})=>e===a.get(t)?.topic)??i[0];if(o)return u({...o,chainId:t});let s=await r(n.connect({namespace:`cosmos`,chains:[`cosmos:${t}`],requiredMethods:Jp,events:[`chainChanged`,`accountsChanged`]})),l=d($p(s,t));if(!l)throw Qp(`cosmos-connect`,`Wallet did not approve an account for this Cosmos chain`);return u({address:l,chainId:t,topic:s.topic})},restore:async()=>{let e=await h();if(!e)throw await i?.removeItem(Pp),Qp(`cosmos-reconnect`,`No live Cosmos WalletConnect session was saved`);return u(e)},isAuthorized:async()=>await h()!==void 0,disconnect:async()=>{let e=[...a.values()].map(({topic:e})=>e);for(let e of[...a.keys()])l(e);o=void 0,s++,await i?.removeItem(Pp),await r(F(new Set(e),n.disconnect,{discard:!0}).pipe(ie(e=>I(`Cosmos WalletConnect disconnect failed`).pipe(ee({cause:e})))))}}},rm=({iconUrl:e,runWalletEffect:t,walletConnectProtocol:n})=>({id:`wallet-connect`,name:`WalletConnect`,iconUrl:e,availability:{_tag:`Remote`},makeSession:({connectorId:e,onEnded:r,storage:i})=>nm({connectorId:e,onEnded:r,protocol:n,runWalletEffect:t,storage:i})}),im=({cosmosChainsMap:e,persistPublicKey:t,walletConnectProtocol:n,runWalletEffect:r})=>{let i=[...mp,...vp,...Ap],a=[...mp.map(e=>()=>qp(e,`keplr`)),...vp.map(e=>()=>qp(e,`leap`)),...Ap.map(e=>()=>qp(e,`metaMask`)),()=>rm({iconUrl:T.wcLogo,runWalletEffect:r,walletConnectProtocol:n})],{chains:o,cosmosWagmiChains:s}=Object.values(e).reduce((e,t)=>(e.cosmosWagmiChains.push(t.wagmiChain),e.chains.push(t.chain),e),{cosmosWagmiChains:[],chains:[]});return o.sort(e=>Ie[e.chain_id]===`cosmos`?-1:1),{connector:{groupName:`Cosmos`,wallets:a.map(n=>()=>zp({wallet:n(),cosmosChainsMap:e,cosmosWagmiChains:s,persistPublicKey:t,runWalletEffect:r}))},walletManager:new Kn(o,i,new Be(x.env.isDevMode?`ERROR`:`NONE`),!1,!0,void 0,Fe)}};export{im as getWalletManager,Be as n,Re as r,Ve as t};
|